* gcc.dg/vect/slp-9.c: Disable einline.
[official-gcc.git] / gcc / configure
blobb589a2a4806f08b7b31a87f0b5d16d4488ca03f1
1 #! /bin/sh
2 # Guess values for system-dependent variables and create Makefiles.
3 # Generated by GNU Autoconf 2.64.
5 # Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
6 # 2002, 2003, 2004, 2005, 2006, 2007, 2008, 2009 Free Software
7 # Foundation, Inc.
9 # This configure script is free software; the Free Software Foundation
10 # gives unlimited permission to copy, distribute and modify it.
11 ## -------------------- ##
12 ## M4sh Initialization. ##
13 ## -------------------- ##
15 # Be more Bourne compatible
16 DUALCASE=1; export DUALCASE # for MKS sh
17 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
18 emulate sh
19 NULLCMD=:
20 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
21 # is contrary to our usage. Disable this feature.
22 alias -g '${1+"$@"}'='"$@"'
23 setopt NO_GLOB_SUBST
24 else
25 case `(set -o) 2>/dev/null` in #(
26 *posix*) :
27 set -o posix ;; #(
28 *) :
30 esac
34 as_nl='
36 export as_nl
37 # Printing a long string crashes Solaris 7 /usr/bin/printf.
38 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
39 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
40 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
41 # Prefer a ksh shell builtin over an external printf program on Solaris,
42 # but without wasting forks for bash or zsh.
43 if test -z "$BASH_VERSION$ZSH_VERSION" \
44 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
45 as_echo='print -r --'
46 as_echo_n='print -rn --'
47 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
48 as_echo='printf %s\n'
49 as_echo_n='printf %s'
50 else
51 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
52 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
53 as_echo_n='/usr/ucb/echo -n'
54 else
55 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
56 as_echo_n_body='eval
57 arg=$1;
58 case $arg in #(
59 *"$as_nl"*)
60 expr "X$arg" : "X\\(.*\\)$as_nl";
61 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
62 esac;
63 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
65 export as_echo_n_body
66 as_echo_n='sh -c $as_echo_n_body as_echo'
68 export as_echo_body
69 as_echo='sh -c $as_echo_body as_echo'
72 # The user is always right.
73 if test "${PATH_SEPARATOR+set}" != set; then
74 PATH_SEPARATOR=:
75 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
76 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
77 PATH_SEPARATOR=';'
82 # IFS
83 # We need space, tab and new line, in precisely that order. Quoting is
84 # there to prevent editors from complaining about space-tab.
85 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
86 # splitting by setting IFS to empty value.)
87 IFS=" "" $as_nl"
89 # Find who we are. Look in the path if we contain no directory separator.
90 case $0 in #((
91 *[\\/]* ) as_myself=$0 ;;
92 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
93 for as_dir in $PATH
95 IFS=$as_save_IFS
96 test -z "$as_dir" && as_dir=.
97 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
98 done
99 IFS=$as_save_IFS
102 esac
103 # We did not find ourselves, most probably we were run as `sh COMMAND'
104 # in which case we are not to be found in the path.
105 if test "x$as_myself" = x; then
106 as_myself=$0
108 if test ! -f "$as_myself"; then
109 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
110 exit 1
113 # Unset variables that we do not need and which cause bugs (e.g. in
114 # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
115 # suppresses any "Segmentation fault" message there. '((' could
116 # trigger a bug in pdksh 5.2.14.
117 for as_var in BASH_ENV ENV MAIL MAILPATH
118 do eval test x\${$as_var+set} = xset \
119 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
120 done
121 PS1='$ '
122 PS2='> '
123 PS4='+ '
125 # NLS nuisances.
126 LC_ALL=C
127 export LC_ALL
128 LANGUAGE=C
129 export LANGUAGE
131 # CDPATH.
132 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
134 if test "x$CONFIG_SHELL" = x; then
135 as_bourne_compatible="if test -n \"\${ZSH_VERSION+set}\" && (emulate sh) >/dev/null 2>&1; then :
136 emulate sh
137 NULLCMD=:
138 # Pre-4.2 versions of Zsh do word splitting on \${1+\"\$@\"}, which
139 # is contrary to our usage. Disable this feature.
140 alias -g '\${1+\"\$@\"}'='\"\$@\"'
141 setopt NO_GLOB_SUBST
142 else
143 case \`(set -o) 2>/dev/null\` in #(
144 *posix*) :
145 set -o posix ;; #(
146 *) :
148 esac
151 as_required="as_fn_return () { (exit \$1); }
152 as_fn_success () { as_fn_return 0; }
153 as_fn_failure () { as_fn_return 1; }
154 as_fn_ret_success () { return 0; }
155 as_fn_ret_failure () { return 1; }
157 exitcode=0
158 as_fn_success || { exitcode=1; echo as_fn_success failed.; }
159 as_fn_failure && { exitcode=1; echo as_fn_failure succeeded.; }
160 as_fn_ret_success || { exitcode=1; echo as_fn_ret_success failed.; }
161 as_fn_ret_failure && { exitcode=1; echo as_fn_ret_failure succeeded.; }
162 if ( set x; as_fn_ret_success y && test x = \"\$1\" ); then :
164 else
165 exitcode=1; echo positional parameters were not saved.
167 test x\$exitcode = x0 || exit 1"
168 as_suggested=" as_lineno_1=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_1a=\$LINENO
169 as_lineno_2=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_2a=\$LINENO
170 eval 'test \"x\$as_lineno_1'\$as_run'\" != \"x\$as_lineno_2'\$as_run'\" &&
171 test \"x\`expr \$as_lineno_1'\$as_run' + 1\`\" = \"x\$as_lineno_2'\$as_run'\"' || exit 1
172 test \$(( 1 + 1 )) = 2 || exit 1
174 test -n \"\${ZSH_VERSION+set}\${BASH_VERSION+set}\" || (
175 ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
176 ECHO=\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO
177 ECHO=\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO
178 PATH=/empty FPATH=/empty; export PATH FPATH
179 test \"X\`printf %s \$ECHO\`\" = \"X\$ECHO\" \\
180 || test \"X\`print -r -- \$ECHO\`\" = \"X\$ECHO\" ) || exit 1"
181 if (eval "$as_required") 2>/dev/null; then :
182 as_have_required=yes
183 else
184 as_have_required=no
186 if test x$as_have_required = xyes && (eval "$as_suggested") 2>/dev/null; then :
188 else
189 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
190 as_found=false
191 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
193 IFS=$as_save_IFS
194 test -z "$as_dir" && as_dir=.
195 as_found=:
196 case $as_dir in #(
198 for as_base in sh bash ksh sh5; do
199 # Try only shells that exist, to save several forks.
200 as_shell=$as_dir/$as_base
201 if { test -f "$as_shell" || test -f "$as_shell.exe"; } &&
202 { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$as_shell"; } 2>/dev/null; then :
203 CONFIG_SHELL=$as_shell as_have_required=yes
204 if { $as_echo "$as_bourne_compatible""$as_suggested" | as_run=a "$as_shell"; } 2>/dev/null; then :
205 break 2
208 done;;
209 esac
210 as_found=false
211 done
212 $as_found || { if { test -f "$SHELL" || test -f "$SHELL.exe"; } &&
213 { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$SHELL"; } 2>/dev/null; then :
214 CONFIG_SHELL=$SHELL as_have_required=yes
215 fi; }
216 IFS=$as_save_IFS
219 if test "x$CONFIG_SHELL" != x; then :
220 # We cannot yet assume a decent shell, so we have to provide a
221 # neutralization value for shells without unset; and this also
222 # works around shells that cannot unset nonexistent variables.
223 BASH_ENV=/dev/null
224 ENV=/dev/null
225 (unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
226 export CONFIG_SHELL
227 exec "$CONFIG_SHELL" "$as_myself" ${1+"$@"}
230 if test x$as_have_required = xno; then :
231 $as_echo "$0: This script requires a shell more modern than all"
232 $as_echo "$0: the shells that I found on your system."
233 if test x${ZSH_VERSION+set} = xset ; then
234 $as_echo "$0: In particular, zsh $ZSH_VERSION has bugs and should"
235 $as_echo "$0: be upgraded to zsh 4.3.4 or later."
236 else
237 $as_echo "$0: Please tell bug-autoconf@gnu.org about your system,
238 $0: including any error possibly output before this
239 $0: message. Then install a modern shell, or manually run
240 $0: the script under such a shell if you do have one."
242 exit 1
246 SHELL=${CONFIG_SHELL-/bin/sh}
247 export SHELL
248 # Unset more variables known to interfere with behavior of common tools.
249 CLICOLOR_FORCE= GREP_OPTIONS=
250 unset CLICOLOR_FORCE GREP_OPTIONS
252 ## --------------------- ##
253 ## M4sh Shell Functions. ##
254 ## --------------------- ##
255 # as_fn_unset VAR
256 # ---------------
257 # Portably unset VAR.
258 as_fn_unset ()
260 { eval $1=; unset $1;}
262 as_unset=as_fn_unset
264 # as_fn_set_status STATUS
265 # -----------------------
266 # Set $? to STATUS, without forking.
267 as_fn_set_status ()
269 return $1
270 } # as_fn_set_status
272 # as_fn_exit STATUS
273 # -----------------
274 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
275 as_fn_exit ()
277 set +e
278 as_fn_set_status $1
279 exit $1
280 } # as_fn_exit
282 # as_fn_mkdir_p
283 # -------------
284 # Create "$as_dir" as a directory, including parents if necessary.
285 as_fn_mkdir_p ()
288 case $as_dir in #(
289 -*) as_dir=./$as_dir;;
290 esac
291 test -d "$as_dir" || eval $as_mkdir_p || {
292 as_dirs=
293 while :; do
294 case $as_dir in #(
295 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
296 *) as_qdir=$as_dir;;
297 esac
298 as_dirs="'$as_qdir' $as_dirs"
299 as_dir=`$as_dirname -- "$as_dir" ||
300 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
301 X"$as_dir" : 'X\(//\)[^/]' \| \
302 X"$as_dir" : 'X\(//\)$' \| \
303 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
304 $as_echo X"$as_dir" |
305 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
306 s//\1/
309 /^X\(\/\/\)[^/].*/{
310 s//\1/
313 /^X\(\/\/\)$/{
314 s//\1/
317 /^X\(\/\).*/{
318 s//\1/
321 s/.*/./; q'`
322 test -d "$as_dir" && break
323 done
324 test -z "$as_dirs" || eval "mkdir $as_dirs"
325 } || test -d "$as_dir" || as_fn_error "cannot create directory $as_dir"
328 } # as_fn_mkdir_p
329 # as_fn_append VAR VALUE
330 # ----------------------
331 # Append the text in VALUE to the end of the definition contained in VAR. Take
332 # advantage of any shell optimizations that allow amortized linear growth over
333 # repeated appends, instead of the typical quadratic growth present in naive
334 # implementations.
335 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
336 eval 'as_fn_append ()
338 eval $1+=\$2
340 else
341 as_fn_append ()
343 eval $1=\$$1\$2
345 fi # as_fn_append
347 # as_fn_arith ARG...
348 # ------------------
349 # Perform arithmetic evaluation on the ARGs, and store the result in the
350 # global $as_val. Take advantage of shells that can avoid forks. The arguments
351 # must be portable across $(()) and expr.
352 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
353 eval 'as_fn_arith ()
355 as_val=$(( $* ))
357 else
358 as_fn_arith ()
360 as_val=`expr "$@" || test $? -eq 1`
362 fi # as_fn_arith
365 # as_fn_error ERROR [LINENO LOG_FD]
366 # ---------------------------------
367 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
368 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
369 # script with status $?, using 1 if that was 0.
370 as_fn_error ()
372 as_status=$?; test $as_status -eq 0 && as_status=1
373 if test "$3"; then
374 as_lineno=${as_lineno-"$2"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
375 $as_echo "$as_me:${as_lineno-$LINENO}: error: $1" >&$3
377 $as_echo "$as_me: error: $1" >&2
378 as_fn_exit $as_status
379 } # as_fn_error
381 if expr a : '\(a\)' >/dev/null 2>&1 &&
382 test "X`expr 00001 : '.*\(...\)'`" = X001; then
383 as_expr=expr
384 else
385 as_expr=false
388 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
389 as_basename=basename
390 else
391 as_basename=false
394 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
395 as_dirname=dirname
396 else
397 as_dirname=false
400 as_me=`$as_basename -- "$0" ||
401 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
402 X"$0" : 'X\(//\)$' \| \
403 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
404 $as_echo X/"$0" |
405 sed '/^.*\/\([^/][^/]*\)\/*$/{
406 s//\1/
409 /^X\/\(\/\/\)$/{
410 s//\1/
413 /^X\/\(\/\).*/{
414 s//\1/
417 s/.*/./; q'`
419 # Avoid depending upon Character Ranges.
420 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
421 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
422 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
423 as_cr_digits='0123456789'
424 as_cr_alnum=$as_cr_Letters$as_cr_digits
427 as_lineno_1=$LINENO as_lineno_1a=$LINENO
428 as_lineno_2=$LINENO as_lineno_2a=$LINENO
429 eval 'test "x$as_lineno_1'$as_run'" != "x$as_lineno_2'$as_run'" &&
430 test "x`expr $as_lineno_1'$as_run' + 1`" = "x$as_lineno_2'$as_run'"' || {
431 # Blame Lee E. McMahon (1931-1989) for sed's syntax. :-)
432 sed -n '
434 /[$]LINENO/=
435 ' <$as_myself |
436 sed '
437 s/[$]LINENO.*/&-/
438 t lineno
440 :lineno
442 :loop
443 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
444 t loop
445 s/-\n.*//
446 ' >$as_me.lineno &&
447 chmod +x "$as_me.lineno" ||
448 { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2; as_fn_exit 1; }
450 # Don't try to exec as it changes $[0], causing all sort of problems
451 # (the dirname of $[0] is not the place where we might find the
452 # original and so on. Autoconf is especially sensitive to this).
453 . "./$as_me.lineno"
454 # Exit status is that of the last command.
455 exit
458 ECHO_C= ECHO_N= ECHO_T=
459 case `echo -n x` in #(((((
460 -n*)
461 case `echo 'xy\c'` in
462 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
463 xy) ECHO_C='\c';;
464 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
465 ECHO_T=' ';;
466 esac;;
468 ECHO_N='-n';;
469 esac
471 rm -f conf$$ conf$$.exe conf$$.file
472 if test -d conf$$.dir; then
473 rm -f conf$$.dir/conf$$.file
474 else
475 rm -f conf$$.dir
476 mkdir conf$$.dir 2>/dev/null
478 if (echo >conf$$.file) 2>/dev/null; then
479 if ln -s conf$$.file conf$$ 2>/dev/null; then
480 as_ln_s='ln -s'
481 # ... but there are two gotchas:
482 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
483 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
484 # In both cases, we have to default to `cp -p'.
485 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
486 as_ln_s='cp -p'
487 elif ln conf$$.file conf$$ 2>/dev/null; then
488 as_ln_s=ln
489 else
490 as_ln_s='cp -p'
492 else
493 as_ln_s='cp -p'
495 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
496 rmdir conf$$.dir 2>/dev/null
498 if mkdir -p . 2>/dev/null; then
499 as_mkdir_p='mkdir -p "$as_dir"'
500 else
501 test -d ./-p && rmdir ./-p
502 as_mkdir_p=false
505 if test -x / >/dev/null 2>&1; then
506 as_test_x='test -x'
507 else
508 if ls -dL / >/dev/null 2>&1; then
509 as_ls_L_option=L
510 else
511 as_ls_L_option=
513 as_test_x='
514 eval sh -c '\''
515 if test -d "$1"; then
516 test -d "$1/.";
517 else
518 case $1 in #(
519 -*)set "./$1";;
520 esac;
521 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in #((
522 ???[sx]*):;;*)false;;esac;fi
523 '\'' sh
526 as_executable_p=$as_test_x
528 # Sed expression to map a string onto a valid CPP name.
529 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
531 # Sed expression to map a string onto a valid variable name.
532 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
534 SHELL=${CONFIG_SHELL-/bin/sh}
537 exec 7<&0 </dev/null 6>&1
539 # Name of the host.
540 # hostname on some systems (SVR3.2, Linux) returns a bogus exit status,
541 # so uname gets run too.
542 ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
545 # Initializations.
547 ac_default_prefix=/usr/local
548 ac_clean_files=
549 ac_config_libobj_dir=.
550 LIBOBJS=
551 cross_compiling=no
552 subdirs=
553 MFLAGS=
554 MAKEFLAGS=
556 # Identity of this package.
557 PACKAGE_NAME=
558 PACKAGE_TARNAME=
559 PACKAGE_VERSION=
560 PACKAGE_STRING=
561 PACKAGE_BUGREPORT=
562 PACKAGE_URL=
564 ac_unique_file="tree.c"
565 # Factoring default headers for most tests.
566 ac_includes_default="\
567 #include <stdio.h>
568 #ifdef HAVE_SYS_TYPES_H
569 # include <sys/types.h>
570 #endif
571 #ifdef HAVE_SYS_STAT_H
572 # include <sys/stat.h>
573 #endif
574 #ifdef STDC_HEADERS
575 # include <stdlib.h>
576 # include <stddef.h>
577 #else
578 # ifdef HAVE_STDLIB_H
579 # include <stdlib.h>
580 # endif
581 #endif
582 #ifdef HAVE_STRING_H
583 # if !defined STDC_HEADERS && defined HAVE_MEMORY_H
584 # include <memory.h>
585 # endif
586 # include <string.h>
587 #endif
588 #ifdef HAVE_STRINGS_H
589 # include <strings.h>
590 #endif
591 #ifdef HAVE_INTTYPES_H
592 # include <inttypes.h>
593 #endif
594 #ifdef HAVE_STDINT_H
595 # include <stdint.h>
596 #endif
597 #ifdef HAVE_UNISTD_H
598 # include <unistd.h>
599 #endif"
601 ac_subst_vars='LTLIBOBJS
602 LIBOBJS
603 PICFLAG
604 enable_host_shared
605 enable_plugin
606 pluginlibs
607 ISLINC
608 ISLLIBS
609 GMPINC
610 GMPLIBS
611 target_cpu_default
612 fortran_target_objs
613 cxx_target_objs
614 c_target_objs
615 use_gcc_stdint
616 xm_defines
617 xm_include_list
618 xm_file_list
619 tm_p_include_list
620 tm_p_file_list
621 tm_defines
622 tm_include_list
623 tm_file_list
624 common_out_object_file
625 common_out_file
626 out_object_file
627 out_file
628 objc_boehm_gc
629 md_file
630 local_prefix
631 lang_tree_files
632 lang_specs_files
633 lang_opt_files
634 install
635 out_host_hook_obj
636 host_xm_defines
637 host_xm_include_list
638 host_xm_file_list
639 host_exeext
640 gcc_gxx_include_dir_add_sysroot
641 gcc_gxx_include_dir
642 gcc_config_arguments
643 float_h_file
644 extra_programs
645 extra_objs
646 extra_headers_list
647 user_headers_inc_next_post
648 user_headers_inc_next_pre
649 extra_gcc_objs
650 TM_MULTILIB_EXCEPTIONS_CONFIG
651 TM_MULTILIB_CONFIG
652 TM_ENDIAN_CONFIG
653 tmake_file
654 xmake_file
655 cpp_install_dir
656 check_languages
657 build_file_translate
658 build_xm_defines
659 build_xm_include_list
660 build_xm_file_list
661 build_install_headers_dir
662 build_exeext
663 all_selected_languages
664 all_languages
665 all_lang_makefrags
666 all_gtfiles
667 all_compilers
668 srcdir
669 subdirs
670 dollar
671 gcc_tooldir
672 enable_lto
673 DO_LINK_MUTEX
674 MAINT
675 zlibinc
676 zlibdir
677 HOST_LIBS
678 libgcc_visibility
679 gcc_cv_readelf
680 gcc_cv_objdump
681 ORIGINAL_NM_FOR_TARGET
682 gcc_cv_nm
683 ORIGINAL_LD_GOLD_FOR_TARGET
684 ORIGINAL_LD_BFD_FOR_TARGET
685 ORIGINAL_LD_FOR_TARGET
686 ORIGINAL_PLUGIN_LD_FOR_TARGET
687 gcc_cv_ld
688 ORIGINAL_AS_FOR_TARGET
689 gcc_cv_as
690 enable_fast_install
691 objdir
692 OTOOL64
693 OTOOL
694 LIPO
695 NMEDIT
696 DSYMUTIL
697 STRIP
698 OBJDUMP
699 ac_ct_DUMPBIN
700 DUMPBIN
702 FGREP
704 LIBTOOL
705 collect2
706 STMP_FIXINC
707 BUILD_LDFLAGS
708 BUILD_CXXFLAGS
709 BUILD_CFLAGS
710 CXX_FOR_BUILD
711 CC_FOR_BUILD
712 inhibit_libc
713 SYSTEM_HEADER_DIR
715 CROSS
716 CATOBJEXT
717 GENCAT
718 INSTOBJEXT
719 DATADIRNAME
720 CATALOGS
721 POSUB
722 GMSGFMT
723 XGETTEXT
724 INCINTL
725 LIBINTL_DEP
726 LIBINTL
727 USE_NLS
728 extra_opt_files
729 extra_modes_file
730 NATIVE_SYSTEM_HEADER_DIR
731 objext
732 manext
733 LIBICONV_DEP
734 LTLIBICONV
735 LIBICONV
736 LDEXP_LIB
737 EXTRA_GCC_LIBS
738 GNAT_LIBEXC
739 COLLECT2_LIBS
740 CXXDEPMODE
741 DEPDIR
742 am__leading_dot
743 CXXCPP
744 doc_build_sys
747 BISON
748 FLEX
749 GENERATED_MANPAGES
750 BUILD_INFO
751 MAKEINFO
752 have_mktemp_command
753 make_compare_target
754 INSTALL_DATA
755 INSTALL_PROGRAM
756 INSTALL
757 ranlib_flags
758 RANLIB
760 LN_S
762 SET_MAKE
763 accel_dir_suffix
764 real_target_noncanonical
765 enable_as_accelerator
766 REPORT_BUGS_TEXI
767 REPORT_BUGS_TO
768 PKGVERSION
769 CONFIGURE_SPECS
770 CROSS_SYSTEM_HEADER_DIR
771 TARGET_SYSTEM_ROOT_DEFINE
772 TARGET_SYSTEM_ROOT
773 SYSROOT_CFLAGS_FOR_TARGET
774 enable_shared
775 enable_fixed_point
776 enable_decimal_float
777 with_float
778 with_cpu
779 enable_multiarch
780 enable_multilib
781 coverage_flags
782 valgrind_command
783 valgrind_path_defines
784 valgrind_path
785 TREECHECKING
786 TREEBROWSER
787 nocommon_flag
788 noexception_flags
789 warn_cxxflags
790 warn_cflags
791 c_strict_warn
792 strict_warn
793 c_loose_warn
794 loose_warn
795 EGREP
796 GREP
798 PICFLAG_FOR_TARGET
799 GNATMAKE
800 GNATBIND
801 ac_ct_CXX
802 CXXFLAGS
804 OBJEXT
805 EXEEXT
806 ac_ct_CC
807 CPPFLAGS
808 LDFLAGS
809 CFLAGS
811 GENINSRC
812 target_subdir
813 host_subdir
814 build_subdir
815 build_libsubdir
816 target_noncanonical
817 target_os
818 target_vendor
819 target_cpu
820 target
821 host_os
822 host_vendor
823 host_cpu
824 host
825 build_os
826 build_vendor
827 build_cpu
828 build
829 target_alias
830 host_alias
831 build_alias
832 LIBS
833 ECHO_T
834 ECHO_N
835 ECHO_C
836 DEFS
837 mandir
838 localedir
839 libdir
840 psdir
841 pdfdir
842 dvidir
843 htmldir
844 infodir
845 docdir
846 oldincludedir
847 includedir
848 localstatedir
849 sharedstatedir
850 sysconfdir
851 datadir
852 datarootdir
853 libexecdir
854 sbindir
855 bindir
856 program_transform_name
857 prefix
858 exec_prefix
859 PACKAGE_URL
860 PACKAGE_BUGREPORT
861 PACKAGE_STRING
862 PACKAGE_VERSION
863 PACKAGE_TARNAME
864 PACKAGE_NAME
865 PATH_SEPARATOR
866 SHELL'
867 ac_subst_files='option_includes
868 language_hooks'
869 ac_user_opts='
870 enable_option_checking
871 with_build_libsubdir
872 with_local_prefix
873 with_gxx_include_dir
874 with_cpp_install_dir
875 enable_generated_files_in_srcdir
876 with_gnu_ld
877 with_ld
878 with_demangler_in_ld
879 with_gnu_as
880 with_as
881 enable_largefile
882 enable_build_format_warnings
883 enable_werror_always
884 enable_checking
885 enable_coverage
886 enable_gather_detailed_mem_stats
887 enable_valgrind_annotations
888 with_stabs
889 enable_multilib
890 enable_multiarch
891 enable___cxa_atexit
892 enable_decimal_float
893 enable_fixed_point
894 enable_threads
895 enable_tls
896 enable_objc_gc
897 with_dwarf2
898 enable_shared
899 with_native_system_header_dir
900 with_build_sysroot
901 with_sysroot
902 with_specs
903 with_pkgversion
904 with_bugurl
905 enable_languages
906 with_multilib_list
907 enable_rpath
908 with_libiconv_prefix
909 enable_sjlj_exceptions
910 enable_secureplt
911 enable_leading_mingw64_underscores
912 enable_cld
913 enable_frame_pointer
914 enable_win32_registry
915 enable_static
916 with_pic
917 enable_fast_install
918 enable_libtool_lock
919 enable_ld
920 enable_gold
921 with_plugin_ld
922 enable_gnu_indirect_function
923 enable_initfini_array
924 enable_comdat
925 enable_fix_cortex_a53_835769
926 with_glibc_version
927 enable_gnu_unique_object
928 enable_linker_build_id
929 with_long_double_128
930 with_gc
931 with_system_zlib
932 enable_maintainer_mode
933 enable_link_mutex
934 enable_version_specific_runtime_libs
935 enable_plugin
936 enable_host_shared
937 enable_libquadmath_support
938 with_linker_hash_style
939 with_diagnostics_color
941 ac_precious_vars='build_alias
942 host_alias
943 target_alias
945 CFLAGS
946 LDFLAGS
947 LIBS
948 CPPFLAGS
950 CXXFLAGS
953 CXXCPP
954 GMPLIBS
955 GMPINC
956 ISLLIBS
957 ISLINC'
960 # Initialize some variables set by options.
961 ac_init_help=
962 ac_init_version=false
963 ac_unrecognized_opts=
964 ac_unrecognized_sep=
965 # The variables have the same names as the options, with
966 # dashes changed to underlines.
967 cache_file=/dev/null
968 exec_prefix=NONE
969 no_create=
970 no_recursion=
971 prefix=NONE
972 program_prefix=NONE
973 program_suffix=NONE
974 program_transform_name=s,x,x,
975 silent=
976 site=
977 srcdir=
978 verbose=
979 x_includes=NONE
980 x_libraries=NONE
982 # Installation directory options.
983 # These are left unexpanded so users can "make install exec_prefix=/foo"
984 # and all the variables that are supposed to be based on exec_prefix
985 # by default will actually change.
986 # Use braces instead of parens because sh, perl, etc. also accept them.
987 # (The list follows the same order as the GNU Coding Standards.)
988 bindir='${exec_prefix}/bin'
989 sbindir='${exec_prefix}/sbin'
990 libexecdir='${exec_prefix}/libexec'
991 datarootdir='${prefix}/share'
992 datadir='${datarootdir}'
993 sysconfdir='${prefix}/etc'
994 sharedstatedir='${prefix}/com'
995 localstatedir='${prefix}/var'
996 includedir='${prefix}/include'
997 oldincludedir='/usr/include'
998 docdir='${datarootdir}/doc/${PACKAGE}'
999 infodir='${datarootdir}/info'
1000 htmldir='${docdir}'
1001 dvidir='${docdir}'
1002 pdfdir='${docdir}'
1003 psdir='${docdir}'
1004 libdir='${exec_prefix}/lib'
1005 localedir='${datarootdir}/locale'
1006 mandir='${datarootdir}/man'
1008 ac_prev=
1009 ac_dashdash=
1010 for ac_option
1012 # If the previous option needs an argument, assign it.
1013 if test -n "$ac_prev"; then
1014 eval $ac_prev=\$ac_option
1015 ac_prev=
1016 continue
1019 case $ac_option in
1020 *=*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
1021 *) ac_optarg=yes ;;
1022 esac
1024 # Accept the important Cygnus configure options, so we can diagnose typos.
1026 case $ac_dashdash$ac_option in
1028 ac_dashdash=yes ;;
1030 -bindir | --bindir | --bindi | --bind | --bin | --bi)
1031 ac_prev=bindir ;;
1032 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
1033 bindir=$ac_optarg ;;
1035 -build | --build | --buil | --bui | --bu)
1036 ac_prev=build_alias ;;
1037 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
1038 build_alias=$ac_optarg ;;
1040 -cache-file | --cache-file | --cache-fil | --cache-fi \
1041 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
1042 ac_prev=cache_file ;;
1043 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
1044 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
1045 cache_file=$ac_optarg ;;
1047 --config-cache | -C)
1048 cache_file=config.cache ;;
1050 -datadir | --datadir | --datadi | --datad)
1051 ac_prev=datadir ;;
1052 -datadir=* | --datadir=* | --datadi=* | --datad=*)
1053 datadir=$ac_optarg ;;
1055 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
1056 | --dataroo | --dataro | --datar)
1057 ac_prev=datarootdir ;;
1058 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
1059 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
1060 datarootdir=$ac_optarg ;;
1062 -disable-* | --disable-*)
1063 ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
1064 # Reject names that are not valid shell variable names.
1065 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1066 as_fn_error "invalid feature name: $ac_useropt"
1067 ac_useropt_orig=$ac_useropt
1068 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1069 case $ac_user_opts in
1071 "enable_$ac_useropt"
1072 "*) ;;
1073 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
1074 ac_unrecognized_sep=', ';;
1075 esac
1076 eval enable_$ac_useropt=no ;;
1078 -docdir | --docdir | --docdi | --doc | --do)
1079 ac_prev=docdir ;;
1080 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
1081 docdir=$ac_optarg ;;
1083 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
1084 ac_prev=dvidir ;;
1085 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
1086 dvidir=$ac_optarg ;;
1088 -enable-* | --enable-*)
1089 ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
1090 # Reject names that are not valid shell variable names.
1091 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1092 as_fn_error "invalid feature name: $ac_useropt"
1093 ac_useropt_orig=$ac_useropt
1094 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1095 case $ac_user_opts in
1097 "enable_$ac_useropt"
1098 "*) ;;
1099 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
1100 ac_unrecognized_sep=', ';;
1101 esac
1102 eval enable_$ac_useropt=\$ac_optarg ;;
1104 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
1105 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
1106 | --exec | --exe | --ex)
1107 ac_prev=exec_prefix ;;
1108 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
1109 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
1110 | --exec=* | --exe=* | --ex=*)
1111 exec_prefix=$ac_optarg ;;
1113 -gas | --gas | --ga | --g)
1114 # Obsolete; use --with-gas.
1115 with_gas=yes ;;
1117 -help | --help | --hel | --he | -h)
1118 ac_init_help=long ;;
1119 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
1120 ac_init_help=recursive ;;
1121 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
1122 ac_init_help=short ;;
1124 -host | --host | --hos | --ho)
1125 ac_prev=host_alias ;;
1126 -host=* | --host=* | --hos=* | --ho=*)
1127 host_alias=$ac_optarg ;;
1129 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
1130 ac_prev=htmldir ;;
1131 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
1132 | --ht=*)
1133 htmldir=$ac_optarg ;;
1135 -includedir | --includedir | --includedi | --included | --include \
1136 | --includ | --inclu | --incl | --inc)
1137 ac_prev=includedir ;;
1138 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
1139 | --includ=* | --inclu=* | --incl=* | --inc=*)
1140 includedir=$ac_optarg ;;
1142 -infodir | --infodir | --infodi | --infod | --info | --inf)
1143 ac_prev=infodir ;;
1144 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
1145 infodir=$ac_optarg ;;
1147 -libdir | --libdir | --libdi | --libd)
1148 ac_prev=libdir ;;
1149 -libdir=* | --libdir=* | --libdi=* | --libd=*)
1150 libdir=$ac_optarg ;;
1152 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
1153 | --libexe | --libex | --libe)
1154 ac_prev=libexecdir ;;
1155 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
1156 | --libexe=* | --libex=* | --libe=*)
1157 libexecdir=$ac_optarg ;;
1159 -localedir | --localedir | --localedi | --localed | --locale)
1160 ac_prev=localedir ;;
1161 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
1162 localedir=$ac_optarg ;;
1164 -localstatedir | --localstatedir | --localstatedi | --localstated \
1165 | --localstate | --localstat | --localsta | --localst | --locals)
1166 ac_prev=localstatedir ;;
1167 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
1168 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
1169 localstatedir=$ac_optarg ;;
1171 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1172 ac_prev=mandir ;;
1173 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1174 mandir=$ac_optarg ;;
1176 -nfp | --nfp | --nf)
1177 # Obsolete; use --without-fp.
1178 with_fp=no ;;
1180 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1181 | --no-cr | --no-c | -n)
1182 no_create=yes ;;
1184 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1185 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1186 no_recursion=yes ;;
1188 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1189 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1190 | --oldin | --oldi | --old | --ol | --o)
1191 ac_prev=oldincludedir ;;
1192 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1193 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1194 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1195 oldincludedir=$ac_optarg ;;
1197 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1198 ac_prev=prefix ;;
1199 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1200 prefix=$ac_optarg ;;
1202 -program-prefix | --program-prefix | --program-prefi | --program-pref \
1203 | --program-pre | --program-pr | --program-p)
1204 ac_prev=program_prefix ;;
1205 -program-prefix=* | --program-prefix=* | --program-prefi=* \
1206 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1207 program_prefix=$ac_optarg ;;
1209 -program-suffix | --program-suffix | --program-suffi | --program-suff \
1210 | --program-suf | --program-su | --program-s)
1211 ac_prev=program_suffix ;;
1212 -program-suffix=* | --program-suffix=* | --program-suffi=* \
1213 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1214 program_suffix=$ac_optarg ;;
1216 -program-transform-name | --program-transform-name \
1217 | --program-transform-nam | --program-transform-na \
1218 | --program-transform-n | --program-transform- \
1219 | --program-transform | --program-transfor \
1220 | --program-transfo | --program-transf \
1221 | --program-trans | --program-tran \
1222 | --progr-tra | --program-tr | --program-t)
1223 ac_prev=program_transform_name ;;
1224 -program-transform-name=* | --program-transform-name=* \
1225 | --program-transform-nam=* | --program-transform-na=* \
1226 | --program-transform-n=* | --program-transform-=* \
1227 | --program-transform=* | --program-transfor=* \
1228 | --program-transfo=* | --program-transf=* \
1229 | --program-trans=* | --program-tran=* \
1230 | --progr-tra=* | --program-tr=* | --program-t=*)
1231 program_transform_name=$ac_optarg ;;
1233 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1234 ac_prev=pdfdir ;;
1235 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1236 pdfdir=$ac_optarg ;;
1238 -psdir | --psdir | --psdi | --psd | --ps)
1239 ac_prev=psdir ;;
1240 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1241 psdir=$ac_optarg ;;
1243 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1244 | -silent | --silent | --silen | --sile | --sil)
1245 silent=yes ;;
1247 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1248 ac_prev=sbindir ;;
1249 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1250 | --sbi=* | --sb=*)
1251 sbindir=$ac_optarg ;;
1253 -sharedstatedir | --sharedstatedir | --sharedstatedi \
1254 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1255 | --sharedst | --shareds | --shared | --share | --shar \
1256 | --sha | --sh)
1257 ac_prev=sharedstatedir ;;
1258 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1259 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1260 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1261 | --sha=* | --sh=*)
1262 sharedstatedir=$ac_optarg ;;
1264 -site | --site | --sit)
1265 ac_prev=site ;;
1266 -site=* | --site=* | --sit=*)
1267 site=$ac_optarg ;;
1269 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1270 ac_prev=srcdir ;;
1271 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1272 srcdir=$ac_optarg ;;
1274 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1275 | --syscon | --sysco | --sysc | --sys | --sy)
1276 ac_prev=sysconfdir ;;
1277 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1278 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1279 sysconfdir=$ac_optarg ;;
1281 -target | --target | --targe | --targ | --tar | --ta | --t)
1282 ac_prev=target_alias ;;
1283 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1284 target_alias=$ac_optarg ;;
1286 -v | -verbose | --verbose | --verbos | --verbo | --verb)
1287 verbose=yes ;;
1289 -version | --version | --versio | --versi | --vers | -V)
1290 ac_init_version=: ;;
1292 -with-* | --with-*)
1293 ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1294 # Reject names that are not valid shell variable names.
1295 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1296 as_fn_error "invalid package name: $ac_useropt"
1297 ac_useropt_orig=$ac_useropt
1298 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1299 case $ac_user_opts in
1301 "with_$ac_useropt"
1302 "*) ;;
1303 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1304 ac_unrecognized_sep=', ';;
1305 esac
1306 eval with_$ac_useropt=\$ac_optarg ;;
1308 -without-* | --without-*)
1309 ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1310 # Reject names that are not valid shell variable names.
1311 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1312 as_fn_error "invalid package name: $ac_useropt"
1313 ac_useropt_orig=$ac_useropt
1314 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1315 case $ac_user_opts in
1317 "with_$ac_useropt"
1318 "*) ;;
1319 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1320 ac_unrecognized_sep=', ';;
1321 esac
1322 eval with_$ac_useropt=no ;;
1324 --x)
1325 # Obsolete; use --with-x.
1326 with_x=yes ;;
1328 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1329 | --x-incl | --x-inc | --x-in | --x-i)
1330 ac_prev=x_includes ;;
1331 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1332 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1333 x_includes=$ac_optarg ;;
1335 -x-libraries | --x-libraries | --x-librarie | --x-librari \
1336 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1337 ac_prev=x_libraries ;;
1338 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1339 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1340 x_libraries=$ac_optarg ;;
1342 -*) as_fn_error "unrecognized option: \`$ac_option'
1343 Try \`$0 --help' for more information."
1346 *=*)
1347 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1348 # Reject names that are not valid shell variable names.
1349 case $ac_envvar in #(
1350 '' | [0-9]* | *[!_$as_cr_alnum]* )
1351 as_fn_error "invalid variable name: \`$ac_envvar'" ;;
1352 esac
1353 eval $ac_envvar=\$ac_optarg
1354 export $ac_envvar ;;
1357 # FIXME: should be removed in autoconf 3.0.
1358 $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1359 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1360 $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1361 : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
1364 esac
1365 done
1367 if test -n "$ac_prev"; then
1368 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1369 as_fn_error "missing argument to $ac_option"
1372 if test -n "$ac_unrecognized_opts"; then
1373 case $enable_option_checking in
1374 no) ;;
1375 fatal) as_fn_error "unrecognized options: $ac_unrecognized_opts" ;;
1376 *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1377 esac
1380 # Check all directory arguments for consistency.
1381 for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1382 datadir sysconfdir sharedstatedir localstatedir includedir \
1383 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1384 libdir localedir mandir
1386 eval ac_val=\$$ac_var
1387 # Remove trailing slashes.
1388 case $ac_val in
1389 */ )
1390 ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1391 eval $ac_var=\$ac_val;;
1392 esac
1393 # Be sure to have absolute directory names.
1394 case $ac_val in
1395 [\\/$]* | ?:[\\/]* ) continue;;
1396 NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1397 esac
1398 as_fn_error "expected an absolute directory name for --$ac_var: $ac_val"
1399 done
1401 # There might be people who depend on the old broken behavior: `$host'
1402 # used to hold the argument of --host etc.
1403 # FIXME: To remove some day.
1404 build=$build_alias
1405 host=$host_alias
1406 target=$target_alias
1408 # FIXME: To remove some day.
1409 if test "x$host_alias" != x; then
1410 if test "x$build_alias" = x; then
1411 cross_compiling=maybe
1412 $as_echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
1413 If a cross compiler is detected then cross compile mode will be used." >&2
1414 elif test "x$build_alias" != "x$host_alias"; then
1415 cross_compiling=yes
1419 ac_tool_prefix=
1420 test -n "$host_alias" && ac_tool_prefix=$host_alias-
1422 test "$silent" = yes && exec 6>/dev/null
1425 ac_pwd=`pwd` && test -n "$ac_pwd" &&
1426 ac_ls_di=`ls -di .` &&
1427 ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1428 as_fn_error "working directory cannot be determined"
1429 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1430 as_fn_error "pwd does not report name of working directory"
1433 # Find the source files, if location was not specified.
1434 if test -z "$srcdir"; then
1435 ac_srcdir_defaulted=yes
1436 # Try the directory containing this script, then the parent directory.
1437 ac_confdir=`$as_dirname -- "$as_myself" ||
1438 $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1439 X"$as_myself" : 'X\(//\)[^/]' \| \
1440 X"$as_myself" : 'X\(//\)$' \| \
1441 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1442 $as_echo X"$as_myself" |
1443 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1444 s//\1/
1447 /^X\(\/\/\)[^/].*/{
1448 s//\1/
1451 /^X\(\/\/\)$/{
1452 s//\1/
1455 /^X\(\/\).*/{
1456 s//\1/
1459 s/.*/./; q'`
1460 srcdir=$ac_confdir
1461 if test ! -r "$srcdir/$ac_unique_file"; then
1462 srcdir=..
1464 else
1465 ac_srcdir_defaulted=no
1467 if test ! -r "$srcdir/$ac_unique_file"; then
1468 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1469 as_fn_error "cannot find sources ($ac_unique_file) in $srcdir"
1471 ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1472 ac_abs_confdir=`(
1473 cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error "$ac_msg"
1474 pwd)`
1475 # When building in place, set srcdir=.
1476 if test "$ac_abs_confdir" = "$ac_pwd"; then
1477 srcdir=.
1479 # Remove unnecessary trailing slashes from srcdir.
1480 # Double slashes in file names in object file debugging info
1481 # mess up M-x gdb in Emacs.
1482 case $srcdir in
1483 */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1484 esac
1485 for ac_var in $ac_precious_vars; do
1486 eval ac_env_${ac_var}_set=\${${ac_var}+set}
1487 eval ac_env_${ac_var}_value=\$${ac_var}
1488 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1489 eval ac_cv_env_${ac_var}_value=\$${ac_var}
1490 done
1493 # Report the --help message.
1495 if test "$ac_init_help" = "long"; then
1496 # Omit some internal or obsolete options to make the list less imposing.
1497 # This message is too long to be a string in the A/UX 3.1 sh.
1498 cat <<_ACEOF
1499 \`configure' configures this package to adapt to many kinds of systems.
1501 Usage: $0 [OPTION]... [VAR=VALUE]...
1503 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1504 VAR=VALUE. See below for descriptions of some of the useful variables.
1506 Defaults for the options are specified in brackets.
1508 Configuration:
1509 -h, --help display this help and exit
1510 --help=short display options specific to this package
1511 --help=recursive display the short help of all the included packages
1512 -V, --version display version information and exit
1513 -q, --quiet, --silent do not print \`checking...' messages
1514 --cache-file=FILE cache test results in FILE [disabled]
1515 -C, --config-cache alias for \`--cache-file=config.cache'
1516 -n, --no-create do not create output files
1517 --srcdir=DIR find the sources in DIR [configure dir or \`..']
1519 Installation directories:
1520 --prefix=PREFIX install architecture-independent files in PREFIX
1521 [$ac_default_prefix]
1522 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
1523 [PREFIX]
1525 By default, \`make install' will install all the files in
1526 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1527 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1528 for instance \`--prefix=\$HOME'.
1530 For better control, use the options below.
1532 Fine tuning of the installation directories:
1533 --bindir=DIR user executables [EPREFIX/bin]
1534 --sbindir=DIR system admin executables [EPREFIX/sbin]
1535 --libexecdir=DIR program executables [EPREFIX/libexec]
1536 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1537 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1538 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1539 --libdir=DIR object code libraries [EPREFIX/lib]
1540 --includedir=DIR C header files [PREFIX/include]
1541 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1542 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1543 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1544 --infodir=DIR info documentation [DATAROOTDIR/info]
1545 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1546 --mandir=DIR man documentation [DATAROOTDIR/man]
1547 --docdir=DIR documentation root [DATAROOTDIR/doc/PACKAGE]
1548 --htmldir=DIR html documentation [DOCDIR]
1549 --dvidir=DIR dvi documentation [DOCDIR]
1550 --pdfdir=DIR pdf documentation [DOCDIR]
1551 --psdir=DIR ps documentation [DOCDIR]
1552 _ACEOF
1554 cat <<\_ACEOF
1556 Program names:
1557 --program-prefix=PREFIX prepend PREFIX to installed program names
1558 --program-suffix=SUFFIX append SUFFIX to installed program names
1559 --program-transform-name=PROGRAM run sed PROGRAM on installed program names
1561 System types:
1562 --build=BUILD configure for building on BUILD [guessed]
1563 --host=HOST cross-compile to build programs to run on HOST [BUILD]
1564 --target=TARGET configure for building compilers for TARGET [HOST]
1565 _ACEOF
1568 if test -n "$ac_init_help"; then
1570 cat <<\_ACEOF
1572 Optional Features:
1573 --disable-option-checking ignore unrecognized --enable/--with options
1574 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
1575 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
1576 --enable-generated-files-in-srcdir
1577 put copies of generated files in source dir intended
1578 for creating source tarballs for users without
1579 texinfo bison or flex
1580 --disable-largefile omit support for large files
1581 --disable-build-format-warnings
1582 don't use -Wformat while building GCC
1583 --enable-werror-always enable -Werror despite compiler version
1584 --enable-checking[=LIST]
1585 enable expensive run-time checks. With LIST, enable
1586 only specific categories of checks. Categories are:
1587 yes,no,all,none,release. Flags are:
1588 assert,df,fold,gc,gcac,gimple,misc,
1589 rtlflag,rtl,runtime,tree,valgrind,types
1590 --enable-coverage[=LEVEL]
1591 enable compiler's code coverage collection. Use to
1592 measure compiler performance and locate unused parts
1593 of the compiler. With LEVEL, specify optimization.
1594 Values are opt, noopt, default is noopt
1595 --enable-gather-detailed-mem-stats
1596 enable detailed memory allocation stats gathering
1597 --enable-valgrind-annotations
1598 enable valgrind runtime interaction
1599 --enable-multilib enable library support for multiple ABIs
1600 --enable-multiarch enable support for multiarch paths
1601 --enable-__cxa_atexit enable __cxa_atexit for C++
1602 --enable-decimal-float={no,yes,bid,dpd}
1603 enable decimal float extension to C. Selecting 'bid'
1604 or 'dpd' choses which decimal floating point format
1605 to use
1606 --enable-fixed-point enable fixed-point arithmetic extension to C
1607 --enable-threads[=LIB] enable thread usage for target GCC, using LIB thread
1608 package
1609 --enable-tls enable or disable generation of tls code overriding
1610 the assembler check for tls support
1611 --enable-objc-gc enable the use of Boehm's garbage collector with the
1612 GNU Objective-C runtime
1613 --disable-shared don't provide a shared libgcc
1614 --enable-languages=LIST specify which front-ends to build
1615 --disable-rpath do not hardcode runtime library paths
1616 --enable-sjlj-exceptions
1617 arrange to use setjmp/longjmp exception handling
1618 --enable-secureplt enable -msecure-plt by default for PowerPC
1619 --enable-leading-mingw64-underscores
1620 enable leading underscores on 64 bit mingw targets
1621 --enable-cld enable -mcld by default for 32bit x86
1622 --enable-frame-pointer enable -fno-omit-frame-pointer by default for 32bit
1624 --disable-win32-registry
1625 disable lookup of installation paths in the Registry
1626 on Windows hosts
1627 --enable-win32-registry enable registry lookup (default)
1628 --enable-win32-registry=KEY
1629 use KEY instead of GCC version as the last portion
1630 of the registry key
1631 --enable-shared[=PKGS] build shared libraries [default=yes]
1632 --enable-static[=PKGS] build static libraries [default=yes]
1633 --enable-fast-install[=PKGS]
1634 optimize for fast installation [default=yes]
1635 --disable-libtool-lock avoid locking (might break parallel builds)
1636 --enable-ld[=ARG] build ld [ARG={default,yes,no}]
1637 --enable-gold[=ARG] build gold [ARG={default,yes,no}]
1638 --enable-gnu-indirect-function
1639 enable the use of the @gnu_indirect_function to
1640 glibc systems
1641 --enable-initfini-array use .init_array/.fini_array sections
1642 --enable-comdat enable COMDAT group support
1644 --enable-fix-cortex-a53-835769
1645 enable workaround for AArch64 Cortex-A53 erratum
1646 835769 by default
1647 --disable-fix-cortex-a53-835769
1648 disable workaround for AArch64 Cortex-A53 erratum
1649 835769 by default
1651 --enable-gnu-unique-object
1652 enable the use of the @gnu_unique_object ELF
1653 extension on glibc systems
1654 --enable-linker-build-id
1655 compiler will always pass --build-id to linker
1656 --enable-maintainer-mode
1657 enable make rules and dependencies not useful (and
1658 sometimes confusing) to the casual installer
1659 --enable-link-mutex avoid linking multiple front-ends at once to avoid
1660 thrashing on the build machine
1661 --enable-version-specific-runtime-libs
1662 specify that runtime libraries should be installed
1663 in a compiler-specific directory
1664 --enable-plugin enable plugin support
1665 --enable-host-shared build host code as shared libraries
1666 --disable-libquadmath-support
1667 disable libquadmath support for Fortran
1669 Optional Packages:
1670 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1671 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
1672 --with-build-libsubdir=DIR Directory where to find libraries for build system
1673 --with-local-prefix=DIR specifies directory to put local include
1674 --with-gxx-include-dir=DIR
1675 specifies directory to put g++ header files
1676 --with-cpp-install-dir=DIR
1677 install the user visible C preprocessor in DIR
1678 (relative to PREFIX) as well as PREFIX/bin
1679 --with-gnu-ld arrange to work with GNU ld
1680 --with-ld arrange to use the specified ld (full pathname)
1681 --with-demangler-in-ld try to use demangler in GNU ld
1682 --with-gnu-as arrange to work with GNU as
1683 --with-as arrange to use the specified as (full pathname)
1684 --with-stabs arrange to use stabs instead of host debug format
1685 --with-dwarf2 force the default debug format to be DWARF 2
1686 --with-native-system-header-dir=dir
1687 use dir as the directory to look for standard
1688 system header files in. Defaults to /usr/include.
1689 --with-build-sysroot=sysroot
1690 use sysroot as the system root during the build
1691 --with-sysroot[=DIR] search for usr/lib, usr/include, et al, within DIR
1692 --with-specs=SPECS add SPECS to driver command-line processing
1693 --with-pkgversion=PKG Use PKG in the version string in place of "GCC"
1694 --with-bugurl=URL Direct users to URL to report a bug
1695 --with-multilib-list select multilibs (AArch64, SH and x86-64 only)
1696 --with-gnu-ld assume the C compiler uses GNU ld default=no
1697 --with-libiconv-prefix[=DIR] search for libiconv in DIR/include and DIR/lib
1698 --without-libiconv-prefix don't search for libiconv in includedir and libdir
1699 --with-pic try to use only PIC/non-PIC objects [default=use
1700 both]
1701 --with-gnu-ld assume the C compiler uses GNU ld [default=no]
1702 --with-plugin-ld=[ARG] specify the plugin linker
1703 --with-glibc-version=M.N
1704 assume GCC used with glibc version M.N or later
1705 --with-long-double-128 use 128-bit long double by default
1706 --with-gc={page,zone} this option is not supported anymore. It used to
1707 choose the garbage collection mechanism to use with
1708 the compiler
1709 --with-system-zlib use installed libz
1710 --with-linker-hash-style={sysv,gnu,both}
1711 specify the linker hash style
1712 --with-diagnostics-color={never,auto,auto-if-env,always}
1713 specify the default of -fdiagnostics-color option
1714 auto-if-env stands for -fdiagnostics-color=auto if
1715 GCC_COLOR environment variable is present and
1716 -fdiagnostics-color=never otherwise
1718 Some influential environment variables:
1719 CC C compiler command
1720 CFLAGS C compiler flags
1721 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1722 nonstandard directory <lib dir>
1723 LIBS libraries to pass to the linker, e.g. -l<library>
1724 CPPFLAGS C/C++/Objective C preprocessor flags, e.g. -I<include dir> if
1725 you have headers in a nonstandard directory <include dir>
1726 CXX C++ compiler command
1727 CXXFLAGS C++ compiler flags
1728 CPP C preprocessor
1729 CXXCPP C++ preprocessor
1730 GMPLIBS How to link GMP
1731 GMPINC How to find GMP include files
1732 ISLLIBS How to link ISL
1733 ISLINC How to find ISL include files
1735 Use these variables to override the choices made by `configure' or to help
1736 it to find libraries and programs with nonstandard names/locations.
1738 Report bugs to the package provider.
1739 _ACEOF
1740 ac_status=$?
1743 if test "$ac_init_help" = "recursive"; then
1744 # If there are subdirs, report their specific --help.
1745 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1746 test -d "$ac_dir" ||
1747 { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1748 continue
1749 ac_builddir=.
1751 case "$ac_dir" in
1752 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1754 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
1755 # A ".." for each directory in $ac_dir_suffix.
1756 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
1757 case $ac_top_builddir_sub in
1758 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1759 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1760 esac ;;
1761 esac
1762 ac_abs_top_builddir=$ac_pwd
1763 ac_abs_builddir=$ac_pwd$ac_dir_suffix
1764 # for backward compatibility:
1765 ac_top_builddir=$ac_top_build_prefix
1767 case $srcdir in
1768 .) # We are building in place.
1769 ac_srcdir=.
1770 ac_top_srcdir=$ac_top_builddir_sub
1771 ac_abs_top_srcdir=$ac_pwd ;;
1772 [\\/]* | ?:[\\/]* ) # Absolute name.
1773 ac_srcdir=$srcdir$ac_dir_suffix;
1774 ac_top_srcdir=$srcdir
1775 ac_abs_top_srcdir=$srcdir ;;
1776 *) # Relative name.
1777 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1778 ac_top_srcdir=$ac_top_build_prefix$srcdir
1779 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1780 esac
1781 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1783 cd "$ac_dir" || { ac_status=$?; continue; }
1784 # Check for guested configure.
1785 if test -f "$ac_srcdir/configure.gnu"; then
1786 echo &&
1787 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1788 elif test -f "$ac_srcdir/configure"; then
1789 echo &&
1790 $SHELL "$ac_srcdir/configure" --help=recursive
1791 else
1792 $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1793 fi || ac_status=$?
1794 cd "$ac_pwd" || { ac_status=$?; break; }
1795 done
1798 test -n "$ac_init_help" && exit $ac_status
1799 if $ac_init_version; then
1800 cat <<\_ACEOF
1801 configure
1802 generated by GNU Autoconf 2.64
1804 Copyright (C) 2009 Free Software Foundation, Inc.
1805 This configure script is free software; the Free Software Foundation
1806 gives unlimited permission to copy, distribute and modify it.
1807 _ACEOF
1808 exit
1811 ## ------------------------ ##
1812 ## Autoconf initialization. ##
1813 ## ------------------------ ##
1815 # ac_fn_c_try_compile LINENO
1816 # --------------------------
1817 # Try to compile conftest.$ac_ext, and return whether this succeeded.
1818 ac_fn_c_try_compile ()
1820 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1821 rm -f conftest.$ac_objext
1822 if { { ac_try="$ac_compile"
1823 case "(($ac_try" in
1824 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1825 *) ac_try_echo=$ac_try;;
1826 esac
1827 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1828 $as_echo "$ac_try_echo"; } >&5
1829 (eval "$ac_compile") 2>conftest.err
1830 ac_status=$?
1831 if test -s conftest.err; then
1832 grep -v '^ *+' conftest.err >conftest.er1
1833 cat conftest.er1 >&5
1834 mv -f conftest.er1 conftest.err
1836 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1837 test $ac_status = 0; } && {
1838 test -z "$ac_c_werror_flag" ||
1839 test ! -s conftest.err
1840 } && test -s conftest.$ac_objext; then :
1841 ac_retval=0
1842 else
1843 $as_echo "$as_me: failed program was:" >&5
1844 sed 's/^/| /' conftest.$ac_ext >&5
1846 ac_retval=1
1848 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1849 return $ac_retval
1851 } # ac_fn_c_try_compile
1853 # ac_fn_cxx_try_compile LINENO
1854 # ----------------------------
1855 # Try to compile conftest.$ac_ext, and return whether this succeeded.
1856 ac_fn_cxx_try_compile ()
1858 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1859 rm -f conftest.$ac_objext
1860 if { { ac_try="$ac_compile"
1861 case "(($ac_try" in
1862 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1863 *) ac_try_echo=$ac_try;;
1864 esac
1865 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1866 $as_echo "$ac_try_echo"; } >&5
1867 (eval "$ac_compile") 2>conftest.err
1868 ac_status=$?
1869 if test -s conftest.err; then
1870 grep -v '^ *+' conftest.err >conftest.er1
1871 cat conftest.er1 >&5
1872 mv -f conftest.er1 conftest.err
1874 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1875 test $ac_status = 0; } && {
1876 test -z "$ac_cxx_werror_flag" ||
1877 test ! -s conftest.err
1878 } && test -s conftest.$ac_objext; then :
1879 ac_retval=0
1880 else
1881 $as_echo "$as_me: failed program was:" >&5
1882 sed 's/^/| /' conftest.$ac_ext >&5
1884 ac_retval=1
1886 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1887 return $ac_retval
1889 } # ac_fn_cxx_try_compile
1891 # ac_fn_c_try_cpp LINENO
1892 # ----------------------
1893 # Try to preprocess conftest.$ac_ext, and return whether this succeeded.
1894 ac_fn_c_try_cpp ()
1896 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1897 if { { ac_try="$ac_cpp conftest.$ac_ext"
1898 case "(($ac_try" in
1899 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1900 *) ac_try_echo=$ac_try;;
1901 esac
1902 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1903 $as_echo "$ac_try_echo"; } >&5
1904 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
1905 ac_status=$?
1906 if test -s conftest.err; then
1907 grep -v '^ *+' conftest.err >conftest.er1
1908 cat conftest.er1 >&5
1909 mv -f conftest.er1 conftest.err
1911 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1912 test $ac_status = 0; } >/dev/null && {
1913 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
1914 test ! -s conftest.err
1915 }; then :
1916 ac_retval=0
1917 else
1918 $as_echo "$as_me: failed program was:" >&5
1919 sed 's/^/| /' conftest.$ac_ext >&5
1921 ac_retval=1
1923 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1924 return $ac_retval
1926 } # ac_fn_c_try_cpp
1928 # ac_fn_c_check_header_mongrel LINENO HEADER VAR INCLUDES
1929 # -------------------------------------------------------
1930 # Tests whether HEADER exists, giving a warning if it cannot be compiled using
1931 # the include files in INCLUDES and setting the cache variable VAR
1932 # accordingly.
1933 ac_fn_c_check_header_mongrel ()
1935 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1936 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
1937 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1938 $as_echo_n "checking for $2... " >&6; }
1939 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
1940 $as_echo_n "(cached) " >&6
1942 eval ac_res=\$$3
1943 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1944 $as_echo "$ac_res" >&6; }
1945 else
1946 # Is the header compilable?
1947 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5
1948 $as_echo_n "checking $2 usability... " >&6; }
1949 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1950 /* end confdefs.h. */
1952 #include <$2>
1953 _ACEOF
1954 if ac_fn_c_try_compile "$LINENO"; then :
1955 ac_header_compiler=yes
1956 else
1957 ac_header_compiler=no
1959 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1960 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5
1961 $as_echo "$ac_header_compiler" >&6; }
1963 # Is the header present?
1964 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5
1965 $as_echo_n "checking $2 presence... " >&6; }
1966 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1967 /* end confdefs.h. */
1968 #include <$2>
1969 _ACEOF
1970 if ac_fn_c_try_cpp "$LINENO"; then :
1971 ac_header_preproc=yes
1972 else
1973 ac_header_preproc=no
1975 rm -f conftest.err conftest.$ac_ext
1976 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5
1977 $as_echo "$ac_header_preproc" >&6; }
1979 # So? What about this header?
1980 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in #((
1981 yes:no: )
1982 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5
1983 $as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;}
1984 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
1985 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
1987 no:yes:* )
1988 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5
1989 $as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;}
1990 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: check for missing prerequisite headers?" >&5
1991 $as_echo "$as_me: WARNING: $2: check for missing prerequisite headers?" >&2;}
1992 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5
1993 $as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;}
1994 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&5
1995 $as_echo "$as_me: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&2;}
1996 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
1997 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
1999 esac
2000 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2001 $as_echo_n "checking for $2... " >&6; }
2002 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
2003 $as_echo_n "(cached) " >&6
2004 else
2005 eval "$3=\$ac_header_compiler"
2007 eval ac_res=\$$3
2008 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2009 $as_echo "$ac_res" >&6; }
2011 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2013 } # ac_fn_c_check_header_mongrel
2015 # ac_fn_c_try_run LINENO
2016 # ----------------------
2017 # Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
2018 # that executables *can* be run.
2019 ac_fn_c_try_run ()
2021 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2022 if { { ac_try="$ac_link"
2023 case "(($ac_try" in
2024 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2025 *) ac_try_echo=$ac_try;;
2026 esac
2027 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2028 $as_echo "$ac_try_echo"; } >&5
2029 (eval "$ac_link") 2>&5
2030 ac_status=$?
2031 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2032 test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
2033 { { case "(($ac_try" in
2034 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2035 *) ac_try_echo=$ac_try;;
2036 esac
2037 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2038 $as_echo "$ac_try_echo"; } >&5
2039 (eval "$ac_try") 2>&5
2040 ac_status=$?
2041 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2042 test $ac_status = 0; }; }; then :
2043 ac_retval=0
2044 else
2045 $as_echo "$as_me: program exited with status $ac_status" >&5
2046 $as_echo "$as_me: failed program was:" >&5
2047 sed 's/^/| /' conftest.$ac_ext >&5
2049 ac_retval=$ac_status
2051 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
2052 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2053 return $ac_retval
2055 } # ac_fn_c_try_run
2057 # ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
2058 # -------------------------------------------------------
2059 # Tests whether HEADER exists and can be compiled using the include files in
2060 # INCLUDES, setting the cache variable VAR accordingly.
2061 ac_fn_c_check_header_compile ()
2063 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2064 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2065 $as_echo_n "checking for $2... " >&6; }
2066 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
2067 $as_echo_n "(cached) " >&6
2068 else
2069 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2070 /* end confdefs.h. */
2072 #include <$2>
2073 _ACEOF
2074 if ac_fn_c_try_compile "$LINENO"; then :
2075 eval "$3=yes"
2076 else
2077 eval "$3=no"
2079 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2081 eval ac_res=\$$3
2082 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2083 $as_echo "$ac_res" >&6; }
2084 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2086 } # ac_fn_c_check_header_compile
2088 # ac_fn_c_compute_int LINENO EXPR VAR INCLUDES
2089 # --------------------------------------------
2090 # Tries to find the compile-time value of EXPR in a program that includes
2091 # INCLUDES, setting VAR accordingly. Returns whether the value could be
2092 # computed
2093 ac_fn_c_compute_int ()
2095 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2096 if test "$cross_compiling" = yes; then
2097 # Depending upon the size, compute the lo and hi bounds.
2098 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2099 /* end confdefs.h. */
2102 main ()
2104 static int test_array [1 - 2 * !(($2) >= 0)];
2105 test_array [0] = 0
2108 return 0;
2110 _ACEOF
2111 if ac_fn_c_try_compile "$LINENO"; then :
2112 ac_lo=0 ac_mid=0
2113 while :; do
2114 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2115 /* end confdefs.h. */
2118 main ()
2120 static int test_array [1 - 2 * !(($2) <= $ac_mid)];
2121 test_array [0] = 0
2124 return 0;
2126 _ACEOF
2127 if ac_fn_c_try_compile "$LINENO"; then :
2128 ac_hi=$ac_mid; break
2129 else
2130 as_fn_arith $ac_mid + 1 && ac_lo=$as_val
2131 if test $ac_lo -le $ac_mid; then
2132 ac_lo= ac_hi=
2133 break
2135 as_fn_arith 2 '*' $ac_mid + 1 && ac_mid=$as_val
2137 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2138 done
2139 else
2140 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2141 /* end confdefs.h. */
2144 main ()
2146 static int test_array [1 - 2 * !(($2) < 0)];
2147 test_array [0] = 0
2150 return 0;
2152 _ACEOF
2153 if ac_fn_c_try_compile "$LINENO"; then :
2154 ac_hi=-1 ac_mid=-1
2155 while :; do
2156 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2157 /* end confdefs.h. */
2160 main ()
2162 static int test_array [1 - 2 * !(($2) >= $ac_mid)];
2163 test_array [0] = 0
2166 return 0;
2168 _ACEOF
2169 if ac_fn_c_try_compile "$LINENO"; then :
2170 ac_lo=$ac_mid; break
2171 else
2172 as_fn_arith '(' $ac_mid ')' - 1 && ac_hi=$as_val
2173 if test $ac_mid -le $ac_hi; then
2174 ac_lo= ac_hi=
2175 break
2177 as_fn_arith 2 '*' $ac_mid && ac_mid=$as_val
2179 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2180 done
2181 else
2182 ac_lo= ac_hi=
2184 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2186 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2187 # Binary search between lo and hi bounds.
2188 while test "x$ac_lo" != "x$ac_hi"; do
2189 as_fn_arith '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo && ac_mid=$as_val
2190 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2191 /* end confdefs.h. */
2194 main ()
2196 static int test_array [1 - 2 * !(($2) <= $ac_mid)];
2197 test_array [0] = 0
2200 return 0;
2202 _ACEOF
2203 if ac_fn_c_try_compile "$LINENO"; then :
2204 ac_hi=$ac_mid
2205 else
2206 as_fn_arith '(' $ac_mid ')' + 1 && ac_lo=$as_val
2208 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2209 done
2210 case $ac_lo in #((
2211 ?*) eval "$3=\$ac_lo"; ac_retval=0 ;;
2212 '') ac_retval=1 ;;
2213 esac
2214 else
2215 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2216 /* end confdefs.h. */
2218 static long int longval () { return $2; }
2219 static unsigned long int ulongval () { return $2; }
2220 #include <stdio.h>
2221 #include <stdlib.h>
2223 main ()
2226 FILE *f = fopen ("conftest.val", "w");
2227 if (! f)
2228 return 1;
2229 if (($2) < 0)
2231 long int i = longval ();
2232 if (i != ($2))
2233 return 1;
2234 fprintf (f, "%ld", i);
2236 else
2238 unsigned long int i = ulongval ();
2239 if (i != ($2))
2240 return 1;
2241 fprintf (f, "%lu", i);
2243 /* Do not output a trailing newline, as this causes \r\n confusion
2244 on some platforms. */
2245 return ferror (f) || fclose (f) != 0;
2248 return 0;
2250 _ACEOF
2251 if ac_fn_c_try_run "$LINENO"; then :
2252 echo >>conftest.val; read $3 <conftest.val; ac_retval=0
2253 else
2254 ac_retval=1
2256 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
2257 conftest.$ac_objext conftest.beam conftest.$ac_ext
2258 rm -f conftest.val
2261 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2262 return $ac_retval
2264 } # ac_fn_c_compute_int
2266 # ac_fn_c_check_type LINENO TYPE VAR INCLUDES
2267 # -------------------------------------------
2268 # Tests whether TYPE exists after having included INCLUDES, setting cache
2269 # variable VAR accordingly.
2270 ac_fn_c_check_type ()
2272 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2273 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2274 $as_echo_n "checking for $2... " >&6; }
2275 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
2276 $as_echo_n "(cached) " >&6
2277 else
2278 eval "$3=no"
2279 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2280 /* end confdefs.h. */
2283 main ()
2285 if (sizeof ($2))
2286 return 0;
2288 return 0;
2290 _ACEOF
2291 if ac_fn_c_try_compile "$LINENO"; then :
2292 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2293 /* end confdefs.h. */
2296 main ()
2298 if (sizeof (($2)))
2299 return 0;
2301 return 0;
2303 _ACEOF
2304 if ac_fn_c_try_compile "$LINENO"; then :
2306 else
2307 eval "$3=yes"
2309 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2311 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2313 eval ac_res=\$$3
2314 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2315 $as_echo "$ac_res" >&6; }
2316 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2318 } # ac_fn_c_check_type
2320 # ac_fn_c_find_intX_t LINENO BITS VAR
2321 # -----------------------------------
2322 # Finds a signed integer type with width BITS, setting cache variable VAR
2323 # accordingly.
2324 ac_fn_c_find_intX_t ()
2326 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2327 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for int$2_t" >&5
2328 $as_echo_n "checking for int$2_t... " >&6; }
2329 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
2330 $as_echo_n "(cached) " >&6
2331 else
2332 eval "$3=no"
2333 for ac_type in int$2_t 'int' 'long int' \
2334 'long long int' 'short int' 'signed char'; do
2335 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2336 /* end confdefs.h. */
2337 $ac_includes_default
2339 main ()
2341 static int test_array [1 - 2 * !(0 < ($ac_type) (((($ac_type) 1 << ($2 - 2)) - 1) * 2 + 1))];
2342 test_array [0] = 0
2345 return 0;
2347 _ACEOF
2348 if ac_fn_c_try_compile "$LINENO"; then :
2349 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2350 /* end confdefs.h. */
2351 $ac_includes_default
2353 main ()
2355 static int test_array [1 - 2 * !(($ac_type) (((($ac_type) 1 << ($2 - 2)) - 1) * 2 + 1)
2356 < ($ac_type) (((($ac_type) 1 << ($2 - 2)) - 1) * 2 + 2))];
2357 test_array [0] = 0
2360 return 0;
2362 _ACEOF
2363 if ac_fn_c_try_compile "$LINENO"; then :
2365 else
2366 case $ac_type in #(
2367 int$2_t) :
2368 eval "$3=yes" ;; #(
2369 *) :
2370 eval "$3=\$ac_type" ;;
2371 esac
2373 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2375 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2376 eval as_val=\$$3
2377 if test "x$as_val" = x""no; then :
2379 else
2380 break
2382 done
2384 eval ac_res=\$$3
2385 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2386 $as_echo "$ac_res" >&6; }
2387 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2389 } # ac_fn_c_find_intX_t
2391 # ac_fn_c_try_link LINENO
2392 # -----------------------
2393 # Try to link conftest.$ac_ext, and return whether this succeeded.
2394 ac_fn_c_try_link ()
2396 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2397 rm -f conftest.$ac_objext conftest$ac_exeext
2398 if { { ac_try="$ac_link"
2399 case "(($ac_try" in
2400 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2401 *) ac_try_echo=$ac_try;;
2402 esac
2403 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2404 $as_echo "$ac_try_echo"; } >&5
2405 (eval "$ac_link") 2>conftest.err
2406 ac_status=$?
2407 if test -s conftest.err; then
2408 grep -v '^ *+' conftest.err >conftest.er1
2409 cat conftest.er1 >&5
2410 mv -f conftest.er1 conftest.err
2412 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2413 test $ac_status = 0; } && {
2414 test -z "$ac_c_werror_flag" ||
2415 test ! -s conftest.err
2416 } && test -s conftest$ac_exeext && {
2417 test "$cross_compiling" = yes ||
2418 $as_test_x conftest$ac_exeext
2419 }; then :
2420 ac_retval=0
2421 else
2422 $as_echo "$as_me: failed program was:" >&5
2423 sed 's/^/| /' conftest.$ac_ext >&5
2425 ac_retval=1
2427 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
2428 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
2429 # interfere with the next link command; also delete a directory that is
2430 # left behind by Apple's compiler. We do this before executing the actions.
2431 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
2432 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2433 return $ac_retval
2435 } # ac_fn_c_try_link
2437 # ac_fn_c_find_uintX_t LINENO BITS VAR
2438 # ------------------------------------
2439 # Finds an unsigned integer type with width BITS, setting cache variable VAR
2440 # accordingly.
2441 ac_fn_c_find_uintX_t ()
2443 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2444 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for uint$2_t" >&5
2445 $as_echo_n "checking for uint$2_t... " >&6; }
2446 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
2447 $as_echo_n "(cached) " >&6
2448 else
2449 eval "$3=no"
2450 for ac_type in uint$2_t 'unsigned int' 'unsigned long int' \
2451 'unsigned long long int' 'unsigned short int' 'unsigned char'; do
2452 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2453 /* end confdefs.h. */
2454 $ac_includes_default
2456 main ()
2458 static int test_array [1 - 2 * !(($ac_type) -1 >> ($2 - 1) == 1)];
2459 test_array [0] = 0
2462 return 0;
2464 _ACEOF
2465 if ac_fn_c_try_compile "$LINENO"; then :
2466 case $ac_type in #(
2467 uint$2_t) :
2468 eval "$3=yes" ;; #(
2469 *) :
2470 eval "$3=\$ac_type" ;;
2471 esac
2473 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2474 eval as_val=\$$3
2475 if test "x$as_val" = x""no; then :
2477 else
2478 break
2480 done
2482 eval ac_res=\$$3
2483 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2484 $as_echo "$ac_res" >&6; }
2485 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2487 } # ac_fn_c_find_uintX_t
2489 # ac_fn_c_check_header_preproc LINENO HEADER VAR
2490 # ----------------------------------------------
2491 # Tests whether HEADER is present, setting the cache variable VAR accordingly.
2492 ac_fn_c_check_header_preproc ()
2494 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2495 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2496 $as_echo_n "checking for $2... " >&6; }
2497 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
2498 $as_echo_n "(cached) " >&6
2499 else
2500 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2501 /* end confdefs.h. */
2502 #include <$2>
2503 _ACEOF
2504 if ac_fn_c_try_cpp "$LINENO"; then :
2505 eval "$3=yes"
2506 else
2507 eval "$3=no"
2509 rm -f conftest.err conftest.$ac_ext
2511 eval ac_res=\$$3
2512 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2513 $as_echo "$ac_res" >&6; }
2514 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2516 } # ac_fn_c_check_header_preproc
2518 # ac_fn_cxx_try_cpp LINENO
2519 # ------------------------
2520 # Try to preprocess conftest.$ac_ext, and return whether this succeeded.
2521 ac_fn_cxx_try_cpp ()
2523 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2524 if { { ac_try="$ac_cpp conftest.$ac_ext"
2525 case "(($ac_try" in
2526 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2527 *) ac_try_echo=$ac_try;;
2528 esac
2529 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2530 $as_echo "$ac_try_echo"; } >&5
2531 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
2532 ac_status=$?
2533 if test -s conftest.err; then
2534 grep -v '^ *+' conftest.err >conftest.er1
2535 cat conftest.er1 >&5
2536 mv -f conftest.er1 conftest.err
2538 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2539 test $ac_status = 0; } >/dev/null && {
2540 test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
2541 test ! -s conftest.err
2542 }; then :
2543 ac_retval=0
2544 else
2545 $as_echo "$as_me: failed program was:" >&5
2546 sed 's/^/| /' conftest.$ac_ext >&5
2548 ac_retval=1
2550 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2551 return $ac_retval
2553 } # ac_fn_cxx_try_cpp
2555 # ac_fn_cxx_check_header_preproc LINENO HEADER VAR
2556 # ------------------------------------------------
2557 # Tests whether HEADER is present, setting the cache variable VAR accordingly.
2558 ac_fn_cxx_check_header_preproc ()
2560 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2561 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2562 $as_echo_n "checking for $2... " >&6; }
2563 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
2564 $as_echo_n "(cached) " >&6
2565 else
2566 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2567 /* end confdefs.h. */
2568 #include <$2>
2569 _ACEOF
2570 if ac_fn_cxx_try_cpp "$LINENO"; then :
2571 eval "$3=yes"
2572 else
2573 eval "$3=no"
2575 rm -f conftest.err conftest.$ac_ext
2577 eval ac_res=\$$3
2578 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2579 $as_echo "$ac_res" >&6; }
2580 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2582 } # ac_fn_cxx_check_header_preproc
2584 # ac_fn_c_check_func LINENO FUNC VAR
2585 # ----------------------------------
2586 # Tests whether FUNC exists, setting the cache variable VAR accordingly
2587 ac_fn_c_check_func ()
2589 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2590 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2591 $as_echo_n "checking for $2... " >&6; }
2592 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
2593 $as_echo_n "(cached) " >&6
2594 else
2595 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2596 /* end confdefs.h. */
2597 /* Define $2 to an innocuous variant, in case <limits.h> declares $2.
2598 For example, HP-UX 11i <limits.h> declares gettimeofday. */
2599 #define $2 innocuous_$2
2601 /* System header to define __stub macros and hopefully few prototypes,
2602 which can conflict with char $2 (); below.
2603 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
2604 <limits.h> exists even on freestanding compilers. */
2606 #ifdef __STDC__
2607 # include <limits.h>
2608 #else
2609 # include <assert.h>
2610 #endif
2612 #undef $2
2614 /* Override any GCC internal prototype to avoid an error.
2615 Use char because int might match the return type of a GCC
2616 builtin and then its argument prototype would still apply. */
2617 #ifdef __cplusplus
2618 extern "C"
2619 #endif
2620 char $2 ();
2621 /* The GNU C library defines this for functions which it implements
2622 to always fail with ENOSYS. Some functions are actually named
2623 something starting with __ and the normal name is an alias. */
2624 #if defined __stub_$2 || defined __stub___$2
2625 choke me
2626 #endif
2629 main ()
2631 return $2 ();
2633 return 0;
2635 _ACEOF
2636 if ac_fn_c_try_link "$LINENO"; then :
2637 eval "$3=yes"
2638 else
2639 eval "$3=no"
2641 rm -f core conftest.err conftest.$ac_objext \
2642 conftest$ac_exeext conftest.$ac_ext
2644 eval ac_res=\$$3
2645 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2646 $as_echo "$ac_res" >&6; }
2647 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2649 } # ac_fn_c_check_func
2651 # ac_fn_cxx_try_link LINENO
2652 # -------------------------
2653 # Try to link conftest.$ac_ext, and return whether this succeeded.
2654 ac_fn_cxx_try_link ()
2656 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2657 rm -f conftest.$ac_objext conftest$ac_exeext
2658 if { { ac_try="$ac_link"
2659 case "(($ac_try" in
2660 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2661 *) ac_try_echo=$ac_try;;
2662 esac
2663 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2664 $as_echo "$ac_try_echo"; } >&5
2665 (eval "$ac_link") 2>conftest.err
2666 ac_status=$?
2667 if test -s conftest.err; then
2668 grep -v '^ *+' conftest.err >conftest.er1
2669 cat conftest.er1 >&5
2670 mv -f conftest.er1 conftest.err
2672 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2673 test $ac_status = 0; } && {
2674 test -z "$ac_cxx_werror_flag" ||
2675 test ! -s conftest.err
2676 } && test -s conftest$ac_exeext && {
2677 test "$cross_compiling" = yes ||
2678 $as_test_x conftest$ac_exeext
2679 }; then :
2680 ac_retval=0
2681 else
2682 $as_echo "$as_me: failed program was:" >&5
2683 sed 's/^/| /' conftest.$ac_ext >&5
2685 ac_retval=1
2687 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
2688 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
2689 # interfere with the next link command; also delete a directory that is
2690 # left behind by Apple's compiler. We do this before executing the actions.
2691 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
2692 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2693 return $ac_retval
2695 } # ac_fn_cxx_try_link
2696 cat >config.log <<_ACEOF
2697 This file contains any messages produced by compilers while
2698 running configure, to aid debugging if configure makes a mistake.
2700 It was created by $as_me, which was
2701 generated by GNU Autoconf 2.64. Invocation command line was
2703 $ $0 $@
2705 _ACEOF
2706 exec 5>>config.log
2708 cat <<_ASUNAME
2709 ## --------- ##
2710 ## Platform. ##
2711 ## --------- ##
2713 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
2714 uname -m = `(uname -m) 2>/dev/null || echo unknown`
2715 uname -r = `(uname -r) 2>/dev/null || echo unknown`
2716 uname -s = `(uname -s) 2>/dev/null || echo unknown`
2717 uname -v = `(uname -v) 2>/dev/null || echo unknown`
2719 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
2720 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
2722 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
2723 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
2724 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
2725 /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
2726 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
2727 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
2728 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
2730 _ASUNAME
2732 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2733 for as_dir in $PATH
2735 IFS=$as_save_IFS
2736 test -z "$as_dir" && as_dir=.
2737 $as_echo "PATH: $as_dir"
2738 done
2739 IFS=$as_save_IFS
2741 } >&5
2743 cat >&5 <<_ACEOF
2746 ## ----------- ##
2747 ## Core tests. ##
2748 ## ----------- ##
2750 _ACEOF
2753 # Keep a trace of the command line.
2754 # Strip out --no-create and --no-recursion so they do not pile up.
2755 # Strip out --silent because we don't want to record it for future runs.
2756 # Also quote any args containing shell meta-characters.
2757 # Make two passes to allow for proper duplicate-argument suppression.
2758 ac_configure_args=
2759 ac_configure_args0=
2760 ac_configure_args1=
2761 ac_must_keep_next=false
2762 for ac_pass in 1 2
2764 for ac_arg
2766 case $ac_arg in
2767 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
2768 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
2769 | -silent | --silent | --silen | --sile | --sil)
2770 continue ;;
2771 *\'*)
2772 ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
2773 esac
2774 case $ac_pass in
2775 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
2777 as_fn_append ac_configure_args1 " '$ac_arg'"
2778 if test $ac_must_keep_next = true; then
2779 ac_must_keep_next=false # Got value, back to normal.
2780 else
2781 case $ac_arg in
2782 *=* | --config-cache | -C | -disable-* | --disable-* \
2783 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
2784 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
2785 | -with-* | --with-* | -without-* | --without-* | --x)
2786 case "$ac_configure_args0 " in
2787 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
2788 esac
2790 -* ) ac_must_keep_next=true ;;
2791 esac
2793 as_fn_append ac_configure_args " '$ac_arg'"
2795 esac
2796 done
2797 done
2798 { ac_configure_args0=; unset ac_configure_args0;}
2799 { ac_configure_args1=; unset ac_configure_args1;}
2801 # When interrupted or exit'd, cleanup temporary files, and complete
2802 # config.log. We remove comments because anyway the quotes in there
2803 # would cause problems or look ugly.
2804 # WARNING: Use '\'' to represent an apostrophe within the trap.
2805 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
2806 trap 'exit_status=$?
2807 # Save into config.log some information that might help in debugging.
2809 echo
2811 cat <<\_ASBOX
2812 ## ---------------- ##
2813 ## Cache variables. ##
2814 ## ---------------- ##
2815 _ASBOX
2816 echo
2817 # The following way of writing the cache mishandles newlines in values,
2819 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
2820 eval ac_val=\$$ac_var
2821 case $ac_val in #(
2822 *${as_nl}*)
2823 case $ac_var in #(
2824 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
2825 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
2826 esac
2827 case $ac_var in #(
2828 _ | IFS | as_nl) ;; #(
2829 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
2830 *) { eval $ac_var=; unset $ac_var;} ;;
2831 esac ;;
2832 esac
2833 done
2834 (set) 2>&1 |
2835 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
2836 *${as_nl}ac_space=\ *)
2837 sed -n \
2838 "s/'\''/'\''\\\\'\'''\''/g;
2839 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
2840 ;; #(
2842 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
2844 esac |
2845 sort
2847 echo
2849 cat <<\_ASBOX
2850 ## ----------------- ##
2851 ## Output variables. ##
2852 ## ----------------- ##
2853 _ASBOX
2854 echo
2855 for ac_var in $ac_subst_vars
2857 eval ac_val=\$$ac_var
2858 case $ac_val in
2859 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2860 esac
2861 $as_echo "$ac_var='\''$ac_val'\''"
2862 done | sort
2863 echo
2865 if test -n "$ac_subst_files"; then
2866 cat <<\_ASBOX
2867 ## ------------------- ##
2868 ## File substitutions. ##
2869 ## ------------------- ##
2870 _ASBOX
2871 echo
2872 for ac_var in $ac_subst_files
2874 eval ac_val=\$$ac_var
2875 case $ac_val in
2876 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2877 esac
2878 $as_echo "$ac_var='\''$ac_val'\''"
2879 done | sort
2880 echo
2883 if test -s confdefs.h; then
2884 cat <<\_ASBOX
2885 ## ----------- ##
2886 ## confdefs.h. ##
2887 ## ----------- ##
2888 _ASBOX
2889 echo
2890 cat confdefs.h
2891 echo
2893 test "$ac_signal" != 0 &&
2894 $as_echo "$as_me: caught signal $ac_signal"
2895 $as_echo "$as_me: exit $exit_status"
2896 } >&5
2897 rm -f core *.core core.conftest.* &&
2898 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
2899 exit $exit_status
2901 for ac_signal in 1 2 13 15; do
2902 trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
2903 done
2904 ac_signal=0
2906 # confdefs.h avoids OS command line length limits that DEFS can exceed.
2907 rm -f -r conftest* confdefs.h
2909 $as_echo "/* confdefs.h */" > confdefs.h
2911 # Predefined preprocessor variables.
2913 cat >>confdefs.h <<_ACEOF
2914 #define PACKAGE_NAME "$PACKAGE_NAME"
2915 _ACEOF
2917 cat >>confdefs.h <<_ACEOF
2918 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
2919 _ACEOF
2921 cat >>confdefs.h <<_ACEOF
2922 #define PACKAGE_VERSION "$PACKAGE_VERSION"
2923 _ACEOF
2925 cat >>confdefs.h <<_ACEOF
2926 #define PACKAGE_STRING "$PACKAGE_STRING"
2927 _ACEOF
2929 cat >>confdefs.h <<_ACEOF
2930 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
2931 _ACEOF
2933 cat >>confdefs.h <<_ACEOF
2934 #define PACKAGE_URL "$PACKAGE_URL"
2935 _ACEOF
2938 # Let the site file select an alternate cache file if it wants to.
2939 # Prefer an explicitly selected file to automatically selected ones.
2940 ac_site_file1=NONE
2941 ac_site_file2=NONE
2942 if test -n "$CONFIG_SITE"; then
2943 ac_site_file1=$CONFIG_SITE
2944 elif test "x$prefix" != xNONE; then
2945 ac_site_file1=$prefix/share/config.site
2946 ac_site_file2=$prefix/etc/config.site
2947 else
2948 ac_site_file1=$ac_default_prefix/share/config.site
2949 ac_site_file2=$ac_default_prefix/etc/config.site
2951 for ac_site_file in "$ac_site_file1" "$ac_site_file2"
2953 test "x$ac_site_file" = xNONE && continue
2954 if test -r "$ac_site_file"; then
2955 { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
2956 $as_echo "$as_me: loading site script $ac_site_file" >&6;}
2957 sed 's/^/| /' "$ac_site_file" >&5
2958 . "$ac_site_file"
2960 done
2962 if test -r "$cache_file"; then
2963 # Some versions of bash will fail to source /dev/null (special
2964 # files actually), so we avoid doing that.
2965 if test -f "$cache_file"; then
2966 { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
2967 $as_echo "$as_me: loading cache $cache_file" >&6;}
2968 case $cache_file in
2969 [\\/]* | ?:[\\/]* ) . "$cache_file";;
2970 *) . "./$cache_file";;
2971 esac
2973 else
2974 { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
2975 $as_echo "$as_me: creating cache $cache_file" >&6;}
2976 >$cache_file
2979 # Check that the precious variables saved in the cache have kept the same
2980 # value.
2981 ac_cache_corrupted=false
2982 for ac_var in $ac_precious_vars; do
2983 eval ac_old_set=\$ac_cv_env_${ac_var}_set
2984 eval ac_new_set=\$ac_env_${ac_var}_set
2985 eval ac_old_val=\$ac_cv_env_${ac_var}_value
2986 eval ac_new_val=\$ac_env_${ac_var}_value
2987 case $ac_old_set,$ac_new_set in
2988 set,)
2989 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
2990 $as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
2991 ac_cache_corrupted=: ;;
2992 ,set)
2993 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
2994 $as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
2995 ac_cache_corrupted=: ;;
2996 ,);;
2998 if test "x$ac_old_val" != "x$ac_new_val"; then
2999 # differences in whitespace do not lead to failure.
3000 ac_old_val_w=`echo x $ac_old_val`
3001 ac_new_val_w=`echo x $ac_new_val`
3002 if test "$ac_old_val_w" != "$ac_new_val_w"; then
3003 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
3004 $as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
3005 ac_cache_corrupted=:
3006 else
3007 { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
3008 $as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
3009 eval $ac_var=\$ac_old_val
3011 { $as_echo "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5
3012 $as_echo "$as_me: former value: \`$ac_old_val'" >&2;}
3013 { $as_echo "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5
3014 $as_echo "$as_me: current value: \`$ac_new_val'" >&2;}
3015 fi;;
3016 esac
3017 # Pass precious variables to config.status.
3018 if test "$ac_new_set" = set; then
3019 case $ac_new_val in
3020 *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
3021 *) ac_arg=$ac_var=$ac_new_val ;;
3022 esac
3023 case " $ac_configure_args " in
3024 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
3025 *) as_fn_append ac_configure_args " '$ac_arg'" ;;
3026 esac
3028 done
3029 if $ac_cache_corrupted; then
3030 { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3031 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3032 { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
3033 $as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
3034 as_fn_error "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
3036 ## -------------------- ##
3037 ## Main body of script. ##
3038 ## -------------------- ##
3040 ac_ext=c
3041 ac_cpp='$CPP $CPPFLAGS'
3042 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3043 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3044 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3051 ac_config_headers="$ac_config_headers auto-host.h:config.in"
3054 gcc_version=`cat $srcdir/BASE-VER`
3056 # Determine the host, build, and target systems
3057 ac_aux_dir=
3058 for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do
3059 for ac_t in install-sh install.sh shtool; do
3060 if test -f "$ac_dir/$ac_t"; then
3061 ac_aux_dir=$ac_dir
3062 ac_install_sh="$ac_aux_dir/$ac_t -c"
3063 break 2
3065 done
3066 done
3067 if test -z "$ac_aux_dir"; then
3068 as_fn_error "cannot find install-sh, install.sh, or shtool in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" "$LINENO" 5
3071 # These three variables are undocumented and unsupported,
3072 # and are intended to be withdrawn in a future Autoconf release.
3073 # They can cause serious problems if a builder's source tree is in a directory
3074 # whose full name contains unusual characters.
3075 ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
3076 ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
3077 ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
3080 # Make sure we can run config.sub.
3081 $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
3082 as_fn_error "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
3084 { $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
3085 $as_echo_n "checking build system type... " >&6; }
3086 if test "${ac_cv_build+set}" = set; then :
3087 $as_echo_n "(cached) " >&6
3088 else
3089 ac_build_alias=$build_alias
3090 test "x$ac_build_alias" = x &&
3091 ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
3092 test "x$ac_build_alias" = x &&
3093 as_fn_error "cannot guess build type; you must specify one" "$LINENO" 5
3094 ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
3095 as_fn_error "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
3098 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
3099 $as_echo "$ac_cv_build" >&6; }
3100 case $ac_cv_build in
3101 *-*-*) ;;
3102 *) as_fn_error "invalid value of canonical build" "$LINENO" 5;;
3103 esac
3104 build=$ac_cv_build
3105 ac_save_IFS=$IFS; IFS='-'
3106 set x $ac_cv_build
3107 shift
3108 build_cpu=$1
3109 build_vendor=$2
3110 shift; shift
3111 # Remember, the first character of IFS is used to create $*,
3112 # except with old shells:
3113 build_os=$*
3114 IFS=$ac_save_IFS
3115 case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
3118 { $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
3119 $as_echo_n "checking host system type... " >&6; }
3120 if test "${ac_cv_host+set}" = set; then :
3121 $as_echo_n "(cached) " >&6
3122 else
3123 if test "x$host_alias" = x; then
3124 ac_cv_host=$ac_cv_build
3125 else
3126 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
3127 as_fn_error "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
3131 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
3132 $as_echo "$ac_cv_host" >&6; }
3133 case $ac_cv_host in
3134 *-*-*) ;;
3135 *) as_fn_error "invalid value of canonical host" "$LINENO" 5;;
3136 esac
3137 host=$ac_cv_host
3138 ac_save_IFS=$IFS; IFS='-'
3139 set x $ac_cv_host
3140 shift
3141 host_cpu=$1
3142 host_vendor=$2
3143 shift; shift
3144 # Remember, the first character of IFS is used to create $*,
3145 # except with old shells:
3146 host_os=$*
3147 IFS=$ac_save_IFS
3148 case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
3151 { $as_echo "$as_me:${as_lineno-$LINENO}: checking target system type" >&5
3152 $as_echo_n "checking target system type... " >&6; }
3153 if test "${ac_cv_target+set}" = set; then :
3154 $as_echo_n "(cached) " >&6
3155 else
3156 if test "x$target_alias" = x; then
3157 ac_cv_target=$ac_cv_host
3158 else
3159 ac_cv_target=`$SHELL "$ac_aux_dir/config.sub" $target_alias` ||
3160 as_fn_error "$SHELL $ac_aux_dir/config.sub $target_alias failed" "$LINENO" 5
3164 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_target" >&5
3165 $as_echo "$ac_cv_target" >&6; }
3166 case $ac_cv_target in
3167 *-*-*) ;;
3168 *) as_fn_error "invalid value of canonical target" "$LINENO" 5;;
3169 esac
3170 target=$ac_cv_target
3171 ac_save_IFS=$IFS; IFS='-'
3172 set x $ac_cv_target
3173 shift
3174 target_cpu=$1
3175 target_vendor=$2
3176 shift; shift
3177 # Remember, the first character of IFS is used to create $*,
3178 # except with old shells:
3179 target_os=$*
3180 IFS=$ac_save_IFS
3181 case $target_os in *\ *) target_os=`echo "$target_os" | sed 's/ /-/g'`;; esac
3184 # The aliases save the names the user supplied, while $host etc.
3185 # will get canonicalized.
3186 test -n "$target_alias" &&
3187 test "$program_prefix$program_suffix$program_transform_name" = \
3188 NONENONEs,x,x, &&
3189 program_prefix=${target_alias}-
3191 # Determine the noncanonical target name, for directory use.
3192 case ${build_alias} in
3193 "") build_noncanonical=${build} ;;
3194 *) build_noncanonical=${build_alias} ;;
3195 esac
3197 case ${host_alias} in
3198 "") host_noncanonical=${build_noncanonical} ;;
3199 *) host_noncanonical=${host_alias} ;;
3200 esac
3202 case ${target_alias} in
3203 "") target_noncanonical=${host_noncanonical} ;;
3204 *) target_noncanonical=${target_alias} ;;
3205 esac
3210 # Used for constructing correct paths for offload compilers.
3211 real_target_noncanonical=${target_noncanonical}
3212 accel_dir_suffix=
3214 # Determine the target- and build-specific subdirectories
3216 # post-stage1 host modules use a different CC_FOR_BUILD so, in order to
3217 # have matching libraries, they should use host libraries: Makefile.tpl
3218 # arranges to pass --with-build-libsubdir=$(HOST_SUBDIR).
3219 # However, they still use the build modules, because the corresponding
3220 # host modules (e.g. bison) are only built for the host when bootstrap
3221 # finishes. So:
3222 # - build_subdir is where we find build modules, and never changes.
3223 # - build_libsubdir is where we find build libraries, and can be overridden.
3225 # Prefix 'build-' so this never conflicts with target_subdir.
3226 build_subdir="build-${build_noncanonical}"
3228 # Check whether --with-build-libsubdir was given.
3229 if test "${with_build_libsubdir+set}" = set; then :
3230 withval=$with_build_libsubdir; build_libsubdir="$withval"
3231 else
3232 build_libsubdir="$build_subdir"
3235 # --srcdir=. covers the toplevel, while "test -d" covers the subdirectories
3236 if ( test $srcdir = . && test -d gcc ) \
3237 || test -d $srcdir/../host-${host_noncanonical}; then
3238 host_subdir="host-${host_noncanonical}"
3239 else
3240 host_subdir=.
3242 # No prefix.
3243 target_subdir=${target_noncanonical}
3246 # Set program_transform_name
3247 test "$program_prefix" != NONE &&
3248 program_transform_name="s&^&$program_prefix&;$program_transform_name"
3249 # Use a double $ so make ignores it.
3250 test "$program_suffix" != NONE &&
3251 program_transform_name="s&\$&$program_suffix&;$program_transform_name"
3252 # Double any \ or $.
3253 # By default was `s,x,x', remove it if useless.
3254 ac_script='s/[\\$]/&&/g;s/;s,x,x,$//'
3255 program_transform_name=`$as_echo "$program_transform_name" | sed "$ac_script"`
3258 # Check for bogus environment variables.
3259 # Test if LIBRARY_PATH contains the notation for the current directory
3260 # since this would lead to problems installing/building glibc.
3261 # LIBRARY_PATH contains the current directory if one of the following
3262 # is true:
3263 # - one of the terminals (":" and ";") is the first or last sign
3264 # - two terminals occur directly after each other
3265 # - the path contains an element with a dot in it
3266 { $as_echo "$as_me:${as_lineno-$LINENO}: checking LIBRARY_PATH variable" >&5
3267 $as_echo_n "checking LIBRARY_PATH variable... " >&6; }
3268 case ${LIBRARY_PATH} in
3269 [:\;]* | *[:\;] | *[:\;][:\;]* | *[:\;]. | .[:\;]*| . | *[:\;].[:\;]* )
3270 library_path_setting="contains current directory"
3273 library_path_setting="ok"
3275 esac
3276 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $library_path_setting" >&5
3277 $as_echo "$library_path_setting" >&6; }
3278 if test "$library_path_setting" != "ok"; then
3279 as_fn_error "
3280 *** LIBRARY_PATH shouldn't contain the current directory when
3281 *** building gcc. Please change the environment variable
3282 *** and run configure again." "$LINENO" 5
3285 # Test if GCC_EXEC_PREFIX contains the notation for the current directory
3286 # since this would lead to problems installing/building glibc.
3287 # GCC_EXEC_PREFIX contains the current directory if one of the following
3288 # is true:
3289 # - one of the terminals (":" and ";") is the first or last sign
3290 # - two terminals occur directly after each other
3291 # - the path contains an element with a dot in it
3292 { $as_echo "$as_me:${as_lineno-$LINENO}: checking GCC_EXEC_PREFIX variable" >&5
3293 $as_echo_n "checking GCC_EXEC_PREFIX variable... " >&6; }
3294 case ${GCC_EXEC_PREFIX} in
3295 [:\;]* | *[:\;] | *[:\;][:\;]* | *[:\;]. | .[:\;]*| . | *[:\;].[:\;]* )
3296 gcc_exec_prefix_setting="contains current directory"
3299 gcc_exec_prefix_setting="ok"
3301 esac
3302 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_exec_prefix_setting" >&5
3303 $as_echo "$gcc_exec_prefix_setting" >&6; }
3304 if test "$gcc_exec_prefix_setting" != "ok"; then
3305 as_fn_error "
3306 *** GCC_EXEC_PREFIX shouldn't contain the current directory when
3307 *** building gcc. Please change the environment variable
3308 *** and run configure again." "$LINENO" 5
3311 # -----------
3312 # Directories
3313 # -----------
3315 # Specify the local prefix
3316 local_prefix=
3318 # Check whether --with-local-prefix was given.
3319 if test "${with_local_prefix+set}" = set; then :
3320 withval=$with_local_prefix; case "${withval}" in
3321 yes) as_fn_error "bad value ${withval} given for local include directory prefix" "$LINENO" 5 ;;
3322 no) ;;
3323 *) local_prefix=$with_local_prefix ;;
3324 esac
3328 # Default local prefix if it is empty
3329 if test x$local_prefix = x; then
3330 local_prefix=/usr/local
3333 # Don't set gcc_gxx_include_dir to gxx_include_dir since that's only
3334 # passed in by the toplevel make and thus we'd get different behavior
3335 # depending on where we built the sources.
3336 gcc_gxx_include_dir=
3337 # Specify the g++ header file directory
3339 # Check whether --with-gxx-include-dir was given.
3340 if test "${with_gxx_include_dir+set}" = set; then :
3341 withval=$with_gxx_include_dir; case "${withval}" in
3342 yes) as_fn_error "bad value ${withval} given for g++ include directory" "$LINENO" 5 ;;
3343 no) ;;
3344 *) gcc_gxx_include_dir=$with_gxx_include_dir ;;
3345 esac
3349 # This logic must match libstdc++-v3/acinclude.m4:GLIBCXX_EXPORT_INSTALL_INFO.
3350 if test x${gcc_gxx_include_dir} = x; then
3351 if test x${enable_version_specific_runtime_libs} = xyes; then
3352 gcc_gxx_include_dir='${libsubdir}/include/c++'
3353 else
3354 libstdcxx_incdir='include/c++/$(version)'
3355 if test x$host != x$target; then
3356 libstdcxx_incdir="$target_alias/$libstdcxx_incdir"
3358 gcc_gxx_include_dir="\$(libsubdir)/\$(libsubdir_to_prefix)$libstdcxx_incdir"
3362 gcc_gxx_include_dir_add_sysroot=0
3363 if test "${with_sysroot+set}" = set; then
3364 gcc_gxx_without_sysroot=`expr "${gcc_gxx_include_dir}" : "${with_sysroot}"'\(.*\)'`
3365 if test "${gcc_gxx_without_sysroot}"; then
3366 gcc_gxx_include_dir="${gcc_gxx_without_sysroot}"
3367 gcc_gxx_include_dir_add_sysroot=1
3372 # Check whether --with-cpp_install_dir was given.
3373 if test "${with_cpp_install_dir+set}" = set; then :
3374 withval=$with_cpp_install_dir; if test x$withval = xyes; then
3375 as_fn_error "option --with-cpp-install-dir requires an argument" "$LINENO" 5
3376 elif test x$withval != xno; then
3377 cpp_install_dir=$withval
3382 # We would like to our source tree to be readonly. However when releases or
3383 # pre-releases are generated, the flex/bison generated files as well as the
3384 # various formats of manuals need to be included along with the rest of the
3385 # sources. Therefore we have --enable-generated-files-in-srcdir to do
3386 # just that.
3388 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to place generated files in the source directory" >&5
3389 $as_echo_n "checking whether to place generated files in the source directory... " >&6; }
3390 # Check whether --enable-generated-files-in-srcdir was given.
3391 if test "${enable_generated_files_in_srcdir+set}" = set; then :
3392 enableval=$enable_generated_files_in_srcdir; generated_files_in_srcdir=$enableval
3393 else
3394 generated_files_in_srcdir=no
3398 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $generated_files_in_srcdir" >&5
3399 $as_echo "$generated_files_in_srcdir" >&6; }
3401 if test "$generated_files_in_srcdir" = "yes"; then
3402 GENINSRC=''
3403 else
3404 GENINSRC='#'
3408 # -------------------
3409 # Find default linker
3410 # -------------------
3412 # With GNU ld
3414 # Check whether --with-gnu-ld was given.
3415 if test "${with_gnu_ld+set}" = set; then :
3416 withval=$with_gnu_ld; gnu_ld_flag="$with_gnu_ld"
3417 else
3418 gnu_ld_flag=no
3422 # With pre-defined ld
3424 # Check whether --with-ld was given.
3425 if test "${with_ld+set}" = set; then :
3426 withval=$with_ld; DEFAULT_LINKER="$with_ld"
3429 if test x"${DEFAULT_LINKER+set}" = x"set"; then
3430 if test ! -x "$DEFAULT_LINKER"; then
3431 as_fn_error "cannot execute: $DEFAULT_LINKER: check --with-ld or env. var. DEFAULT_LINKER" "$LINENO" 5
3432 elif $DEFAULT_LINKER -v < /dev/null 2>&1 | grep GNU > /dev/null; then
3433 gnu_ld_flag=yes
3436 cat >>confdefs.h <<_ACEOF
3437 #define DEFAULT_LINKER "$DEFAULT_LINKER"
3438 _ACEOF
3442 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a default linker was specified" >&5
3443 $as_echo_n "checking whether a default linker was specified... " >&6; }
3444 if test x"${DEFAULT_LINKER+set}" = x"set"; then
3445 if test x"$gnu_ld_flag" = x"no"; then
3446 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes ($DEFAULT_LINKER)" >&5
3447 $as_echo "yes ($DEFAULT_LINKER)" >&6; }
3448 else
3449 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes ($DEFAULT_LINKER - GNU ld)" >&5
3450 $as_echo "yes ($DEFAULT_LINKER - GNU ld)" >&6; }
3452 else
3453 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3454 $as_echo "no" >&6; }
3457 # With demangler in GNU ld
3459 # Check whether --with-demangler-in-ld was given.
3460 if test "${with_demangler_in_ld+set}" = set; then :
3461 withval=$with_demangler_in_ld; demangler_in_ld="$with_demangler_in_ld"
3462 else
3463 demangler_in_ld=yes
3467 # ----------------------
3468 # Find default assembler
3469 # ----------------------
3471 # With GNU as
3473 # Check whether --with-gnu-as was given.
3474 if test "${with_gnu_as+set}" = set; then :
3475 withval=$with_gnu_as; gas_flag="$with_gnu_as"
3476 else
3477 gas_flag=no
3482 # Check whether --with-as was given.
3483 if test "${with_as+set}" = set; then :
3484 withval=$with_as; DEFAULT_ASSEMBLER="$with_as"
3487 if test x"${DEFAULT_ASSEMBLER+set}" = x"set"; then
3488 if test ! -x "$DEFAULT_ASSEMBLER"; then
3489 as_fn_error "cannot execute: $DEFAULT_ASSEMBLER: check --with-as or env. var. DEFAULT_ASSEMBLER" "$LINENO" 5
3490 elif $DEFAULT_ASSEMBLER -v < /dev/null 2>&1 | grep GNU > /dev/null; then
3491 gas_flag=yes
3494 cat >>confdefs.h <<_ACEOF
3495 #define DEFAULT_ASSEMBLER "$DEFAULT_ASSEMBLER"
3496 _ACEOF
3500 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a default assembler was specified" >&5
3501 $as_echo_n "checking whether a default assembler was specified... " >&6; }
3502 if test x"${DEFAULT_ASSEMBLER+set}" = x"set"; then
3503 if test x"$gas_flag" = x"no"; then
3504 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes ($DEFAULT_ASSEMBLER)" >&5
3505 $as_echo "yes ($DEFAULT_ASSEMBLER)" >&6; }
3506 else
3507 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes ($DEFAULT_ASSEMBLER - GNU as)" >&5
3508 $as_echo "yes ($DEFAULT_ASSEMBLER - GNU as)" >&6; }
3510 else
3511 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3512 $as_echo "no" >&6; }
3515 # ---------------
3516 # Find C compiler
3517 # ---------------
3519 # If a non-executable a.out is present (e.g. created by GNU as above even if
3520 # invoked with -v only), the IRIX 6 native ld just overwrites the existing
3521 # file, even when creating an executable, so an execution test fails.
3522 # Remove possible default executable files to avoid this.
3524 # FIXME: This really belongs into AC_PROG_CC and can be removed once
3525 # Autoconf includes it.
3526 rm -f a.out a.exe b.out
3528 # Find the native compiler
3529 ac_ext=c
3530 ac_cpp='$CPP $CPPFLAGS'
3531 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3532 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3533 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3534 if test -n "$ac_tool_prefix"; then
3535 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
3536 set dummy ${ac_tool_prefix}gcc; ac_word=$2
3537 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3538 $as_echo_n "checking for $ac_word... " >&6; }
3539 if test "${ac_cv_prog_CC+set}" = set; then :
3540 $as_echo_n "(cached) " >&6
3541 else
3542 if test -n "$CC"; then
3543 ac_cv_prog_CC="$CC" # Let the user override the test.
3544 else
3545 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3546 for as_dir in $PATH
3548 IFS=$as_save_IFS
3549 test -z "$as_dir" && as_dir=.
3550 for ac_exec_ext in '' $ac_executable_extensions; do
3551 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3552 ac_cv_prog_CC="${ac_tool_prefix}gcc"
3553 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3554 break 2
3556 done
3557 done
3558 IFS=$as_save_IFS
3562 CC=$ac_cv_prog_CC
3563 if test -n "$CC"; then
3564 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3565 $as_echo "$CC" >&6; }
3566 else
3567 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3568 $as_echo "no" >&6; }
3573 if test -z "$ac_cv_prog_CC"; then
3574 ac_ct_CC=$CC
3575 # Extract the first word of "gcc", so it can be a program name with args.
3576 set dummy gcc; ac_word=$2
3577 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3578 $as_echo_n "checking for $ac_word... " >&6; }
3579 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then :
3580 $as_echo_n "(cached) " >&6
3581 else
3582 if test -n "$ac_ct_CC"; then
3583 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3584 else
3585 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3586 for as_dir in $PATH
3588 IFS=$as_save_IFS
3589 test -z "$as_dir" && as_dir=.
3590 for ac_exec_ext in '' $ac_executable_extensions; do
3591 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3592 ac_cv_prog_ac_ct_CC="gcc"
3593 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3594 break 2
3596 done
3597 done
3598 IFS=$as_save_IFS
3602 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3603 if test -n "$ac_ct_CC"; then
3604 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3605 $as_echo "$ac_ct_CC" >&6; }
3606 else
3607 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3608 $as_echo "no" >&6; }
3611 if test "x$ac_ct_CC" = x; then
3612 CC=""
3613 else
3614 case $cross_compiling:$ac_tool_warned in
3615 yes:)
3616 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3617 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3618 ac_tool_warned=yes ;;
3619 esac
3620 CC=$ac_ct_CC
3622 else
3623 CC="$ac_cv_prog_CC"
3626 if test -z "$CC"; then
3627 if test -n "$ac_tool_prefix"; then
3628 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
3629 set dummy ${ac_tool_prefix}cc; ac_word=$2
3630 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3631 $as_echo_n "checking for $ac_word... " >&6; }
3632 if test "${ac_cv_prog_CC+set}" = set; then :
3633 $as_echo_n "(cached) " >&6
3634 else
3635 if test -n "$CC"; then
3636 ac_cv_prog_CC="$CC" # Let the user override the test.
3637 else
3638 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3639 for as_dir in $PATH
3641 IFS=$as_save_IFS
3642 test -z "$as_dir" && as_dir=.
3643 for ac_exec_ext in '' $ac_executable_extensions; do
3644 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3645 ac_cv_prog_CC="${ac_tool_prefix}cc"
3646 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3647 break 2
3649 done
3650 done
3651 IFS=$as_save_IFS
3655 CC=$ac_cv_prog_CC
3656 if test -n "$CC"; then
3657 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3658 $as_echo "$CC" >&6; }
3659 else
3660 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3661 $as_echo "no" >&6; }
3667 if test -z "$CC"; then
3668 # Extract the first word of "cc", so it can be a program name with args.
3669 set dummy cc; ac_word=$2
3670 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3671 $as_echo_n "checking for $ac_word... " >&6; }
3672 if test "${ac_cv_prog_CC+set}" = set; then :
3673 $as_echo_n "(cached) " >&6
3674 else
3675 if test -n "$CC"; then
3676 ac_cv_prog_CC="$CC" # Let the user override the test.
3677 else
3678 ac_prog_rejected=no
3679 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3680 for as_dir in $PATH
3682 IFS=$as_save_IFS
3683 test -z "$as_dir" && as_dir=.
3684 for ac_exec_ext in '' $ac_executable_extensions; do
3685 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3686 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
3687 ac_prog_rejected=yes
3688 continue
3690 ac_cv_prog_CC="cc"
3691 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3692 break 2
3694 done
3695 done
3696 IFS=$as_save_IFS
3698 if test $ac_prog_rejected = yes; then
3699 # We found a bogon in the path, so make sure we never use it.
3700 set dummy $ac_cv_prog_CC
3701 shift
3702 if test $# != 0; then
3703 # We chose a different compiler from the bogus one.
3704 # However, it has the same basename, so the bogon will be chosen
3705 # first if we set CC to just the basename; use the full file name.
3706 shift
3707 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
3712 CC=$ac_cv_prog_CC
3713 if test -n "$CC"; then
3714 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3715 $as_echo "$CC" >&6; }
3716 else
3717 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3718 $as_echo "no" >&6; }
3723 if test -z "$CC"; then
3724 if test -n "$ac_tool_prefix"; then
3725 for ac_prog in cl.exe
3727 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3728 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
3729 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3730 $as_echo_n "checking for $ac_word... " >&6; }
3731 if test "${ac_cv_prog_CC+set}" = set; then :
3732 $as_echo_n "(cached) " >&6
3733 else
3734 if test -n "$CC"; then
3735 ac_cv_prog_CC="$CC" # Let the user override the test.
3736 else
3737 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3738 for as_dir in $PATH
3740 IFS=$as_save_IFS
3741 test -z "$as_dir" && as_dir=.
3742 for ac_exec_ext in '' $ac_executable_extensions; do
3743 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3744 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
3745 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3746 break 2
3748 done
3749 done
3750 IFS=$as_save_IFS
3754 CC=$ac_cv_prog_CC
3755 if test -n "$CC"; then
3756 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3757 $as_echo "$CC" >&6; }
3758 else
3759 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3760 $as_echo "no" >&6; }
3764 test -n "$CC" && break
3765 done
3767 if test -z "$CC"; then
3768 ac_ct_CC=$CC
3769 for ac_prog in cl.exe
3771 # Extract the first word of "$ac_prog", so it can be a program name with args.
3772 set dummy $ac_prog; ac_word=$2
3773 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3774 $as_echo_n "checking for $ac_word... " >&6; }
3775 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then :
3776 $as_echo_n "(cached) " >&6
3777 else
3778 if test -n "$ac_ct_CC"; then
3779 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3780 else
3781 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3782 for as_dir in $PATH
3784 IFS=$as_save_IFS
3785 test -z "$as_dir" && as_dir=.
3786 for ac_exec_ext in '' $ac_executable_extensions; do
3787 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3788 ac_cv_prog_ac_ct_CC="$ac_prog"
3789 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3790 break 2
3792 done
3793 done
3794 IFS=$as_save_IFS
3798 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3799 if test -n "$ac_ct_CC"; then
3800 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3801 $as_echo "$ac_ct_CC" >&6; }
3802 else
3803 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3804 $as_echo "no" >&6; }
3808 test -n "$ac_ct_CC" && break
3809 done
3811 if test "x$ac_ct_CC" = x; then
3812 CC=""
3813 else
3814 case $cross_compiling:$ac_tool_warned in
3815 yes:)
3816 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3817 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3818 ac_tool_warned=yes ;;
3819 esac
3820 CC=$ac_ct_CC
3827 test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3828 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3829 as_fn_error "no acceptable C compiler found in \$PATH
3830 See \`config.log' for more details." "$LINENO" 5; }
3832 # Provide some information about the compiler.
3833 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
3834 set X $ac_compile
3835 ac_compiler=$2
3836 for ac_option in --version -v -V -qversion; do
3837 { { ac_try="$ac_compiler $ac_option >&5"
3838 case "(($ac_try" in
3839 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3840 *) ac_try_echo=$ac_try;;
3841 esac
3842 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3843 $as_echo "$ac_try_echo"; } >&5
3844 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
3845 ac_status=$?
3846 if test -s conftest.err; then
3847 sed '10a\
3848 ... rest of stderr output deleted ...
3849 10q' conftest.err >conftest.er1
3850 cat conftest.er1 >&5
3851 rm -f conftest.er1 conftest.err
3853 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3854 test $ac_status = 0; }
3855 done
3857 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3858 /* end confdefs.h. */
3861 main ()
3865 return 0;
3867 _ACEOF
3868 ac_clean_files_save=$ac_clean_files
3869 ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out conftest.out"
3870 # Try to create an executable without -o first, disregard a.out.
3871 # It will help us diagnose broken compilers, and finding out an intuition
3872 # of exeext.
3873 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
3874 $as_echo_n "checking for C compiler default output file name... " >&6; }
3875 ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
3877 # The possible output files:
3878 ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
3880 ac_rmfiles=
3881 for ac_file in $ac_files
3883 case $ac_file in
3884 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3885 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
3886 esac
3887 done
3888 rm -f $ac_rmfiles
3890 if { { ac_try="$ac_link_default"
3891 case "(($ac_try" in
3892 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3893 *) ac_try_echo=$ac_try;;
3894 esac
3895 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3896 $as_echo "$ac_try_echo"; } >&5
3897 (eval "$ac_link_default") 2>&5
3898 ac_status=$?
3899 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3900 test $ac_status = 0; }; then :
3901 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
3902 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
3903 # in a Makefile. We should not override ac_cv_exeext if it was cached,
3904 # so that the user can short-circuit this test for compilers unknown to
3905 # Autoconf.
3906 for ac_file in $ac_files ''
3908 test -f "$ac_file" || continue
3909 case $ac_file in
3910 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
3912 [ab].out )
3913 # We found the default executable, but exeext='' is most
3914 # certainly right.
3915 break;;
3916 *.* )
3917 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
3918 then :; else
3919 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3921 # We set ac_cv_exeext here because the later test for it is not
3922 # safe: cross compilers may not add the suffix if given an `-o'
3923 # argument, so we may need to know it at that point already.
3924 # Even if this section looks crufty: it has the advantage of
3925 # actually working.
3926 break;;
3928 break;;
3929 esac
3930 done
3931 test "$ac_cv_exeext" = no && ac_cv_exeext=
3933 else
3934 ac_file=''
3936 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
3937 $as_echo "$ac_file" >&6; }
3938 if test -z "$ac_file"; then :
3939 $as_echo "$as_me: failed program was:" >&5
3940 sed 's/^/| /' conftest.$ac_ext >&5
3942 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3943 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3944 { as_fn_set_status 77
3945 as_fn_error "C compiler cannot create executables
3946 See \`config.log' for more details." "$LINENO" 5; }; }
3948 ac_exeext=$ac_cv_exeext
3950 # Check that the compiler produces executables we can run. If not, either
3951 # the compiler is broken, or we cross compile.
3952 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
3953 $as_echo_n "checking whether the C compiler works... " >&6; }
3954 # If not cross compiling, check that we can run a simple program.
3955 if test "$cross_compiling" != yes; then
3956 if { ac_try='./$ac_file'
3957 { { case "(($ac_try" in
3958 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3959 *) ac_try_echo=$ac_try;;
3960 esac
3961 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3962 $as_echo "$ac_try_echo"; } >&5
3963 (eval "$ac_try") 2>&5
3964 ac_status=$?
3965 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3966 test $ac_status = 0; }; }; then
3967 cross_compiling=no
3968 else
3969 if test "$cross_compiling" = maybe; then
3970 cross_compiling=yes
3971 else
3972 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3973 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3974 as_fn_error "cannot run C compiled programs.
3975 If you meant to cross compile, use \`--host'.
3976 See \`config.log' for more details." "$LINENO" 5; }
3980 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3981 $as_echo "yes" >&6; }
3983 rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out conftest.out
3984 ac_clean_files=$ac_clean_files_save
3985 # Check that the compiler produces executables we can run. If not, either
3986 # the compiler is broken, or we cross compile.
3987 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
3988 $as_echo_n "checking whether we are cross compiling... " >&6; }
3989 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
3990 $as_echo "$cross_compiling" >&6; }
3992 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
3993 $as_echo_n "checking for suffix of executables... " >&6; }
3994 if { { ac_try="$ac_link"
3995 case "(($ac_try" in
3996 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3997 *) ac_try_echo=$ac_try;;
3998 esac
3999 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4000 $as_echo "$ac_try_echo"; } >&5
4001 (eval "$ac_link") 2>&5
4002 ac_status=$?
4003 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4004 test $ac_status = 0; }; then :
4005 # If both `conftest.exe' and `conftest' are `present' (well, observable)
4006 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
4007 # work properly (i.e., refer to `conftest.exe'), while it won't with
4008 # `rm'.
4009 for ac_file in conftest.exe conftest conftest.*; do
4010 test -f "$ac_file" || continue
4011 case $ac_file in
4012 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
4013 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
4014 break;;
4015 * ) break;;
4016 esac
4017 done
4018 else
4019 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4020 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4021 as_fn_error "cannot compute suffix of executables: cannot compile and link
4022 See \`config.log' for more details." "$LINENO" 5; }
4024 rm -f conftest$ac_cv_exeext
4025 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
4026 $as_echo "$ac_cv_exeext" >&6; }
4028 rm -f conftest.$ac_ext
4029 EXEEXT=$ac_cv_exeext
4030 ac_exeext=$EXEEXT
4031 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
4032 $as_echo_n "checking for suffix of object files... " >&6; }
4033 if test "${ac_cv_objext+set}" = set; then :
4034 $as_echo_n "(cached) " >&6
4035 else
4036 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4037 /* end confdefs.h. */
4040 main ()
4044 return 0;
4046 _ACEOF
4047 rm -f conftest.o conftest.obj
4048 if { { ac_try="$ac_compile"
4049 case "(($ac_try" in
4050 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4051 *) ac_try_echo=$ac_try;;
4052 esac
4053 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4054 $as_echo "$ac_try_echo"; } >&5
4055 (eval "$ac_compile") 2>&5
4056 ac_status=$?
4057 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4058 test $ac_status = 0; }; then :
4059 for ac_file in conftest.o conftest.obj conftest.*; do
4060 test -f "$ac_file" || continue;
4061 case $ac_file in
4062 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
4063 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
4064 break;;
4065 esac
4066 done
4067 else
4068 $as_echo "$as_me: failed program was:" >&5
4069 sed 's/^/| /' conftest.$ac_ext >&5
4071 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4072 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4073 as_fn_error "cannot compute suffix of object files: cannot compile
4074 See \`config.log' for more details." "$LINENO" 5; }
4076 rm -f conftest.$ac_cv_objext conftest.$ac_ext
4078 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
4079 $as_echo "$ac_cv_objext" >&6; }
4080 OBJEXT=$ac_cv_objext
4081 ac_objext=$OBJEXT
4082 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
4083 $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
4084 if test "${ac_cv_c_compiler_gnu+set}" = set; then :
4085 $as_echo_n "(cached) " >&6
4086 else
4087 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4088 /* end confdefs.h. */
4091 main ()
4093 #ifndef __GNUC__
4094 choke me
4095 #endif
4098 return 0;
4100 _ACEOF
4101 if ac_fn_c_try_compile "$LINENO"; then :
4102 ac_compiler_gnu=yes
4103 else
4104 ac_compiler_gnu=no
4106 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4107 ac_cv_c_compiler_gnu=$ac_compiler_gnu
4110 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
4111 $as_echo "$ac_cv_c_compiler_gnu" >&6; }
4112 if test $ac_compiler_gnu = yes; then
4113 GCC=yes
4114 else
4115 GCC=
4117 ac_test_CFLAGS=${CFLAGS+set}
4118 ac_save_CFLAGS=$CFLAGS
4119 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
4120 $as_echo_n "checking whether $CC accepts -g... " >&6; }
4121 if test "${ac_cv_prog_cc_g+set}" = set; then :
4122 $as_echo_n "(cached) " >&6
4123 else
4124 ac_save_c_werror_flag=$ac_c_werror_flag
4125 ac_c_werror_flag=yes
4126 ac_cv_prog_cc_g=no
4127 CFLAGS="-g"
4128 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4129 /* end confdefs.h. */
4132 main ()
4136 return 0;
4138 _ACEOF
4139 if ac_fn_c_try_compile "$LINENO"; then :
4140 ac_cv_prog_cc_g=yes
4141 else
4142 CFLAGS=""
4143 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4144 /* end confdefs.h. */
4147 main ()
4151 return 0;
4153 _ACEOF
4154 if ac_fn_c_try_compile "$LINENO"; then :
4156 else
4157 ac_c_werror_flag=$ac_save_c_werror_flag
4158 CFLAGS="-g"
4159 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4160 /* end confdefs.h. */
4163 main ()
4167 return 0;
4169 _ACEOF
4170 if ac_fn_c_try_compile "$LINENO"; then :
4171 ac_cv_prog_cc_g=yes
4173 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4175 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4177 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4178 ac_c_werror_flag=$ac_save_c_werror_flag
4180 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
4181 $as_echo "$ac_cv_prog_cc_g" >&6; }
4182 if test "$ac_test_CFLAGS" = set; then
4183 CFLAGS=$ac_save_CFLAGS
4184 elif test $ac_cv_prog_cc_g = yes; then
4185 if test "$GCC" = yes; then
4186 CFLAGS="-g -O2"
4187 else
4188 CFLAGS="-g"
4190 else
4191 if test "$GCC" = yes; then
4192 CFLAGS="-O2"
4193 else
4194 CFLAGS=
4197 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
4198 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
4199 if test "${ac_cv_prog_cc_c89+set}" = set; then :
4200 $as_echo_n "(cached) " >&6
4201 else
4202 ac_cv_prog_cc_c89=no
4203 ac_save_CC=$CC
4204 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4205 /* end confdefs.h. */
4206 #include <stdarg.h>
4207 #include <stdio.h>
4208 #include <sys/types.h>
4209 #include <sys/stat.h>
4210 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
4211 struct buf { int x; };
4212 FILE * (*rcsopen) (struct buf *, struct stat *, int);
4213 static char *e (p, i)
4214 char **p;
4215 int i;
4217 return p[i];
4219 static char *f (char * (*g) (char **, int), char **p, ...)
4221 char *s;
4222 va_list v;
4223 va_start (v,p);
4224 s = g (p, va_arg (v,int));
4225 va_end (v);
4226 return s;
4229 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
4230 function prototypes and stuff, but not '\xHH' hex character constants.
4231 These don't provoke an error unfortunately, instead are silently treated
4232 as 'x'. The following induces an error, until -std is added to get
4233 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
4234 array size at least. It's necessary to write '\x00'==0 to get something
4235 that's true only with -std. */
4236 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
4238 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
4239 inside strings and character constants. */
4240 #define FOO(x) 'x'
4241 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
4243 int test (int i, double x);
4244 struct s1 {int (*f) (int a);};
4245 struct s2 {int (*f) (double a);};
4246 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
4247 int argc;
4248 char **argv;
4250 main ()
4252 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
4254 return 0;
4256 _ACEOF
4257 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
4258 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
4260 CC="$ac_save_CC $ac_arg"
4261 if ac_fn_c_try_compile "$LINENO"; then :
4262 ac_cv_prog_cc_c89=$ac_arg
4264 rm -f core conftest.err conftest.$ac_objext
4265 test "x$ac_cv_prog_cc_c89" != "xno" && break
4266 done
4267 rm -f conftest.$ac_ext
4268 CC=$ac_save_CC
4271 # AC_CACHE_VAL
4272 case "x$ac_cv_prog_cc_c89" in
4274 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
4275 $as_echo "none needed" >&6; } ;;
4276 xno)
4277 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
4278 $as_echo "unsupported" >&6; } ;;
4280 CC="$CC $ac_cv_prog_cc_c89"
4281 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
4282 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
4283 esac
4284 if test "x$ac_cv_prog_cc_c89" != xno; then :
4288 ac_ext=c
4289 ac_cpp='$CPP $CPPFLAGS'
4290 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4291 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4292 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4294 ac_ext=cpp
4295 ac_cpp='$CXXCPP $CPPFLAGS'
4296 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4297 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4298 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
4299 if test -z "$CXX"; then
4300 if test -n "$CCC"; then
4301 CXX=$CCC
4302 else
4303 if test -n "$ac_tool_prefix"; then
4304 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
4306 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
4307 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
4308 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4309 $as_echo_n "checking for $ac_word... " >&6; }
4310 if test "${ac_cv_prog_CXX+set}" = set; then :
4311 $as_echo_n "(cached) " >&6
4312 else
4313 if test -n "$CXX"; then
4314 ac_cv_prog_CXX="$CXX" # Let the user override the test.
4315 else
4316 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4317 for as_dir in $PATH
4319 IFS=$as_save_IFS
4320 test -z "$as_dir" && as_dir=.
4321 for ac_exec_ext in '' $ac_executable_extensions; do
4322 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4323 ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
4324 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4325 break 2
4327 done
4328 done
4329 IFS=$as_save_IFS
4333 CXX=$ac_cv_prog_CXX
4334 if test -n "$CXX"; then
4335 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXX" >&5
4336 $as_echo "$CXX" >&6; }
4337 else
4338 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4339 $as_echo "no" >&6; }
4343 test -n "$CXX" && break
4344 done
4346 if test -z "$CXX"; then
4347 ac_ct_CXX=$CXX
4348 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
4350 # Extract the first word of "$ac_prog", so it can be a program name with args.
4351 set dummy $ac_prog; ac_word=$2
4352 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4353 $as_echo_n "checking for $ac_word... " >&6; }
4354 if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then :
4355 $as_echo_n "(cached) " >&6
4356 else
4357 if test -n "$ac_ct_CXX"; then
4358 ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
4359 else
4360 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4361 for as_dir in $PATH
4363 IFS=$as_save_IFS
4364 test -z "$as_dir" && as_dir=.
4365 for ac_exec_ext in '' $ac_executable_extensions; do
4366 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4367 ac_cv_prog_ac_ct_CXX="$ac_prog"
4368 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4369 break 2
4371 done
4372 done
4373 IFS=$as_save_IFS
4377 ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
4378 if test -n "$ac_ct_CXX"; then
4379 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CXX" >&5
4380 $as_echo "$ac_ct_CXX" >&6; }
4381 else
4382 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4383 $as_echo "no" >&6; }
4387 test -n "$ac_ct_CXX" && break
4388 done
4390 if test "x$ac_ct_CXX" = x; then
4391 CXX="g++"
4392 else
4393 case $cross_compiling:$ac_tool_warned in
4394 yes:)
4395 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4396 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4397 ac_tool_warned=yes ;;
4398 esac
4399 CXX=$ac_ct_CXX
4405 # Provide some information about the compiler.
4406 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C++ compiler version" >&5
4407 set X $ac_compile
4408 ac_compiler=$2
4409 for ac_option in --version -v -V -qversion; do
4410 { { ac_try="$ac_compiler $ac_option >&5"
4411 case "(($ac_try" in
4412 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4413 *) ac_try_echo=$ac_try;;
4414 esac
4415 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4416 $as_echo "$ac_try_echo"; } >&5
4417 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
4418 ac_status=$?
4419 if test -s conftest.err; then
4420 sed '10a\
4421 ... rest of stderr output deleted ...
4422 10q' conftest.err >conftest.er1
4423 cat conftest.er1 >&5
4424 rm -f conftest.er1 conftest.err
4426 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4427 test $ac_status = 0; }
4428 done
4430 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C++ compiler" >&5
4431 $as_echo_n "checking whether we are using the GNU C++ compiler... " >&6; }
4432 if test "${ac_cv_cxx_compiler_gnu+set}" = set; then :
4433 $as_echo_n "(cached) " >&6
4434 else
4435 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4436 /* end confdefs.h. */
4439 main ()
4441 #ifndef __GNUC__
4442 choke me
4443 #endif
4446 return 0;
4448 _ACEOF
4449 if ac_fn_cxx_try_compile "$LINENO"; then :
4450 ac_compiler_gnu=yes
4451 else
4452 ac_compiler_gnu=no
4454 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4455 ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
4458 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cxx_compiler_gnu" >&5
4459 $as_echo "$ac_cv_cxx_compiler_gnu" >&6; }
4460 if test $ac_compiler_gnu = yes; then
4461 GXX=yes
4462 else
4463 GXX=
4465 ac_test_CXXFLAGS=${CXXFLAGS+set}
4466 ac_save_CXXFLAGS=$CXXFLAGS
4467 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CXX accepts -g" >&5
4468 $as_echo_n "checking whether $CXX accepts -g... " >&6; }
4469 if test "${ac_cv_prog_cxx_g+set}" = set; then :
4470 $as_echo_n "(cached) " >&6
4471 else
4472 ac_save_cxx_werror_flag=$ac_cxx_werror_flag
4473 ac_cxx_werror_flag=yes
4474 ac_cv_prog_cxx_g=no
4475 CXXFLAGS="-g"
4476 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4477 /* end confdefs.h. */
4480 main ()
4484 return 0;
4486 _ACEOF
4487 if ac_fn_cxx_try_compile "$LINENO"; then :
4488 ac_cv_prog_cxx_g=yes
4489 else
4490 CXXFLAGS=""
4491 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4492 /* end confdefs.h. */
4495 main ()
4499 return 0;
4501 _ACEOF
4502 if ac_fn_cxx_try_compile "$LINENO"; then :
4504 else
4505 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
4506 CXXFLAGS="-g"
4507 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4508 /* end confdefs.h. */
4511 main ()
4515 return 0;
4517 _ACEOF
4518 if ac_fn_cxx_try_compile "$LINENO"; then :
4519 ac_cv_prog_cxx_g=yes
4521 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4523 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4525 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4526 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
4528 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cxx_g" >&5
4529 $as_echo "$ac_cv_prog_cxx_g" >&6; }
4530 if test "$ac_test_CXXFLAGS" = set; then
4531 CXXFLAGS=$ac_save_CXXFLAGS
4532 elif test $ac_cv_prog_cxx_g = yes; then
4533 if test "$GXX" = yes; then
4534 CXXFLAGS="-g -O2"
4535 else
4536 CXXFLAGS="-g"
4538 else
4539 if test "$GXX" = yes; then
4540 CXXFLAGS="-O2"
4541 else
4542 CXXFLAGS=
4545 ac_ext=c
4546 ac_cpp='$CPP $CPPFLAGS'
4547 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4548 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4549 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4554 if test -n "$ac_tool_prefix"; then
4555 # Extract the first word of "${ac_tool_prefix}gnatbind", so it can be a program name with args.
4556 set dummy ${ac_tool_prefix}gnatbind; ac_word=$2
4557 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4558 $as_echo_n "checking for $ac_word... " >&6; }
4559 if test "${ac_cv_prog_GNATBIND+set}" = set; then :
4560 $as_echo_n "(cached) " >&6
4561 else
4562 if test -n "$GNATBIND"; then
4563 ac_cv_prog_GNATBIND="$GNATBIND" # Let the user override the test.
4564 else
4565 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4566 for as_dir in $PATH
4568 IFS=$as_save_IFS
4569 test -z "$as_dir" && as_dir=.
4570 for ac_exec_ext in '' $ac_executable_extensions; do
4571 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4572 ac_cv_prog_GNATBIND="${ac_tool_prefix}gnatbind"
4573 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4574 break 2
4576 done
4577 done
4578 IFS=$as_save_IFS
4582 GNATBIND=$ac_cv_prog_GNATBIND
4583 if test -n "$GNATBIND"; then
4584 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GNATBIND" >&5
4585 $as_echo "$GNATBIND" >&6; }
4586 else
4587 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4588 $as_echo "no" >&6; }
4593 if test -z "$ac_cv_prog_GNATBIND"; then
4594 ac_ct_GNATBIND=$GNATBIND
4595 # Extract the first word of "gnatbind", so it can be a program name with args.
4596 set dummy gnatbind; ac_word=$2
4597 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4598 $as_echo_n "checking for $ac_word... " >&6; }
4599 if test "${ac_cv_prog_ac_ct_GNATBIND+set}" = set; then :
4600 $as_echo_n "(cached) " >&6
4601 else
4602 if test -n "$ac_ct_GNATBIND"; then
4603 ac_cv_prog_ac_ct_GNATBIND="$ac_ct_GNATBIND" # Let the user override the test.
4604 else
4605 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4606 for as_dir in $PATH
4608 IFS=$as_save_IFS
4609 test -z "$as_dir" && as_dir=.
4610 for ac_exec_ext in '' $ac_executable_extensions; do
4611 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4612 ac_cv_prog_ac_ct_GNATBIND="gnatbind"
4613 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4614 break 2
4616 done
4617 done
4618 IFS=$as_save_IFS
4622 ac_ct_GNATBIND=$ac_cv_prog_ac_ct_GNATBIND
4623 if test -n "$ac_ct_GNATBIND"; then
4624 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_GNATBIND" >&5
4625 $as_echo "$ac_ct_GNATBIND" >&6; }
4626 else
4627 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4628 $as_echo "no" >&6; }
4631 if test "x$ac_ct_GNATBIND" = x; then
4632 GNATBIND="no"
4633 else
4634 case $cross_compiling:$ac_tool_warned in
4635 yes:)
4636 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4637 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4638 ac_tool_warned=yes ;;
4639 esac
4640 GNATBIND=$ac_ct_GNATBIND
4642 else
4643 GNATBIND="$ac_cv_prog_GNATBIND"
4646 if test -n "$ac_tool_prefix"; then
4647 # Extract the first word of "${ac_tool_prefix}gnatmake", so it can be a program name with args.
4648 set dummy ${ac_tool_prefix}gnatmake; ac_word=$2
4649 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4650 $as_echo_n "checking for $ac_word... " >&6; }
4651 if test "${ac_cv_prog_GNATMAKE+set}" = set; then :
4652 $as_echo_n "(cached) " >&6
4653 else
4654 if test -n "$GNATMAKE"; then
4655 ac_cv_prog_GNATMAKE="$GNATMAKE" # Let the user override the test.
4656 else
4657 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4658 for as_dir in $PATH
4660 IFS=$as_save_IFS
4661 test -z "$as_dir" && as_dir=.
4662 for ac_exec_ext in '' $ac_executable_extensions; do
4663 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4664 ac_cv_prog_GNATMAKE="${ac_tool_prefix}gnatmake"
4665 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4666 break 2
4668 done
4669 done
4670 IFS=$as_save_IFS
4674 GNATMAKE=$ac_cv_prog_GNATMAKE
4675 if test -n "$GNATMAKE"; then
4676 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GNATMAKE" >&5
4677 $as_echo "$GNATMAKE" >&6; }
4678 else
4679 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4680 $as_echo "no" >&6; }
4685 if test -z "$ac_cv_prog_GNATMAKE"; then
4686 ac_ct_GNATMAKE=$GNATMAKE
4687 # Extract the first word of "gnatmake", so it can be a program name with args.
4688 set dummy gnatmake; ac_word=$2
4689 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4690 $as_echo_n "checking for $ac_word... " >&6; }
4691 if test "${ac_cv_prog_ac_ct_GNATMAKE+set}" = set; then :
4692 $as_echo_n "(cached) " >&6
4693 else
4694 if test -n "$ac_ct_GNATMAKE"; then
4695 ac_cv_prog_ac_ct_GNATMAKE="$ac_ct_GNATMAKE" # Let the user override the test.
4696 else
4697 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4698 for as_dir in $PATH
4700 IFS=$as_save_IFS
4701 test -z "$as_dir" && as_dir=.
4702 for ac_exec_ext in '' $ac_executable_extensions; do
4703 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4704 ac_cv_prog_ac_ct_GNATMAKE="gnatmake"
4705 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4706 break 2
4708 done
4709 done
4710 IFS=$as_save_IFS
4714 ac_ct_GNATMAKE=$ac_cv_prog_ac_ct_GNATMAKE
4715 if test -n "$ac_ct_GNATMAKE"; then
4716 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_GNATMAKE" >&5
4717 $as_echo "$ac_ct_GNATMAKE" >&6; }
4718 else
4719 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4720 $as_echo "no" >&6; }
4723 if test "x$ac_ct_GNATMAKE" = x; then
4724 GNATMAKE="no"
4725 else
4726 case $cross_compiling:$ac_tool_warned in
4727 yes:)
4728 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4729 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4730 ac_tool_warned=yes ;;
4731 esac
4732 GNATMAKE=$ac_ct_GNATMAKE
4734 else
4735 GNATMAKE="$ac_cv_prog_GNATMAKE"
4738 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether compiler driver understands Ada" >&5
4739 $as_echo_n "checking whether compiler driver understands Ada... " >&6; }
4740 if test "${acx_cv_cc_gcc_supports_ada+set}" = set; then :
4741 $as_echo_n "(cached) " >&6
4742 else
4743 cat >conftest.adb <<EOF
4744 procedure conftest is begin null; end conftest;
4746 acx_cv_cc_gcc_supports_ada=no
4747 # There is a bug in old released versions of GCC which causes the
4748 # driver to exit successfully when the appropriate language module
4749 # has not been installed. This is fixed in 2.95.4, 3.0.2, and 3.1.
4750 # Therefore we must check for the error message as well as an
4751 # unsuccessful exit.
4752 # Other compilers, like HP Tru64 UNIX cc, exit successfully when
4753 # given a .adb file, but produce no object file. So we must check
4754 # if an object file was really produced to guard against this.
4755 errors=`(${CC} -I"$srcdir"/ada -c conftest.adb) 2>&1 || echo failure`
4756 if test x"$errors" = x && test -f conftest.$ac_objext; then
4757 acx_cv_cc_gcc_supports_ada=yes
4759 rm -f conftest.*
4761 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $acx_cv_cc_gcc_supports_ada" >&5
4762 $as_echo "$acx_cv_cc_gcc_supports_ada" >&6; }
4764 if test "x$GNATBIND" != xno && test "x$GNATMAKE" != xno && test x$acx_cv_cc_gcc_supports_ada != xno; then
4765 have_gnat=yes
4766 else
4767 have_gnat=no
4771 # Remove the -O2: for historical reasons, unless bootstrapping we prefer
4772 # optimizations to be activated explicitly by the toplevel.
4773 case "$CC" in
4774 */prev-gcc/xgcc*) ;;
4775 *) CFLAGS=`echo "$CFLAGS " | sed -e "s/-Ofast[ ]//" -e "s/-O[gs][ ]//" -e "s/-O[0-9]*[ ]//" `
4776 CXXFLAGS=`echo "$CXXFLAGS " | sed -e "s/-Ofast[ ]//" -e "s/-O[gs][ ]//" -e "s/-O[0-9]*[ ]//" ` ;;
4777 esac
4781 # Determine PICFLAG for target gnatlib.
4786 case "${target}" in
4787 # PIC is the default on some targets or must not be used.
4788 *-*-darwin*)
4789 # PIC is the default on this platform
4790 # Common symbols not allowed in MH_DYLIB files
4791 PICFLAG_FOR_TARGET=-fno-common
4793 alpha*-dec-osf5*)
4794 # PIC is the default.
4796 hppa*64*-*-hpux*)
4797 # PIC is the default for 64-bit PA HP-UX.
4799 i[34567]86-*-cygwin* | x86_64-*-cygwin*)
4801 i[34567]86-*-mingw* | x86_64-*-mingw*)
4803 i[34567]86-*-interix[3-9]*)
4804 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
4805 # Instead, we relocate shared libraries at runtime.
4807 i[34567]86-*-nto-qnx*)
4808 # QNX uses GNU C++, but need to define -shared option too, otherwise
4809 # it will coredump.
4810 PICFLAG_FOR_TARGET='-fPIC -shared'
4812 i[34567]86-pc-msdosdjgpp*)
4813 # DJGPP does not support shared libraries at all.
4815 ia64*-*-hpux*)
4816 # On IA64 HP-UX, PIC is the default but the pic flag
4817 # sets the default TLS model and affects inlining.
4818 PICFLAG_FOR_TARGET=-fPIC
4820 mips-sgi-irix6*)
4821 # PIC is the default.
4823 rs6000-ibm-aix* | powerpc-ibm-aix*)
4824 # All AIX code is PIC.
4827 # Some targets support both -fPIC and -fpic, but prefer the latter.
4828 # FIXME: Why?
4829 i[34567]86-*-* | x86_64-*-*)
4830 PICFLAG_FOR_TARGET=-fpic
4832 # FIXME: Override -fPIC default in libgcc only?
4833 sh-*-linux* | sh[2346lbe]*-*-linux*)
4834 PICFLAG_FOR_TARGET=-fpic
4836 # FIXME: Simplify to sh*-*-netbsd*?
4837 sh-*-netbsdelf* | shl*-*-netbsdelf* | sh5-*-netbsd* | sh5l*-*-netbsd* | \
4838 sh64-*-netbsd* | sh64l*-*-netbsd*)
4839 PICFLAG_FOR_TARGET=-fpic
4841 # Default to -fPIC unless specified otherwise.
4843 PICFLAG_FOR_TARGET=-fPIC
4845 esac
4847 # If the user explicitly uses -fpic/-fPIC, keep that.
4848 case "${CFLAGS_FOR_TARGET}" in
4849 *-fpic*)
4850 PICFLAG_FOR_TARGET=-fpic
4852 *-fPIC*)
4853 PICFLAG_FOR_TARGET=-fPIC
4855 esac
4859 # -------------------------
4860 # Check C compiler features
4861 # -------------------------
4864 ac_ext=c
4865 ac_cpp='$CPP $CPPFLAGS'
4866 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4867 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4868 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4869 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
4870 $as_echo_n "checking how to run the C preprocessor... " >&6; }
4871 # On Suns, sometimes $CPP names a directory.
4872 if test -n "$CPP" && test -d "$CPP"; then
4873 CPP=
4875 if test -z "$CPP"; then
4876 if test "${ac_cv_prog_CPP+set}" = set; then :
4877 $as_echo_n "(cached) " >&6
4878 else
4879 # Double quotes because CPP needs to be expanded
4880 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
4882 ac_preproc_ok=false
4883 for ac_c_preproc_warn_flag in '' yes
4885 # Use a header file that comes with gcc, so configuring glibc
4886 # with a fresh cross-compiler works.
4887 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4888 # <limits.h> exists even on freestanding compilers.
4889 # On the NeXT, cc -E runs the code through the compiler's parser,
4890 # not just through cpp. "Syntax error" is here to catch this case.
4891 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4892 /* end confdefs.h. */
4893 #ifdef __STDC__
4894 # include <limits.h>
4895 #else
4896 # include <assert.h>
4897 #endif
4898 Syntax error
4899 _ACEOF
4900 if ac_fn_c_try_cpp "$LINENO"; then :
4902 else
4903 # Broken: fails on valid input.
4904 continue
4906 rm -f conftest.err conftest.$ac_ext
4908 # OK, works on sane cases. Now check whether nonexistent headers
4909 # can be detected and how.
4910 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4911 /* end confdefs.h. */
4912 #include <ac_nonexistent.h>
4913 _ACEOF
4914 if ac_fn_c_try_cpp "$LINENO"; then :
4915 # Broken: success on invalid input.
4916 continue
4917 else
4918 # Passes both tests.
4919 ac_preproc_ok=:
4920 break
4922 rm -f conftest.err conftest.$ac_ext
4924 done
4925 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4926 rm -f conftest.err conftest.$ac_ext
4927 if $ac_preproc_ok; then :
4928 break
4931 done
4932 ac_cv_prog_CPP=$CPP
4935 CPP=$ac_cv_prog_CPP
4936 else
4937 ac_cv_prog_CPP=$CPP
4939 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
4940 $as_echo "$CPP" >&6; }
4941 ac_preproc_ok=false
4942 for ac_c_preproc_warn_flag in '' yes
4944 # Use a header file that comes with gcc, so configuring glibc
4945 # with a fresh cross-compiler works.
4946 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4947 # <limits.h> exists even on freestanding compilers.
4948 # On the NeXT, cc -E runs the code through the compiler's parser,
4949 # not just through cpp. "Syntax error" is here to catch this case.
4950 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4951 /* end confdefs.h. */
4952 #ifdef __STDC__
4953 # include <limits.h>
4954 #else
4955 # include <assert.h>
4956 #endif
4957 Syntax error
4958 _ACEOF
4959 if ac_fn_c_try_cpp "$LINENO"; then :
4961 else
4962 # Broken: fails on valid input.
4963 continue
4965 rm -f conftest.err conftest.$ac_ext
4967 # OK, works on sane cases. Now check whether nonexistent headers
4968 # can be detected and how.
4969 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4970 /* end confdefs.h. */
4971 #include <ac_nonexistent.h>
4972 _ACEOF
4973 if ac_fn_c_try_cpp "$LINENO"; then :
4974 # Broken: success on invalid input.
4975 continue
4976 else
4977 # Passes both tests.
4978 ac_preproc_ok=:
4979 break
4981 rm -f conftest.err conftest.$ac_ext
4983 done
4984 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4985 rm -f conftest.err conftest.$ac_ext
4986 if $ac_preproc_ok; then :
4988 else
4989 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4990 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4991 as_fn_error "C preprocessor \"$CPP\" fails sanity check
4992 See \`config.log' for more details." "$LINENO" 5; }
4995 ac_ext=c
4996 ac_cpp='$CPP $CPPFLAGS'
4997 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4998 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4999 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5002 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
5003 $as_echo_n "checking for grep that handles long lines and -e... " >&6; }
5004 if test "${ac_cv_path_GREP+set}" = set; then :
5005 $as_echo_n "(cached) " >&6
5006 else
5007 if test -z "$GREP"; then
5008 ac_path_GREP_found=false
5009 # Loop through the user's path and test for each of PROGNAME-LIST
5010 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5011 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
5013 IFS=$as_save_IFS
5014 test -z "$as_dir" && as_dir=.
5015 for ac_prog in grep ggrep; do
5016 for ac_exec_ext in '' $ac_executable_extensions; do
5017 ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
5018 { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } || continue
5019 # Check for GNU ac_path_GREP and select it if it is found.
5020 # Check for GNU $ac_path_GREP
5021 case `"$ac_path_GREP" --version 2>&1` in
5022 *GNU*)
5023 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
5025 ac_count=0
5026 $as_echo_n 0123456789 >"conftest.in"
5027 while :
5029 cat "conftest.in" "conftest.in" >"conftest.tmp"
5030 mv "conftest.tmp" "conftest.in"
5031 cp "conftest.in" "conftest.nl"
5032 $as_echo 'GREP' >> "conftest.nl"
5033 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
5034 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
5035 as_fn_arith $ac_count + 1 && ac_count=$as_val
5036 if test $ac_count -gt ${ac_path_GREP_max-0}; then
5037 # Best one so far, save it but keep looking for a better one
5038 ac_cv_path_GREP="$ac_path_GREP"
5039 ac_path_GREP_max=$ac_count
5041 # 10*(2^10) chars as input seems more than enough
5042 test $ac_count -gt 10 && break
5043 done
5044 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
5045 esac
5047 $ac_path_GREP_found && break 3
5048 done
5049 done
5050 done
5051 IFS=$as_save_IFS
5052 if test -z "$ac_cv_path_GREP"; then
5053 as_fn_error "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
5055 else
5056 ac_cv_path_GREP=$GREP
5060 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
5061 $as_echo "$ac_cv_path_GREP" >&6; }
5062 GREP="$ac_cv_path_GREP"
5065 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
5066 $as_echo_n "checking for egrep... " >&6; }
5067 if test "${ac_cv_path_EGREP+set}" = set; then :
5068 $as_echo_n "(cached) " >&6
5069 else
5070 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
5071 then ac_cv_path_EGREP="$GREP -E"
5072 else
5073 if test -z "$EGREP"; then
5074 ac_path_EGREP_found=false
5075 # Loop through the user's path and test for each of PROGNAME-LIST
5076 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5077 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
5079 IFS=$as_save_IFS
5080 test -z "$as_dir" && as_dir=.
5081 for ac_prog in egrep; do
5082 for ac_exec_ext in '' $ac_executable_extensions; do
5083 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
5084 { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } || continue
5085 # Check for GNU ac_path_EGREP and select it if it is found.
5086 # Check for GNU $ac_path_EGREP
5087 case `"$ac_path_EGREP" --version 2>&1` in
5088 *GNU*)
5089 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
5091 ac_count=0
5092 $as_echo_n 0123456789 >"conftest.in"
5093 while :
5095 cat "conftest.in" "conftest.in" >"conftest.tmp"
5096 mv "conftest.tmp" "conftest.in"
5097 cp "conftest.in" "conftest.nl"
5098 $as_echo 'EGREP' >> "conftest.nl"
5099 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
5100 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
5101 as_fn_arith $ac_count + 1 && ac_count=$as_val
5102 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
5103 # Best one so far, save it but keep looking for a better one
5104 ac_cv_path_EGREP="$ac_path_EGREP"
5105 ac_path_EGREP_max=$ac_count
5107 # 10*(2^10) chars as input seems more than enough
5108 test $ac_count -gt 10 && break
5109 done
5110 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
5111 esac
5113 $ac_path_EGREP_found && break 3
5114 done
5115 done
5116 done
5117 IFS=$as_save_IFS
5118 if test -z "$ac_cv_path_EGREP"; then
5119 as_fn_error "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
5121 else
5122 ac_cv_path_EGREP=$EGREP
5127 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
5128 $as_echo "$ac_cv_path_EGREP" >&6; }
5129 EGREP="$ac_cv_path_EGREP"
5132 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
5133 $as_echo_n "checking for ANSI C header files... " >&6; }
5134 if test "${ac_cv_header_stdc+set}" = set; then :
5135 $as_echo_n "(cached) " >&6
5136 else
5137 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5138 /* end confdefs.h. */
5139 #include <stdlib.h>
5140 #include <stdarg.h>
5141 #include <string.h>
5142 #include <float.h>
5145 main ()
5149 return 0;
5151 _ACEOF
5152 if ac_fn_c_try_compile "$LINENO"; then :
5153 ac_cv_header_stdc=yes
5154 else
5155 ac_cv_header_stdc=no
5157 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5159 if test $ac_cv_header_stdc = yes; then
5160 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
5161 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5162 /* end confdefs.h. */
5163 #include <string.h>
5165 _ACEOF
5166 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5167 $EGREP "memchr" >/dev/null 2>&1; then :
5169 else
5170 ac_cv_header_stdc=no
5172 rm -f conftest*
5176 if test $ac_cv_header_stdc = yes; then
5177 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
5178 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5179 /* end confdefs.h. */
5180 #include <stdlib.h>
5182 _ACEOF
5183 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5184 $EGREP "free" >/dev/null 2>&1; then :
5186 else
5187 ac_cv_header_stdc=no
5189 rm -f conftest*
5193 if test $ac_cv_header_stdc = yes; then
5194 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
5195 if test "$cross_compiling" = yes; then :
5197 else
5198 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5199 /* end confdefs.h. */
5200 #include <ctype.h>
5201 #include <stdlib.h>
5202 #if ((' ' & 0x0FF) == 0x020)
5203 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
5204 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
5205 #else
5206 # define ISLOWER(c) \
5207 (('a' <= (c) && (c) <= 'i') \
5208 || ('j' <= (c) && (c) <= 'r') \
5209 || ('s' <= (c) && (c) <= 'z'))
5210 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
5211 #endif
5213 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
5215 main ()
5217 int i;
5218 for (i = 0; i < 256; i++)
5219 if (XOR (islower (i), ISLOWER (i))
5220 || toupper (i) != TOUPPER (i))
5221 return 2;
5222 return 0;
5224 _ACEOF
5225 if ac_fn_c_try_run "$LINENO"; then :
5227 else
5228 ac_cv_header_stdc=no
5230 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
5231 conftest.$ac_objext conftest.beam conftest.$ac_ext
5236 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
5237 $as_echo "$ac_cv_header_stdc" >&6; }
5238 if test $ac_cv_header_stdc = yes; then
5240 $as_echo "#define STDC_HEADERS 1" >>confdefs.h
5244 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
5245 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
5246 inttypes.h stdint.h unistd.h
5247 do :
5248 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
5249 ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
5251 eval as_val=\$$as_ac_Header
5252 if test "x$as_val" = x""yes; then :
5253 cat >>confdefs.h <<_ACEOF
5254 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
5255 _ACEOF
5259 done
5263 ac_fn_c_check_header_mongrel "$LINENO" "minix/config.h" "ac_cv_header_minix_config_h" "$ac_includes_default"
5264 if test "x$ac_cv_header_minix_config_h" = x""yes; then :
5265 MINIX=yes
5266 else
5267 MINIX=
5271 if test "$MINIX" = yes; then
5273 $as_echo "#define _POSIX_SOURCE 1" >>confdefs.h
5276 $as_echo "#define _POSIX_1_SOURCE 2" >>confdefs.h
5279 $as_echo "#define _MINIX 1" >>confdefs.h
5284 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether it is safe to define __EXTENSIONS__" >&5
5285 $as_echo_n "checking whether it is safe to define __EXTENSIONS__... " >&6; }
5286 if test "${ac_cv_safe_to_define___extensions__+set}" = set; then :
5287 $as_echo_n "(cached) " >&6
5288 else
5289 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5290 /* end confdefs.h. */
5292 # define __EXTENSIONS__ 1
5293 $ac_includes_default
5295 main ()
5299 return 0;
5301 _ACEOF
5302 if ac_fn_c_try_compile "$LINENO"; then :
5303 ac_cv_safe_to_define___extensions__=yes
5304 else
5305 ac_cv_safe_to_define___extensions__=no
5307 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5309 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_safe_to_define___extensions__" >&5
5310 $as_echo "$ac_cv_safe_to_define___extensions__" >&6; }
5311 test $ac_cv_safe_to_define___extensions__ = yes &&
5312 $as_echo "#define __EXTENSIONS__ 1" >>confdefs.h
5314 $as_echo "#define _ALL_SOURCE 1" >>confdefs.h
5316 $as_echo "#define _GNU_SOURCE 1" >>confdefs.h
5318 $as_echo "#define _POSIX_PTHREAD_SEMANTICS 1" >>confdefs.h
5320 $as_echo "#define _TANDEM_SOURCE 1" >>confdefs.h
5323 ac_ext=c
5324 ac_cpp='$CPP $CPPFLAGS'
5325 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5326 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5327 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5328 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
5329 $as_echo_n "checking how to run the C preprocessor... " >&6; }
5330 # On Suns, sometimes $CPP names a directory.
5331 if test -n "$CPP" && test -d "$CPP"; then
5332 CPP=
5334 if test -z "$CPP"; then
5335 if test "${ac_cv_prog_CPP+set}" = set; then :
5336 $as_echo_n "(cached) " >&6
5337 else
5338 # Double quotes because CPP needs to be expanded
5339 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
5341 ac_preproc_ok=false
5342 for ac_c_preproc_warn_flag in '' yes
5344 # Use a header file that comes with gcc, so configuring glibc
5345 # with a fresh cross-compiler works.
5346 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5347 # <limits.h> exists even on freestanding compilers.
5348 # On the NeXT, cc -E runs the code through the compiler's parser,
5349 # not just through cpp. "Syntax error" is here to catch this case.
5350 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5351 /* end confdefs.h. */
5352 #ifdef __STDC__
5353 # include <limits.h>
5354 #else
5355 # include <assert.h>
5356 #endif
5357 Syntax error
5358 _ACEOF
5359 if ac_fn_c_try_cpp "$LINENO"; then :
5361 else
5362 # Broken: fails on valid input.
5363 continue
5365 rm -f conftest.err conftest.$ac_ext
5367 # OK, works on sane cases. Now check whether nonexistent headers
5368 # can be detected and how.
5369 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5370 /* end confdefs.h. */
5371 #include <ac_nonexistent.h>
5372 _ACEOF
5373 if ac_fn_c_try_cpp "$LINENO"; then :
5374 # Broken: success on invalid input.
5375 continue
5376 else
5377 # Passes both tests.
5378 ac_preproc_ok=:
5379 break
5381 rm -f conftest.err conftest.$ac_ext
5383 done
5384 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5385 rm -f conftest.err conftest.$ac_ext
5386 if $ac_preproc_ok; then :
5387 break
5390 done
5391 ac_cv_prog_CPP=$CPP
5394 CPP=$ac_cv_prog_CPP
5395 else
5396 ac_cv_prog_CPP=$CPP
5398 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
5399 $as_echo "$CPP" >&6; }
5400 ac_preproc_ok=false
5401 for ac_c_preproc_warn_flag in '' yes
5403 # Use a header file that comes with gcc, so configuring glibc
5404 # with a fresh cross-compiler works.
5405 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5406 # <limits.h> exists even on freestanding compilers.
5407 # On the NeXT, cc -E runs the code through the compiler's parser,
5408 # not just through cpp. "Syntax error" is here to catch this case.
5409 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5410 /* end confdefs.h. */
5411 #ifdef __STDC__
5412 # include <limits.h>
5413 #else
5414 # include <assert.h>
5415 #endif
5416 Syntax error
5417 _ACEOF
5418 if ac_fn_c_try_cpp "$LINENO"; then :
5420 else
5421 # Broken: fails on valid input.
5422 continue
5424 rm -f conftest.err conftest.$ac_ext
5426 # OK, works on sane cases. Now check whether nonexistent headers
5427 # can be detected and how.
5428 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5429 /* end confdefs.h. */
5430 #include <ac_nonexistent.h>
5431 _ACEOF
5432 if ac_fn_c_try_cpp "$LINENO"; then :
5433 # Broken: success on invalid input.
5434 continue
5435 else
5436 # Passes both tests.
5437 ac_preproc_ok=:
5438 break
5440 rm -f conftest.err conftest.$ac_ext
5442 done
5443 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5444 rm -f conftest.err conftest.$ac_ext
5445 if $ac_preproc_ok; then :
5447 else
5448 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
5449 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
5450 as_fn_error "C preprocessor \"$CPP\" fails sanity check
5451 See \`config.log' for more details." "$LINENO" 5; }
5454 ac_ext=c
5455 ac_cpp='$CPP $CPPFLAGS'
5456 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5457 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5458 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5460 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for inline" >&5
5461 $as_echo_n "checking for inline... " >&6; }
5462 if test "${ac_cv_c_inline+set}" = set; then :
5463 $as_echo_n "(cached) " >&6
5464 else
5465 ac_cv_c_inline=no
5466 for ac_kw in inline __inline__ __inline; do
5467 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5468 /* end confdefs.h. */
5469 #ifndef __cplusplus
5470 typedef int foo_t;
5471 static $ac_kw foo_t static_foo () {return 0; }
5472 $ac_kw foo_t foo () {return 0; }
5473 #endif
5475 _ACEOF
5476 if ac_fn_c_try_compile "$LINENO"; then :
5477 ac_cv_c_inline=$ac_kw
5479 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5480 test "$ac_cv_c_inline" != no && break
5481 done
5484 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_inline" >&5
5485 $as_echo "$ac_cv_c_inline" >&6; }
5487 case $ac_cv_c_inline in
5488 inline | yes) ;;
5490 case $ac_cv_c_inline in
5491 no) ac_val=;;
5492 *) ac_val=$ac_cv_c_inline;;
5493 esac
5494 cat >>confdefs.h <<_ACEOF
5495 #ifndef __cplusplus
5496 #define inline $ac_val
5497 #endif
5498 _ACEOF
5500 esac
5503 # Check whether --enable-largefile was given.
5504 if test "${enable_largefile+set}" = set; then :
5505 enableval=$enable_largefile;
5508 if test "$enable_largefile" != no; then
5510 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for special C compiler options needed for large files" >&5
5511 $as_echo_n "checking for special C compiler options needed for large files... " >&6; }
5512 if test "${ac_cv_sys_largefile_CC+set}" = set; then :
5513 $as_echo_n "(cached) " >&6
5514 else
5515 ac_cv_sys_largefile_CC=no
5516 if test "$GCC" != yes; then
5517 ac_save_CC=$CC
5518 while :; do
5519 # IRIX 6.2 and later do not support large files by default,
5520 # so use the C compiler's -n32 option if that helps.
5521 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5522 /* end confdefs.h. */
5523 #include <sys/types.h>
5524 /* Check that off_t can represent 2**63 - 1 correctly.
5525 We can't simply define LARGE_OFF_T to be 9223372036854775807,
5526 since some C++ compilers masquerading as C compilers
5527 incorrectly reject 9223372036854775807. */
5528 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
5529 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
5530 && LARGE_OFF_T % 2147483647 == 1)
5531 ? 1 : -1];
5533 main ()
5537 return 0;
5539 _ACEOF
5540 if ac_fn_c_try_compile "$LINENO"; then :
5541 break
5543 rm -f core conftest.err conftest.$ac_objext
5544 CC="$CC -n32"
5545 if ac_fn_c_try_compile "$LINENO"; then :
5546 ac_cv_sys_largefile_CC=' -n32'; break
5548 rm -f core conftest.err conftest.$ac_objext
5549 break
5550 done
5551 CC=$ac_save_CC
5552 rm -f conftest.$ac_ext
5555 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_largefile_CC" >&5
5556 $as_echo "$ac_cv_sys_largefile_CC" >&6; }
5557 if test "$ac_cv_sys_largefile_CC" != no; then
5558 CC=$CC$ac_cv_sys_largefile_CC
5561 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _FILE_OFFSET_BITS value needed for large files" >&5
5562 $as_echo_n "checking for _FILE_OFFSET_BITS value needed for large files... " >&6; }
5563 if test "${ac_cv_sys_file_offset_bits+set}" = set; then :
5564 $as_echo_n "(cached) " >&6
5565 else
5566 while :; do
5567 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5568 /* end confdefs.h. */
5569 #include <sys/types.h>
5570 /* Check that off_t can represent 2**63 - 1 correctly.
5571 We can't simply define LARGE_OFF_T to be 9223372036854775807,
5572 since some C++ compilers masquerading as C compilers
5573 incorrectly reject 9223372036854775807. */
5574 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
5575 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
5576 && LARGE_OFF_T % 2147483647 == 1)
5577 ? 1 : -1];
5579 main ()
5583 return 0;
5585 _ACEOF
5586 if ac_fn_c_try_compile "$LINENO"; then :
5587 ac_cv_sys_file_offset_bits=no; break
5589 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5590 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5591 /* end confdefs.h. */
5592 #define _FILE_OFFSET_BITS 64
5593 #include <sys/types.h>
5594 /* Check that off_t can represent 2**63 - 1 correctly.
5595 We can't simply define LARGE_OFF_T to be 9223372036854775807,
5596 since some C++ compilers masquerading as C compilers
5597 incorrectly reject 9223372036854775807. */
5598 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
5599 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
5600 && LARGE_OFF_T % 2147483647 == 1)
5601 ? 1 : -1];
5603 main ()
5607 return 0;
5609 _ACEOF
5610 if ac_fn_c_try_compile "$LINENO"; then :
5611 ac_cv_sys_file_offset_bits=64; break
5613 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5614 ac_cv_sys_file_offset_bits=unknown
5615 break
5616 done
5618 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_file_offset_bits" >&5
5619 $as_echo "$ac_cv_sys_file_offset_bits" >&6; }
5620 case $ac_cv_sys_file_offset_bits in #(
5621 no | unknown) ;;
5623 cat >>confdefs.h <<_ACEOF
5624 #define _FILE_OFFSET_BITS $ac_cv_sys_file_offset_bits
5625 _ACEOF
5627 esac
5628 rm -rf conftest*
5629 if test $ac_cv_sys_file_offset_bits = unknown; then
5630 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _LARGE_FILES value needed for large files" >&5
5631 $as_echo_n "checking for _LARGE_FILES value needed for large files... " >&6; }
5632 if test "${ac_cv_sys_large_files+set}" = set; then :
5633 $as_echo_n "(cached) " >&6
5634 else
5635 while :; do
5636 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5637 /* end confdefs.h. */
5638 #include <sys/types.h>
5639 /* Check that off_t can represent 2**63 - 1 correctly.
5640 We can't simply define LARGE_OFF_T to be 9223372036854775807,
5641 since some C++ compilers masquerading as C compilers
5642 incorrectly reject 9223372036854775807. */
5643 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
5644 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
5645 && LARGE_OFF_T % 2147483647 == 1)
5646 ? 1 : -1];
5648 main ()
5652 return 0;
5654 _ACEOF
5655 if ac_fn_c_try_compile "$LINENO"; then :
5656 ac_cv_sys_large_files=no; break
5658 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5659 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5660 /* end confdefs.h. */
5661 #define _LARGE_FILES 1
5662 #include <sys/types.h>
5663 /* Check that off_t can represent 2**63 - 1 correctly.
5664 We can't simply define LARGE_OFF_T to be 9223372036854775807,
5665 since some C++ compilers masquerading as C compilers
5666 incorrectly reject 9223372036854775807. */
5667 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
5668 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
5669 && LARGE_OFF_T % 2147483647 == 1)
5670 ? 1 : -1];
5672 main ()
5676 return 0;
5678 _ACEOF
5679 if ac_fn_c_try_compile "$LINENO"; then :
5680 ac_cv_sys_large_files=1; break
5682 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5683 ac_cv_sys_large_files=unknown
5684 break
5685 done
5687 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_large_files" >&5
5688 $as_echo "$ac_cv_sys_large_files" >&6; }
5689 case $ac_cv_sys_large_files in #(
5690 no | unknown) ;;
5692 cat >>confdefs.h <<_ACEOF
5693 #define _LARGE_FILES $ac_cv_sys_large_files
5694 _ACEOF
5696 esac
5697 rm -rf conftest*
5702 # sizeof(char) is 1 by definition.
5703 # The cast to long int works around a bug in the HP C Compiler
5704 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
5705 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
5706 # This bug is HP SR number 8606223364.
5707 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of void *" >&5
5708 $as_echo_n "checking size of void *... " >&6; }
5709 if test "${ac_cv_sizeof_void_p+set}" = set; then :
5710 $as_echo_n "(cached) " >&6
5711 else
5712 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (void *))" "ac_cv_sizeof_void_p" "$ac_includes_default"; then :
5714 else
5715 if test "$ac_cv_type_void_p" = yes; then
5716 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
5717 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
5718 { as_fn_set_status 77
5719 as_fn_error "cannot compute sizeof (void *)
5720 See \`config.log' for more details." "$LINENO" 5; }; }
5721 else
5722 ac_cv_sizeof_void_p=0
5727 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_void_p" >&5
5728 $as_echo "$ac_cv_sizeof_void_p" >&6; }
5732 cat >>confdefs.h <<_ACEOF
5733 #define SIZEOF_VOID_P $ac_cv_sizeof_void_p
5734 _ACEOF
5737 # The cast to long int works around a bug in the HP C Compiler
5738 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
5739 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
5740 # This bug is HP SR number 8606223364.
5741 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of short" >&5
5742 $as_echo_n "checking size of short... " >&6; }
5743 if test "${ac_cv_sizeof_short+set}" = set; then :
5744 $as_echo_n "(cached) " >&6
5745 else
5746 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (short))" "ac_cv_sizeof_short" "$ac_includes_default"; then :
5748 else
5749 if test "$ac_cv_type_short" = yes; then
5750 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
5751 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
5752 { as_fn_set_status 77
5753 as_fn_error "cannot compute sizeof (short)
5754 See \`config.log' for more details." "$LINENO" 5; }; }
5755 else
5756 ac_cv_sizeof_short=0
5761 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_short" >&5
5762 $as_echo "$ac_cv_sizeof_short" >&6; }
5766 cat >>confdefs.h <<_ACEOF
5767 #define SIZEOF_SHORT $ac_cv_sizeof_short
5768 _ACEOF
5771 # The cast to long int works around a bug in the HP C Compiler
5772 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
5773 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
5774 # This bug is HP SR number 8606223364.
5775 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of int" >&5
5776 $as_echo_n "checking size of int... " >&6; }
5777 if test "${ac_cv_sizeof_int+set}" = set; then :
5778 $as_echo_n "(cached) " >&6
5779 else
5780 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (int))" "ac_cv_sizeof_int" "$ac_includes_default"; then :
5782 else
5783 if test "$ac_cv_type_int" = yes; then
5784 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
5785 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
5786 { as_fn_set_status 77
5787 as_fn_error "cannot compute sizeof (int)
5788 See \`config.log' for more details." "$LINENO" 5; }; }
5789 else
5790 ac_cv_sizeof_int=0
5795 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_int" >&5
5796 $as_echo "$ac_cv_sizeof_int" >&6; }
5800 cat >>confdefs.h <<_ACEOF
5801 #define SIZEOF_INT $ac_cv_sizeof_int
5802 _ACEOF
5805 # The cast to long int works around a bug in the HP C Compiler
5806 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
5807 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
5808 # This bug is HP SR number 8606223364.
5809 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of long" >&5
5810 $as_echo_n "checking size of long... " >&6; }
5811 if test "${ac_cv_sizeof_long+set}" = set; then :
5812 $as_echo_n "(cached) " >&6
5813 else
5814 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (long))" "ac_cv_sizeof_long" "$ac_includes_default"; then :
5816 else
5817 if test "$ac_cv_type_long" = yes; then
5818 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
5819 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
5820 { as_fn_set_status 77
5821 as_fn_error "cannot compute sizeof (long)
5822 See \`config.log' for more details." "$LINENO" 5; }; }
5823 else
5824 ac_cv_sizeof_long=0
5829 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_long" >&5
5830 $as_echo "$ac_cv_sizeof_long" >&6; }
5834 cat >>confdefs.h <<_ACEOF
5835 #define SIZEOF_LONG $ac_cv_sizeof_long
5836 _ACEOF
5839 ac_fn_c_check_type "$LINENO" "long long" "ac_cv_type_long_long" "$ac_includes_default"
5840 if test "x$ac_cv_type_long_long" = x""yes; then :
5842 cat >>confdefs.h <<_ACEOF
5843 #define HAVE_LONG_LONG 1
5844 _ACEOF
5846 # The cast to long int works around a bug in the HP C Compiler
5847 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
5848 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
5849 # This bug is HP SR number 8606223364.
5850 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of long long" >&5
5851 $as_echo_n "checking size of long long... " >&6; }
5852 if test "${ac_cv_sizeof_long_long+set}" = set; then :
5853 $as_echo_n "(cached) " >&6
5854 else
5855 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (long long))" "ac_cv_sizeof_long_long" "$ac_includes_default"; then :
5857 else
5858 if test "$ac_cv_type_long_long" = yes; then
5859 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
5860 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
5861 { as_fn_set_status 77
5862 as_fn_error "cannot compute sizeof (long long)
5863 See \`config.log' for more details." "$LINENO" 5; }; }
5864 else
5865 ac_cv_sizeof_long_long=0
5870 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_long_long" >&5
5871 $as_echo "$ac_cv_sizeof_long_long" >&6; }
5875 cat >>confdefs.h <<_ACEOF
5876 #define SIZEOF_LONG_LONG $ac_cv_sizeof_long_long
5877 _ACEOF
5882 ac_fn_c_find_intX_t "$LINENO" "8" "ac_cv_c_int8_t"
5883 case $ac_cv_c_int8_t in #(
5884 no|yes) ;; #(
5887 cat >>confdefs.h <<_ACEOF
5888 #define int8_t $ac_cv_c_int8_t
5889 _ACEOF
5891 esac
5893 ac_fn_c_find_intX_t "$LINENO" "16" "ac_cv_c_int16_t"
5894 case $ac_cv_c_int16_t in #(
5895 no|yes) ;; #(
5898 cat >>confdefs.h <<_ACEOF
5899 #define int16_t $ac_cv_c_int16_t
5900 _ACEOF
5902 esac
5904 ac_fn_c_find_intX_t "$LINENO" "32" "ac_cv_c_int32_t"
5905 case $ac_cv_c_int32_t in #(
5906 no|yes) ;; #(
5909 cat >>confdefs.h <<_ACEOF
5910 #define int32_t $ac_cv_c_int32_t
5911 _ACEOF
5913 esac
5915 ac_fn_c_find_intX_t "$LINENO" "64" "ac_cv_c_int64_t"
5916 case $ac_cv_c_int64_t in #(
5917 no|yes) ;; #(
5920 cat >>confdefs.h <<_ACEOF
5921 #define int64_t $ac_cv_c_int64_t
5922 _ACEOF
5924 esac
5927 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for long long int" >&5
5928 $as_echo_n "checking for long long int... " >&6; }
5929 if test "${ac_cv_type_long_long_int+set}" = set; then :
5930 $as_echo_n "(cached) " >&6
5931 else
5932 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5933 /* end confdefs.h. */
5935 /* For now, do not test the preprocessor; as of 2007 there are too many
5936 implementations with broken preprocessors. Perhaps this can
5937 be revisited in 2012. In the meantime, code should not expect
5938 #if to work with literals wider than 32 bits. */
5939 /* Test literals. */
5940 long long int ll = 9223372036854775807ll;
5941 long long int nll = -9223372036854775807LL;
5942 unsigned long long int ull = 18446744073709551615ULL;
5943 /* Test constant expressions. */
5944 typedef int a[((-9223372036854775807LL < 0 && 0 < 9223372036854775807ll)
5945 ? 1 : -1)];
5946 typedef int b[(18446744073709551615ULL <= (unsigned long long int) -1
5947 ? 1 : -1)];
5948 int i = 63;
5950 main ()
5952 /* Test availability of runtime routines for shift and division. */
5953 long long int llmax = 9223372036854775807ll;
5954 unsigned long long int ullmax = 18446744073709551615ull;
5955 return ((ll << 63) | (ll >> 63) | (ll < i) | (ll > i)
5956 | (llmax / ll) | (llmax % ll)
5957 | (ull << 63) | (ull >> 63) | (ull << i) | (ull >> i)
5958 | (ullmax / ull) | (ullmax % ull));
5960 return 0;
5963 _ACEOF
5964 if ac_fn_c_try_link "$LINENO"; then :
5965 if test "$cross_compiling" = yes; then :
5966 ac_cv_type_long_long_int=yes
5967 else
5968 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5969 /* end confdefs.h. */
5970 #include <limits.h>
5971 #ifndef LLONG_MAX
5972 # define HALF \
5973 (1LL << (sizeof (long long int) * CHAR_BIT - 2))
5974 # define LLONG_MAX (HALF - 1 + HALF)
5975 #endif
5977 main ()
5979 long long int n = 1;
5980 int i;
5981 for (i = 0; ; i++)
5983 long long int m = n << i;
5984 if (m >> i != n)
5985 return 1;
5986 if (LLONG_MAX / 2 < m)
5987 break;
5989 return 0;
5991 return 0;
5993 _ACEOF
5994 if ac_fn_c_try_run "$LINENO"; then :
5995 ac_cv_type_long_long_int=yes
5996 else
5997 ac_cv_type_long_long_int=no
5999 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
6000 conftest.$ac_objext conftest.beam conftest.$ac_ext
6003 else
6004 ac_cv_type_long_long_int=no
6006 rm -f core conftest.err conftest.$ac_objext \
6007 conftest$ac_exeext conftest.$ac_ext
6009 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_long_long_int" >&5
6010 $as_echo "$ac_cv_type_long_long_int" >&6; }
6011 if test $ac_cv_type_long_long_int = yes; then
6013 $as_echo "#define HAVE_LONG_LONG_INT 1" >>confdefs.h
6019 ac_fn_c_check_type "$LINENO" "intmax_t" "ac_cv_type_intmax_t" "$ac_includes_default"
6020 if test "x$ac_cv_type_intmax_t" = x""yes; then :
6022 $as_echo "#define HAVE_INTMAX_T 1" >>confdefs.h
6024 else
6025 test $ac_cv_type_long_long_int = yes \
6026 && ac_type='long long int' \
6027 || ac_type='long int'
6029 cat >>confdefs.h <<_ACEOF
6030 #define intmax_t $ac_type
6031 _ACEOF
6037 ac_fn_c_check_type "$LINENO" "intptr_t" "ac_cv_type_intptr_t" "$ac_includes_default"
6038 if test "x$ac_cv_type_intptr_t" = x""yes; then :
6040 $as_echo "#define HAVE_INTPTR_T 1" >>confdefs.h
6042 else
6043 for ac_type in 'int' 'long int' 'long long int'; do
6044 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6045 /* end confdefs.h. */
6046 $ac_includes_default
6048 main ()
6050 static int test_array [1 - 2 * !(sizeof (void *) <= sizeof ($ac_type))];
6051 test_array [0] = 0
6054 return 0;
6056 _ACEOF
6057 if ac_fn_c_try_compile "$LINENO"; then :
6059 cat >>confdefs.h <<_ACEOF
6060 #define intptr_t $ac_type
6061 _ACEOF
6063 ac_type=
6065 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6066 test -z "$ac_type" && break
6067 done
6071 ac_fn_c_find_uintX_t "$LINENO" "8" "ac_cv_c_uint8_t"
6072 case $ac_cv_c_uint8_t in #(
6073 no|yes) ;; #(
6076 $as_echo "#define _UINT8_T 1" >>confdefs.h
6079 cat >>confdefs.h <<_ACEOF
6080 #define uint8_t $ac_cv_c_uint8_t
6081 _ACEOF
6083 esac
6085 ac_fn_c_find_uintX_t "$LINENO" "16" "ac_cv_c_uint16_t"
6086 case $ac_cv_c_uint16_t in #(
6087 no|yes) ;; #(
6091 cat >>confdefs.h <<_ACEOF
6092 #define uint16_t $ac_cv_c_uint16_t
6093 _ACEOF
6095 esac
6097 ac_fn_c_find_uintX_t "$LINENO" "32" "ac_cv_c_uint32_t"
6098 case $ac_cv_c_uint32_t in #(
6099 no|yes) ;; #(
6102 $as_echo "#define _UINT32_T 1" >>confdefs.h
6105 cat >>confdefs.h <<_ACEOF
6106 #define uint32_t $ac_cv_c_uint32_t
6107 _ACEOF
6109 esac
6111 ac_fn_c_find_uintX_t "$LINENO" "64" "ac_cv_c_uint64_t"
6112 case $ac_cv_c_uint64_t in #(
6113 no|yes) ;; #(
6116 $as_echo "#define _UINT64_T 1" >>confdefs.h
6119 cat >>confdefs.h <<_ACEOF
6120 #define uint64_t $ac_cv_c_uint64_t
6121 _ACEOF
6123 esac
6126 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for unsigned long long int" >&5
6127 $as_echo_n "checking for unsigned long long int... " >&6; }
6128 if test "${ac_cv_type_unsigned_long_long_int+set}" = set; then :
6129 $as_echo_n "(cached) " >&6
6130 else
6131 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6132 /* end confdefs.h. */
6134 /* For now, do not test the preprocessor; as of 2007 there are too many
6135 implementations with broken preprocessors. Perhaps this can
6136 be revisited in 2012. In the meantime, code should not expect
6137 #if to work with literals wider than 32 bits. */
6138 /* Test literals. */
6139 long long int ll = 9223372036854775807ll;
6140 long long int nll = -9223372036854775807LL;
6141 unsigned long long int ull = 18446744073709551615ULL;
6142 /* Test constant expressions. */
6143 typedef int a[((-9223372036854775807LL < 0 && 0 < 9223372036854775807ll)
6144 ? 1 : -1)];
6145 typedef int b[(18446744073709551615ULL <= (unsigned long long int) -1
6146 ? 1 : -1)];
6147 int i = 63;
6149 main ()
6151 /* Test availability of runtime routines for shift and division. */
6152 long long int llmax = 9223372036854775807ll;
6153 unsigned long long int ullmax = 18446744073709551615ull;
6154 return ((ll << 63) | (ll >> 63) | (ll < i) | (ll > i)
6155 | (llmax / ll) | (llmax % ll)
6156 | (ull << 63) | (ull >> 63) | (ull << i) | (ull >> i)
6157 | (ullmax / ull) | (ullmax % ull));
6159 return 0;
6162 _ACEOF
6163 if ac_fn_c_try_link "$LINENO"; then :
6164 ac_cv_type_unsigned_long_long_int=yes
6165 else
6166 ac_cv_type_unsigned_long_long_int=no
6168 rm -f core conftest.err conftest.$ac_objext \
6169 conftest$ac_exeext conftest.$ac_ext
6171 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_unsigned_long_long_int" >&5
6172 $as_echo "$ac_cv_type_unsigned_long_long_int" >&6; }
6173 if test $ac_cv_type_unsigned_long_long_int = yes; then
6175 $as_echo "#define HAVE_UNSIGNED_LONG_LONG_INT 1" >>confdefs.h
6181 ac_fn_c_check_type "$LINENO" "uintmax_t" "ac_cv_type_uintmax_t" "$ac_includes_default"
6182 if test "x$ac_cv_type_uintmax_t" = x""yes; then :
6184 $as_echo "#define HAVE_UINTMAX_T 1" >>confdefs.h
6186 else
6187 test $ac_cv_type_unsigned_long_long_int = yes \
6188 && ac_type='unsigned long long int' \
6189 || ac_type='unsigned long int'
6191 cat >>confdefs.h <<_ACEOF
6192 #define uintmax_t $ac_type
6193 _ACEOF
6199 ac_fn_c_check_type "$LINENO" "uintptr_t" "ac_cv_type_uintptr_t" "$ac_includes_default"
6200 if test "x$ac_cv_type_uintptr_t" = x""yes; then :
6202 $as_echo "#define HAVE_UINTPTR_T 1" >>confdefs.h
6204 else
6205 for ac_type in 'unsigned int' 'unsigned long int' \
6206 'unsigned long long int'; do
6207 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6208 /* end confdefs.h. */
6209 $ac_includes_default
6211 main ()
6213 static int test_array [1 - 2 * !(sizeof (void *) <= sizeof ($ac_type))];
6214 test_array [0] = 0
6217 return 0;
6219 _ACEOF
6220 if ac_fn_c_try_compile "$LINENO"; then :
6222 cat >>confdefs.h <<_ACEOF
6223 #define uintptr_t $ac_type
6224 _ACEOF
6226 ac_type=
6228 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6229 test -z "$ac_type" && break
6230 done
6246 if test x"$ac_cv_c_uint64_t" = x"no" -o x"$ac_cv_c_int64_t" = x"no"; then
6247 as_fn_error "uint64_t or int64_t not found" "$LINENO" 5
6250 # check what underlying integer type int64_t uses
6251 ac_ext=cpp
6252 ac_cpp='$CXXCPP $CPPFLAGS'
6253 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6254 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6255 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
6258 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for int64_t underlying type" >&5
6259 $as_echo_n "checking for int64_t underlying type... " >&6; }
6260 if test "${ac_cv_int64_t_type+set}" = set; then :
6261 $as_echo_n "(cached) " >&6
6262 else
6264 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6265 /* end confdefs.h. */
6267 #ifdef HAVE_STDINT_H
6268 #include <stdint.h>
6269 #endif
6270 template <typename T> struct X { };
6271 template <>
6272 struct X<long> { typedef long t; };
6275 main ()
6277 X<int64_t>::t x;
6279 return 0;
6281 _ACEOF
6282 if ac_fn_cxx_try_compile "$LINENO"; then :
6283 ac_cv_int64_t_type=long
6284 else
6285 ac_cv_int64_t_type="long long"
6287 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6289 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_int64_t_type" >&5
6290 $as_echo "$ac_cv_int64_t_type" >&6; }
6291 if test "$ac_cv_int64_t_type" = "long"; then
6293 $as_echo "#define INT64_T_IS_LONG 1" >>confdefs.h
6295 else
6296 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6297 /* end confdefs.h. */
6299 #ifdef HAVE_STDINT_H
6300 #include <stdint.h>
6301 #endif
6302 template <typename T> struct X { };
6303 template <>
6304 struct X<long long> { typedef long long t; };
6307 main ()
6309 X<int64_t>::t x;
6311 return 0;
6313 _ACEOF
6314 if ac_fn_cxx_try_compile "$LINENO"; then :
6316 else
6317 as_fn_error "error verifying int64_t uses long long" "$LINENO" 5
6319 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6321 ac_ext=c
6322 ac_cpp='$CPP $CPPFLAGS'
6323 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6324 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6325 ac_compiler_gnu=$ac_cv_c_compiler_gnu
6331 # ---------------------
6332 # Warnings and checking
6333 # ---------------------
6335 # Check $CC warning features (if it's GCC).
6336 # We want to use -pedantic, but we don't want warnings about
6337 # * 'long long'
6338 # * variadic macros
6339 # * overlong strings
6340 # * C++11 narrowing conversions in { }
6341 # So, we only use -pedantic if we can disable those warnings.
6343 # In stage 1, disable -Wformat warnings from old GCCs about new % codes
6344 # Check whether --enable-build-format-warnings was given.
6345 if test "${enable_build_format_warnings+set}" = set; then :
6346 enableval=$enable_build_format_warnings;
6347 else
6348 enable_build_format_warnings=yes
6351 if test $enable_build_format_warnings = no; then :
6352 wf_opt=-Wno-format
6353 else
6354 wf_opt=
6356 loose_warn=
6357 save_CFLAGS="$CFLAGS"
6358 for real_option in -W -Wall -Wno-narrowing -Wwrite-strings -Wcast-qual $wf_opt; do
6359 # Do the check with the no- prefix removed since gcc silently
6360 # accepts any -Wno-* option on purpose
6361 case $real_option in
6362 -Wno-*) option=-W`expr x$real_option : 'x-Wno-\(.*\)'` ;;
6363 *) option=$real_option ;;
6364 esac
6365 as_acx_Woption=`$as_echo "acx_cv_prog_cc_warning_$option" | $as_tr_sh`
6367 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC supports $option" >&5
6368 $as_echo_n "checking whether $CC supports $option... " >&6; }
6369 if { as_var=$as_acx_Woption; eval "test \"\${$as_var+set}\" = set"; }; then :
6370 $as_echo_n "(cached) " >&6
6371 else
6372 CFLAGS="$option"
6373 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6374 /* end confdefs.h. */
6377 main ()
6381 return 0;
6383 _ACEOF
6384 if ac_fn_c_try_compile "$LINENO"; then :
6385 eval "$as_acx_Woption=yes"
6386 else
6387 eval "$as_acx_Woption=no"
6389 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6392 eval ac_res=\$$as_acx_Woption
6393 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
6394 $as_echo "$ac_res" >&6; }
6395 if test `eval 'as_val=${'$as_acx_Woption'};$as_echo "$as_val"'` = yes; then :
6396 loose_warn="$loose_warn${loose_warn:+ }$real_option"
6398 done
6399 CFLAGS="$save_CFLAGS"
6401 c_loose_warn=
6402 save_CFLAGS="$CFLAGS"
6403 for real_option in -Wstrict-prototypes -Wmissing-prototypes; do
6404 # Do the check with the no- prefix removed since gcc silently
6405 # accepts any -Wno-* option on purpose
6406 case $real_option in
6407 -Wno-*) option=-W`expr x$real_option : 'x-Wno-\(.*\)'` ;;
6408 *) option=$real_option ;;
6409 esac
6410 as_acx_Woption=`$as_echo "acx_cv_prog_cc_warning_$option" | $as_tr_sh`
6412 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC supports $option" >&5
6413 $as_echo_n "checking whether $CC supports $option... " >&6; }
6414 if { as_var=$as_acx_Woption; eval "test \"\${$as_var+set}\" = set"; }; then :
6415 $as_echo_n "(cached) " >&6
6416 else
6417 CFLAGS="$option"
6418 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6419 /* end confdefs.h. */
6422 main ()
6426 return 0;
6428 _ACEOF
6429 if ac_fn_c_try_compile "$LINENO"; then :
6430 eval "$as_acx_Woption=yes"
6431 else
6432 eval "$as_acx_Woption=no"
6434 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6437 eval ac_res=\$$as_acx_Woption
6438 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
6439 $as_echo "$ac_res" >&6; }
6440 if test `eval 'as_val=${'$as_acx_Woption'};$as_echo "$as_val"'` = yes; then :
6441 c_loose_warn="$c_loose_warn${c_loose_warn:+ }$real_option"
6443 done
6444 CFLAGS="$save_CFLAGS"
6446 strict_warn=
6447 save_CFLAGS="$CFLAGS"
6448 for real_option in -Wmissing-format-attribute; do
6449 # Do the check with the no- prefix removed since gcc silently
6450 # accepts any -Wno-* option on purpose
6451 case $real_option in
6452 -Wno-*) option=-W`expr x$real_option : 'x-Wno-\(.*\)'` ;;
6453 *) option=$real_option ;;
6454 esac
6455 as_acx_Woption=`$as_echo "acx_cv_prog_cc_warning_$option" | $as_tr_sh`
6457 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC supports $option" >&5
6458 $as_echo_n "checking whether $CC supports $option... " >&6; }
6459 if { as_var=$as_acx_Woption; eval "test \"\${$as_var+set}\" = set"; }; then :
6460 $as_echo_n "(cached) " >&6
6461 else
6462 CFLAGS="$option"
6463 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6464 /* end confdefs.h. */
6467 main ()
6471 return 0;
6473 _ACEOF
6474 if ac_fn_c_try_compile "$LINENO"; then :
6475 eval "$as_acx_Woption=yes"
6476 else
6477 eval "$as_acx_Woption=no"
6479 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6482 eval ac_res=\$$as_acx_Woption
6483 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
6484 $as_echo "$ac_res" >&6; }
6485 if test `eval 'as_val=${'$as_acx_Woption'};$as_echo "$as_val"'` = yes; then :
6486 strict_warn="$strict_warn${strict_warn:+ }$real_option"
6488 done
6489 CFLAGS="$save_CFLAGS"
6491 save_CFLAGS="$CFLAGS"
6492 for real_option in -Woverloaded-virtual; do
6493 # Do the check with the no- prefix removed since gcc silently
6494 # accepts any -Wno-* option on purpose
6495 case $real_option in
6496 -Wno-*) option=-W`expr x$real_option : 'x-Wno-\(.*\)'` ;;
6497 *) option=$real_option ;;
6498 esac
6499 as_acx_Woption=`$as_echo "acx_cv_prog_cc_warning_$option" | $as_tr_sh`
6501 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC supports $option" >&5
6502 $as_echo_n "checking whether $CC supports $option... " >&6; }
6503 if { as_var=$as_acx_Woption; eval "test \"\${$as_var+set}\" = set"; }; then :
6504 $as_echo_n "(cached) " >&6
6505 else
6506 CFLAGS="$option"
6507 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6508 /* end confdefs.h. */
6511 main ()
6515 return 0;
6517 _ACEOF
6518 if ac_fn_c_try_compile "$LINENO"; then :
6519 eval "$as_acx_Woption=yes"
6520 else
6521 eval "$as_acx_Woption=no"
6523 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6526 eval ac_res=\$$as_acx_Woption
6527 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
6528 $as_echo "$ac_res" >&6; }
6529 if test `eval 'as_val=${'$as_acx_Woption'};$as_echo "$as_val"'` = yes; then :
6530 strict_warn="$strict_warn${strict_warn:+ }$real_option"
6532 done
6533 CFLAGS="$save_CFLAGS"
6535 c_strict_warn=
6536 save_CFLAGS="$CFLAGS"
6537 for real_option in -Wold-style-definition -Wc++-compat; do
6538 # Do the check with the no- prefix removed since gcc silently
6539 # accepts any -Wno-* option on purpose
6540 case $real_option in
6541 -Wno-*) option=-W`expr x$real_option : 'x-Wno-\(.*\)'` ;;
6542 *) option=$real_option ;;
6543 esac
6544 as_acx_Woption=`$as_echo "acx_cv_prog_cc_warning_$option" | $as_tr_sh`
6546 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC supports $option" >&5
6547 $as_echo_n "checking whether $CC supports $option... " >&6; }
6548 if { as_var=$as_acx_Woption; eval "test \"\${$as_var+set}\" = set"; }; then :
6549 $as_echo_n "(cached) " >&6
6550 else
6551 CFLAGS="$option"
6552 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6553 /* end confdefs.h. */
6556 main ()
6560 return 0;
6562 _ACEOF
6563 if ac_fn_c_try_compile "$LINENO"; then :
6564 eval "$as_acx_Woption=yes"
6565 else
6566 eval "$as_acx_Woption=no"
6568 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6571 eval ac_res=\$$as_acx_Woption
6572 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
6573 $as_echo "$ac_res" >&6; }
6574 if test `eval 'as_val=${'$as_acx_Woption'};$as_echo "$as_val"'` = yes; then :
6575 c_strict_warn="$c_strict_warn${c_strict_warn:+ }$real_option"
6577 done
6578 CFLAGS="$save_CFLAGS"
6580 # Do the check with the no- prefix removed from the warning options
6581 # since gcc silently accepts any -Wno-* option on purpose
6582 if test "$GCC" = yes; then :
6583 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC supports -pedantic -Wlong-long -Wvariadic-macros -Woverlength-strings" >&5
6584 $as_echo_n "checking whether $CC supports -pedantic -Wlong-long -Wvariadic-macros -Woverlength-strings... " >&6; }
6585 if test "${acx_cv_prog_cc_pedantic__Wlong_long__Wvariadic_macros__Woverlength_strings+set}" = set; then :
6586 $as_echo_n "(cached) " >&6
6587 else
6588 save_CFLAGS="$CFLAGS"
6589 CFLAGS="-pedantic -Wlong-long -Wvariadic-macros -Woverlength-strings"
6590 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6591 /* end confdefs.h. */
6594 main ()
6598 return 0;
6600 _ACEOF
6601 if ac_fn_c_try_compile "$LINENO"; then :
6602 acx_cv_prog_cc_pedantic__Wlong_long__Wvariadic_macros__Woverlength_strings=yes
6603 else
6604 acx_cv_prog_cc_pedantic__Wlong_long__Wvariadic_macros__Woverlength_strings=no
6606 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6607 CFLAGS="$save_CFLAGS"
6609 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $acx_cv_prog_cc_pedantic__Wlong_long__Wvariadic_macros__Woverlength_strings" >&5
6610 $as_echo "$acx_cv_prog_cc_pedantic__Wlong_long__Wvariadic_macros__Woverlength_strings" >&6; }
6611 if test $acx_cv_prog_cc_pedantic__Wlong_long__Wvariadic_macros__Woverlength_strings = yes; then :
6612 strict_warn="$strict_warn${strict_warn:+ }-pedantic -Wno-long-long -Wno-variadic-macros -Wno-overlength-strings"
6617 # Check whether --enable-werror-always was given.
6618 if test "${enable_werror_always+set}" = set; then :
6619 enableval=$enable_werror_always;
6620 else
6621 enable_werror_always=no
6624 if test $enable_werror_always = yes; then :
6625 strict_warn="$strict_warn${strict_warn:+ }-Werror"
6630 # The above macros do nothing if the compiler is not GCC. However, the
6631 # Makefile has more goo to add other flags, so these variables are used
6632 # to enable warnings only for GCC.
6633 warn_cflags=
6634 warn_cxxflags=
6635 if test "x$GCC" = "xyes"; then
6636 warn_cflags='$(GCC_WARN_CFLAGS)'
6637 warn_cxxflags='$(GCC_WARN_CXXFLAGS)'
6642 # Disable exceptions and RTTI if building with g++
6643 noexception_flags=
6644 save_CFLAGS="$CFLAGS"
6645 for real_option in -fno-exceptions -fno-rtti -fasynchronous-unwind-tables; do
6646 # Do the check with the no- prefix removed since gcc silently
6647 # accepts any -Wno-* option on purpose
6648 case $real_option in
6649 -Wno-*) option=-W`expr x$real_option : 'x-Wno-\(.*\)'` ;;
6650 *) option=$real_option ;;
6651 esac
6652 as_acx_Woption=`$as_echo "acx_cv_prog_cc_warning_$option" | $as_tr_sh`
6654 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC supports $option" >&5
6655 $as_echo_n "checking whether $CC supports $option... " >&6; }
6656 if { as_var=$as_acx_Woption; eval "test \"\${$as_var+set}\" = set"; }; then :
6657 $as_echo_n "(cached) " >&6
6658 else
6659 CFLAGS="$option"
6660 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6661 /* end confdefs.h. */
6664 main ()
6668 return 0;
6670 _ACEOF
6671 if ac_fn_c_try_compile "$LINENO"; then :
6672 eval "$as_acx_Woption=yes"
6673 else
6674 eval "$as_acx_Woption=no"
6676 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6679 eval ac_res=\$$as_acx_Woption
6680 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
6681 $as_echo "$ac_res" >&6; }
6682 if test `eval 'as_val=${'$as_acx_Woption'};$as_echo "$as_val"'` = yes; then :
6683 noexception_flags="$noexception_flags${noexception_flags:+ }$real_option"
6685 done
6686 CFLAGS="$save_CFLAGS"
6689 # Enable expensive internal checks
6690 is_release=
6691 if test x"`cat $srcdir/DEV-PHASE`" != xexperimental; then
6692 is_release=yes
6695 # Check whether --enable-checking was given.
6696 if test "${enable_checking+set}" = set; then :
6697 enableval=$enable_checking; ac_checking_flags="${enableval}"
6698 else
6700 # Determine the default checks.
6701 if test x$is_release = x ; then
6702 ac_checking_flags=yes
6703 else
6704 ac_checking_flags=release
6708 IFS="${IFS= }"; ac_save_IFS="$IFS"; IFS="$IFS,"
6709 for check in release $ac_checking_flags
6711 case $check in
6712 # these set all the flags to specific states
6713 yes) ac_assert_checking=1 ; ac_checking=1 ; ac_df_checking= ;
6714 ac_fold_checking= ; ac_gc_checking=1 ;
6715 ac_gc_always_collect= ; ac_gimple_checking=1 ; ac_rtl_checking= ;
6716 ac_rtlflag_checking=1 ; ac_runtime_checking=1 ;
6717 ac_tree_checking=1 ; ac_valgrind_checking= ;
6718 ac_types_checking=1 ;;
6719 no|none) ac_assert_checking= ; ac_checking= ; ac_df_checking= ;
6720 ac_fold_checking= ; ac_gc_checking= ;
6721 ac_gc_always_collect= ; ac_gimple_checking= ; ac_rtl_checking= ;
6722 ac_rtlflag_checking= ; ac_runtime_checking= ;
6723 ac_tree_checking= ; ac_valgrind_checking= ;
6724 ac_types_checking= ;;
6725 all) ac_assert_checking=1 ; ac_checking=1 ; ac_df_checking=1 ;
6726 ac_fold_checking=1 ; ac_gc_checking=1 ;
6727 ac_gc_always_collect=1 ; ac_gimple_checking=1 ; ac_rtl_checking=1 ;
6728 ac_rtlflag_checking=1 ; ac_runtime_checking=1 ;
6729 ac_tree_checking=1 ; ac_valgrind_checking= ;
6730 ac_types_checking=1 ;;
6731 release) ac_assert_checking=1 ; ac_checking= ; ac_df_checking= ;
6732 ac_fold_checking= ; ac_gc_checking= ;
6733 ac_gc_always_collect= ; ac_gimple_checking= ; ac_rtl_checking= ;
6734 ac_rtlflag_checking= ; ac_runtime_checking=1 ;
6735 ac_tree_checking= ; ac_valgrind_checking= ;
6736 ac_types_checking= ;;
6737 # these enable particular checks
6738 assert) ac_assert_checking=1 ;;
6739 df) ac_df_checking=1 ;;
6740 fold) ac_fold_checking=1 ;;
6741 gc) ac_gc_checking=1 ;;
6742 gcac) ac_gc_always_collect=1 ;;
6743 gimple) ac_gimple_checking=1 ;;
6744 misc) ac_checking=1 ;;
6745 rtl) ac_rtl_checking=1 ;;
6746 rtlflag) ac_rtlflag_checking=1 ;;
6747 runtime) ac_runtime_checking=1 ;;
6748 tree) ac_tree_checking=1 ;;
6749 types) ac_types_checking=1 ;;
6750 valgrind) ac_valgrind_checking=1 ;;
6751 *) as_fn_error "unknown check category $check" "$LINENO" 5 ;;
6752 esac
6753 done
6754 IFS="$ac_save_IFS"
6756 nocommon_flag=""
6757 if test x$ac_checking != x ; then
6759 $as_echo "#define ENABLE_CHECKING 1" >>confdefs.h
6761 nocommon_flag=-fno-common
6764 if test x$ac_df_checking != x ; then
6766 $as_echo "#define ENABLE_DF_CHECKING 1" >>confdefs.h
6769 if test x$ac_assert_checking != x ; then
6771 $as_echo "#define ENABLE_ASSERT_CHECKING 1" >>confdefs.h
6774 if test x$ac_gimple_checking != x ; then
6776 $as_echo "#define ENABLE_GIMPLE_CHECKING 1" >>confdefs.h
6780 if test x$ac_runtime_checking != x ; then
6782 $as_echo "#define ENABLE_RUNTIME_CHECKING 1" >>confdefs.h
6785 if test x$ac_tree_checking != x ; then
6787 $as_echo "#define ENABLE_TREE_CHECKING 1" >>confdefs.h
6789 TREEBROWSER=tree-browser.o
6790 TREECHECKING=yes
6792 if test x$ac_types_checking != x ; then
6794 $as_echo "#define ENABLE_TYPES_CHECKING 1" >>confdefs.h
6799 if test x$ac_rtl_checking != x ; then
6801 $as_echo "#define ENABLE_RTL_CHECKING 1" >>confdefs.h
6804 if test x$ac_rtlflag_checking != x ; then
6806 $as_echo "#define ENABLE_RTL_FLAG_CHECKING 1" >>confdefs.h
6809 if test x$ac_gc_checking != x ; then
6811 $as_echo "#define ENABLE_GC_CHECKING 1" >>confdefs.h
6814 if test x$ac_gc_always_collect != x ; then
6816 $as_echo "#define ENABLE_GC_ALWAYS_COLLECT 1" >>confdefs.h
6819 if test x$ac_fold_checking != x ; then
6821 $as_echo "#define ENABLE_FOLD_CHECKING 1" >>confdefs.h
6824 valgrind_path_defines=
6825 valgrind_command=
6827 ac_fn_c_check_header_mongrel "$LINENO" "valgrind.h" "ac_cv_header_valgrind_h" "$ac_includes_default"
6828 if test "x$ac_cv_header_valgrind_h" = x""yes; then :
6829 have_valgrind_h=yes
6830 else
6831 have_valgrind_h=no
6836 # It is certainly possible that there's valgrind but no valgrind.h.
6837 # GCC relies on making annotations so we must have both.
6838 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for VALGRIND_DISCARD in <valgrind/memcheck.h>" >&5
6839 $as_echo_n "checking for VALGRIND_DISCARD in <valgrind/memcheck.h>... " >&6; }
6840 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6841 /* end confdefs.h. */
6842 #include <valgrind/memcheck.h>
6843 #ifndef VALGRIND_DISCARD
6844 #error VALGRIND_DISCARD not defined
6845 #endif
6846 _ACEOF
6847 if ac_fn_c_try_cpp "$LINENO"; then :
6848 gcc_cv_header_valgrind_memcheck_h=yes
6849 else
6850 gcc_cv_header_valgrind_memcheck_h=no
6852 rm -f conftest.err conftest.$ac_ext
6853 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_header_valgrind_memcheck_h" >&5
6854 $as_echo "$gcc_cv_header_valgrind_memcheck_h" >&6; }
6855 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for VALGRIND_DISCARD in <memcheck.h>" >&5
6856 $as_echo_n "checking for VALGRIND_DISCARD in <memcheck.h>... " >&6; }
6857 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6858 /* end confdefs.h. */
6859 #include <memcheck.h>
6860 #ifndef VALGRIND_DISCARD
6861 #error VALGRIND_DISCARD not defined
6862 #endif
6863 _ACEOF
6864 if ac_fn_c_try_cpp "$LINENO"; then :
6865 gcc_cv_header_memcheck_h=yes
6866 else
6867 gcc_cv_header_memcheck_h=no
6869 rm -f conftest.err conftest.$ac_ext
6870 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_header_memcheck_h" >&5
6871 $as_echo "$gcc_cv_header_memcheck_h" >&6; }
6872 if test $gcc_cv_header_valgrind_memcheck_h = yes; then
6874 $as_echo "#define HAVE_VALGRIND_MEMCHECK_H 1" >>confdefs.h
6877 if test $gcc_cv_header_memcheck_h = yes; then
6879 $as_echo "#define HAVE_MEMCHECK_H 1" >>confdefs.h
6883 if test x$ac_valgrind_checking != x ; then
6885 # Prepare PATH_SEPARATOR.
6886 # The user is always right.
6887 if test "${PATH_SEPARATOR+set}" != set; then
6888 echo "#! /bin/sh" >conf$$.sh
6889 echo "exit 0" >>conf$$.sh
6890 chmod +x conf$$.sh
6891 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
6892 PATH_SEPARATOR=';'
6893 else
6894 PATH_SEPARATOR=:
6896 rm -f conf$$.sh
6899 # Find out how to test for executable files. Don't use a zero-byte file,
6900 # as systems may use methods other than mode bits to determine executability.
6901 cat >conf$$.file <<_ASEOF
6902 #! /bin/sh
6903 exit 0
6904 _ASEOF
6905 chmod +x conf$$.file
6906 if test -x conf$$.file >/dev/null 2>&1; then
6907 ac_executable_p="test -x"
6908 else
6909 ac_executable_p="test -f"
6911 rm -f conf$$.file
6913 # Extract the first word of "valgrind", so it can be a program name with args.
6914 set dummy valgrind; ac_word=$2
6915 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6916 $as_echo_n "checking for $ac_word... " >&6; }
6917 if test "${ac_cv_path_valgrind_path+set}" = set; then :
6918 $as_echo_n "(cached) " >&6
6919 else
6920 case "$valgrind_path" in
6921 [\\/]* | ?:[\\/]*)
6922 ac_cv_path_valgrind_path="$valgrind_path" # Let the user override the test with a path.
6925 ac_save_IFS="$IFS"; IFS=$PATH_SEPARATOR
6926 for ac_dir in $PATH; do
6927 IFS="$ac_save_IFS"
6928 test -z "$ac_dir" && ac_dir=.
6929 for ac_exec_ext in '' $ac_executable_extensions; do
6930 if $ac_executable_p "$ac_dir/$ac_word$ac_exec_ext"; then
6931 if $ac_dir/$ac_word --version | grep valgrind- >/dev/null 2>&1; then
6932 ac_cv_path_valgrind_path="$ac_dir/$ac_word$ac_exec_ext"
6933 break 2
6936 done
6937 done
6938 IFS="$ac_save_IFS"
6940 esac
6942 valgrind_path="$ac_cv_path_valgrind_path"
6943 if test -n "$valgrind_path"; then
6944 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $valgrind_path" >&5
6945 $as_echo "$valgrind_path" >&6; }
6946 else
6947 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6948 $as_echo "no" >&6; }
6951 if test "x$valgrind_path" = "x" \
6952 || (test $have_valgrind_h = no \
6953 && test $gcc_cv_header_memcheck_h = no \
6954 && test $gcc_cv_header_valgrind_memcheck_h = no); then
6955 as_fn_error "*** Can't find both valgrind and valgrind/memcheck.h, memcheck.h or valgrind.h" "$LINENO" 5
6957 valgrind_path_defines=-DVALGRIND_PATH='\"'$valgrind_path'\"'
6958 valgrind_command="$valgrind_path -q"
6960 $as_echo "#define ENABLE_VALGRIND_CHECKING 1" >>confdefs.h
6966 # Enable code coverage collection
6967 # Check whether --enable-coverage was given.
6968 if test "${enable_coverage+set}" = set; then :
6969 enableval=$enable_coverage; case "${enableval}" in
6970 yes|noopt)
6971 coverage_flags="-fprofile-arcs -ftest-coverage -frandom-seed=\$@ -O0"
6973 opt)
6974 coverage_flags="-fprofile-arcs -ftest-coverage -frandom-seed=\$@ -O2"
6977 # a.k.a. --disable-coverage
6978 coverage_flags=""
6981 as_fn_error "unknown coverage setting $enableval" "$LINENO" 5
6983 esac
6984 else
6985 coverage_flags=""
6990 # Check whether --enable-gather-detailed-mem-stats was given.
6991 if test "${enable_gather_detailed_mem_stats+set}" = set; then :
6992 enableval=$enable_gather_detailed_mem_stats;
6993 else
6994 enable_gather_detailed_mem_stats=no
6997 gather_stats=`if test $enable_gather_detailed_mem_stats != no; then echo 1; else echo 0; fi`
6999 cat >>confdefs.h <<_ACEOF
7000 #define GATHER_STATISTICS $gather_stats
7001 _ACEOF
7004 # Check whether --enable-valgrind-annotations was given.
7005 if test "${enable_valgrind_annotations+set}" = set; then :
7006 enableval=$enable_valgrind_annotations;
7007 else
7008 enable_valgrind_annotations=no
7011 if test x$enable_valgrind_annotations != xno \
7012 || test x$ac_valgrind_checking != x; then
7013 if (test $have_valgrind_h = no \
7014 && test $gcc_cv_header_memcheck_h = no \
7015 && test $gcc_cv_header_valgrind_memcheck_h = no); then
7016 as_fn_error "*** Can't find valgrind/memcheck.h, memcheck.h or valgrind.h" "$LINENO" 5
7019 $as_echo "#define ENABLE_VALGRIND_ANNOTATIONS 1" >>confdefs.h
7023 # -------------------------------
7024 # Miscenalleous configure options
7025 # -------------------------------
7027 # With stabs
7029 # Check whether --with-stabs was given.
7030 if test "${with_stabs+set}" = set; then :
7031 withval=$with_stabs; stabs="$with_stabs"
7032 else
7033 stabs=no
7037 # Determine whether or not multilibs are enabled.
7038 # Check whether --enable-multilib was given.
7039 if test "${enable_multilib+set}" = set; then :
7040 enableval=$enable_multilib;
7041 else
7042 enable_multilib=yes
7047 # Determine whether or not multiarch is enabled.
7048 # Check whether --enable-multiarch was given.
7049 if test "${enable_multiarch+set}" = set; then :
7050 enableval=$enable_multiarch; case "${enableval}" in
7051 yes|no|auto) enable_multiarch=$enableval;;
7052 *) as_fn_error "bad value ${enableval} given for --enable-multiarch option" "$LINENO" 5 ;;
7053 esac
7054 else
7055 enable_multiarch=auto
7058 if test x${enable_multiarch} = xauto; then
7059 if test x${with_native_system_header_dir} != x; then
7060 ma_msg_suffix=", disabled auto check (configured with --native-system-header-dir)"
7061 enable_multiarch=no
7063 if test x$host != x$target && test "x$with_sysroot" = x; then
7064 ma_msg_suffix=", disabled auto check (cross build configured without --with-sysroot)"
7065 enable_multiarch=no
7068 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for multiarch configuration" >&5
7069 $as_echo_n "checking for multiarch configuration... " >&6; }
7071 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_multiarch$ma_msg_suffix" >&5
7072 $as_echo "$enable_multiarch$ma_msg_suffix" >&6; }
7074 # needed for setting the multiarch name for soft-float/hard-float ABIs
7078 # Enable __cxa_atexit for C++.
7079 # Check whether --enable-__cxa_atexit was given.
7080 if test "${enable___cxa_atexit+set}" = set; then :
7081 enableval=$enable___cxa_atexit;
7085 # Enable C extension for decimal float if target supports it.
7087 # Check whether --enable-decimal-float was given.
7088 if test "${enable_decimal_float+set}" = set; then :
7089 enableval=$enable_decimal_float;
7090 case $enable_decimal_float in
7091 yes | no | bid | dpd) default_decimal_float=$enable_decimal_float ;;
7092 *) as_fn_error "'$enable_decimal_float' is an invalid value for --enable-decimal-float.
7093 Valid choices are 'yes', 'bid', 'dpd', and 'no'." "$LINENO" 5 ;;
7094 esac
7096 else
7098 case $target in
7099 powerpc*-*-linux* | i?86*-*-linux* | x86_64*-*-linux* | s390*-*-linux* | \
7100 i?86*-*-gnu* | \
7101 i?86*-*-mingw* | x86_64*-*-mingw* | \
7102 i?86*-*-cygwin* | x86_64*-*-cygwin*)
7103 enable_decimal_float=yes
7106 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: decimal float is not supported for this target, ignored" >&5
7107 $as_echo "$as_me: WARNING: decimal float is not supported for this target, ignored" >&2;}
7108 enable_decimal_float=no
7110 esac
7115 # x86's use BID format instead of DPD
7116 case x$enable_decimal_float in
7117 xyes)
7118 case $target in
7119 i?86*-*-* | x86_64*-*-*)
7120 enable_decimal_float=bid
7123 enable_decimal_float=dpd
7125 esac
7126 default_decimal_float=$enable_decimal_float
7128 xno)
7129 # ENABLE_DECIMAL_FLOAT is set to 0. But we have to have proper
7130 # dependency on libdecnumber.
7131 default_decimal_float=dpd
7133 esac
7138 dfp=`if test $enable_decimal_float != no; then echo 1; else echo 0; fi`
7140 cat >>confdefs.h <<_ACEOF
7141 #define ENABLE_DECIMAL_FLOAT $dfp
7142 _ACEOF
7145 # Use default_decimal_float for dependency.
7146 enable_decimal_float=$default_decimal_float
7148 bid=`if test $enable_decimal_float = bid; then echo 1; else echo 0; fi`
7150 cat >>confdefs.h <<_ACEOF
7151 #define ENABLE_DECIMAL_BID_FORMAT $bid
7152 _ACEOF
7155 # Enable C extension for fixed-point arithmetic.
7156 # Check whether --enable-fixed-point was given.
7157 if test "${enable_fixed_point+set}" = set; then :
7158 enableval=$enable_fixed_point;
7159 else
7161 case $target in
7162 arm*)
7163 enable_fixed_point=yes
7166 mips*-*-*)
7167 enable_fixed_point=yes
7170 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: fixed-point is not supported for this target, ignored" >&5
7171 $as_echo "$as_me: WARNING: fixed-point is not supported for this target, ignored" >&2;}
7172 enable_fixed_point=no
7174 esac
7180 fixedpoint=`if test $enable_fixed_point = yes; then echo 1; else echo 0; fi`
7182 cat >>confdefs.h <<_ACEOF
7183 #define ENABLE_FIXED_POINT $fixedpoint
7184 _ACEOF
7187 # Enable threads
7188 # Pass with no value to take the default
7189 # Pass with a value to specify a thread package
7190 # Check whether --enable-threads was given.
7191 if test "${enable_threads+set}" = set; then :
7192 enableval=$enable_threads;
7193 else
7194 enable_threads=''
7198 # Check whether --enable-tls was given.
7199 if test "${enable_tls+set}" = set; then :
7200 enableval=$enable_tls;
7201 case $enable_tls in
7202 yes | no) ;;
7203 *) as_fn_error "'$enable_tls' is an invalid value for --enable-tls.
7204 Valid choices are 'yes' and 'no'." "$LINENO" 5 ;;
7205 esac
7207 else
7208 enable_tls=''
7212 # Check whether --enable-objc-gc was given.
7213 if test "${enable_objc_gc+set}" = set; then :
7214 enableval=$enable_objc_gc; if test x$enable_objc_gc = xno; then
7215 objc_boehm_gc=''
7216 else
7217 objc_boehm_gc=1
7219 else
7220 objc_boehm_gc=''
7225 # Check whether --with-dwarf2 was given.
7226 if test "${with_dwarf2+set}" = set; then :
7227 withval=$with_dwarf2; dwarf2="$with_dwarf2"
7228 else
7229 dwarf2=no
7233 # Check whether --enable-shared was given.
7234 if test "${enable_shared+set}" = set; then :
7235 enableval=$enable_shared;
7236 case $enable_shared in
7237 yes | no) ;;
7239 enable_shared=no
7240 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:,"
7241 for pkg in $enableval; do
7242 if test "X$pkg" = "Xgcc" || test "X$pkg" = "Xlibgcc"; then
7243 enable_shared=yes
7245 done
7246 IFS="$ac_save_ifs"
7248 esac
7250 else
7251 enable_shared=yes
7257 # Check whether --with-native-system-header-dir was given.
7258 if test "${with_native_system_header_dir+set}" = set; then :
7259 withval=$with_native_system_header_dir;
7260 case ${with_native_system_header_dir} in
7261 yes|no) as_fn_error "bad value ${withval} given for --with-native-system-header-dir" "$LINENO" 5 ;;
7262 /* | [A-Za-z]:[\\/]*) ;;
7263 *) as_fn_error "--with-native-system-header-dir argument ${withval} must be an absolute directory" "$LINENO" 5 ;;
7264 esac
7265 configured_native_system_header_dir="${withval}"
7267 else
7268 configured_native_system_header_dir=
7273 # Check whether --with-build-sysroot was given.
7274 if test "${with_build_sysroot+set}" = set; then :
7275 withval=$with_build_sysroot; if test x"$withval" != x ; then
7276 SYSROOT_CFLAGS_FOR_TARGET="--sysroot=$withval"
7278 else
7279 SYSROOT_CFLAGS_FOR_TARGET=
7284 if test "x$prefix" = xNONE; then
7285 test_prefix=/usr/local
7286 else
7287 test_prefix=$prefix
7289 if test "x$exec_prefix" = xNONE; then
7290 test_exec_prefix=$test_prefix
7291 else
7292 test_exec_prefix=$exec_prefix
7296 # Check whether --with-sysroot was given.
7297 if test "${with_sysroot+set}" = set; then :
7298 withval=$with_sysroot;
7299 case ${with_sysroot} in
7300 yes) TARGET_SYSTEM_ROOT='${exec_prefix}/${target_noncanonical}/sys-root' ;;
7301 *) TARGET_SYSTEM_ROOT=$with_sysroot ;;
7302 esac
7304 TARGET_SYSTEM_ROOT_DEFINE='-DTARGET_SYSTEM_ROOT=\"$(TARGET_SYSTEM_ROOT)\"'
7305 CROSS_SYSTEM_HEADER_DIR='$(TARGET_SYSTEM_ROOT)$${sysroot_headers_suffix}$(NATIVE_SYSTEM_HEADER_DIR)'
7307 case ${TARGET_SYSTEM_ROOT} in
7308 "${test_prefix}"|"${test_prefix}/"*|\
7309 "${test_exec_prefix}"|"${test_exec_prefix}/"*|\
7310 '${prefix}'|'${prefix}/'*|\
7311 '${exec_prefix}'|'${exec_prefix}/'*)
7312 t="$TARGET_SYSTEM_ROOT_DEFINE -DTARGET_SYSTEM_ROOT_RELOCATABLE"
7313 TARGET_SYSTEM_ROOT_DEFINE="$t"
7315 esac
7317 else
7319 TARGET_SYSTEM_ROOT=
7320 TARGET_SYSTEM_ROOT_DEFINE=
7321 CROSS_SYSTEM_HEADER_DIR='$(gcc_tooldir)/sys-include'
7330 # Check whether --with-specs was given.
7331 if test "${with_specs+set}" = set; then :
7332 withval=$with_specs; CONFIGURE_SPECS=$withval
7333 else
7334 CONFIGURE_SPECS=
7342 # Check whether --with-pkgversion was given.
7343 if test "${with_pkgversion+set}" = set; then :
7344 withval=$with_pkgversion; case "$withval" in
7345 yes) as_fn_error "package version not specified" "$LINENO" 5 ;;
7346 no) PKGVERSION= ;;
7347 *) PKGVERSION="($withval) " ;;
7348 esac
7349 else
7350 PKGVERSION="(GCC) "
7358 # Check whether --with-bugurl was given.
7359 if test "${with_bugurl+set}" = set; then :
7360 withval=$with_bugurl; case "$withval" in
7361 yes) as_fn_error "bug URL not specified" "$LINENO" 5 ;;
7362 no) BUGURL=
7364 *) BUGURL="$withval"
7366 esac
7367 else
7368 BUGURL="http://gcc.gnu.org/bugs.html"
7372 case ${BUGURL} in
7374 REPORT_BUGS_TO=
7375 REPORT_BUGS_TEXI=
7378 REPORT_BUGS_TO="<$BUGURL>"
7379 REPORT_BUGS_TEXI=@uref{`echo "$BUGURL" | sed 's/@/@@/g'`}
7381 esac;
7386 # Sanity check enable_languages in case someone does not run the toplevel
7387 # configure # script.
7388 # Check whether --enable-languages was given.
7389 if test "${enable_languages+set}" = set; then :
7390 enableval=$enable_languages; case ,${enable_languages}, in
7391 ,,|,yes,)
7392 # go safe -- we cannot be much sure without the toplevel
7393 # configure's
7394 # analysis of which target libs are present and usable
7395 enable_languages=c
7397 *,all,*)
7398 as_fn_error "only the toplevel supports --enable-languages=all" "$LINENO" 5
7400 *,c,*)
7403 enable_languages=c,${enable_languages}
7405 esac
7406 else
7407 enable_languages=c
7411 if test x"$enable_as_accelerator_for" != x; then
7413 $as_echo "#define ACCEL_COMPILER 1" >>confdefs.h
7415 enable_as_accelerator=yes
7416 case "${target}" in
7417 *-intelmicemul-*)
7418 # In this case we expect offload compiler to be built as native, so we
7419 # need to rename the driver to avoid clashes with host's drivers.
7420 program_transform_name="s&^&${target}-&" ;;
7421 esac
7422 sedscript="s#${target_noncanonical}#${enable_as_accelerator_for}-accel-${target_noncanonical}#"
7423 program_transform_name=`echo $program_transform_name | sed $sedscript`
7424 accel_dir_suffix=/accel/${target_noncanonical}
7425 real_target_noncanonical=${enable_as_accelerator_for}
7431 for tgt in `echo $enable_offload_targets | sed 's/,/ /g'`; do
7432 tgt=`echo $tgt | sed 's/=.*//'`
7433 if test x"$offload_targets" = x; then
7434 offload_targets=$tgt
7435 else
7436 offload_targets="$offload_targets:$tgt"
7438 done
7440 cat >>confdefs.h <<_ACEOF
7441 #define OFFLOAD_TARGETS "$offload_targets"
7442 _ACEOF
7444 if test x"$offload_targets" != x; then
7446 $as_echo "#define ENABLE_OFFLOADING 1" >>confdefs.h
7451 # Check whether --with-multilib-list was given.
7452 if test "${with_multilib_list+set}" = set; then :
7453 withval=$with_multilib_list; :
7454 else
7455 with_multilib_list=default
7459 # -------------------------
7460 # Checks for other programs
7461 # -------------------------
7463 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
7464 $as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
7465 set x ${MAKE-make}
7466 ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
7467 if { as_var=ac_cv_prog_make_${ac_make}_set; eval "test \"\${$as_var+set}\" = set"; }; then :
7468 $as_echo_n "(cached) " >&6
7469 else
7470 cat >conftest.make <<\_ACEOF
7471 SHELL = /bin/sh
7472 all:
7473 @echo '@@@%%%=$(MAKE)=@@@%%%'
7474 _ACEOF
7475 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
7476 case `${MAKE-make} -f conftest.make 2>/dev/null` in
7477 *@@@%%%=?*=@@@%%%*)
7478 eval ac_cv_prog_make_${ac_make}_set=yes;;
7480 eval ac_cv_prog_make_${ac_make}_set=no;;
7481 esac
7482 rm -f conftest.make
7484 if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
7485 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
7486 $as_echo "yes" >&6; }
7487 SET_MAKE=
7488 else
7489 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7490 $as_echo "no" >&6; }
7491 SET_MAKE="MAKE=${MAKE-make}"
7495 # Find some useful tools
7496 for ac_prog in gawk mawk nawk awk
7498 # Extract the first word of "$ac_prog", so it can be a program name with args.
7499 set dummy $ac_prog; ac_word=$2
7500 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7501 $as_echo_n "checking for $ac_word... " >&6; }
7502 if test "${ac_cv_prog_AWK+set}" = set; then :
7503 $as_echo_n "(cached) " >&6
7504 else
7505 if test -n "$AWK"; then
7506 ac_cv_prog_AWK="$AWK" # Let the user override the test.
7507 else
7508 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7509 for as_dir in $PATH
7511 IFS=$as_save_IFS
7512 test -z "$as_dir" && as_dir=.
7513 for ac_exec_ext in '' $ac_executable_extensions; do
7514 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7515 ac_cv_prog_AWK="$ac_prog"
7516 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7517 break 2
7519 done
7520 done
7521 IFS=$as_save_IFS
7525 AWK=$ac_cv_prog_AWK
7526 if test -n "$AWK"; then
7527 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
7528 $as_echo "$AWK" >&6; }
7529 else
7530 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7531 $as_echo "no" >&6; }
7535 test -n "$AWK" && break
7536 done
7538 # We need awk to create options.c and options.h.
7539 # Bail out if it's missing.
7540 case ${AWK} in
7541 "") as_fn_error "can't build without awk, bailing out" "$LINENO" 5 ;;
7542 esac
7544 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5
7545 $as_echo_n "checking whether ln -s works... " >&6; }
7546 if test "${gcc_cv_prog_LN_S+set}" = set; then :
7547 $as_echo_n "(cached) " >&6
7548 else
7549 rm -f conftestdata_t
7550 echo >conftestdata_f
7551 if ln -s conftestdata_f conftestdata_t 2>/dev/null
7552 then
7553 gcc_cv_prog_LN_S="ln -s"
7554 else
7555 if ln conftestdata_f conftestdata_t 2>/dev/null
7556 then
7557 gcc_cv_prog_LN_S=ln
7558 else
7559 if cp -p conftestdata_f conftestdata_t 2>/dev/null
7560 then
7561 gcc_cv_prog_LN_S="cp -p"
7562 else
7563 gcc_cv_prog_LN_S=cp
7567 rm -f conftestdata_f conftestdata_t
7570 LN_S="$gcc_cv_prog_LN_S"
7571 if test "$gcc_cv_prog_LN_S" = "ln -s"; then
7572 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
7573 $as_echo "yes" >&6; }
7574 else
7575 if test "$gcc_cv_prog_LN_S" = "ln"; then
7576 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using ln" >&5
7577 $as_echo "no, using ln" >&6; }
7578 else
7579 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, and neither does ln, so using $gcc_cv_prog_LN_S" >&5
7580 $as_echo "no, and neither does ln, so using $gcc_cv_prog_LN_S" >&6; }
7584 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln works" >&5
7585 $as_echo_n "checking whether ln works... " >&6; }
7586 if test "${acx_cv_prog_LN+set}" = set; then :
7587 $as_echo_n "(cached) " >&6
7588 else
7589 rm -f conftestdata_t
7590 echo >conftestdata_f
7591 if ln conftestdata_f conftestdata_t 2>/dev/null
7592 then
7593 acx_cv_prog_LN=ln
7594 else
7595 acx_cv_prog_LN=no
7597 rm -f conftestdata_f conftestdata_t
7600 if test $acx_cv_prog_LN = no; then
7601 LN="$LN_S"
7602 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN" >&5
7603 $as_echo "no, using $LN" >&6; }
7604 else
7605 LN="$acx_cv_prog_LN"
7606 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
7607 $as_echo "yes" >&6; }
7610 if test -n "$ac_tool_prefix"; then
7611 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
7612 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
7613 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7614 $as_echo_n "checking for $ac_word... " >&6; }
7615 if test "${ac_cv_prog_RANLIB+set}" = set; then :
7616 $as_echo_n "(cached) " >&6
7617 else
7618 if test -n "$RANLIB"; then
7619 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
7620 else
7621 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7622 for as_dir in $PATH
7624 IFS=$as_save_IFS
7625 test -z "$as_dir" && as_dir=.
7626 for ac_exec_ext in '' $ac_executable_extensions; do
7627 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7628 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
7629 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7630 break 2
7632 done
7633 done
7634 IFS=$as_save_IFS
7638 RANLIB=$ac_cv_prog_RANLIB
7639 if test -n "$RANLIB"; then
7640 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
7641 $as_echo "$RANLIB" >&6; }
7642 else
7643 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7644 $as_echo "no" >&6; }
7649 if test -z "$ac_cv_prog_RANLIB"; then
7650 ac_ct_RANLIB=$RANLIB
7651 # Extract the first word of "ranlib", so it can be a program name with args.
7652 set dummy ranlib; ac_word=$2
7653 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7654 $as_echo_n "checking for $ac_word... " >&6; }
7655 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then :
7656 $as_echo_n "(cached) " >&6
7657 else
7658 if test -n "$ac_ct_RANLIB"; then
7659 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
7660 else
7661 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7662 for as_dir in $PATH
7664 IFS=$as_save_IFS
7665 test -z "$as_dir" && as_dir=.
7666 for ac_exec_ext in '' $ac_executable_extensions; do
7667 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7668 ac_cv_prog_ac_ct_RANLIB="ranlib"
7669 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7670 break 2
7672 done
7673 done
7674 IFS=$as_save_IFS
7678 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
7679 if test -n "$ac_ct_RANLIB"; then
7680 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
7681 $as_echo "$ac_ct_RANLIB" >&6; }
7682 else
7683 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7684 $as_echo "no" >&6; }
7687 if test "x$ac_ct_RANLIB" = x; then
7688 RANLIB=":"
7689 else
7690 case $cross_compiling:$ac_tool_warned in
7691 yes:)
7692 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7693 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7694 ac_tool_warned=yes ;;
7695 esac
7696 RANLIB=$ac_ct_RANLIB
7698 else
7699 RANLIB="$ac_cv_prog_RANLIB"
7702 ranlib_flags=""
7705 # Find a good install program. We prefer a C program (faster),
7706 # so one script is as good as another. But avoid the broken or
7707 # incompatible versions:
7708 # SysV /etc/install, /usr/sbin/install
7709 # SunOS /usr/etc/install
7710 # IRIX /sbin/install
7711 # AIX /bin/install
7712 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
7713 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
7714 # ./install, which can be erroneously created by make from ./install.sh.
7715 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD compatible install" >&5
7716 $as_echo_n "checking for a BSD compatible install... " >&6; }
7717 if test -z "$INSTALL"; then
7718 if test "${ac_cv_path_install+set}" = set; then :
7719 $as_echo_n "(cached) " >&6
7720 else
7721 IFS="${IFS= }"; ac_save_IFS="$IFS"; IFS="${IFS}:"
7722 for ac_dir in $PATH; do
7723 # Account for people who put trailing slashes in PATH elements.
7724 case "$ac_dir/" in
7725 /|./|.//|/etc/*|/usr/sbin/*|/usr/etc/*|/sbin/*|/usr/afsws/bin/*|/usr/ucb/*) ;;
7727 # OSF1 and SCO ODT 3.0 have their own names for install.
7728 for ac_prog in ginstall scoinst install; do
7729 if test -f $ac_dir/$ac_prog; then
7730 if test $ac_prog = install &&
7731 grep dspmsg $ac_dir/$ac_prog >/dev/null 2>&1; then
7732 # AIX install. It has an incompatible calling convention.
7733 # OSF/1 installbsd also uses dspmsg, but is usable.
7735 else
7736 ac_cv_path_install="$ac_dir/$ac_prog -c"
7737 break 2
7740 done
7742 esac
7743 done
7744 IFS="$ac_save_IFS"
7747 if test "${ac_cv_path_install+set}" = set; then
7748 INSTALL="$ac_cv_path_install"
7749 else
7750 # As a last resort, use the slow shell script. We don't cache a
7751 # path for INSTALL within a source directory, because that will
7752 # break other packages using the cache if that directory is
7753 # removed, or if the path is relative.
7754 INSTALL="$ac_install_sh"
7757 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
7758 $as_echo "$INSTALL" >&6; }
7760 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
7761 # It thinks the first close brace ends the variable substitution.
7762 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
7764 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
7767 # See if cmp has --ignore-initial.
7768 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for cmp's capabilities" >&5
7769 $as_echo_n "checking for cmp's capabilities... " >&6; }
7770 if test "${gcc_cv_prog_cmp_skip+set}" = set; then :
7771 $as_echo_n "(cached) " >&6
7772 else
7773 echo abfoo >t1
7774 echo cdfoo >t2
7775 gcc_cv_prog_cmp_skip=slowcompare
7776 if cmp --ignore-initial=2 t1 t2 > /dev/null 2>&1; then
7777 if cmp --ignore-initial=1 t1 t2 > /dev/null 2>&1; then
7779 else
7780 gcc_cv_prog_cmp_skip=gnucompare
7783 if test $gcc_cv_prog_cmp_skip = slowcompare ; then
7784 if cmp t1 t2 2 2 > /dev/null 2>&1; then
7785 if cmp t1 t2 1 1 > /dev/null 2>&1; then
7787 else
7788 gcc_cv_prog_cmp_skip=fastcompare
7792 rm t1 t2
7795 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_prog_cmp_skip" >&5
7796 $as_echo "$gcc_cv_prog_cmp_skip" >&6; }
7797 make_compare_target=$gcc_cv_prog_cmp_skip
7801 # See if we have the mktemp command.
7802 # Extract the first word of "mktemp", so it can be a program name with args.
7803 set dummy mktemp; ac_word=$2
7804 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7805 $as_echo_n "checking for $ac_word... " >&6; }
7806 if test "${ac_cv_prog_have_mktemp_command+set}" = set; then :
7807 $as_echo_n "(cached) " >&6
7808 else
7809 if test -n "$have_mktemp_command"; then
7810 ac_cv_prog_have_mktemp_command="$have_mktemp_command" # Let the user override the test.
7811 else
7812 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7813 for as_dir in $PATH
7815 IFS=$as_save_IFS
7816 test -z "$as_dir" && as_dir=.
7817 for ac_exec_ext in '' $ac_executable_extensions; do
7818 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7819 ac_cv_prog_have_mktemp_command="yes"
7820 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7821 break 2
7823 done
7824 done
7825 IFS=$as_save_IFS
7827 test -z "$ac_cv_prog_have_mktemp_command" && ac_cv_prog_have_mktemp_command="no"
7830 have_mktemp_command=$ac_cv_prog_have_mktemp_command
7831 if test -n "$have_mktemp_command"; then
7832 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_mktemp_command" >&5
7833 $as_echo "$have_mktemp_command" >&6; }
7834 else
7835 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7836 $as_echo "no" >&6; }
7841 # See if makeinfo has been installed and is modern enough
7842 # that we can use it.
7844 # Extract the first word of "makeinfo", so it can be a program name with args.
7845 set dummy makeinfo; ac_word=$2
7846 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7847 $as_echo_n "checking for $ac_word... " >&6; }
7848 if test "${ac_cv_prog_MAKEINFO+set}" = set; then :
7849 $as_echo_n "(cached) " >&6
7850 else
7851 if test -n "$MAKEINFO"; then
7852 ac_cv_prog_MAKEINFO="$MAKEINFO" # Let the user override the test.
7853 else
7854 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7855 for as_dir in $PATH
7857 IFS=$as_save_IFS
7858 test -z "$as_dir" && as_dir=.
7859 for ac_exec_ext in '' $ac_executable_extensions; do
7860 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7861 ac_cv_prog_MAKEINFO="makeinfo"
7862 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7863 break 2
7865 done
7866 done
7867 IFS=$as_save_IFS
7871 MAKEINFO=$ac_cv_prog_MAKEINFO
7872 if test -n "$MAKEINFO"; then
7873 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAKEINFO" >&5
7874 $as_echo "$MAKEINFO" >&6; }
7875 else
7876 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7877 $as_echo "no" >&6; }
7881 if test -n "$MAKEINFO"; then
7882 # Found it, now check the version.
7883 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for modern makeinfo" >&5
7884 $as_echo_n "checking for modern makeinfo... " >&6; }
7885 if test "${gcc_cv_prog_makeinfo_modern+set}" = set; then :
7886 $as_echo_n "(cached) " >&6
7887 else
7888 ac_prog_version=`eval $MAKEINFO --version 2>&1 |
7889 sed -n 's/^.*GNU texinfo.* \([0-9][0-9.]*\).*$/\1/p'`
7891 case $ac_prog_version in
7892 '') gcc_cv_prog_makeinfo_modern=no;;
7893 4.[7-9]*|4.[1-9][0-9]*|[5-9]*|[1-9][0-9]*) gcc_cv_prog_makeinfo_modern=yes;;
7894 *) gcc_cv_prog_makeinfo_modern=no;;
7895 esac
7898 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_prog_makeinfo_modern" >&5
7899 $as_echo "$gcc_cv_prog_makeinfo_modern" >&6; }
7900 else
7901 gcc_cv_prog_makeinfo_modern=no
7903 if test $gcc_cv_prog_makeinfo_modern = no; then
7904 MAKEINFO="${CONFIG_SHELL-/bin/sh} $ac_aux_dir/missing makeinfo"
7907 if test $gcc_cv_prog_makeinfo_modern = no; then
7908 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING:
7909 *** Makeinfo is missing or too old.
7910 *** Info documentation will not be built." >&5
7911 $as_echo "$as_me: WARNING:
7912 *** Makeinfo is missing or too old.
7913 *** Info documentation will not be built." >&2;}
7914 BUILD_INFO=
7915 else
7916 BUILD_INFO=info
7920 # Is pod2man recent enough to regenerate manpages?
7921 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for recent Pod::Man" >&5
7922 $as_echo_n "checking for recent Pod::Man... " >&6; }
7923 if (perl -e 'use 1.10 Pod::Man') >/dev/null 2>&1; then
7924 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
7925 $as_echo "yes" >&6; }
7926 GENERATED_MANPAGES=generated-manpages
7927 else
7928 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7929 $as_echo "no" >&6; }
7930 GENERATED_MANPAGES=
7934 MISSING="${CONFIG_SHELL-/bin/sh} $ac_aux_dir/missing"
7936 # How about lex?
7937 for ac_prog in flex
7939 # Extract the first word of "$ac_prog", so it can be a program name with args.
7940 set dummy $ac_prog; ac_word=$2
7941 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7942 $as_echo_n "checking for $ac_word... " >&6; }
7943 if test "${ac_cv_prog_FLEX+set}" = set; then :
7944 $as_echo_n "(cached) " >&6
7945 else
7946 if test -n "$FLEX"; then
7947 ac_cv_prog_FLEX="$FLEX" # Let the user override the test.
7948 else
7949 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7950 for as_dir in $PATH
7952 IFS=$as_save_IFS
7953 test -z "$as_dir" && as_dir=.
7954 for ac_exec_ext in '' $ac_executable_extensions; do
7955 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7956 ac_cv_prog_FLEX="$ac_prog"
7957 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7958 break 2
7960 done
7961 done
7962 IFS=$as_save_IFS
7966 FLEX=$ac_cv_prog_FLEX
7967 if test -n "$FLEX"; then
7968 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $FLEX" >&5
7969 $as_echo "$FLEX" >&6; }
7970 else
7971 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7972 $as_echo "no" >&6; }
7976 test -n "$FLEX" && break
7977 done
7978 test -n "$FLEX" || FLEX="$MISSING flex"
7981 # Bison?
7982 for ac_prog in bison
7984 # Extract the first word of "$ac_prog", so it can be a program name with args.
7985 set dummy $ac_prog; ac_word=$2
7986 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7987 $as_echo_n "checking for $ac_word... " >&6; }
7988 if test "${ac_cv_prog_BISON+set}" = set; then :
7989 $as_echo_n "(cached) " >&6
7990 else
7991 if test -n "$BISON"; then
7992 ac_cv_prog_BISON="$BISON" # Let the user override the test.
7993 else
7994 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7995 for as_dir in $PATH
7997 IFS=$as_save_IFS
7998 test -z "$as_dir" && as_dir=.
7999 for ac_exec_ext in '' $ac_executable_extensions; do
8000 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8001 ac_cv_prog_BISON="$ac_prog"
8002 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8003 break 2
8005 done
8006 done
8007 IFS=$as_save_IFS
8011 BISON=$ac_cv_prog_BISON
8012 if test -n "$BISON"; then
8013 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BISON" >&5
8014 $as_echo "$BISON" >&6; }
8015 else
8016 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8017 $as_echo "no" >&6; }
8021 test -n "$BISON" && break
8022 done
8023 test -n "$BISON" || BISON="$MISSING bison"
8026 # Binutils are not build modules, unlike bison/flex/makeinfo. So we
8027 # check for build == host before using them.
8029 # NM
8030 if test x${build} = x${host} && test -f $srcdir/../binutils/nm.c \
8031 && test -d ../binutils ; then
8032 NM='${objdir}/../binutils/nm-new'
8033 else
8034 # Extract the first word of "nm", so it can be a program name with args.
8035 set dummy nm; ac_word=$2
8036 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8037 $as_echo_n "checking for $ac_word... " >&6; }
8038 if test "${ac_cv_prog_NM+set}" = set; then :
8039 $as_echo_n "(cached) " >&6
8040 else
8041 if test -n "$NM"; then
8042 ac_cv_prog_NM="$NM" # Let the user override the test.
8043 else
8044 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8045 for as_dir in $PATH
8047 IFS=$as_save_IFS
8048 test -z "$as_dir" && as_dir=.
8049 for ac_exec_ext in '' $ac_executable_extensions; do
8050 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8051 ac_cv_prog_NM="nm"
8052 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8053 break 2
8055 done
8056 done
8057 IFS=$as_save_IFS
8059 test -z "$ac_cv_prog_NM" && ac_cv_prog_NM="${CONFIG_SHELL-/bin/sh} ${srcdir}/../missing nm"
8062 NM=$ac_cv_prog_NM
8063 if test -n "$NM"; then
8064 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NM" >&5
8065 $as_echo "$NM" >&6; }
8066 else
8067 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8068 $as_echo "no" >&6; }
8074 # AR
8075 if test x${build} = x${host} && test -f $srcdir/../binutils/ar.c \
8076 && test -d ../binutils ; then
8077 AR='${objdir}/../binutils/ar'
8078 else
8079 # Extract the first word of "ar", so it can be a program name with args.
8080 set dummy ar; ac_word=$2
8081 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8082 $as_echo_n "checking for $ac_word... " >&6; }
8083 if test "${ac_cv_prog_AR+set}" = set; then :
8084 $as_echo_n "(cached) " >&6
8085 else
8086 if test -n "$AR"; then
8087 ac_cv_prog_AR="$AR" # Let the user override the test.
8088 else
8089 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8090 for as_dir in $PATH
8092 IFS=$as_save_IFS
8093 test -z "$as_dir" && as_dir=.
8094 for ac_exec_ext in '' $ac_executable_extensions; do
8095 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8096 ac_cv_prog_AR="ar"
8097 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8098 break 2
8100 done
8101 done
8102 IFS=$as_save_IFS
8104 test -z "$ac_cv_prog_AR" && ac_cv_prog_AR="${CONFIG_SHELL-/bin/sh} ${srcdir}/../missing ar"
8107 AR=$ac_cv_prog_AR
8108 if test -n "$AR"; then
8109 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
8110 $as_echo "$AR" >&6; }
8111 else
8112 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8113 $as_echo "no" >&6; }
8119 # The jit documentation looks better if built with sphinx, but can be
8120 # built with texinfo if sphinx is not available.
8121 # Set "doc_build_sys" to "sphinx" or "texinfo" accordingly.
8122 # Extract the first word of "sphinx-build", so it can be a program name with args.
8123 set dummy sphinx-build; ac_word=$2
8124 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8125 $as_echo_n "checking for $ac_word... " >&6; }
8126 if test "${ac_cv_prog_doc_build_sys+set}" = set; then :
8127 $as_echo_n "(cached) " >&6
8128 else
8129 if test -n "$doc_build_sys"; then
8130 ac_cv_prog_doc_build_sys="$doc_build_sys" # Let the user override the test.
8131 else
8132 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8133 for as_dir in $PATH
8135 IFS=$as_save_IFS
8136 test -z "$as_dir" && as_dir=.
8137 for ac_exec_ext in '' $ac_executable_extensions; do
8138 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8139 ac_cv_prog_doc_build_sys="sphinx"
8140 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8141 break 2
8143 done
8144 done
8145 IFS=$as_save_IFS
8147 test -z "$ac_cv_prog_doc_build_sys" && ac_cv_prog_doc_build_sys="texinfo"
8150 doc_build_sys=$ac_cv_prog_doc_build_sys
8151 if test -n "$doc_build_sys"; then
8152 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $doc_build_sys" >&5
8153 $as_echo "$doc_build_sys" >&6; }
8154 else
8155 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8156 $as_echo "no" >&6; }
8161 # --------------------
8162 # Checks for C headers
8163 # --------------------
8165 # Need to reject headers which give warnings, so that the -Werror bootstrap
8166 # works later. *sigh* This needs to come before all header checks.
8168 ac_c_preproc_warn_flag=yes
8170 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
8171 $as_echo_n "checking for ANSI C header files... " >&6; }
8172 if test "${ac_cv_header_stdc+set}" = set; then :
8173 $as_echo_n "(cached) " >&6
8174 else
8175 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8176 /* end confdefs.h. */
8177 #include <stdlib.h>
8178 #include <stdarg.h>
8179 #include <string.h>
8180 #include <float.h>
8183 main ()
8187 return 0;
8189 _ACEOF
8190 if ac_fn_c_try_compile "$LINENO"; then :
8191 ac_cv_header_stdc=yes
8192 else
8193 ac_cv_header_stdc=no
8195 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8197 if test $ac_cv_header_stdc = yes; then
8198 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
8199 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8200 /* end confdefs.h. */
8201 #include <string.h>
8203 _ACEOF
8204 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
8205 $EGREP "memchr" >/dev/null 2>&1; then :
8207 else
8208 ac_cv_header_stdc=no
8210 rm -f conftest*
8214 if test $ac_cv_header_stdc = yes; then
8215 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
8216 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8217 /* end confdefs.h. */
8218 #include <stdlib.h>
8220 _ACEOF
8221 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
8222 $EGREP "free" >/dev/null 2>&1; then :
8224 else
8225 ac_cv_header_stdc=no
8227 rm -f conftest*
8231 if test $ac_cv_header_stdc = yes; then
8232 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
8233 if test "$cross_compiling" = yes; then :
8235 else
8236 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8237 /* end confdefs.h. */
8238 #include <ctype.h>
8239 #include <stdlib.h>
8240 #if ((' ' & 0x0FF) == 0x020)
8241 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
8242 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
8243 #else
8244 # define ISLOWER(c) \
8245 (('a' <= (c) && (c) <= 'i') \
8246 || ('j' <= (c) && (c) <= 'r') \
8247 || ('s' <= (c) && (c) <= 'z'))
8248 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
8249 #endif
8251 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
8253 main ()
8255 int i;
8256 for (i = 0; i < 256; i++)
8257 if (XOR (islower (i), ISLOWER (i))
8258 || toupper (i) != TOUPPER (i))
8259 return 2;
8260 return 0;
8262 _ACEOF
8263 if ac_fn_c_try_run "$LINENO"; then :
8265 else
8266 ac_cv_header_stdc=no
8268 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
8269 conftest.$ac_objext conftest.beam conftest.$ac_ext
8274 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
8275 $as_echo "$ac_cv_header_stdc" >&6; }
8276 if test $ac_cv_header_stdc = yes; then
8278 $as_echo "#define STDC_HEADERS 1" >>confdefs.h
8282 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether time.h and sys/time.h may both be included" >&5
8283 $as_echo_n "checking whether time.h and sys/time.h may both be included... " >&6; }
8284 if test "${ac_cv_header_time+set}" = set; then :
8285 $as_echo_n "(cached) " >&6
8286 else
8287 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8288 /* end confdefs.h. */
8289 #include <sys/types.h>
8290 #include <sys/time.h>
8291 #include <time.h>
8294 main ()
8296 if ((struct tm *) 0)
8297 return 0;
8299 return 0;
8301 _ACEOF
8302 if ac_fn_c_try_compile "$LINENO"; then :
8303 ac_cv_header_time=yes
8304 else
8305 ac_cv_header_time=no
8307 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8309 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_time" >&5
8310 $as_echo "$ac_cv_header_time" >&6; }
8311 if test $ac_cv_header_time = yes; then
8313 $as_echo "#define TIME_WITH_SYS_TIME 1" >>confdefs.h
8317 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether string.h and strings.h may both be included" >&5
8318 $as_echo_n "checking whether string.h and strings.h may both be included... " >&6; }
8319 if test "${gcc_cv_header_string+set}" = set; then :
8320 $as_echo_n "(cached) " >&6
8321 else
8322 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8323 /* end confdefs.h. */
8324 #include <string.h>
8325 #include <strings.h>
8327 main ()
8331 return 0;
8333 _ACEOF
8334 if ac_fn_c_try_compile "$LINENO"; then :
8335 gcc_cv_header_string=yes
8336 else
8337 gcc_cv_header_string=no
8339 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8341 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_header_string" >&5
8342 $as_echo "$gcc_cv_header_string" >&6; }
8343 if test $gcc_cv_header_string = yes; then
8345 $as_echo "#define STRING_WITH_STRINGS 1" >>confdefs.h
8349 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sys/wait.h that is POSIX.1 compatible" >&5
8350 $as_echo_n "checking for sys/wait.h that is POSIX.1 compatible... " >&6; }
8351 if test "${ac_cv_header_sys_wait_h+set}" = set; then :
8352 $as_echo_n "(cached) " >&6
8353 else
8354 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8355 /* end confdefs.h. */
8356 #include <sys/types.h>
8357 #include <sys/wait.h>
8358 #ifndef WEXITSTATUS
8359 # define WEXITSTATUS(stat_val) ((unsigned int) (stat_val) >> 8)
8360 #endif
8361 #ifndef WIFEXITED
8362 # define WIFEXITED(stat_val) (((stat_val) & 255) == 0)
8363 #endif
8366 main ()
8368 int s;
8369 wait (&s);
8370 s = WIFEXITED (s) ? WEXITSTATUS (s) : 1;
8372 return 0;
8374 _ACEOF
8375 if ac_fn_c_try_compile "$LINENO"; then :
8376 ac_cv_header_sys_wait_h=yes
8377 else
8378 ac_cv_header_sys_wait_h=no
8380 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8382 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_sys_wait_h" >&5
8383 $as_echo "$ac_cv_header_sys_wait_h" >&6; }
8384 if test $ac_cv_header_sys_wait_h = yes; then
8386 $as_echo "#define HAVE_SYS_WAIT_H 1" >>confdefs.h
8390 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether termios.h defines TIOCGWINSZ" >&5
8391 $as_echo_n "checking whether termios.h defines TIOCGWINSZ... " >&6; }
8392 if test "${ac_cv_sys_tiocgwinsz_in_termios_h+set}" = set; then :
8393 $as_echo_n "(cached) " >&6
8394 else
8395 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8396 /* end confdefs.h. */
8397 #include <sys/types.h>
8398 #include <termios.h>
8399 #ifdef TIOCGWINSZ
8401 #endif
8403 _ACEOF
8404 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
8405 $EGREP "yes" >/dev/null 2>&1; then :
8406 ac_cv_sys_tiocgwinsz_in_termios_h=yes
8407 else
8408 ac_cv_sys_tiocgwinsz_in_termios_h=no
8410 rm -f conftest*
8413 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_tiocgwinsz_in_termios_h" >&5
8414 $as_echo "$ac_cv_sys_tiocgwinsz_in_termios_h" >&6; }
8416 if test $ac_cv_sys_tiocgwinsz_in_termios_h != yes; then
8417 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether sys/ioctl.h defines TIOCGWINSZ" >&5
8418 $as_echo_n "checking whether sys/ioctl.h defines TIOCGWINSZ... " >&6; }
8419 if test "${ac_cv_sys_tiocgwinsz_in_sys_ioctl_h+set}" = set; then :
8420 $as_echo_n "(cached) " >&6
8421 else
8422 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8423 /* end confdefs.h. */
8424 #include <sys/types.h>
8425 #include <sys/ioctl.h>
8426 #ifdef TIOCGWINSZ
8428 #endif
8430 _ACEOF
8431 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
8432 $EGREP "yes" >/dev/null 2>&1; then :
8433 ac_cv_sys_tiocgwinsz_in_sys_ioctl_h=yes
8434 else
8435 ac_cv_sys_tiocgwinsz_in_sys_ioctl_h=no
8437 rm -f conftest*
8440 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_tiocgwinsz_in_sys_ioctl_h" >&5
8441 $as_echo "$ac_cv_sys_tiocgwinsz_in_sys_ioctl_h" >&6; }
8443 if test $ac_cv_sys_tiocgwinsz_in_sys_ioctl_h = yes; then
8445 $as_echo "#define GWINSZ_IN_SYS_IOCTL 1" >>confdefs.h
8450 for ac_header in limits.h stddef.h string.h strings.h stdlib.h time.h iconv.h \
8451 fcntl.h unistd.h sys/file.h sys/time.h sys/mman.h \
8452 sys/resource.h sys/param.h sys/times.h sys/stat.h \
8453 direct.h malloc.h langinfo.h ldfcn.h locale.h wchar.h
8454 do :
8455 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
8456 ac_fn_c_check_header_preproc "$LINENO" "$ac_header" "$as_ac_Header"
8457 eval as_val=\$$as_ac_Header
8458 if test "x$as_val" = x""yes; then :
8459 cat >>confdefs.h <<_ACEOF
8460 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
8461 _ACEOF
8464 done
8467 # Check for thread headers.
8468 ac_fn_c_check_header_preproc "$LINENO" "thread.h" "ac_cv_header_thread_h"
8469 if test "x$ac_cv_header_thread_h" = x""yes; then :
8470 have_thread_h=yes
8471 else
8472 have_thread_h=
8475 ac_fn_c_check_header_preproc "$LINENO" "pthread.h" "ac_cv_header_pthread_h"
8476 if test "x$ac_cv_header_pthread_h" = x""yes; then :
8477 have_pthread_h=yes
8478 else
8479 have_pthread_h=
8483 # These tests can't be done till we know if we have limits.h.
8484 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for CHAR_BIT" >&5
8485 $as_echo_n "checking for CHAR_BIT... " >&6; }
8486 if test "${gcc_cv_decl_char_bit+set}" = set; then :
8487 $as_echo_n "(cached) " >&6
8488 else
8489 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8490 /* end confdefs.h. */
8491 #ifdef HAVE_LIMITS_H
8492 #include <limits.h>
8493 #endif
8494 #ifdef CHAR_BIT
8495 found
8496 #endif
8497 _ACEOF
8498 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
8499 $EGREP "found" >/dev/null 2>&1; then :
8500 gcc_cv_decl_char_bit=yes
8501 else
8502 gcc_cv_decl_char_bit=no
8504 rm -f conftest*
8508 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_decl_char_bit" >&5
8509 $as_echo "$gcc_cv_decl_char_bit" >&6; }
8510 if test $gcc_cv_decl_char_bit = no; then
8511 { $as_echo "$as_me:${as_lineno-$LINENO}: checking number of bits in a byte" >&5
8512 $as_echo_n "checking number of bits in a byte... " >&6; }
8513 if test "${gcc_cv_c_nbby+set}" = set; then :
8514 $as_echo_n "(cached) " >&6
8515 else
8517 gcc_cv_c_nbby=
8518 while test $i -lt 65; do
8519 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8520 /* end confdefs.h. */
8523 main ()
8525 switch(0) {
8526 case (unsigned char)((unsigned long)1 << $i) == ((unsigned long)1 << $i):
8527 case (unsigned char)((unsigned long)1<<($i-1)) == ((unsigned long)1<<($i-1)):
8530 return 0;
8532 _ACEOF
8533 if ac_fn_c_try_compile "$LINENO"; then :
8534 gcc_cv_c_nbby=$i; break
8536 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8537 i=`expr $i + 1`
8538 done
8539 test -z "$gcc_cv_c_nbby" && gcc_cv_c_nbby=failed
8542 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_c_nbby" >&5
8543 $as_echo "$gcc_cv_c_nbby" >&6; }
8544 if test $gcc_cv_c_nbby = failed; then
8545 as_fn_error "cannot determine number of bits in a byte" "$LINENO" 5
8546 else
8548 cat >>confdefs.h <<_ACEOF
8549 #define CHAR_BIT $gcc_cv_c_nbby
8550 _ACEOF
8554 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether byte ordering is bigendian" >&5
8555 $as_echo_n "checking whether byte ordering is bigendian... " >&6; }
8556 if test "${ac_cv_c_bigendian+set}" = set; then :
8557 $as_echo_n "(cached) " >&6
8558 else
8559 ac_cv_c_bigendian=unknown
8560 # See if we're dealing with a universal compiler.
8561 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8562 /* end confdefs.h. */
8563 #ifndef __APPLE_CC__
8564 not a universal capable compiler
8565 #endif
8566 typedef int dummy;
8568 _ACEOF
8569 if ac_fn_c_try_compile "$LINENO"; then :
8571 # Check for potential -arch flags. It is not universal unless
8572 # there are at least two -arch flags with different values.
8573 ac_arch=
8574 ac_prev=
8575 for ac_word in $CC $CFLAGS $CPPFLAGS $LDFLAGS; do
8576 if test -n "$ac_prev"; then
8577 case $ac_word in
8578 i?86 | x86_64 | ppc | ppc64)
8579 if test -z "$ac_arch" || test "$ac_arch" = "$ac_word"; then
8580 ac_arch=$ac_word
8581 else
8582 ac_cv_c_bigendian=universal
8583 break
8586 esac
8587 ac_prev=
8588 elif test "x$ac_word" = "x-arch"; then
8589 ac_prev=arch
8591 done
8593 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8594 if test $ac_cv_c_bigendian = unknown; then
8595 # See if sys/param.h defines the BYTE_ORDER macro.
8596 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8597 /* end confdefs.h. */
8598 #include <sys/types.h>
8599 #include <sys/param.h>
8602 main ()
8604 #if ! (defined BYTE_ORDER && defined BIG_ENDIAN \
8605 && defined LITTLE_ENDIAN && BYTE_ORDER && BIG_ENDIAN \
8606 && LITTLE_ENDIAN)
8607 bogus endian macros
8608 #endif
8611 return 0;
8613 _ACEOF
8614 if ac_fn_c_try_compile "$LINENO"; then :
8615 # It does; now see whether it defined to BIG_ENDIAN or not.
8616 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8617 /* end confdefs.h. */
8618 #include <sys/types.h>
8619 #include <sys/param.h>
8622 main ()
8624 #if BYTE_ORDER != BIG_ENDIAN
8625 not big endian
8626 #endif
8629 return 0;
8631 _ACEOF
8632 if ac_fn_c_try_compile "$LINENO"; then :
8633 ac_cv_c_bigendian=yes
8634 else
8635 ac_cv_c_bigendian=no
8637 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8639 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8641 if test $ac_cv_c_bigendian = unknown; then
8642 # See if <limits.h> defines _LITTLE_ENDIAN or _BIG_ENDIAN (e.g., Solaris).
8643 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8644 /* end confdefs.h. */
8645 #include <limits.h>
8648 main ()
8650 #if ! (defined _LITTLE_ENDIAN || defined _BIG_ENDIAN)
8651 bogus endian macros
8652 #endif
8655 return 0;
8657 _ACEOF
8658 if ac_fn_c_try_compile "$LINENO"; then :
8659 # It does; now see whether it defined to _BIG_ENDIAN or not.
8660 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8661 /* end confdefs.h. */
8662 #include <limits.h>
8665 main ()
8667 #ifndef _BIG_ENDIAN
8668 not big endian
8669 #endif
8672 return 0;
8674 _ACEOF
8675 if ac_fn_c_try_compile "$LINENO"; then :
8676 ac_cv_c_bigendian=yes
8677 else
8678 ac_cv_c_bigendian=no
8680 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8682 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8684 if test $ac_cv_c_bigendian = unknown; then
8685 # Compile a test program.
8686 if test "$cross_compiling" = yes; then :
8687 # Try to guess by grepping values from an object file.
8688 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8689 /* end confdefs.h. */
8690 short int ascii_mm[] =
8691 { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 };
8692 short int ascii_ii[] =
8693 { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 };
8694 int use_ascii (int i) {
8695 return ascii_mm[i] + ascii_ii[i];
8697 short int ebcdic_ii[] =
8698 { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 };
8699 short int ebcdic_mm[] =
8700 { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 };
8701 int use_ebcdic (int i) {
8702 return ebcdic_mm[i] + ebcdic_ii[i];
8704 extern int foo;
8707 main ()
8709 return use_ascii (foo) == use_ebcdic (foo);
8711 return 0;
8713 _ACEOF
8714 if ac_fn_c_try_compile "$LINENO"; then :
8715 if grep BIGenDianSyS conftest.$ac_objext >/dev/null; then
8716 ac_cv_c_bigendian=yes
8718 if grep LiTTleEnDian conftest.$ac_objext >/dev/null ; then
8719 if test "$ac_cv_c_bigendian" = unknown; then
8720 ac_cv_c_bigendian=no
8721 else
8722 # finding both strings is unlikely to happen, but who knows?
8723 ac_cv_c_bigendian=unknown
8727 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8728 else
8729 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8730 /* end confdefs.h. */
8731 $ac_includes_default
8733 main ()
8736 /* Are we little or big endian? From Harbison&Steele. */
8737 union
8739 long int l;
8740 char c[sizeof (long int)];
8741 } u;
8742 u.l = 1;
8743 return u.c[sizeof (long int) - 1] == 1;
8746 return 0;
8748 _ACEOF
8749 if ac_fn_c_try_run "$LINENO"; then :
8750 ac_cv_c_bigendian=no
8751 else
8752 ac_cv_c_bigendian=yes
8754 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
8755 conftest.$ac_objext conftest.beam conftest.$ac_ext
8760 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_bigendian" >&5
8761 $as_echo "$ac_cv_c_bigendian" >&6; }
8762 case $ac_cv_c_bigendian in #(
8763 yes)
8764 $as_echo "#define WORDS_BIGENDIAN 1" >>confdefs.h
8765 ;; #(
8767 ;; #(
8768 universal)
8770 $as_echo "#define AC_APPLE_UNIVERSAL_BUILD 1" >>confdefs.h
8772 ;; #(
8774 as_fn_error "unknown endianness
8775 presetting ac_cv_c_bigendian=no (or yes) will help" "$LINENO" 5 ;;
8776 esac
8779 # ----------------------
8780 # Checks for C++ headers
8781 # ----------------------
8783 ac_ext=cpp
8784 ac_cpp='$CXXCPP $CPPFLAGS'
8785 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8786 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8787 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
8788 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C++ preprocessor" >&5
8789 $as_echo_n "checking how to run the C++ preprocessor... " >&6; }
8790 if test -z "$CXXCPP"; then
8791 if test "${ac_cv_prog_CXXCPP+set}" = set; then :
8792 $as_echo_n "(cached) " >&6
8793 else
8794 # Double quotes because CXXCPP needs to be expanded
8795 for CXXCPP in "$CXX -E" "/lib/cpp"
8797 ac_preproc_ok=false
8798 for ac_cxx_preproc_warn_flag in '' yes
8800 # Use a header file that comes with gcc, so configuring glibc
8801 # with a fresh cross-compiler works.
8802 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
8803 # <limits.h> exists even on freestanding compilers.
8804 # On the NeXT, cc -E runs the code through the compiler's parser,
8805 # not just through cpp. "Syntax error" is here to catch this case.
8806 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8807 /* end confdefs.h. */
8808 #ifdef __STDC__
8809 # include <limits.h>
8810 #else
8811 # include <assert.h>
8812 #endif
8813 Syntax error
8814 _ACEOF
8815 if ac_fn_cxx_try_cpp "$LINENO"; then :
8817 else
8818 # Broken: fails on valid input.
8819 continue
8821 rm -f conftest.err conftest.$ac_ext
8823 # OK, works on sane cases. Now check whether nonexistent headers
8824 # can be detected and how.
8825 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8826 /* end confdefs.h. */
8827 #include <ac_nonexistent.h>
8828 _ACEOF
8829 if ac_fn_cxx_try_cpp "$LINENO"; then :
8830 # Broken: success on invalid input.
8831 continue
8832 else
8833 # Passes both tests.
8834 ac_preproc_ok=:
8835 break
8837 rm -f conftest.err conftest.$ac_ext
8839 done
8840 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
8841 rm -f conftest.err conftest.$ac_ext
8842 if $ac_preproc_ok; then :
8843 break
8846 done
8847 ac_cv_prog_CXXCPP=$CXXCPP
8850 CXXCPP=$ac_cv_prog_CXXCPP
8851 else
8852 ac_cv_prog_CXXCPP=$CXXCPP
8854 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXXCPP" >&5
8855 $as_echo "$CXXCPP" >&6; }
8856 ac_preproc_ok=false
8857 for ac_cxx_preproc_warn_flag in '' yes
8859 # Use a header file that comes with gcc, so configuring glibc
8860 # with a fresh cross-compiler works.
8861 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
8862 # <limits.h> exists even on freestanding compilers.
8863 # On the NeXT, cc -E runs the code through the compiler's parser,
8864 # not just through cpp. "Syntax error" is here to catch this case.
8865 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8866 /* end confdefs.h. */
8867 #ifdef __STDC__
8868 # include <limits.h>
8869 #else
8870 # include <assert.h>
8871 #endif
8872 Syntax error
8873 _ACEOF
8874 if ac_fn_cxx_try_cpp "$LINENO"; then :
8876 else
8877 # Broken: fails on valid input.
8878 continue
8880 rm -f conftest.err conftest.$ac_ext
8882 # OK, works on sane cases. Now check whether nonexistent headers
8883 # can be detected and how.
8884 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8885 /* end confdefs.h. */
8886 #include <ac_nonexistent.h>
8887 _ACEOF
8888 if ac_fn_cxx_try_cpp "$LINENO"; then :
8889 # Broken: success on invalid input.
8890 continue
8891 else
8892 # Passes both tests.
8893 ac_preproc_ok=:
8894 break
8896 rm -f conftest.err conftest.$ac_ext
8898 done
8899 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
8900 rm -f conftest.err conftest.$ac_ext
8901 if $ac_preproc_ok; then :
8903 else
8904 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
8905 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
8906 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: C++ preprocessor \"$CXXCPP\" fails sanity check
8907 See \`config.log' for more details." >&5
8908 $as_echo "$as_me: WARNING: C++ preprocessor \"$CXXCPP\" fails sanity check
8909 See \`config.log' for more details." >&2;}; }
8912 ac_ext=c
8913 ac_cpp='$CPP $CPPFLAGS'
8914 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8915 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8916 ac_compiler_gnu=$ac_cv_c_compiler_gnu
8919 ac_ext=cpp
8920 ac_cpp='$CXXCPP $CPPFLAGS'
8921 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8922 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8923 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
8927 for ac_header in unordered_map
8928 do :
8929 ac_fn_cxx_check_header_preproc "$LINENO" "unordered_map" "ac_cv_header_unordered_map"
8930 if test "x$ac_cv_header_unordered_map" = x""yes; then :
8931 cat >>confdefs.h <<_ACEOF
8932 #define HAVE_UNORDERED_MAP 1
8933 _ACEOF
8936 done
8938 for ac_header in tr1/unordered_map
8939 do :
8940 ac_fn_cxx_check_header_preproc "$LINENO" "tr1/unordered_map" "ac_cv_header_tr1_unordered_map"
8941 if test "x$ac_cv_header_tr1_unordered_map" = x""yes; then :
8942 cat >>confdefs.h <<_ACEOF
8943 #define HAVE_TR1_UNORDERED_MAP 1
8944 _ACEOF
8947 done
8949 for ac_header in ext/hash_map
8950 do :
8951 ac_fn_cxx_check_header_preproc "$LINENO" "ext/hash_map" "ac_cv_header_ext_hash_map"
8952 if test "x$ac_cv_header_ext_hash_map" = x""yes; then :
8953 cat >>confdefs.h <<_ACEOF
8954 #define HAVE_EXT_HASH_MAP 1
8955 _ACEOF
8958 done
8961 ac_ext=c
8962 ac_cpp='$CPP $CPPFLAGS'
8963 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8964 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8965 ac_compiler_gnu=$ac_cv_c_compiler_gnu
8968 # --------
8969 # Dependency checking.
8970 # --------
8972 ac_ext=cpp
8973 ac_cpp='$CXXCPP $CPPFLAGS'
8974 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8975 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8976 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
8978 rm -rf .tst 2>/dev/null
8979 mkdir .tst 2>/dev/null
8980 if test -d .tst; then
8981 am__leading_dot=.
8982 else
8983 am__leading_dot=_
8985 rmdir .tst 2>/dev/null
8987 DEPDIR="${am__leading_dot}deps"
8989 ac_config_commands="$ac_config_commands depdir"
8992 ac_config_commands="$ac_config_commands gccdepdir"
8995 depcc="$CXX" am_compiler_list=
8997 am_depcomp=$ac_aux_dir/depcomp
8998 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
8999 $as_echo_n "checking dependency style of $depcc... " >&6; }
9000 if test "${am_cv_CXX_dependencies_compiler_type+set}" = set; then :
9001 $as_echo_n "(cached) " >&6
9002 else
9003 if test -f "$am_depcomp"; then
9004 # We make a subdir and do the tests there. Otherwise we can end up
9005 # making bogus files that we don't know about and never remove. For
9006 # instance it was reported that on HP-UX the gcc test will end up
9007 # making a dummy file named `D' -- because `-MD' means `put the output
9008 # in D'.
9009 mkdir conftest.dir
9010 # Copy depcomp to subdir because otherwise we won't find it if we're
9011 # using a relative directory.
9012 cp "$am_depcomp" conftest.dir
9013 cd conftest.dir
9014 # We will build objects and dependencies in a subdirectory because
9015 # it helps to detect inapplicable dependency modes. For instance
9016 # both Tru64's cc and ICC support -MD to output dependencies as a
9017 # side effect of compilation, but ICC will put the dependencies in
9018 # the current directory while Tru64 will put them in the object
9019 # directory.
9020 mkdir sub
9022 am_cv_CXX_dependencies_compiler_type=none
9023 if test "$am_compiler_list" = ""; then
9024 am_compiler_list=`sed -n 's/^\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
9026 for depmode in $am_compiler_list; do
9027 if test $depmode = none; then break; fi
9029 $as_echo "$as_me:$LINENO: trying $depmode" >&5
9030 # Setup a source with many dependencies, because some compilers
9031 # like to wrap large dependency lists on column 80 (with \), and
9032 # we should not choose a depcomp mode which is confused by this.
9034 # We need to recreate these files for each test, as the compiler may
9035 # overwrite some of them when testing with obscure command lines.
9036 # This happens at least with the AIX C compiler.
9037 : > sub/conftest.c
9038 for i in 1 2 3 4 5 6; do
9039 echo '#include "conftst'$i'.h"' >> sub/conftest.c
9040 # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
9041 # Solaris 8's {/usr,}/bin/sh.
9042 touch sub/conftst$i.h
9043 done
9044 echo "include sub/conftest.Po" > confmf
9046 # We check with `-c' and `-o' for the sake of the "dashmstdout"
9047 # mode. It turns out that the SunPro C++ compiler does not properly
9048 # handle `-M -o', and we need to detect this.
9049 depcmd="depmode=$depmode \
9050 source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \
9051 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
9052 $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c"
9053 echo "| $depcmd" | sed -e 's/ */ /g' >&5
9054 if env $depcmd > conftest.err 2>&1 &&
9055 grep sub/conftst6.h sub/conftest.Po >>conftest.err 2>&1 &&
9056 grep sub/conftest.${OBJEXT-o} sub/conftest.Po >>conftest.err 2>&1 &&
9057 ${MAKE-make} -s -f confmf >>conftest.err 2>&1; then
9058 # icc doesn't choke on unknown options, it will just issue warnings
9059 # or remarks (even with -Werror). So we grep stderr for any message
9060 # that says an option was ignored or not supported.
9061 # When given -MP, icc 7.0 and 7.1 complain thusly:
9062 # icc: Command line warning: ignoring option '-M'; no argument required
9063 # The diagnosis changed in icc 8.0:
9064 # icc: Command line remark: option '-MP' not supported
9065 if (grep 'ignoring option' conftest.err ||
9066 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
9067 am_cv_CXX_dependencies_compiler_type=$depmode
9068 $as_echo "$as_me:$LINENO: success" >&5
9069 break
9072 $as_echo "$as_me:$LINENO: failure, diagnostics are:" >&5
9073 sed -e 's/^/| /' < conftest.err >&5
9074 done
9076 cd ..
9077 rm -rf conftest.dir
9078 else
9079 am_cv_CXX_dependencies_compiler_type=none
9083 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CXX_dependencies_compiler_type" >&5
9084 $as_echo "$am_cv_CXX_dependencies_compiler_type" >&6; }
9085 if test x${am_cv_CXX_dependencies_compiler_type-none} = xnone
9086 then as_fn_error "no usable dependency style found" "$LINENO" 5
9087 else CXXDEPMODE=depmode=$am_cv_CXX_dependencies_compiler_type
9091 ac_ext=c
9092 ac_cpp='$CPP $CPPFLAGS'
9093 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
9094 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
9095 ac_compiler_gnu=$ac_cv_c_compiler_gnu
9098 # --------
9099 # UNSORTED
9100 # --------
9103 # These libraries may be used by collect2.
9104 # We may need a special search path to get them linked.
9105 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for collect2 libraries" >&5
9106 $as_echo_n "checking for collect2 libraries... " >&6; }
9107 if test "${gcc_cv_collect2_libs+set}" = set; then :
9108 $as_echo_n "(cached) " >&6
9109 else
9110 save_LIBS="$LIBS"
9111 for libs in '' -lld -lmld \
9112 '-L/usr/lib/cmplrs/cc2.11 -lmld' \
9113 '-L/usr/lib/cmplrs/cc3.11 -lmld'
9115 LIBS="$libs"
9116 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9117 /* end confdefs.h. */
9119 /* Override any GCC internal prototype to avoid an error.
9120 Use char because int might match the return type of a GCC
9121 builtin and then its argument prototype would still apply. */
9122 #ifdef __cplusplus
9123 extern "C"
9124 #endif
9125 char ldopen ();
9127 main ()
9129 return ldopen ();
9131 return 0;
9133 _ACEOF
9134 if ac_fn_c_try_link "$LINENO"; then :
9135 gcc_cv_collect2_libs="$libs"; break
9137 rm -f core conftest.err conftest.$ac_objext \
9138 conftest$ac_exeext conftest.$ac_ext
9139 done
9140 LIBS="$save_LIBS"
9141 test -z "$gcc_cv_collect2_libs" && gcc_cv_collect2_libs='none required'
9143 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_collect2_libs" >&5
9144 $as_echo "$gcc_cv_collect2_libs" >&6; }
9145 case $gcc_cv_collect2_libs in
9146 "none required") ;;
9147 *) COLLECT2_LIBS=$gcc_cv_collect2_libs ;;
9148 esac
9151 # When building Ada code on Alpha, we need exc_resume which is usually in
9152 # -lexc. So test for it.
9153 save_LIBS="$LIBS"
9154 LIBS=
9155 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing exc_resume" >&5
9156 $as_echo_n "checking for library containing exc_resume... " >&6; }
9157 if test "${ac_cv_search_exc_resume+set}" = set; then :
9158 $as_echo_n "(cached) " >&6
9159 else
9160 ac_func_search_save_LIBS=$LIBS
9161 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9162 /* end confdefs.h. */
9164 /* Override any GCC internal prototype to avoid an error.
9165 Use char because int might match the return type of a GCC
9166 builtin and then its argument prototype would still apply. */
9167 #ifdef __cplusplus
9168 extern "C"
9169 #endif
9170 char exc_resume ();
9172 main ()
9174 return exc_resume ();
9176 return 0;
9178 _ACEOF
9179 for ac_lib in '' exc; do
9180 if test -z "$ac_lib"; then
9181 ac_res="none required"
9182 else
9183 ac_res=-l$ac_lib
9184 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
9186 if ac_fn_c_try_link "$LINENO"; then :
9187 ac_cv_search_exc_resume=$ac_res
9189 rm -f core conftest.err conftest.$ac_objext \
9190 conftest$ac_exeext
9191 if test "${ac_cv_search_exc_resume+set}" = set; then :
9192 break
9194 done
9195 if test "${ac_cv_search_exc_resume+set}" = set; then :
9197 else
9198 ac_cv_search_exc_resume=no
9200 rm conftest.$ac_ext
9201 LIBS=$ac_func_search_save_LIBS
9203 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_exc_resume" >&5
9204 $as_echo "$ac_cv_search_exc_resume" >&6; }
9205 ac_res=$ac_cv_search_exc_resume
9206 if test "$ac_res" != no; then :
9207 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
9211 GNAT_LIBEXC="$LIBS"
9212 LIBS="$save_LIBS"
9215 # To support -mcpu=native on Solaris/SPARC, we need libkstat.
9216 save_LIBS="$LIBS"
9217 LIBS=
9218 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing kstat_open" >&5
9219 $as_echo_n "checking for library containing kstat_open... " >&6; }
9220 if test "${ac_cv_search_kstat_open+set}" = set; then :
9221 $as_echo_n "(cached) " >&6
9222 else
9223 ac_func_search_save_LIBS=$LIBS
9224 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9225 /* end confdefs.h. */
9227 /* Override any GCC internal prototype to avoid an error.
9228 Use char because int might match the return type of a GCC
9229 builtin and then its argument prototype would still apply. */
9230 #ifdef __cplusplus
9231 extern "C"
9232 #endif
9233 char kstat_open ();
9235 main ()
9237 return kstat_open ();
9239 return 0;
9241 _ACEOF
9242 for ac_lib in '' kstat; do
9243 if test -z "$ac_lib"; then
9244 ac_res="none required"
9245 else
9246 ac_res=-l$ac_lib
9247 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
9249 if ac_fn_c_try_link "$LINENO"; then :
9250 ac_cv_search_kstat_open=$ac_res
9252 rm -f core conftest.err conftest.$ac_objext \
9253 conftest$ac_exeext
9254 if test "${ac_cv_search_kstat_open+set}" = set; then :
9255 break
9257 done
9258 if test "${ac_cv_search_kstat_open+set}" = set; then :
9260 else
9261 ac_cv_search_kstat_open=no
9263 rm conftest.$ac_ext
9264 LIBS=$ac_func_search_save_LIBS
9266 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_kstat_open" >&5
9267 $as_echo "$ac_cv_search_kstat_open" >&6; }
9268 ac_res=$ac_cv_search_kstat_open
9269 if test "$ac_res" != no; then :
9270 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
9274 EXTRA_GCC_LIBS="$LIBS"
9275 LIBS="$save_LIBS"
9278 # Some systems put ldexp and frexp in libm instead of libc; assume
9279 # they're both in the same place. jcf-dump needs them.
9280 save_LIBS="$LIBS"
9281 LIBS=
9282 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing ldexp" >&5
9283 $as_echo_n "checking for library containing ldexp... " >&6; }
9284 if test "${ac_cv_search_ldexp+set}" = set; then :
9285 $as_echo_n "(cached) " >&6
9286 else
9287 ac_func_search_save_LIBS=$LIBS
9288 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9289 /* end confdefs.h. */
9291 /* Override any GCC internal prototype to avoid an error.
9292 Use char because int might match the return type of a GCC
9293 builtin and then its argument prototype would still apply. */
9294 #ifdef __cplusplus
9295 extern "C"
9296 #endif
9297 char ldexp ();
9299 main ()
9301 return ldexp ();
9303 return 0;
9305 _ACEOF
9306 for ac_lib in '' m; do
9307 if test -z "$ac_lib"; then
9308 ac_res="none required"
9309 else
9310 ac_res=-l$ac_lib
9311 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
9313 if ac_fn_c_try_link "$LINENO"; then :
9314 ac_cv_search_ldexp=$ac_res
9316 rm -f core conftest.err conftest.$ac_objext \
9317 conftest$ac_exeext
9318 if test "${ac_cv_search_ldexp+set}" = set; then :
9319 break
9321 done
9322 if test "${ac_cv_search_ldexp+set}" = set; then :
9324 else
9325 ac_cv_search_ldexp=no
9327 rm conftest.$ac_ext
9328 LIBS=$ac_func_search_save_LIBS
9330 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_ldexp" >&5
9331 $as_echo "$ac_cv_search_ldexp" >&6; }
9332 ac_res=$ac_cv_search_ldexp
9333 if test "$ac_res" != no; then :
9334 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
9338 LDEXP_LIB="$LIBS"
9339 LIBS="$save_LIBS"
9342 # Use <inttypes.h> only if it exists,
9343 # doesn't clash with <sys/types.h>, declares intmax_t and defines
9344 # PRId64
9345 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for inttypes.h" >&5
9346 $as_echo_n "checking for inttypes.h... " >&6; }
9347 if test "${gcc_cv_header_inttypes_h+set}" = set; then :
9348 $as_echo_n "(cached) " >&6
9349 else
9350 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9351 /* end confdefs.h. */
9352 #define __STDC_FORMAT_MACROS
9353 #include <sys/types.h>
9354 #include <inttypes.h>
9356 main ()
9358 intmax_t i = -1;
9359 #ifndef PRId64
9360 choke me
9361 #endif
9363 return 0;
9365 _ACEOF
9366 if ac_fn_c_try_compile "$LINENO"; then :
9367 gcc_cv_header_inttypes_h=yes
9368 else
9369 gcc_cv_header_inttypes_h=no
9371 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9374 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_header_inttypes_h" >&5
9375 $as_echo "$gcc_cv_header_inttypes_h" >&6; }
9376 if test $gcc_cv_header_inttypes_h = yes; then
9378 $as_echo "#define HAVE_INTTYPES_H 1" >>confdefs.h
9384 for ac_func in times clock kill getrlimit setrlimit atoll atoq \
9385 popen sysconf strsignal getrusage nl_langinfo \
9386 gettimeofday mbstowcs wcswidth mmap setlocale \
9387 clearerr_unlocked feof_unlocked ferror_unlocked fflush_unlocked fgetc_unlocked fgets_unlocked fileno_unlocked fprintf_unlocked fputc_unlocked fputs_unlocked fread_unlocked fwrite_unlocked getchar_unlocked getc_unlocked putchar_unlocked putc_unlocked madvise
9388 do :
9389 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
9390 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
9391 eval as_val=\$$as_ac_var
9392 if test "x$as_val" = x""yes; then :
9393 cat >>confdefs.h <<_ACEOF
9394 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
9395 _ACEOF
9398 done
9401 if test x$ac_cv_func_mbstowcs = xyes; then
9402 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether mbstowcs works" >&5
9403 $as_echo_n "checking whether mbstowcs works... " >&6; }
9404 if test "${gcc_cv_func_mbstowcs_works+set}" = set; then :
9405 $as_echo_n "(cached) " >&6
9406 else
9407 if test "$cross_compiling" = yes; then :
9408 gcc_cv_func_mbstowcs_works=yes
9409 else
9410 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9411 /* end confdefs.h. */
9412 #include <stdlib.h>
9413 int main()
9415 mbstowcs(0, "", 0);
9416 return 0;
9418 _ACEOF
9419 if ac_fn_c_try_run "$LINENO"; then :
9420 gcc_cv_func_mbstowcs_works=yes
9421 else
9422 gcc_cv_func_mbstowcs_works=no
9424 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
9425 conftest.$ac_objext conftest.beam conftest.$ac_ext
9429 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_func_mbstowcs_works" >&5
9430 $as_echo "$gcc_cv_func_mbstowcs_works" >&6; }
9431 if test x$gcc_cv_func_mbstowcs_works = xyes; then
9433 $as_echo "#define HAVE_WORKING_MBSTOWCS 1" >>confdefs.h
9438 ac_fn_c_check_type "$LINENO" "ssize_t" "ac_cv_type_ssize_t" "$ac_includes_default"
9439 if test "x$ac_cv_type_ssize_t" = x""yes; then :
9441 else
9443 cat >>confdefs.h <<_ACEOF
9444 #define ssize_t int
9445 _ACEOF
9449 ac_fn_c_check_type "$LINENO" "caddr_t" "ac_cv_type_caddr_t" "$ac_includes_default"
9450 if test "x$ac_cv_type_caddr_t" = x""yes; then :
9452 else
9454 cat >>confdefs.h <<_ACEOF
9455 #define caddr_t char *
9456 _ACEOF
9462 ac_fn_c_check_header_preproc "$LINENO" "sys/mman.h" "ac_cv_header_sys_mman_h"
9463 if test "x$ac_cv_header_sys_mman_h" = x""yes; then :
9464 gcc_header_sys_mman_h=yes
9465 else
9466 gcc_header_sys_mman_h=no
9469 ac_fn_c_check_func "$LINENO" "mmap" "ac_cv_func_mmap"
9470 if test "x$ac_cv_func_mmap" = x""yes; then :
9471 gcc_func_mmap=yes
9472 else
9473 gcc_func_mmap=no
9476 if test "$gcc_header_sys_mman_h" != yes \
9477 || test "$gcc_func_mmap" != yes; then
9478 gcc_cv_func_mmap_file=no
9479 gcc_cv_func_mmap_dev_zero=no
9480 gcc_cv_func_mmap_anon=no
9481 else
9482 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether read-only mmap of a plain file works" >&5
9483 $as_echo_n "checking whether read-only mmap of a plain file works... " >&6; }
9484 if test "${gcc_cv_func_mmap_file+set}" = set; then :
9485 $as_echo_n "(cached) " >&6
9486 else
9487 # Add a system to this blacklist if
9488 # mmap(0, stat_size, PROT_READ, MAP_PRIVATE, fd, 0) doesn't return a
9489 # memory area containing the same data that you'd get if you applied
9490 # read() to the same fd. The only system known to have a problem here
9491 # is VMS, where text files have record structure.
9492 case "$host_os" in
9493 *vms* | ultrix*)
9494 gcc_cv_func_mmap_file=no ;;
9496 gcc_cv_func_mmap_file=yes;;
9497 esac
9499 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_func_mmap_file" >&5
9500 $as_echo "$gcc_cv_func_mmap_file" >&6; }
9501 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether mmap from /dev/zero works" >&5
9502 $as_echo_n "checking whether mmap from /dev/zero works... " >&6; }
9503 if test "${gcc_cv_func_mmap_dev_zero+set}" = set; then :
9504 $as_echo_n "(cached) " >&6
9505 else
9506 # Add a system to this blacklist if it has mmap() but /dev/zero
9507 # does not exist, or if mmapping /dev/zero does not give anonymous
9508 # zeroed pages with both the following properties:
9509 # 1. If you map N consecutive pages in with one call, and then
9510 # unmap any subset of those pages, the pages that were not
9511 # explicitly unmapped remain accessible.
9512 # 2. If you map two adjacent blocks of memory and then unmap them
9513 # both at once, they must both go away.
9514 # Systems known to be in this category are Windows (all variants),
9515 # VMS, and Darwin.
9516 case "$host_os" in
9517 *vms* | cygwin* | pe | mingw* | darwin* | ultrix* | hpux10* | hpux11.00)
9518 gcc_cv_func_mmap_dev_zero=no ;;
9520 gcc_cv_func_mmap_dev_zero=yes;;
9521 esac
9523 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_func_mmap_dev_zero" >&5
9524 $as_echo "$gcc_cv_func_mmap_dev_zero" >&6; }
9526 # Unlike /dev/zero, the MAP_ANON(YMOUS) defines can be probed for.
9527 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for MAP_ANON(YMOUS)" >&5
9528 $as_echo_n "checking for MAP_ANON(YMOUS)... " >&6; }
9529 if test "${gcc_cv_decl_map_anon+set}" = set; then :
9530 $as_echo_n "(cached) " >&6
9531 else
9532 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9533 /* end confdefs.h. */
9534 #include <sys/types.h>
9535 #include <sys/mman.h>
9536 #include <unistd.h>
9538 #ifndef MAP_ANONYMOUS
9539 #define MAP_ANONYMOUS MAP_ANON
9540 #endif
9543 main ()
9545 int n = MAP_ANONYMOUS;
9547 return 0;
9549 _ACEOF
9550 if ac_fn_c_try_compile "$LINENO"; then :
9551 gcc_cv_decl_map_anon=yes
9552 else
9553 gcc_cv_decl_map_anon=no
9555 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9557 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_decl_map_anon" >&5
9558 $as_echo "$gcc_cv_decl_map_anon" >&6; }
9560 if test $gcc_cv_decl_map_anon = no; then
9561 gcc_cv_func_mmap_anon=no
9562 else
9563 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether mmap with MAP_ANON(YMOUS) works" >&5
9564 $as_echo_n "checking whether mmap with MAP_ANON(YMOUS) works... " >&6; }
9565 if test "${gcc_cv_func_mmap_anon+set}" = set; then :
9566 $as_echo_n "(cached) " >&6
9567 else
9568 # Add a system to this blacklist if it has mmap() and MAP_ANON or
9569 # MAP_ANONYMOUS, but using mmap(..., MAP_PRIVATE|MAP_ANONYMOUS, -1, 0)
9570 # doesn't give anonymous zeroed pages with the same properties listed
9571 # above for use of /dev/zero.
9572 # Systems known to be in this category are Windows, VMS, and SCO Unix.
9573 case "$host_os" in
9574 *vms* | cygwin* | pe | mingw* | sco* | udk* )
9575 gcc_cv_func_mmap_anon=no ;;
9577 gcc_cv_func_mmap_anon=yes;;
9578 esac
9580 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_func_mmap_anon" >&5
9581 $as_echo "$gcc_cv_func_mmap_anon" >&6; }
9585 if test $gcc_cv_func_mmap_file = yes; then
9587 $as_echo "#define HAVE_MMAP_FILE 1" >>confdefs.h
9590 if test $gcc_cv_func_mmap_dev_zero = yes; then
9592 $as_echo "#define HAVE_MMAP_DEV_ZERO 1" >>confdefs.h
9595 if test $gcc_cv_func_mmap_anon = yes; then
9597 $as_echo "#define HAVE_MMAP_ANON 1" >>confdefs.h
9602 case "${host}" in
9603 *-*-*vms*)
9604 # Under VMS, vfork works very differently than on Unix. The standard test
9605 # won't work, and it isn't easily adaptable. It makes more sense to
9606 # just force it.
9607 ac_cv_func_vfork_works=yes
9609 esac
9610 ac_fn_c_check_type "$LINENO" "pid_t" "ac_cv_type_pid_t" "$ac_includes_default"
9611 if test "x$ac_cv_type_pid_t" = x""yes; then :
9613 else
9615 cat >>confdefs.h <<_ACEOF
9616 #define pid_t int
9617 _ACEOF
9621 for ac_header in vfork.h
9622 do :
9623 ac_fn_c_check_header_preproc "$LINENO" "vfork.h" "ac_cv_header_vfork_h"
9624 if test "x$ac_cv_header_vfork_h" = x""yes; then :
9625 cat >>confdefs.h <<_ACEOF
9626 #define HAVE_VFORK_H 1
9627 _ACEOF
9630 done
9632 for ac_func in fork vfork
9633 do :
9634 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
9635 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
9636 eval as_val=\$$as_ac_var
9637 if test "x$as_val" = x""yes; then :
9638 cat >>confdefs.h <<_ACEOF
9639 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
9640 _ACEOF
9643 done
9645 if test "x$ac_cv_func_fork" = xyes; then
9646 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working fork" >&5
9647 $as_echo_n "checking for working fork... " >&6; }
9648 if test "${ac_cv_func_fork_works+set}" = set; then :
9649 $as_echo_n "(cached) " >&6
9650 else
9651 if test "$cross_compiling" = yes; then :
9652 ac_cv_func_fork_works=cross
9653 else
9654 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9655 /* end confdefs.h. */
9656 $ac_includes_default
9658 main ()
9661 /* By Ruediger Kuhlmann. */
9662 return fork () < 0;
9665 return 0;
9667 _ACEOF
9668 if ac_fn_c_try_run "$LINENO"; then :
9669 ac_cv_func_fork_works=yes
9670 else
9671 ac_cv_func_fork_works=no
9673 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
9674 conftest.$ac_objext conftest.beam conftest.$ac_ext
9678 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_fork_works" >&5
9679 $as_echo "$ac_cv_func_fork_works" >&6; }
9681 else
9682 ac_cv_func_fork_works=$ac_cv_func_fork
9684 if test "x$ac_cv_func_fork_works" = xcross; then
9685 case $host in
9686 *-*-amigaos* | *-*-msdosdjgpp*)
9687 # Override, as these systems have only a dummy fork() stub
9688 ac_cv_func_fork_works=no
9691 ac_cv_func_fork_works=yes
9693 esac
9694 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: result $ac_cv_func_fork_works guessed because of cross compilation" >&5
9695 $as_echo "$as_me: WARNING: result $ac_cv_func_fork_works guessed because of cross compilation" >&2;}
9697 ac_cv_func_vfork_works=$ac_cv_func_vfork
9698 if test "x$ac_cv_func_vfork" = xyes; then
9699 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working vfork" >&5
9700 $as_echo_n "checking for working vfork... " >&6; }
9701 if test "${ac_cv_func_vfork_works+set}" = set; then :
9702 $as_echo_n "(cached) " >&6
9703 else
9704 if test "$cross_compiling" = yes; then :
9705 ac_cv_func_vfork_works=cross
9706 else
9707 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9708 /* end confdefs.h. */
9709 /* Thanks to Paul Eggert for this test. */
9710 $ac_includes_default
9711 #include <sys/wait.h>
9712 #ifdef HAVE_VFORK_H
9713 # include <vfork.h>
9714 #endif
9715 /* On some sparc systems, changes by the child to local and incoming
9716 argument registers are propagated back to the parent. The compiler
9717 is told about this with #include <vfork.h>, but some compilers
9718 (e.g. gcc -O) don't grok <vfork.h>. Test for this by using a
9719 static variable whose address is put into a register that is
9720 clobbered by the vfork. */
9721 static void
9722 #ifdef __cplusplus
9723 sparc_address_test (int arg)
9724 # else
9725 sparc_address_test (arg) int arg;
9726 #endif
9728 static pid_t child;
9729 if (!child) {
9730 child = vfork ();
9731 if (child < 0) {
9732 perror ("vfork");
9733 _exit(2);
9735 if (!child) {
9736 arg = getpid();
9737 write(-1, "", 0);
9738 _exit (arg);
9744 main ()
9746 pid_t parent = getpid ();
9747 pid_t child;
9749 sparc_address_test (0);
9751 child = vfork ();
9753 if (child == 0) {
9754 /* Here is another test for sparc vfork register problems. This
9755 test uses lots of local variables, at least as many local
9756 variables as main has allocated so far including compiler
9757 temporaries. 4 locals are enough for gcc 1.40.3 on a Solaris
9758 4.1.3 sparc, but we use 8 to be safe. A buggy compiler should
9759 reuse the register of parent for one of the local variables,
9760 since it will think that parent can't possibly be used any more
9761 in this routine. Assigning to the local variable will thus
9762 munge parent in the parent process. */
9763 pid_t
9764 p = getpid(), p1 = getpid(), p2 = getpid(), p3 = getpid(),
9765 p4 = getpid(), p5 = getpid(), p6 = getpid(), p7 = getpid();
9766 /* Convince the compiler that p..p7 are live; otherwise, it might
9767 use the same hardware register for all 8 local variables. */
9768 if (p != p1 || p != p2 || p != p3 || p != p4
9769 || p != p5 || p != p6 || p != p7)
9770 _exit(1);
9772 /* On some systems (e.g. IRIX 3.3), vfork doesn't separate parent
9773 from child file descriptors. If the child closes a descriptor
9774 before it execs or exits, this munges the parent's descriptor
9775 as well. Test for this by closing stdout in the child. */
9776 _exit(close(fileno(stdout)) != 0);
9777 } else {
9778 int status;
9779 struct stat st;
9781 while (wait(&status) != child)
9783 return (
9784 /* Was there some problem with vforking? */
9785 child < 0
9787 /* Did the child fail? (This shouldn't happen.) */
9788 || status
9790 /* Did the vfork/compiler bug occur? */
9791 || parent != getpid()
9793 /* Did the file descriptor bug occur? */
9794 || fstat(fileno(stdout), &st) != 0
9798 _ACEOF
9799 if ac_fn_c_try_run "$LINENO"; then :
9800 ac_cv_func_vfork_works=yes
9801 else
9802 ac_cv_func_vfork_works=no
9804 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
9805 conftest.$ac_objext conftest.beam conftest.$ac_ext
9809 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_vfork_works" >&5
9810 $as_echo "$ac_cv_func_vfork_works" >&6; }
9813 if test "x$ac_cv_func_fork_works" = xcross; then
9814 ac_cv_func_vfork_works=$ac_cv_func_vfork
9815 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: result $ac_cv_func_vfork_works guessed because of cross compilation" >&5
9816 $as_echo "$as_me: WARNING: result $ac_cv_func_vfork_works guessed because of cross compilation" >&2;}
9819 if test "x$ac_cv_func_vfork_works" = xyes; then
9821 $as_echo "#define HAVE_WORKING_VFORK 1" >>confdefs.h
9823 else
9825 $as_echo "#define vfork fork" >>confdefs.h
9828 if test "x$ac_cv_func_fork_works" = xyes; then
9830 $as_echo "#define HAVE_WORKING_FORK 1" >>confdefs.h
9835 # g++ on Solaris 10+ defines _XOPEN_SOURCE=600, which exposes a different
9836 # iconv() prototype.
9837 ac_ext=cpp
9838 ac_cpp='$CXXCPP $CPPFLAGS'
9839 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
9840 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
9841 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
9844 if test "X$prefix" = "XNONE"; then
9845 acl_final_prefix="$ac_default_prefix"
9846 else
9847 acl_final_prefix="$prefix"
9849 if test "X$exec_prefix" = "XNONE"; then
9850 acl_final_exec_prefix='${prefix}'
9851 else
9852 acl_final_exec_prefix="$exec_prefix"
9854 acl_save_prefix="$prefix"
9855 prefix="$acl_final_prefix"
9856 eval acl_final_exec_prefix=\"$acl_final_exec_prefix\"
9857 prefix="$acl_save_prefix"
9860 # Check whether --with-gnu-ld was given.
9861 if test "${with_gnu_ld+set}" = set; then :
9862 withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
9863 else
9864 with_gnu_ld=no
9867 # Prepare PATH_SEPARATOR.
9868 # The user is always right.
9869 if test "${PATH_SEPARATOR+set}" != set; then
9870 echo "#! /bin/sh" >conf$$.sh
9871 echo "exit 0" >>conf$$.sh
9872 chmod +x conf$$.sh
9873 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
9874 PATH_SEPARATOR=';'
9875 else
9876 PATH_SEPARATOR=:
9878 rm -f conf$$.sh
9880 ac_prog=ld
9881 if test "$GCC" = yes; then
9882 # Check if gcc -print-prog-name=ld gives a path.
9883 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by GCC" >&5
9884 $as_echo_n "checking for ld used by GCC... " >&6; }
9885 case $host in
9886 *-*-mingw*)
9887 # gcc leaves a trailing carriage return which upsets mingw
9888 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
9890 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
9891 esac
9892 case $ac_prog in
9893 # Accept absolute paths.
9894 [\\/]* | [A-Za-z]:[\\/]*)
9895 re_direlt='/[^/][^/]*/\.\./'
9896 # Canonicalize the path of ld
9897 ac_prog=`echo $ac_prog| sed 's%\\\\%/%g'`
9898 while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
9899 ac_prog=`echo $ac_prog| sed "s%$re_direlt%/%"`
9900 done
9901 test -z "$LD" && LD="$ac_prog"
9904 # If it fails, then pretend we aren't using GCC.
9905 ac_prog=ld
9908 # If it is relative, then search for the first ld in PATH.
9909 with_gnu_ld=unknown
9911 esac
9912 elif test "$with_gnu_ld" = yes; then
9913 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
9914 $as_echo_n "checking for GNU ld... " >&6; }
9915 else
9916 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
9917 $as_echo_n "checking for non-GNU ld... " >&6; }
9919 if test "${acl_cv_path_LD+set}" = set; then :
9920 $as_echo_n "(cached) " >&6
9921 else
9922 if test -z "$LD"; then
9923 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}${PATH_SEPARATOR-:}"
9924 for ac_dir in $PATH; do
9925 test -z "$ac_dir" && ac_dir=.
9926 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
9927 acl_cv_path_LD="$ac_dir/$ac_prog"
9928 # Check to see if the program is GNU ld. I'd rather use --version,
9929 # but apparently some GNU ld's only accept -v.
9930 # Break only if it was the GNU/non-GNU ld that we prefer.
9931 if "$acl_cv_path_LD" -v 2>&1 < /dev/null | egrep '(GNU|with BFD)' > /dev/null; then
9932 test "$with_gnu_ld" != no && break
9933 else
9934 test "$with_gnu_ld" != yes && break
9937 done
9938 IFS="$ac_save_ifs"
9939 else
9940 acl_cv_path_LD="$LD" # Let the user override the test with a path.
9944 LD="$acl_cv_path_LD"
9945 if test -n "$LD"; then
9946 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
9947 $as_echo "$LD" >&6; }
9948 else
9949 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9950 $as_echo "no" >&6; }
9952 test -z "$LD" && as_fn_error "no acceptable ld found in \$PATH" "$LINENO" 5
9953 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
9954 $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
9955 if test "${acl_cv_prog_gnu_ld+set}" = set; then :
9956 $as_echo_n "(cached) " >&6
9957 else
9958 # I'd rather use --version here, but apparently some GNU ld's only accept -v.
9959 if $LD -v 2>&1 </dev/null | egrep '(GNU|with BFD)' 1>&5; then
9960 acl_cv_prog_gnu_ld=yes
9961 else
9962 acl_cv_prog_gnu_ld=no
9965 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $acl_cv_prog_gnu_ld" >&5
9966 $as_echo "$acl_cv_prog_gnu_ld" >&6; }
9967 with_gnu_ld=$acl_cv_prog_gnu_ld
9971 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shared library run path origin" >&5
9972 $as_echo_n "checking for shared library run path origin... " >&6; }
9973 if test "${acl_cv_rpath+set}" = set; then :
9974 $as_echo_n "(cached) " >&6
9975 else
9977 CC="$CC" GCC="$GCC" LDFLAGS="$LDFLAGS" LD="$LD" with_gnu_ld="$with_gnu_ld" \
9978 ${CONFIG_SHELL-/bin/sh} "$ac_aux_dir/config.rpath" "$host" > conftest.sh
9979 . ./conftest.sh
9980 rm -f ./conftest.sh
9981 acl_cv_rpath=done
9984 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $acl_cv_rpath" >&5
9985 $as_echo "$acl_cv_rpath" >&6; }
9986 wl="$acl_cv_wl"
9987 libext="$acl_cv_libext"
9988 shlibext="$acl_cv_shlibext"
9989 hardcode_libdir_flag_spec="$acl_cv_hardcode_libdir_flag_spec"
9990 hardcode_libdir_separator="$acl_cv_hardcode_libdir_separator"
9991 hardcode_direct="$acl_cv_hardcode_direct"
9992 hardcode_minus_L="$acl_cv_hardcode_minus_L"
9993 # Check whether --enable-rpath was given.
9994 if test "${enable_rpath+set}" = set; then :
9995 enableval=$enable_rpath; :
9996 else
9997 enable_rpath=yes
10007 use_additional=yes
10009 acl_save_prefix="$prefix"
10010 prefix="$acl_final_prefix"
10011 acl_save_exec_prefix="$exec_prefix"
10012 exec_prefix="$acl_final_exec_prefix"
10014 eval additional_includedir=\"$includedir\"
10015 eval additional_libdir=\"$libdir\"
10017 exec_prefix="$acl_save_exec_prefix"
10018 prefix="$acl_save_prefix"
10021 # Check whether --with-libiconv-prefix was given.
10022 if test "${with_libiconv_prefix+set}" = set; then :
10023 withval=$with_libiconv_prefix;
10024 if test "X$withval" = "Xno"; then
10025 use_additional=no
10026 else
10027 if test "X$withval" = "X"; then
10029 acl_save_prefix="$prefix"
10030 prefix="$acl_final_prefix"
10031 acl_save_exec_prefix="$exec_prefix"
10032 exec_prefix="$acl_final_exec_prefix"
10034 eval additional_includedir=\"$includedir\"
10035 eval additional_libdir=\"$libdir\"
10037 exec_prefix="$acl_save_exec_prefix"
10038 prefix="$acl_save_prefix"
10040 else
10041 additional_includedir="$withval/include"
10042 additional_libdir="$withval/lib"
10048 LIBICONV=
10049 LTLIBICONV=
10050 INCICONV=
10051 rpathdirs=
10052 ltrpathdirs=
10053 names_already_handled=
10054 names_next_round='iconv '
10055 while test -n "$names_next_round"; do
10056 names_this_round="$names_next_round"
10057 names_next_round=
10058 for name in $names_this_round; do
10059 already_handled=
10060 for n in $names_already_handled; do
10061 if test "$n" = "$name"; then
10062 already_handled=yes
10063 break
10065 done
10066 if test -z "$already_handled"; then
10067 names_already_handled="$names_already_handled $name"
10068 uppername=`echo "$name" | sed -e 'y|abcdefghijklmnopqrstuvwxyz./-|ABCDEFGHIJKLMNOPQRSTUVWXYZ___|'`
10069 eval value=\"\$HAVE_LIB$uppername\"
10070 if test -n "$value"; then
10071 if test "$value" = yes; then
10072 eval value=\"\$LIB$uppername\"
10073 test -z "$value" || LIBICONV="${LIBICONV}${LIBICONV:+ }$value"
10074 eval value=\"\$LTLIB$uppername\"
10075 test -z "$value" || LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }$value"
10076 else
10079 else
10080 found_dir=
10081 found_la=
10082 found_so=
10083 found_a=
10084 if test $use_additional = yes; then
10085 if test -n "$shlibext" && test -f "$additional_libdir/lib$name.$shlibext"; then
10086 found_dir="$additional_libdir"
10087 found_so="$additional_libdir/lib$name.$shlibext"
10088 if test -f "$additional_libdir/lib$name.la"; then
10089 found_la="$additional_libdir/lib$name.la"
10091 else
10092 if test -f "$additional_libdir/lib$name.$libext"; then
10093 found_dir="$additional_libdir"
10094 found_a="$additional_libdir/lib$name.$libext"
10095 if test -f "$additional_libdir/lib$name.la"; then
10096 found_la="$additional_libdir/lib$name.la"
10101 if test "X$found_dir" = "X"; then
10102 for x in $LDFLAGS $LTLIBICONV; do
10104 acl_save_prefix="$prefix"
10105 prefix="$acl_final_prefix"
10106 acl_save_exec_prefix="$exec_prefix"
10107 exec_prefix="$acl_final_exec_prefix"
10108 eval x=\"$x\"
10109 exec_prefix="$acl_save_exec_prefix"
10110 prefix="$acl_save_prefix"
10112 case "$x" in
10113 -L*)
10114 dir=`echo "X$x" | sed -e 's/^X-L//'`
10115 if test -n "$shlibext" && test -f "$dir/lib$name.$shlibext"; then
10116 found_dir="$dir"
10117 found_so="$dir/lib$name.$shlibext"
10118 if test -f "$dir/lib$name.la"; then
10119 found_la="$dir/lib$name.la"
10121 else
10122 if test -f "$dir/lib$name.$libext"; then
10123 found_dir="$dir"
10124 found_a="$dir/lib$name.$libext"
10125 if test -f "$dir/lib$name.la"; then
10126 found_la="$dir/lib$name.la"
10131 esac
10132 if test "X$found_dir" != "X"; then
10133 break
10135 done
10137 if test "X$found_dir" != "X"; then
10138 LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-L$found_dir -l$name"
10139 if test "X$found_so" != "X"; then
10140 if test "$enable_rpath" = no || test "X$found_dir" = "X/usr/lib"; then
10141 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
10142 else
10143 haveit=
10144 for x in $ltrpathdirs; do
10145 if test "X$x" = "X$found_dir"; then
10146 haveit=yes
10147 break
10149 done
10150 if test -z "$haveit"; then
10151 ltrpathdirs="$ltrpathdirs $found_dir"
10153 if test "$hardcode_direct" = yes; then
10154 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
10155 else
10156 if test -n "$hardcode_libdir_flag_spec" && test "$hardcode_minus_L" = no; then
10157 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
10158 haveit=
10159 for x in $rpathdirs; do
10160 if test "X$x" = "X$found_dir"; then
10161 haveit=yes
10162 break
10164 done
10165 if test -z "$haveit"; then
10166 rpathdirs="$rpathdirs $found_dir"
10168 else
10169 haveit=
10170 for x in $LDFLAGS $LIBICONV; do
10172 acl_save_prefix="$prefix"
10173 prefix="$acl_final_prefix"
10174 acl_save_exec_prefix="$exec_prefix"
10175 exec_prefix="$acl_final_exec_prefix"
10176 eval x=\"$x\"
10177 exec_prefix="$acl_save_exec_prefix"
10178 prefix="$acl_save_prefix"
10180 if test "X$x" = "X-L$found_dir"; then
10181 haveit=yes
10182 break
10184 done
10185 if test -z "$haveit"; then
10186 LIBICONV="${LIBICONV}${LIBICONV:+ }-L$found_dir"
10188 if test "$hardcode_minus_L" != no; then
10189 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
10190 else
10191 LIBICONV="${LIBICONV}${LIBICONV:+ }-l$name"
10196 else
10197 if test "X$found_a" != "X"; then
10198 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_a"
10199 else
10200 LIBICONV="${LIBICONV}${LIBICONV:+ }-L$found_dir -l$name"
10203 additional_includedir=
10204 case "$found_dir" in
10205 */lib | */lib/)
10206 basedir=`echo "X$found_dir" | sed -e 's,^X,,' -e 's,/lib/*$,,'`
10207 additional_includedir="$basedir/include"
10209 esac
10210 if test "X$additional_includedir" != "X"; then
10211 if test "X$additional_includedir" != "X/usr/include"; then
10212 haveit=
10213 if test "X$additional_includedir" = "X/usr/local/include"; then
10214 if test -n "$GCC"; then
10215 case $host_os in
10216 linux*) haveit=yes;;
10217 esac
10220 if test -z "$haveit"; then
10221 for x in $CPPFLAGS $INCICONV; do
10223 acl_save_prefix="$prefix"
10224 prefix="$acl_final_prefix"
10225 acl_save_exec_prefix="$exec_prefix"
10226 exec_prefix="$acl_final_exec_prefix"
10227 eval x=\"$x\"
10228 exec_prefix="$acl_save_exec_prefix"
10229 prefix="$acl_save_prefix"
10231 if test "X$x" = "X-I$additional_includedir"; then
10232 haveit=yes
10233 break
10235 done
10236 if test -z "$haveit"; then
10237 if test -d "$additional_includedir"; then
10238 INCICONV="${INCICONV}${INCICONV:+ }-I$additional_includedir"
10244 if test -n "$found_la"; then
10245 save_libdir="$libdir"
10246 case "$found_la" in
10247 */* | *\\*) . "$found_la" ;;
10248 *) . "./$found_la" ;;
10249 esac
10250 libdir="$save_libdir"
10251 for dep in $dependency_libs; do
10252 case "$dep" in
10253 -L*)
10254 additional_libdir=`echo "X$dep" | sed -e 's/^X-L//'`
10255 if test "X$additional_libdir" != "X/usr/lib"; then
10256 haveit=
10257 if test "X$additional_libdir" = "X/usr/local/lib"; then
10258 if test -n "$GCC"; then
10259 case $host_os in
10260 linux*) haveit=yes;;
10261 esac
10264 if test -z "$haveit"; then
10265 haveit=
10266 for x in $LDFLAGS $LIBICONV; do
10268 acl_save_prefix="$prefix"
10269 prefix="$acl_final_prefix"
10270 acl_save_exec_prefix="$exec_prefix"
10271 exec_prefix="$acl_final_exec_prefix"
10272 eval x=\"$x\"
10273 exec_prefix="$acl_save_exec_prefix"
10274 prefix="$acl_save_prefix"
10276 if test "X$x" = "X-L$additional_libdir"; then
10277 haveit=yes
10278 break
10280 done
10281 if test -z "$haveit"; then
10282 if test -d "$additional_libdir"; then
10283 LIBICONV="${LIBICONV}${LIBICONV:+ }-L$additional_libdir"
10286 haveit=
10287 for x in $LDFLAGS $LTLIBICONV; do
10289 acl_save_prefix="$prefix"
10290 prefix="$acl_final_prefix"
10291 acl_save_exec_prefix="$exec_prefix"
10292 exec_prefix="$acl_final_exec_prefix"
10293 eval x=\"$x\"
10294 exec_prefix="$acl_save_exec_prefix"
10295 prefix="$acl_save_prefix"
10297 if test "X$x" = "X-L$additional_libdir"; then
10298 haveit=yes
10299 break
10301 done
10302 if test -z "$haveit"; then
10303 if test -d "$additional_libdir"; then
10304 LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-L$additional_libdir"
10310 -R*)
10311 dir=`echo "X$dep" | sed -e 's/^X-R//'`
10312 if test "$enable_rpath" != no; then
10313 haveit=
10314 for x in $rpathdirs; do
10315 if test "X$x" = "X$dir"; then
10316 haveit=yes
10317 break
10319 done
10320 if test -z "$haveit"; then
10321 rpathdirs="$rpathdirs $dir"
10323 haveit=
10324 for x in $ltrpathdirs; do
10325 if test "X$x" = "X$dir"; then
10326 haveit=yes
10327 break
10329 done
10330 if test -z "$haveit"; then
10331 ltrpathdirs="$ltrpathdirs $dir"
10335 -l*)
10336 names_next_round="$names_next_round "`echo "X$dep" | sed -e 's/^X-l//'`
10338 *.la)
10339 names_next_round="$names_next_round "`echo "X$dep" | sed -e 's,^X.*/,,' -e 's,^lib,,' -e 's,\.la$,,'`
10342 LIBICONV="${LIBICONV}${LIBICONV:+ }$dep"
10343 LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }$dep"
10345 esac
10346 done
10348 else
10349 LIBICONV="${LIBICONV}${LIBICONV:+ }-l$name"
10350 LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-l$name"
10354 done
10355 done
10356 if test "X$rpathdirs" != "X"; then
10357 if test -n "$hardcode_libdir_separator"; then
10358 alldirs=
10359 for found_dir in $rpathdirs; do
10360 alldirs="${alldirs}${alldirs:+$hardcode_libdir_separator}$found_dir"
10361 done
10362 acl_save_libdir="$libdir"
10363 libdir="$alldirs"
10364 eval flag=\"$hardcode_libdir_flag_spec\"
10365 libdir="$acl_save_libdir"
10366 LIBICONV="${LIBICONV}${LIBICONV:+ }$flag"
10367 else
10368 for found_dir in $rpathdirs; do
10369 acl_save_libdir="$libdir"
10370 libdir="$found_dir"
10371 eval flag=\"$hardcode_libdir_flag_spec\"
10372 libdir="$acl_save_libdir"
10373 LIBICONV="${LIBICONV}${LIBICONV:+ }$flag"
10374 done
10377 if test "X$ltrpathdirs" != "X"; then
10378 for found_dir in $ltrpathdirs; do
10379 LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-R$found_dir"
10380 done
10389 am_save_CPPFLAGS="$CPPFLAGS"
10391 for element in $INCICONV; do
10392 haveit=
10393 for x in $CPPFLAGS; do
10395 acl_save_prefix="$prefix"
10396 prefix="$acl_final_prefix"
10397 acl_save_exec_prefix="$exec_prefix"
10398 exec_prefix="$acl_final_exec_prefix"
10399 eval x=\"$x\"
10400 exec_prefix="$acl_save_exec_prefix"
10401 prefix="$acl_save_prefix"
10403 if test "X$x" = "X$element"; then
10404 haveit=yes
10405 break
10407 done
10408 if test -z "$haveit"; then
10409 CPPFLAGS="${CPPFLAGS}${CPPFLAGS:+ }$element"
10411 done
10414 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for iconv" >&5
10415 $as_echo_n "checking for iconv... " >&6; }
10416 if test "${am_cv_func_iconv+set}" = set; then :
10417 $as_echo_n "(cached) " >&6
10418 else
10420 am_cv_func_iconv="no, consider installing GNU libiconv"
10421 am_cv_lib_iconv=no
10422 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10423 /* end confdefs.h. */
10424 #include <stdlib.h>
10425 #include <iconv.h>
10427 main ()
10429 iconv_t cd = iconv_open("","");
10430 iconv(cd,NULL,NULL,NULL,NULL);
10431 iconv_close(cd);
10433 return 0;
10435 _ACEOF
10436 if ac_fn_cxx_try_link "$LINENO"; then :
10437 am_cv_func_iconv=yes
10439 rm -f core conftest.err conftest.$ac_objext \
10440 conftest$ac_exeext conftest.$ac_ext
10441 if test "$am_cv_func_iconv" != yes; then
10442 am_save_LIBS="$LIBS"
10443 LIBS="$LIBS $LIBICONV"
10444 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10445 /* end confdefs.h. */
10446 #include <stdlib.h>
10447 #include <iconv.h>
10449 main ()
10451 iconv_t cd = iconv_open("","");
10452 iconv(cd,NULL,NULL,NULL,NULL);
10453 iconv_close(cd);
10455 return 0;
10457 _ACEOF
10458 if ac_fn_cxx_try_link "$LINENO"; then :
10459 am_cv_lib_iconv=yes
10460 am_cv_func_iconv=yes
10462 rm -f core conftest.err conftest.$ac_objext \
10463 conftest$ac_exeext conftest.$ac_ext
10464 LIBS="$am_save_LIBS"
10468 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_func_iconv" >&5
10469 $as_echo "$am_cv_func_iconv" >&6; }
10470 if test "$am_cv_func_iconv" = yes; then
10472 $as_echo "#define HAVE_ICONV 1" >>confdefs.h
10475 if test "$am_cv_lib_iconv" = yes; then
10476 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to link with libiconv" >&5
10477 $as_echo_n "checking how to link with libiconv... " >&6; }
10478 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIBICONV" >&5
10479 $as_echo "$LIBICONV" >&6; }
10480 else
10481 CPPFLAGS="$am_save_CPPFLAGS"
10482 LIBICONV=
10483 LTLIBICONV=
10488 if test "$am_cv_func_iconv" = yes; then
10489 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for iconv declaration" >&5
10490 $as_echo_n "checking for iconv declaration... " >&6; }
10491 if test "${am_cv_proto_iconv+set}" = set; then :
10492 $as_echo_n "(cached) " >&6
10493 else
10495 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10496 /* end confdefs.h. */
10498 #include <stdlib.h>
10499 #include <iconv.h>
10500 extern
10501 #ifdef __cplusplus
10503 #endif
10504 #if defined(__STDC__) || defined(__cplusplus)
10505 size_t iconv (iconv_t cd, char * *inbuf, size_t *inbytesleft, char * *outbuf, size_t *outbytesleft);
10506 #else
10507 size_t iconv();
10508 #endif
10511 main ()
10515 return 0;
10517 _ACEOF
10518 if ac_fn_cxx_try_compile "$LINENO"; then :
10519 am_cv_proto_iconv_arg1=""
10520 else
10521 am_cv_proto_iconv_arg1="const"
10523 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10524 am_cv_proto_iconv="extern size_t iconv (iconv_t cd, $am_cv_proto_iconv_arg1 char * *inbuf, size_t *inbytesleft, char * *outbuf, size_t *outbytesleft);"
10527 am_cv_proto_iconv=`echo "$am_cv_proto_iconv" | tr -s ' ' | sed -e 's/( /(/'`
10528 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${ac_t:-
10529 }$am_cv_proto_iconv" >&5
10530 $as_echo "${ac_t:-
10531 }$am_cv_proto_iconv" >&6; }
10533 cat >>confdefs.h <<_ACEOF
10534 #define ICONV_CONST $am_cv_proto_iconv_arg1
10535 _ACEOF
10539 ac_ext=c
10540 ac_cpp='$CPP $CPPFLAGS'
10541 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
10542 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
10543 ac_compiler_gnu=$ac_cv_c_compiler_gnu
10546 # Until we have in-tree GNU iconv:
10547 LIBICONV_DEP=
10551 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for LC_MESSAGES" >&5
10552 $as_echo_n "checking for LC_MESSAGES... " >&6; }
10553 if test "${am_cv_val_LC_MESSAGES+set}" = set; then :
10554 $as_echo_n "(cached) " >&6
10555 else
10556 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10557 /* end confdefs.h. */
10558 #include <locale.h>
10560 main ()
10562 return LC_MESSAGES
10564 return 0;
10566 _ACEOF
10567 if ac_fn_c_try_link "$LINENO"; then :
10568 am_cv_val_LC_MESSAGES=yes
10569 else
10570 am_cv_val_LC_MESSAGES=no
10572 rm -f core conftest.err conftest.$ac_objext \
10573 conftest$ac_exeext conftest.$ac_ext
10575 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_val_LC_MESSAGES" >&5
10576 $as_echo "$am_cv_val_LC_MESSAGES" >&6; }
10577 if test $am_cv_val_LC_MESSAGES = yes; then
10579 $as_echo "#define HAVE_LC_MESSAGES 1" >>confdefs.h
10585 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for nl_langinfo and CODESET" >&5
10586 $as_echo_n "checking for nl_langinfo and CODESET... " >&6; }
10587 if test "${am_cv_langinfo_codeset+set}" = set; then :
10588 $as_echo_n "(cached) " >&6
10589 else
10590 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10591 /* end confdefs.h. */
10592 #include <langinfo.h>
10594 main ()
10596 char* cs = nl_langinfo(CODESET);
10598 return 0;
10600 _ACEOF
10601 if ac_fn_c_try_link "$LINENO"; then :
10602 am_cv_langinfo_codeset=yes
10603 else
10604 am_cv_langinfo_codeset=no
10606 rm -f core conftest.err conftest.$ac_objext \
10607 conftest$ac_exeext conftest.$ac_ext
10610 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_langinfo_codeset" >&5
10611 $as_echo "$am_cv_langinfo_codeset" >&6; }
10612 if test $am_cv_langinfo_codeset = yes; then
10614 $as_echo "#define HAVE_LANGINFO_CODESET 1" >>confdefs.h
10619 # We will need to find libiberty.h and ansidecl.h
10620 saved_CFLAGS="$CFLAGS"
10621 CFLAGS="$CFLAGS -I${srcdir} -I${srcdir}/../include $GMPINC"
10622 saved_CXXFLAGS="$CXXFLAGS"
10623 CXXFLAGS="$CXXFLAGS -I${srcdir} -I${srcdir}/../include $GMPINC"
10624 for ac_func in getenv atol asprintf sbrk abort atof getcwd getwd \
10625 stpcpy strnlen strsignal strstr strverscmp \
10626 strtol strtoul strtoll strtoull \
10627 errno snprintf vsnprintf vasprintf malloc realloc calloc \
10628 free basename getopt clock getpagesize ffs clearerr_unlocked feof_unlocked ferror_unlocked fflush_unlocked fgetc_unlocked fgets_unlocked fileno_unlocked fprintf_unlocked fputc_unlocked fputs_unlocked fread_unlocked fwrite_unlocked getchar_unlocked getc_unlocked putchar_unlocked putc_unlocked
10630 ac_tr_decl=`$as_echo "HAVE_DECL_$ac_func" | $as_tr_cpp`
10631 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $ac_func is declared" >&5
10632 $as_echo_n "checking whether $ac_func is declared... " >&6; }
10633 if { as_var=gcc_cv_have_decl_$ac_func; eval "test \"\${$as_var+set}\" = set"; }; then :
10634 $as_echo_n "(cached) " >&6
10635 else
10636 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10637 /* end confdefs.h. */
10638 #undef $ac_tr_decl
10639 #define $ac_tr_decl 1
10641 #include "ansidecl.h"
10642 #include "system.h"
10645 main ()
10647 #ifndef $ac_func
10648 char *(*pfn) = (char *(*)) $ac_func ;
10649 #endif
10651 return 0;
10653 _ACEOF
10654 if ac_fn_c_try_compile "$LINENO"; then :
10655 eval "gcc_cv_have_decl_$ac_func=yes"
10656 else
10657 eval "gcc_cv_have_decl_$ac_func=no"
10659 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10662 if eval "test \"`echo '$gcc_cv_have_decl_'$ac_func`\" = yes"; then
10663 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
10664 $as_echo "yes" >&6; } ; cat >>confdefs.h <<_ACEOF
10665 #define $ac_tr_decl 1
10666 _ACEOF
10668 else
10669 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10670 $as_echo "no" >&6; } ; cat >>confdefs.h <<_ACEOF
10671 #define $ac_tr_decl 0
10672 _ACEOF
10676 done
10679 for ac_func in getrlimit setrlimit getrusage
10681 ac_tr_decl=`$as_echo "HAVE_DECL_$ac_func" | $as_tr_cpp`
10682 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $ac_func is declared" >&5
10683 $as_echo_n "checking whether $ac_func is declared... " >&6; }
10684 if { as_var=gcc_cv_have_decl_$ac_func; eval "test \"\${$as_var+set}\" = set"; }; then :
10685 $as_echo_n "(cached) " >&6
10686 else
10687 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10688 /* end confdefs.h. */
10689 #undef $ac_tr_decl
10690 #define $ac_tr_decl 1
10692 #include "ansidecl.h"
10693 #include "system.h"
10694 #ifdef HAVE_SYS_RESOURCE_H
10695 #include <sys/resource.h>
10696 #endif
10700 main ()
10702 #ifndef $ac_func
10703 char *(*pfn) = (char *(*)) $ac_func ;
10704 #endif
10706 return 0;
10708 _ACEOF
10709 if ac_fn_c_try_compile "$LINENO"; then :
10710 eval "gcc_cv_have_decl_$ac_func=yes"
10711 else
10712 eval "gcc_cv_have_decl_$ac_func=no"
10714 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10717 if eval "test \"`echo '$gcc_cv_have_decl_'$ac_func`\" = yes"; then
10718 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
10719 $as_echo "yes" >&6; } ; cat >>confdefs.h <<_ACEOF
10720 #define $ac_tr_decl 1
10721 _ACEOF
10723 else
10724 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10725 $as_echo "no" >&6; } ; cat >>confdefs.h <<_ACEOF
10726 #define $ac_tr_decl 0
10727 _ACEOF
10731 done
10734 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10735 /* end confdefs.h. */
10737 #include "ansidecl.h"
10738 #include "system.h"
10739 #ifdef HAVE_SYS_RESOURCE_H
10740 #include <sys/resource.h>
10741 #endif
10744 main ()
10746 rlim_t l = 0;
10748 return 0;
10750 _ACEOF
10751 if ac_fn_c_try_compile "$LINENO"; then :
10753 else
10755 $as_echo "#define rlim_t long" >>confdefs.h
10758 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10760 # On AIX 5.2, <ldfcn.h> conflicts with <fcntl.h>, as both define incompatible
10761 # FREAD and FWRITE macros. Fortunately, for GCC's single usage of ldgetname
10762 # in collect2.c, <fcntl.h> isn't visible, but the configure test below needs
10763 # to undef these macros to get the correct value for HAVE_DECL_LDGETNAME.
10764 for ac_func in ldgetname
10766 ac_tr_decl=`$as_echo "HAVE_DECL_$ac_func" | $as_tr_cpp`
10767 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $ac_func is declared" >&5
10768 $as_echo_n "checking whether $ac_func is declared... " >&6; }
10769 if { as_var=gcc_cv_have_decl_$ac_func; eval "test \"\${$as_var+set}\" = set"; }; then :
10770 $as_echo_n "(cached) " >&6
10771 else
10772 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10773 /* end confdefs.h. */
10774 #undef $ac_tr_decl
10775 #define $ac_tr_decl 1
10777 #include "ansidecl.h"
10778 #include "system.h"
10779 #ifdef HAVE_LDFCN_H
10780 #undef FREAD
10781 #undef FWRITE
10782 #include <ldfcn.h>
10783 #endif
10787 main ()
10789 #ifndef $ac_func
10790 char *(*pfn) = (char *(*)) $ac_func ;
10791 #endif
10793 return 0;
10795 _ACEOF
10796 if ac_fn_c_try_compile "$LINENO"; then :
10797 eval "gcc_cv_have_decl_$ac_func=yes"
10798 else
10799 eval "gcc_cv_have_decl_$ac_func=no"
10801 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10804 if eval "test \"`echo '$gcc_cv_have_decl_'$ac_func`\" = yes"; then
10805 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
10806 $as_echo "yes" >&6; } ; cat >>confdefs.h <<_ACEOF
10807 #define $ac_tr_decl 1
10808 _ACEOF
10810 else
10811 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10812 $as_echo "no" >&6; } ; cat >>confdefs.h <<_ACEOF
10813 #define $ac_tr_decl 0
10814 _ACEOF
10818 done
10821 for ac_func in times
10823 ac_tr_decl=`$as_echo "HAVE_DECL_$ac_func" | $as_tr_cpp`
10824 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $ac_func is declared" >&5
10825 $as_echo_n "checking whether $ac_func is declared... " >&6; }
10826 if { as_var=gcc_cv_have_decl_$ac_func; eval "test \"\${$as_var+set}\" = set"; }; then :
10827 $as_echo_n "(cached) " >&6
10828 else
10829 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10830 /* end confdefs.h. */
10831 #undef $ac_tr_decl
10832 #define $ac_tr_decl 1
10834 #include "ansidecl.h"
10835 #include "system.h"
10836 #ifdef HAVE_SYS_TIMES_H
10837 #include <sys/times.h>
10838 #endif
10842 main ()
10844 #ifndef $ac_func
10845 char *(*pfn) = (char *(*)) $ac_func ;
10846 #endif
10848 return 0;
10850 _ACEOF
10851 if ac_fn_c_try_compile "$LINENO"; then :
10852 eval "gcc_cv_have_decl_$ac_func=yes"
10853 else
10854 eval "gcc_cv_have_decl_$ac_func=no"
10856 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10859 if eval "test \"`echo '$gcc_cv_have_decl_'$ac_func`\" = yes"; then
10860 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
10861 $as_echo "yes" >&6; } ; cat >>confdefs.h <<_ACEOF
10862 #define $ac_tr_decl 1
10863 _ACEOF
10865 else
10866 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10867 $as_echo "no" >&6; } ; cat >>confdefs.h <<_ACEOF
10868 #define $ac_tr_decl 0
10869 _ACEOF
10873 done
10876 for ac_func in sigaltstack
10878 ac_tr_decl=`$as_echo "HAVE_DECL_$ac_func" | $as_tr_cpp`
10879 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $ac_func is declared" >&5
10880 $as_echo_n "checking whether $ac_func is declared... " >&6; }
10881 if { as_var=gcc_cv_have_decl_$ac_func; eval "test \"\${$as_var+set}\" = set"; }; then :
10882 $as_echo_n "(cached) " >&6
10883 else
10884 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10885 /* end confdefs.h. */
10886 #undef $ac_tr_decl
10887 #define $ac_tr_decl 1
10889 #include "ansidecl.h"
10890 #include "system.h"
10891 #include <signal.h>
10895 main ()
10897 #ifndef $ac_func
10898 char *(*pfn) = (char *(*)) $ac_func ;
10899 #endif
10901 return 0;
10903 _ACEOF
10904 if ac_fn_c_try_compile "$LINENO"; then :
10905 eval "gcc_cv_have_decl_$ac_func=yes"
10906 else
10907 eval "gcc_cv_have_decl_$ac_func=no"
10909 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10912 if eval "test \"`echo '$gcc_cv_have_decl_'$ac_func`\" = yes"; then
10913 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
10914 $as_echo "yes" >&6; } ; cat >>confdefs.h <<_ACEOF
10915 #define $ac_tr_decl 1
10916 _ACEOF
10918 else
10919 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10920 $as_echo "no" >&6; } ; cat >>confdefs.h <<_ACEOF
10921 #define $ac_tr_decl 0
10922 _ACEOF
10926 done
10929 # g++ on Solaris 10+ defines _XOPEN_SOURCE=600, which hides the madvise()
10930 # prototype.
10931 ac_ext=cpp
10932 ac_cpp='$CXXCPP $CPPFLAGS'
10933 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
10934 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
10935 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
10937 for ac_func in madvise
10939 ac_tr_decl=`$as_echo "HAVE_DECL_$ac_func" | $as_tr_cpp`
10940 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $ac_func is declared" >&5
10941 $as_echo_n "checking whether $ac_func is declared... " >&6; }
10942 if { as_var=gcc_cv_have_decl_$ac_func; eval "test \"\${$as_var+set}\" = set"; }; then :
10943 $as_echo_n "(cached) " >&6
10944 else
10945 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10946 /* end confdefs.h. */
10947 #undef $ac_tr_decl
10948 #define $ac_tr_decl 1
10950 #include "ansidecl.h"
10951 #include "system.h"
10955 main ()
10957 #ifndef $ac_func
10958 char *(*pfn) = (char *(*)) $ac_func ;
10959 #endif
10961 return 0;
10963 _ACEOF
10964 if ac_fn_cxx_try_compile "$LINENO"; then :
10965 eval "gcc_cv_have_decl_$ac_func=yes"
10966 else
10967 eval "gcc_cv_have_decl_$ac_func=no"
10969 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10972 if eval "test \"`echo '$gcc_cv_have_decl_'$ac_func`\" = yes"; then
10973 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
10974 $as_echo "yes" >&6; } ; cat >>confdefs.h <<_ACEOF
10975 #define $ac_tr_decl 1
10976 _ACEOF
10978 else
10979 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10980 $as_echo "no" >&6; } ; cat >>confdefs.h <<_ACEOF
10981 #define $ac_tr_decl 0
10982 _ACEOF
10986 done
10988 ac_ext=c
10989 ac_cpp='$CPP $CPPFLAGS'
10990 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
10991 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
10992 ac_compiler_gnu=$ac_cv_c_compiler_gnu
10995 # More time-related stuff.
10996 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for struct tms" >&5
10997 $as_echo_n "checking for struct tms... " >&6; }
10998 if test "${ac_cv_struct_tms+set}" = set; then :
10999 $as_echo_n "(cached) " >&6
11000 else
11002 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11003 /* end confdefs.h. */
11005 #include "ansidecl.h"
11006 #include "system.h"
11007 #ifdef HAVE_SYS_TIMES_H
11008 #include <sys/times.h>
11009 #endif
11012 main ()
11014 struct tms tms;
11016 return 0;
11018 _ACEOF
11019 if ac_fn_c_try_compile "$LINENO"; then :
11020 ac_cv_struct_tms=yes
11021 else
11022 ac_cv_struct_tms=no
11024 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11026 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_struct_tms" >&5
11027 $as_echo "$ac_cv_struct_tms" >&6; }
11028 if test $ac_cv_struct_tms = yes; then
11030 $as_echo "#define HAVE_STRUCT_TMS 1" >>confdefs.h
11034 # use gcc_cv_* here because this doesn't match the behavior of AC_CHECK_TYPE.
11035 # revisit after autoconf 2.50.
11036 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for clock_t" >&5
11037 $as_echo_n "checking for clock_t... " >&6; }
11038 if test "${gcc_cv_type_clock_t+set}" = set; then :
11039 $as_echo_n "(cached) " >&6
11040 else
11042 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11043 /* end confdefs.h. */
11045 #include "ansidecl.h"
11046 #include "system.h"
11049 main ()
11051 clock_t x;
11053 return 0;
11055 _ACEOF
11056 if ac_fn_c_try_compile "$LINENO"; then :
11057 gcc_cv_type_clock_t=yes
11058 else
11059 gcc_cv_type_clock_t=no
11061 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11063 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_type_clock_t" >&5
11064 $as_echo "$gcc_cv_type_clock_t" >&6; }
11065 if test $gcc_cv_type_clock_t = yes; then
11067 $as_echo "#define HAVE_CLOCK_T 1" >>confdefs.h
11071 # Check if F_SETLKW is supported by fcntl.
11072 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for F_SETLKW" >&5
11073 $as_echo_n "checking for F_SETLKW... " >&6; }
11074 if test "${ac_cv_f_setlkw+set}" = set; then :
11075 $as_echo_n "(cached) " >&6
11076 else
11078 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11079 /* end confdefs.h. */
11081 #include <fcntl.h>
11083 main ()
11086 struct flock fl;
11087 fl.l_whence = 0;
11088 fl.l_start = 0;
11089 fl.l_len = 0;
11090 fl.l_pid = 0;
11091 return fcntl (1, F_SETLKW, &fl);
11093 return 0;
11095 _ACEOF
11096 if ac_fn_c_try_compile "$LINENO"; then :
11097 ac_cv_f_setlkw=yes
11098 else
11099 ac_cv_f_setlkw=no
11101 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11103 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_f_setlkw" >&5
11104 $as_echo "$ac_cv_f_setlkw" >&6; }
11105 if test $ac_cv_f_setlkw = yes; then
11107 $as_echo "#define HOST_HAS_F_SETLKW 1" >>confdefs.h
11111 # Restore CFLAGS, CXXFLAGS from before the gcc_AC_NEED_DECLARATIONS tests.
11112 CFLAGS="$saved_CFLAGS"
11113 CXXFLAGS="$saved_CXXFLAGS"
11115 # mkdir takes a single argument on some systems.
11116 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if mkdir takes one argument" >&5
11117 $as_echo_n "checking if mkdir takes one argument... " >&6; }
11118 if test "${gcc_cv_mkdir_takes_one_arg+set}" = set; then :
11119 $as_echo_n "(cached) " >&6
11120 else
11121 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11122 /* end confdefs.h. */
11124 #include <sys/types.h>
11125 #ifdef HAVE_SYS_STAT_H
11126 # include <sys/stat.h>
11127 #endif
11128 #ifdef HAVE_UNISTD_H
11129 # include <unistd.h>
11130 #endif
11131 #ifdef HAVE_DIRECT_H
11132 # include <direct.h>
11133 #endif
11135 main ()
11137 mkdir ("foo", 0);
11139 return 0;
11141 _ACEOF
11142 if ac_fn_c_try_compile "$LINENO"; then :
11143 gcc_cv_mkdir_takes_one_arg=no
11144 else
11145 gcc_cv_mkdir_takes_one_arg=yes
11147 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11149 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_mkdir_takes_one_arg" >&5
11150 $as_echo "$gcc_cv_mkdir_takes_one_arg" >&6; }
11151 if test $gcc_cv_mkdir_takes_one_arg = yes ; then
11153 $as_echo "#define MKDIR_TAKES_ONE_ARG 1" >>confdefs.h
11158 # File extensions
11159 manext='.1'
11160 objext='.o'
11164 # With Setjmp/Longjmp based exception handling.
11165 # Check whether --enable-sjlj-exceptions was given.
11166 if test "${enable_sjlj_exceptions+set}" = set; then :
11167 enableval=$enable_sjlj_exceptions; case $target in
11168 *-*-hpux10*)
11169 if test $enableval != yes; then
11170 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: dwarf2 exceptions not supported, sjlj exceptions forced" >&5
11171 $as_echo "$as_me: WARNING: dwarf2 exceptions not supported, sjlj exceptions forced" >&2;}
11172 enableval=yes
11175 esac
11176 force_sjlj_exceptions=yes
11177 else
11178 case $target in
11179 *-*-hpux10*)
11180 force_sjlj_exceptions=yes
11181 enableval=yes
11183 lm32*-*-*)
11184 force_sjlj_exceptions=yes
11185 enableval=yes
11188 force_sjlj_exceptions=no
11190 esac
11193 if test $force_sjlj_exceptions = yes; then
11194 sjlj=`if test $enableval = yes; then echo 1; else echo 0; fi`
11196 cat >>confdefs.h <<_ACEOF
11197 #define CONFIG_SJLJ_EXCEPTIONS $sjlj
11198 _ACEOF
11202 # --------------------------------------------------------
11203 # Build, host, and target specific configuration fragments
11204 # --------------------------------------------------------
11206 # Collect build-machine-specific information.
11207 . ${srcdir}/config.build
11209 # Collect host-machine-specific information.
11210 . ${srcdir}/config.host
11212 target_gtfiles=
11214 # Collect target-machine-specific information.
11215 . ${srcdir}/config.gcc
11217 extra_objs="${host_extra_objs} ${extra_objs}"
11218 extra_gcc_objs="${host_extra_gcc_objs} ${extra_gcc_objs}"
11220 # Default the target-machine variables that were not explicitly set.
11221 if test x"$tm_file" = x
11222 then tm_file=$cpu_type/$cpu_type.h; fi
11224 if test x"$extra_headers" = x
11225 then extra_headers=; fi
11227 if test x$md_file = x
11228 then md_file=$cpu_type/$cpu_type.md; fi
11230 if test x$out_file = x
11231 then out_file=$cpu_type/$cpu_type.c; fi
11233 if test x"$tmake_file" = x
11234 then tmake_file=$cpu_type/t-$cpu_type
11237 # Support --enable-initfini-array.
11238 if test x$enable_initfini_array != xno; then
11239 tm_file="${tm_file} initfini-array.h"
11242 if test x"$dwarf2" = xyes
11243 then tm_file="$tm_file tm-dwarf2.h"
11246 # Say what files are being used for the output code and MD file.
11247 echo "Using \`$srcdir/config/$out_file' for machine-specific logic."
11248 echo "Using \`$srcdir/config/$md_file' as machine description file."
11250 # If any of the xm_file variables contain nonexistent files, warn
11251 # about them and drop them.
11254 for x in $build_xm_file; do
11255 if test -f $srcdir/config/$x
11256 then bx="$bx $x"
11257 else { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $srcdir/config/$x does not exist." >&5
11258 $as_echo "$as_me: WARNING: $srcdir/config/$x does not exist." >&2;}
11260 done
11261 build_xm_file="$bx"
11264 for x in $host_xm_file; do
11265 if test -f $srcdir/config/$x
11266 then hx="$hx $x"
11267 else { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $srcdir/config/$x does not exist." >&5
11268 $as_echo "$as_me: WARNING: $srcdir/config/$x does not exist." >&2;}
11270 done
11271 host_xm_file="$hx"
11274 for x in $xm_file; do
11275 if test -f $srcdir/config/$x
11276 then tx="$tx $x"
11277 else { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $srcdir/config/$x does not exist." >&5
11278 $as_echo "$as_me: WARNING: $srcdir/config/$x does not exist." >&2;}
11280 done
11281 xm_file="$tx"
11283 count=a
11284 for f in $tm_file; do
11285 count=${count}x
11286 done
11287 if test $count = ax; then
11288 echo "Using \`$srcdir/config/$tm_file' as target machine macro file."
11289 else
11290 echo "Using the following target machine macro files:"
11291 for f in $tm_file; do
11292 echo " $srcdir/config/$f"
11293 done
11296 if test x$use_long_long_for_widest_fast_int = xyes; then
11298 $as_echo "#define USE_LONG_LONG_FOR_WIDEST_FAST_INT 1" >>confdefs.h
11302 gnu_ld_bool=`if test x"$gnu_ld" = x"yes"; then echo 1; else echo 0; fi`
11304 cat >>confdefs.h <<_ACEOF
11305 #define HAVE_GNU_LD $gnu_ld_bool
11306 _ACEOF
11309 gnu_as_bool=`if test x"$gas" = x"yes"; then echo 1; else echo 0; fi`
11311 cat >>confdefs.h <<_ACEOF
11312 #define HAVE_GNU_AS $gnu_as_bool
11313 _ACEOF
11316 count=a
11317 for f in $host_xm_file; do
11318 count=${count}x
11319 done
11320 if test $count = a; then
11322 elif test $count = ax; then
11323 echo "Using \`$srcdir/config/$host_xm_file' as host machine macro file."
11324 else
11325 echo "Using the following host machine macro files:"
11326 for f in $host_xm_file; do
11327 echo " $srcdir/config/$f"
11328 done
11330 echo "Using ${out_host_hook_obj} for host machine hooks."
11332 if test "$host_xm_file" != "$build_xm_file"; then
11333 count=a
11334 for f in $build_xm_file; do
11335 count=${count}x
11336 done
11337 if test $count = a; then
11339 elif test $count = ax; then
11340 echo "Using \`$srcdir/config/$build_xm_file' as build machine macro file."
11341 else
11342 echo "Using the following build machine macro files:"
11343 for f in $build_xm_file; do
11344 echo " $srcdir/config/$f"
11345 done
11349 if test -n "$configured_native_system_header_dir"; then
11350 native_system_header_dir=$configured_native_system_header_dir
11352 NATIVE_SYSTEM_HEADER_DIR="$native_system_header_dir"
11355 case ${host} in
11356 powerpc*-*-darwin*)
11357 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether mcontext_t fields have underscores" >&5
11358 $as_echo_n "checking whether mcontext_t fields have underscores... " >&6; }
11359 if test "${gcc_cv_mcontext_underscores+set}" = set; then :
11360 $as_echo_n "(cached) " >&6
11361 else
11362 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11363 /* end confdefs.h. */
11365 #include <sys/cdefs.h>
11366 #include <sys/signal.h>
11367 #include <ucontext.h>
11368 int main() { mcontext_t m; if (m->ss.srr0) return 0; return 0; }
11370 _ACEOF
11371 if ac_fn_c_try_compile "$LINENO"; then :
11372 gcc_cv_mcontext_underscores=no
11373 else
11374 gcc_cv_mcontext_underscores=yes
11376 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11378 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_mcontext_underscores" >&5
11379 $as_echo "$gcc_cv_mcontext_underscores" >&6; }
11380 if test $gcc_cv_mcontext_underscores = yes; then
11382 $as_echo "#define HAS_MCONTEXT_T_UNDERSCORES /**/" >>confdefs.h
11386 esac
11388 # ---------
11389 # Threading
11390 # ---------
11392 # Check if a valid thread package
11393 case ${enable_threads} in
11394 "" | no)
11395 # No threads
11396 target_thread_file='single'
11398 yes)
11399 # default
11400 target_thread_file='single'
11402 aix | dce | lynx | mipssde | posix | rtems | \
11403 single | tpf | vxworks | win32)
11404 target_thread_file=${enable_threads}
11407 echo "${enable_threads} is an unknown thread package" 1>&2
11408 exit 1
11410 esac
11412 if test x${thread_file} = x; then
11413 # No thread file set by target-specific clauses in config.gcc,
11414 # so use file chosen by default logic above
11415 thread_file=${target_thread_file}
11418 # --------
11419 # UNSORTED
11420 # --------
11422 use_cxa_atexit=no
11423 if test x$enable___cxa_atexit = xyes || \
11424 test x$enable___cxa_atexit = x -a x$default_use_cxa_atexit = xyes; then
11425 if test x$host = x$target; then
11426 case $host in
11427 # mingw32 doesn't have __cxa_atexit but uses atexit registration
11428 # keyed to flag_use_cxa_atexit
11429 *-*-mingw32*)
11430 use_cxa_atexit=yes
11432 powerpc-ibm-aix*)
11433 use_cxa_atexit=yes
11436 ac_fn_c_check_func "$LINENO" "__cxa_atexit" "ac_cv_func___cxa_atexit"
11437 if test "x$ac_cv_func___cxa_atexit" = x""yes; then :
11438 use_cxa_atexit=yes
11439 else
11440 echo "__cxa_atexit can't be enabled on this target"
11444 esac
11445 else
11446 # We can't check for __cxa_atexit when building a cross, so assume
11447 # it is available
11448 use_cxa_atexit=yes
11450 if test x$use_cxa_atexit = xyes; then
11452 $as_echo "#define DEFAULT_USE_CXA_ATEXIT 2" >>confdefs.h
11457 # Look for a file containing extra machine modes.
11458 if test -n "$extra_modes" && test -f $srcdir/config/$extra_modes; then
11459 extra_modes_file='$(srcdir)'/config/${extra_modes}
11462 cat >>confdefs.h <<_ACEOF
11463 #define EXTRA_MODES_FILE "config/$extra_modes"
11464 _ACEOF
11468 # Convert extra_options into a form suitable for Makefile use.
11469 extra_opt_files=
11470 all_opt_files=
11471 for f in $extra_options; do
11472 extra_opt_files="$extra_opt_files \$(srcdir)/config/$f"
11473 all_opt_files="$all_opt_files $srcdir/config/$f"
11474 done
11477 # auto-host.h is the file containing items generated by autoconf and is
11478 # the first file included by config.h.
11479 # If host=build, it is correct to have bconfig include auto-host.h
11480 # as well. If host!=build, we are in error and need to do more
11481 # work to find out the build config parameters.
11482 if test x$host = x$build
11483 then
11484 build_auto=auto-host.h
11485 else
11486 # We create a subdir, then run autoconf in the subdir.
11487 # To prevent recursion we set host and build for the new
11488 # invocation of configure to the build for this invocation
11489 # of configure.
11490 tempdir=build.$$
11491 rm -rf $tempdir
11492 mkdir $tempdir
11493 cd $tempdir
11494 case ${srcdir} in
11495 /* | A-Za-z:\\/* ) realsrcdir=${srcdir};;
11496 *) realsrcdir=../${srcdir};;
11497 esac
11498 # Clearing GMPINC is necessary to prevent host headers being
11499 # used by the build compiler. Defining GENERATOR_FILE stops
11500 # system.h from including gmp.h.
11501 CC="${CC_FOR_BUILD}" CFLAGS="${CFLAGS_FOR_BUILD}" \
11502 CXX="${CXX_FOR_BUILD}" CXXFLAGS="${CXXFLAGS_FOR_BUILD}" \
11503 LD="${LD_FOR_BUILD}" LDFLAGS="${LDFLAGS_FOR_BUILD}" \
11504 GMPINC="" CPPFLAGS="${CPPFLAGS} -DGENERATOR_FILE" \
11505 ${realsrcdir}/configure \
11506 --enable-languages=${enable_languages-all} \
11507 --target=$target_alias --host=$build_alias --build=$build_alias
11509 # We just finished tests for the build machine, so rename
11510 # the file auto-build.h in the gcc directory.
11511 mv auto-host.h ../auto-build.h
11512 cd ..
11513 rm -rf $tempdir
11514 build_auto=auto-build.h
11518 tm_file="${tm_file} defaults.h"
11519 tm_p_file="${tm_p_file} tm-preds.h"
11520 host_xm_file="auto-host.h ansidecl.h ${host_xm_file}"
11521 build_xm_file="${build_auto} ansidecl.h ${build_xm_file}"
11522 # We don't want ansidecl.h in target files, write code there in ISO/GNU C.
11523 # put this back in temporarily.
11524 xm_file="auto-host.h ansidecl.h ${xm_file}"
11526 # --------
11527 # UNSORTED
11528 # --------
11530 # Compile in configure arguments.
11531 if test -f configargs.h ; then
11532 # Being re-configured.
11533 gcc_config_arguments=`grep configuration_arguments configargs.h | sed -e 's/.*"\([^"]*\)".*/\1/'`
11534 gcc_config_arguments="$gcc_config_arguments : (reconfigured) $TOPLEVEL_CONFIGURE_ARGUMENTS"
11535 else
11536 gcc_config_arguments="$TOPLEVEL_CONFIGURE_ARGUMENTS"
11539 # Double all backslashes and backslash all quotes to turn
11540 # gcc_config_arguments into a C string.
11541 sed -e 's/\\/\\\\/g; s/"/\\"/g' <<EOF >conftest.out
11542 $gcc_config_arguments
11544 gcc_config_arguments_str=`cat conftest.out`
11545 rm -f conftest.out
11547 cat > configargs.h <<EOF
11548 /* Generated automatically. */
11549 static const char configuration_arguments[] = "$gcc_config_arguments_str";
11550 static const char thread_model[] = "$thread_file";
11552 static const struct {
11553 const char *name, *value;
11554 } configure_default_options[] = $configure_default_options;
11557 gcc_BASEVER=`cat $srcdir/BASE-VER`
11558 gcc_DEVPHASE=`cat $srcdir/DEV-PHASE`
11559 gcc_DATESTAMP=`cat $srcdir/DATESTAMP`
11560 if test -f $srcdir/REVISION ; then
11561 gcc_REVISION=`cat $srcdir/REVISION`
11562 else
11563 gcc_REVISION=""
11565 cat > plugin-version.h <<EOF
11566 #include "configargs.h"
11568 #define GCCPLUGIN_VERSION_MAJOR `echo $gcc_BASEVER | sed -e 's/^\([0-9]*\).*$/\1/'`
11569 #define GCCPLUGIN_VERSION_MINOR `echo $gcc_BASEVER | sed -e 's/^[0-9]*\.\([0-9]*\).*$/\1/'`
11570 #define GCCPLUGIN_VERSION_PATCHLEVEL `echo $gcc_BASEVER | sed -e 's/^[0-9]*\.[0-9]*\.\([0-9]*\)$/\1/'`
11571 #define GCCPLUGIN_VERSION (GCCPLUGIN_VERSION_MAJOR*1000 + GCCPLUGIN_VERSION_MINOR)
11573 static char basever[] = "$gcc_BASEVER";
11574 static char datestamp[] = "$gcc_DATESTAMP";
11575 static char devphase[] = "$gcc_DEVPHASE";
11576 static char revision[] = "$gcc_REVISION";
11578 /* FIXME plugins: We should make the version information more precise.
11579 One way to do is to add a checksum. */
11581 static struct plugin_gcc_version gcc_version = {basever, datestamp,
11582 devphase, revision,
11583 configuration_arguments};
11586 # Internationalization
11587 # If we haven't got the data from the intl directory,
11588 # assume NLS is disabled.
11589 USE_NLS=no
11590 LIBINTL=
11591 LIBINTL_DEP=
11592 INCINTL=
11593 XGETTEXT=
11594 GMSGFMT=
11595 POSUB=
11597 if test -f ../intl/config.intl; then
11598 . ../intl/config.intl
11600 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether NLS is requested" >&5
11601 $as_echo_n "checking whether NLS is requested... " >&6; }
11602 if test x"$USE_NLS" != xyes; then
11603 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11604 $as_echo "no" >&6; }
11605 else
11606 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11607 $as_echo "yes" >&6; }
11609 $as_echo "#define ENABLE_NLS 1" >>confdefs.h
11612 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for catalogs to be installed" >&5
11613 $as_echo_n "checking for catalogs to be installed... " >&6; }
11614 # Look for .po and .gmo files in the source directory.
11615 CATALOGS=
11616 XLINGUAS=
11617 for cat in $srcdir/po/*.gmo $srcdir/po/*.po; do
11618 # If there aren't any .gmo files the shell will give us the
11619 # literal string "../path/to/srcdir/po/*.gmo" which has to be
11620 # weeded out.
11621 case "$cat" in *\**)
11622 continue;;
11623 esac
11624 # The quadruple backslash is collapsed to a double backslash
11625 # by the backticks, then collapsed again by the double quotes,
11626 # leaving us with one backslash in the sed expression (right
11627 # before the dot that mustn't act as a wildcard).
11628 cat=`echo $cat | sed -e "s!$srcdir/po/!!" -e "s!\\\\.po!.gmo!"`
11629 lang=`echo $cat | sed -e "s!\\\\.gmo!!"`
11630 # The user is allowed to set LINGUAS to a list of languages to
11631 # install catalogs for. If it's empty that means "all of them."
11632 if test "x$LINGUAS" = x; then
11633 CATALOGS="$CATALOGS $cat"
11634 XLINGUAS="$XLINGUAS $lang"
11635 else
11636 case "$LINGUAS" in *$lang*)
11637 CATALOGS="$CATALOGS $cat"
11638 XLINGUAS="$XLINGUAS $lang"
11640 esac
11642 done
11643 LINGUAS="$XLINGUAS"
11644 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LINGUAS" >&5
11645 $as_echo "$LINGUAS" >&6; }
11648 DATADIRNAME=share
11650 INSTOBJEXT=.mo
11652 GENCAT=gencat
11654 CATOBJEXT=.gmo
11658 # If LIBINTL contains LIBICONV, then clear LIBICONV so we don't get
11659 # -liconv on the link line twice.
11660 case "$LIBINTL" in *$LIBICONV*)
11661 LIBICONV= ;;
11662 esac
11664 # Check whether --enable-secureplt was given.
11665 if test "${enable_secureplt+set}" = set; then :
11666 enableval=$enable_secureplt;
11670 # Check whether --enable-leading-mingw64-underscores was given.
11671 if test "${enable_leading_mingw64_underscores+set}" = set; then :
11672 enableval=$enable_leading_mingw64_underscores;
11675 if test x"$enable_leading_mingw64_underscores" = xyes ; then :
11677 $as_echo "#define USE_MINGW64_LEADING_UNDERSCORES 1" >>confdefs.h
11681 # Check whether --enable-cld was given.
11682 if test "${enable_cld+set}" = set; then :
11683 enableval=$enable_cld;
11684 else
11685 enable_cld=no
11689 # Check whether --enable-frame-pointer was given.
11690 if test "${enable_frame_pointer+set}" = set; then :
11691 enableval=$enable_frame_pointer;
11692 else
11694 case $target_os in
11695 linux* | darwin[8912]*)
11696 # Enable -fomit-frame-pointer by default for Linux and Darwin with
11697 # DWARF2.
11698 enable_frame_pointer=no
11701 enable_frame_pointer=yes
11703 esac
11708 # Windows32 Registry support for specifying GCC installation paths.
11709 # Check whether --enable-win32-registry was given.
11710 if test "${enable_win32_registry+set}" = set; then :
11711 enableval=$enable_win32_registry;
11715 case $host_os in
11716 win32 | pe | cygwin* | mingw32* | uwin*)
11717 if test "x$enable_win32_registry" != xno; then
11718 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing RegOpenKeyExA" >&5
11719 $as_echo_n "checking for library containing RegOpenKeyExA... " >&6; }
11720 if test "${ac_cv_search_RegOpenKeyExA+set}" = set; then :
11721 $as_echo_n "(cached) " >&6
11722 else
11723 ac_func_search_save_LIBS=$LIBS
11724 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11725 /* end confdefs.h. */
11727 /* Override any GCC internal prototype to avoid an error.
11728 Use char because int might match the return type of a GCC
11729 builtin and then its argument prototype would still apply. */
11730 #ifdef __cplusplus
11731 extern "C"
11732 #endif
11733 char RegOpenKeyExA ();
11735 main ()
11737 return RegOpenKeyExA ();
11739 return 0;
11741 _ACEOF
11742 for ac_lib in '' advapi32; do
11743 if test -z "$ac_lib"; then
11744 ac_res="none required"
11745 else
11746 ac_res=-l$ac_lib
11747 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
11749 if ac_fn_c_try_link "$LINENO"; then :
11750 ac_cv_search_RegOpenKeyExA=$ac_res
11752 rm -f core conftest.err conftest.$ac_objext \
11753 conftest$ac_exeext
11754 if test "${ac_cv_search_RegOpenKeyExA+set}" = set; then :
11755 break
11757 done
11758 if test "${ac_cv_search_RegOpenKeyExA+set}" = set; then :
11760 else
11761 ac_cv_search_RegOpenKeyExA=no
11763 rm conftest.$ac_ext
11764 LIBS=$ac_func_search_save_LIBS
11766 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_RegOpenKeyExA" >&5
11767 $as_echo "$ac_cv_search_RegOpenKeyExA" >&6; }
11768 ac_res=$ac_cv_search_RegOpenKeyExA
11769 if test "$ac_res" != no; then :
11770 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
11772 else
11773 enable_win32_registry=no
11778 if test "x$enable_win32_registry" != xno; then
11780 $as_echo "#define ENABLE_WIN32_REGISTRY 1" >>confdefs.h
11783 if test "x$enable_win32_registry" != xyes \
11784 && test "x$enable_win32_registry" != x; then
11786 cat >>confdefs.h <<_ACEOF
11787 #define WIN32_REGISTRY_KEY "$enable_win32_registry"
11788 _ACEOF
11793 esac
11795 # Get an absolute path to the GCC top-level source directory
11796 holddir=`${PWDCMD-pwd}`
11797 cd $srcdir
11798 topdir=`${PWDCMD-pwd}`
11799 cd $holddir
11801 # Conditionalize the makefile for this host machine.
11802 xmake_file=
11803 for f in ${host_xmake_file}
11805 if test -f ${srcdir}/config/$f
11806 then
11807 xmake_file="${xmake_file} \$(srcdir)/config/$f"
11809 done
11811 # Conditionalize the makefile for this target machine.
11812 tmake_file_=
11813 for f in ${tmake_file}
11815 if test -f ${srcdir}/config/$f
11816 then
11817 tmake_file_="${tmake_file_} \$(srcdir)/config/$f"
11819 done
11820 tmake_file="${tmake_file_}"
11822 out_object_file=`basename $out_file .c`.o
11823 common_out_object_file=`basename $common_out_file .c`.o
11825 tm_file_list="options.h"
11826 tm_include_list="options.h insn-constants.h"
11827 for f in $tm_file; do
11828 case $f in
11829 ./* )
11830 f=`echo $f | sed 's/^..//'`
11831 tm_file_list="${tm_file_list} $f"
11832 tm_include_list="${tm_include_list} $f"
11834 defaults.h )
11835 tm_file_list="${tm_file_list} \$(srcdir)/$f"
11836 tm_include_list="${tm_include_list} $f"
11839 tm_file_list="${tm_file_list} \$(srcdir)/config/$f"
11840 tm_include_list="${tm_include_list} config/$f"
11842 esac
11843 done
11845 tm_p_file_list=
11846 tm_p_include_list=
11847 for f in $tm_p_file; do
11848 case $f in
11849 tm-preds.h )
11850 tm_p_file_list="${tm_p_file_list} $f"
11851 tm_p_include_list="${tm_p_include_list} $f"
11854 tm_p_file_list="${tm_p_file_list} \$(srcdir)/config/$f"
11855 tm_p_include_list="${tm_p_include_list} config/$f"
11856 esac
11857 done
11859 xm_file_list=
11860 xm_include_list=
11861 for f in $xm_file; do
11862 case $f in
11863 ansidecl.h )
11864 xm_file_list="${xm_file_list} \$(srcdir)/../include/$f"
11865 xm_include_list="${xm_include_list} $f"
11867 auto-host.h )
11868 xm_file_list="${xm_file_list} $f"
11869 xm_include_list="${xm_include_list} $f"
11872 xm_file_list="${xm_file_list} \$(srcdir)/config/$f"
11873 xm_include_list="${xm_include_list} config/$f"
11875 esac
11876 done
11878 host_xm_file_list=
11879 host_xm_include_list=
11880 for f in $host_xm_file; do
11881 case $f in
11882 ansidecl.h )
11883 host_xm_file_list="${host_xm_file_list} \$(srcdir)/../include/$f"
11884 host_xm_include_list="${host_xm_include_list} $f"
11886 auto-host.h )
11887 host_xm_file_list="${host_xm_file_list} $f"
11888 host_xm_include_list="${host_xm_include_list} $f"
11891 host_xm_file_list="${host_xm_file_list} \$(srcdir)/config/$f"
11892 host_xm_include_list="${host_xm_include_list} config/$f"
11894 esac
11895 done
11897 build_xm_file_list=
11898 for f in $build_xm_file; do
11899 case $f in
11900 ansidecl.h )
11901 build_xm_file_list="${build_xm_file_list} \$(srcdir)/../include/$f"
11902 build_xm_include_list="${build_xm_include_list} $f"
11904 auto-build.h | auto-host.h )
11905 build_xm_file_list="${build_xm_file_list} $f"
11906 build_xm_include_list="${build_xm_include_list} $f"
11909 build_xm_file_list="${build_xm_file_list} \$(srcdir)/config/$f"
11910 build_xm_include_list="${build_xm_include_list} config/$f"
11912 esac
11913 done
11915 # Define macro CROSS_DIRECTORY_STRUCTURE in compilation if this is a
11916 # cross-compiler which does not use the native headers and libraries.
11917 # Also use all.cross instead of all.internal and adjust SYSTEM_HEADER_DIR.
11918 CROSS=
11919 ALL=all.internal
11920 SYSTEM_HEADER_DIR='$(NATIVE_SYSTEM_HEADER_DIR)'
11922 if test "x$with_build_sysroot" != x; then
11923 build_system_header_dir=$with_build_sysroot'$${sysroot_headers_suffix}$(NATIVE_SYSTEM_HEADER_DIR)'
11924 else
11925 # This value is used, even on a native system, because
11926 # CROSS_SYSTEM_HEADER_DIR is just
11927 # $(TARGET_SYSTEM_ROOT)$(NATIVE_SYSTEM_HEADER_DIR).
11928 build_system_header_dir='$(CROSS_SYSTEM_HEADER_DIR)'
11931 if test x$host != x$target
11932 then
11933 CROSS="-DCROSS_DIRECTORY_STRUCTURE"
11934 ALL=all.cross
11935 SYSTEM_HEADER_DIR=$build_system_header_dir
11936 case "$host","$target" in
11937 # Darwin crosses can use the host system's libraries and headers,
11938 # because of the fat library support. Of course, it must be the
11939 # same version of Darwin on both sides. Allow the user to
11940 # just say --target=foo-darwin without a version number to mean
11941 # "the version on this system".
11942 *-*-darwin*,*-*-darwin*)
11943 hostos=`echo $host | sed 's/.*-darwin/darwin/'`
11944 targetos=`echo $target | sed 's/.*-darwin/darwin/'`
11945 if test $hostos = $targetos -o $targetos = darwin ; then
11946 CROSS=
11947 SYSTEM_HEADER_DIR='$(NATIVE_SYSTEM_HEADER_DIR)'
11948 with_headers=yes
11952 i?86-*-*,x86_64-*-* \
11953 | powerpc*-*-*,powerpc64*-*-*)
11954 CROSS="$CROSS -DNATIVE_CROSS" ;;
11955 esac
11957 case $target in
11958 *-*-mingw*)
11959 if test "x$with_headers" = x; then
11960 with_headers=yes
11965 esac
11966 elif test "x$TARGET_SYSTEM_ROOT" != x; then
11967 SYSTEM_HEADER_DIR=$build_system_header_dir
11970 if test x$host != x$target || test "x$TARGET_SYSTEM_ROOT" != x; then
11971 if test "x$with_headers" != x; then
11972 target_header_dir=$with_headers
11973 elif test "x$with_sysroot" = x; then
11974 target_header_dir="${test_exec_prefix}/${target_noncanonical}/sys-include"
11975 elif test "x$with_build_sysroot" != "x"; then
11976 target_header_dir="${with_build_sysroot}${native_system_header_dir}"
11977 elif test "x$with_sysroot" = xyes; then
11978 target_header_dir="${test_exec_prefix}/${target_noncanonical}/sys-root${native_system_header_dir}"
11979 else
11980 target_header_dir="${with_sysroot}${native_system_header_dir}"
11982 else
11983 target_header_dir=${native_system_header_dir}
11986 # If this is a cross-compiler that does not
11987 # have its own set of headers then define
11988 # inhibit_libc
11990 # If this is using newlib, without having the headers available now,
11991 # then define inhibit_libc in LIBGCC2_CFLAGS.
11992 # This prevents libgcc2 from containing any code which requires libc
11993 # support.
11994 : ${inhibit_libc=false}
11995 if { { test x$host != x$target && test "x$with_sysroot" = x ; } ||
11996 test x$with_newlib = xyes ; } &&
11997 { test "x$with_headers" = xno || test ! -f "$target_header_dir/stdio.h"; } ; then
11998 inhibit_libc=true
12002 # When building gcc with a cross-compiler, we need to adjust things so
12003 # that the generator programs are still built with the native compiler.
12004 # Also, we cannot run fixincludes.
12006 # These are the normal (build=host) settings:
12007 CC_FOR_BUILD='$(CC)'
12008 CXX_FOR_BUILD='$(CXX)'
12009 BUILD_CFLAGS='$(ALL_CFLAGS)'
12010 BUILD_CXXFLAGS='$(ALL_CXXFLAGS)'
12011 BUILD_LDFLAGS='$(LDFLAGS)'
12012 STMP_FIXINC=stmp-fixinc
12014 # And these apply if build != host, or we are generating coverage data
12015 if test x$build != x$host || test "x$coverage_flags" != x
12016 then
12017 BUILD_CFLAGS='$(INTERNAL_CFLAGS) $(T_CFLAGS) $(CFLAGS_FOR_BUILD)'
12018 BUILD_CXXFLAGS='$(INTERNAL_CFLAGS) $(T_CFLAGS) $(CXXFLAGS_FOR_BUILD)'
12019 BUILD_LDFLAGS='$(LDFLAGS_FOR_BUILD)'
12022 # Expand extra_headers to include complete path.
12023 # This substitutes for lots of t-* files.
12024 extra_headers_list=
12025 # Prepend $(srcdir)/config/${cpu_type}/ to every entry in extra_headers.
12026 for file in ${extra_headers} ; do
12027 extra_headers_list="${extra_headers_list} \$(srcdir)/config/${cpu_type}/${file}"
12028 done
12030 # If use_gcc_tgmath is set, append ginclude/tgmath.h.
12031 if test x"$use_gcc_tgmath" = xyes
12032 then extra_headers_list="${extra_headers_list} \$(srcdir)/ginclude/tgmath.h"
12035 # Define collect2 in Makefile.
12036 case $host_can_use_collect2 in
12037 no) collect2= ;;
12038 *) collect2='collect2$(exeext)' ;;
12039 esac
12042 # Add a definition of USE_COLLECT2 if system wants one.
12043 case $use_collect2 in
12044 no) use_collect2= ;;
12045 "") ;;
12047 host_xm_defines="${host_xm_defines} USE_COLLECT2"
12048 xm_defines="${xm_defines} USE_COLLECT2"
12049 case $host_can_use_collect2 in
12051 as_fn_error "collect2 is required but cannot be built on this system" "$LINENO" 5
12053 esac
12055 esac
12058 cat >>confdefs.h <<_ACEOF
12059 #define LTOPLUGINSONAME "${host_lto_plugin_soname}"
12060 _ACEOF
12063 # ---------------------------
12064 # Assembler & linker features
12065 # ---------------------------
12067 # During stage 2, ld is actually gcc/collect-ld, which is a small script to
12068 # discern between when to use prev-ld/ld-new and when to use ld/ld-new.
12069 # However when ld-new is first executed from the build tree, libtool will
12070 # relink it as .libs/lt-ld-new, so that it can give it an RPATH that refers
12071 # to the build tree. While doing this we need to use the previous-stage
12072 # linker, or we have an infinite loop. The presence of a shell script as
12073 # ld/ld-new, and the fact that the script *uses ld itself*, is what confuses
12074 # the gcc/collect-ld script. So we need to know how libtool works, or
12075 # exec-tool will fail.
12078 case `pwd` in
12079 *\ * | *\ *)
12080 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&5
12081 $as_echo "$as_me: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&2;} ;;
12082 esac
12086 macro_version='2.2.7a'
12087 macro_revision='1.3134'
12101 ltmain="$ac_aux_dir/ltmain.sh"
12103 # Backslashify metacharacters that are still active within
12104 # double-quoted strings.
12105 sed_quote_subst='s/\(["`$\\]\)/\\\1/g'
12107 # Same as above, but do not quote variable references.
12108 double_quote_subst='s/\(["`\\]\)/\\\1/g'
12110 # Sed substitution to delay expansion of an escaped shell variable in a
12111 # double_quote_subst'ed string.
12112 delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
12114 # Sed substitution to delay expansion of an escaped single quote.
12115 delay_single_quote_subst='s/'\''/'\'\\\\\\\'\''/g'
12117 # Sed substitution to avoid accidental globbing in evaled expressions
12118 no_glob_subst='s/\*/\\\*/g'
12120 ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
12121 ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO
12122 ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO$ECHO
12124 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to print strings" >&5
12125 $as_echo_n "checking how to print strings... " >&6; }
12126 # Test print first, because it will be a builtin if present.
12127 if test "X`print -r -- -n 2>/dev/null`" = X-n && \
12128 test "X`print -r -- $ECHO 2>/dev/null`" = "X$ECHO"; then
12129 ECHO='print -r --'
12130 elif test "X`printf %s $ECHO 2>/dev/null`" = "X$ECHO"; then
12131 ECHO='printf %s\n'
12132 else
12133 # Use this function as a fallback that always works.
12134 func_fallback_echo ()
12136 eval 'cat <<_LTECHO_EOF
12138 _LTECHO_EOF'
12140 ECHO='func_fallback_echo'
12143 # func_echo_all arg...
12144 # Invoke $ECHO with all args, space-separated.
12145 func_echo_all ()
12147 $ECHO ""
12150 case "$ECHO" in
12151 printf*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: printf" >&5
12152 $as_echo "printf" >&6; } ;;
12153 print*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: print -r" >&5
12154 $as_echo "print -r" >&6; } ;;
12155 *) { $as_echo "$as_me:${as_lineno-$LINENO}: result: cat" >&5
12156 $as_echo "cat" >&6; } ;;
12157 esac
12172 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5
12173 $as_echo_n "checking for a sed that does not truncate output... " >&6; }
12174 if test "${ac_cv_path_SED+set}" = set; then :
12175 $as_echo_n "(cached) " >&6
12176 else
12177 ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
12178 for ac_i in 1 2 3 4 5 6 7; do
12179 ac_script="$ac_script$as_nl$ac_script"
12180 done
12181 echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed
12182 { ac_script=; unset ac_script;}
12183 if test -z "$SED"; then
12184 ac_path_SED_found=false
12185 # Loop through the user's path and test for each of PROGNAME-LIST
12186 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12187 for as_dir in $PATH
12189 IFS=$as_save_IFS
12190 test -z "$as_dir" && as_dir=.
12191 for ac_prog in sed gsed; do
12192 for ac_exec_ext in '' $ac_executable_extensions; do
12193 ac_path_SED="$as_dir/$ac_prog$ac_exec_ext"
12194 { test -f "$ac_path_SED" && $as_test_x "$ac_path_SED"; } || continue
12195 # Check for GNU ac_path_SED and select it if it is found.
12196 # Check for GNU $ac_path_SED
12197 case `"$ac_path_SED" --version 2>&1` in
12198 *GNU*)
12199 ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
12201 ac_count=0
12202 $as_echo_n 0123456789 >"conftest.in"
12203 while :
12205 cat "conftest.in" "conftest.in" >"conftest.tmp"
12206 mv "conftest.tmp" "conftest.in"
12207 cp "conftest.in" "conftest.nl"
12208 $as_echo '' >> "conftest.nl"
12209 "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break
12210 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
12211 as_fn_arith $ac_count + 1 && ac_count=$as_val
12212 if test $ac_count -gt ${ac_path_SED_max-0}; then
12213 # Best one so far, save it but keep looking for a better one
12214 ac_cv_path_SED="$ac_path_SED"
12215 ac_path_SED_max=$ac_count
12217 # 10*(2^10) chars as input seems more than enough
12218 test $ac_count -gt 10 && break
12219 done
12220 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
12221 esac
12223 $ac_path_SED_found && break 3
12224 done
12225 done
12226 done
12227 IFS=$as_save_IFS
12228 if test -z "$ac_cv_path_SED"; then
12229 as_fn_error "no acceptable sed could be found in \$PATH" "$LINENO" 5
12231 else
12232 ac_cv_path_SED=$SED
12236 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5
12237 $as_echo "$ac_cv_path_SED" >&6; }
12238 SED="$ac_cv_path_SED"
12239 rm -f conftest.sed
12241 test -z "$SED" && SED=sed
12242 Xsed="$SED -e 1s/^X//"
12254 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for fgrep" >&5
12255 $as_echo_n "checking for fgrep... " >&6; }
12256 if test "${ac_cv_path_FGREP+set}" = set; then :
12257 $as_echo_n "(cached) " >&6
12258 else
12259 if echo 'ab*c' | $GREP -F 'ab*c' >/dev/null 2>&1
12260 then ac_cv_path_FGREP="$GREP -F"
12261 else
12262 if test -z "$FGREP"; then
12263 ac_path_FGREP_found=false
12264 # Loop through the user's path and test for each of PROGNAME-LIST
12265 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12266 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
12268 IFS=$as_save_IFS
12269 test -z "$as_dir" && as_dir=.
12270 for ac_prog in fgrep; do
12271 for ac_exec_ext in '' $ac_executable_extensions; do
12272 ac_path_FGREP="$as_dir/$ac_prog$ac_exec_ext"
12273 { test -f "$ac_path_FGREP" && $as_test_x "$ac_path_FGREP"; } || continue
12274 # Check for GNU ac_path_FGREP and select it if it is found.
12275 # Check for GNU $ac_path_FGREP
12276 case `"$ac_path_FGREP" --version 2>&1` in
12277 *GNU*)
12278 ac_cv_path_FGREP="$ac_path_FGREP" ac_path_FGREP_found=:;;
12280 ac_count=0
12281 $as_echo_n 0123456789 >"conftest.in"
12282 while :
12284 cat "conftest.in" "conftest.in" >"conftest.tmp"
12285 mv "conftest.tmp" "conftest.in"
12286 cp "conftest.in" "conftest.nl"
12287 $as_echo 'FGREP' >> "conftest.nl"
12288 "$ac_path_FGREP" FGREP < "conftest.nl" >"conftest.out" 2>/dev/null || break
12289 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
12290 as_fn_arith $ac_count + 1 && ac_count=$as_val
12291 if test $ac_count -gt ${ac_path_FGREP_max-0}; then
12292 # Best one so far, save it but keep looking for a better one
12293 ac_cv_path_FGREP="$ac_path_FGREP"
12294 ac_path_FGREP_max=$ac_count
12296 # 10*(2^10) chars as input seems more than enough
12297 test $ac_count -gt 10 && break
12298 done
12299 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
12300 esac
12302 $ac_path_FGREP_found && break 3
12303 done
12304 done
12305 done
12306 IFS=$as_save_IFS
12307 if test -z "$ac_cv_path_FGREP"; then
12308 as_fn_error "no acceptable fgrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
12310 else
12311 ac_cv_path_FGREP=$FGREP
12316 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_FGREP" >&5
12317 $as_echo "$ac_cv_path_FGREP" >&6; }
12318 FGREP="$ac_cv_path_FGREP"
12321 test -z "$GREP" && GREP=grep
12341 # Check whether --with-gnu-ld was given.
12342 if test "${with_gnu_ld+set}" = set; then :
12343 withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
12344 else
12345 with_gnu_ld=no
12348 ac_prog=ld
12349 if test "$GCC" = yes; then
12350 # Check if gcc -print-prog-name=ld gives a path.
12351 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
12352 $as_echo_n "checking for ld used by $CC... " >&6; }
12353 case $host in
12354 *-*-mingw*)
12355 # gcc leaves a trailing carriage return which upsets mingw
12356 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
12358 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
12359 esac
12360 case $ac_prog in
12361 # Accept absolute paths.
12362 [\\/]* | ?:[\\/]*)
12363 re_direlt='/[^/][^/]*/\.\./'
12364 # Canonicalize the pathname of ld
12365 ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
12366 while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
12367 ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
12368 done
12369 test -z "$LD" && LD="$ac_prog"
12372 # If it fails, then pretend we aren't using GCC.
12373 ac_prog=ld
12376 # If it is relative, then search for the first ld in PATH.
12377 with_gnu_ld=unknown
12379 esac
12380 elif test "$with_gnu_ld" = yes; then
12381 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
12382 $as_echo_n "checking for GNU ld... " >&6; }
12383 else
12384 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
12385 $as_echo_n "checking for non-GNU ld... " >&6; }
12387 if test "${lt_cv_path_LD+set}" = set; then :
12388 $as_echo_n "(cached) " >&6
12389 else
12390 if test -z "$LD"; then
12391 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
12392 for ac_dir in $PATH; do
12393 IFS="$lt_save_ifs"
12394 test -z "$ac_dir" && ac_dir=.
12395 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
12396 lt_cv_path_LD="$ac_dir/$ac_prog"
12397 # Check to see if the program is GNU ld. I'd rather use --version,
12398 # but apparently some variants of GNU ld only accept -v.
12399 # Break only if it was the GNU/non-GNU ld that we prefer.
12400 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
12401 *GNU* | *'with BFD'*)
12402 test "$with_gnu_ld" != no && break
12405 test "$with_gnu_ld" != yes && break
12407 esac
12409 done
12410 IFS="$lt_save_ifs"
12411 else
12412 lt_cv_path_LD="$LD" # Let the user override the test with a path.
12416 LD="$lt_cv_path_LD"
12417 if test -n "$LD"; then
12418 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
12419 $as_echo "$LD" >&6; }
12420 else
12421 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12422 $as_echo "no" >&6; }
12424 test -z "$LD" && as_fn_error "no acceptable ld found in \$PATH" "$LINENO" 5
12425 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
12426 $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
12427 if test "${lt_cv_prog_gnu_ld+set}" = set; then :
12428 $as_echo_n "(cached) " >&6
12429 else
12430 # I'd rather use --version here, but apparently some GNU lds only accept -v.
12431 case `$LD -v 2>&1 </dev/null` in
12432 *GNU* | *'with BFD'*)
12433 lt_cv_prog_gnu_ld=yes
12436 lt_cv_prog_gnu_ld=no
12438 esac
12440 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
12441 $as_echo "$lt_cv_prog_gnu_ld" >&6; }
12442 with_gnu_ld=$lt_cv_prog_gnu_ld
12452 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for BSD- or MS-compatible name lister (nm)" >&5
12453 $as_echo_n "checking for BSD- or MS-compatible name lister (nm)... " >&6; }
12454 if test "${lt_cv_path_NM+set}" = set; then :
12455 $as_echo_n "(cached) " >&6
12456 else
12457 if test -n "$NM"; then
12458 # Let the user override the test.
12459 lt_cv_path_NM="$NM"
12460 else
12461 lt_nm_to_check="${ac_tool_prefix}nm"
12462 if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
12463 lt_nm_to_check="$lt_nm_to_check nm"
12465 for lt_tmp_nm in $lt_nm_to_check; do
12466 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
12467 for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
12468 IFS="$lt_save_ifs"
12469 test -z "$ac_dir" && ac_dir=.
12470 tmp_nm="$ac_dir/$lt_tmp_nm"
12471 if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
12472 # Check to see if the nm accepts a BSD-compat flag.
12473 # Adding the `sed 1q' prevents false positives on HP-UX, which says:
12474 # nm: unknown option "B" ignored
12475 # Tru64's nm complains that /dev/null is an invalid object file
12476 case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
12477 */dev/null* | *'Invalid file or object type'*)
12478 lt_cv_path_NM="$tmp_nm -B"
12479 break
12482 case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
12483 */dev/null*)
12484 lt_cv_path_NM="$tmp_nm -p"
12485 break
12488 lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
12489 continue # so that we can try to find one that supports BSD flags
12491 esac
12493 esac
12495 done
12496 IFS="$lt_save_ifs"
12497 done
12498 : ${lt_cv_path_NM=no}
12501 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_NM" >&5
12502 $as_echo "$lt_cv_path_NM" >&6; }
12503 if test "$lt_cv_path_NM" != "no"; then
12504 NM="$lt_cv_path_NM"
12505 else
12506 # Didn't find any BSD compatible name lister, look for dumpbin.
12507 if test -n "$DUMPBIN"; then :
12508 # Let the user override the test.
12509 else
12510 if test -n "$ac_tool_prefix"; then
12511 for ac_prog in dumpbin "link -dump"
12513 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
12514 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
12515 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12516 $as_echo_n "checking for $ac_word... " >&6; }
12517 if test "${ac_cv_prog_DUMPBIN+set}" = set; then :
12518 $as_echo_n "(cached) " >&6
12519 else
12520 if test -n "$DUMPBIN"; then
12521 ac_cv_prog_DUMPBIN="$DUMPBIN" # Let the user override the test.
12522 else
12523 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12524 for as_dir in $PATH
12526 IFS=$as_save_IFS
12527 test -z "$as_dir" && as_dir=.
12528 for ac_exec_ext in '' $ac_executable_extensions; do
12529 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12530 ac_cv_prog_DUMPBIN="$ac_tool_prefix$ac_prog"
12531 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12532 break 2
12534 done
12535 done
12536 IFS=$as_save_IFS
12540 DUMPBIN=$ac_cv_prog_DUMPBIN
12541 if test -n "$DUMPBIN"; then
12542 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DUMPBIN" >&5
12543 $as_echo "$DUMPBIN" >&6; }
12544 else
12545 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12546 $as_echo "no" >&6; }
12550 test -n "$DUMPBIN" && break
12551 done
12553 if test -z "$DUMPBIN"; then
12554 ac_ct_DUMPBIN=$DUMPBIN
12555 for ac_prog in dumpbin "link -dump"
12557 # Extract the first word of "$ac_prog", so it can be a program name with args.
12558 set dummy $ac_prog; ac_word=$2
12559 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12560 $as_echo_n "checking for $ac_word... " >&6; }
12561 if test "${ac_cv_prog_ac_ct_DUMPBIN+set}" = set; then :
12562 $as_echo_n "(cached) " >&6
12563 else
12564 if test -n "$ac_ct_DUMPBIN"; then
12565 ac_cv_prog_ac_ct_DUMPBIN="$ac_ct_DUMPBIN" # Let the user override the test.
12566 else
12567 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12568 for as_dir in $PATH
12570 IFS=$as_save_IFS
12571 test -z "$as_dir" && as_dir=.
12572 for ac_exec_ext in '' $ac_executable_extensions; do
12573 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12574 ac_cv_prog_ac_ct_DUMPBIN="$ac_prog"
12575 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12576 break 2
12578 done
12579 done
12580 IFS=$as_save_IFS
12584 ac_ct_DUMPBIN=$ac_cv_prog_ac_ct_DUMPBIN
12585 if test -n "$ac_ct_DUMPBIN"; then
12586 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DUMPBIN" >&5
12587 $as_echo "$ac_ct_DUMPBIN" >&6; }
12588 else
12589 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12590 $as_echo "no" >&6; }
12594 test -n "$ac_ct_DUMPBIN" && break
12595 done
12597 if test "x$ac_ct_DUMPBIN" = x; then
12598 DUMPBIN=":"
12599 else
12600 case $cross_compiling:$ac_tool_warned in
12601 yes:)
12602 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
12603 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
12604 ac_tool_warned=yes ;;
12605 esac
12606 DUMPBIN=$ac_ct_DUMPBIN
12610 case `$DUMPBIN -symbols /dev/null 2>&1 | sed '1q'` in
12611 *COFF*)
12612 DUMPBIN="$DUMPBIN -symbols"
12615 DUMPBIN=:
12617 esac
12620 if test "$DUMPBIN" != ":"; then
12621 NM="$DUMPBIN"
12624 test -z "$NM" && NM=nm
12631 { $as_echo "$as_me:${as_lineno-$LINENO}: checking the name lister ($NM) interface" >&5
12632 $as_echo_n "checking the name lister ($NM) interface... " >&6; }
12633 if test "${lt_cv_nm_interface+set}" = set; then :
12634 $as_echo_n "(cached) " >&6
12635 else
12636 lt_cv_nm_interface="BSD nm"
12637 echo "int some_variable = 0;" > conftest.$ac_ext
12638 (eval echo "\"\$as_me:$LINENO: $ac_compile\"" >&5)
12639 (eval "$ac_compile" 2>conftest.err)
12640 cat conftest.err >&5
12641 (eval echo "\"\$as_me:$LINENO: $NM \\\"conftest.$ac_objext\\\"\"" >&5)
12642 (eval "$NM \"conftest.$ac_objext\"" 2>conftest.err > conftest.out)
12643 cat conftest.err >&5
12644 (eval echo "\"\$as_me:$LINENO: output\"" >&5)
12645 cat conftest.out >&5
12646 if $GREP 'External.*some_variable' conftest.out > /dev/null; then
12647 lt_cv_nm_interface="MS dumpbin"
12649 rm -f conftest*
12651 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_nm_interface" >&5
12652 $as_echo "$lt_cv_nm_interface" >&6; }
12654 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5
12655 $as_echo_n "checking whether ln -s works... " >&6; }
12656 LN_S=$as_ln_s
12657 if test "$LN_S" = "ln -s"; then
12658 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12659 $as_echo "yes" >&6; }
12660 else
12661 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5
12662 $as_echo "no, using $LN_S" >&6; }
12665 # find the maximum length of command line arguments
12666 { $as_echo "$as_me:${as_lineno-$LINENO}: checking the maximum length of command line arguments" >&5
12667 $as_echo_n "checking the maximum length of command line arguments... " >&6; }
12668 if test "${lt_cv_sys_max_cmd_len+set}" = set; then :
12669 $as_echo_n "(cached) " >&6
12670 else
12672 teststring="ABCD"
12674 case $build_os in
12675 msdosdjgpp*)
12676 # On DJGPP, this test can blow up pretty badly due to problems in libc
12677 # (any single argument exceeding 2000 bytes causes a buffer overrun
12678 # during glob expansion). Even if it were fixed, the result of this
12679 # check would be larger than it should be.
12680 lt_cv_sys_max_cmd_len=12288; # 12K is about right
12683 gnu*)
12684 # Under GNU Hurd, this test is not required because there is
12685 # no limit to the length of command line arguments.
12686 # Libtool will interpret -1 as no limit whatsoever
12687 lt_cv_sys_max_cmd_len=-1;
12690 cygwin* | mingw* | cegcc*)
12691 # On Win9x/ME, this test blows up -- it succeeds, but takes
12692 # about 5 minutes as the teststring grows exponentially.
12693 # Worse, since 9x/ME are not pre-emptively multitasking,
12694 # you end up with a "frozen" computer, even though with patience
12695 # the test eventually succeeds (with a max line length of 256k).
12696 # Instead, let's just punt: use the minimum linelength reported by
12697 # all of the supported platforms: 8192 (on NT/2K/XP).
12698 lt_cv_sys_max_cmd_len=8192;
12701 mint*)
12702 # On MiNT this can take a long time and run out of memory.
12703 lt_cv_sys_max_cmd_len=8192;
12706 amigaos*)
12707 # On AmigaOS with pdksh, this test takes hours, literally.
12708 # So we just punt and use a minimum line length of 8192.
12709 lt_cv_sys_max_cmd_len=8192;
12712 netbsd* | freebsd* | openbsd* | darwin* | dragonfly*)
12713 # This has been around since 386BSD, at least. Likely further.
12714 if test -x /sbin/sysctl; then
12715 lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
12716 elif test -x /usr/sbin/sysctl; then
12717 lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
12718 else
12719 lt_cv_sys_max_cmd_len=65536 # usable default for all BSDs
12721 # And add a safety zone
12722 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
12723 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
12726 interix*)
12727 # We know the value 262144 and hardcode it with a safety zone (like BSD)
12728 lt_cv_sys_max_cmd_len=196608
12731 osf*)
12732 # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
12733 # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
12734 # nice to cause kernel panics so lets avoid the loop below.
12735 # First set a reasonable default.
12736 lt_cv_sys_max_cmd_len=16384
12738 if test -x /sbin/sysconfig; then
12739 case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
12740 *1*) lt_cv_sys_max_cmd_len=-1 ;;
12741 esac
12744 sco3.2v5*)
12745 lt_cv_sys_max_cmd_len=102400
12747 sysv5* | sco5v6* | sysv4.2uw2*)
12748 kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
12749 if test -n "$kargmax"; then
12750 lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[ ]//'`
12751 else
12752 lt_cv_sys_max_cmd_len=32768
12756 lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null`
12757 if test -n "$lt_cv_sys_max_cmd_len"; then
12758 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
12759 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
12760 else
12761 # Make teststring a little bigger before we do anything with it.
12762 # a 1K string should be a reasonable start.
12763 for i in 1 2 3 4 5 6 7 8 ; do
12764 teststring=$teststring$teststring
12765 done
12766 SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
12767 # If test is not a shell built-in, we'll probably end up computing a
12768 # maximum length that is only half of the actual maximum length, but
12769 # we can't tell.
12770 while { test "X"`func_fallback_echo "$teststring$teststring" 2>/dev/null` \
12771 = "X$teststring$teststring"; } >/dev/null 2>&1 &&
12772 test $i != 17 # 1/2 MB should be enough
12774 i=`expr $i + 1`
12775 teststring=$teststring$teststring
12776 done
12777 # Only check the string length outside the loop.
12778 lt_cv_sys_max_cmd_len=`expr "X$teststring" : ".*" 2>&1`
12779 teststring=
12780 # Add a significant safety factor because C++ compilers can tack on
12781 # massive amounts of additional arguments before passing them to the
12782 # linker. It appears as though 1/2 is a usable value.
12783 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
12786 esac
12790 if test -n $lt_cv_sys_max_cmd_len ; then
12791 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_max_cmd_len" >&5
12792 $as_echo "$lt_cv_sys_max_cmd_len" >&6; }
12793 else
12794 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none" >&5
12795 $as_echo "none" >&6; }
12797 max_cmd_len=$lt_cv_sys_max_cmd_len
12804 : ${CP="cp -f"}
12805 : ${MV="mv -f"}
12806 : ${RM="rm -f"}
12808 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands some XSI constructs" >&5
12809 $as_echo_n "checking whether the shell understands some XSI constructs... " >&6; }
12810 # Try some XSI features
12811 xsi_shell=no
12812 ( _lt_dummy="a/b/c"
12813 test "${_lt_dummy##*/},${_lt_dummy%/*},"${_lt_dummy%"$_lt_dummy"}, \
12814 = c,a/b,, \
12815 && eval 'test $(( 1 + 1 )) -eq 2 \
12816 && test "${#_lt_dummy}" -eq 5' ) >/dev/null 2>&1 \
12817 && xsi_shell=yes
12818 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xsi_shell" >&5
12819 $as_echo "$xsi_shell" >&6; }
12822 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands \"+=\"" >&5
12823 $as_echo_n "checking whether the shell understands \"+=\"... " >&6; }
12824 lt_shell_append=no
12825 ( foo=bar; set foo baz; eval "$1+=\$2" && test "$foo" = barbaz ) \
12826 >/dev/null 2>&1 \
12827 && lt_shell_append=yes
12828 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_shell_append" >&5
12829 $as_echo "$lt_shell_append" >&6; }
12832 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
12833 lt_unset=unset
12834 else
12835 lt_unset=false
12842 # test EBCDIC or ASCII
12843 case `echo X|tr X '\101'` in
12844 A) # ASCII based system
12845 # \n is not interpreted correctly by Solaris 8 /usr/ucb/tr
12846 lt_SP2NL='tr \040 \012'
12847 lt_NL2SP='tr \015\012 \040\040'
12849 *) # EBCDIC based system
12850 lt_SP2NL='tr \100 \n'
12851 lt_NL2SP='tr \r\n \100\100'
12853 esac
12863 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $LD option to reload object files" >&5
12864 $as_echo_n "checking for $LD option to reload object files... " >&6; }
12865 if test "${lt_cv_ld_reload_flag+set}" = set; then :
12866 $as_echo_n "(cached) " >&6
12867 else
12868 lt_cv_ld_reload_flag='-r'
12870 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_reload_flag" >&5
12871 $as_echo "$lt_cv_ld_reload_flag" >&6; }
12872 reload_flag=$lt_cv_ld_reload_flag
12873 case $reload_flag in
12874 "" | " "*) ;;
12875 *) reload_flag=" $reload_flag" ;;
12876 esac
12877 reload_cmds='$LD$reload_flag -o $output$reload_objs'
12878 case $host_os in
12879 darwin*)
12880 if test "$GCC" = yes; then
12881 reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r -o $output$reload_objs'
12882 else
12883 reload_cmds='$LD$reload_flag -o $output$reload_objs'
12886 esac
12896 if test -n "$ac_tool_prefix"; then
12897 # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args.
12898 set dummy ${ac_tool_prefix}objdump; ac_word=$2
12899 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12900 $as_echo_n "checking for $ac_word... " >&6; }
12901 if test "${ac_cv_prog_OBJDUMP+set}" = set; then :
12902 $as_echo_n "(cached) " >&6
12903 else
12904 if test -n "$OBJDUMP"; then
12905 ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
12906 else
12907 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12908 for as_dir in $PATH
12910 IFS=$as_save_IFS
12911 test -z "$as_dir" && as_dir=.
12912 for ac_exec_ext in '' $ac_executable_extensions; do
12913 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12914 ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump"
12915 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12916 break 2
12918 done
12919 done
12920 IFS=$as_save_IFS
12924 OBJDUMP=$ac_cv_prog_OBJDUMP
12925 if test -n "$OBJDUMP"; then
12926 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5
12927 $as_echo "$OBJDUMP" >&6; }
12928 else
12929 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12930 $as_echo "no" >&6; }
12935 if test -z "$ac_cv_prog_OBJDUMP"; then
12936 ac_ct_OBJDUMP=$OBJDUMP
12937 # Extract the first word of "objdump", so it can be a program name with args.
12938 set dummy objdump; ac_word=$2
12939 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12940 $as_echo_n "checking for $ac_word... " >&6; }
12941 if test "${ac_cv_prog_ac_ct_OBJDUMP+set}" = set; then :
12942 $as_echo_n "(cached) " >&6
12943 else
12944 if test -n "$ac_ct_OBJDUMP"; then
12945 ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test.
12946 else
12947 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12948 for as_dir in $PATH
12950 IFS=$as_save_IFS
12951 test -z "$as_dir" && as_dir=.
12952 for ac_exec_ext in '' $ac_executable_extensions; do
12953 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12954 ac_cv_prog_ac_ct_OBJDUMP="objdump"
12955 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12956 break 2
12958 done
12959 done
12960 IFS=$as_save_IFS
12964 ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP
12965 if test -n "$ac_ct_OBJDUMP"; then
12966 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5
12967 $as_echo "$ac_ct_OBJDUMP" >&6; }
12968 else
12969 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12970 $as_echo "no" >&6; }
12973 if test "x$ac_ct_OBJDUMP" = x; then
12974 OBJDUMP="false"
12975 else
12976 case $cross_compiling:$ac_tool_warned in
12977 yes:)
12978 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
12979 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
12980 ac_tool_warned=yes ;;
12981 esac
12982 OBJDUMP=$ac_ct_OBJDUMP
12984 else
12985 OBJDUMP="$ac_cv_prog_OBJDUMP"
12988 test -z "$OBJDUMP" && OBJDUMP=objdump
12998 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to recognize dependent libraries" >&5
12999 $as_echo_n "checking how to recognize dependent libraries... " >&6; }
13000 if test "${lt_cv_deplibs_check_method+set}" = set; then :
13001 $as_echo_n "(cached) " >&6
13002 else
13003 lt_cv_file_magic_cmd='$MAGIC_CMD'
13004 lt_cv_file_magic_test_file=
13005 lt_cv_deplibs_check_method='unknown'
13006 # Need to set the preceding variable on all platforms that support
13007 # interlibrary dependencies.
13008 # 'none' -- dependencies not supported.
13009 # `unknown' -- same as none, but documents that we really don't know.
13010 # 'pass_all' -- all dependencies passed with no checks.
13011 # 'test_compile' -- check by making test program.
13012 # 'file_magic [[regex]]' -- check by looking for files in library path
13013 # which responds to the $file_magic_cmd with a given extended regex.
13014 # If you have `file' or equivalent on your system and you're not sure
13015 # whether `pass_all' will *always* work, you probably want this one.
13017 case $host_os in
13018 aix[4-9]*)
13019 lt_cv_deplibs_check_method=pass_all
13022 beos*)
13023 lt_cv_deplibs_check_method=pass_all
13026 bsdi[45]*)
13027 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
13028 lt_cv_file_magic_cmd='/usr/bin/file -L'
13029 lt_cv_file_magic_test_file=/shlib/libc.so
13032 cygwin*)
13033 # func_win32_libid is a shell function defined in ltmain.sh
13034 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
13035 lt_cv_file_magic_cmd='func_win32_libid'
13038 mingw* | pw32*)
13039 # Base MSYS/MinGW do not provide the 'file' command needed by
13040 # func_win32_libid shell function, so use a weaker test based on 'objdump',
13041 # unless we find 'file', for example because we are cross-compiling.
13042 # func_win32_libid assumes BSD nm, so disallow it if using MS dumpbin.
13043 if ( test "$lt_cv_nm_interface" = "BSD nm" && file / ) >/dev/null 2>&1; then
13044 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
13045 lt_cv_file_magic_cmd='func_win32_libid'
13046 else
13047 lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?'
13048 lt_cv_file_magic_cmd='$OBJDUMP -f'
13052 cegcc*)
13053 # use the weaker test based on 'objdump'. See mingw*.
13054 lt_cv_deplibs_check_method='file_magic file format pe-arm-.*little(.*architecture: arm)?'
13055 lt_cv_file_magic_cmd='$OBJDUMP -f'
13058 darwin* | rhapsody*)
13059 lt_cv_deplibs_check_method=pass_all
13062 freebsd* | dragonfly*)
13063 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
13064 case $host_cpu in
13065 i*86 )
13066 # Not sure whether the presence of OpenBSD here was a mistake.
13067 # Let's accept both of them until this is cleared up.
13068 lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
13069 lt_cv_file_magic_cmd=/usr/bin/file
13070 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
13072 esac
13073 else
13074 lt_cv_deplibs_check_method=pass_all
13078 gnu*)
13079 lt_cv_deplibs_check_method=pass_all
13082 haiku*)
13083 lt_cv_deplibs_check_method=pass_all
13086 hpux10.20* | hpux11*)
13087 lt_cv_file_magic_cmd=/usr/bin/file
13088 case $host_cpu in
13089 ia64*)
13090 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
13091 lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
13093 hppa*64*)
13094 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]'
13095 lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
13098 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9]\.[0-9]) shared library'
13099 lt_cv_file_magic_test_file=/usr/lib/libc.sl
13101 esac
13104 interix[3-9]*)
13105 # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
13106 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
13109 irix5* | irix6* | nonstopux*)
13110 case $LD in
13111 *-32|*"-32 ") libmagic=32-bit;;
13112 *-n32|*"-n32 ") libmagic=N32;;
13113 *-64|*"-64 ") libmagic=64-bit;;
13114 *) libmagic=never-match;;
13115 esac
13116 lt_cv_deplibs_check_method=pass_all
13119 # This must be Linux ELF.
13120 linux* | k*bsd*-gnu | kopensolaris*-gnu)
13121 lt_cv_deplibs_check_method=pass_all
13124 netbsd*)
13125 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
13126 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
13127 else
13128 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
13132 newos6*)
13133 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
13134 lt_cv_file_magic_cmd=/usr/bin/file
13135 lt_cv_file_magic_test_file=/usr/lib/libnls.so
13138 *nto* | *qnx*)
13139 lt_cv_deplibs_check_method=pass_all
13142 openbsd*)
13143 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
13144 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
13145 else
13146 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
13150 osf3* | osf4* | osf5*)
13151 lt_cv_deplibs_check_method=pass_all
13154 rdos*)
13155 lt_cv_deplibs_check_method=pass_all
13158 solaris*)
13159 lt_cv_deplibs_check_method=pass_all
13162 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
13163 lt_cv_deplibs_check_method=pass_all
13166 sysv4 | sysv4.3*)
13167 case $host_vendor in
13168 motorola)
13169 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]'
13170 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
13172 ncr)
13173 lt_cv_deplibs_check_method=pass_all
13175 sequent)
13176 lt_cv_file_magic_cmd='/bin/file'
13177 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
13179 sni)
13180 lt_cv_file_magic_cmd='/bin/file'
13181 lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
13182 lt_cv_file_magic_test_file=/lib/libc.so
13184 siemens)
13185 lt_cv_deplibs_check_method=pass_all
13188 lt_cv_deplibs_check_method=pass_all
13190 esac
13193 tpf*)
13194 lt_cv_deplibs_check_method=pass_all
13196 esac
13199 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_deplibs_check_method" >&5
13200 $as_echo "$lt_cv_deplibs_check_method" >&6; }
13201 file_magic_cmd=$lt_cv_file_magic_cmd
13202 deplibs_check_method=$lt_cv_deplibs_check_method
13203 test -z "$deplibs_check_method" && deplibs_check_method=unknown
13216 if test -n "$ac_tool_prefix"; then
13217 # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
13218 set dummy ${ac_tool_prefix}ar; ac_word=$2
13219 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13220 $as_echo_n "checking for $ac_word... " >&6; }
13221 if test "${ac_cv_prog_AR+set}" = set; then :
13222 $as_echo_n "(cached) " >&6
13223 else
13224 if test -n "$AR"; then
13225 ac_cv_prog_AR="$AR" # Let the user override the test.
13226 else
13227 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13228 for as_dir in $PATH
13230 IFS=$as_save_IFS
13231 test -z "$as_dir" && as_dir=.
13232 for ac_exec_ext in '' $ac_executable_extensions; do
13233 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
13234 ac_cv_prog_AR="${ac_tool_prefix}ar"
13235 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13236 break 2
13238 done
13239 done
13240 IFS=$as_save_IFS
13244 AR=$ac_cv_prog_AR
13245 if test -n "$AR"; then
13246 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
13247 $as_echo "$AR" >&6; }
13248 else
13249 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13250 $as_echo "no" >&6; }
13255 if test -z "$ac_cv_prog_AR"; then
13256 ac_ct_AR=$AR
13257 # Extract the first word of "ar", so it can be a program name with args.
13258 set dummy ar; ac_word=$2
13259 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13260 $as_echo_n "checking for $ac_word... " >&6; }
13261 if test "${ac_cv_prog_ac_ct_AR+set}" = set; then :
13262 $as_echo_n "(cached) " >&6
13263 else
13264 if test -n "$ac_ct_AR"; then
13265 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
13266 else
13267 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13268 for as_dir in $PATH
13270 IFS=$as_save_IFS
13271 test -z "$as_dir" && as_dir=.
13272 for ac_exec_ext in '' $ac_executable_extensions; do
13273 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
13274 ac_cv_prog_ac_ct_AR="ar"
13275 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13276 break 2
13278 done
13279 done
13280 IFS=$as_save_IFS
13284 ac_ct_AR=$ac_cv_prog_ac_ct_AR
13285 if test -n "$ac_ct_AR"; then
13286 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5
13287 $as_echo "$ac_ct_AR" >&6; }
13288 else
13289 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13290 $as_echo "no" >&6; }
13293 if test "x$ac_ct_AR" = x; then
13294 AR="false"
13295 else
13296 case $cross_compiling:$ac_tool_warned in
13297 yes:)
13298 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
13299 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
13300 ac_tool_warned=yes ;;
13301 esac
13302 AR=$ac_ct_AR
13304 else
13305 AR="$ac_cv_prog_AR"
13308 test -z "$AR" && AR=ar
13309 test -z "$AR_FLAGS" && AR_FLAGS=cru
13321 if test -n "$ac_tool_prefix"; then
13322 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
13323 set dummy ${ac_tool_prefix}strip; ac_word=$2
13324 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13325 $as_echo_n "checking for $ac_word... " >&6; }
13326 if test "${ac_cv_prog_STRIP+set}" = set; then :
13327 $as_echo_n "(cached) " >&6
13328 else
13329 if test -n "$STRIP"; then
13330 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
13331 else
13332 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13333 for as_dir in $PATH
13335 IFS=$as_save_IFS
13336 test -z "$as_dir" && as_dir=.
13337 for ac_exec_ext in '' $ac_executable_extensions; do
13338 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
13339 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
13340 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13341 break 2
13343 done
13344 done
13345 IFS=$as_save_IFS
13349 STRIP=$ac_cv_prog_STRIP
13350 if test -n "$STRIP"; then
13351 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
13352 $as_echo "$STRIP" >&6; }
13353 else
13354 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13355 $as_echo "no" >&6; }
13360 if test -z "$ac_cv_prog_STRIP"; then
13361 ac_ct_STRIP=$STRIP
13362 # Extract the first word of "strip", so it can be a program name with args.
13363 set dummy strip; ac_word=$2
13364 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13365 $as_echo_n "checking for $ac_word... " >&6; }
13366 if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then :
13367 $as_echo_n "(cached) " >&6
13368 else
13369 if test -n "$ac_ct_STRIP"; then
13370 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
13371 else
13372 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13373 for as_dir in $PATH
13375 IFS=$as_save_IFS
13376 test -z "$as_dir" && as_dir=.
13377 for ac_exec_ext in '' $ac_executable_extensions; do
13378 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
13379 ac_cv_prog_ac_ct_STRIP="strip"
13380 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13381 break 2
13383 done
13384 done
13385 IFS=$as_save_IFS
13389 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
13390 if test -n "$ac_ct_STRIP"; then
13391 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
13392 $as_echo "$ac_ct_STRIP" >&6; }
13393 else
13394 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13395 $as_echo "no" >&6; }
13398 if test "x$ac_ct_STRIP" = x; then
13399 STRIP=":"
13400 else
13401 case $cross_compiling:$ac_tool_warned in
13402 yes:)
13403 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
13404 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
13405 ac_tool_warned=yes ;;
13406 esac
13407 STRIP=$ac_ct_STRIP
13409 else
13410 STRIP="$ac_cv_prog_STRIP"
13413 test -z "$STRIP" && STRIP=:
13420 if test -n "$ac_tool_prefix"; then
13421 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
13422 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
13423 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13424 $as_echo_n "checking for $ac_word... " >&6; }
13425 if test "${ac_cv_prog_RANLIB+set}" = set; then :
13426 $as_echo_n "(cached) " >&6
13427 else
13428 if test -n "$RANLIB"; then
13429 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
13430 else
13431 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13432 for as_dir in $PATH
13434 IFS=$as_save_IFS
13435 test -z "$as_dir" && as_dir=.
13436 for ac_exec_ext in '' $ac_executable_extensions; do
13437 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
13438 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
13439 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13440 break 2
13442 done
13443 done
13444 IFS=$as_save_IFS
13448 RANLIB=$ac_cv_prog_RANLIB
13449 if test -n "$RANLIB"; then
13450 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
13451 $as_echo "$RANLIB" >&6; }
13452 else
13453 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13454 $as_echo "no" >&6; }
13459 if test -z "$ac_cv_prog_RANLIB"; then
13460 ac_ct_RANLIB=$RANLIB
13461 # Extract the first word of "ranlib", so it can be a program name with args.
13462 set dummy ranlib; ac_word=$2
13463 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13464 $as_echo_n "checking for $ac_word... " >&6; }
13465 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then :
13466 $as_echo_n "(cached) " >&6
13467 else
13468 if test -n "$ac_ct_RANLIB"; then
13469 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
13470 else
13471 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13472 for as_dir in $PATH
13474 IFS=$as_save_IFS
13475 test -z "$as_dir" && as_dir=.
13476 for ac_exec_ext in '' $ac_executable_extensions; do
13477 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
13478 ac_cv_prog_ac_ct_RANLIB="ranlib"
13479 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13480 break 2
13482 done
13483 done
13484 IFS=$as_save_IFS
13488 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
13489 if test -n "$ac_ct_RANLIB"; then
13490 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
13491 $as_echo "$ac_ct_RANLIB" >&6; }
13492 else
13493 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13494 $as_echo "no" >&6; }
13497 if test "x$ac_ct_RANLIB" = x; then
13498 RANLIB=":"
13499 else
13500 case $cross_compiling:$ac_tool_warned in
13501 yes:)
13502 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
13503 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
13504 ac_tool_warned=yes ;;
13505 esac
13506 RANLIB=$ac_ct_RANLIB
13508 else
13509 RANLIB="$ac_cv_prog_RANLIB"
13512 test -z "$RANLIB" && RANLIB=:
13519 # Determine commands to create old-style static archives.
13520 old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs'
13521 old_postinstall_cmds='chmod 644 $oldlib'
13522 old_postuninstall_cmds=
13524 if test -n "$RANLIB"; then
13525 case $host_os in
13526 openbsd*)
13527 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$oldlib"
13530 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$oldlib"
13532 esac
13533 old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib"
13536 case $host_os in
13537 darwin*)
13538 lock_old_archive_extraction=yes ;;
13540 lock_old_archive_extraction=no ;;
13541 esac
13581 # If no C compiler was specified, use CC.
13582 LTCC=${LTCC-"$CC"}
13584 # If no C compiler flags were specified, use CFLAGS.
13585 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
13587 # Allow CC to be a program name with arguments.
13588 compiler=$CC
13591 # Check for command to grab the raw symbol name followed by C symbol from nm.
13592 { $as_echo "$as_me:${as_lineno-$LINENO}: checking command to parse $NM output from $compiler object" >&5
13593 $as_echo_n "checking command to parse $NM output from $compiler object... " >&6; }
13594 if test "${lt_cv_sys_global_symbol_pipe+set}" = set; then :
13595 $as_echo_n "(cached) " >&6
13596 else
13598 # These are sane defaults that work on at least a few old systems.
13599 # [They come from Ultrix. What could be older than Ultrix?!! ;)]
13601 # Character class describing NM global symbol codes.
13602 symcode='[BCDEGRST]'
13604 # Regexp to match symbols that can be accessed directly from C.
13605 sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
13607 # Define system-specific variables.
13608 case $host_os in
13609 aix*)
13610 symcode='[BCDT]'
13612 cygwin* | mingw* | pw32* | cegcc*)
13613 symcode='[ABCDGISTW]'
13615 hpux*)
13616 if test "$host_cpu" = ia64; then
13617 symcode='[ABCDEGRST]'
13620 irix* | nonstopux*)
13621 symcode='[BCDEGRST]'
13623 osf*)
13624 symcode='[BCDEGQRST]'
13626 solaris*)
13627 symcode='[BDRT]'
13629 sco3.2v5*)
13630 symcode='[DT]'
13632 sysv4.2uw2*)
13633 symcode='[DT]'
13635 sysv5* | sco5v6* | unixware* | OpenUNIX*)
13636 symcode='[ABDT]'
13638 sysv4)
13639 symcode='[DFNSTU]'
13641 esac
13643 # If we're using GNU nm, then use its standard symbol codes.
13644 case `$NM -V 2>&1` in
13645 *GNU* | *'with BFD'*)
13646 symcode='[ABCDGIRSTW]' ;;
13647 esac
13649 # Transform an extracted symbol line into a proper C declaration.
13650 # Some systems (esp. on ia64) link data and code symbols differently,
13651 # so use this general approach.
13652 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
13654 # Transform an extracted symbol line into symbol name and symbol address
13655 lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([^ ]*\) $/ {\\\"\1\\\", (void *) 0},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/ {\"\2\", (void *) \&\2},/p'"
13656 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'"
13658 # Handle CRLF in mingw tool chain
13659 opt_cr=
13660 case $build_os in
13661 mingw*)
13662 opt_cr=`$ECHO 'x\{0,1\}' | tr x '\015'` # option cr in regexp
13664 esac
13666 # Try without a prefix underscore, then with it.
13667 for ac_symprfx in "" "_"; do
13669 # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
13670 symxfrm="\\1 $ac_symprfx\\2 \\2"
13672 # Write the raw and C identifiers.
13673 if test "$lt_cv_nm_interface" = "MS dumpbin"; then
13674 # Fake it for dumpbin and say T for any non-static function
13675 # and D for any global variable.
13676 # Also find C++ and __fastcall symbols from MSVC++,
13677 # which start with @ or ?.
13678 lt_cv_sys_global_symbol_pipe="$AWK '"\
13679 " {last_section=section; section=\$ 3};"\
13680 " /Section length .*#relocs.*(pick any)/{hide[last_section]=1};"\
13681 " \$ 0!~/External *\|/{next};"\
13682 " / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};"\
13683 " {if(hide[section]) next};"\
13684 " {f=0}; \$ 0~/\(\).*\|/{f=1}; {printf f ? \"T \" : \"D \"};"\
13685 " {split(\$ 0, a, /\||\r/); split(a[2], s)};"\
13686 " s[1]~/^[@?]/{print s[1], s[1]; next};"\
13687 " s[1]~prfx {split(s[1],t,\"@\"); print t[1], substr(t[1],length(prfx))}"\
13688 " ' prfx=^$ac_symprfx"
13689 else
13690 lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
13693 # Check to see that the pipe works correctly.
13694 pipe_works=no
13696 rm -f conftest*
13697 cat > conftest.$ac_ext <<_LT_EOF
13698 #ifdef __cplusplus
13699 extern "C" {
13700 #endif
13701 char nm_test_var;
13702 void nm_test_func(void);
13703 void nm_test_func(void){}
13704 #ifdef __cplusplus
13706 #endif
13707 int main(){nm_test_var='a';nm_test_func();return(0);}
13708 _LT_EOF
13710 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
13711 (eval $ac_compile) 2>&5
13712 ac_status=$?
13713 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
13714 test $ac_status = 0; }; then
13715 # Now try to grab the symbols.
13716 nlist=conftest.nm
13717 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist\""; } >&5
13718 (eval $NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist) 2>&5
13719 ac_status=$?
13720 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
13721 test $ac_status = 0; } && test -s "$nlist"; then
13722 # Try sorting and uniquifying the output.
13723 if sort "$nlist" | uniq > "$nlist"T; then
13724 mv -f "$nlist"T "$nlist"
13725 else
13726 rm -f "$nlist"T
13729 # Make sure that we snagged all the symbols we need.
13730 if $GREP ' nm_test_var$' "$nlist" >/dev/null; then
13731 if $GREP ' nm_test_func$' "$nlist" >/dev/null; then
13732 cat <<_LT_EOF > conftest.$ac_ext
13733 #ifdef __cplusplus
13734 extern "C" {
13735 #endif
13737 _LT_EOF
13738 # Now generate the symbol file.
13739 eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | $GREP -v main >> conftest.$ac_ext'
13741 cat <<_LT_EOF >> conftest.$ac_ext
13743 /* The mapping between symbol names and symbols. */
13744 const struct {
13745 const char *name;
13746 void *address;
13748 lt__PROGRAM__LTX_preloaded_symbols[] =
13750 { "@PROGRAM@", (void *) 0 },
13751 _LT_EOF
13752 $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/ {\"\2\", (void *) \&\2},/" < "$nlist" | $GREP -v main >> conftest.$ac_ext
13753 cat <<\_LT_EOF >> conftest.$ac_ext
13754 {0, (void *) 0}
13757 /* This works around a problem in FreeBSD linker */
13758 #ifdef FREEBSD_WORKAROUND
13759 static const void *lt_preloaded_setup() {
13760 return lt__PROGRAM__LTX_preloaded_symbols;
13762 #endif
13764 #ifdef __cplusplus
13766 #endif
13767 _LT_EOF
13768 # Now try linking the two files.
13769 mv conftest.$ac_objext conftstm.$ac_objext
13770 lt_save_LIBS="$LIBS"
13771 lt_save_CFLAGS="$CFLAGS"
13772 LIBS="conftstm.$ac_objext"
13773 CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
13774 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
13775 (eval $ac_link) 2>&5
13776 ac_status=$?
13777 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
13778 test $ac_status = 0; } && test -s conftest${ac_exeext}; then
13779 pipe_works=yes
13781 LIBS="$lt_save_LIBS"
13782 CFLAGS="$lt_save_CFLAGS"
13783 else
13784 echo "cannot find nm_test_func in $nlist" >&5
13786 else
13787 echo "cannot find nm_test_var in $nlist" >&5
13789 else
13790 echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
13792 else
13793 echo "$progname: failed program was:" >&5
13794 cat conftest.$ac_ext >&5
13796 rm -rf conftest* conftst*
13798 # Do not use the global_symbol_pipe unless it works.
13799 if test "$pipe_works" = yes; then
13800 break
13801 else
13802 lt_cv_sys_global_symbol_pipe=
13804 done
13808 if test -z "$lt_cv_sys_global_symbol_pipe"; then
13809 lt_cv_sys_global_symbol_to_cdecl=
13811 if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
13812 { $as_echo "$as_me:${as_lineno-$LINENO}: result: failed" >&5
13813 $as_echo "failed" >&6; }
13814 else
13815 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5
13816 $as_echo "ok" >&6; }
13840 # Check whether --enable-libtool-lock was given.
13841 if test "${enable_libtool_lock+set}" = set; then :
13842 enableval=$enable_libtool_lock;
13845 test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
13847 # Some flags need to be propagated to the compiler or linker for good
13848 # libtool support.
13849 case $host in
13850 ia64-*-hpux*)
13851 # Find out which ABI we are using.
13852 echo 'int i;' > conftest.$ac_ext
13853 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
13854 (eval $ac_compile) 2>&5
13855 ac_status=$?
13856 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
13857 test $ac_status = 0; }; then
13858 case `/usr/bin/file conftest.$ac_objext` in
13859 *ELF-32*)
13860 HPUX_IA64_MODE="32"
13862 *ELF-64*)
13863 HPUX_IA64_MODE="64"
13865 esac
13867 rm -rf conftest*
13869 *-*-irix6*)
13870 # Find out which ABI we are using.
13871 echo '#line '$LINENO' "configure"' > conftest.$ac_ext
13872 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
13873 (eval $ac_compile) 2>&5
13874 ac_status=$?
13875 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
13876 test $ac_status = 0; }; then
13877 if test "$lt_cv_prog_gnu_ld" = yes; then
13878 case `/usr/bin/file conftest.$ac_objext` in
13879 *32-bit*)
13880 LD="${LD-ld} -melf32bsmip"
13882 *N32*)
13883 LD="${LD-ld} -melf32bmipn32"
13885 *64-bit*)
13886 LD="${LD-ld} -melf64bmip"
13888 esac
13889 else
13890 case `/usr/bin/file conftest.$ac_objext` in
13891 *32-bit*)
13892 LD="${LD-ld} -32"
13894 *N32*)
13895 LD="${LD-ld} -n32"
13897 *64-bit*)
13898 LD="${LD-ld} -64"
13900 esac
13903 rm -rf conftest*
13906 x86_64-*kfreebsd*-gnu|x86_64-*linux*|powerpc*-*linux*| \
13907 s390*-*linux*|s390*-*tpf*|sparc*-*linux*)
13908 # Find out which ABI we are using.
13909 echo 'int i;' > conftest.$ac_ext
13910 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
13911 (eval $ac_compile) 2>&5
13912 ac_status=$?
13913 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
13914 test $ac_status = 0; }; then
13915 case `/usr/bin/file conftest.o` in
13916 *32-bit*)
13917 case $host in
13918 x86_64-*kfreebsd*-gnu)
13919 LD="${LD-ld} -m elf_i386_fbsd"
13921 x86_64-*linux*)
13922 case `/usr/bin/file conftest.o` in
13923 *x86-64*)
13924 LD="${LD-ld} -m elf32_x86_64"
13927 LD="${LD-ld} -m elf_i386"
13929 esac
13931 powerpc64le-*linux*)
13932 LD="${LD-ld} -m elf32lppclinux"
13934 powerpc64-*linux*)
13935 LD="${LD-ld} -m elf32ppclinux"
13937 s390x-*linux*)
13938 LD="${LD-ld} -m elf_s390"
13940 sparc64-*linux*)
13941 LD="${LD-ld} -m elf32_sparc"
13943 esac
13945 *64-bit*)
13946 case $host in
13947 x86_64-*kfreebsd*-gnu)
13948 LD="${LD-ld} -m elf_x86_64_fbsd"
13950 x86_64-*linux*)
13951 LD="${LD-ld} -m elf_x86_64"
13953 powerpcle-*linux*)
13954 LD="${LD-ld} -m elf64lppc"
13956 powerpc-*linux*)
13957 LD="${LD-ld} -m elf64ppc"
13959 s390*-*linux*|s390*-*tpf*)
13960 LD="${LD-ld} -m elf64_s390"
13962 sparc*-*linux*)
13963 LD="${LD-ld} -m elf64_sparc"
13965 esac
13967 esac
13969 rm -rf conftest*
13972 *-*-sco3.2v5*)
13973 # On SCO OpenServer 5, we need -belf to get full-featured binaries.
13974 SAVE_CFLAGS="$CFLAGS"
13975 CFLAGS="$CFLAGS -belf"
13976 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler needs -belf" >&5
13977 $as_echo_n "checking whether the C compiler needs -belf... " >&6; }
13978 if test "${lt_cv_cc_needs_belf+set}" = set; then :
13979 $as_echo_n "(cached) " >&6
13980 else
13981 ac_ext=c
13982 ac_cpp='$CPP $CPPFLAGS'
13983 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
13984 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13985 ac_compiler_gnu=$ac_cv_c_compiler_gnu
13987 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13988 /* end confdefs.h. */
13991 main ()
13995 return 0;
13997 _ACEOF
13998 if ac_fn_c_try_link "$LINENO"; then :
13999 lt_cv_cc_needs_belf=yes
14000 else
14001 lt_cv_cc_needs_belf=no
14003 rm -f core conftest.err conftest.$ac_objext \
14004 conftest$ac_exeext conftest.$ac_ext
14005 ac_ext=c
14006 ac_cpp='$CPP $CPPFLAGS'
14007 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
14008 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
14009 ac_compiler_gnu=$ac_cv_c_compiler_gnu
14012 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_cc_needs_belf" >&5
14013 $as_echo "$lt_cv_cc_needs_belf" >&6; }
14014 if test x"$lt_cv_cc_needs_belf" != x"yes"; then
14015 # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
14016 CFLAGS="$SAVE_CFLAGS"
14019 sparc*-*solaris*)
14020 # Find out which ABI we are using.
14021 echo 'int i;' > 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 case `/usr/bin/file conftest.o` in
14028 *64-bit*)
14029 case $lt_cv_prog_gnu_ld in
14030 yes*) LD="${LD-ld} -m elf64_sparc" ;;
14032 if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then
14033 LD="${LD-ld} -64"
14036 esac
14038 esac
14040 rm -rf conftest*
14042 esac
14044 need_locks="$enable_libtool_lock"
14047 case $host_os in
14048 rhapsody* | darwin*)
14049 if test -n "$ac_tool_prefix"; then
14050 # Extract the first word of "${ac_tool_prefix}dsymutil", so it can be a program name with args.
14051 set dummy ${ac_tool_prefix}dsymutil; ac_word=$2
14052 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
14053 $as_echo_n "checking for $ac_word... " >&6; }
14054 if test "${ac_cv_prog_DSYMUTIL+set}" = set; then :
14055 $as_echo_n "(cached) " >&6
14056 else
14057 if test -n "$DSYMUTIL"; then
14058 ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test.
14059 else
14060 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14061 for as_dir in $PATH
14063 IFS=$as_save_IFS
14064 test -z "$as_dir" && as_dir=.
14065 for ac_exec_ext in '' $ac_executable_extensions; do
14066 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
14067 ac_cv_prog_DSYMUTIL="${ac_tool_prefix}dsymutil"
14068 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
14069 break 2
14071 done
14072 done
14073 IFS=$as_save_IFS
14077 DSYMUTIL=$ac_cv_prog_DSYMUTIL
14078 if test -n "$DSYMUTIL"; then
14079 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DSYMUTIL" >&5
14080 $as_echo "$DSYMUTIL" >&6; }
14081 else
14082 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14083 $as_echo "no" >&6; }
14088 if test -z "$ac_cv_prog_DSYMUTIL"; then
14089 ac_ct_DSYMUTIL=$DSYMUTIL
14090 # Extract the first word of "dsymutil", so it can be a program name with args.
14091 set dummy dsymutil; ac_word=$2
14092 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
14093 $as_echo_n "checking for $ac_word... " >&6; }
14094 if test "${ac_cv_prog_ac_ct_DSYMUTIL+set}" = set; then :
14095 $as_echo_n "(cached) " >&6
14096 else
14097 if test -n "$ac_ct_DSYMUTIL"; then
14098 ac_cv_prog_ac_ct_DSYMUTIL="$ac_ct_DSYMUTIL" # Let the user override the test.
14099 else
14100 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14101 for as_dir in $PATH
14103 IFS=$as_save_IFS
14104 test -z "$as_dir" && as_dir=.
14105 for ac_exec_ext in '' $ac_executable_extensions; do
14106 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
14107 ac_cv_prog_ac_ct_DSYMUTIL="dsymutil"
14108 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
14109 break 2
14111 done
14112 done
14113 IFS=$as_save_IFS
14117 ac_ct_DSYMUTIL=$ac_cv_prog_ac_ct_DSYMUTIL
14118 if test -n "$ac_ct_DSYMUTIL"; then
14119 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DSYMUTIL" >&5
14120 $as_echo "$ac_ct_DSYMUTIL" >&6; }
14121 else
14122 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14123 $as_echo "no" >&6; }
14126 if test "x$ac_ct_DSYMUTIL" = x; then
14127 DSYMUTIL=":"
14128 else
14129 case $cross_compiling:$ac_tool_warned in
14130 yes:)
14131 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
14132 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
14133 ac_tool_warned=yes ;;
14134 esac
14135 DSYMUTIL=$ac_ct_DSYMUTIL
14137 else
14138 DSYMUTIL="$ac_cv_prog_DSYMUTIL"
14141 if test -n "$ac_tool_prefix"; then
14142 # Extract the first word of "${ac_tool_prefix}nmedit", so it can be a program name with args.
14143 set dummy ${ac_tool_prefix}nmedit; ac_word=$2
14144 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
14145 $as_echo_n "checking for $ac_word... " >&6; }
14146 if test "${ac_cv_prog_NMEDIT+set}" = set; then :
14147 $as_echo_n "(cached) " >&6
14148 else
14149 if test -n "$NMEDIT"; then
14150 ac_cv_prog_NMEDIT="$NMEDIT" # Let the user override the test.
14151 else
14152 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14153 for as_dir in $PATH
14155 IFS=$as_save_IFS
14156 test -z "$as_dir" && as_dir=.
14157 for ac_exec_ext in '' $ac_executable_extensions; do
14158 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
14159 ac_cv_prog_NMEDIT="${ac_tool_prefix}nmedit"
14160 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
14161 break 2
14163 done
14164 done
14165 IFS=$as_save_IFS
14169 NMEDIT=$ac_cv_prog_NMEDIT
14170 if test -n "$NMEDIT"; then
14171 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NMEDIT" >&5
14172 $as_echo "$NMEDIT" >&6; }
14173 else
14174 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14175 $as_echo "no" >&6; }
14180 if test -z "$ac_cv_prog_NMEDIT"; then
14181 ac_ct_NMEDIT=$NMEDIT
14182 # Extract the first word of "nmedit", so it can be a program name with args.
14183 set dummy nmedit; ac_word=$2
14184 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
14185 $as_echo_n "checking for $ac_word... " >&6; }
14186 if test "${ac_cv_prog_ac_ct_NMEDIT+set}" = set; then :
14187 $as_echo_n "(cached) " >&6
14188 else
14189 if test -n "$ac_ct_NMEDIT"; then
14190 ac_cv_prog_ac_ct_NMEDIT="$ac_ct_NMEDIT" # Let the user override the test.
14191 else
14192 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14193 for as_dir in $PATH
14195 IFS=$as_save_IFS
14196 test -z "$as_dir" && as_dir=.
14197 for ac_exec_ext in '' $ac_executable_extensions; do
14198 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
14199 ac_cv_prog_ac_ct_NMEDIT="nmedit"
14200 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
14201 break 2
14203 done
14204 done
14205 IFS=$as_save_IFS
14209 ac_ct_NMEDIT=$ac_cv_prog_ac_ct_NMEDIT
14210 if test -n "$ac_ct_NMEDIT"; then
14211 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_NMEDIT" >&5
14212 $as_echo "$ac_ct_NMEDIT" >&6; }
14213 else
14214 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14215 $as_echo "no" >&6; }
14218 if test "x$ac_ct_NMEDIT" = x; then
14219 NMEDIT=":"
14220 else
14221 case $cross_compiling:$ac_tool_warned in
14222 yes:)
14223 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
14224 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
14225 ac_tool_warned=yes ;;
14226 esac
14227 NMEDIT=$ac_ct_NMEDIT
14229 else
14230 NMEDIT="$ac_cv_prog_NMEDIT"
14233 if test -n "$ac_tool_prefix"; then
14234 # Extract the first word of "${ac_tool_prefix}lipo", so it can be a program name with args.
14235 set dummy ${ac_tool_prefix}lipo; ac_word=$2
14236 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
14237 $as_echo_n "checking for $ac_word... " >&6; }
14238 if test "${ac_cv_prog_LIPO+set}" = set; then :
14239 $as_echo_n "(cached) " >&6
14240 else
14241 if test -n "$LIPO"; then
14242 ac_cv_prog_LIPO="$LIPO" # Let the user override the test.
14243 else
14244 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14245 for as_dir in $PATH
14247 IFS=$as_save_IFS
14248 test -z "$as_dir" && as_dir=.
14249 for ac_exec_ext in '' $ac_executable_extensions; do
14250 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
14251 ac_cv_prog_LIPO="${ac_tool_prefix}lipo"
14252 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
14253 break 2
14255 done
14256 done
14257 IFS=$as_save_IFS
14261 LIPO=$ac_cv_prog_LIPO
14262 if test -n "$LIPO"; then
14263 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO" >&5
14264 $as_echo "$LIPO" >&6; }
14265 else
14266 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14267 $as_echo "no" >&6; }
14272 if test -z "$ac_cv_prog_LIPO"; then
14273 ac_ct_LIPO=$LIPO
14274 # Extract the first word of "lipo", so it can be a program name with args.
14275 set dummy lipo; ac_word=$2
14276 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
14277 $as_echo_n "checking for $ac_word... " >&6; }
14278 if test "${ac_cv_prog_ac_ct_LIPO+set}" = set; then :
14279 $as_echo_n "(cached) " >&6
14280 else
14281 if test -n "$ac_ct_LIPO"; then
14282 ac_cv_prog_ac_ct_LIPO="$ac_ct_LIPO" # Let the user override the test.
14283 else
14284 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14285 for as_dir in $PATH
14287 IFS=$as_save_IFS
14288 test -z "$as_dir" && as_dir=.
14289 for ac_exec_ext in '' $ac_executable_extensions; do
14290 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
14291 ac_cv_prog_ac_ct_LIPO="lipo"
14292 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
14293 break 2
14295 done
14296 done
14297 IFS=$as_save_IFS
14301 ac_ct_LIPO=$ac_cv_prog_ac_ct_LIPO
14302 if test -n "$ac_ct_LIPO"; then
14303 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_LIPO" >&5
14304 $as_echo "$ac_ct_LIPO" >&6; }
14305 else
14306 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14307 $as_echo "no" >&6; }
14310 if test "x$ac_ct_LIPO" = x; then
14311 LIPO=":"
14312 else
14313 case $cross_compiling:$ac_tool_warned in
14314 yes:)
14315 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
14316 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
14317 ac_tool_warned=yes ;;
14318 esac
14319 LIPO=$ac_ct_LIPO
14321 else
14322 LIPO="$ac_cv_prog_LIPO"
14325 if test -n "$ac_tool_prefix"; then
14326 # Extract the first word of "${ac_tool_prefix}otool", so it can be a program name with args.
14327 set dummy ${ac_tool_prefix}otool; ac_word=$2
14328 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
14329 $as_echo_n "checking for $ac_word... " >&6; }
14330 if test "${ac_cv_prog_OTOOL+set}" = set; then :
14331 $as_echo_n "(cached) " >&6
14332 else
14333 if test -n "$OTOOL"; then
14334 ac_cv_prog_OTOOL="$OTOOL" # Let the user override the test.
14335 else
14336 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14337 for as_dir in $PATH
14339 IFS=$as_save_IFS
14340 test -z "$as_dir" && as_dir=.
14341 for ac_exec_ext in '' $ac_executable_extensions; do
14342 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
14343 ac_cv_prog_OTOOL="${ac_tool_prefix}otool"
14344 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
14345 break 2
14347 done
14348 done
14349 IFS=$as_save_IFS
14353 OTOOL=$ac_cv_prog_OTOOL
14354 if test -n "$OTOOL"; then
14355 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL" >&5
14356 $as_echo "$OTOOL" >&6; }
14357 else
14358 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14359 $as_echo "no" >&6; }
14364 if test -z "$ac_cv_prog_OTOOL"; then
14365 ac_ct_OTOOL=$OTOOL
14366 # Extract the first word of "otool", so it can be a program name with args.
14367 set dummy otool; ac_word=$2
14368 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
14369 $as_echo_n "checking for $ac_word... " >&6; }
14370 if test "${ac_cv_prog_ac_ct_OTOOL+set}" = set; then :
14371 $as_echo_n "(cached) " >&6
14372 else
14373 if test -n "$ac_ct_OTOOL"; then
14374 ac_cv_prog_ac_ct_OTOOL="$ac_ct_OTOOL" # Let the user override the test.
14375 else
14376 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14377 for as_dir in $PATH
14379 IFS=$as_save_IFS
14380 test -z "$as_dir" && as_dir=.
14381 for ac_exec_ext in '' $ac_executable_extensions; do
14382 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
14383 ac_cv_prog_ac_ct_OTOOL="otool"
14384 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
14385 break 2
14387 done
14388 done
14389 IFS=$as_save_IFS
14393 ac_ct_OTOOL=$ac_cv_prog_ac_ct_OTOOL
14394 if test -n "$ac_ct_OTOOL"; then
14395 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL" >&5
14396 $as_echo "$ac_ct_OTOOL" >&6; }
14397 else
14398 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14399 $as_echo "no" >&6; }
14402 if test "x$ac_ct_OTOOL" = x; then
14403 OTOOL=":"
14404 else
14405 case $cross_compiling:$ac_tool_warned in
14406 yes:)
14407 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
14408 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
14409 ac_tool_warned=yes ;;
14410 esac
14411 OTOOL=$ac_ct_OTOOL
14413 else
14414 OTOOL="$ac_cv_prog_OTOOL"
14417 if test -n "$ac_tool_prefix"; then
14418 # Extract the first word of "${ac_tool_prefix}otool64", so it can be a program name with args.
14419 set dummy ${ac_tool_prefix}otool64; ac_word=$2
14420 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
14421 $as_echo_n "checking for $ac_word... " >&6; }
14422 if test "${ac_cv_prog_OTOOL64+set}" = set; then :
14423 $as_echo_n "(cached) " >&6
14424 else
14425 if test -n "$OTOOL64"; then
14426 ac_cv_prog_OTOOL64="$OTOOL64" # Let the user override the test.
14427 else
14428 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14429 for as_dir in $PATH
14431 IFS=$as_save_IFS
14432 test -z "$as_dir" && as_dir=.
14433 for ac_exec_ext in '' $ac_executable_extensions; do
14434 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
14435 ac_cv_prog_OTOOL64="${ac_tool_prefix}otool64"
14436 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
14437 break 2
14439 done
14440 done
14441 IFS=$as_save_IFS
14445 OTOOL64=$ac_cv_prog_OTOOL64
14446 if test -n "$OTOOL64"; then
14447 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL64" >&5
14448 $as_echo "$OTOOL64" >&6; }
14449 else
14450 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14451 $as_echo "no" >&6; }
14456 if test -z "$ac_cv_prog_OTOOL64"; then
14457 ac_ct_OTOOL64=$OTOOL64
14458 # Extract the first word of "otool64", so it can be a program name with args.
14459 set dummy otool64; ac_word=$2
14460 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
14461 $as_echo_n "checking for $ac_word... " >&6; }
14462 if test "${ac_cv_prog_ac_ct_OTOOL64+set}" = set; then :
14463 $as_echo_n "(cached) " >&6
14464 else
14465 if test -n "$ac_ct_OTOOL64"; then
14466 ac_cv_prog_ac_ct_OTOOL64="$ac_ct_OTOOL64" # Let the user override the test.
14467 else
14468 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14469 for as_dir in $PATH
14471 IFS=$as_save_IFS
14472 test -z "$as_dir" && as_dir=.
14473 for ac_exec_ext in '' $ac_executable_extensions; do
14474 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
14475 ac_cv_prog_ac_ct_OTOOL64="otool64"
14476 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
14477 break 2
14479 done
14480 done
14481 IFS=$as_save_IFS
14485 ac_ct_OTOOL64=$ac_cv_prog_ac_ct_OTOOL64
14486 if test -n "$ac_ct_OTOOL64"; then
14487 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL64" >&5
14488 $as_echo "$ac_ct_OTOOL64" >&6; }
14489 else
14490 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14491 $as_echo "no" >&6; }
14494 if test "x$ac_ct_OTOOL64" = x; then
14495 OTOOL64=":"
14496 else
14497 case $cross_compiling:$ac_tool_warned in
14498 yes:)
14499 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
14500 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
14501 ac_tool_warned=yes ;;
14502 esac
14503 OTOOL64=$ac_ct_OTOOL64
14505 else
14506 OTOOL64="$ac_cv_prog_OTOOL64"
14535 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -single_module linker flag" >&5
14536 $as_echo_n "checking for -single_module linker flag... " >&6; }
14537 if test "${lt_cv_apple_cc_single_mod+set}" = set; then :
14538 $as_echo_n "(cached) " >&6
14539 else
14540 lt_cv_apple_cc_single_mod=no
14541 if test -z "${LT_MULTI_MODULE}"; then
14542 # By default we will add the -single_module flag. You can override
14543 # by either setting the environment variable LT_MULTI_MODULE
14544 # non-empty at configure time, or by adding -multi_module to the
14545 # link flags.
14546 rm -rf libconftest.dylib*
14547 echo "int foo(void){return 1;}" > conftest.c
14548 echo "$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
14549 -dynamiclib -Wl,-single_module conftest.c" >&5
14550 $LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
14551 -dynamiclib -Wl,-single_module conftest.c 2>conftest.err
14552 _lt_result=$?
14553 if test -f libconftest.dylib && test ! -s conftest.err && test $_lt_result = 0; then
14554 lt_cv_apple_cc_single_mod=yes
14555 else
14556 cat conftest.err >&5
14558 rm -rf libconftest.dylib*
14559 rm -f conftest.*
14562 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_apple_cc_single_mod" >&5
14563 $as_echo "$lt_cv_apple_cc_single_mod" >&6; }
14564 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -exported_symbols_list linker flag" >&5
14565 $as_echo_n "checking for -exported_symbols_list linker flag... " >&6; }
14566 if test "${lt_cv_ld_exported_symbols_list+set}" = set; then :
14567 $as_echo_n "(cached) " >&6
14568 else
14569 lt_cv_ld_exported_symbols_list=no
14570 save_LDFLAGS=$LDFLAGS
14571 echo "_main" > conftest.sym
14572 LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym"
14573 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14574 /* end confdefs.h. */
14577 main ()
14581 return 0;
14583 _ACEOF
14584 if ac_fn_c_try_link "$LINENO"; then :
14585 lt_cv_ld_exported_symbols_list=yes
14586 else
14587 lt_cv_ld_exported_symbols_list=no
14589 rm -f core conftest.err conftest.$ac_objext \
14590 conftest$ac_exeext conftest.$ac_ext
14591 LDFLAGS="$save_LDFLAGS"
14594 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_exported_symbols_list" >&5
14595 $as_echo "$lt_cv_ld_exported_symbols_list" >&6; }
14596 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -force_load linker flag" >&5
14597 $as_echo_n "checking for -force_load linker flag... " >&6; }
14598 if test "${lt_cv_ld_force_load+set}" = set; then :
14599 $as_echo_n "(cached) " >&6
14600 else
14601 lt_cv_ld_force_load=no
14602 cat > conftest.c << _LT_EOF
14603 int forced_loaded() { return 2;}
14604 _LT_EOF
14605 echo "$LTCC $LTCFLAGS -c -o conftest.o conftest.c" >&5
14606 $LTCC $LTCFLAGS -c -o conftest.o conftest.c 2>&5
14607 echo "$AR cru libconftest.a conftest.o" >&5
14608 $AR cru libconftest.a conftest.o 2>&5
14609 cat > conftest.c << _LT_EOF
14610 int main() { return 0;}
14611 _LT_EOF
14612 echo "$LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a" >&5
14613 $LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a 2>conftest.err
14614 _lt_result=$?
14615 if test -f conftest && test ! -s conftest.err && test $_lt_result = 0 && $GREP forced_load conftest 2>&1 >/dev/null; then
14616 lt_cv_ld_force_load=yes
14617 else
14618 cat conftest.err >&5
14620 rm -f conftest.err libconftest.a conftest conftest.c
14621 rm -rf conftest.dSYM
14624 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_force_load" >&5
14625 $as_echo "$lt_cv_ld_force_load" >&6; }
14626 case $host_os in
14627 rhapsody* | darwin1.[012])
14628 _lt_dar_allow_undefined='${wl}-undefined ${wl}suppress' ;;
14629 darwin1.*)
14630 _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
14631 darwin*) # darwin 5.x on
14632 # if running on 10.5 or later, the deployment target defaults
14633 # to the OS version, if on x86, and 10.4, the deployment
14634 # target defaults to 10.4. Don't you love it?
14635 case ${MACOSX_DEPLOYMENT_TARGET-10.0},$host in
14636 10.0,*86*-darwin8*|10.0,*-darwin[91]*)
14637 _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
14638 10.[012][,.]*)
14639 _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
14640 10.*)
14641 _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
14642 esac
14644 esac
14645 if test "$lt_cv_apple_cc_single_mod" = "yes"; then
14646 _lt_dar_single_mod='$single_module'
14648 if test "$lt_cv_ld_exported_symbols_list" = "yes"; then
14649 _lt_dar_export_syms=' ${wl}-exported_symbols_list,$output_objdir/${libname}-symbols.expsym'
14650 else
14651 _lt_dar_export_syms='~$NMEDIT -s $output_objdir/${libname}-symbols.expsym ${lib}'
14653 if test "$DSYMUTIL" != ":" && test "$lt_cv_ld_force_load" = "no"; then
14654 _lt_dsymutil='~$DSYMUTIL $lib || :'
14655 else
14656 _lt_dsymutil=
14659 esac
14661 for ac_header in dlfcn.h
14662 do :
14663 ac_fn_c_check_header_preproc "$LINENO" "dlfcn.h" "ac_cv_header_dlfcn_h"
14664 if test "x$ac_cv_header_dlfcn_h" = x""yes; then :
14665 cat >>confdefs.h <<_ACEOF
14666 #define HAVE_DLFCN_H 1
14667 _ACEOF
14670 done
14676 # Set options
14680 enable_dlopen=no
14683 enable_win32_dll=no
14686 # Check whether --enable-shared was given.
14687 if test "${enable_shared+set}" = set; then :
14688 enableval=$enable_shared; p=${PACKAGE-default}
14689 case $enableval in
14690 yes) enable_shared=yes ;;
14691 no) enable_shared=no ;;
14693 enable_shared=no
14694 # Look at the argument we got. We use all the common list separators.
14695 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
14696 for pkg in $enableval; do
14697 IFS="$lt_save_ifs"
14698 if test "X$pkg" = "X$p"; then
14699 enable_shared=yes
14701 done
14702 IFS="$lt_save_ifs"
14704 esac
14705 else
14706 enable_shared=yes
14717 # Check whether --enable-static was given.
14718 if test "${enable_static+set}" = set; then :
14719 enableval=$enable_static; p=${PACKAGE-default}
14720 case $enableval in
14721 yes) enable_static=yes ;;
14722 no) enable_static=no ;;
14724 enable_static=no
14725 # Look at the argument we got. We use all the common list separators.
14726 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
14727 for pkg in $enableval; do
14728 IFS="$lt_save_ifs"
14729 if test "X$pkg" = "X$p"; then
14730 enable_static=yes
14732 done
14733 IFS="$lt_save_ifs"
14735 esac
14736 else
14737 enable_static=yes
14749 # Check whether --with-pic was given.
14750 if test "${with_pic+set}" = set; then :
14751 withval=$with_pic; pic_mode="$withval"
14752 else
14753 pic_mode=default
14757 test -z "$pic_mode" && pic_mode=default
14765 # Check whether --enable-fast-install was given.
14766 if test "${enable_fast_install+set}" = set; then :
14767 enableval=$enable_fast_install; p=${PACKAGE-default}
14768 case $enableval in
14769 yes) enable_fast_install=yes ;;
14770 no) enable_fast_install=no ;;
14772 enable_fast_install=no
14773 # Look at the argument we got. We use all the common list separators.
14774 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
14775 for pkg in $enableval; do
14776 IFS="$lt_save_ifs"
14777 if test "X$pkg" = "X$p"; then
14778 enable_fast_install=yes
14780 done
14781 IFS="$lt_save_ifs"
14783 esac
14784 else
14785 enable_fast_install=yes
14798 # This can be used to rebuild libtool when needed
14799 LIBTOOL_DEPS="$ltmain"
14801 # Always use our own libtool.
14802 LIBTOOL='$(SHELL) $(top_builddir)/libtool'
14829 test -z "$LN_S" && LN_S="ln -s"
14844 if test -n "${ZSH_VERSION+set}" ; then
14845 setopt NO_GLOB_SUBST
14848 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for objdir" >&5
14849 $as_echo_n "checking for objdir... " >&6; }
14850 if test "${lt_cv_objdir+set}" = set; then :
14851 $as_echo_n "(cached) " >&6
14852 else
14853 rm -f .libs 2>/dev/null
14854 mkdir .libs 2>/dev/null
14855 if test -d .libs; then
14856 lt_cv_objdir=.libs
14857 else
14858 # MS-DOS does not allow filenames that begin with a dot.
14859 lt_cv_objdir=_libs
14861 rmdir .libs 2>/dev/null
14863 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_objdir" >&5
14864 $as_echo "$lt_cv_objdir" >&6; }
14865 objdir=$lt_cv_objdir
14871 cat >>confdefs.h <<_ACEOF
14872 #define LT_OBJDIR "$lt_cv_objdir/"
14873 _ACEOF
14878 case $host_os in
14879 aix3*)
14880 # AIX sometimes has problems with the GCC collect2 program. For some
14881 # reason, if we set the COLLECT_NAMES environment variable, the problems
14882 # vanish in a puff of smoke.
14883 if test "X${COLLECT_NAMES+set}" != Xset; then
14884 COLLECT_NAMES=
14885 export COLLECT_NAMES
14888 esac
14890 # Global variables:
14891 ofile=libtool
14892 can_build_shared=yes
14894 # All known linkers require a `.a' archive for static linking (except MSVC,
14895 # which needs '.lib').
14896 libext=a
14898 with_gnu_ld="$lt_cv_prog_gnu_ld"
14900 old_CC="$CC"
14901 old_CFLAGS="$CFLAGS"
14903 # Set sane defaults for various variables
14904 test -z "$CC" && CC=cc
14905 test -z "$LTCC" && LTCC=$CC
14906 test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
14907 test -z "$LD" && LD=ld
14908 test -z "$ac_objext" && ac_objext=o
14910 for cc_temp in $compiler""; do
14911 case $cc_temp in
14912 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
14913 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
14914 \-*) ;;
14915 *) break;;
14916 esac
14917 done
14918 cc_basename=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
14921 # Only perform the check for file, if the check method requires it
14922 test -z "$MAGIC_CMD" && MAGIC_CMD=file
14923 case $deplibs_check_method in
14924 file_magic*)
14925 if test "$file_magic_cmd" = '$MAGIC_CMD'; then
14926 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ac_tool_prefix}file" >&5
14927 $as_echo_n "checking for ${ac_tool_prefix}file... " >&6; }
14928 if test "${lt_cv_path_MAGIC_CMD+set}" = set; then :
14929 $as_echo_n "(cached) " >&6
14930 else
14931 case $MAGIC_CMD in
14932 [\\/*] | ?:[\\/]*)
14933 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
14936 lt_save_MAGIC_CMD="$MAGIC_CMD"
14937 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
14938 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
14939 for ac_dir in $ac_dummy; do
14940 IFS="$lt_save_ifs"
14941 test -z "$ac_dir" && ac_dir=.
14942 if test -f $ac_dir/${ac_tool_prefix}file; then
14943 lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
14944 if test -n "$file_magic_test_file"; then
14945 case $deplibs_check_method in
14946 "file_magic "*)
14947 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
14948 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
14949 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
14950 $EGREP "$file_magic_regex" > /dev/null; then
14952 else
14953 cat <<_LT_EOF 1>&2
14955 *** Warning: the command libtool uses to detect shared libraries,
14956 *** $file_magic_cmd, produces output that libtool cannot recognize.
14957 *** The result is that libtool may fail to recognize shared libraries
14958 *** as such. This will affect the creation of libtool libraries that
14959 *** depend on shared libraries, but programs linked with such libtool
14960 *** libraries will work regardless of this problem. Nevertheless, you
14961 *** may want to report the problem to your system manager and/or to
14962 *** bug-libtool@gnu.org
14964 _LT_EOF
14965 fi ;;
14966 esac
14968 break
14970 done
14971 IFS="$lt_save_ifs"
14972 MAGIC_CMD="$lt_save_MAGIC_CMD"
14974 esac
14977 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
14978 if test -n "$MAGIC_CMD"; then
14979 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
14980 $as_echo "$MAGIC_CMD" >&6; }
14981 else
14982 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14983 $as_echo "no" >&6; }
14990 if test -z "$lt_cv_path_MAGIC_CMD"; then
14991 if test -n "$ac_tool_prefix"; then
14992 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for file" >&5
14993 $as_echo_n "checking for file... " >&6; }
14994 if test "${lt_cv_path_MAGIC_CMD+set}" = set; then :
14995 $as_echo_n "(cached) " >&6
14996 else
14997 case $MAGIC_CMD in
14998 [\\/*] | ?:[\\/]*)
14999 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
15002 lt_save_MAGIC_CMD="$MAGIC_CMD"
15003 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
15004 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
15005 for ac_dir in $ac_dummy; do
15006 IFS="$lt_save_ifs"
15007 test -z "$ac_dir" && ac_dir=.
15008 if test -f $ac_dir/file; then
15009 lt_cv_path_MAGIC_CMD="$ac_dir/file"
15010 if test -n "$file_magic_test_file"; then
15011 case $deplibs_check_method in
15012 "file_magic "*)
15013 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
15014 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
15015 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
15016 $EGREP "$file_magic_regex" > /dev/null; then
15018 else
15019 cat <<_LT_EOF 1>&2
15021 *** Warning: the command libtool uses to detect shared libraries,
15022 *** $file_magic_cmd, produces output that libtool cannot recognize.
15023 *** The result is that libtool may fail to recognize shared libraries
15024 *** as such. This will affect the creation of libtool libraries that
15025 *** depend on shared libraries, but programs linked with such libtool
15026 *** libraries will work regardless of this problem. Nevertheless, you
15027 *** may want to report the problem to your system manager and/or to
15028 *** bug-libtool@gnu.org
15030 _LT_EOF
15031 fi ;;
15032 esac
15034 break
15036 done
15037 IFS="$lt_save_ifs"
15038 MAGIC_CMD="$lt_save_MAGIC_CMD"
15040 esac
15043 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
15044 if test -n "$MAGIC_CMD"; then
15045 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
15046 $as_echo "$MAGIC_CMD" >&6; }
15047 else
15048 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15049 $as_echo "no" >&6; }
15053 else
15054 MAGIC_CMD=:
15060 esac
15062 # Use C for the default configuration in the libtool script
15064 lt_save_CC="$CC"
15065 ac_ext=c
15066 ac_cpp='$CPP $CPPFLAGS'
15067 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
15068 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
15069 ac_compiler_gnu=$ac_cv_c_compiler_gnu
15072 # Source file extension for C test sources.
15073 ac_ext=c
15075 # Object file extension for compiled C test sources.
15076 objext=o
15077 objext=$objext
15079 # Code to be used in simple compile tests
15080 lt_simple_compile_test_code="int some_variable = 0;"
15082 # Code to be used in simple link tests
15083 lt_simple_link_test_code='int main(){return(0);}'
15091 # If no C compiler was specified, use CC.
15092 LTCC=${LTCC-"$CC"}
15094 # If no C compiler flags were specified, use CFLAGS.
15095 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
15097 # Allow CC to be a program name with arguments.
15098 compiler=$CC
15100 # Save the default compiler, since it gets overwritten when the other
15101 # tags are being tested, and _LT_TAGVAR(compiler, []) is a NOP.
15102 compiler_DEFAULT=$CC
15104 # save warnings/boilerplate of simple test code
15105 ac_outfile=conftest.$ac_objext
15106 echo "$lt_simple_compile_test_code" >conftest.$ac_ext
15107 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
15108 _lt_compiler_boilerplate=`cat conftest.err`
15109 $RM conftest*
15111 ac_outfile=conftest.$ac_objext
15112 echo "$lt_simple_link_test_code" >conftest.$ac_ext
15113 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
15114 _lt_linker_boilerplate=`cat conftest.err`
15115 $RM -r conftest*
15118 ## CAVEAT EMPTOR:
15119 ## There is no encapsulation within the following macros, do not change
15120 ## the running order or otherwise move them around unless you know exactly
15121 ## what you are doing...
15122 if test -n "$compiler"; then
15124 lt_prog_compiler_no_builtin_flag=
15126 if test "$GCC" = yes; then
15127 case $cc_basename in
15128 nvcc*)
15129 lt_prog_compiler_no_builtin_flag=' -Xcompiler -fno-builtin' ;;
15131 lt_prog_compiler_no_builtin_flag=' -fno-builtin' ;;
15132 esac
15134 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
15135 $as_echo_n "checking if $compiler supports -fno-rtti -fno-exceptions... " >&6; }
15136 if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then :
15137 $as_echo_n "(cached) " >&6
15138 else
15139 lt_cv_prog_compiler_rtti_exceptions=no
15140 ac_outfile=conftest.$ac_objext
15141 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
15142 lt_compiler_flag="-fno-rtti -fno-exceptions"
15143 # Insert the option either (1) after the last *FLAGS variable, or
15144 # (2) before a word containing "conftest.", or (3) at the end.
15145 # Note that $ac_compile itself does not contain backslashes and begins
15146 # with a dollar sign (not a hyphen), so the echo should work correctly.
15147 # The option is referenced via a variable to avoid confusing sed.
15148 lt_compile=`echo "$ac_compile" | $SED \
15149 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
15150 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
15151 -e 's:$: $lt_compiler_flag:'`
15152 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
15153 (eval "$lt_compile" 2>conftest.err)
15154 ac_status=$?
15155 cat conftest.err >&5
15156 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15157 if (exit $ac_status) && test -s "$ac_outfile"; then
15158 # The compiler can only warn and ignore the option if not recognized
15159 # So say no if there are warnings other than the usual output.
15160 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
15161 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
15162 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
15163 lt_cv_prog_compiler_rtti_exceptions=yes
15166 $RM conftest*
15169 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
15170 $as_echo "$lt_cv_prog_compiler_rtti_exceptions" >&6; }
15172 if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
15173 lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
15174 else
15185 lt_prog_compiler_wl=
15186 lt_prog_compiler_pic=
15187 lt_prog_compiler_static=
15189 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
15190 $as_echo_n "checking for $compiler option to produce PIC... " >&6; }
15192 if test "$GCC" = yes; then
15193 lt_prog_compiler_wl='-Wl,'
15194 lt_prog_compiler_static='-static'
15196 case $host_os in
15197 aix*)
15198 # All AIX code is PIC.
15199 if test "$host_cpu" = ia64; then
15200 # AIX 5 now supports IA64 processor
15201 lt_prog_compiler_static='-Bstatic'
15203 lt_prog_compiler_pic='-fPIC'
15206 amigaos*)
15207 case $host_cpu in
15208 powerpc)
15209 # see comment about AmigaOS4 .so support
15210 lt_prog_compiler_pic='-fPIC'
15212 m68k)
15213 # FIXME: we need at least 68020 code to build shared libraries, but
15214 # adding the `-m68020' flag to GCC prevents building anything better,
15215 # like `-m68040'.
15216 lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
15218 esac
15221 beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
15222 # PIC is the default for these OSes.
15225 mingw* | cygwin* | pw32* | os2* | cegcc*)
15226 # This hack is so that the source file can tell whether it is being
15227 # built for inclusion in a dll (and should export symbols for example).
15228 # Although the cygwin gcc ignores -fPIC, still need this for old-style
15229 # (--disable-auto-import) libraries
15230 lt_prog_compiler_pic='-DDLL_EXPORT'
15233 darwin* | rhapsody*)
15234 # PIC is the default on this platform
15235 # Common symbols not allowed in MH_DYLIB files
15236 lt_prog_compiler_pic='-fno-common'
15239 haiku*)
15240 # PIC is the default for Haiku.
15241 # The "-static" flag exists, but is broken.
15242 lt_prog_compiler_static=
15245 hpux*)
15246 # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
15247 # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag
15248 # sets the default TLS model and affects inlining.
15249 case $host_cpu in
15250 hppa*64*)
15251 # +Z the default
15254 lt_prog_compiler_pic='-fPIC'
15256 esac
15259 interix[3-9]*)
15260 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
15261 # Instead, we relocate shared libraries at runtime.
15264 msdosdjgpp*)
15265 # Just because we use GCC doesn't mean we suddenly get shared libraries
15266 # on systems that don't support them.
15267 lt_prog_compiler_can_build_shared=no
15268 enable_shared=no
15271 *nto* | *qnx*)
15272 # QNX uses GNU C++, but need to define -shared option too, otherwise
15273 # it will coredump.
15274 lt_prog_compiler_pic='-fPIC -shared'
15277 sysv4*MP*)
15278 if test -d /usr/nec; then
15279 lt_prog_compiler_pic=-Kconform_pic
15284 lt_prog_compiler_pic='-fPIC'
15286 esac
15288 case $cc_basename in
15289 nvcc*) # Cuda Compiler Driver 2.2
15290 lt_prog_compiler_wl='-Xlinker '
15291 lt_prog_compiler_pic='-Xcompiler -fPIC'
15293 esac
15294 else
15295 # PORTME Check for flag to pass linker flags through the system compiler.
15296 case $host_os in
15297 aix*)
15298 lt_prog_compiler_wl='-Wl,'
15299 if test "$host_cpu" = ia64; then
15300 # AIX 5 now supports IA64 processor
15301 lt_prog_compiler_static='-Bstatic'
15302 else
15303 lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
15307 mingw* | cygwin* | pw32* | os2* | cegcc*)
15308 # This hack is so that the source file can tell whether it is being
15309 # built for inclusion in a dll (and should export symbols for example).
15310 lt_prog_compiler_pic='-DDLL_EXPORT'
15313 hpux9* | hpux10* | hpux11*)
15314 lt_prog_compiler_wl='-Wl,'
15315 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
15316 # not for PA HP-UX.
15317 case $host_cpu in
15318 hppa*64*|ia64*)
15319 # +Z the default
15322 lt_prog_compiler_pic='+Z'
15324 esac
15325 # Is there a better lt_prog_compiler_static that works with the bundled CC?
15326 lt_prog_compiler_static='${wl}-a ${wl}archive'
15329 irix5* | irix6* | nonstopux*)
15330 lt_prog_compiler_wl='-Wl,'
15331 # PIC (with -KPIC) is the default.
15332 lt_prog_compiler_static='-non_shared'
15335 linux* | k*bsd*-gnu | kopensolaris*-gnu)
15336 case $cc_basename in
15337 # old Intel for x86_64 which still supported -KPIC.
15338 ecc*)
15339 lt_prog_compiler_wl='-Wl,'
15340 lt_prog_compiler_pic='-KPIC'
15341 lt_prog_compiler_static='-static'
15343 # icc used to be incompatible with GCC.
15344 # ICC 10 doesn't accept -KPIC any more.
15345 icc* | ifort*)
15346 lt_prog_compiler_wl='-Wl,'
15347 lt_prog_compiler_pic='-fPIC'
15348 lt_prog_compiler_static='-static'
15350 # Lahey Fortran 8.1.
15351 lf95*)
15352 lt_prog_compiler_wl='-Wl,'
15353 lt_prog_compiler_pic='--shared'
15354 lt_prog_compiler_static='--static'
15356 pgcc* | pgf77* | pgf90* | pgf95* | pgfortran*)
15357 # Portland Group compilers (*not* the Pentium gcc compiler,
15358 # which looks to be a dead project)
15359 lt_prog_compiler_wl='-Wl,'
15360 lt_prog_compiler_pic='-fpic'
15361 lt_prog_compiler_static='-Bstatic'
15363 ccc*)
15364 lt_prog_compiler_wl='-Wl,'
15365 # All Alpha code is PIC.
15366 lt_prog_compiler_static='-non_shared'
15368 xl* | bgxl* | bgf* | mpixl*)
15369 # IBM XL C 8.0/Fortran 10.1, 11.1 on PPC and BlueGene
15370 lt_prog_compiler_wl='-Wl,'
15371 lt_prog_compiler_pic='-qpic'
15372 lt_prog_compiler_static='-qstaticlink'
15375 case `$CC -V 2>&1 | sed 5q` in
15376 *Sun\ F* | *Sun*Fortran*)
15377 # Sun Fortran 8.3 passes all unrecognized flags to the linker
15378 lt_prog_compiler_pic='-KPIC'
15379 lt_prog_compiler_static='-Bstatic'
15380 lt_prog_compiler_wl=''
15382 *Sun\ C*)
15383 # Sun C 5.9
15384 lt_prog_compiler_pic='-KPIC'
15385 lt_prog_compiler_static='-Bstatic'
15386 lt_prog_compiler_wl='-Wl,'
15388 esac
15390 esac
15393 newsos6)
15394 lt_prog_compiler_pic='-KPIC'
15395 lt_prog_compiler_static='-Bstatic'
15398 *nto* | *qnx*)
15399 # QNX uses GNU C++, but need to define -shared option too, otherwise
15400 # it will coredump.
15401 lt_prog_compiler_pic='-fPIC -shared'
15404 osf3* | osf4* | osf5*)
15405 lt_prog_compiler_wl='-Wl,'
15406 # All OSF/1 code is PIC.
15407 lt_prog_compiler_static='-non_shared'
15410 rdos*)
15411 lt_prog_compiler_static='-non_shared'
15414 solaris*)
15415 lt_prog_compiler_pic='-KPIC'
15416 lt_prog_compiler_static='-Bstatic'
15417 case $cc_basename in
15418 f77* | f90* | f95*)
15419 lt_prog_compiler_wl='-Qoption ld ';;
15421 lt_prog_compiler_wl='-Wl,';;
15422 esac
15425 sunos4*)
15426 lt_prog_compiler_wl='-Qoption ld '
15427 lt_prog_compiler_pic='-PIC'
15428 lt_prog_compiler_static='-Bstatic'
15431 sysv4 | sysv4.2uw2* | sysv4.3*)
15432 lt_prog_compiler_wl='-Wl,'
15433 lt_prog_compiler_pic='-KPIC'
15434 lt_prog_compiler_static='-Bstatic'
15437 sysv4*MP*)
15438 if test -d /usr/nec ;then
15439 lt_prog_compiler_pic='-Kconform_pic'
15440 lt_prog_compiler_static='-Bstatic'
15444 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
15445 lt_prog_compiler_wl='-Wl,'
15446 lt_prog_compiler_pic='-KPIC'
15447 lt_prog_compiler_static='-Bstatic'
15450 unicos*)
15451 lt_prog_compiler_wl='-Wl,'
15452 lt_prog_compiler_can_build_shared=no
15455 uts4*)
15456 lt_prog_compiler_pic='-pic'
15457 lt_prog_compiler_static='-Bstatic'
15461 lt_prog_compiler_can_build_shared=no
15463 esac
15466 case $host_os in
15467 # For platforms which do not support PIC, -DPIC is meaningless:
15468 *djgpp*)
15469 lt_prog_compiler_pic=
15472 lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
15474 esac
15475 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_prog_compiler_pic" >&5
15476 $as_echo "$lt_prog_compiler_pic" >&6; }
15484 # Check to make sure the PIC flag actually works.
15486 if test -n "$lt_prog_compiler_pic"; then
15487 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
15488 $as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic works... " >&6; }
15489 if test "${lt_cv_prog_compiler_pic_works+set}" = set; then :
15490 $as_echo_n "(cached) " >&6
15491 else
15492 lt_cv_prog_compiler_pic_works=no
15493 ac_outfile=conftest.$ac_objext
15494 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
15495 lt_compiler_flag="$lt_prog_compiler_pic -DPIC"
15496 # Insert the option either (1) after the last *FLAGS variable, or
15497 # (2) before a word containing "conftest.", or (3) at the end.
15498 # Note that $ac_compile itself does not contain backslashes and begins
15499 # with a dollar sign (not a hyphen), so the echo should work correctly.
15500 # The option is referenced via a variable to avoid confusing sed.
15501 lt_compile=`echo "$ac_compile" | $SED \
15502 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
15503 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
15504 -e 's:$: $lt_compiler_flag:'`
15505 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
15506 (eval "$lt_compile" 2>conftest.err)
15507 ac_status=$?
15508 cat conftest.err >&5
15509 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15510 if (exit $ac_status) && test -s "$ac_outfile"; then
15511 # The compiler can only warn and ignore the option if not recognized
15512 # So say no if there are warnings other than the usual output.
15513 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
15514 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
15515 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
15516 lt_cv_prog_compiler_pic_works=yes
15519 $RM conftest*
15522 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works" >&5
15523 $as_echo "$lt_cv_prog_compiler_pic_works" >&6; }
15525 if test x"$lt_cv_prog_compiler_pic_works" = xyes; then
15526 case $lt_prog_compiler_pic in
15527 "" | " "*) ;;
15528 *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
15529 esac
15530 else
15531 lt_prog_compiler_pic=
15532 lt_prog_compiler_can_build_shared=no
15543 # Check to make sure the static flag actually works.
15545 wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
15546 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
15547 $as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
15548 if test "${lt_cv_prog_compiler_static_works+set}" = set; then :
15549 $as_echo_n "(cached) " >&6
15550 else
15551 lt_cv_prog_compiler_static_works=no
15552 save_LDFLAGS="$LDFLAGS"
15553 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
15554 echo "$lt_simple_link_test_code" > conftest.$ac_ext
15555 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
15556 # The linker can only warn and ignore the option if not recognized
15557 # So say no if there are warnings
15558 if test -s conftest.err; then
15559 # Append any errors to the config.log.
15560 cat conftest.err 1>&5
15561 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
15562 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
15563 if diff conftest.exp conftest.er2 >/dev/null; then
15564 lt_cv_prog_compiler_static_works=yes
15566 else
15567 lt_cv_prog_compiler_static_works=yes
15570 $RM -r conftest*
15571 LDFLAGS="$save_LDFLAGS"
15574 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works" >&5
15575 $as_echo "$lt_cv_prog_compiler_static_works" >&6; }
15577 if test x"$lt_cv_prog_compiler_static_works" = xyes; then
15579 else
15580 lt_prog_compiler_static=
15589 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
15590 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
15591 if test "${lt_cv_prog_compiler_c_o+set}" = set; then :
15592 $as_echo_n "(cached) " >&6
15593 else
15594 lt_cv_prog_compiler_c_o=no
15595 $RM -r conftest 2>/dev/null
15596 mkdir conftest
15597 cd conftest
15598 mkdir out
15599 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
15601 lt_compiler_flag="-o out/conftest2.$ac_objext"
15602 # Insert the option either (1) after the last *FLAGS variable, or
15603 # (2) before a word containing "conftest.", or (3) at the end.
15604 # Note that $ac_compile itself does not contain backslashes and begins
15605 # with a dollar sign (not a hyphen), so the echo should work correctly.
15606 lt_compile=`echo "$ac_compile" | $SED \
15607 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
15608 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
15609 -e 's:$: $lt_compiler_flag:'`
15610 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
15611 (eval "$lt_compile" 2>out/conftest.err)
15612 ac_status=$?
15613 cat out/conftest.err >&5
15614 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15615 if (exit $ac_status) && test -s out/conftest2.$ac_objext
15616 then
15617 # The compiler can only warn and ignore the option if not recognized
15618 # So say no if there are warnings
15619 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
15620 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
15621 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
15622 lt_cv_prog_compiler_c_o=yes
15625 chmod u+w . 2>&5
15626 $RM conftest*
15627 # SGI C++ compiler will create directory out/ii_files/ for
15628 # template instantiation
15629 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
15630 $RM out/* && rmdir out
15631 cd ..
15632 $RM -r conftest
15633 $RM conftest*
15636 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
15637 $as_echo "$lt_cv_prog_compiler_c_o" >&6; }
15644 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
15645 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
15646 if test "${lt_cv_prog_compiler_c_o+set}" = set; then :
15647 $as_echo_n "(cached) " >&6
15648 else
15649 lt_cv_prog_compiler_c_o=no
15650 $RM -r conftest 2>/dev/null
15651 mkdir conftest
15652 cd conftest
15653 mkdir out
15654 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
15656 lt_compiler_flag="-o out/conftest2.$ac_objext"
15657 # Insert the option either (1) after the last *FLAGS variable, or
15658 # (2) before a word containing "conftest.", or (3) at the end.
15659 # Note that $ac_compile itself does not contain backslashes and begins
15660 # with a dollar sign (not a hyphen), so the echo should work correctly.
15661 lt_compile=`echo "$ac_compile" | $SED \
15662 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
15663 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
15664 -e 's:$: $lt_compiler_flag:'`
15665 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
15666 (eval "$lt_compile" 2>out/conftest.err)
15667 ac_status=$?
15668 cat out/conftest.err >&5
15669 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15670 if (exit $ac_status) && test -s out/conftest2.$ac_objext
15671 then
15672 # The compiler can only warn and ignore the option if not recognized
15673 # So say no if there are warnings
15674 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
15675 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
15676 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
15677 lt_cv_prog_compiler_c_o=yes
15680 chmod u+w . 2>&5
15681 $RM conftest*
15682 # SGI C++ compiler will create directory out/ii_files/ for
15683 # template instantiation
15684 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
15685 $RM out/* && rmdir out
15686 cd ..
15687 $RM -r conftest
15688 $RM conftest*
15691 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
15692 $as_echo "$lt_cv_prog_compiler_c_o" >&6; }
15697 hard_links="nottested"
15698 if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then
15699 # do not overwrite the value of need_locks provided by the user
15700 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
15701 $as_echo_n "checking if we can lock with hard links... " >&6; }
15702 hard_links=yes
15703 $RM conftest*
15704 ln conftest.a conftest.b 2>/dev/null && hard_links=no
15705 touch conftest.a
15706 ln conftest.a conftest.b 2>&5 || hard_links=no
15707 ln conftest.a conftest.b 2>/dev/null && hard_links=no
15708 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
15709 $as_echo "$hard_links" >&6; }
15710 if test "$hard_links" = no; then
15711 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
15712 $as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
15713 need_locks=warn
15715 else
15716 need_locks=no
15724 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
15725 $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
15727 runpath_var=
15728 allow_undefined_flag=
15729 always_export_symbols=no
15730 archive_cmds=
15731 archive_expsym_cmds=
15732 compiler_needs_object=no
15733 enable_shared_with_static_runtimes=no
15734 export_dynamic_flag_spec=
15735 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
15736 hardcode_automatic=no
15737 hardcode_direct=no
15738 hardcode_direct_absolute=no
15739 hardcode_libdir_flag_spec=
15740 hardcode_libdir_flag_spec_ld=
15741 hardcode_libdir_separator=
15742 hardcode_minus_L=no
15743 hardcode_shlibpath_var=unsupported
15744 inherit_rpath=no
15745 link_all_deplibs=unknown
15746 module_cmds=
15747 module_expsym_cmds=
15748 old_archive_from_new_cmds=
15749 old_archive_from_expsyms_cmds=
15750 thread_safe_flag_spec=
15751 whole_archive_flag_spec=
15752 # include_expsyms should be a list of space-separated symbols to be *always*
15753 # included in the symbol list
15754 include_expsyms=
15755 # exclude_expsyms can be an extended regexp of symbols to exclude
15756 # it will be wrapped by ` (' and `)$', so one must not match beginning or
15757 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
15758 # as well as any symbol that contains `d'.
15759 exclude_expsyms='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
15760 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
15761 # platforms (ab)use it in PIC code, but their linkers get confused if
15762 # the symbol is explicitly referenced. Since portable code cannot
15763 # rely on this symbol name, it's probably fine to never include it in
15764 # preloaded symbol tables.
15765 # Exclude shared library initialization/finalization symbols.
15766 extract_expsyms_cmds=
15768 case $host_os in
15769 cygwin* | mingw* | pw32* | cegcc*)
15770 # FIXME: the MSVC++ port hasn't been tested in a loooong time
15771 # When not using gcc, we currently assume that we are using
15772 # Microsoft Visual C++.
15773 if test "$GCC" != yes; then
15774 with_gnu_ld=no
15777 interix*)
15778 # we just hope/assume this is gcc and not c89 (= MSVC++)
15779 with_gnu_ld=yes
15781 openbsd*)
15782 with_gnu_ld=no
15784 esac
15786 ld_shlibs=yes
15788 # On some targets, GNU ld is compatible enough with the native linker
15789 # that we're better off using the native interface for both.
15790 lt_use_gnu_ld_interface=no
15791 if test "$with_gnu_ld" = yes; then
15792 case $host_os in
15793 aix*)
15794 # The AIX port of GNU ld has always aspired to compatibility
15795 # with the native linker. However, as the warning in the GNU ld
15796 # block says, versions before 2.19.5* couldn't really create working
15797 # shared libraries, regardless of the interface used.
15798 case `$LD -v 2>&1` in
15799 *\ \(GNU\ Binutils\)\ 2.19.5*) ;;
15800 *\ \(GNU\ Binutils\)\ 2.[2-9]*) ;;
15801 *\ \(GNU\ Binutils\)\ [3-9]*) ;;
15803 lt_use_gnu_ld_interface=yes
15805 esac
15808 lt_use_gnu_ld_interface=yes
15810 esac
15813 if test "$lt_use_gnu_ld_interface" = yes; then
15814 # If archive_cmds runs LD, not CC, wlarc should be empty
15815 wlarc='${wl}'
15817 # Set some defaults for GNU ld with shared library support. These
15818 # are reset later if shared libraries are not supported. Putting them
15819 # here allows them to be overridden if necessary.
15820 runpath_var=LD_RUN_PATH
15821 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
15822 export_dynamic_flag_spec='${wl}--export-dynamic'
15823 # ancient GNU ld didn't support --whole-archive et. al.
15824 if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then
15825 whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
15826 else
15827 whole_archive_flag_spec=
15829 supports_anon_versioning=no
15830 case `$LD -v 2>&1` in
15831 *GNU\ gold*) supports_anon_versioning=yes ;;
15832 *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
15833 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
15834 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
15835 *\ 2.11.*) ;; # other 2.11 versions
15836 *) supports_anon_versioning=yes ;;
15837 esac
15839 # See if GNU ld supports shared libraries.
15840 case $host_os in
15841 aix[3-9]*)
15842 # On AIX/PPC, the GNU linker is very broken
15843 if test "$host_cpu" != ia64; then
15844 ld_shlibs=no
15845 cat <<_LT_EOF 1>&2
15847 *** Warning: the GNU linker, at least up to release 2.19, is reported
15848 *** to be unable to reliably create shared libraries on AIX.
15849 *** Therefore, libtool is disabling shared libraries support. If you
15850 *** really care for shared libraries, you may want to install binutils
15851 *** 2.20 or above, or modify your PATH so that a non-GNU linker is found.
15852 *** You will then need to restart the configuration process.
15854 _LT_EOF
15858 amigaos*)
15859 case $host_cpu in
15860 powerpc)
15861 # see comment about AmigaOS4 .so support
15862 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
15863 archive_expsym_cmds=''
15865 m68k)
15866 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)'
15867 hardcode_libdir_flag_spec='-L$libdir'
15868 hardcode_minus_L=yes
15870 esac
15873 beos*)
15874 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
15875 allow_undefined_flag=unsupported
15876 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
15877 # support --undefined. This deserves some investigation. FIXME
15878 archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
15879 else
15880 ld_shlibs=no
15884 cygwin* | mingw* | pw32* | cegcc*)
15885 # _LT_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
15886 # as there is no search path for DLLs.
15887 hardcode_libdir_flag_spec='-L$libdir'
15888 export_dynamic_flag_spec='${wl}--export-all-symbols'
15889 allow_undefined_flag=unsupported
15890 always_export_symbols=no
15891 enable_shared_with_static_runtimes=yes
15892 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
15894 if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
15895 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
15896 # If the export-symbols file already is a .def file (1st line
15897 # is EXPORTS), use it as is; otherwise, prepend...
15898 archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
15899 cp $export_symbols $output_objdir/$soname.def;
15900 else
15901 echo EXPORTS > $output_objdir/$soname.def;
15902 cat $export_symbols >> $output_objdir/$soname.def;
15904 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
15905 else
15906 ld_shlibs=no
15910 haiku*)
15911 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
15912 link_all_deplibs=yes
15915 interix[3-9]*)
15916 hardcode_direct=no
15917 hardcode_shlibpath_var=no
15918 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
15919 export_dynamic_flag_spec='${wl}-E'
15920 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
15921 # Instead, shared libraries are loaded at an image base (0x10000000 by
15922 # default) and relocated if they conflict, which is a slow very memory
15923 # consuming and fragmenting process. To avoid this, we pick a random,
15924 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
15925 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
15926 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
15927 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'
15930 gnu* | linux* | tpf* | k*bsd*-gnu | kopensolaris*-gnu)
15931 tmp_diet=no
15932 if test "$host_os" = linux-dietlibc; then
15933 case $cc_basename in
15934 diet\ *) tmp_diet=yes;; # linux-dietlibc with static linking (!diet-dyn)
15935 esac
15937 if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \
15938 && test "$tmp_diet" = no
15939 then
15940 tmp_addflag=' $pic_flag'
15941 tmp_sharedflag='-shared'
15942 case $cc_basename,$host_cpu in
15943 pgcc*) # Portland Group C compiler
15944 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'
15945 tmp_addflag=' $pic_flag'
15947 pgf77* | pgf90* | pgf95* | pgfortran*)
15948 # Portland Group f77 and f90 compilers
15949 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'
15950 tmp_addflag=' $pic_flag -Mnomain' ;;
15951 ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64
15952 tmp_addflag=' -i_dynamic' ;;
15953 efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64
15954 tmp_addflag=' -i_dynamic -nofor_main' ;;
15955 ifc* | ifort*) # Intel Fortran compiler
15956 tmp_addflag=' -nofor_main' ;;
15957 lf95*) # Lahey Fortran 8.1
15958 whole_archive_flag_spec=
15959 tmp_sharedflag='--shared' ;;
15960 xl[cC]* | bgxl[cC]* | mpixl[cC]*) # IBM XL C 8.0 on PPC (deal with xlf below)
15961 tmp_sharedflag='-qmkshrobj'
15962 tmp_addflag= ;;
15963 nvcc*) # Cuda Compiler Driver 2.2
15964 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'
15965 compiler_needs_object=yes
15967 esac
15968 case `$CC -V 2>&1 | sed 5q` in
15969 *Sun\ C*) # Sun C 5.9
15970 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'
15971 compiler_needs_object=yes
15972 tmp_sharedflag='-G' ;;
15973 *Sun\ F*) # Sun Fortran 8.3
15974 tmp_sharedflag='-G' ;;
15975 esac
15976 archive_cmds='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
15978 if test "x$supports_anon_versioning" = xyes; then
15979 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
15980 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
15981 echo "local: *; };" >> $output_objdir/$libname.ver~
15982 $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
15985 case $cc_basename in
15986 xlf* | bgf* | bgxlf* | mpixlf*)
15987 # IBM XL Fortran 10.1 on PPC cannot create shared libs itself
15988 whole_archive_flag_spec='--whole-archive$convenience --no-whole-archive'
15989 hardcode_libdir_flag_spec=
15990 hardcode_libdir_flag_spec_ld='-rpath $libdir'
15991 archive_cmds='$LD -shared $libobjs $deplibs $compiler_flags -soname $soname -o $lib'
15992 if test "x$supports_anon_versioning" = xyes; then
15993 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
15994 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
15995 echo "local: *; };" >> $output_objdir/$libname.ver~
15996 $LD -shared $libobjs $deplibs $compiler_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib'
15999 esac
16000 else
16001 ld_shlibs=no
16005 netbsd*)
16006 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
16007 archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
16008 wlarc=
16009 else
16010 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
16011 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
16015 solaris*)
16016 if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then
16017 ld_shlibs=no
16018 cat <<_LT_EOF 1>&2
16020 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
16021 *** create shared libraries on Solaris systems. Therefore, libtool
16022 *** is disabling shared libraries support. We urge you to upgrade GNU
16023 *** binutils to release 2.9.1 or newer. Another option is to modify
16024 *** your PATH or compiler configuration so that the native linker is
16025 *** used, and then restart.
16027 _LT_EOF
16028 elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
16029 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
16030 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
16031 else
16032 ld_shlibs=no
16036 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
16037 case `$LD -v 2>&1` in
16038 *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
16039 ld_shlibs=no
16040 cat <<_LT_EOF 1>&2
16042 *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
16043 *** reliably create shared libraries on SCO systems. Therefore, libtool
16044 *** is disabling shared libraries support. We urge you to upgrade GNU
16045 *** binutils to release 2.16.91.0.3 or newer. Another option is to modify
16046 *** your PATH or compiler configuration so that the native linker is
16047 *** used, and then restart.
16049 _LT_EOF
16052 # For security reasons, it is highly recommended that you always
16053 # use absolute paths for naming shared libraries, and exclude the
16054 # DT_RUNPATH tag from executables and libraries. But doing so
16055 # requires that you compile everything twice, which is a pain.
16056 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
16057 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
16058 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
16059 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
16060 else
16061 ld_shlibs=no
16064 esac
16067 sunos4*)
16068 archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
16069 wlarc=
16070 hardcode_direct=yes
16071 hardcode_shlibpath_var=no
16075 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
16076 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
16077 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
16078 else
16079 ld_shlibs=no
16082 esac
16084 if test "$ld_shlibs" = no; then
16085 runpath_var=
16086 hardcode_libdir_flag_spec=
16087 export_dynamic_flag_spec=
16088 whole_archive_flag_spec=
16090 else
16091 # PORTME fill in a description of your system's linker (not GNU ld)
16092 case $host_os in
16093 aix3*)
16094 allow_undefined_flag=unsupported
16095 always_export_symbols=yes
16096 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'
16097 # Note: this linker hardcodes the directories in LIBPATH if there
16098 # are no directories specified by -L.
16099 hardcode_minus_L=yes
16100 if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
16101 # Neither direct hardcoding nor static linking is supported with a
16102 # broken collect2.
16103 hardcode_direct=unsupported
16107 aix[4-9]*)
16108 if test "$host_cpu" = ia64; then
16109 # On IA64, the linker does run time linking by default, so we don't
16110 # have to do anything special.
16111 aix_use_runtimelinking=no
16112 exp_sym_flag='-Bexport'
16113 no_entry_flag=""
16114 else
16115 # If we're using GNU nm, then we don't want the "-C" option.
16116 # -C means demangle to AIX nm, but means don't demangle with GNU nm
16117 # Also, AIX nm treats weak defined symbols like other global
16118 # defined symbols, whereas GNU nm marks them as "W".
16119 if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
16120 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'
16121 else
16122 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'
16124 aix_use_runtimelinking=no
16126 # Test if we are trying to use run time linking or normal
16127 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
16128 # need to do runtime linking.
16129 case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
16130 for ld_flag in $LDFLAGS; do
16131 if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
16132 aix_use_runtimelinking=yes
16133 break
16135 done
16137 esac
16139 exp_sym_flag='-bexport'
16140 no_entry_flag='-bnoentry'
16143 # When large executables or shared objects are built, AIX ld can
16144 # have problems creating the table of contents. If linking a library
16145 # or program results in "error TOC overflow" add -mminimal-toc to
16146 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
16147 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
16149 archive_cmds=''
16150 hardcode_direct=yes
16151 hardcode_direct_absolute=yes
16152 hardcode_libdir_separator=':'
16153 link_all_deplibs=yes
16154 file_list_spec='${wl}-f,'
16156 if test "$GCC" = yes; then
16157 case $host_os in aix4.[012]|aix4.[012].*)
16158 # We only want to do this on AIX 4.2 and lower, the check
16159 # below for broken collect2 doesn't work under 4.3+
16160 collect2name=`${CC} -print-prog-name=collect2`
16161 if test -f "$collect2name" &&
16162 strings "$collect2name" | $GREP resolve_lib_name >/dev/null
16163 then
16164 # We have reworked collect2
16166 else
16167 # We have old collect2
16168 hardcode_direct=unsupported
16169 # It fails to find uninstalled libraries when the uninstalled
16170 # path is not listed in the libpath. Setting hardcode_minus_L
16171 # to unsupported forces relinking
16172 hardcode_minus_L=yes
16173 hardcode_libdir_flag_spec='-L$libdir'
16174 hardcode_libdir_separator=
16177 esac
16178 shared_flag='-shared'
16179 if test "$aix_use_runtimelinking" = yes; then
16180 shared_flag="$shared_flag "'${wl}-G'
16182 else
16183 # not using gcc
16184 if test "$host_cpu" = ia64; then
16185 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
16186 # chokes on -Wl,-G. The following line is correct:
16187 shared_flag='-G'
16188 else
16189 if test "$aix_use_runtimelinking" = yes; then
16190 shared_flag='${wl}-G'
16191 else
16192 shared_flag='${wl}-bM:SRE'
16197 export_dynamic_flag_spec='${wl}-bexpall'
16198 # It seems that -bexpall does not export symbols beginning with
16199 # underscore (_), so it is better to generate a list of symbols to export.
16200 always_export_symbols=yes
16201 if test "$aix_use_runtimelinking" = yes; then
16202 # Warning - without using the other runtime loading flags (-brtl),
16203 # -berok will link without error, but may produce a broken library.
16204 allow_undefined_flag='-berok'
16205 # Determine the default libpath from the value encoded in an
16206 # empty executable.
16207 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16208 /* end confdefs.h. */
16211 main ()
16215 return 0;
16217 _ACEOF
16218 if ac_fn_c_try_link "$LINENO"; then :
16220 lt_aix_libpath_sed='
16221 /Import File Strings/,/^$/ {
16222 /^0/ {
16223 s/^0 *\(.*\)$/\1/
16227 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
16228 # Check for a 64-bit object if we didn't find anything.
16229 if test -z "$aix_libpath"; then
16230 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
16233 rm -f core conftest.err conftest.$ac_objext \
16234 conftest$ac_exeext conftest.$ac_ext
16235 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
16237 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
16238 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"
16239 else
16240 if test "$host_cpu" = ia64; then
16241 hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
16242 allow_undefined_flag="-z nodefs"
16243 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"
16244 else
16245 # Determine the default libpath from the value encoded in an
16246 # empty executable.
16247 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16248 /* end confdefs.h. */
16251 main ()
16255 return 0;
16257 _ACEOF
16258 if ac_fn_c_try_link "$LINENO"; then :
16260 lt_aix_libpath_sed='
16261 /Import File Strings/,/^$/ {
16262 /^0/ {
16263 s/^0 *\(.*\)$/\1/
16267 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
16268 # Check for a 64-bit object if we didn't find anything.
16269 if test -z "$aix_libpath"; then
16270 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
16273 rm -f core conftest.err conftest.$ac_objext \
16274 conftest$ac_exeext conftest.$ac_ext
16275 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
16277 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
16278 # Warning - without using the other run time loading flags,
16279 # -berok will link without error, but may produce a broken library.
16280 no_undefined_flag=' ${wl}-bernotok'
16281 allow_undefined_flag=' ${wl}-berok'
16282 if test "$with_gnu_ld" = yes; then
16283 # We only use this code for GNU lds that support --whole-archive.
16284 whole_archive_flag_spec='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
16285 else
16286 # Exported symbols can be pulled into shared objects from archives
16287 whole_archive_flag_spec='$convenience'
16289 archive_cmds_need_lc=yes
16290 # This is similar to how AIX traditionally builds its shared libraries.
16291 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'
16296 amigaos*)
16297 case $host_cpu in
16298 powerpc)
16299 # see comment about AmigaOS4 .so support
16300 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
16301 archive_expsym_cmds=''
16303 m68k)
16304 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)'
16305 hardcode_libdir_flag_spec='-L$libdir'
16306 hardcode_minus_L=yes
16308 esac
16311 bsdi[45]*)
16312 export_dynamic_flag_spec=-rdynamic
16315 cygwin* | mingw* | pw32* | cegcc*)
16316 # When not using gcc, we currently assume that we are using
16317 # Microsoft Visual C++.
16318 # hardcode_libdir_flag_spec is actually meaningless, as there is
16319 # no search path for DLLs.
16320 hardcode_libdir_flag_spec=' '
16321 allow_undefined_flag=unsupported
16322 # Tell ltmain to make .lib files, not .a files.
16323 libext=lib
16324 # Tell ltmain to make .dll files, not .so files.
16325 shrext_cmds=".dll"
16326 # FIXME: Setting linknames here is a bad hack.
16327 archive_cmds='$CC -o $lib $libobjs $compiler_flags `func_echo_all "$deplibs" | $SED '\''s/ -lc$//'\''` -link -dll~linknames='
16328 # The linker will automatically build a .lib file if we build a DLL.
16329 old_archive_from_new_cmds='true'
16330 # FIXME: Should let the user specify the lib program.
16331 old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs'
16332 fix_srcfile_path='`cygpath -w "$srcfile"`'
16333 enable_shared_with_static_runtimes=yes
16336 darwin* | rhapsody*)
16339 archive_cmds_need_lc=no
16340 hardcode_direct=no
16341 hardcode_automatic=yes
16342 hardcode_shlibpath_var=unsupported
16343 if test "$lt_cv_ld_force_load" = "yes"; then
16344 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\"`'
16345 else
16346 whole_archive_flag_spec=''
16348 link_all_deplibs=yes
16349 allow_undefined_flag="$_lt_dar_allow_undefined"
16350 case $cc_basename in
16351 ifort*) _lt_dar_can_shared=yes ;;
16352 *) _lt_dar_can_shared=$GCC ;;
16353 esac
16354 if test "$_lt_dar_can_shared" = "yes"; then
16355 output_verbose_link_cmd=func_echo_all
16356 archive_cmds="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod${_lt_dsymutil}"
16357 module_cmds="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
16358 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}"
16359 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}"
16361 else
16362 ld_shlibs=no
16367 dgux*)
16368 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
16369 hardcode_libdir_flag_spec='-L$libdir'
16370 hardcode_shlibpath_var=no
16373 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
16374 # support. Future versions do this automatically, but an explicit c++rt0.o
16375 # does not break anything, and helps significantly (at the cost of a little
16376 # extra space).
16377 freebsd2.2*)
16378 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
16379 hardcode_libdir_flag_spec='-R$libdir'
16380 hardcode_direct=yes
16381 hardcode_shlibpath_var=no
16384 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
16385 freebsd2.*)
16386 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
16387 hardcode_direct=yes
16388 hardcode_minus_L=yes
16389 hardcode_shlibpath_var=no
16392 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
16393 freebsd* | dragonfly*)
16394 archive_cmds='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
16395 hardcode_libdir_flag_spec='-R$libdir'
16396 hardcode_direct=yes
16397 hardcode_shlibpath_var=no
16400 hpux9*)
16401 if test "$GCC" = yes; then
16402 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'
16403 else
16404 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'
16406 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
16407 hardcode_libdir_separator=:
16408 hardcode_direct=yes
16410 # hardcode_minus_L: Not really in the search PATH,
16411 # but as the default location of the library.
16412 hardcode_minus_L=yes
16413 export_dynamic_flag_spec='${wl}-E'
16416 hpux10*)
16417 if test "$GCC" = yes && test "$with_gnu_ld" = no; then
16418 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
16419 else
16420 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
16422 if test "$with_gnu_ld" = no; then
16423 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
16424 hardcode_libdir_flag_spec_ld='+b $libdir'
16425 hardcode_libdir_separator=:
16426 hardcode_direct=yes
16427 hardcode_direct_absolute=yes
16428 export_dynamic_flag_spec='${wl}-E'
16429 # hardcode_minus_L: Not really in the search PATH,
16430 # but as the default location of the library.
16431 hardcode_minus_L=yes
16435 hpux11*)
16436 if test "$GCC" = yes && test "$with_gnu_ld" = no; then
16437 case $host_cpu in
16438 hppa*64*)
16439 archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
16441 ia64*)
16442 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
16445 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
16447 esac
16448 else
16449 case $host_cpu in
16450 hppa*64*)
16451 archive_cmds='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
16453 ia64*)
16454 archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
16458 # Older versions of the 11.00 compiler do not understand -b yet
16459 # (HP92453-01 A.11.01.20 doesn't, HP92453-01 B.11.X.35175-35176.GP does)
16460 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC understands -b" >&5
16461 $as_echo_n "checking if $CC understands -b... " >&6; }
16462 if test "${lt_cv_prog_compiler__b+set}" = set; then :
16463 $as_echo_n "(cached) " >&6
16464 else
16465 lt_cv_prog_compiler__b=no
16466 save_LDFLAGS="$LDFLAGS"
16467 LDFLAGS="$LDFLAGS -b"
16468 echo "$lt_simple_link_test_code" > conftest.$ac_ext
16469 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
16470 # The linker can only warn and ignore the option if not recognized
16471 # So say no if there are warnings
16472 if test -s conftest.err; then
16473 # Append any errors to the config.log.
16474 cat conftest.err 1>&5
16475 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
16476 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
16477 if diff conftest.exp conftest.er2 >/dev/null; then
16478 lt_cv_prog_compiler__b=yes
16480 else
16481 lt_cv_prog_compiler__b=yes
16484 $RM -r conftest*
16485 LDFLAGS="$save_LDFLAGS"
16488 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler__b" >&5
16489 $as_echo "$lt_cv_prog_compiler__b" >&6; }
16491 if test x"$lt_cv_prog_compiler__b" = xyes; then
16492 archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
16493 else
16494 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
16498 esac
16500 if test "$with_gnu_ld" = no; then
16501 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
16502 hardcode_libdir_separator=:
16504 case $host_cpu in
16505 hppa*64*|ia64*)
16506 hardcode_direct=no
16507 hardcode_shlibpath_var=no
16510 hardcode_direct=yes
16511 hardcode_direct_absolute=yes
16512 export_dynamic_flag_spec='${wl}-E'
16514 # hardcode_minus_L: Not really in the search PATH,
16515 # but as the default location of the library.
16516 hardcode_minus_L=yes
16518 esac
16522 irix5* | irix6* | nonstopux*)
16523 if test "$GCC" = yes; then
16524 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'
16525 # Try to use the -exported_symbol ld option, if it does not
16526 # work, assume that -exports_file does not work either and
16527 # implicitly export all symbols.
16528 save_LDFLAGS="$LDFLAGS"
16529 LDFLAGS="$LDFLAGS -shared ${wl}-exported_symbol ${wl}foo ${wl}-update_registry ${wl}/dev/null"
16530 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16531 /* end confdefs.h. */
16532 int foo(void) {}
16533 _ACEOF
16534 if ac_fn_c_try_link "$LINENO"; then :
16535 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'
16538 rm -f core conftest.err conftest.$ac_objext \
16539 conftest$ac_exeext conftest.$ac_ext
16540 LDFLAGS="$save_LDFLAGS"
16541 else
16542 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'
16543 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'
16545 archive_cmds_need_lc='no'
16546 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
16547 hardcode_libdir_separator=:
16548 inherit_rpath=yes
16549 link_all_deplibs=yes
16552 netbsd*)
16553 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
16554 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
16555 else
16556 archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
16558 hardcode_libdir_flag_spec='-R$libdir'
16559 hardcode_direct=yes
16560 hardcode_shlibpath_var=no
16563 newsos6)
16564 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
16565 hardcode_direct=yes
16566 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
16567 hardcode_libdir_separator=:
16568 hardcode_shlibpath_var=no
16571 *nto* | *qnx*)
16574 openbsd*)
16575 if test -f /usr/libexec/ld.so; then
16576 hardcode_direct=yes
16577 hardcode_shlibpath_var=no
16578 hardcode_direct_absolute=yes
16579 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
16580 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
16581 archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
16582 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
16583 export_dynamic_flag_spec='${wl}-E'
16584 else
16585 case $host_os in
16586 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
16587 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
16588 hardcode_libdir_flag_spec='-R$libdir'
16591 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
16592 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
16594 esac
16596 else
16597 ld_shlibs=no
16601 os2*)
16602 hardcode_libdir_flag_spec='-L$libdir'
16603 hardcode_minus_L=yes
16604 allow_undefined_flag=unsupported
16605 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'
16606 old_archive_from_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
16609 osf3*)
16610 if test "$GCC" = yes; then
16611 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
16612 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'
16613 else
16614 allow_undefined_flag=' -expect_unresolved \*'
16615 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'
16617 archive_cmds_need_lc='no'
16618 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
16619 hardcode_libdir_separator=:
16622 osf4* | osf5*) # as osf3* with the addition of -msym flag
16623 if test "$GCC" = yes; then
16624 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
16625 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'
16626 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
16627 else
16628 allow_undefined_flag=' -expect_unresolved \*'
16629 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'
16630 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~
16631 $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'
16633 # Both c and cxx compiler support -rpath directly
16634 hardcode_libdir_flag_spec='-rpath $libdir'
16636 archive_cmds_need_lc='no'
16637 hardcode_libdir_separator=:
16640 solaris*)
16641 no_undefined_flag=' -z defs'
16642 if test "$GCC" = yes; then
16643 wlarc='${wl}'
16644 archive_cmds='$CC -shared ${wl}-z ${wl}text ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
16645 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
16646 $CC -shared ${wl}-z ${wl}text ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
16647 else
16648 case `$CC -V 2>&1` in
16649 *"Compilers 5.0"*)
16650 wlarc=''
16651 archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
16652 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
16653 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp'
16656 wlarc='${wl}'
16657 archive_cmds='$CC -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $compiler_flags'
16658 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
16659 $CC -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
16661 esac
16663 hardcode_libdir_flag_spec='-R$libdir'
16664 hardcode_shlibpath_var=no
16665 case $host_os in
16666 solaris2.[0-5] | solaris2.[0-5].*) ;;
16668 # The compiler driver will combine and reorder linker options,
16669 # but understands `-z linker_flag'. GCC discards it without `$wl',
16670 # but is careful enough not to reorder.
16671 # Supported since Solaris 2.6 (maybe 2.5.1?)
16672 if test "$GCC" = yes; then
16673 whole_archive_flag_spec='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
16674 else
16675 whole_archive_flag_spec='-z allextract$convenience -z defaultextract'
16678 esac
16679 link_all_deplibs=yes
16682 sunos4*)
16683 if test "x$host_vendor" = xsequent; then
16684 # Use $CC to link under sequent, because it throws in some extra .o
16685 # files that make .init and .fini sections work.
16686 archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
16687 else
16688 archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
16690 hardcode_libdir_flag_spec='-L$libdir'
16691 hardcode_direct=yes
16692 hardcode_minus_L=yes
16693 hardcode_shlibpath_var=no
16696 sysv4)
16697 case $host_vendor in
16698 sni)
16699 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
16700 hardcode_direct=yes # is this really true???
16702 siemens)
16703 ## LD is ld it makes a PLAMLIB
16704 ## CC just makes a GrossModule.
16705 archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
16706 reload_cmds='$CC -r -o $output$reload_objs'
16707 hardcode_direct=no
16709 motorola)
16710 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
16711 hardcode_direct=no #Motorola manual says yes, but my tests say they lie
16713 esac
16714 runpath_var='LD_RUN_PATH'
16715 hardcode_shlibpath_var=no
16718 sysv4.3*)
16719 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
16720 hardcode_shlibpath_var=no
16721 export_dynamic_flag_spec='-Bexport'
16724 sysv4*MP*)
16725 if test -d /usr/nec; then
16726 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
16727 hardcode_shlibpath_var=no
16728 runpath_var=LD_RUN_PATH
16729 hardcode_runpath_var=yes
16730 ld_shlibs=yes
16734 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
16735 no_undefined_flag='${wl}-z,text'
16736 archive_cmds_need_lc=no
16737 hardcode_shlibpath_var=no
16738 runpath_var='LD_RUN_PATH'
16740 if test "$GCC" = yes; then
16741 archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
16742 archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
16743 else
16744 archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
16745 archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
16749 sysv5* | sco3.2v5* | sco5v6*)
16750 # Note: We can NOT use -z defs as we might desire, because we do not
16751 # link with -lc, and that would cause any symbols used from libc to
16752 # always be unresolved, which means just about no library would
16753 # ever link correctly. If we're not using GNU ld we use -z text
16754 # though, which does catch some bad symbols but isn't as heavy-handed
16755 # as -z defs.
16756 no_undefined_flag='${wl}-z,text'
16757 allow_undefined_flag='${wl}-z,nodefs'
16758 archive_cmds_need_lc=no
16759 hardcode_shlibpath_var=no
16760 hardcode_libdir_flag_spec='${wl}-R,$libdir'
16761 hardcode_libdir_separator=':'
16762 link_all_deplibs=yes
16763 export_dynamic_flag_spec='${wl}-Bexport'
16764 runpath_var='LD_RUN_PATH'
16766 if test "$GCC" = yes; then
16767 archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
16768 archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
16769 else
16770 archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
16771 archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
16775 uts4*)
16776 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
16777 hardcode_libdir_flag_spec='-L$libdir'
16778 hardcode_shlibpath_var=no
16782 ld_shlibs=no
16784 esac
16786 if test x$host_vendor = xsni; then
16787 case $host in
16788 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
16789 export_dynamic_flag_spec='${wl}-Blargedynsym'
16791 esac
16795 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs" >&5
16796 $as_echo "$ld_shlibs" >&6; }
16797 test "$ld_shlibs" = no && can_build_shared=no
16799 with_gnu_ld=$with_gnu_ld
16816 # Do we need to explicitly link libc?
16818 case "x$archive_cmds_need_lc" in
16819 x|xyes)
16820 # Assume -lc should be added
16821 archive_cmds_need_lc=yes
16823 if test "$enable_shared" = yes && test "$GCC" = yes; then
16824 case $archive_cmds in
16825 *'~'*)
16826 # FIXME: we may have to deal with multi-command sequences.
16828 '$CC '*)
16829 # Test whether the compiler implicitly links with -lc since on some
16830 # systems, -lgcc has to come before -lc. If gcc already passes -lc
16831 # to ld, don't add -lc before -lgcc.
16832 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
16833 $as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
16834 if test "${lt_cv_archive_cmds_need_lc+set}" = set; then :
16835 $as_echo_n "(cached) " >&6
16836 else
16837 $RM conftest*
16838 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
16840 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
16841 (eval $ac_compile) 2>&5
16842 ac_status=$?
16843 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
16844 test $ac_status = 0; } 2>conftest.err; then
16845 soname=conftest
16846 lib=conftest
16847 libobjs=conftest.$ac_objext
16848 deplibs=
16849 wl=$lt_prog_compiler_wl
16850 pic_flag=$lt_prog_compiler_pic
16851 compiler_flags=-v
16852 linker_flags=-v
16853 verstring=
16854 output_objdir=.
16855 libname=conftest
16856 lt_save_allow_undefined_flag=$allow_undefined_flag
16857 allow_undefined_flag=
16858 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5
16859 (eval $archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
16860 ac_status=$?
16861 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
16862 test $ac_status = 0; }
16863 then
16864 lt_cv_archive_cmds_need_lc=no
16865 else
16866 lt_cv_archive_cmds_need_lc=yes
16868 allow_undefined_flag=$lt_save_allow_undefined_flag
16869 else
16870 cat conftest.err 1>&5
16872 $RM conftest*
16875 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc" >&5
16876 $as_echo "$lt_cv_archive_cmds_need_lc" >&6; }
16877 archive_cmds_need_lc=$lt_cv_archive_cmds_need_lc
16879 esac
16882 esac
17040 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
17041 $as_echo_n "checking dynamic linker characteristics... " >&6; }
17043 if test "$GCC" = yes; then
17044 case $host_os in
17045 darwin*) lt_awk_arg="/^libraries:/,/LR/" ;;
17046 *) lt_awk_arg="/^libraries:/" ;;
17047 esac
17048 case $host_os in
17049 mingw* | cegcc*) lt_sed_strip_eq="s,=\([A-Za-z]:\),\1,g" ;;
17050 *) lt_sed_strip_eq="s,=/,/,g" ;;
17051 esac
17052 lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e $lt_sed_strip_eq`
17053 case $lt_search_path_spec in
17054 *\;*)
17055 # if the path contains ";" then we assume it to be the separator
17056 # otherwise default to the standard path separator (i.e. ":") - it is
17057 # assumed that no part of a normal pathname contains ";" but that should
17058 # okay in the real world where ";" in dirpaths is itself problematic.
17059 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED 's/;/ /g'`
17062 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED "s/$PATH_SEPARATOR/ /g"`
17064 esac
17065 # Ok, now we have the path, separated by spaces, we can step through it
17066 # and add multilib dir if necessary.
17067 lt_tmp_lt_search_path_spec=
17068 lt_multi_os_dir=`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null`
17069 for lt_sys_path in $lt_search_path_spec; do
17070 if test -d "$lt_sys_path/$lt_multi_os_dir"; then
17071 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path/$lt_multi_os_dir"
17072 else
17073 test -d "$lt_sys_path" && \
17074 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path"
17076 done
17077 lt_search_path_spec=`$ECHO "$lt_tmp_lt_search_path_spec" | awk '
17078 BEGIN {RS=" "; FS="/|\n";} {
17079 lt_foo="";
17080 lt_count=0;
17081 for (lt_i = NF; lt_i > 0; lt_i--) {
17082 if ($lt_i != "" && $lt_i != ".") {
17083 if ($lt_i == "..") {
17084 lt_count++;
17085 } else {
17086 if (lt_count == 0) {
17087 lt_foo="/" $lt_i lt_foo;
17088 } else {
17089 lt_count--;
17094 if (lt_foo != "") { lt_freq[lt_foo]++; }
17095 if (lt_freq[lt_foo] == 1) { print lt_foo; }
17097 # AWK program above erroneously prepends '/' to C:/dos/paths
17098 # for these hosts.
17099 case $host_os in
17100 mingw* | cegcc*) lt_search_path_spec=`$ECHO "$lt_search_path_spec" |\
17101 $SED 's,/\([A-Za-z]:\),\1,g'` ;;
17102 esac
17103 sys_lib_search_path_spec=`$ECHO "$lt_search_path_spec" | $lt_NL2SP`
17104 else
17105 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
17107 library_names_spec=
17108 libname_spec='lib$name'
17109 soname_spec=
17110 shrext_cmds=".so"
17111 postinstall_cmds=
17112 postuninstall_cmds=
17113 finish_cmds=
17114 finish_eval=
17115 shlibpath_var=
17116 shlibpath_overrides_runpath=unknown
17117 version_type=none
17118 dynamic_linker="$host_os ld.so"
17119 sys_lib_dlsearch_path_spec="/lib /usr/lib"
17120 need_lib_prefix=unknown
17121 hardcode_into_libs=no
17123 # when you set need_version to no, make sure it does not cause -set_version
17124 # flags to be left without arguments
17125 need_version=unknown
17127 case $host_os in
17128 aix3*)
17129 version_type=linux
17130 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
17131 shlibpath_var=LIBPATH
17133 # AIX 3 has no versioning support, so we append a major version to the name.
17134 soname_spec='${libname}${release}${shared_ext}$major'
17137 aix[4-9]*)
17138 version_type=linux
17139 need_lib_prefix=no
17140 need_version=no
17141 hardcode_into_libs=yes
17142 if test "$host_cpu" = ia64; then
17143 # AIX 5 supports IA64
17144 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
17145 shlibpath_var=LD_LIBRARY_PATH
17146 else
17147 # With GCC up to 2.95.x, collect2 would create an import file
17148 # for dependence libraries. The import file would start with
17149 # the line `#! .'. This would cause the generated library to
17150 # depend on `.', always an invalid library. This was fixed in
17151 # development snapshots of GCC prior to 3.0.
17152 case $host_os in
17153 aix4 | aix4.[01] | aix4.[01].*)
17154 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
17155 echo ' yes '
17156 echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then
17158 else
17159 can_build_shared=no
17162 esac
17163 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
17164 # soname into executable. Probably we can add versioning support to
17165 # collect2, so additional links can be useful in future.
17166 if test "$aix_use_runtimelinking" = yes; then
17167 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
17168 # instead of lib<name>.a to let people know that these are not
17169 # typical AIX shared libraries.
17170 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17171 else
17172 # We preserve .a as extension for shared libraries through AIX4.2
17173 # and later when we are not doing run time linking.
17174 library_names_spec='${libname}${release}.a $libname.a'
17175 soname_spec='${libname}${release}${shared_ext}$major'
17177 shlibpath_var=LIBPATH
17181 amigaos*)
17182 case $host_cpu in
17183 powerpc)
17184 # Since July 2007 AmigaOS4 officially supports .so libraries.
17185 # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
17186 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17188 m68k)
17189 library_names_spec='$libname.ixlibrary $libname.a'
17190 # Create ${libname}_ixlibrary.a entries in /sys/libs.
17191 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'
17193 esac
17196 beos*)
17197 library_names_spec='${libname}${shared_ext}'
17198 dynamic_linker="$host_os ld.so"
17199 shlibpath_var=LIBRARY_PATH
17202 bsdi[45]*)
17203 version_type=linux
17204 need_version=no
17205 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17206 soname_spec='${libname}${release}${shared_ext}$major'
17207 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
17208 shlibpath_var=LD_LIBRARY_PATH
17209 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
17210 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
17211 # the default ld.so.conf also contains /usr/contrib/lib and
17212 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
17213 # libtool to hard-code these into programs
17216 cygwin* | mingw* | pw32* | cegcc*)
17217 version_type=windows
17218 shrext_cmds=".dll"
17219 need_version=no
17220 need_lib_prefix=no
17222 case $GCC,$host_os in
17223 yes,cygwin* | yes,mingw* | yes,pw32* | yes,cegcc*)
17224 library_names_spec='$libname.dll.a'
17225 # DLL is installed to $(libdir)/../bin by postinstall_cmds
17226 postinstall_cmds='base_file=`basename \${file}`~
17227 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
17228 dldir=$destdir/`dirname \$dlpath`~
17229 test -d \$dldir || mkdir -p \$dldir~
17230 $install_prog $dir/$dlname \$dldir/$dlname~
17231 chmod a+x \$dldir/$dlname~
17232 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
17233 eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
17235 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
17236 dlpath=$dir/\$dldll~
17237 $RM \$dlpath'
17238 shlibpath_overrides_runpath=yes
17240 case $host_os in
17241 cygwin*)
17242 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
17243 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
17245 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/lib/w32api"
17247 mingw* | cegcc*)
17248 # MinGW DLLs use traditional 'lib' prefix
17249 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
17251 pw32*)
17252 # pw32 DLLs use 'pw' prefix rather than 'lib'
17253 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
17255 esac
17259 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
17261 esac
17262 dynamic_linker='Win32 ld.exe'
17263 # FIXME: first we should search . and the directory the executable is in
17264 shlibpath_var=PATH
17267 darwin* | rhapsody*)
17268 dynamic_linker="$host_os dyld"
17269 version_type=darwin
17270 need_lib_prefix=no
17271 need_version=no
17272 library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext'
17273 soname_spec='${libname}${release}${major}$shared_ext'
17274 shlibpath_overrides_runpath=yes
17275 shlibpath_var=DYLD_LIBRARY_PATH
17276 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
17278 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib"
17279 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
17282 dgux*)
17283 version_type=linux
17284 need_lib_prefix=no
17285 need_version=no
17286 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
17287 soname_spec='${libname}${release}${shared_ext}$major'
17288 shlibpath_var=LD_LIBRARY_PATH
17291 freebsd* | dragonfly*)
17292 # DragonFly does not have aout. When/if they implement a new
17293 # versioning mechanism, adjust this.
17294 if test -x /usr/bin/objformat; then
17295 objformat=`/usr/bin/objformat`
17296 else
17297 case $host_os in
17298 freebsd[23].*) objformat=aout ;;
17299 *) objformat=elf ;;
17300 esac
17302 version_type=freebsd-$objformat
17303 case $version_type in
17304 freebsd-elf*)
17305 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
17306 need_version=no
17307 need_lib_prefix=no
17309 freebsd-*)
17310 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
17311 need_version=yes
17313 esac
17314 shlibpath_var=LD_LIBRARY_PATH
17315 case $host_os in
17316 freebsd2.*)
17317 shlibpath_overrides_runpath=yes
17319 freebsd3.[01]* | freebsdelf3.[01]*)
17320 shlibpath_overrides_runpath=yes
17321 hardcode_into_libs=yes
17323 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
17324 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
17325 shlibpath_overrides_runpath=no
17326 hardcode_into_libs=yes
17328 *) # from 4.6 on, and DragonFly
17329 shlibpath_overrides_runpath=yes
17330 hardcode_into_libs=yes
17332 esac
17335 gnu*)
17336 version_type=linux
17337 need_lib_prefix=no
17338 need_version=no
17339 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
17340 soname_spec='${libname}${release}${shared_ext}$major'
17341 shlibpath_var=LD_LIBRARY_PATH
17342 hardcode_into_libs=yes
17345 haiku*)
17346 version_type=linux
17347 need_lib_prefix=no
17348 need_version=no
17349 dynamic_linker="$host_os runtime_loader"
17350 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
17351 soname_spec='${libname}${release}${shared_ext}$major'
17352 shlibpath_var=LIBRARY_PATH
17353 shlibpath_overrides_runpath=yes
17354 sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/beos/system/lib'
17355 hardcode_into_libs=yes
17358 hpux9* | hpux10* | hpux11*)
17359 # Give a soname corresponding to the major version so that dld.sl refuses to
17360 # link against other versions.
17361 version_type=sunos
17362 need_lib_prefix=no
17363 need_version=no
17364 case $host_cpu in
17365 ia64*)
17366 shrext_cmds='.so'
17367 hardcode_into_libs=yes
17368 dynamic_linker="$host_os dld.so"
17369 shlibpath_var=LD_LIBRARY_PATH
17370 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
17371 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17372 soname_spec='${libname}${release}${shared_ext}$major'
17373 if test "X$HPUX_IA64_MODE" = X32; then
17374 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
17375 else
17376 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
17378 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
17380 hppa*64*)
17381 shrext_cmds='.sl'
17382 hardcode_into_libs=yes
17383 dynamic_linker="$host_os dld.sl"
17384 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
17385 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
17386 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17387 soname_spec='${libname}${release}${shared_ext}$major'
17388 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
17389 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
17392 shrext_cmds='.sl'
17393 dynamic_linker="$host_os dld.sl"
17394 shlibpath_var=SHLIB_PATH
17395 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
17396 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17397 soname_spec='${libname}${release}${shared_ext}$major'
17399 esac
17400 # HP-UX runs *really* slowly unless shared libraries are mode 555, ...
17401 postinstall_cmds='chmod 555 $lib'
17402 # or fails outright, so override atomically:
17403 install_override_mode=555
17406 interix[3-9]*)
17407 version_type=linux
17408 need_lib_prefix=no
17409 need_version=no
17410 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
17411 soname_spec='${libname}${release}${shared_ext}$major'
17412 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
17413 shlibpath_var=LD_LIBRARY_PATH
17414 shlibpath_overrides_runpath=no
17415 hardcode_into_libs=yes
17418 irix5* | irix6* | nonstopux*)
17419 case $host_os in
17420 nonstopux*) version_type=nonstopux ;;
17422 if test "$lt_cv_prog_gnu_ld" = yes; then
17423 version_type=linux
17424 else
17425 version_type=irix
17426 fi ;;
17427 esac
17428 need_lib_prefix=no
17429 need_version=no
17430 soname_spec='${libname}${release}${shared_ext}$major'
17431 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
17432 case $host_os in
17433 irix5* | nonstopux*)
17434 libsuff= shlibsuff=
17437 case $LD in # libtool.m4 will add one of these switches to LD
17438 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
17439 libsuff= shlibsuff= libmagic=32-bit;;
17440 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
17441 libsuff=32 shlibsuff=N32 libmagic=N32;;
17442 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
17443 libsuff=64 shlibsuff=64 libmagic=64-bit;;
17444 *) libsuff= shlibsuff= libmagic=never-match;;
17445 esac
17447 esac
17448 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
17449 shlibpath_overrides_runpath=no
17450 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
17451 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
17452 hardcode_into_libs=yes
17455 # No shared lib support for Linux oldld, aout, or coff.
17456 linux*oldld* | linux*aout* | linux*coff*)
17457 dynamic_linker=no
17460 # This must be Linux ELF.
17461 linux* | k*bsd*-gnu | kopensolaris*-gnu)
17462 version_type=linux
17463 need_lib_prefix=no
17464 need_version=no
17465 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17466 soname_spec='${libname}${release}${shared_ext}$major'
17467 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
17468 shlibpath_var=LD_LIBRARY_PATH
17469 shlibpath_overrides_runpath=no
17471 # Some binutils ld are patched to set DT_RUNPATH
17472 if test "${lt_cv_shlibpath_overrides_runpath+set}" = set; then :
17473 $as_echo_n "(cached) " >&6
17474 else
17475 lt_cv_shlibpath_overrides_runpath=no
17476 save_LDFLAGS=$LDFLAGS
17477 save_libdir=$libdir
17478 eval "libdir=/foo; wl=\"$lt_prog_compiler_wl\"; \
17479 LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec\""
17480 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17481 /* end confdefs.h. */
17484 main ()
17488 return 0;
17490 _ACEOF
17491 if ac_fn_c_try_link "$LINENO"; then :
17492 if ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then :
17493 lt_cv_shlibpath_overrides_runpath=yes
17496 rm -f core conftest.err conftest.$ac_objext \
17497 conftest$ac_exeext conftest.$ac_ext
17498 LDFLAGS=$save_LDFLAGS
17499 libdir=$save_libdir
17503 shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath
17505 # This implies no fast_install, which is unacceptable.
17506 # Some rework will be needed to allow for fast_install
17507 # before this can be enabled.
17508 hardcode_into_libs=yes
17510 # Append ld.so.conf contents to the search path
17511 if test -f /etc/ld.so.conf; then
17512 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' ' '`
17513 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
17516 # We used to test for /lib/ld.so.1 and disable shared libraries on
17517 # powerpc, because MkLinux only supported shared libraries with the
17518 # GNU dynamic linker. Since this was broken with cross compilers,
17519 # most powerpc-linux boxes support dynamic linking these days and
17520 # people can always --disable-shared, the test was removed, and we
17521 # assume the GNU/Linux dynamic linker is in use.
17522 dynamic_linker='GNU/Linux ld.so'
17525 netbsd*)
17526 version_type=sunos
17527 need_lib_prefix=no
17528 need_version=no
17529 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
17530 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
17531 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
17532 dynamic_linker='NetBSD (a.out) ld.so'
17533 else
17534 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
17535 soname_spec='${libname}${release}${shared_ext}$major'
17536 dynamic_linker='NetBSD ld.elf_so'
17538 shlibpath_var=LD_LIBRARY_PATH
17539 shlibpath_overrides_runpath=yes
17540 hardcode_into_libs=yes
17543 newsos6)
17544 version_type=linux
17545 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17546 shlibpath_var=LD_LIBRARY_PATH
17547 shlibpath_overrides_runpath=yes
17550 *nto* | *qnx*)
17551 version_type=qnx
17552 need_lib_prefix=no
17553 need_version=no
17554 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17555 soname_spec='${libname}${release}${shared_ext}$major'
17556 shlibpath_var=LD_LIBRARY_PATH
17557 shlibpath_overrides_runpath=no
17558 hardcode_into_libs=yes
17559 dynamic_linker='ldqnx.so'
17562 openbsd*)
17563 version_type=sunos
17564 sys_lib_dlsearch_path_spec="/usr/lib"
17565 need_lib_prefix=no
17566 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
17567 case $host_os in
17568 openbsd3.3 | openbsd3.3.*) need_version=yes ;;
17569 *) need_version=no ;;
17570 esac
17571 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
17572 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
17573 shlibpath_var=LD_LIBRARY_PATH
17574 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
17575 case $host_os in
17576 openbsd2.[89] | openbsd2.[89].*)
17577 shlibpath_overrides_runpath=no
17580 shlibpath_overrides_runpath=yes
17582 esac
17583 else
17584 shlibpath_overrides_runpath=yes
17588 os2*)
17589 libname_spec='$name'
17590 shrext_cmds=".dll"
17591 need_lib_prefix=no
17592 library_names_spec='$libname${shared_ext} $libname.a'
17593 dynamic_linker='OS/2 ld.exe'
17594 shlibpath_var=LIBPATH
17597 osf3* | osf4* | osf5*)
17598 version_type=osf
17599 need_lib_prefix=no
17600 need_version=no
17601 soname_spec='${libname}${release}${shared_ext}$major'
17602 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17603 shlibpath_var=LD_LIBRARY_PATH
17604 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
17605 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
17608 rdos*)
17609 dynamic_linker=no
17612 solaris*)
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 shlibpath_var=LD_LIBRARY_PATH
17619 shlibpath_overrides_runpath=yes
17620 hardcode_into_libs=yes
17621 # ldd complains unless libraries are executable
17622 postinstall_cmds='chmod +x $lib'
17625 sunos4*)
17626 version_type=sunos
17627 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
17628 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
17629 shlibpath_var=LD_LIBRARY_PATH
17630 shlibpath_overrides_runpath=yes
17631 if test "$with_gnu_ld" = yes; then
17632 need_lib_prefix=no
17634 need_version=yes
17637 sysv4 | sysv4.3*)
17638 version_type=linux
17639 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17640 soname_spec='${libname}${release}${shared_ext}$major'
17641 shlibpath_var=LD_LIBRARY_PATH
17642 case $host_vendor in
17643 sni)
17644 shlibpath_overrides_runpath=no
17645 need_lib_prefix=no
17646 runpath_var=LD_RUN_PATH
17648 siemens)
17649 need_lib_prefix=no
17651 motorola)
17652 need_lib_prefix=no
17653 need_version=no
17654 shlibpath_overrides_runpath=no
17655 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
17657 esac
17660 sysv4*MP*)
17661 if test -d /usr/nec ;then
17662 version_type=linux
17663 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
17664 soname_spec='$libname${shared_ext}.$major'
17665 shlibpath_var=LD_LIBRARY_PATH
17669 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
17670 version_type=freebsd-elf
17671 need_lib_prefix=no
17672 need_version=no
17673 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
17674 soname_spec='${libname}${release}${shared_ext}$major'
17675 shlibpath_var=LD_LIBRARY_PATH
17676 shlibpath_overrides_runpath=yes
17677 hardcode_into_libs=yes
17678 if test "$with_gnu_ld" = yes; then
17679 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
17680 else
17681 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
17682 case $host_os in
17683 sco3.2v5*)
17684 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
17686 esac
17688 sys_lib_dlsearch_path_spec='/usr/lib'
17691 tpf*)
17692 # TPF is a cross-target only. Preferred cross-host = GNU/Linux.
17693 version_type=linux
17694 need_lib_prefix=no
17695 need_version=no
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=no
17699 hardcode_into_libs=yes
17702 uts4*)
17703 version_type=linux
17704 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17705 soname_spec='${libname}${release}${shared_ext}$major'
17706 shlibpath_var=LD_LIBRARY_PATH
17710 dynamic_linker=no
17712 esac
17713 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
17714 $as_echo "$dynamic_linker" >&6; }
17715 test "$dynamic_linker" = no && can_build_shared=no
17717 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
17718 if test "$GCC" = yes; then
17719 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
17722 if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
17723 sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
17725 if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
17726 sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
17820 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
17821 $as_echo_n "checking how to hardcode library paths into programs... " >&6; }
17822 hardcode_action=
17823 if test -n "$hardcode_libdir_flag_spec" ||
17824 test -n "$runpath_var" ||
17825 test "X$hardcode_automatic" = "Xyes" ; then
17827 # We can hardcode non-existent directories.
17828 if test "$hardcode_direct" != no &&
17829 # If the only mechanism to avoid hardcoding is shlibpath_var, we
17830 # have to relink, otherwise we might link with an installed library
17831 # when we should be linking with a yet-to-be-installed one
17832 ## test "$_LT_TAGVAR(hardcode_shlibpath_var, )" != no &&
17833 test "$hardcode_minus_L" != no; then
17834 # Linking always hardcodes the temporary library directory.
17835 hardcode_action=relink
17836 else
17837 # We can link without hardcoding, and we can hardcode nonexisting dirs.
17838 hardcode_action=immediate
17840 else
17841 # We cannot hardcode anything, or else we can only hardcode existing
17842 # directories.
17843 hardcode_action=unsupported
17845 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action" >&5
17846 $as_echo "$hardcode_action" >&6; }
17848 if test "$hardcode_action" = relink ||
17849 test "$inherit_rpath" = yes; then
17850 # Fast installation is not supported
17851 enable_fast_install=no
17852 elif test "$shlibpath_overrides_runpath" = yes ||
17853 test "$enable_shared" = no; then
17854 # Fast installation is not necessary
17855 enable_fast_install=needless
17863 if test "x$enable_dlopen" != xyes; then
17864 enable_dlopen=unknown
17865 enable_dlopen_self=unknown
17866 enable_dlopen_self_static=unknown
17867 else
17868 lt_cv_dlopen=no
17869 lt_cv_dlopen_libs=
17871 case $host_os in
17872 beos*)
17873 lt_cv_dlopen="load_add_on"
17874 lt_cv_dlopen_libs=
17875 lt_cv_dlopen_self=yes
17878 mingw* | pw32* | cegcc*)
17879 lt_cv_dlopen="LoadLibrary"
17880 lt_cv_dlopen_libs=
17883 cygwin*)
17884 lt_cv_dlopen="dlopen"
17885 lt_cv_dlopen_libs=
17888 darwin*)
17889 # if libdl is installed we need to link against it
17890 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
17891 $as_echo_n "checking for dlopen in -ldl... " >&6; }
17892 if test "${ac_cv_lib_dl_dlopen+set}" = set; then :
17893 $as_echo_n "(cached) " >&6
17894 else
17895 ac_check_lib_save_LIBS=$LIBS
17896 LIBS="-ldl $LIBS"
17897 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17898 /* end confdefs.h. */
17900 /* Override any GCC internal prototype to avoid an error.
17901 Use char because int might match the return type of a GCC
17902 builtin and then its argument prototype would still apply. */
17903 #ifdef __cplusplus
17904 extern "C"
17905 #endif
17906 char dlopen ();
17908 main ()
17910 return dlopen ();
17912 return 0;
17914 _ACEOF
17915 if ac_fn_c_try_link "$LINENO"; then :
17916 ac_cv_lib_dl_dlopen=yes
17917 else
17918 ac_cv_lib_dl_dlopen=no
17920 rm -f core conftest.err conftest.$ac_objext \
17921 conftest$ac_exeext conftest.$ac_ext
17922 LIBS=$ac_check_lib_save_LIBS
17924 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
17925 $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
17926 if test "x$ac_cv_lib_dl_dlopen" = x""yes; then :
17927 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
17928 else
17930 lt_cv_dlopen="dyld"
17931 lt_cv_dlopen_libs=
17932 lt_cv_dlopen_self=yes
17939 ac_fn_c_check_func "$LINENO" "shl_load" "ac_cv_func_shl_load"
17940 if test "x$ac_cv_func_shl_load" = x""yes; then :
17941 lt_cv_dlopen="shl_load"
17942 else
17943 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shl_load in -ldld" >&5
17944 $as_echo_n "checking for shl_load in -ldld... " >&6; }
17945 if test "${ac_cv_lib_dld_shl_load+set}" = set; then :
17946 $as_echo_n "(cached) " >&6
17947 else
17948 ac_check_lib_save_LIBS=$LIBS
17949 LIBS="-ldld $LIBS"
17950 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17951 /* end confdefs.h. */
17953 /* Override any GCC internal prototype to avoid an error.
17954 Use char because int might match the return type of a GCC
17955 builtin and then its argument prototype would still apply. */
17956 #ifdef __cplusplus
17957 extern "C"
17958 #endif
17959 char shl_load ();
17961 main ()
17963 return shl_load ();
17965 return 0;
17967 _ACEOF
17968 if ac_fn_c_try_link "$LINENO"; then :
17969 ac_cv_lib_dld_shl_load=yes
17970 else
17971 ac_cv_lib_dld_shl_load=no
17973 rm -f core conftest.err conftest.$ac_objext \
17974 conftest$ac_exeext conftest.$ac_ext
17975 LIBS=$ac_check_lib_save_LIBS
17977 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_shl_load" >&5
17978 $as_echo "$ac_cv_lib_dld_shl_load" >&6; }
17979 if test "x$ac_cv_lib_dld_shl_load" = x""yes; then :
17980 lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-ldld"
17981 else
17982 ac_fn_c_check_func "$LINENO" "dlopen" "ac_cv_func_dlopen"
17983 if test "x$ac_cv_func_dlopen" = x""yes; then :
17984 lt_cv_dlopen="dlopen"
17985 else
17986 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
17987 $as_echo_n "checking for dlopen in -ldl... " >&6; }
17988 if test "${ac_cv_lib_dl_dlopen+set}" = set; then :
17989 $as_echo_n "(cached) " >&6
17990 else
17991 ac_check_lib_save_LIBS=$LIBS
17992 LIBS="-ldl $LIBS"
17993 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17994 /* end confdefs.h. */
17996 /* Override any GCC internal prototype to avoid an error.
17997 Use char because int might match the return type of a GCC
17998 builtin and then its argument prototype would still apply. */
17999 #ifdef __cplusplus
18000 extern "C"
18001 #endif
18002 char dlopen ();
18004 main ()
18006 return dlopen ();
18008 return 0;
18010 _ACEOF
18011 if ac_fn_c_try_link "$LINENO"; then :
18012 ac_cv_lib_dl_dlopen=yes
18013 else
18014 ac_cv_lib_dl_dlopen=no
18016 rm -f core conftest.err conftest.$ac_objext \
18017 conftest$ac_exeext conftest.$ac_ext
18018 LIBS=$ac_check_lib_save_LIBS
18020 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
18021 $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
18022 if test "x$ac_cv_lib_dl_dlopen" = x""yes; then :
18023 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
18024 else
18025 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -lsvld" >&5
18026 $as_echo_n "checking for dlopen in -lsvld... " >&6; }
18027 if test "${ac_cv_lib_svld_dlopen+set}" = set; then :
18028 $as_echo_n "(cached) " >&6
18029 else
18030 ac_check_lib_save_LIBS=$LIBS
18031 LIBS="-lsvld $LIBS"
18032 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18033 /* end confdefs.h. */
18035 /* Override any GCC internal prototype to avoid an error.
18036 Use char because int might match the return type of a GCC
18037 builtin and then its argument prototype would still apply. */
18038 #ifdef __cplusplus
18039 extern "C"
18040 #endif
18041 char dlopen ();
18043 main ()
18045 return dlopen ();
18047 return 0;
18049 _ACEOF
18050 if ac_fn_c_try_link "$LINENO"; then :
18051 ac_cv_lib_svld_dlopen=yes
18052 else
18053 ac_cv_lib_svld_dlopen=no
18055 rm -f core conftest.err conftest.$ac_objext \
18056 conftest$ac_exeext conftest.$ac_ext
18057 LIBS=$ac_check_lib_save_LIBS
18059 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_svld_dlopen" >&5
18060 $as_echo "$ac_cv_lib_svld_dlopen" >&6; }
18061 if test "x$ac_cv_lib_svld_dlopen" = x""yes; then :
18062 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
18063 else
18064 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dld_link in -ldld" >&5
18065 $as_echo_n "checking for dld_link in -ldld... " >&6; }
18066 if test "${ac_cv_lib_dld_dld_link+set}" = set; then :
18067 $as_echo_n "(cached) " >&6
18068 else
18069 ac_check_lib_save_LIBS=$LIBS
18070 LIBS="-ldld $LIBS"
18071 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18072 /* end confdefs.h. */
18074 /* Override any GCC internal prototype to avoid an error.
18075 Use char because int might match the return type of a GCC
18076 builtin and then its argument prototype would still apply. */
18077 #ifdef __cplusplus
18078 extern "C"
18079 #endif
18080 char dld_link ();
18082 main ()
18084 return dld_link ();
18086 return 0;
18088 _ACEOF
18089 if ac_fn_c_try_link "$LINENO"; then :
18090 ac_cv_lib_dld_dld_link=yes
18091 else
18092 ac_cv_lib_dld_dld_link=no
18094 rm -f core conftest.err conftest.$ac_objext \
18095 conftest$ac_exeext conftest.$ac_ext
18096 LIBS=$ac_check_lib_save_LIBS
18098 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_dld_link" >&5
18099 $as_echo "$ac_cv_lib_dld_dld_link" >&6; }
18100 if test "x$ac_cv_lib_dld_dld_link" = x""yes; then :
18101 lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-ldld"
18120 esac
18122 if test "x$lt_cv_dlopen" != xno; then
18123 enable_dlopen=yes
18124 else
18125 enable_dlopen=no
18128 case $lt_cv_dlopen in
18129 dlopen)
18130 save_CPPFLAGS="$CPPFLAGS"
18131 test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
18133 save_LDFLAGS="$LDFLAGS"
18134 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
18136 save_LIBS="$LIBS"
18137 LIBS="$lt_cv_dlopen_libs $LIBS"
18139 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a program can dlopen itself" >&5
18140 $as_echo_n "checking whether a program can dlopen itself... " >&6; }
18141 if test "${lt_cv_dlopen_self+set}" = set; then :
18142 $as_echo_n "(cached) " >&6
18143 else
18144 if test "$cross_compiling" = yes; then :
18145 lt_cv_dlopen_self=cross
18146 else
18147 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
18148 lt_status=$lt_dlunknown
18149 cat > conftest.$ac_ext <<_LT_EOF
18150 #line 18150 "configure"
18151 #include "confdefs.h"
18153 #if HAVE_DLFCN_H
18154 #include <dlfcn.h>
18155 #endif
18157 #include <stdio.h>
18159 #ifdef RTLD_GLOBAL
18160 # define LT_DLGLOBAL RTLD_GLOBAL
18161 #else
18162 # ifdef DL_GLOBAL
18163 # define LT_DLGLOBAL DL_GLOBAL
18164 # else
18165 # define LT_DLGLOBAL 0
18166 # endif
18167 #endif
18169 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
18170 find out it does not work in some platform. */
18171 #ifndef LT_DLLAZY_OR_NOW
18172 # ifdef RTLD_LAZY
18173 # define LT_DLLAZY_OR_NOW RTLD_LAZY
18174 # else
18175 # ifdef DL_LAZY
18176 # define LT_DLLAZY_OR_NOW DL_LAZY
18177 # else
18178 # ifdef RTLD_NOW
18179 # define LT_DLLAZY_OR_NOW RTLD_NOW
18180 # else
18181 # ifdef DL_NOW
18182 # define LT_DLLAZY_OR_NOW DL_NOW
18183 # else
18184 # define LT_DLLAZY_OR_NOW 0
18185 # endif
18186 # endif
18187 # endif
18188 # endif
18189 #endif
18191 /* When -fvisbility=hidden is used, assume the code has been annotated
18192 correspondingly for the symbols needed. */
18193 #if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
18194 void fnord () __attribute__((visibility("default")));
18195 #endif
18197 void fnord () { int i=42; }
18198 int main ()
18200 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
18201 int status = $lt_dlunknown;
18203 if (self)
18205 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
18206 else
18208 if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
18209 else puts (dlerror ());
18211 /* dlclose (self); */
18213 else
18214 puts (dlerror ());
18216 return status;
18218 _LT_EOF
18219 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
18220 (eval $ac_link) 2>&5
18221 ac_status=$?
18222 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
18223 test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
18224 (./conftest; exit; ) >&5 2>/dev/null
18225 lt_status=$?
18226 case x$lt_status in
18227 x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
18228 x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
18229 x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;;
18230 esac
18231 else :
18232 # compilation failed
18233 lt_cv_dlopen_self=no
18236 rm -fr conftest*
18240 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self" >&5
18241 $as_echo "$lt_cv_dlopen_self" >&6; }
18243 if test "x$lt_cv_dlopen_self" = xyes; then
18244 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
18245 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a statically linked program can dlopen itself" >&5
18246 $as_echo_n "checking whether a statically linked program can dlopen itself... " >&6; }
18247 if test "${lt_cv_dlopen_self_static+set}" = set; then :
18248 $as_echo_n "(cached) " >&6
18249 else
18250 if test "$cross_compiling" = yes; then :
18251 lt_cv_dlopen_self_static=cross
18252 else
18253 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
18254 lt_status=$lt_dlunknown
18255 cat > conftest.$ac_ext <<_LT_EOF
18256 #line 18256 "configure"
18257 #include "confdefs.h"
18259 #if HAVE_DLFCN_H
18260 #include <dlfcn.h>
18261 #endif
18263 #include <stdio.h>
18265 #ifdef RTLD_GLOBAL
18266 # define LT_DLGLOBAL RTLD_GLOBAL
18267 #else
18268 # ifdef DL_GLOBAL
18269 # define LT_DLGLOBAL DL_GLOBAL
18270 # else
18271 # define LT_DLGLOBAL 0
18272 # endif
18273 #endif
18275 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
18276 find out it does not work in some platform. */
18277 #ifndef LT_DLLAZY_OR_NOW
18278 # ifdef RTLD_LAZY
18279 # define LT_DLLAZY_OR_NOW RTLD_LAZY
18280 # else
18281 # ifdef DL_LAZY
18282 # define LT_DLLAZY_OR_NOW DL_LAZY
18283 # else
18284 # ifdef RTLD_NOW
18285 # define LT_DLLAZY_OR_NOW RTLD_NOW
18286 # else
18287 # ifdef DL_NOW
18288 # define LT_DLLAZY_OR_NOW DL_NOW
18289 # else
18290 # define LT_DLLAZY_OR_NOW 0
18291 # endif
18292 # endif
18293 # endif
18294 # endif
18295 #endif
18297 /* When -fvisbility=hidden is used, assume the code has been annotated
18298 correspondingly for the symbols needed. */
18299 #if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
18300 void fnord () __attribute__((visibility("default")));
18301 #endif
18303 void fnord () { int i=42; }
18304 int main ()
18306 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
18307 int status = $lt_dlunknown;
18309 if (self)
18311 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
18312 else
18314 if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
18315 else puts (dlerror ());
18317 /* dlclose (self); */
18319 else
18320 puts (dlerror ());
18322 return status;
18324 _LT_EOF
18325 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
18326 (eval $ac_link) 2>&5
18327 ac_status=$?
18328 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
18329 test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
18330 (./conftest; exit; ) >&5 2>/dev/null
18331 lt_status=$?
18332 case x$lt_status in
18333 x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
18334 x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
18335 x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;;
18336 esac
18337 else :
18338 # compilation failed
18339 lt_cv_dlopen_self_static=no
18342 rm -fr conftest*
18346 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self_static" >&5
18347 $as_echo "$lt_cv_dlopen_self_static" >&6; }
18350 CPPFLAGS="$save_CPPFLAGS"
18351 LDFLAGS="$save_LDFLAGS"
18352 LIBS="$save_LIBS"
18354 esac
18356 case $lt_cv_dlopen_self in
18357 yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
18358 *) enable_dlopen_self=unknown ;;
18359 esac
18361 case $lt_cv_dlopen_self_static in
18362 yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
18363 *) enable_dlopen_self_static=unknown ;;
18364 esac
18383 striplib=
18384 old_striplib=
18385 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stripping libraries is possible" >&5
18386 $as_echo_n "checking whether stripping libraries is possible... " >&6; }
18387 if test -n "$STRIP" && $STRIP -V 2>&1 | $GREP "GNU strip" >/dev/null; then
18388 test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
18389 test -z "$striplib" && striplib="$STRIP --strip-unneeded"
18390 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
18391 $as_echo "yes" >&6; }
18392 else
18393 # FIXME - insert some real tests, host_os isn't really good enough
18394 case $host_os in
18395 darwin*)
18396 if test -n "$STRIP" ; then
18397 striplib="$STRIP -x"
18398 old_striplib="$STRIP -S"
18399 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
18400 $as_echo "yes" >&6; }
18401 else
18402 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
18403 $as_echo "no" >&6; }
18407 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
18408 $as_echo "no" >&6; }
18410 esac
18424 # Report which library types will actually be built
18425 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if libtool supports shared libraries" >&5
18426 $as_echo_n "checking if libtool supports shared libraries... " >&6; }
18427 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $can_build_shared" >&5
18428 $as_echo "$can_build_shared" >&6; }
18430 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build shared libraries" >&5
18431 $as_echo_n "checking whether to build shared libraries... " >&6; }
18432 test "$can_build_shared" = "no" && enable_shared=no
18434 # On AIX, shared libraries and static libraries use the same namespace, and
18435 # are all built from PIC.
18436 case $host_os in
18437 aix3*)
18438 test "$enable_shared" = yes && enable_static=no
18439 if test -n "$RANLIB"; then
18440 archive_cmds="$archive_cmds~\$RANLIB \$lib"
18441 postinstall_cmds='$RANLIB $lib'
18445 aix[4-9]*)
18446 if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
18447 test "$enable_shared" = yes && enable_static=no
18450 esac
18451 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_shared" >&5
18452 $as_echo "$enable_shared" >&6; }
18454 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build static libraries" >&5
18455 $as_echo_n "checking whether to build static libraries... " >&6; }
18456 # Make sure either enable_shared or enable_static is yes.
18457 test "$enable_shared" = yes || enable_static=yes
18458 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_static" >&5
18459 $as_echo "$enable_static" >&6; }
18465 ac_ext=c
18466 ac_cpp='$CPP $CPPFLAGS'
18467 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18468 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18469 ac_compiler_gnu=$ac_cv_c_compiler_gnu
18471 CC="$lt_save_CC"
18473 if test -n "$CXX" && ( test "X$CXX" != "Xno" &&
18474 ( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) ||
18475 (test "X$CXX" != "Xg++"))) ; then
18476 ac_ext=cpp
18477 ac_cpp='$CXXCPP $CPPFLAGS'
18478 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18479 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18480 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
18481 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C++ preprocessor" >&5
18482 $as_echo_n "checking how to run the C++ preprocessor... " >&6; }
18483 if test -z "$CXXCPP"; then
18484 if test "${ac_cv_prog_CXXCPP+set}" = set; then :
18485 $as_echo_n "(cached) " >&6
18486 else
18487 # Double quotes because CXXCPP needs to be expanded
18488 for CXXCPP in "$CXX -E" "/lib/cpp"
18490 ac_preproc_ok=false
18491 for ac_cxx_preproc_warn_flag in '' yes
18493 # Use a header file that comes with gcc, so configuring glibc
18494 # with a fresh cross-compiler works.
18495 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
18496 # <limits.h> exists even on freestanding compilers.
18497 # On the NeXT, cc -E runs the code through the compiler's parser,
18498 # not just through cpp. "Syntax error" is here to catch this case.
18499 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18500 /* end confdefs.h. */
18501 #ifdef __STDC__
18502 # include <limits.h>
18503 #else
18504 # include <assert.h>
18505 #endif
18506 Syntax error
18507 _ACEOF
18508 if ac_fn_cxx_try_cpp "$LINENO"; then :
18510 else
18511 # Broken: fails on valid input.
18512 continue
18514 rm -f conftest.err conftest.$ac_ext
18516 # OK, works on sane cases. Now check whether nonexistent headers
18517 # can be detected and how.
18518 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18519 /* end confdefs.h. */
18520 #include <ac_nonexistent.h>
18521 _ACEOF
18522 if ac_fn_cxx_try_cpp "$LINENO"; then :
18523 # Broken: success on invalid input.
18524 continue
18525 else
18526 # Passes both tests.
18527 ac_preproc_ok=:
18528 break
18530 rm -f conftest.err conftest.$ac_ext
18532 done
18533 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
18534 rm -f conftest.err conftest.$ac_ext
18535 if $ac_preproc_ok; then :
18536 break
18539 done
18540 ac_cv_prog_CXXCPP=$CXXCPP
18543 CXXCPP=$ac_cv_prog_CXXCPP
18544 else
18545 ac_cv_prog_CXXCPP=$CXXCPP
18547 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXXCPP" >&5
18548 $as_echo "$CXXCPP" >&6; }
18549 ac_preproc_ok=false
18550 for ac_cxx_preproc_warn_flag in '' yes
18552 # Use a header file that comes with gcc, so configuring glibc
18553 # with a fresh cross-compiler works.
18554 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
18555 # <limits.h> exists even on freestanding compilers.
18556 # On the NeXT, cc -E runs the code through the compiler's parser,
18557 # not just through cpp. "Syntax error" is here to catch this case.
18558 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18559 /* end confdefs.h. */
18560 #ifdef __STDC__
18561 # include <limits.h>
18562 #else
18563 # include <assert.h>
18564 #endif
18565 Syntax error
18566 _ACEOF
18567 if ac_fn_cxx_try_cpp "$LINENO"; then :
18569 else
18570 # Broken: fails on valid input.
18571 continue
18573 rm -f conftest.err conftest.$ac_ext
18575 # OK, works on sane cases. Now check whether nonexistent headers
18576 # can be detected and how.
18577 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18578 /* end confdefs.h. */
18579 #include <ac_nonexistent.h>
18580 _ACEOF
18581 if ac_fn_cxx_try_cpp "$LINENO"; then :
18582 # Broken: success on invalid input.
18583 continue
18584 else
18585 # Passes both tests.
18586 ac_preproc_ok=:
18587 break
18589 rm -f conftest.err conftest.$ac_ext
18591 done
18592 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
18593 rm -f conftest.err conftest.$ac_ext
18594 if $ac_preproc_ok; then :
18596 else
18597 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
18598 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
18599 as_fn_error "C++ preprocessor \"$CXXCPP\" fails sanity check
18600 See \`config.log' for more details." "$LINENO" 5; }
18603 ac_ext=c
18604 ac_cpp='$CPP $CPPFLAGS'
18605 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18606 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18607 ac_compiler_gnu=$ac_cv_c_compiler_gnu
18609 else
18610 _lt_caught_CXX_error=yes
18613 ac_ext=cpp
18614 ac_cpp='$CXXCPP $CPPFLAGS'
18615 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18616 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18617 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
18619 archive_cmds_need_lc_CXX=no
18620 allow_undefined_flag_CXX=
18621 always_export_symbols_CXX=no
18622 archive_expsym_cmds_CXX=
18623 compiler_needs_object_CXX=no
18624 export_dynamic_flag_spec_CXX=
18625 hardcode_direct_CXX=no
18626 hardcode_direct_absolute_CXX=no
18627 hardcode_libdir_flag_spec_CXX=
18628 hardcode_libdir_flag_spec_ld_CXX=
18629 hardcode_libdir_separator_CXX=
18630 hardcode_minus_L_CXX=no
18631 hardcode_shlibpath_var_CXX=unsupported
18632 hardcode_automatic_CXX=no
18633 inherit_rpath_CXX=no
18634 module_cmds_CXX=
18635 module_expsym_cmds_CXX=
18636 link_all_deplibs_CXX=unknown
18637 old_archive_cmds_CXX=$old_archive_cmds
18638 reload_flag_CXX=$reload_flag
18639 reload_cmds_CXX=$reload_cmds
18640 no_undefined_flag_CXX=
18641 whole_archive_flag_spec_CXX=
18642 enable_shared_with_static_runtimes_CXX=no
18644 # Source file extension for C++ test sources.
18645 ac_ext=cpp
18647 # Object file extension for compiled C++ test sources.
18648 objext=o
18649 objext_CXX=$objext
18651 # No sense in running all these tests if we already determined that
18652 # the CXX compiler isn't working. Some variables (like enable_shared)
18653 # are currently assumed to apply to all compilers on this platform,
18654 # and will be corrupted by setting them based on a non-working compiler.
18655 if test "$_lt_caught_CXX_error" != yes; then
18656 # Code to be used in simple compile tests
18657 lt_simple_compile_test_code="int some_variable = 0;"
18659 # Code to be used in simple link tests
18660 lt_simple_link_test_code='int main(int, char *[]) { return(0); }'
18662 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
18669 # If no C compiler was specified, use CC.
18670 LTCC=${LTCC-"$CC"}
18672 # If no C compiler flags were specified, use CFLAGS.
18673 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
18675 # Allow CC to be a program name with arguments.
18676 compiler=$CC
18679 # save warnings/boilerplate of simple test code
18680 ac_outfile=conftest.$ac_objext
18681 echo "$lt_simple_compile_test_code" >conftest.$ac_ext
18682 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
18683 _lt_compiler_boilerplate=`cat conftest.err`
18684 $RM conftest*
18686 ac_outfile=conftest.$ac_objext
18687 echo "$lt_simple_link_test_code" >conftest.$ac_ext
18688 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
18689 _lt_linker_boilerplate=`cat conftest.err`
18690 $RM -r conftest*
18693 # Allow CC to be a program name with arguments.
18694 lt_save_CC=$CC
18695 lt_save_LD=$LD
18696 lt_save_GCC=$GCC
18697 GCC=$GXX
18698 lt_save_with_gnu_ld=$with_gnu_ld
18699 lt_save_path_LD=$lt_cv_path_LD
18700 if test -n "${lt_cv_prog_gnu_ldcxx+set}"; then
18701 lt_cv_prog_gnu_ld=$lt_cv_prog_gnu_ldcxx
18702 else
18703 $as_unset lt_cv_prog_gnu_ld
18705 if test -n "${lt_cv_path_LDCXX+set}"; then
18706 lt_cv_path_LD=$lt_cv_path_LDCXX
18707 else
18708 $as_unset lt_cv_path_LD
18710 test -z "${LDCXX+set}" || LD=$LDCXX
18711 CC=${CXX-"c++"}
18712 compiler=$CC
18713 compiler_CXX=$CC
18714 for cc_temp in $compiler""; do
18715 case $cc_temp in
18716 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
18717 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
18718 \-*) ;;
18719 *) break;;
18720 esac
18721 done
18722 cc_basename=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
18725 if test -n "$compiler"; then
18726 # We don't want -fno-exception when compiling C++ code, so set the
18727 # no_builtin_flag separately
18728 if test "$GXX" = yes; then
18729 lt_prog_compiler_no_builtin_flag_CXX=' -fno-builtin'
18730 else
18731 lt_prog_compiler_no_builtin_flag_CXX=
18734 if test "$GXX" = yes; then
18735 # Set up default GNU C++ configuration
18739 # Check whether --with-gnu-ld was given.
18740 if test "${with_gnu_ld+set}" = set; then :
18741 withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
18742 else
18743 with_gnu_ld=no
18746 ac_prog=ld
18747 if test "$GCC" = yes; then
18748 # Check if gcc -print-prog-name=ld gives a path.
18749 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
18750 $as_echo_n "checking for ld used by $CC... " >&6; }
18751 case $host in
18752 *-*-mingw*)
18753 # gcc leaves a trailing carriage return which upsets mingw
18754 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
18756 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
18757 esac
18758 case $ac_prog in
18759 # Accept absolute paths.
18760 [\\/]* | ?:[\\/]*)
18761 re_direlt='/[^/][^/]*/\.\./'
18762 # Canonicalize the pathname of ld
18763 ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
18764 while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
18765 ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
18766 done
18767 test -z "$LD" && LD="$ac_prog"
18770 # If it fails, then pretend we aren't using GCC.
18771 ac_prog=ld
18774 # If it is relative, then search for the first ld in PATH.
18775 with_gnu_ld=unknown
18777 esac
18778 elif test "$with_gnu_ld" = yes; then
18779 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
18780 $as_echo_n "checking for GNU ld... " >&6; }
18781 else
18782 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
18783 $as_echo_n "checking for non-GNU ld... " >&6; }
18785 if test "${lt_cv_path_LD+set}" = set; then :
18786 $as_echo_n "(cached) " >&6
18787 else
18788 if test -z "$LD"; then
18789 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
18790 for ac_dir in $PATH; do
18791 IFS="$lt_save_ifs"
18792 test -z "$ac_dir" && ac_dir=.
18793 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
18794 lt_cv_path_LD="$ac_dir/$ac_prog"
18795 # Check to see if the program is GNU ld. I'd rather use --version,
18796 # but apparently some variants of GNU ld only accept -v.
18797 # Break only if it was the GNU/non-GNU ld that we prefer.
18798 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
18799 *GNU* | *'with BFD'*)
18800 test "$with_gnu_ld" != no && break
18803 test "$with_gnu_ld" != yes && break
18805 esac
18807 done
18808 IFS="$lt_save_ifs"
18809 else
18810 lt_cv_path_LD="$LD" # Let the user override the test with a path.
18814 LD="$lt_cv_path_LD"
18815 if test -n "$LD"; then
18816 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
18817 $as_echo "$LD" >&6; }
18818 else
18819 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
18820 $as_echo "no" >&6; }
18822 test -z "$LD" && as_fn_error "no acceptable ld found in \$PATH" "$LINENO" 5
18823 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
18824 $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
18825 if test "${lt_cv_prog_gnu_ld+set}" = set; then :
18826 $as_echo_n "(cached) " >&6
18827 else
18828 # I'd rather use --version here, but apparently some GNU lds only accept -v.
18829 case `$LD -v 2>&1 </dev/null` in
18830 *GNU* | *'with BFD'*)
18831 lt_cv_prog_gnu_ld=yes
18834 lt_cv_prog_gnu_ld=no
18836 esac
18838 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
18839 $as_echo "$lt_cv_prog_gnu_ld" >&6; }
18840 with_gnu_ld=$lt_cv_prog_gnu_ld
18848 # Check if GNU C++ uses GNU ld as the underlying linker, since the
18849 # archiving commands below assume that GNU ld is being used.
18850 if test "$with_gnu_ld" = yes; then
18851 archive_cmds_CXX='$CC $pic_flag -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
18852 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'
18854 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
18855 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
18857 # If archive_cmds runs LD, not CC, wlarc should be empty
18858 # XXX I think wlarc can be eliminated in ltcf-cxx, but I need to
18859 # investigate it a little bit more. (MM)
18860 wlarc='${wl}'
18862 # ancient GNU ld didn't support --whole-archive et. al.
18863 if eval "`$CC -print-prog-name=ld` --help 2>&1" |
18864 $GREP 'no-whole-archive' > /dev/null; then
18865 whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
18866 else
18867 whole_archive_flag_spec_CXX=
18869 else
18870 with_gnu_ld=no
18871 wlarc=
18873 # A generic and very simple default shared library creation
18874 # command for GNU C++ for the case where it uses the native
18875 # linker, instead of GNU ld. If possible, this setting should
18876 # overridden to take advantage of the native linker features on
18877 # the platform it is being used on.
18878 archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
18881 # Commands to make compiler produce verbose output that lists
18882 # what "hidden" libraries, object files and flags are used when
18883 # linking a shared library.
18884 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
18886 else
18887 GXX=no
18888 with_gnu_ld=no
18889 wlarc=
18892 # PORTME: fill in a description of your system's C++ link characteristics
18893 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
18894 $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
18895 ld_shlibs_CXX=yes
18896 case $host_os in
18897 aix3*)
18898 # FIXME: insert proper C++ library support
18899 ld_shlibs_CXX=no
18901 aix[4-9]*)
18902 if test "$host_cpu" = ia64; then
18903 # On IA64, the linker does run time linking by default, so we don't
18904 # have to do anything special.
18905 aix_use_runtimelinking=no
18906 exp_sym_flag='-Bexport'
18907 no_entry_flag=""
18908 else
18909 aix_use_runtimelinking=no
18911 # Test if we are trying to use run time linking or normal
18912 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
18913 # need to do runtime linking.
18914 case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
18915 for ld_flag in $LDFLAGS; do
18916 case $ld_flag in
18917 *-brtl*)
18918 aix_use_runtimelinking=yes
18919 break
18921 esac
18922 done
18924 esac
18926 exp_sym_flag='-bexport'
18927 no_entry_flag='-bnoentry'
18930 # When large executables or shared objects are built, AIX ld can
18931 # have problems creating the table of contents. If linking a library
18932 # or program results in "error TOC overflow" add -mminimal-toc to
18933 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
18934 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
18936 archive_cmds_CXX=''
18937 hardcode_direct_CXX=yes
18938 hardcode_direct_absolute_CXX=yes
18939 hardcode_libdir_separator_CXX=':'
18940 link_all_deplibs_CXX=yes
18941 file_list_spec_CXX='${wl}-f,'
18943 if test "$GXX" = yes; then
18944 case $host_os in aix4.[012]|aix4.[012].*)
18945 # We only want to do this on AIX 4.2 and lower, the check
18946 # below for broken collect2 doesn't work under 4.3+
18947 collect2name=`${CC} -print-prog-name=collect2`
18948 if test -f "$collect2name" &&
18949 strings "$collect2name" | $GREP resolve_lib_name >/dev/null
18950 then
18951 # We have reworked collect2
18953 else
18954 # We have old collect2
18955 hardcode_direct_CXX=unsupported
18956 # It fails to find uninstalled libraries when the uninstalled
18957 # path is not listed in the libpath. Setting hardcode_minus_L
18958 # to unsupported forces relinking
18959 hardcode_minus_L_CXX=yes
18960 hardcode_libdir_flag_spec_CXX='-L$libdir'
18961 hardcode_libdir_separator_CXX=
18963 esac
18964 shared_flag='-shared'
18965 if test "$aix_use_runtimelinking" = yes; then
18966 shared_flag="$shared_flag "'${wl}-G'
18968 else
18969 # not using gcc
18970 if test "$host_cpu" = ia64; then
18971 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
18972 # chokes on -Wl,-G. The following line is correct:
18973 shared_flag='-G'
18974 else
18975 if test "$aix_use_runtimelinking" = yes; then
18976 shared_flag='${wl}-G'
18977 else
18978 shared_flag='${wl}-bM:SRE'
18983 export_dynamic_flag_spec_CXX='${wl}-bexpall'
18984 # It seems that -bexpall does not export symbols beginning with
18985 # underscore (_), so it is better to generate a list of symbols to
18986 # export.
18987 always_export_symbols_CXX=yes
18988 if test "$aix_use_runtimelinking" = yes; then
18989 # Warning - without using the other runtime loading flags (-brtl),
18990 # -berok will link without error, but may produce a broken library.
18991 allow_undefined_flag_CXX='-berok'
18992 # Determine the default libpath from the value encoded in an empty
18993 # executable.
18994 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18995 /* end confdefs.h. */
18998 main ()
19002 return 0;
19004 _ACEOF
19005 if ac_fn_cxx_try_link "$LINENO"; then :
19007 lt_aix_libpath_sed='
19008 /Import File Strings/,/^$/ {
19009 /^0/ {
19010 s/^0 *\(.*\)$/\1/
19014 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
19015 # Check for a 64-bit object if we didn't find anything.
19016 if test -z "$aix_libpath"; then
19017 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
19020 rm -f core conftest.err conftest.$ac_objext \
19021 conftest$ac_exeext conftest.$ac_ext
19022 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
19024 hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
19026 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"
19027 else
19028 if test "$host_cpu" = ia64; then
19029 hardcode_libdir_flag_spec_CXX='${wl}-R $libdir:/usr/lib:/lib'
19030 allow_undefined_flag_CXX="-z nodefs"
19031 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"
19032 else
19033 # Determine the default libpath from the value encoded in an
19034 # empty executable.
19035 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19036 /* end confdefs.h. */
19039 main ()
19043 return 0;
19045 _ACEOF
19046 if ac_fn_cxx_try_link "$LINENO"; then :
19048 lt_aix_libpath_sed='
19049 /Import File Strings/,/^$/ {
19050 /^0/ {
19051 s/^0 *\(.*\)$/\1/
19055 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
19056 # Check for a 64-bit object if we didn't find anything.
19057 if test -z "$aix_libpath"; then
19058 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
19061 rm -f core conftest.err conftest.$ac_objext \
19062 conftest$ac_exeext conftest.$ac_ext
19063 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
19065 hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
19066 # Warning - without using the other run time loading flags,
19067 # -berok will link without error, but may produce a broken library.
19068 no_undefined_flag_CXX=' ${wl}-bernotok'
19069 allow_undefined_flag_CXX=' ${wl}-berok'
19070 if test "$with_gnu_ld" = yes; then
19071 # We only use this code for GNU lds that support --whole-archive.
19072 whole_archive_flag_spec_CXX='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
19073 else
19074 # Exported symbols can be pulled into shared objects from archives
19075 whole_archive_flag_spec_CXX='$convenience'
19077 archive_cmds_need_lc_CXX=yes
19078 # This is similar to how AIX traditionally builds its shared
19079 # libraries.
19080 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'
19085 beos*)
19086 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
19087 allow_undefined_flag_CXX=unsupported
19088 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
19089 # support --undefined. This deserves some investigation. FIXME
19090 archive_cmds_CXX='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
19091 else
19092 ld_shlibs_CXX=no
19096 chorus*)
19097 case $cc_basename in
19099 # FIXME: insert proper C++ library support
19100 ld_shlibs_CXX=no
19102 esac
19105 cygwin* | mingw* | pw32* | cegcc*)
19106 # _LT_TAGVAR(hardcode_libdir_flag_spec, CXX) is actually meaningless,
19107 # as there is no search path for DLLs.
19108 hardcode_libdir_flag_spec_CXX='-L$libdir'
19109 export_dynamic_flag_spec_CXX='${wl}--export-all-symbols'
19110 allow_undefined_flag_CXX=unsupported
19111 always_export_symbols_CXX=no
19112 enable_shared_with_static_runtimes_CXX=yes
19114 if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
19115 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'
19116 # If the export-symbols file already is a .def file (1st line
19117 # is EXPORTS), use it as is; otherwise, prepend...
19118 archive_expsym_cmds_CXX='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
19119 cp $export_symbols $output_objdir/$soname.def;
19120 else
19121 echo EXPORTS > $output_objdir/$soname.def;
19122 cat $export_symbols >> $output_objdir/$soname.def;
19124 $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'
19125 else
19126 ld_shlibs_CXX=no
19129 darwin* | rhapsody*)
19132 archive_cmds_need_lc_CXX=no
19133 hardcode_direct_CXX=no
19134 hardcode_automatic_CXX=yes
19135 hardcode_shlibpath_var_CXX=unsupported
19136 if test "$lt_cv_ld_force_load" = "yes"; then
19137 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\"`'
19138 else
19139 whole_archive_flag_spec_CXX=''
19141 link_all_deplibs_CXX=yes
19142 allow_undefined_flag_CXX="$_lt_dar_allow_undefined"
19143 case $cc_basename in
19144 ifort*) _lt_dar_can_shared=yes ;;
19145 *) _lt_dar_can_shared=$GCC ;;
19146 esac
19147 if test "$_lt_dar_can_shared" = "yes"; then
19148 output_verbose_link_cmd=func_echo_all
19149 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}"
19150 module_cmds_CXX="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
19151 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}"
19152 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}"
19153 if test "$lt_cv_apple_cc_single_mod" != "yes"; then
19154 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}"
19155 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}"
19158 else
19159 ld_shlibs_CXX=no
19164 dgux*)
19165 case $cc_basename in
19166 ec++*)
19167 # FIXME: insert proper C++ library support
19168 ld_shlibs_CXX=no
19170 ghcx*)
19171 # Green Hills C++ Compiler
19172 # FIXME: insert proper C++ library support
19173 ld_shlibs_CXX=no
19176 # FIXME: insert proper C++ library support
19177 ld_shlibs_CXX=no
19179 esac
19182 freebsd2.*)
19183 # C++ shared libraries reported to be fairly broken before
19184 # switch to ELF
19185 ld_shlibs_CXX=no
19188 freebsd-elf*)
19189 archive_cmds_need_lc_CXX=no
19192 freebsd* | dragonfly*)
19193 # FreeBSD 3 and later use GNU C++ and GNU ld with standard ELF
19194 # conventions
19195 ld_shlibs_CXX=yes
19198 gnu*)
19201 haiku*)
19202 archive_cmds_CXX='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
19203 link_all_deplibs_CXX=yes
19206 hpux9*)
19207 hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
19208 hardcode_libdir_separator_CXX=:
19209 export_dynamic_flag_spec_CXX='${wl}-E'
19210 hardcode_direct_CXX=yes
19211 hardcode_minus_L_CXX=yes # Not in the search PATH,
19212 # but as the default
19213 # location of the library.
19215 case $cc_basename in
19216 CC*)
19217 # FIXME: insert proper C++ library support
19218 ld_shlibs_CXX=no
19220 aCC*)
19221 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'
19222 # Commands to make compiler produce verbose output that lists
19223 # what "hidden" libraries, object files and flags are used when
19224 # linking a shared library.
19226 # There doesn't appear to be a way to prevent this compiler from
19227 # explicitly linking system object files so we need to strip them
19228 # from the output so that they don't get included in the library
19229 # dependencies.
19230 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"'
19233 if test "$GXX" = yes; then
19234 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'
19235 else
19236 # FIXME: insert proper C++ library support
19237 ld_shlibs_CXX=no
19240 esac
19243 hpux10*|hpux11*)
19244 if test $with_gnu_ld = no; then
19245 hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
19246 hardcode_libdir_separator_CXX=:
19248 case $host_cpu in
19249 hppa*64*|ia64*)
19252 export_dynamic_flag_spec_CXX='${wl}-E'
19254 esac
19256 case $host_cpu in
19257 hppa*64*|ia64*)
19258 hardcode_direct_CXX=no
19259 hardcode_shlibpath_var_CXX=no
19262 hardcode_direct_CXX=yes
19263 hardcode_direct_absolute_CXX=yes
19264 hardcode_minus_L_CXX=yes # Not in the search PATH,
19265 # but as the default
19266 # location of the library.
19268 esac
19270 case $cc_basename in
19271 CC*)
19272 # FIXME: insert proper C++ library support
19273 ld_shlibs_CXX=no
19275 aCC*)
19276 case $host_cpu in
19277 hppa*64*)
19278 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
19280 ia64*)
19281 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
19284 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
19286 esac
19287 # Commands to make compiler produce verbose output that lists
19288 # what "hidden" libraries, object files and flags are used when
19289 # linking a shared library.
19291 # There doesn't appear to be a way to prevent this compiler from
19292 # explicitly linking system object files so we need to strip them
19293 # from the output so that they don't get included in the library
19294 # dependencies.
19295 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"'
19298 if test "$GXX" = yes; then
19299 if test $with_gnu_ld = no; then
19300 case $host_cpu in
19301 hppa*64*)
19302 archive_cmds_CXX='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
19304 ia64*)
19305 archive_cmds_CXX='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
19308 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'
19310 esac
19312 else
19313 # FIXME: insert proper C++ library support
19314 ld_shlibs_CXX=no
19317 esac
19320 interix[3-9]*)
19321 hardcode_direct_CXX=no
19322 hardcode_shlibpath_var_CXX=no
19323 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
19324 export_dynamic_flag_spec_CXX='${wl}-E'
19325 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
19326 # Instead, shared libraries are loaded at an image base (0x10000000 by
19327 # default) and relocated if they conflict, which is a slow very memory
19328 # consuming and fragmenting process. To avoid this, we pick a random,
19329 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
19330 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
19331 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'
19332 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'
19334 irix5* | irix6*)
19335 case $cc_basename in
19336 CC*)
19337 # SGI C++
19338 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'
19340 # Archives containing C++ object files must be created using
19341 # "CC -ar", where "CC" is the IRIX C++ compiler. This is
19342 # necessary to make sure instantiated templates are included
19343 # in the archive.
19344 old_archive_cmds_CXX='$CC -ar -WR,-u -o $oldlib $oldobjs'
19347 if test "$GXX" = yes; then
19348 if test "$with_gnu_ld" = no; then
19349 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'
19350 else
19351 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'
19354 link_all_deplibs_CXX=yes
19356 esac
19357 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
19358 hardcode_libdir_separator_CXX=:
19359 inherit_rpath_CXX=yes
19362 linux* | k*bsd*-gnu | kopensolaris*-gnu)
19363 case $cc_basename in
19364 KCC*)
19365 # Kuck and Associates, Inc. (KAI) C++ Compiler
19367 # KCC will only create a shared library if the output file
19368 # ends with ".so" (or ".sl" for HP-UX), so rename the library
19369 # to its proper name (with version) after linking.
19370 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'
19371 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'
19372 # Commands to make compiler produce verbose output that lists
19373 # what "hidden" libraries, object files and flags are used when
19374 # linking a shared library.
19376 # There doesn't appear to be a way to prevent this compiler from
19377 # explicitly linking system object files so we need to strip them
19378 # from the output so that they don't get included in the library
19379 # dependencies.
19380 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"'
19382 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
19383 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
19385 # Archives containing C++ object files must be created using
19386 # "CC -Bstatic", where "CC" is the KAI C++ compiler.
19387 old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs'
19389 icpc* | ecpc* )
19390 # Intel C++
19391 with_gnu_ld=yes
19392 # version 8.0 and above of icpc choke on multiply defined symbols
19393 # if we add $predep_objects and $postdep_objects, however 7.1 and
19394 # earlier do not add the objects themselves.
19395 case `$CC -V 2>&1` in
19396 *"Version 7."*)
19397 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
19398 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'
19400 *) # Version 8.0 or newer
19401 tmp_idyn=
19402 case $host_cpu in
19403 ia64*) tmp_idyn=' -i_dynamic';;
19404 esac
19405 archive_cmds_CXX='$CC -shared'"$tmp_idyn"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
19406 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'
19408 esac
19409 archive_cmds_need_lc_CXX=no
19410 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
19411 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
19412 whole_archive_flag_spec_CXX='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
19414 pgCC* | pgcpp*)
19415 # Portland Group C++ compiler
19416 case `$CC -V` in
19417 *pgCC\ [1-5].* | *pgcpp\ [1-5].*)
19418 prelink_cmds_CXX='tpldir=Template.dir~
19419 rm -rf $tpldir~
19420 $CC --prelink_objects --instantiation_dir $tpldir $objs $libobjs $compile_deplibs~
19421 compile_command="$compile_command `find $tpldir -name \*.o | $NL2SP`"'
19422 old_archive_cmds_CXX='tpldir=Template.dir~
19423 rm -rf $tpldir~
19424 $CC --prelink_objects --instantiation_dir $tpldir $oldobjs$old_deplibs~
19425 $AR $AR_FLAGS $oldlib$oldobjs$old_deplibs `find $tpldir -name \*.o | $NL2SP`~
19426 $RANLIB $oldlib'
19427 archive_cmds_CXX='tpldir=Template.dir~
19428 rm -rf $tpldir~
19429 $CC --prelink_objects --instantiation_dir $tpldir $predep_objects $libobjs $deplibs $convenience $postdep_objects~
19430 $CC -shared $pic_flag $predep_objects $libobjs $deplibs `find $tpldir -name \*.o | $NL2SP` $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname -o $lib'
19431 archive_expsym_cmds_CXX='tpldir=Template.dir~
19432 rm -rf $tpldir~
19433 $CC --prelink_objects --instantiation_dir $tpldir $predep_objects $libobjs $deplibs $convenience $postdep_objects~
19434 $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'
19436 *) # Version 6 and above use weak symbols
19437 archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname -o $lib'
19438 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'
19440 esac
19442 hardcode_libdir_flag_spec_CXX='${wl}--rpath ${wl}$libdir'
19443 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
19444 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'
19446 cxx*)
19447 # Compaq C++
19448 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
19449 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'
19451 runpath_var=LD_RUN_PATH
19452 hardcode_libdir_flag_spec_CXX='-rpath $libdir'
19453 hardcode_libdir_separator_CXX=:
19455 # Commands to make compiler produce verbose output that lists
19456 # what "hidden" libraries, object files and flags are used when
19457 # linking a shared library.
19459 # There doesn't appear to be a way to prevent this compiler from
19460 # explicitly linking system object files so we need to strip them
19461 # from the output so that they don't get included in the library
19462 # dependencies.
19463 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'
19465 xl* | mpixl* | bgxl*)
19466 # IBM XL 8.0 on PPC, with GNU ld
19467 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
19468 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
19469 archive_cmds_CXX='$CC -qmkshrobj $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
19470 if test "x$supports_anon_versioning" = xyes; then
19471 archive_expsym_cmds_CXX='echo "{ global:" > $output_objdir/$libname.ver~
19472 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
19473 echo "local: *; };" >> $output_objdir/$libname.ver~
19474 $CC -qmkshrobj $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
19478 case `$CC -V 2>&1 | sed 5q` in
19479 *Sun\ C*)
19480 # Sun C++ 5.9
19481 no_undefined_flag_CXX=' -zdefs'
19482 archive_cmds_CXX='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
19483 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'
19484 hardcode_libdir_flag_spec_CXX='-R$libdir'
19485 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'
19486 compiler_needs_object_CXX=yes
19488 # Not sure whether something based on
19489 # $CC $CFLAGS -v conftest.$objext -o libconftest$shared_ext 2>&1
19490 # would be better.
19491 output_verbose_link_cmd='func_echo_all'
19493 # Archives containing C++ object files must be created using
19494 # "CC -xar", where "CC" is the Sun C++ compiler. This is
19495 # necessary to make sure instantiated templates are included
19496 # in the archive.
19497 old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs'
19499 esac
19501 esac
19504 lynxos*)
19505 # FIXME: insert proper C++ library support
19506 ld_shlibs_CXX=no
19509 m88k*)
19510 # FIXME: insert proper C++ library support
19511 ld_shlibs_CXX=no
19514 mvs*)
19515 case $cc_basename in
19516 cxx*)
19517 # FIXME: insert proper C++ library support
19518 ld_shlibs_CXX=no
19521 # FIXME: insert proper C++ library support
19522 ld_shlibs_CXX=no
19524 esac
19527 netbsd*)
19528 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
19529 archive_cmds_CXX='$LD -Bshareable -o $lib $predep_objects $libobjs $deplibs $postdep_objects $linker_flags'
19530 wlarc=
19531 hardcode_libdir_flag_spec_CXX='-R$libdir'
19532 hardcode_direct_CXX=yes
19533 hardcode_shlibpath_var_CXX=no
19535 # Workaround some broken pre-1.5 toolchains
19536 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP conftest.$objext | $SED -e "s:-lgcc -lc -lgcc::"'
19539 *nto* | *qnx*)
19540 ld_shlibs_CXX=yes
19543 openbsd2*)
19544 # C++ shared libraries are fairly broken
19545 ld_shlibs_CXX=no
19548 openbsd*)
19549 if test -f /usr/libexec/ld.so; then
19550 hardcode_direct_CXX=yes
19551 hardcode_shlibpath_var_CXX=no
19552 hardcode_direct_absolute_CXX=yes
19553 archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
19554 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
19555 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
19556 archive_expsym_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-retain-symbols-file,$export_symbols -o $lib'
19557 export_dynamic_flag_spec_CXX='${wl}-E'
19558 whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
19560 output_verbose_link_cmd=func_echo_all
19561 else
19562 ld_shlibs_CXX=no
19566 osf3* | osf4* | osf5*)
19567 case $cc_basename in
19568 KCC*)
19569 # Kuck and Associates, Inc. (KAI) C++ Compiler
19571 # KCC will only create a shared library if the output file
19572 # ends with ".so" (or ".sl" for HP-UX), so rename the library
19573 # to its proper name (with version) after linking.
19574 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'
19576 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
19577 hardcode_libdir_separator_CXX=:
19579 # Archives containing C++ object files must be created using
19580 # the KAI C++ compiler.
19581 case $host in
19582 osf3*) old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs' ;;
19583 *) old_archive_cmds_CXX='$CC -o $oldlib $oldobjs' ;;
19584 esac
19586 RCC*)
19587 # Rational C++ 2.4.1
19588 # FIXME: insert proper C++ library support
19589 ld_shlibs_CXX=no
19591 cxx*)
19592 case $host in
19593 osf3*)
19594 allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
19595 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'
19596 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
19599 allow_undefined_flag_CXX=' -expect_unresolved \*'
19600 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'
19601 archive_expsym_cmds_CXX='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done~
19602 echo "-hidden">> $lib.exp~
19603 $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~
19604 $RM $lib.exp'
19605 hardcode_libdir_flag_spec_CXX='-rpath $libdir'
19607 esac
19609 hardcode_libdir_separator_CXX=:
19611 # Commands to make compiler produce verbose output that lists
19612 # what "hidden" libraries, object files and flags are used when
19613 # linking a shared library.
19615 # There doesn't appear to be a way to prevent this compiler from
19616 # explicitly linking system object files so we need to strip them
19617 # from the output so that they don't get included in the library
19618 # dependencies.
19619 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"'
19622 if test "$GXX" = yes && test "$with_gnu_ld" = no; then
19623 allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
19624 case $host in
19625 osf3*)
19626 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'
19629 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'
19631 esac
19633 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
19634 hardcode_libdir_separator_CXX=:
19636 # Commands to make compiler produce verbose output that lists
19637 # what "hidden" libraries, object files and flags are used when
19638 # linking a shared library.
19639 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
19641 else
19642 # FIXME: insert proper C++ library support
19643 ld_shlibs_CXX=no
19646 esac
19649 psos*)
19650 # FIXME: insert proper C++ library support
19651 ld_shlibs_CXX=no
19654 sunos4*)
19655 case $cc_basename in
19656 CC*)
19657 # Sun C++ 4.x
19658 # FIXME: insert proper C++ library support
19659 ld_shlibs_CXX=no
19661 lcc*)
19662 # Lucid
19663 # FIXME: insert proper C++ library support
19664 ld_shlibs_CXX=no
19667 # FIXME: insert proper C++ library support
19668 ld_shlibs_CXX=no
19670 esac
19673 solaris*)
19674 case $cc_basename in
19675 CC*)
19676 # Sun C++ 4.2, 5.x and Centerline C++
19677 archive_cmds_need_lc_CXX=yes
19678 no_undefined_flag_CXX=' -zdefs'
19679 archive_cmds_CXX='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
19680 archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
19681 $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'
19683 hardcode_libdir_flag_spec_CXX='-R$libdir'
19684 hardcode_shlibpath_var_CXX=no
19685 case $host_os in
19686 solaris2.[0-5] | solaris2.[0-5].*) ;;
19688 # The compiler driver will combine and reorder linker options,
19689 # but understands `-z linker_flag'.
19690 # Supported since Solaris 2.6 (maybe 2.5.1?)
19691 whole_archive_flag_spec_CXX='-z allextract$convenience -z defaultextract'
19693 esac
19694 link_all_deplibs_CXX=yes
19696 output_verbose_link_cmd='func_echo_all'
19698 # Archives containing C++ object files must be created using
19699 # "CC -xar", where "CC" is the Sun C++ compiler. This is
19700 # necessary to make sure instantiated templates are included
19701 # in the archive.
19702 old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs'
19704 gcx*)
19705 # Green Hills C++ Compiler
19706 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
19708 # The C++ compiler must be used to create the archive.
19709 old_archive_cmds_CXX='$CC $LDFLAGS -archive -o $oldlib $oldobjs'
19712 # GNU C++ compiler with Solaris linker
19713 if test "$GXX" = yes && test "$with_gnu_ld" = no; then
19714 no_undefined_flag_CXX=' ${wl}-z ${wl}defs'
19715 if $CC --version | $GREP -v '^2\.7' > /dev/null; then
19716 archive_cmds_CXX='$CC -shared -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
19717 archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
19718 $CC -shared -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$RM $lib.exp'
19720 # Commands to make compiler produce verbose output that lists
19721 # what "hidden" libraries, object files and flags are used when
19722 # linking a shared library.
19723 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
19724 else
19725 # g++ 2.7 appears to require `-G' NOT `-shared' on this
19726 # platform.
19727 archive_cmds_CXX='$CC -G -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
19728 archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
19729 $CC -G -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$RM $lib.exp'
19731 # Commands to make compiler produce verbose output that lists
19732 # what "hidden" libraries, object files and flags are used when
19733 # linking a shared library.
19734 output_verbose_link_cmd='$CC -G $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
19737 hardcode_libdir_flag_spec_CXX='${wl}-R $wl$libdir'
19738 case $host_os in
19739 solaris2.[0-5] | solaris2.[0-5].*) ;;
19741 whole_archive_flag_spec_CXX='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
19743 esac
19746 esac
19749 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
19750 no_undefined_flag_CXX='${wl}-z,text'
19751 archive_cmds_need_lc_CXX=no
19752 hardcode_shlibpath_var_CXX=no
19753 runpath_var='LD_RUN_PATH'
19755 case $cc_basename in
19756 CC*)
19757 archive_cmds_CXX='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
19758 archive_expsym_cmds_CXX='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
19761 archive_cmds_CXX='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
19762 archive_expsym_cmds_CXX='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
19764 esac
19767 sysv5* | sco3.2v5* | sco5v6*)
19768 # Note: We can NOT use -z defs as we might desire, because we do not
19769 # link with -lc, and that would cause any symbols used from libc to
19770 # always be unresolved, which means just about no library would
19771 # ever link correctly. If we're not using GNU ld we use -z text
19772 # though, which does catch some bad symbols but isn't as heavy-handed
19773 # as -z defs.
19774 no_undefined_flag_CXX='${wl}-z,text'
19775 allow_undefined_flag_CXX='${wl}-z,nodefs'
19776 archive_cmds_need_lc_CXX=no
19777 hardcode_shlibpath_var_CXX=no
19778 hardcode_libdir_flag_spec_CXX='${wl}-R,$libdir'
19779 hardcode_libdir_separator_CXX=':'
19780 link_all_deplibs_CXX=yes
19781 export_dynamic_flag_spec_CXX='${wl}-Bexport'
19782 runpath_var='LD_RUN_PATH'
19784 case $cc_basename in
19785 CC*)
19786 archive_cmds_CXX='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
19787 archive_expsym_cmds_CXX='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
19788 old_archive_cmds_CXX='$CC -Tprelink_objects $oldobjs~
19789 '"$old_archive_cmds_CXX"
19790 reload_cmds_CXX='$CC -Tprelink_objects $reload_objs~
19791 '"$reload_cmds_CXX"
19794 archive_cmds_CXX='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
19795 archive_expsym_cmds_CXX='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
19797 esac
19800 tandem*)
19801 case $cc_basename in
19802 NCC*)
19803 # NonStop-UX NCC 3.20
19804 # FIXME: insert proper C++ library support
19805 ld_shlibs_CXX=no
19808 # FIXME: insert proper C++ library support
19809 ld_shlibs_CXX=no
19811 esac
19814 vxworks*)
19815 # FIXME: insert proper C++ library support
19816 ld_shlibs_CXX=no
19820 # FIXME: insert proper C++ library support
19821 ld_shlibs_CXX=no
19823 esac
19825 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs_CXX" >&5
19826 $as_echo "$ld_shlibs_CXX" >&6; }
19827 test "$ld_shlibs_CXX" = no && can_build_shared=no
19829 GCC_CXX="$GXX"
19830 LD_CXX="$LD"
19832 ## CAVEAT EMPTOR:
19833 ## There is no encapsulation within the following macros, do not change
19834 ## the running order or otherwise move them around unless you know exactly
19835 ## what you are doing...
19836 # Dependencies to place before and after the object being linked:
19837 predep_objects_CXX=
19838 postdep_objects_CXX=
19839 predeps_CXX=
19840 postdeps_CXX=
19841 compiler_lib_search_path_CXX=
19843 cat > conftest.$ac_ext <<_LT_EOF
19844 class Foo
19846 public:
19847 Foo (void) { a = 0; }
19848 private:
19849 int a;
19851 _LT_EOF
19853 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
19854 (eval $ac_compile) 2>&5
19855 ac_status=$?
19856 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
19857 test $ac_status = 0; }; then
19858 # Parse the compiler output and extract the necessary
19859 # objects, libraries and library flags.
19861 # Sentinel used to keep track of whether or not we are before
19862 # the conftest object file.
19863 pre_test_object_deps_done=no
19865 for p in `eval "$output_verbose_link_cmd"`; do
19866 case $p in
19868 -L* | -R* | -l*)
19869 # Some compilers place space between "-{L,R}" and the path.
19870 # Remove the space.
19871 if test $p = "-L" ||
19872 test $p = "-R"; then
19873 prev=$p
19874 continue
19875 else
19876 prev=
19879 if test "$pre_test_object_deps_done" = no; then
19880 case $p in
19881 -L* | -R*)
19882 # Internal compiler library paths should come after those
19883 # provided the user. The postdeps already come after the
19884 # user supplied libs so there is no need to process them.
19885 if test -z "$compiler_lib_search_path_CXX"; then
19886 compiler_lib_search_path_CXX="${prev}${p}"
19887 else
19888 compiler_lib_search_path_CXX="${compiler_lib_search_path_CXX} ${prev}${p}"
19891 # The "-l" case would never come before the object being
19892 # linked, so don't bother handling this case.
19893 esac
19894 else
19895 if test -z "$postdeps_CXX"; then
19896 postdeps_CXX="${prev}${p}"
19897 else
19898 postdeps_CXX="${postdeps_CXX} ${prev}${p}"
19903 *.$objext)
19904 # This assumes that the test object file only shows up
19905 # once in the compiler output.
19906 if test "$p" = "conftest.$objext"; then
19907 pre_test_object_deps_done=yes
19908 continue
19911 if test "$pre_test_object_deps_done" = no; then
19912 if test -z "$predep_objects_CXX"; then
19913 predep_objects_CXX="$p"
19914 else
19915 predep_objects_CXX="$predep_objects_CXX $p"
19917 else
19918 if test -z "$postdep_objects_CXX"; then
19919 postdep_objects_CXX="$p"
19920 else
19921 postdep_objects_CXX="$postdep_objects_CXX $p"
19926 *) ;; # Ignore the rest.
19928 esac
19929 done
19931 # Clean up.
19932 rm -f a.out a.exe
19933 else
19934 echo "libtool.m4: error: problem compiling CXX test program"
19937 $RM -f confest.$objext
19939 # PORTME: override above test on systems where it is broken
19940 case $host_os in
19941 interix[3-9]*)
19942 # Interix 3.5 installs completely hosed .la files for C++, so rather than
19943 # hack all around it, let's just trust "g++" to DTRT.
19944 predep_objects_CXX=
19945 postdep_objects_CXX=
19946 postdeps_CXX=
19949 linux*)
19950 case `$CC -V 2>&1 | sed 5q` in
19951 *Sun\ C*)
19952 # Sun C++ 5.9
19954 # The more standards-conforming stlport4 library is
19955 # incompatible with the Cstd library. Avoid specifying
19956 # it if it's in CXXFLAGS. Ignore libCrun as
19957 # -library=stlport4 depends on it.
19958 case " $CXX $CXXFLAGS " in
19959 *" -library=stlport4 "*)
19960 solaris_use_stlport4=yes
19962 esac
19964 if test "$solaris_use_stlport4" != yes; then
19965 postdeps_CXX='-library=Cstd -library=Crun'
19968 esac
19971 solaris*)
19972 case $cc_basename in
19973 CC*)
19974 # The more standards-conforming stlport4 library is
19975 # incompatible with the Cstd library. Avoid specifying
19976 # it if it's in CXXFLAGS. Ignore libCrun as
19977 # -library=stlport4 depends on it.
19978 case " $CXX $CXXFLAGS " in
19979 *" -library=stlport4 "*)
19980 solaris_use_stlport4=yes
19982 esac
19984 # Adding this requires a known-good setup of shared libraries for
19985 # Sun compiler versions before 5.6, else PIC objects from an old
19986 # archive will be linked into the output, leading to subtle bugs.
19987 if test "$solaris_use_stlport4" != yes; then
19988 postdeps_CXX='-library=Cstd -library=Crun'
19991 esac
19993 esac
19996 case " $postdeps_CXX " in
19997 *" -lc "*) archive_cmds_need_lc_CXX=no ;;
19998 esac
19999 compiler_lib_search_dirs_CXX=
20000 if test -n "${compiler_lib_search_path_CXX}"; then
20001 compiler_lib_search_dirs_CXX=`echo " ${compiler_lib_search_path_CXX}" | ${SED} -e 's! -L! !g' -e 's!^ !!'`
20034 lt_prog_compiler_wl_CXX=
20035 lt_prog_compiler_pic_CXX=
20036 lt_prog_compiler_static_CXX=
20038 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
20039 $as_echo_n "checking for $compiler option to produce PIC... " >&6; }
20041 # C++ specific cases for pic, static, wl, etc.
20042 if test "$GXX" = yes; then
20043 lt_prog_compiler_wl_CXX='-Wl,'
20044 lt_prog_compiler_static_CXX='-static'
20046 case $host_os in
20047 aix*)
20048 # All AIX code is PIC.
20049 if test "$host_cpu" = ia64; then
20050 # AIX 5 now supports IA64 processor
20051 lt_prog_compiler_static_CXX='-Bstatic'
20053 lt_prog_compiler_pic_CXX='-fPIC'
20056 amigaos*)
20057 case $host_cpu in
20058 powerpc)
20059 # see comment about AmigaOS4 .so support
20060 lt_prog_compiler_pic_CXX='-fPIC'
20062 m68k)
20063 # FIXME: we need at least 68020 code to build shared libraries, but
20064 # adding the `-m68020' flag to GCC prevents building anything better,
20065 # like `-m68040'.
20066 lt_prog_compiler_pic_CXX='-m68020 -resident32 -malways-restore-a4'
20068 esac
20071 beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
20072 # PIC is the default for these OSes.
20074 mingw* | cygwin* | os2* | pw32* | cegcc*)
20075 # This hack is so that the source file can tell whether it is being
20076 # built for inclusion in a dll (and should export symbols for example).
20077 # Although the cygwin gcc ignores -fPIC, still need this for old-style
20078 # (--disable-auto-import) libraries
20079 lt_prog_compiler_pic_CXX='-DDLL_EXPORT'
20081 darwin* | rhapsody*)
20082 # PIC is the default on this platform
20083 # Common symbols not allowed in MH_DYLIB files
20084 lt_prog_compiler_pic_CXX='-fno-common'
20086 *djgpp*)
20087 # DJGPP does not support shared libraries at all
20088 lt_prog_compiler_pic_CXX=
20090 haiku*)
20091 # PIC is the default for Haiku.
20092 # The "-static" flag exists, but is broken.
20093 lt_prog_compiler_static_CXX=
20095 interix[3-9]*)
20096 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
20097 # Instead, we relocate shared libraries at runtime.
20099 sysv4*MP*)
20100 if test -d /usr/nec; then
20101 lt_prog_compiler_pic_CXX=-Kconform_pic
20104 hpux*)
20105 # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
20106 # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag
20107 # sets the default TLS model and affects inlining.
20108 case $host_cpu in
20109 hppa*64*)
20112 lt_prog_compiler_pic_CXX='-fPIC'
20114 esac
20116 *qnx* | *nto*)
20117 # QNX uses GNU C++, but need to define -shared option too, otherwise
20118 # it will coredump.
20119 lt_prog_compiler_pic_CXX='-fPIC -shared'
20122 lt_prog_compiler_pic_CXX='-fPIC'
20124 esac
20125 else
20126 case $host_os in
20127 aix[4-9]*)
20128 # All AIX code is PIC.
20129 if test "$host_cpu" = ia64; then
20130 # AIX 5 now supports IA64 processor
20131 lt_prog_compiler_static_CXX='-Bstatic'
20132 else
20133 lt_prog_compiler_static_CXX='-bnso -bI:/lib/syscalls.exp'
20136 chorus*)
20137 case $cc_basename in
20138 cxch68*)
20139 # Green Hills C++ Compiler
20140 # _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"
20142 esac
20144 dgux*)
20145 case $cc_basename in
20146 ec++*)
20147 lt_prog_compiler_pic_CXX='-KPIC'
20149 ghcx*)
20150 # Green Hills C++ Compiler
20151 lt_prog_compiler_pic_CXX='-pic'
20155 esac
20157 freebsd* | dragonfly*)
20158 # FreeBSD uses GNU C++
20160 hpux9* | hpux10* | hpux11*)
20161 case $cc_basename in
20162 CC*)
20163 lt_prog_compiler_wl_CXX='-Wl,'
20164 lt_prog_compiler_static_CXX='${wl}-a ${wl}archive'
20165 if test "$host_cpu" != ia64; then
20166 lt_prog_compiler_pic_CXX='+Z'
20169 aCC*)
20170 lt_prog_compiler_wl_CXX='-Wl,'
20171 lt_prog_compiler_static_CXX='${wl}-a ${wl}archive'
20172 case $host_cpu in
20173 hppa*64*|ia64*)
20174 # +Z the default
20177 lt_prog_compiler_pic_CXX='+Z'
20179 esac
20183 esac
20185 interix*)
20186 # This is c89, which is MS Visual C++ (no shared libs)
20187 # Anyone wants to do a port?
20189 irix5* | irix6* | nonstopux*)
20190 case $cc_basename in
20191 CC*)
20192 lt_prog_compiler_wl_CXX='-Wl,'
20193 lt_prog_compiler_static_CXX='-non_shared'
20194 # CC pic flag -KPIC is the default.
20198 esac
20200 linux* | k*bsd*-gnu | kopensolaris*-gnu)
20201 case $cc_basename in
20202 KCC*)
20203 # KAI C++ Compiler
20204 lt_prog_compiler_wl_CXX='--backend -Wl,'
20205 lt_prog_compiler_pic_CXX='-fPIC'
20207 ecpc* )
20208 # old Intel C++ for x86_64 which still supported -KPIC.
20209 lt_prog_compiler_wl_CXX='-Wl,'
20210 lt_prog_compiler_pic_CXX='-KPIC'
20211 lt_prog_compiler_static_CXX='-static'
20213 icpc* )
20214 # Intel C++, used to be incompatible with GCC.
20215 # ICC 10 doesn't accept -KPIC any more.
20216 lt_prog_compiler_wl_CXX='-Wl,'
20217 lt_prog_compiler_pic_CXX='-fPIC'
20218 lt_prog_compiler_static_CXX='-static'
20220 pgCC* | pgcpp*)
20221 # Portland Group C++ compiler
20222 lt_prog_compiler_wl_CXX='-Wl,'
20223 lt_prog_compiler_pic_CXX='-fpic'
20224 lt_prog_compiler_static_CXX='-Bstatic'
20226 cxx*)
20227 # Compaq C++
20228 # Make sure the PIC flag is empty. It appears that all Alpha
20229 # Linux and Compaq Tru64 Unix objects are PIC.
20230 lt_prog_compiler_pic_CXX=
20231 lt_prog_compiler_static_CXX='-non_shared'
20233 xlc* | xlC* | bgxl[cC]* | mpixl[cC]*)
20234 # IBM XL 8.0, 9.0 on PPC and BlueGene
20235 lt_prog_compiler_wl_CXX='-Wl,'
20236 lt_prog_compiler_pic_CXX='-qpic'
20237 lt_prog_compiler_static_CXX='-qstaticlink'
20240 case `$CC -V 2>&1 | sed 5q` in
20241 *Sun\ C*)
20242 # Sun C++ 5.9
20243 lt_prog_compiler_pic_CXX='-KPIC'
20244 lt_prog_compiler_static_CXX='-Bstatic'
20245 lt_prog_compiler_wl_CXX='-Qoption ld '
20247 esac
20249 esac
20251 lynxos*)
20253 m88k*)
20255 mvs*)
20256 case $cc_basename in
20257 cxx*)
20258 lt_prog_compiler_pic_CXX='-W c,exportall'
20262 esac
20264 netbsd*)
20266 *qnx* | *nto*)
20267 # QNX uses GNU C++, but need to define -shared option too, otherwise
20268 # it will coredump.
20269 lt_prog_compiler_pic_CXX='-fPIC -shared'
20271 osf3* | osf4* | osf5*)
20272 case $cc_basename in
20273 KCC*)
20274 lt_prog_compiler_wl_CXX='--backend -Wl,'
20276 RCC*)
20277 # Rational C++ 2.4.1
20278 lt_prog_compiler_pic_CXX='-pic'
20280 cxx*)
20281 # Digital/Compaq C++
20282 lt_prog_compiler_wl_CXX='-Wl,'
20283 # Make sure the PIC flag is empty. It appears that all Alpha
20284 # Linux and Compaq Tru64 Unix objects are PIC.
20285 lt_prog_compiler_pic_CXX=
20286 lt_prog_compiler_static_CXX='-non_shared'
20290 esac
20292 psos*)
20294 solaris*)
20295 case $cc_basename in
20296 CC*)
20297 # Sun C++ 4.2, 5.x and Centerline C++
20298 lt_prog_compiler_pic_CXX='-KPIC'
20299 lt_prog_compiler_static_CXX='-Bstatic'
20300 lt_prog_compiler_wl_CXX='-Qoption ld '
20302 gcx*)
20303 # Green Hills C++ Compiler
20304 lt_prog_compiler_pic_CXX='-PIC'
20308 esac
20310 sunos4*)
20311 case $cc_basename in
20312 CC*)
20313 # Sun C++ 4.x
20314 lt_prog_compiler_pic_CXX='-pic'
20315 lt_prog_compiler_static_CXX='-Bstatic'
20317 lcc*)
20318 # Lucid
20319 lt_prog_compiler_pic_CXX='-pic'
20323 esac
20325 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
20326 case $cc_basename in
20327 CC*)
20328 lt_prog_compiler_wl_CXX='-Wl,'
20329 lt_prog_compiler_pic_CXX='-KPIC'
20330 lt_prog_compiler_static_CXX='-Bstatic'
20332 esac
20334 tandem*)
20335 case $cc_basename in
20336 NCC*)
20337 # NonStop-UX NCC 3.20
20338 lt_prog_compiler_pic_CXX='-KPIC'
20342 esac
20344 vxworks*)
20347 lt_prog_compiler_can_build_shared_CXX=no
20349 esac
20352 case $host_os in
20353 # For platforms which do not support PIC, -DPIC is meaningless:
20354 *djgpp*)
20355 lt_prog_compiler_pic_CXX=
20358 lt_prog_compiler_pic_CXX="$lt_prog_compiler_pic_CXX -DPIC"
20360 esac
20361 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_prog_compiler_pic_CXX" >&5
20362 $as_echo "$lt_prog_compiler_pic_CXX" >&6; }
20367 # Check to make sure the PIC flag actually works.
20369 if test -n "$lt_prog_compiler_pic_CXX"; then
20370 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works" >&5
20371 $as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works... " >&6; }
20372 if test "${lt_cv_prog_compiler_pic_works_CXX+set}" = set; then :
20373 $as_echo_n "(cached) " >&6
20374 else
20375 lt_cv_prog_compiler_pic_works_CXX=no
20376 ac_outfile=conftest.$ac_objext
20377 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
20378 lt_compiler_flag="$lt_prog_compiler_pic_CXX -DPIC"
20379 # Insert the option either (1) after the last *FLAGS variable, or
20380 # (2) before a word containing "conftest.", or (3) at the end.
20381 # Note that $ac_compile itself does not contain backslashes and begins
20382 # with a dollar sign (not a hyphen), so the echo should work correctly.
20383 # The option is referenced via a variable to avoid confusing sed.
20384 lt_compile=`echo "$ac_compile" | $SED \
20385 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
20386 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
20387 -e 's:$: $lt_compiler_flag:'`
20388 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
20389 (eval "$lt_compile" 2>conftest.err)
20390 ac_status=$?
20391 cat conftest.err >&5
20392 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20393 if (exit $ac_status) && test -s "$ac_outfile"; then
20394 # The compiler can only warn and ignore the option if not recognized
20395 # So say no if there are warnings other than the usual output.
20396 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
20397 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
20398 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
20399 lt_cv_prog_compiler_pic_works_CXX=yes
20402 $RM conftest*
20405 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works_CXX" >&5
20406 $as_echo "$lt_cv_prog_compiler_pic_works_CXX" >&6; }
20408 if test x"$lt_cv_prog_compiler_pic_works_CXX" = xyes; then
20409 case $lt_prog_compiler_pic_CXX in
20410 "" | " "*) ;;
20411 *) lt_prog_compiler_pic_CXX=" $lt_prog_compiler_pic_CXX" ;;
20412 esac
20413 else
20414 lt_prog_compiler_pic_CXX=
20415 lt_prog_compiler_can_build_shared_CXX=no
20423 # Check to make sure the static flag actually works.
20425 wl=$lt_prog_compiler_wl_CXX eval lt_tmp_static_flag=\"$lt_prog_compiler_static_CXX\"
20426 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
20427 $as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
20428 if test "${lt_cv_prog_compiler_static_works_CXX+set}" = set; then :
20429 $as_echo_n "(cached) " >&6
20430 else
20431 lt_cv_prog_compiler_static_works_CXX=no
20432 save_LDFLAGS="$LDFLAGS"
20433 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
20434 echo "$lt_simple_link_test_code" > conftest.$ac_ext
20435 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
20436 # The linker can only warn and ignore the option if not recognized
20437 # So say no if there are warnings
20438 if test -s conftest.err; then
20439 # Append any errors to the config.log.
20440 cat conftest.err 1>&5
20441 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
20442 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
20443 if diff conftest.exp conftest.er2 >/dev/null; then
20444 lt_cv_prog_compiler_static_works_CXX=yes
20446 else
20447 lt_cv_prog_compiler_static_works_CXX=yes
20450 $RM -r conftest*
20451 LDFLAGS="$save_LDFLAGS"
20454 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works_CXX" >&5
20455 $as_echo "$lt_cv_prog_compiler_static_works_CXX" >&6; }
20457 if test x"$lt_cv_prog_compiler_static_works_CXX" = xyes; then
20459 else
20460 lt_prog_compiler_static_CXX=
20466 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
20467 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
20468 if test "${lt_cv_prog_compiler_c_o_CXX+set}" = set; then :
20469 $as_echo_n "(cached) " >&6
20470 else
20471 lt_cv_prog_compiler_c_o_CXX=no
20472 $RM -r conftest 2>/dev/null
20473 mkdir conftest
20474 cd conftest
20475 mkdir out
20476 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
20478 lt_compiler_flag="-o out/conftest2.$ac_objext"
20479 # Insert the option either (1) after the last *FLAGS variable, or
20480 # (2) before a word containing "conftest.", or (3) at the end.
20481 # Note that $ac_compile itself does not contain backslashes and begins
20482 # with a dollar sign (not a hyphen), so the echo should work correctly.
20483 lt_compile=`echo "$ac_compile" | $SED \
20484 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
20485 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
20486 -e 's:$: $lt_compiler_flag:'`
20487 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
20488 (eval "$lt_compile" 2>out/conftest.err)
20489 ac_status=$?
20490 cat out/conftest.err >&5
20491 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20492 if (exit $ac_status) && test -s out/conftest2.$ac_objext
20493 then
20494 # The compiler can only warn and ignore the option if not recognized
20495 # So say no if there are warnings
20496 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
20497 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
20498 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
20499 lt_cv_prog_compiler_c_o_CXX=yes
20502 chmod u+w . 2>&5
20503 $RM conftest*
20504 # SGI C++ compiler will create directory out/ii_files/ for
20505 # template instantiation
20506 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
20507 $RM out/* && rmdir out
20508 cd ..
20509 $RM -r conftest
20510 $RM conftest*
20513 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o_CXX" >&5
20514 $as_echo "$lt_cv_prog_compiler_c_o_CXX" >&6; }
20518 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
20519 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
20520 if test "${lt_cv_prog_compiler_c_o_CXX+set}" = set; then :
20521 $as_echo_n "(cached) " >&6
20522 else
20523 lt_cv_prog_compiler_c_o_CXX=no
20524 $RM -r conftest 2>/dev/null
20525 mkdir conftest
20526 cd conftest
20527 mkdir out
20528 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
20530 lt_compiler_flag="-o out/conftest2.$ac_objext"
20531 # Insert the option either (1) after the last *FLAGS variable, or
20532 # (2) before a word containing "conftest.", or (3) at the end.
20533 # Note that $ac_compile itself does not contain backslashes and begins
20534 # with a dollar sign (not a hyphen), so the echo should work correctly.
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>out/conftest.err)
20541 ac_status=$?
20542 cat out/conftest.err >&5
20543 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20544 if (exit $ac_status) && test -s out/conftest2.$ac_objext
20545 then
20546 # The compiler can only warn and ignore the option if not recognized
20547 # So say no if there are warnings
20548 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
20549 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
20550 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
20551 lt_cv_prog_compiler_c_o_CXX=yes
20554 chmod u+w . 2>&5
20555 $RM conftest*
20556 # SGI C++ compiler will create directory out/ii_files/ for
20557 # template instantiation
20558 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
20559 $RM out/* && rmdir out
20560 cd ..
20561 $RM -r conftest
20562 $RM conftest*
20565 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o_CXX" >&5
20566 $as_echo "$lt_cv_prog_compiler_c_o_CXX" >&6; }
20571 hard_links="nottested"
20572 if test "$lt_cv_prog_compiler_c_o_CXX" = no && test "$need_locks" != no; then
20573 # do not overwrite the value of need_locks provided by the user
20574 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
20575 $as_echo_n "checking if we can lock with hard links... " >&6; }
20576 hard_links=yes
20577 $RM conftest*
20578 ln conftest.a conftest.b 2>/dev/null && hard_links=no
20579 touch conftest.a
20580 ln conftest.a conftest.b 2>&5 || hard_links=no
20581 ln conftest.a conftest.b 2>/dev/null && hard_links=no
20582 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
20583 $as_echo "$hard_links" >&6; }
20584 if test "$hard_links" = no; then
20585 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
20586 $as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
20587 need_locks=warn
20589 else
20590 need_locks=no
20595 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
20596 $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
20598 export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
20599 case $host_os in
20600 aix[4-9]*)
20601 # If we're using GNU nm, then we don't want the "-C" option.
20602 # -C means demangle to AIX nm, but means don't demangle with GNU nm
20603 # Also, AIX nm treats weak defined symbols like other global defined
20604 # symbols, whereas GNU nm marks them as "W".
20605 if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
20606 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'
20607 else
20608 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'
20611 pw32*)
20612 export_symbols_cmds_CXX="$ltdll_cmds"
20614 cygwin* | mingw* | cegcc*)
20615 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'
20618 export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
20620 esac
20621 exclude_expsyms_CXX='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
20623 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs_CXX" >&5
20624 $as_echo "$ld_shlibs_CXX" >&6; }
20625 test "$ld_shlibs_CXX" = no && can_build_shared=no
20627 with_gnu_ld_CXX=$with_gnu_ld
20635 # Do we need to explicitly link libc?
20637 case "x$archive_cmds_need_lc_CXX" in
20638 x|xyes)
20639 # Assume -lc should be added
20640 archive_cmds_need_lc_CXX=yes
20642 if test "$enable_shared" = yes && test "$GCC" = yes; then
20643 case $archive_cmds_CXX in
20644 *'~'*)
20645 # FIXME: we may have to deal with multi-command sequences.
20647 '$CC '*)
20648 # Test whether the compiler implicitly links with -lc since on some
20649 # systems, -lgcc has to come before -lc. If gcc already passes -lc
20650 # to ld, don't add -lc before -lgcc.
20651 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
20652 $as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
20653 if test "${lt_cv_archive_cmds_need_lc_CXX+set}" = set; then :
20654 $as_echo_n "(cached) " >&6
20655 else
20656 $RM conftest*
20657 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
20659 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
20660 (eval $ac_compile) 2>&5
20661 ac_status=$?
20662 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
20663 test $ac_status = 0; } 2>conftest.err; then
20664 soname=conftest
20665 lib=conftest
20666 libobjs=conftest.$ac_objext
20667 deplibs=
20668 wl=$lt_prog_compiler_wl_CXX
20669 pic_flag=$lt_prog_compiler_pic_CXX
20670 compiler_flags=-v
20671 linker_flags=-v
20672 verstring=
20673 output_objdir=.
20674 libname=conftest
20675 lt_save_allow_undefined_flag=$allow_undefined_flag_CXX
20676 allow_undefined_flag_CXX=
20677 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds_CXX 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5
20678 (eval $archive_cmds_CXX 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
20679 ac_status=$?
20680 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
20681 test $ac_status = 0; }
20682 then
20683 lt_cv_archive_cmds_need_lc_CXX=no
20684 else
20685 lt_cv_archive_cmds_need_lc_CXX=yes
20687 allow_undefined_flag_CXX=$lt_save_allow_undefined_flag
20688 else
20689 cat conftest.err 1>&5
20691 $RM conftest*
20694 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc_CXX" >&5
20695 $as_echo "$lt_cv_archive_cmds_need_lc_CXX" >&6; }
20696 archive_cmds_need_lc_CXX=$lt_cv_archive_cmds_need_lc_CXX
20698 esac
20701 esac
20766 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
20767 $as_echo_n "checking dynamic linker characteristics... " >&6; }
20769 library_names_spec=
20770 libname_spec='lib$name'
20771 soname_spec=
20772 shrext_cmds=".so"
20773 postinstall_cmds=
20774 postuninstall_cmds=
20775 finish_cmds=
20776 finish_eval=
20777 shlibpath_var=
20778 shlibpath_overrides_runpath=unknown
20779 version_type=none
20780 dynamic_linker="$host_os ld.so"
20781 sys_lib_dlsearch_path_spec="/lib /usr/lib"
20782 need_lib_prefix=unknown
20783 hardcode_into_libs=no
20785 # when you set need_version to no, make sure it does not cause -set_version
20786 # flags to be left without arguments
20787 need_version=unknown
20789 case $host_os in
20790 aix3*)
20791 version_type=linux
20792 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
20793 shlibpath_var=LIBPATH
20795 # AIX 3 has no versioning support, so we append a major version to the name.
20796 soname_spec='${libname}${release}${shared_ext}$major'
20799 aix[4-9]*)
20800 version_type=linux
20801 need_lib_prefix=no
20802 need_version=no
20803 hardcode_into_libs=yes
20804 if test "$host_cpu" = ia64; then
20805 # AIX 5 supports IA64
20806 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
20807 shlibpath_var=LD_LIBRARY_PATH
20808 else
20809 # With GCC up to 2.95.x, collect2 would create an import file
20810 # for dependence libraries. The import file would start with
20811 # the line `#! .'. This would cause the generated library to
20812 # depend on `.', always an invalid library. This was fixed in
20813 # development snapshots of GCC prior to 3.0.
20814 case $host_os in
20815 aix4 | aix4.[01] | aix4.[01].*)
20816 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
20817 echo ' yes '
20818 echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then
20820 else
20821 can_build_shared=no
20824 esac
20825 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
20826 # soname into executable. Probably we can add versioning support to
20827 # collect2, so additional links can be useful in future.
20828 if test "$aix_use_runtimelinking" = yes; then
20829 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
20830 # instead of lib<name>.a to let people know that these are not
20831 # typical AIX shared libraries.
20832 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20833 else
20834 # We preserve .a as extension for shared libraries through AIX4.2
20835 # and later when we are not doing run time linking.
20836 library_names_spec='${libname}${release}.a $libname.a'
20837 soname_spec='${libname}${release}${shared_ext}$major'
20839 shlibpath_var=LIBPATH
20843 amigaos*)
20844 case $host_cpu in
20845 powerpc)
20846 # Since July 2007 AmigaOS4 officially supports .so libraries.
20847 # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
20848 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20850 m68k)
20851 library_names_spec='$libname.ixlibrary $libname.a'
20852 # Create ${libname}_ixlibrary.a entries in /sys/libs.
20853 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'
20855 esac
20858 beos*)
20859 library_names_spec='${libname}${shared_ext}'
20860 dynamic_linker="$host_os ld.so"
20861 shlibpath_var=LIBRARY_PATH
20864 bsdi[45]*)
20865 version_type=linux
20866 need_version=no
20867 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20868 soname_spec='${libname}${release}${shared_ext}$major'
20869 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
20870 shlibpath_var=LD_LIBRARY_PATH
20871 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
20872 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
20873 # the default ld.so.conf also contains /usr/contrib/lib and
20874 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
20875 # libtool to hard-code these into programs
20878 cygwin* | mingw* | pw32* | cegcc*)
20879 version_type=windows
20880 shrext_cmds=".dll"
20881 need_version=no
20882 need_lib_prefix=no
20884 case $GCC,$host_os in
20885 yes,cygwin* | yes,mingw* | yes,pw32* | yes,cegcc*)
20886 library_names_spec='$libname.dll.a'
20887 # DLL is installed to $(libdir)/../bin by postinstall_cmds
20888 postinstall_cmds='base_file=`basename \${file}`~
20889 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
20890 dldir=$destdir/`dirname \$dlpath`~
20891 test -d \$dldir || mkdir -p \$dldir~
20892 $install_prog $dir/$dlname \$dldir/$dlname~
20893 chmod a+x \$dldir/$dlname~
20894 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
20895 eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
20897 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
20898 dlpath=$dir/\$dldll~
20899 $RM \$dlpath'
20900 shlibpath_overrides_runpath=yes
20902 case $host_os in
20903 cygwin*)
20904 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
20905 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
20908 mingw* | cegcc*)
20909 # MinGW DLLs use traditional 'lib' prefix
20910 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
20912 pw32*)
20913 # pw32 DLLs use 'pw' prefix rather than 'lib'
20914 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
20916 esac
20920 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
20922 esac
20923 dynamic_linker='Win32 ld.exe'
20924 # FIXME: first we should search . and the directory the executable is in
20925 shlibpath_var=PATH
20928 darwin* | rhapsody*)
20929 dynamic_linker="$host_os dyld"
20930 version_type=darwin
20931 need_lib_prefix=no
20932 need_version=no
20933 library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext'
20934 soname_spec='${libname}${release}${major}$shared_ext'
20935 shlibpath_overrides_runpath=yes
20936 shlibpath_var=DYLD_LIBRARY_PATH
20937 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
20939 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
20942 dgux*)
20943 version_type=linux
20944 need_lib_prefix=no
20945 need_version=no
20946 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
20947 soname_spec='${libname}${release}${shared_ext}$major'
20948 shlibpath_var=LD_LIBRARY_PATH
20951 freebsd* | dragonfly*)
20952 # DragonFly does not have aout. When/if they implement a new
20953 # versioning mechanism, adjust this.
20954 if test -x /usr/bin/objformat; then
20955 objformat=`/usr/bin/objformat`
20956 else
20957 case $host_os in
20958 freebsd[23].*) objformat=aout ;;
20959 *) objformat=elf ;;
20960 esac
20962 version_type=freebsd-$objformat
20963 case $version_type in
20964 freebsd-elf*)
20965 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
20966 need_version=no
20967 need_lib_prefix=no
20969 freebsd-*)
20970 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
20971 need_version=yes
20973 esac
20974 shlibpath_var=LD_LIBRARY_PATH
20975 case $host_os in
20976 freebsd2.*)
20977 shlibpath_overrides_runpath=yes
20979 freebsd3.[01]* | freebsdelf3.[01]*)
20980 shlibpath_overrides_runpath=yes
20981 hardcode_into_libs=yes
20983 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
20984 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
20985 shlibpath_overrides_runpath=no
20986 hardcode_into_libs=yes
20988 *) # from 4.6 on, and DragonFly
20989 shlibpath_overrides_runpath=yes
20990 hardcode_into_libs=yes
20992 esac
20995 gnu*)
20996 version_type=linux
20997 need_lib_prefix=no
20998 need_version=no
20999 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
21000 soname_spec='${libname}${release}${shared_ext}$major'
21001 shlibpath_var=LD_LIBRARY_PATH
21002 hardcode_into_libs=yes
21005 haiku*)
21006 version_type=linux
21007 need_lib_prefix=no
21008 need_version=no
21009 dynamic_linker="$host_os runtime_loader"
21010 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
21011 soname_spec='${libname}${release}${shared_ext}$major'
21012 shlibpath_var=LIBRARY_PATH
21013 shlibpath_overrides_runpath=yes
21014 sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/beos/system/lib'
21015 hardcode_into_libs=yes
21018 hpux9* | hpux10* | hpux11*)
21019 # Give a soname corresponding to the major version so that dld.sl refuses to
21020 # link against other versions.
21021 version_type=sunos
21022 need_lib_prefix=no
21023 need_version=no
21024 case $host_cpu in
21025 ia64*)
21026 shrext_cmds='.so'
21027 hardcode_into_libs=yes
21028 dynamic_linker="$host_os dld.so"
21029 shlibpath_var=LD_LIBRARY_PATH
21030 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
21031 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
21032 soname_spec='${libname}${release}${shared_ext}$major'
21033 if test "X$HPUX_IA64_MODE" = X32; then
21034 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
21035 else
21036 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
21038 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
21040 hppa*64*)
21041 shrext_cmds='.sl'
21042 hardcode_into_libs=yes
21043 dynamic_linker="$host_os dld.sl"
21044 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
21045 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
21046 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
21047 soname_spec='${libname}${release}${shared_ext}$major'
21048 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
21049 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
21052 shrext_cmds='.sl'
21053 dynamic_linker="$host_os dld.sl"
21054 shlibpath_var=SHLIB_PATH
21055 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
21056 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
21057 soname_spec='${libname}${release}${shared_ext}$major'
21059 esac
21060 # HP-UX runs *really* slowly unless shared libraries are mode 555, ...
21061 postinstall_cmds='chmod 555 $lib'
21062 # or fails outright, so override atomically:
21063 install_override_mode=555
21066 interix[3-9]*)
21067 version_type=linux
21068 need_lib_prefix=no
21069 need_version=no
21070 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
21071 soname_spec='${libname}${release}${shared_ext}$major'
21072 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
21073 shlibpath_var=LD_LIBRARY_PATH
21074 shlibpath_overrides_runpath=no
21075 hardcode_into_libs=yes
21078 irix5* | irix6* | nonstopux*)
21079 case $host_os in
21080 nonstopux*) version_type=nonstopux ;;
21082 if test "$lt_cv_prog_gnu_ld" = yes; then
21083 version_type=linux
21084 else
21085 version_type=irix
21086 fi ;;
21087 esac
21088 need_lib_prefix=no
21089 need_version=no
21090 soname_spec='${libname}${release}${shared_ext}$major'
21091 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
21092 case $host_os in
21093 irix5* | nonstopux*)
21094 libsuff= shlibsuff=
21097 case $LD in # libtool.m4 will add one of these switches to LD
21098 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
21099 libsuff= shlibsuff= libmagic=32-bit;;
21100 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
21101 libsuff=32 shlibsuff=N32 libmagic=N32;;
21102 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
21103 libsuff=64 shlibsuff=64 libmagic=64-bit;;
21104 *) libsuff= shlibsuff= libmagic=never-match;;
21105 esac
21107 esac
21108 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
21109 shlibpath_overrides_runpath=no
21110 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
21111 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
21112 hardcode_into_libs=yes
21115 # No shared lib support for Linux oldld, aout, or coff.
21116 linux*oldld* | linux*aout* | linux*coff*)
21117 dynamic_linker=no
21120 # This must be Linux ELF.
21121 linux* | k*bsd*-gnu | kopensolaris*-gnu)
21122 version_type=linux
21123 need_lib_prefix=no
21124 need_version=no
21125 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
21126 soname_spec='${libname}${release}${shared_ext}$major'
21127 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
21128 shlibpath_var=LD_LIBRARY_PATH
21129 shlibpath_overrides_runpath=no
21131 # Some binutils ld are patched to set DT_RUNPATH
21132 if test "${lt_cv_shlibpath_overrides_runpath+set}" = set; then :
21133 $as_echo_n "(cached) " >&6
21134 else
21135 lt_cv_shlibpath_overrides_runpath=no
21136 save_LDFLAGS=$LDFLAGS
21137 save_libdir=$libdir
21138 eval "libdir=/foo; wl=\"$lt_prog_compiler_wl_CXX\"; \
21139 LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec_CXX\""
21140 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21141 /* end confdefs.h. */
21144 main ()
21148 return 0;
21150 _ACEOF
21151 if ac_fn_cxx_try_link "$LINENO"; then :
21152 if ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then :
21153 lt_cv_shlibpath_overrides_runpath=yes
21156 rm -f core conftest.err conftest.$ac_objext \
21157 conftest$ac_exeext conftest.$ac_ext
21158 LDFLAGS=$save_LDFLAGS
21159 libdir=$save_libdir
21163 shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath
21165 # This implies no fast_install, which is unacceptable.
21166 # Some rework will be needed to allow for fast_install
21167 # before this can be enabled.
21168 hardcode_into_libs=yes
21170 # Append ld.so.conf contents to the search path
21171 if test -f /etc/ld.so.conf; then
21172 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' ' '`
21173 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
21176 # We used to test for /lib/ld.so.1 and disable shared libraries on
21177 # powerpc, because MkLinux only supported shared libraries with the
21178 # GNU dynamic linker. Since this was broken with cross compilers,
21179 # most powerpc-linux boxes support dynamic linking these days and
21180 # people can always --disable-shared, the test was removed, and we
21181 # assume the GNU/Linux dynamic linker is in use.
21182 dynamic_linker='GNU/Linux ld.so'
21185 netbsd*)
21186 version_type=sunos
21187 need_lib_prefix=no
21188 need_version=no
21189 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
21190 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
21191 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
21192 dynamic_linker='NetBSD (a.out) ld.so'
21193 else
21194 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
21195 soname_spec='${libname}${release}${shared_ext}$major'
21196 dynamic_linker='NetBSD ld.elf_so'
21198 shlibpath_var=LD_LIBRARY_PATH
21199 shlibpath_overrides_runpath=yes
21200 hardcode_into_libs=yes
21203 newsos6)
21204 version_type=linux
21205 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
21206 shlibpath_var=LD_LIBRARY_PATH
21207 shlibpath_overrides_runpath=yes
21210 *nto* | *qnx*)
21211 version_type=qnx
21212 need_lib_prefix=no
21213 need_version=no
21214 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
21215 soname_spec='${libname}${release}${shared_ext}$major'
21216 shlibpath_var=LD_LIBRARY_PATH
21217 shlibpath_overrides_runpath=no
21218 hardcode_into_libs=yes
21219 dynamic_linker='ldqnx.so'
21222 openbsd*)
21223 version_type=sunos
21224 sys_lib_dlsearch_path_spec="/usr/lib"
21225 need_lib_prefix=no
21226 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
21227 case $host_os in
21228 openbsd3.3 | openbsd3.3.*) need_version=yes ;;
21229 *) need_version=no ;;
21230 esac
21231 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
21232 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
21233 shlibpath_var=LD_LIBRARY_PATH
21234 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
21235 case $host_os in
21236 openbsd2.[89] | openbsd2.[89].*)
21237 shlibpath_overrides_runpath=no
21240 shlibpath_overrides_runpath=yes
21242 esac
21243 else
21244 shlibpath_overrides_runpath=yes
21248 os2*)
21249 libname_spec='$name'
21250 shrext_cmds=".dll"
21251 need_lib_prefix=no
21252 library_names_spec='$libname${shared_ext} $libname.a'
21253 dynamic_linker='OS/2 ld.exe'
21254 shlibpath_var=LIBPATH
21257 osf3* | osf4* | osf5*)
21258 version_type=osf
21259 need_lib_prefix=no
21260 need_version=no
21261 soname_spec='${libname}${release}${shared_ext}$major'
21262 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
21263 shlibpath_var=LD_LIBRARY_PATH
21264 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
21265 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
21268 rdos*)
21269 dynamic_linker=no
21272 solaris*)
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 shlibpath_var=LD_LIBRARY_PATH
21279 shlibpath_overrides_runpath=yes
21280 hardcode_into_libs=yes
21281 # ldd complains unless libraries are executable
21282 postinstall_cmds='chmod +x $lib'
21285 sunos4*)
21286 version_type=sunos
21287 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
21288 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
21289 shlibpath_var=LD_LIBRARY_PATH
21290 shlibpath_overrides_runpath=yes
21291 if test "$with_gnu_ld" = yes; then
21292 need_lib_prefix=no
21294 need_version=yes
21297 sysv4 | sysv4.3*)
21298 version_type=linux
21299 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
21300 soname_spec='${libname}${release}${shared_ext}$major'
21301 shlibpath_var=LD_LIBRARY_PATH
21302 case $host_vendor in
21303 sni)
21304 shlibpath_overrides_runpath=no
21305 need_lib_prefix=no
21306 runpath_var=LD_RUN_PATH
21308 siemens)
21309 need_lib_prefix=no
21311 motorola)
21312 need_lib_prefix=no
21313 need_version=no
21314 shlibpath_overrides_runpath=no
21315 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
21317 esac
21320 sysv4*MP*)
21321 if test -d /usr/nec ;then
21322 version_type=linux
21323 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
21324 soname_spec='$libname${shared_ext}.$major'
21325 shlibpath_var=LD_LIBRARY_PATH
21329 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
21330 version_type=freebsd-elf
21331 need_lib_prefix=no
21332 need_version=no
21333 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
21334 soname_spec='${libname}${release}${shared_ext}$major'
21335 shlibpath_var=LD_LIBRARY_PATH
21336 shlibpath_overrides_runpath=yes
21337 hardcode_into_libs=yes
21338 if test "$with_gnu_ld" = yes; then
21339 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
21340 else
21341 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
21342 case $host_os in
21343 sco3.2v5*)
21344 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
21346 esac
21348 sys_lib_dlsearch_path_spec='/usr/lib'
21351 tpf*)
21352 # TPF is a cross-target only. Preferred cross-host = GNU/Linux.
21353 version_type=linux
21354 need_lib_prefix=no
21355 need_version=no
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=no
21359 hardcode_into_libs=yes
21362 uts4*)
21363 version_type=linux
21364 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
21365 soname_spec='${libname}${release}${shared_ext}$major'
21366 shlibpath_var=LD_LIBRARY_PATH
21370 dynamic_linker=no
21372 esac
21373 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
21374 $as_echo "$dynamic_linker" >&6; }
21375 test "$dynamic_linker" = no && can_build_shared=no
21377 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
21378 if test "$GCC" = yes; then
21379 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
21382 if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
21383 sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
21385 if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
21386 sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
21426 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
21427 $as_echo_n "checking how to hardcode library paths into programs... " >&6; }
21428 hardcode_action_CXX=
21429 if test -n "$hardcode_libdir_flag_spec_CXX" ||
21430 test -n "$runpath_var_CXX" ||
21431 test "X$hardcode_automatic_CXX" = "Xyes" ; then
21433 # We can hardcode non-existent directories.
21434 if test "$hardcode_direct_CXX" != no &&
21435 # If the only mechanism to avoid hardcoding is shlibpath_var, we
21436 # have to relink, otherwise we might link with an installed library
21437 # when we should be linking with a yet-to-be-installed one
21438 ## test "$_LT_TAGVAR(hardcode_shlibpath_var, CXX)" != no &&
21439 test "$hardcode_minus_L_CXX" != no; then
21440 # Linking always hardcodes the temporary library directory.
21441 hardcode_action_CXX=relink
21442 else
21443 # We can link without hardcoding, and we can hardcode nonexisting dirs.
21444 hardcode_action_CXX=immediate
21446 else
21447 # We cannot hardcode anything, or else we can only hardcode existing
21448 # directories.
21449 hardcode_action_CXX=unsupported
21451 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action_CXX" >&5
21452 $as_echo "$hardcode_action_CXX" >&6; }
21454 if test "$hardcode_action_CXX" = relink ||
21455 test "$inherit_rpath_CXX" = yes; then
21456 # Fast installation is not supported
21457 enable_fast_install=no
21458 elif test "$shlibpath_overrides_runpath" = yes ||
21459 test "$enable_shared" = no; then
21460 # Fast installation is not necessary
21461 enable_fast_install=needless
21470 fi # test -n "$compiler"
21472 CC=$lt_save_CC
21473 LDCXX=$LD
21474 LD=$lt_save_LD
21475 GCC=$lt_save_GCC
21476 with_gnu_ld=$lt_save_with_gnu_ld
21477 lt_cv_path_LDCXX=$lt_cv_path_LD
21478 lt_cv_path_LD=$lt_save_path_LD
21479 lt_cv_prog_gnu_ldcxx=$lt_cv_prog_gnu_ld
21480 lt_cv_prog_gnu_ld=$lt_save_with_gnu_ld
21481 fi # test "$_lt_caught_CXX_error" != yes
21483 ac_ext=c
21484 ac_cpp='$CPP $CPPFLAGS'
21485 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
21486 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
21487 ac_compiler_gnu=$ac_cv_c_compiler_gnu
21504 # Only expand once:
21510 # Identify the assembler which will work hand-in-glove with the newly
21511 # built GCC, so that we can examine its features. This is the assembler
21512 # which will be driven by the driver program.
21514 # If build != host, and we aren't building gas in-tree, we identify a
21515 # build->target assembler and hope that it will have the same features
21516 # as the host->target assembler we'll be using.
21517 gcc_cv_gas_major_version=
21518 gcc_cv_gas_minor_version=
21519 gcc_cv_as_gas_srcdir=`echo $srcdir | sed -e 's,/gcc$,,'`/gas
21521 if test "${gcc_cv_as+set}" = set; then :
21523 else
21525 if test -x "$DEFAULT_ASSEMBLER"; then
21526 gcc_cv_as="$DEFAULT_ASSEMBLER"
21527 elif test -f $gcc_cv_as_gas_srcdir/configure.in \
21528 && test -f ../gas/Makefile \
21529 && test x$build = x$host; then
21530 gcc_cv_as=../gas/as-new$build_exeext
21531 elif test -x as$build_exeext; then
21532 # Build using assembler in the current directory.
21533 gcc_cv_as=./as$build_exeext
21534 elif ( set dummy $AS_FOR_TARGET; test -x $2 ); then
21535 gcc_cv_as="$AS_FOR_TARGET"
21536 else
21537 # Extract the first word of "$AS_FOR_TARGET", so it can be a program name with args.
21538 set dummy $AS_FOR_TARGET; ac_word=$2
21539 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
21540 $as_echo_n "checking for $ac_word... " >&6; }
21541 if test "${ac_cv_path_gcc_cv_as+set}" = set; then :
21542 $as_echo_n "(cached) " >&6
21543 else
21544 case $gcc_cv_as in
21545 [\\/]* | ?:[\\/]*)
21546 ac_cv_path_gcc_cv_as="$gcc_cv_as" # Let the user override the test with a path.
21549 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
21550 for as_dir in $PATH
21552 IFS=$as_save_IFS
21553 test -z "$as_dir" && as_dir=.
21554 for ac_exec_ext in '' $ac_executable_extensions; do
21555 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
21556 ac_cv_path_gcc_cv_as="$as_dir/$ac_word$ac_exec_ext"
21557 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
21558 break 2
21560 done
21561 done
21562 IFS=$as_save_IFS
21565 esac
21567 gcc_cv_as=$ac_cv_path_gcc_cv_as
21568 if test -n "$gcc_cv_as"; then
21569 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as" >&5
21570 $as_echo "$gcc_cv_as" >&6; }
21571 else
21572 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
21573 $as_echo "no" >&6; }
21580 ORIGINAL_AS_FOR_TARGET=$gcc_cv_as
21582 case "$ORIGINAL_AS_FOR_TARGET" in
21583 ./as | ./as$build_exeext) ;;
21584 *) ac_config_files="$ac_config_files as:exec-tool.in"
21586 esac
21588 { $as_echo "$as_me:${as_lineno-$LINENO}: checking what assembler to use" >&5
21589 $as_echo_n "checking what assembler to use... " >&6; }
21590 if test "$gcc_cv_as" = ../gas/as-new$build_exeext; then
21591 # Single tree build which includes gas. We want to prefer it
21592 # over whatever linker top-level may have detected, since
21593 # we'll use what we're building after installation anyway.
21594 { $as_echo "$as_me:${as_lineno-$LINENO}: result: newly built gas" >&5
21595 $as_echo "newly built gas" >&6; }
21596 in_tree_gas=yes
21597 gcc_cv_as_bfd_srcdir=`echo $srcdir | sed -e 's,/gcc$,,'`/bfd
21598 for f in $gcc_cv_as_bfd_srcdir/configure \
21599 $gcc_cv_as_gas_srcdir/configure \
21600 $gcc_cv_as_gas_srcdir/configure.in \
21601 $gcc_cv_as_gas_srcdir/Makefile.in ; do
21602 gcc_cv_gas_version=`sed -n -e 's/^[ ]*VERSION=[^0-9A-Za-z_]*\([0-9]*\.[0-9]*.*\)/VERSION=\1/p' < $f`
21603 if test x$gcc_cv_gas_version != x; then
21604 break
21606 done
21607 case $gcc_cv_gas_version in
21608 VERSION=[0-9]*) ;;
21609 *) as_fn_error "cannot find version of in-tree assembler" "$LINENO" 5;;
21610 esac
21611 gcc_cv_gas_major_version=`expr "$gcc_cv_gas_version" : "VERSION=\([0-9]*\)"`
21612 gcc_cv_gas_minor_version=`expr "$gcc_cv_gas_version" : "VERSION=[0-9]*\.\([0-9]*\)"`
21613 gcc_cv_gas_patch_version=`expr "$gcc_cv_gas_version" : "VERSION=[0-9]*\.[0-9]*\.\([0-9]*\)"`
21614 case $gcc_cv_gas_patch_version in
21615 "") gcc_cv_gas_patch_version="0" ;;
21616 esac
21617 gcc_cv_gas_vers=`expr \( \( $gcc_cv_gas_major_version \* 1000 \) \
21618 + $gcc_cv_gas_minor_version \) \* 1000 \
21619 + $gcc_cv_gas_patch_version`
21621 in_tree_gas_is_elf=no
21622 if grep 'obj_format = elf' ../gas/Makefile > /dev/null \
21623 || (grep 'obj_format = multi' ../gas/Makefile \
21624 && grep 'extra_objects =.* obj-elf' ../gas/Makefile) > /dev/null
21625 then
21626 in_tree_gas_is_elf=yes
21628 else
21629 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as" >&5
21630 $as_echo "$gcc_cv_as" >&6; }
21631 in_tree_gas=no
21634 default_ld=
21635 # Check whether --enable-ld was given.
21636 if test "${enable_ld+set}" = set; then :
21637 enableval=$enable_ld; case "${enableval}" in
21639 default_ld=ld.gold
21641 esac
21645 install_gold_as_default=no
21646 # Check whether --enable-gold was given.
21647 if test "${enable_gold+set}" = set; then :
21648 enableval=$enable_gold; case "${enableval}" in
21649 default)
21650 install_gold_as_default=yes
21652 yes)
21653 if test x${default_ld} != x; then
21654 install_gold_as_default=yes
21660 as_fn_error "invalid --enable-gold argument" "$LINENO" 5
21662 esac
21666 # Identify the linker which will work hand-in-glove with the newly
21667 # built GCC, so that we can examine its features. This is the linker
21668 # which will be driven by the driver program.
21670 # If build != host, and we aren't building gas in-tree, we identify a
21671 # build->target linker and hope that it will have the same features
21672 # as the host->target linker we'll be using.
21673 gcc_cv_gld_major_version=
21674 gcc_cv_gld_minor_version=
21675 gcc_cv_ld_gld_srcdir=`echo $srcdir | sed -e 's,/gcc$,,'`/ld
21676 gcc_cv_ld_gold_srcdir=`echo $srcdir | sed -e 's,/gcc$,,'`/gold
21677 gcc_cv_ld_bfd_srcdir=`echo $srcdir | sed -e 's,/gcc$,,'`/bfd
21679 if test "${gcc_cv_ld+set}" = set; then :
21681 else
21683 if test -x "$DEFAULT_LINKER"; then
21684 gcc_cv_ld="$DEFAULT_LINKER"
21685 elif test $install_gold_as_default = yes \
21686 && test -f $gcc_cv_ld_gold_srcdir/configure.ac \
21687 && test -f ../gold/Makefile \
21688 && test x$build = x$host; then
21689 gcc_cv_ld=../gold/ld-new$build_exeext
21690 elif test -f $gcc_cv_ld_gld_srcdir/configure.in \
21691 && test -f ../ld/Makefile \
21692 && test x$build = x$host; then
21693 gcc_cv_ld=../ld/ld-new$build_exeext
21694 elif test -x collect-ld$build_exeext; then
21695 # Build using linker in the current directory.
21696 gcc_cv_ld=./collect-ld$build_exeext
21697 elif ( set dummy $LD_FOR_TARGET; test -x $2 ); then
21698 gcc_cv_ld="$LD_FOR_TARGET"
21699 else
21700 # Extract the first word of "$LD_FOR_TARGET", so it can be a program name with args.
21701 set dummy $LD_FOR_TARGET; ac_word=$2
21702 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
21703 $as_echo_n "checking for $ac_word... " >&6; }
21704 if test "${ac_cv_path_gcc_cv_ld+set}" = set; then :
21705 $as_echo_n "(cached) " >&6
21706 else
21707 case $gcc_cv_ld in
21708 [\\/]* | ?:[\\/]*)
21709 ac_cv_path_gcc_cv_ld="$gcc_cv_ld" # Let the user override the test with a path.
21712 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
21713 for as_dir in $PATH
21715 IFS=$as_save_IFS
21716 test -z "$as_dir" && as_dir=.
21717 for ac_exec_ext in '' $ac_executable_extensions; do
21718 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
21719 ac_cv_path_gcc_cv_ld="$as_dir/$ac_word$ac_exec_ext"
21720 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
21721 break 2
21723 done
21724 done
21725 IFS=$as_save_IFS
21728 esac
21730 gcc_cv_ld=$ac_cv_path_gcc_cv_ld
21731 if test -n "$gcc_cv_ld"; then
21732 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld" >&5
21733 $as_echo "$gcc_cv_ld" >&6; }
21734 else
21735 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
21736 $as_echo "no" >&6; }
21743 ORIGINAL_PLUGIN_LD_FOR_TARGET=$gcc_cv_ld
21744 PLUGIN_LD_SUFFIX=`basename $gcc_cv_ld | sed -e "s,$target_alias-,,"`
21745 # if the PLUGIN_LD is set ld-new, just have it as ld
21746 # as that is the installed named.
21747 if test x$PLUGIN_LD_SUFFIX = xld-new \
21748 || test x$PLUGIN_LD_SUFFIX = xcollect-ld ; then
21749 PLUGIN_LD_SUFFIX=ld
21752 # Check whether --with-plugin-ld was given.
21753 if test "${with_plugin_ld+set}" = set; then :
21754 withval=$with_plugin_ld; if test x"$withval" != x; then
21755 ORIGINAL_PLUGIN_LD_FOR_TARGET="$withval"
21756 PLUGIN_LD_SUFFIX=`echo $withval | sed -e "s,$target_alias-,,"`
21762 cat >>confdefs.h <<_ACEOF
21763 #define PLUGIN_LD_SUFFIX "$PLUGIN_LD_SUFFIX"
21764 _ACEOF
21767 # Check to see if we are using gold instead of ld
21768 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using gold" >&5
21769 $as_echo_n "checking whether we are using gold... " >&6; }
21770 ld_is_gold=no
21771 if test x$gcc_cv_ld != x; then
21772 if $gcc_cv_ld --version 2>/dev/null | sed 1q \
21773 | grep "GNU gold" > /dev/null; then
21774 ld_is_gold=yes
21777 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_is_gold" >&5
21778 $as_echo "$ld_is_gold" >&6; }
21780 ORIGINAL_LD_FOR_TARGET=$gcc_cv_ld
21782 case "$ORIGINAL_LD_FOR_TARGET" in
21783 ./collect-ld | ./collect-ld$build_exeext) ;;
21784 *) ac_config_files="$ac_config_files collect-ld:exec-tool.in"
21786 esac
21788 { $as_echo "$as_me:${as_lineno-$LINENO}: checking what linker to use" >&5
21789 $as_echo_n "checking what linker to use... " >&6; }
21790 if test "$gcc_cv_ld" = ../ld/ld-new$build_exeext \
21791 || test "$gcc_cv_ld" = ../gold/ld-new$build_exeext; then
21792 # Single tree build which includes ld. We want to prefer it
21793 # over whatever linker top-level may have detected, since
21794 # we'll use what we're building after installation anyway.
21795 { $as_echo "$as_me:${as_lineno-$LINENO}: result: newly built ld" >&5
21796 $as_echo "newly built ld" >&6; }
21797 in_tree_ld=yes
21798 in_tree_ld_is_elf=no
21799 if (grep 'EMUL = .*elf' ../ld/Makefile \
21800 || grep 'EMUL = .*linux' ../ld/Makefile \
21801 || grep 'EMUL = .*lynx' ../ld/Makefile) > /dev/null; then
21802 in_tree_ld_is_elf=yes
21803 elif test "$ld_is_gold" = yes; then
21804 in_tree_ld_is_elf=yes
21806 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
21808 gcc_cv_gld_version=`sed -n -e 's/^[ ]*VERSION=[^0-9A-Za-z_]*\([0-9]*\.[0-9]*.*\)/VERSION=\1/p' < $f`
21809 if test x$gcc_cv_gld_version != x; then
21810 break
21812 done
21813 case $gcc_cv_gld_version in
21814 VERSION=[0-9]*) ;;
21815 *) as_fn_error "cannot find version of in-tree linker" "$LINENO" 5 ;;
21816 esac
21817 gcc_cv_gld_major_version=`expr "$gcc_cv_gld_version" : "VERSION=\([0-9]*\)"`
21818 gcc_cv_gld_minor_version=`expr "$gcc_cv_gld_version" : "VERSION=[0-9]*\.\([0-9]*\)"`
21819 ORIGINAL_LD_BFD_FOR_TARGET=../ld/ld-new$build_exeext
21820 ORIGINAL_LD_GOLD_FOR_TARGET=../gold/ld-new$build_exeext
21821 else
21822 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld" >&5
21823 $as_echo "$gcc_cv_ld" >&6; }
21824 in_tree_ld=no
21825 gcc_cvs_ld_program=`dirname $gcc_cv_ld`/`basename $gcc_cv_ld $host_exeext`
21826 ORIGINAL_LD_BFD_FOR_TARGET=${gcc_cvs_ld_program}.bfd$host_exeext
21827 ORIGINAL_LD_GOLD_FOR_TARGET=${gcc_cvs_ld_program}.gold$host_exeext
21833 # Figure out what nm we will be using.
21834 gcc_cv_binutils_srcdir=`echo $srcdir | sed -e 's,/gcc$,,'`/binutils
21835 if test "${gcc_cv_nm+set}" = set; then :
21837 else
21839 if test -f $gcc_cv_binutils_srcdir/configure.in \
21840 && test -f ../binutils/Makefile \
21841 && test x$build = x$host; then
21842 gcc_cv_nm=../binutils/nm-new$build_exeext
21843 elif test -x nm$build_exeext; then
21844 gcc_cv_nm=./nm$build_exeext
21845 elif ( set dummy $NM_FOR_TARGET; test -x $2 ); then
21846 gcc_cv_nm="$NM_FOR_TARGET"
21847 else
21848 # Extract the first word of "$NM_FOR_TARGET", so it can be a program name with args.
21849 set dummy $NM_FOR_TARGET; ac_word=$2
21850 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
21851 $as_echo_n "checking for $ac_word... " >&6; }
21852 if test "${ac_cv_path_gcc_cv_nm+set}" = set; then :
21853 $as_echo_n "(cached) " >&6
21854 else
21855 case $gcc_cv_nm in
21856 [\\/]* | ?:[\\/]*)
21857 ac_cv_path_gcc_cv_nm="$gcc_cv_nm" # Let the user override the test with a path.
21860 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
21861 for as_dir in $PATH
21863 IFS=$as_save_IFS
21864 test -z "$as_dir" && as_dir=.
21865 for ac_exec_ext in '' $ac_executable_extensions; do
21866 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
21867 ac_cv_path_gcc_cv_nm="$as_dir/$ac_word$ac_exec_ext"
21868 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
21869 break 2
21871 done
21872 done
21873 IFS=$as_save_IFS
21876 esac
21878 gcc_cv_nm=$ac_cv_path_gcc_cv_nm
21879 if test -n "$gcc_cv_nm"; then
21880 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_nm" >&5
21881 $as_echo "$gcc_cv_nm" >&6; }
21882 else
21883 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
21884 $as_echo "no" >&6; }
21891 { $as_echo "$as_me:${as_lineno-$LINENO}: checking what nm to use" >&5
21892 $as_echo_n "checking what nm to use... " >&6; }
21893 if test "$gcc_cv_nm" = ../binutils/nm-new$build_exeext; then
21894 # Single tree build which includes binutils.
21895 { $as_echo "$as_me:${as_lineno-$LINENO}: result: newly built nm" >&5
21896 $as_echo "newly built nm" >&6; }
21897 in_tree_nm=yes
21898 else
21899 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_nm" >&5
21900 $as_echo "$gcc_cv_nm" >&6; }
21901 in_tree_nm=no
21904 ORIGINAL_NM_FOR_TARGET=$gcc_cv_nm
21906 case "$ORIGINAL_NM_FOR_TARGET" in
21907 ./nm | ./nm$build_exeext) ;;
21908 *) ac_config_files="$ac_config_files nm:exec-tool.in"
21910 esac
21913 # Figure out what objdump we will be using.
21914 if test "${gcc_cv_objdump+set}" = set; then :
21916 else
21918 if test -f $gcc_cv_binutils_srcdir/configure.in \
21919 && test -f ../binutils/Makefile \
21920 && test x$build = x$host; then
21921 # Single tree build which includes binutils.
21922 gcc_cv_objdump=../binutils/objdump$build_exeext
21923 elif test -x objdump$build_exeext; then
21924 gcc_cv_objdump=./objdump$build_exeext
21925 elif ( set dummy $OBJDUMP_FOR_TARGET; test -x $2 ); then
21926 gcc_cv_objdump="$OBJDUMP_FOR_TARGET"
21927 else
21928 # Extract the first word of "$OBJDUMP_FOR_TARGET", so it can be a program name with args.
21929 set dummy $OBJDUMP_FOR_TARGET; ac_word=$2
21930 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
21931 $as_echo_n "checking for $ac_word... " >&6; }
21932 if test "${ac_cv_path_gcc_cv_objdump+set}" = set; then :
21933 $as_echo_n "(cached) " >&6
21934 else
21935 case $gcc_cv_objdump in
21936 [\\/]* | ?:[\\/]*)
21937 ac_cv_path_gcc_cv_objdump="$gcc_cv_objdump" # Let the user override the test with a path.
21940 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
21941 for as_dir in $PATH
21943 IFS=$as_save_IFS
21944 test -z "$as_dir" && as_dir=.
21945 for ac_exec_ext in '' $ac_executable_extensions; do
21946 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
21947 ac_cv_path_gcc_cv_objdump="$as_dir/$ac_word$ac_exec_ext"
21948 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
21949 break 2
21951 done
21952 done
21953 IFS=$as_save_IFS
21956 esac
21958 gcc_cv_objdump=$ac_cv_path_gcc_cv_objdump
21959 if test -n "$gcc_cv_objdump"; then
21960 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_objdump" >&5
21961 $as_echo "$gcc_cv_objdump" >&6; }
21962 else
21963 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
21964 $as_echo "no" >&6; }
21971 { $as_echo "$as_me:${as_lineno-$LINENO}: checking what objdump to use" >&5
21972 $as_echo_n "checking what objdump to use... " >&6; }
21973 if test "$gcc_cv_objdump" = ../binutils/objdump$build_exeext; then
21974 # Single tree build which includes binutils.
21975 { $as_echo "$as_me:${as_lineno-$LINENO}: result: newly built objdump" >&5
21976 $as_echo "newly built objdump" >&6; }
21977 elif test x$gcc_cv_objdump = x; then
21978 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
21979 $as_echo "not found" >&6; }
21980 else
21981 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_objdump" >&5
21982 $as_echo "$gcc_cv_objdump" >&6; }
21985 # Figure out what readelf we will be using.
21986 if test "${gcc_cv_readelf+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 # Single tree build which includes binutils.
21994 gcc_cv_readelf=../binutils/readelf$build_exeext
21995 elif test -x readelf$build_exeext; then
21996 gcc_cv_readelf=./readelf$build_exeext
21997 else
21998 # Extract the first word of "readelf", so it can be a program name with args.
21999 set dummy readelf; ac_word=$2
22000 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
22001 $as_echo_n "checking for $ac_word... " >&6; }
22002 if test "${ac_cv_path_gcc_cv_readelf+set}" = set; then :
22003 $as_echo_n "(cached) " >&6
22004 else
22005 case $gcc_cv_readelf in
22006 [\\/]* | ?:[\\/]*)
22007 ac_cv_path_gcc_cv_readelf="$gcc_cv_readelf" # Let the user override the test with a path.
22010 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
22011 for as_dir in $PATH
22013 IFS=$as_save_IFS
22014 test -z "$as_dir" && as_dir=.
22015 for ac_exec_ext in '' $ac_executable_extensions; do
22016 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
22017 ac_cv_path_gcc_cv_readelf="$as_dir/$ac_word$ac_exec_ext"
22018 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
22019 break 2
22021 done
22022 done
22023 IFS=$as_save_IFS
22026 esac
22028 gcc_cv_readelf=$ac_cv_path_gcc_cv_readelf
22029 if test -n "$gcc_cv_readelf"; then
22030 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_readelf" >&5
22031 $as_echo "$gcc_cv_readelf" >&6; }
22032 else
22033 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
22034 $as_echo "no" >&6; }
22041 { $as_echo "$as_me:${as_lineno-$LINENO}: checking what readelf to use" >&5
22042 $as_echo_n "checking what readelf to use... " >&6; }
22043 if test "$gcc_cv_readelf" = ../binutils/readelf$build_exeext; then
22044 # Single tree build which includes binutils.
22045 { $as_echo "$as_me:${as_lineno-$LINENO}: result: newly built readelf" >&5
22046 $as_echo "newly built readelf" >&6; }
22047 elif test x$gcc_cv_readelf = x; then
22048 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
22049 $as_echo "not found" >&6; }
22050 else
22051 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_readelf" >&5
22052 $as_echo "$gcc_cv_readelf" >&6; }
22055 # Figure out what assembler alignment features are present.
22056 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler flags" >&5
22057 $as_echo_n "checking assembler flags... " >&6; }
22058 if test "${gcc_cv_as_flags+set}" = set; then :
22059 $as_echo_n "(cached) " >&6
22060 else
22061 case "$target" in
22062 i[34567]86-*-linux*)
22063 gcc_cv_as_flags=--32
22065 x86_64-*-linux-gnux32)
22066 gcc_cv_as_flags=--x32
22068 x86_64-*-linux*)
22069 gcc_cv_as_flags=--64
22071 powerpc*-*-darwin*)
22072 gcc_cv_as_flags="-arch ppc"
22075 gcc_cv_as_flags=" "
22077 esac
22079 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_flags" >&5
22080 $as_echo "$gcc_cv_as_flags" >&6; }
22082 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .balign and .p2align" >&5
22083 $as_echo_n "checking assembler for .balign and .p2align... " >&6; }
22084 if test "${gcc_cv_as_balign_and_p2align+set}" = set; then :
22085 $as_echo_n "(cached) " >&6
22086 else
22087 gcc_cv_as_balign_and_p2align=no
22088 if test $in_tree_gas = yes; then
22089 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 6 \) \* 1000 + 0`
22090 then gcc_cv_as_balign_and_p2align=yes
22092 elif test x$gcc_cv_as != x; then
22093 $as_echo '.balign 4
22094 .p2align 2' > conftest.s
22095 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
22096 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
22097 (eval $ac_try) 2>&5
22098 ac_status=$?
22099 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
22100 test $ac_status = 0; }; }
22101 then
22102 gcc_cv_as_balign_and_p2align=yes
22103 else
22104 echo "configure: failed program was" >&5
22105 cat conftest.s >&5
22107 rm -f conftest.o conftest.s
22110 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_balign_and_p2align" >&5
22111 $as_echo "$gcc_cv_as_balign_and_p2align" >&6; }
22112 if test $gcc_cv_as_balign_and_p2align = yes; then
22114 $as_echo "#define HAVE_GAS_BALIGN_AND_P2ALIGN 1" >>confdefs.h
22118 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .p2align with maximum skip" >&5
22119 $as_echo_n "checking assembler for .p2align with maximum skip... " >&6; }
22120 if test "${gcc_cv_as_max_skip_p2align+set}" = set; then :
22121 $as_echo_n "(cached) " >&6
22122 else
22123 gcc_cv_as_max_skip_p2align=no
22124 if test $in_tree_gas = yes; then
22125 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 8 \) \* 1000 + 0`
22126 then gcc_cv_as_max_skip_p2align=yes
22128 elif test x$gcc_cv_as != x; then
22129 $as_echo '.p2align 4,,7' > conftest.s
22130 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
22131 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
22132 (eval $ac_try) 2>&5
22133 ac_status=$?
22134 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
22135 test $ac_status = 0; }; }
22136 then
22137 gcc_cv_as_max_skip_p2align=yes
22138 else
22139 echo "configure: failed program was" >&5
22140 cat conftest.s >&5
22142 rm -f conftest.o conftest.s
22145 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_max_skip_p2align" >&5
22146 $as_echo "$gcc_cv_as_max_skip_p2align" >&6; }
22147 if test $gcc_cv_as_max_skip_p2align = yes; then
22149 $as_echo "#define HAVE_GAS_MAX_SKIP_P2ALIGN 1" >>confdefs.h
22153 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .literal16" >&5
22154 $as_echo_n "checking assembler for .literal16... " >&6; }
22155 if test "${gcc_cv_as_literal16+set}" = set; then :
22156 $as_echo_n "(cached) " >&6
22157 else
22158 gcc_cv_as_literal16=no
22159 if test $in_tree_gas = yes; then
22160 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 8 \) \* 1000 + 0`
22161 then gcc_cv_as_literal16=yes
22163 elif test x$gcc_cv_as != x; then
22164 $as_echo '.literal16' > conftest.s
22165 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
22166 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
22167 (eval $ac_try) 2>&5
22168 ac_status=$?
22169 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
22170 test $ac_status = 0; }; }
22171 then
22172 gcc_cv_as_literal16=yes
22173 else
22174 echo "configure: failed program was" >&5
22175 cat conftest.s >&5
22177 rm -f conftest.o conftest.s
22180 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_literal16" >&5
22181 $as_echo "$gcc_cv_as_literal16" >&6; }
22182 if test $gcc_cv_as_literal16 = yes; then
22184 $as_echo "#define HAVE_GAS_LITERAL16 1" >>confdefs.h
22188 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for working .subsection -1" >&5
22189 $as_echo_n "checking assembler for working .subsection -1... " >&6; }
22190 if test "${gcc_cv_as_subsection_m1+set}" = set; then :
22191 $as_echo_n "(cached) " >&6
22192 else
22193 gcc_cv_as_subsection_m1=no
22194 if test $in_tree_gas = yes; then
22195 if test $in_tree_gas_is_elf = yes \
22196 && test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 9 \) \* 1000 + 0`
22197 then gcc_cv_as_subsection_m1=yes
22199 elif test x$gcc_cv_as != x; then
22200 $as_echo 'conftest_label1: .word 0
22201 .subsection -1
22202 conftest_label2: .word 0
22203 .previous' > conftest.s
22204 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
22205 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
22206 (eval $ac_try) 2>&5
22207 ac_status=$?
22208 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
22209 test $ac_status = 0; }; }
22210 then
22211 if test x$gcc_cv_nm != x; then
22212 $gcc_cv_nm conftest.o | grep conftest_label1 > conftest.nm1
22213 $gcc_cv_nm conftest.o | grep conftest_label2 | sed -e 's/label2/label1/' > conftest.nm2
22214 if cmp conftest.nm1 conftest.nm2 > /dev/null 2>&1
22215 then :
22216 else gcc_cv_as_subsection_m1=yes
22218 rm -f conftest.nm1 conftest.nm2
22220 else
22221 echo "configure: failed program was" >&5
22222 cat conftest.s >&5
22224 rm -f conftest.o conftest.s
22227 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_subsection_m1" >&5
22228 $as_echo "$gcc_cv_as_subsection_m1" >&6; }
22229 if test $gcc_cv_as_subsection_m1 = yes; then
22231 $as_echo "#define HAVE_GAS_SUBSECTION_ORDERING 1" >>confdefs.h
22235 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .weak" >&5
22236 $as_echo_n "checking assembler for .weak... " >&6; }
22237 if test "${gcc_cv_as_weak+set}" = set; then :
22238 $as_echo_n "(cached) " >&6
22239 else
22240 gcc_cv_as_weak=no
22241 if test $in_tree_gas = yes; then
22242 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 2 \) \* 1000 + 0`
22243 then gcc_cv_as_weak=yes
22245 elif test x$gcc_cv_as != x; then
22246 $as_echo ' .weak foobar' > conftest.s
22247 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
22248 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
22249 (eval $ac_try) 2>&5
22250 ac_status=$?
22251 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
22252 test $ac_status = 0; }; }
22253 then
22254 gcc_cv_as_weak=yes
22255 else
22256 echo "configure: failed program was" >&5
22257 cat conftest.s >&5
22259 rm -f conftest.o conftest.s
22262 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_weak" >&5
22263 $as_echo "$gcc_cv_as_weak" >&6; }
22264 if test $gcc_cv_as_weak = yes; then
22266 $as_echo "#define HAVE_GAS_WEAK 1" >>confdefs.h
22270 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .weakref" >&5
22271 $as_echo_n "checking assembler for .weakref... " >&6; }
22272 if test "${gcc_cv_as_weakref+set}" = set; then :
22273 $as_echo_n "(cached) " >&6
22274 else
22275 gcc_cv_as_weakref=no
22276 if test $in_tree_gas = yes; then
22277 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 17 \) \* 1000 + 0`
22278 then gcc_cv_as_weakref=yes
22280 elif test x$gcc_cv_as != x; then
22281 $as_echo ' .weakref foobar, barfnot' > conftest.s
22282 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
22283 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
22284 (eval $ac_try) 2>&5
22285 ac_status=$?
22286 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
22287 test $ac_status = 0; }; }
22288 then
22289 gcc_cv_as_weakref=yes
22290 else
22291 echo "configure: failed program was" >&5
22292 cat conftest.s >&5
22294 rm -f conftest.o conftest.s
22297 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_weakref" >&5
22298 $as_echo "$gcc_cv_as_weakref" >&6; }
22299 if test $gcc_cv_as_weakref = yes; then
22301 $as_echo "#define HAVE_GAS_WEAKREF 1" >>confdefs.h
22305 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .nsubspa comdat" >&5
22306 $as_echo_n "checking assembler for .nsubspa comdat... " >&6; }
22307 if test "${gcc_cv_as_nsubspa_comdat+set}" = set; then :
22308 $as_echo_n "(cached) " >&6
22309 else
22310 gcc_cv_as_nsubspa_comdat=no
22311 if test $in_tree_gas = yes; then
22312 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 15 \) \* 1000 + 91`
22313 then gcc_cv_as_nsubspa_comdat=yes
22315 elif test x$gcc_cv_as != x; then
22316 $as_echo ' .SPACE $TEXT$
22317 .NSUBSPA $CODE$,COMDAT' > conftest.s
22318 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
22319 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
22320 (eval $ac_try) 2>&5
22321 ac_status=$?
22322 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
22323 test $ac_status = 0; }; }
22324 then
22325 gcc_cv_as_nsubspa_comdat=yes
22326 else
22327 echo "configure: failed program was" >&5
22328 cat conftest.s >&5
22330 rm -f conftest.o conftest.s
22333 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_nsubspa_comdat" >&5
22334 $as_echo "$gcc_cv_as_nsubspa_comdat" >&6; }
22335 if test $gcc_cv_as_nsubspa_comdat = yes; then
22337 $as_echo "#define HAVE_GAS_NSUBSPA_COMDAT 1" >>confdefs.h
22341 # .hidden needs to be supported in both the assembler and the linker,
22342 # because GNU LD versions before 2.12.1 have buggy support for STV_HIDDEN.
22343 # This is irritatingly difficult to feature test for; we have to check the
22344 # date string after the version number. If we've got an in-tree
22345 # ld, we don't know its patchlevel version, so we set the baseline at 2.13
22346 # to be safe.
22347 # The gcc_GAS_CHECK_FEATURE call just sets a cache variable.
22348 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .hidden" >&5
22349 $as_echo_n "checking assembler for .hidden... " >&6; }
22350 if test "${gcc_cv_as_hidden+set}" = set; then :
22351 $as_echo_n "(cached) " >&6
22352 else
22353 gcc_cv_as_hidden=no
22354 if test $in_tree_gas = yes; then
22355 if test $in_tree_gas_is_elf = yes \
22356 && test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 13 \) \* 1000 + 0`
22357 then gcc_cv_as_hidden=yes
22359 elif test x$gcc_cv_as != x; then
22360 $as_echo ' .hidden foobar
22361 foobar:' > conftest.s
22362 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
22363 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
22364 (eval $ac_try) 2>&5
22365 ac_status=$?
22366 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
22367 test $ac_status = 0; }; }
22368 then
22369 gcc_cv_as_hidden=yes
22370 else
22371 echo "configure: failed program was" >&5
22372 cat conftest.s >&5
22374 rm -f conftest.o conftest.s
22377 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_hidden" >&5
22378 $as_echo "$gcc_cv_as_hidden" >&6; }
22380 case "${target}" in
22381 *-*-darwin*)
22382 # Darwin as has some visibility support, though with a different syntax.
22383 gcc_cv_as_hidden=yes
22385 esac
22387 # gnu_indirect_function type is an extension proposed at
22388 # http://groups.google/com/group/generic-abi/files. It allows dynamic runtime
22389 # selection of function implementation
22390 # Check whether --enable-gnu-indirect-function was given.
22391 if test "${enable_gnu_indirect_function+set}" = set; then :
22392 enableval=$enable_gnu_indirect_function; case $enable_gnu_indirect_function in
22393 yes | no) ;;
22394 *) as_fn_error "'$enable_gnu_indirect_function' is an invalid value for --enable-gnu-indirect-function.
22395 Valid choices are 'yes' and 'no'." "$LINENO" 5 ;;
22396 esac
22397 else
22398 enable_gnu_indirect_function="$default_gnu_indirect_function"
22402 gif=`if test x$enable_gnu_indirect_function = xyes; then echo 1; else echo 0; fi`
22404 cat >>confdefs.h <<_ACEOF
22405 #define HAVE_GNU_INDIRECT_FUNCTION $gif
22406 _ACEOF
22410 if test $in_tree_ld != yes ; then
22411 ld_ver=`$gcc_cv_ld --version 2>/dev/null | sed 1q`
22412 if echo "$ld_ver" | grep GNU > /dev/null; then
22413 if test x"$ld_is_gold" = xyes; then
22414 # GNU gold --version looks like this:
22416 # GNU gold (GNU Binutils 2.21.51.20110225) 1.11
22418 # We extract the binutils version which is more familiar and specific
22419 # than the gold version.
22420 ld_vers=`echo $ld_ver | sed -n \
22421 -e 's,^[^)]*[ ]\([0-9][0-9]*\.[0-9][0-9]*[^)]*\)) .*$,\1,p'`
22422 else
22423 # GNU ld --version looks like this:
22425 # GNU ld (GNU Binutils) 2.21.51.20110225
22426 ld_vers=`echo $ld_ver | sed -n \
22427 -e 's,^.*[ ]\([0-9][0-9]*\.[0-9][0-9]*.*\)$,\1,p'`
22429 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'`
22430 ld_vers_major=`expr "$ld_vers" : '\([0-9]*\)'`
22431 ld_vers_minor=`expr "$ld_vers" : '[0-9]*\.\([0-9]*\)'`
22432 ld_vers_patch=`expr "$ld_vers" : '[0-9]*\.[0-9]*\.\([0-9]*\)'`
22433 else
22434 case "${target}" in
22435 *-*-solaris2*)
22436 # See acinclude.m4 (gcc_SUN_LD_VERSION) for the version number
22437 # format.
22439 # Don't reuse gcc_gv_sun_ld_vers_* in case a linker other than
22440 # /usr/ccs/bin/ld has been configured.
22441 ld_ver=`$gcc_cv_ld -V 2>&1`
22442 if echo "$ld_ver" | grep 'Solaris Link Editors' > /dev/null; then
22443 ld_vers=`echo $ld_ver | sed -n \
22444 -e 's,^.*: 5\.[0-9][0-9]*-\([0-9]\.[0-9][0-9]*\).*$,\1,p'`
22445 ld_vers_major=`expr "$ld_vers" : '\([0-9]*\)'`
22446 ld_vers_minor=`expr "$ld_vers" : '[0-9]*\.\([0-9]*\)'`
22449 esac
22453 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker for .hidden support" >&5
22454 $as_echo_n "checking linker for .hidden support... " >&6; }
22455 if test "${gcc_cv_ld_hidden+set}" = set; then :
22456 $as_echo_n "(cached) " >&6
22457 else
22458 if test $in_tree_ld = yes ; then
22459 gcc_cv_ld_hidden=no
22460 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 \
22461 && test $in_tree_ld_is_elf = yes; then
22462 gcc_cv_ld_hidden=yes
22464 else
22465 gcc_cv_ld_hidden=yes
22466 if test x"$ld_is_gold" = xyes; then
22468 elif echo "$ld_ver" | grep GNU > /dev/null; then
22469 case "${target}" in
22470 mmix-knuth-mmixware)
22471 # The linker emits by default mmo, not ELF, so "no" is appropriate.
22472 gcc_cv_ld_hidden=no
22474 esac
22475 if test 0"$ld_date" -lt 20020404; then
22476 if test -n "$ld_date"; then
22477 # If there was date string, but was earlier than 2002-04-04, fail
22478 gcc_cv_ld_hidden=no
22479 elif test -z "$ld_vers"; then
22480 # If there was no date string nor ld version number, something is wrong
22481 gcc_cv_ld_hidden=no
22482 else
22483 test -z "$ld_vers_patch" && ld_vers_patch=0
22484 if test "$ld_vers_major" -lt 2; then
22485 gcc_cv_ld_hidden=no
22486 elif test "$ld_vers_major" -eq 2 -a "$ld_vers_minor" -lt 12; then
22487 gcc_cv_ld_hidden="no"
22488 elif test "$ld_vers_major" -eq 2 -a "$ld_vers_minor" -eq 12 -a "$ld_vers_patch" -eq 0; then
22489 gcc_cv_ld_hidden=no
22493 else
22494 case "${target}" in
22495 *-*-darwin*)
22496 # Darwin ld has some visibility support.
22497 gcc_cv_ld_hidden=yes
22499 hppa64*-*-hpux* | ia64*-*-hpux*)
22500 gcc_cv_ld_hidden=yes
22502 *-*-solaris2.1[0-9]*)
22503 # Support for .hidden in Sun ld appeared in Solaris 9 FCS, but
22504 # .symbolic was only added in Solaris 9 12/02.
22505 gcc_cv_ld_hidden=yes
22508 gcc_cv_ld_hidden=no
22510 esac
22514 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_hidden" >&5
22515 $as_echo "$gcc_cv_ld_hidden" >&6; }
22516 libgcc_visibility=no
22519 if test $gcc_cv_as_hidden = yes && test $gcc_cv_ld_hidden = yes; then
22520 libgcc_visibility=yes
22522 $as_echo "#define HAVE_GAS_HIDDEN 1" >>confdefs.h
22526 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker read-only and read-write section mixing" >&5
22527 $as_echo_n "checking linker read-only and read-write section mixing... " >&6; }
22528 gcc_cv_ld_ro_rw_mix=unknown
22529 if test $in_tree_ld = yes ; then
22530 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 \
22531 && test $in_tree_ld_is_elf = yes; then
22532 gcc_cv_ld_ro_rw_mix=read-write
22534 elif test x$gcc_cv_as != x -a x$gcc_cv_ld != x -a x$gcc_cv_objdump != x ; then
22535 echo '.section myfoosect, "a"' > conftest1.s
22536 echo '.section myfoosect, "aw"' > conftest2.s
22537 echo '.byte 1' >> conftest2.s
22538 echo '.section myfoosect, "a"' > conftest3.s
22539 echo '.byte 0' >> conftest3.s
22540 if $gcc_cv_as -o conftest1.o conftest1.s > /dev/null 2>&1 \
22541 && $gcc_cv_as -o conftest2.o conftest2.s > /dev/null 2>&1 \
22542 && $gcc_cv_as -o conftest3.o conftest3.s > /dev/null 2>&1 \
22543 && $gcc_cv_ld -shared -o conftest1.so conftest1.o \
22544 conftest2.o conftest3.o > /dev/null 2>&1; then
22545 gcc_cv_ld_ro_rw_mix=`$gcc_cv_objdump -h conftest1.so \
22546 | sed -e '/myfoosect/!d' -e N`
22547 if echo "$gcc_cv_ld_ro_rw_mix" | grep CONTENTS > /dev/null; then
22548 if echo "$gcc_cv_ld_ro_rw_mix" | grep READONLY > /dev/null; then
22549 gcc_cv_ld_ro_rw_mix=read-only
22550 else
22551 gcc_cv_ld_ro_rw_mix=read-write
22555 rm -f conftest.* conftest[123].*
22557 if test x$gcc_cv_ld_ro_rw_mix = xread-write; then
22559 $as_echo "#define HAVE_LD_RO_RW_SECTION_MIXING 1" >>confdefs.h
22562 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_ro_rw_mix" >&5
22563 $as_echo "$gcc_cv_ld_ro_rw_mix" >&6; }
22565 if test "x${build}" = "x${target}" && test "x${build}" = "x${host}"; then
22566 case "${target}" in
22567 *-*-solaris2*)
22569 # Solaris 2 ld -V output looks like this for a regular version:
22571 # ld: Software Generation Utilities - Solaris Link Editors: 5.11-1.1699
22573 # but test versions add stuff at the end:
22575 # ld: Software Generation Utilities - Solaris Link Editors: 5.11-1.1701:onnv-ab196087-6931056-03/25/10
22577 gcc_cv_sun_ld_ver=`/usr/ccs/bin/ld -V 2>&1`
22578 if echo "$gcc_cv_sun_ld_ver" | grep 'Solaris Link Editors' > /dev/null; then
22579 gcc_cv_sun_ld_vers=`echo $gcc_cv_sun_ld_ver | sed -n \
22580 -e 's,^.*: 5\.[0-9][0-9]*-\([0-9]\.[0-9][0-9]*\).*$,\1,p'`
22581 gcc_cv_sun_ld_vers_major=`expr "$gcc_cv_sun_ld_vers" : '\([0-9]*\)'`
22582 gcc_cv_sun_ld_vers_minor=`expr "$gcc_cv_sun_ld_vers" : '[0-9]*\.\([0-9]*\)'`
22585 esac
22588 # Check whether --enable-initfini-array was given.
22589 if test "${enable_initfini_array+set}" = set; then :
22590 enableval=$enable_initfini_array;
22591 else
22593 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for .preinit_array/.init_array/.fini_array support" >&5
22594 $as_echo_n "checking for .preinit_array/.init_array/.fini_array support... " >&6; }
22595 if test "${gcc_cv_initfini_array+set}" = set; then :
22596 $as_echo_n "(cached) " >&6
22597 else
22598 if test "x${build}" = "x${target}" && test "x${build}" = "x${host}"; then
22599 case "${target}" in
22600 ia64-*)
22601 if test "$cross_compiling" = yes; then :
22602 gcc_cv_initfini_array=no
22603 else
22604 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22605 /* end confdefs.h. */
22607 #ifndef __ELF__
22608 #error Not an ELF OS
22609 #endif
22610 /* We turn on .preinit_array/.init_array/.fini_array support for ia64
22611 if it can be used. */
22612 static int x = -1;
22613 int main (void) { return x; }
22614 int foo (void) { x = 0; }
22615 int (*fp) (void) __attribute__ ((section (".init_array"))) = foo;
22617 _ACEOF
22618 if ac_fn_c_try_run "$LINENO"; then :
22619 gcc_cv_initfini_array=yes
22620 else
22621 gcc_cv_initfini_array=no
22623 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
22624 conftest.$ac_objext conftest.beam conftest.$ac_ext
22628 gcc_cv_initfini_array=no
22629 if test $in_tree_ld = yes ; then
22630 if test "$gcc_cv_gld_major_version" -eq 2 \
22631 -a "$gcc_cv_gld_minor_version" -ge 22 \
22632 -o "$gcc_cv_gld_major_version" -gt 2 \
22633 && test $in_tree_ld_is_elf = yes; then
22634 gcc_cv_initfini_array=yes
22636 elif test x$gcc_cv_as != x -a x$gcc_cv_ld != x -a x$gcc_cv_objdump != x ; then
22637 cat > conftest.s <<\EOF
22638 .section .dtors,"a",%progbits
22639 .balign 4
22640 .byte 'A', 'A', 'A', 'A'
22641 .section .ctors,"a",%progbits
22642 .balign 4
22643 .byte 'B', 'B', 'B', 'B'
22644 .section .fini_array.65530,"a",%progbits
22645 .balign 4
22646 .byte 'C', 'C', 'C', 'C'
22647 .section .init_array.65530,"a",%progbits
22648 .balign 4
22649 .byte 'D', 'D', 'D', 'D'
22650 .section .dtors.64528,"a",%progbits
22651 .balign 4
22652 .byte 'E', 'E', 'E', 'E'
22653 .section .ctors.64528,"a",%progbits
22654 .balign 4
22655 .byte 'F', 'F', 'F', 'F'
22656 .section .fini_array.01005,"a",%progbits
22657 .balign 4
22658 .byte 'G', 'G', 'G', 'G'
22659 .section .init_array.01005,"a",%progbits
22660 .balign 4
22661 .byte 'H', 'H', 'H', 'H'
22662 .text
22663 .globl _start
22664 _start:
22666 if $gcc_cv_as -o conftest.o conftest.s > /dev/null 2>&1 \
22667 && $gcc_cv_ld -o conftest conftest.o > /dev/null 2>&1 \
22668 && $gcc_cv_objdump -s -j .init_array conftest \
22669 | grep HHHHFFFFDDDDBBBB > /dev/null 2>&1 \
22670 && $gcc_cv_objdump -s -j .fini_array conftest \
22671 | grep GGGGEEEECCCCAAAA > /dev/null 2>&1; then
22672 gcc_cv_initfini_array=yes
22674 rm -f conftest conftest.*
22676 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22677 /* end confdefs.h. */
22679 #ifndef __ELF__
22680 # error Not an ELF OS
22681 #endif
22682 #include <stdlib.h>
22683 #if defined __GLIBC_PREREQ
22684 # if __GLIBC_PREREQ (2, 4)
22685 # else
22686 # error GLIBC 2.4 required
22687 # endif
22688 #else
22689 # if defined __sun__ && defined __svr4__
22690 /* Solaris ld.so.1 supports .init_array/.fini_array since Solaris 8. */
22691 # else
22692 # error The C library not known to support .init_array/.fini_array
22693 # endif
22694 #endif
22696 _ACEOF
22697 if ac_fn_c_try_cpp "$LINENO"; then :
22699 else
22700 gcc_cv_initfini_array=no
22702 rm -f conftest.err conftest.$ac_ext;;
22703 esac
22704 else
22705 { $as_echo "$as_me:${as_lineno-$LINENO}: checking cross compile... guessing" >&5
22706 $as_echo_n "checking cross compile... guessing... " >&6; }
22707 gcc_cv_initfini_array=no
22710 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_initfini_array" >&5
22711 $as_echo "$gcc_cv_initfini_array" >&6; }
22712 enable_initfini_array=$gcc_cv_initfini_array
22716 if test $enable_initfini_array = yes; then
22718 $as_echo "#define HAVE_INITFINI_ARRAY_SUPPORT 1" >>confdefs.h
22722 # Check if we have .[us]leb128, and support symbol arithmetic with it.
22723 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .sleb128 and .uleb128" >&5
22724 $as_echo_n "checking assembler for .sleb128 and .uleb128... " >&6; }
22725 if test "${gcc_cv_as_leb128+set}" = set; then :
22726 $as_echo_n "(cached) " >&6
22727 else
22728 gcc_cv_as_leb128=no
22729 if test $in_tree_gas = yes; then
22730 if test $in_tree_gas_is_elf = yes \
22731 && test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 11 \) \* 1000 + 0`
22732 then gcc_cv_as_leb128=yes
22734 elif test x$gcc_cv_as != x; then
22735 $as_echo ' .data
22736 .uleb128 L2 - L1
22738 .uleb128 1280
22739 .sleb128 -1010
22740 L2:' > conftest.s
22741 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
22742 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
22743 (eval $ac_try) 2>&5
22744 ac_status=$?
22745 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
22746 test $ac_status = 0; }; }
22747 then
22748 # GAS versions before 2.11 do not support uleb128,
22749 # despite appearing to.
22750 # ??? There exists an elf-specific test that will crash
22751 # the assembler. Perhaps it's better to figure out whether
22752 # arbitrary sections are supported and try the test.
22753 as_ver=`$gcc_cv_as --version 2>/dev/null | sed 1q`
22754 if echo "$as_ver" | grep GNU > /dev/null; then
22755 as_vers=`echo $as_ver | sed -n \
22756 -e 's,^.*[ ]\([0-9][0-9]*\.[0-9][0-9]*.*\)$,\1,p'`
22757 as_major=`expr "$as_vers" : '\([0-9]*\)'`
22758 as_minor=`expr "$as_vers" : '[0-9]*\.\([0-9]*\)'`
22759 if test $as_major -eq 2 && test $as_minor -lt 11
22760 then :
22761 else gcc_cv_as_leb128=yes
22764 else
22765 echo "configure: failed program was" >&5
22766 cat conftest.s >&5
22768 rm -f conftest.o conftest.s
22771 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_leb128" >&5
22772 $as_echo "$gcc_cv_as_leb128" >&6; }
22773 if test $gcc_cv_as_leb128 = yes; then
22775 $as_echo "#define HAVE_AS_LEB128 1" >>confdefs.h
22779 # Check if we have assembler support for unwind directives.
22780 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for cfi directives" >&5
22781 $as_echo_n "checking assembler for cfi directives... " >&6; }
22782 if test "${gcc_cv_as_cfi_directive+set}" = set; then :
22783 $as_echo_n "(cached) " >&6
22784 else
22785 gcc_cv_as_cfi_directive=no
22786 if test x$gcc_cv_as != x; then
22787 $as_echo ' .text
22788 .cfi_startproc
22789 .cfi_offset 0, 0
22790 .cfi_same_value 1
22791 .cfi_def_cfa 1, 2
22792 .cfi_escape 1, 2, 3, 4, 5
22793 .cfi_endproc' > conftest.s
22794 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
22795 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
22796 (eval $ac_try) 2>&5
22797 ac_status=$?
22798 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
22799 test $ac_status = 0; }; }
22800 then
22801 case "$target" in
22802 *-*-solaris*)
22803 # If the linker used on Solaris (like Sun ld) isn't capable of merging
22804 # read-only and read-write sections, we need to make sure that the
22805 # assembler used emits read-write .eh_frame sections.
22806 if test "x$gcc_cv_ld_ro_rw_mix" != xread-write; then
22807 if test "x$gcc_cv_objdump" != x; then
22808 if $gcc_cv_objdump -h conftest.o 2>/dev/null | \
22809 sed -e /.eh_frame/!d -e N | grep READONLY > /dev/null; then
22810 gcc_cv_as_cfi_directive=no
22811 else
22812 case "$target" in
22813 i?86-*-solaris2.1[0-9]* | x86_64-*-solaris2.1[0-9]*)
22814 # On Solaris/x86, make sure that GCC and assembler agree on using
22815 # read-only .eh_frame sections for 64-bit.
22816 if test x$gas = xyes; then
22817 as_ix86_64_opt="--64"
22818 else
22819 as_ix86_64_opt="-xarch=amd64"
22821 if $gcc_cv_as $as_ix86_64_opt -o conftest.o conftest.s > /dev/null 2>&1 && \
22822 $gcc_cv_objdump -h conftest.o 2>/dev/null | \
22823 sed -e /.eh_frame/!d -e N | \
22824 grep READONLY > /dev/null; then
22825 gcc_cv_as_cfi_directive=yes
22826 else
22827 gcc_cv_as_cfi_directive=no
22831 gcc_cv_as_cfi_directive=yes
22833 esac
22835 else
22836 # no objdump, err on the side of caution
22837 gcc_cv_as_cfi_directive=no
22839 else
22840 gcc_cv_as_cfi_directive=yes
22843 *-*-*)
22844 gcc_cv_as_cfi_directive=yes
22846 esac
22847 else
22848 echo "configure: failed program was" >&5
22849 cat conftest.s >&5
22851 rm -f conftest.o conftest.s
22854 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_cfi_directive" >&5
22855 $as_echo "$gcc_cv_as_cfi_directive" >&6; }
22857 if test $gcc_cv_as_cfi_directive = yes && test x$gcc_cv_objdump != x; then
22858 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for working cfi advance" >&5
22859 $as_echo_n "checking assembler for working cfi advance... " >&6; }
22860 if test "${gcc_cv_as_cfi_advance_working+set}" = set; then :
22861 $as_echo_n "(cached) " >&6
22862 else
22863 gcc_cv_as_cfi_advance_working=no
22864 if test x$gcc_cv_as != x; then
22865 $as_echo ' .text
22866 .cfi_startproc
22867 .cfi_adjust_cfa_offset 64
22868 .skip 75040, 0
22869 .cfi_adjust_cfa_offset 128
22870 .cfi_endproc' > conftest.s
22871 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
22872 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
22873 (eval $ac_try) 2>&5
22874 ac_status=$?
22875 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
22876 test $ac_status = 0; }; }
22877 then
22879 if $gcc_cv_objdump -Wf conftest.o 2>/dev/null \
22880 | grep 'DW_CFA_advance_loc[24]:[ ][ ]*75040[ ]' >/dev/null; then
22881 gcc_cv_as_cfi_advance_working=yes
22884 else
22885 echo "configure: failed program was" >&5
22886 cat conftest.s >&5
22888 rm -f conftest.o conftest.s
22891 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_cfi_advance_working" >&5
22892 $as_echo "$gcc_cv_as_cfi_advance_working" >&6; }
22894 else
22895 # no objdump, err on the side of caution
22896 gcc_cv_as_cfi_advance_working=no
22900 cat >>confdefs.h <<_ACEOF
22901 #define HAVE_GAS_CFI_DIRECTIVE `if test $gcc_cv_as_cfi_directive = yes \
22902 && test $gcc_cv_as_cfi_advance_working = yes; then echo 1; else echo 0; fi`
22903 _ACEOF
22907 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for cfi personality directive" >&5
22908 $as_echo_n "checking assembler for cfi personality directive... " >&6; }
22909 if test "${gcc_cv_as_cfi_personality_directive+set}" = set; then :
22910 $as_echo_n "(cached) " >&6
22911 else
22912 gcc_cv_as_cfi_personality_directive=no
22913 if test x$gcc_cv_as != x; then
22914 $as_echo ' .text
22915 .cfi_startproc
22916 .cfi_personality 0, symbol
22917 .cfi_endproc' > conftest.s
22918 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
22919 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
22920 (eval $ac_try) 2>&5
22921 ac_status=$?
22922 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
22923 test $ac_status = 0; }; }
22924 then
22925 gcc_cv_as_cfi_personality_directive=yes
22926 else
22927 echo "configure: failed program was" >&5
22928 cat conftest.s >&5
22930 rm -f conftest.o conftest.s
22933 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_cfi_personality_directive" >&5
22934 $as_echo "$gcc_cv_as_cfi_personality_directive" >&6; }
22937 cat >>confdefs.h <<_ACEOF
22938 #define HAVE_GAS_CFI_PERSONALITY_DIRECTIVE `if test $gcc_cv_as_cfi_personality_directive = yes;
22939 then echo 1; else echo 0; fi`
22940 _ACEOF
22943 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for cfi sections directive" >&5
22944 $as_echo_n "checking assembler for cfi sections directive... " >&6; }
22945 if test "${gcc_cv_as_cfi_sections_directive+set}" = set; then :
22946 $as_echo_n "(cached) " >&6
22947 else
22948 gcc_cv_as_cfi_sections_directive=no
22949 if test x$gcc_cv_as != x; then
22950 $as_echo ' .text
22951 .cfi_sections .debug_frame, .eh_frame
22952 .cfi_startproc
22953 .cfi_endproc' > conftest.s
22954 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
22955 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
22956 (eval $ac_try) 2>&5
22957 ac_status=$?
22958 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
22959 test $ac_status = 0; }; }
22960 then
22961 case $target_os in
22962 win32 | pe | cygwin* | mingw32* | uwin*)
22963 # Need to check that we generated the correct relocation for the
22964 # .debug_frame section. This was fixed for binutils 2.21.
22965 gcc_cv_as_cfi_sections_directive=no
22966 if test "x$gcc_cv_objdump" != x; then
22967 if $gcc_cv_objdump -j .debug_frame -r conftest.o 2>/dev/null | \
22968 grep secrel > /dev/null; then
22969 gcc_cv_as_cfi_sections_directive=yes
22974 gcc_cv_as_cfi_sections_directive=yes
22976 esac
22977 else
22978 echo "configure: failed program was" >&5
22979 cat conftest.s >&5
22981 rm -f conftest.o conftest.s
22984 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_cfi_sections_directive" >&5
22985 $as_echo "$gcc_cv_as_cfi_sections_directive" >&6; }
22989 cat >>confdefs.h <<_ACEOF
22990 #define HAVE_GAS_CFI_SECTIONS_DIRECTIVE `if test $gcc_cv_as_cfi_sections_directive = yes;
22991 then echo 1; else echo 0; fi`
22992 _ACEOF
22995 # GAS versions up to and including 2.11.0 may mis-optimize
22996 # .eh_frame data.
22997 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for eh_frame optimization" >&5
22998 $as_echo_n "checking assembler for eh_frame optimization... " >&6; }
22999 if test "${gcc_cv_as_eh_frame+set}" = set; then :
23000 $as_echo_n "(cached) " >&6
23001 else
23002 gcc_cv_as_eh_frame=no
23003 if test $in_tree_gas = yes; then
23004 if test $in_tree_gas_is_elf = yes \
23005 && test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 12 \) \* 1000 + 0`
23006 then gcc_cv_as_eh_frame=yes
23008 elif test x$gcc_cv_as != x; then
23009 $as_echo ' .text
23010 .LFB1:
23011 .4byte 0
23012 .L1:
23013 .4byte 0
23014 .LFE1:
23015 .section .eh_frame,"aw",@progbits
23016 __FRAME_BEGIN__:
23017 .4byte .LECIE1-.LSCIE1
23018 .LSCIE1:
23019 .4byte 0x0
23020 .byte 0x1
23021 .ascii "z\0"
23022 .byte 0x1
23023 .byte 0x78
23024 .byte 0x1a
23025 .byte 0x0
23026 .byte 0x4
23027 .4byte 1
23028 .p2align 1
23029 .LECIE1:
23030 .LSFDE1:
23031 .4byte .LEFDE1-.LASFDE1
23032 .LASFDE1:
23033 .4byte .LASFDE1-__FRAME_BEGIN__
23034 .4byte .LFB1
23035 .4byte .LFE1-.LFB1
23036 .byte 0x4
23037 .4byte .LFE1-.LFB1
23038 .byte 0x4
23039 .4byte .L1-.LFB1
23040 .LEFDE1:' > conftest.s
23041 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
23042 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
23043 (eval $ac_try) 2>&5
23044 ac_status=$?
23045 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
23046 test $ac_status = 0; }; }
23047 then
23048 cat > conftest.lit <<EOF
23049 0000 10000000 00000000 017a0001 781a0004 .........z..x...
23050 0010 01000000 12000000 18000000 00000000 ................
23051 0020 08000000 04080000 0044 .........D
23053 cat > conftest.big <<EOF
23054 0000 00000010 00000000 017a0001 781a0004 .........z..x...
23055 0010 00000001 00000012 00000018 00000000 ................
23056 0020 00000008 04000000 0844 .........D
23058 # If the assembler didn't choke, and we can objdump,
23059 # and we got the correct data, then succeed.
23060 # The text in the here-document typically retains its unix-style line
23061 # endings, while the output of objdump will use host line endings.
23062 # Therefore, use diff -b for the comparisons.
23063 if test x$gcc_cv_objdump != x \
23064 && $gcc_cv_objdump -s -j .eh_frame conftest.o 2>/dev/null \
23065 | tail -3 > conftest.got \
23066 && { diff -b conftest.lit conftest.got > /dev/null 2>&1 \
23067 || diff -b conftest.big conftest.got > /dev/null 2>&1; }
23068 then
23069 gcc_cv_as_eh_frame=yes
23070 elif { ac_try='$gcc_cv_as -o conftest.o --traditional-format /dev/null'
23071 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
23072 (eval $ac_try) 2>&5
23073 ac_status=$?
23074 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
23075 test $ac_status = 0; }; }; then
23076 gcc_cv_as_eh_frame=buggy
23077 else
23078 # Uh oh, what do we do now?
23079 gcc_cv_as_eh_frame=no
23081 else
23082 echo "configure: failed program was" >&5
23083 cat conftest.s >&5
23085 rm -f conftest.o conftest.s
23088 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_eh_frame" >&5
23089 $as_echo "$gcc_cv_as_eh_frame" >&6; }
23092 if test $gcc_cv_as_eh_frame = buggy; then
23094 $as_echo "#define USE_AS_TRADITIONAL_FORMAT 1" >>confdefs.h
23098 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for section merging support" >&5
23099 $as_echo_n "checking assembler for section merging support... " >&6; }
23100 if test "${gcc_cv_as_shf_merge+set}" = set; then :
23101 $as_echo_n "(cached) " >&6
23102 else
23103 gcc_cv_as_shf_merge=no
23104 if test $in_tree_gas = yes; then
23105 if test $in_tree_gas_is_elf = yes \
23106 && test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 12 \) \* 1000 + 0`
23107 then gcc_cv_as_shf_merge=yes
23109 elif test x$gcc_cv_as != x; then
23110 $as_echo '.section .rodata.str, "aMS", @progbits, 1' > conftest.s
23111 if { ac_try='$gcc_cv_as $gcc_cv_as_flags --fatal-warnings -o conftest.o conftest.s >&5'
23112 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
23113 (eval $ac_try) 2>&5
23114 ac_status=$?
23115 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
23116 test $ac_status = 0; }; }
23117 then
23118 gcc_cv_as_shf_merge=yes
23119 else
23120 echo "configure: failed program was" >&5
23121 cat conftest.s >&5
23123 rm -f conftest.o conftest.s
23126 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_shf_merge" >&5
23127 $as_echo "$gcc_cv_as_shf_merge" >&6; }
23129 if test $gcc_cv_as_shf_merge = no; then
23130 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for section merging support" >&5
23131 $as_echo_n "checking assembler for section merging support... " >&6; }
23132 if test "${gcc_cv_as_shf_merge+set}" = set; then :
23133 $as_echo_n "(cached) " >&6
23134 else
23135 gcc_cv_as_shf_merge=no
23136 if test $in_tree_gas = yes; then
23137 if test $in_tree_gas_is_elf = yes \
23138 && test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 12 \) \* 1000 + 0`
23139 then gcc_cv_as_shf_merge=yes
23141 elif test x$gcc_cv_as != x; then
23142 $as_echo '.section .rodata.str, "aMS", %progbits, 1' > conftest.s
23143 if { ac_try='$gcc_cv_as $gcc_cv_as_flags --fatal-warnings -o conftest.o conftest.s >&5'
23144 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
23145 (eval $ac_try) 2>&5
23146 ac_status=$?
23147 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
23148 test $ac_status = 0; }; }
23149 then
23150 gcc_cv_as_shf_merge=yes
23151 else
23152 echo "configure: failed program was" >&5
23153 cat conftest.s >&5
23155 rm -f conftest.o conftest.s
23158 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_shf_merge" >&5
23159 $as_echo "$gcc_cv_as_shf_merge" >&6; }
23163 cat >>confdefs.h <<_ACEOF
23164 #define HAVE_GAS_SHF_MERGE `if test $gcc_cv_as_shf_merge = yes; then echo 1; else echo 0; fi`
23165 _ACEOF
23168 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for COMDAT group support (GNU as)" >&5
23169 $as_echo_n "checking assembler for COMDAT group support (GNU as)... " >&6; }
23170 if test "${gcc_cv_as_comdat_group+set}" = set; then :
23171 $as_echo_n "(cached) " >&6
23172 else
23173 gcc_cv_as_comdat_group=no
23174 if test $in_tree_gas = yes; then
23175 if test $in_tree_gas_is_elf = yes \
23176 && test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 16 \) \* 1000 + 0`
23177 then gcc_cv_as_comdat_group=yes
23179 elif test x$gcc_cv_as != x; then
23180 $as_echo '.section .text,"axG",@progbits,.foo,comdat' > conftest.s
23181 if { ac_try='$gcc_cv_as $gcc_cv_as_flags --fatal-warnings -o conftest.o conftest.s >&5'
23182 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
23183 (eval $ac_try) 2>&5
23184 ac_status=$?
23185 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
23186 test $ac_status = 0; }; }
23187 then
23188 gcc_cv_as_comdat_group=yes
23189 else
23190 echo "configure: failed program was" >&5
23191 cat conftest.s >&5
23193 rm -f conftest.o conftest.s
23196 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_comdat_group" >&5
23197 $as_echo "$gcc_cv_as_comdat_group" >&6; }
23199 if test $gcc_cv_as_comdat_group = yes; then
23200 gcc_cv_as_comdat_group_percent=no
23201 gcc_cv_as_comdat_group_group=no
23202 else
23203 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for COMDAT group support (GNU as, %type)" >&5
23204 $as_echo_n "checking assembler for COMDAT group support (GNU as, %type)... " >&6; }
23205 if test "${gcc_cv_as_comdat_group_percent+set}" = set; then :
23206 $as_echo_n "(cached) " >&6
23207 else
23208 gcc_cv_as_comdat_group_percent=no
23209 if test $in_tree_gas = yes; then
23210 if test $in_tree_gas_is_elf = yes \
23211 && test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 16 \) \* 1000 + 0`
23212 then gcc_cv_as_comdat_group_percent=yes
23214 elif test x$gcc_cv_as != x; then
23215 $as_echo '.section .text,"axG",%progbits,.foo,comdat' > conftest.s
23216 if { ac_try='$gcc_cv_as $gcc_cv_as_flags --fatal-warnings -o conftest.o conftest.s >&5'
23217 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
23218 (eval $ac_try) 2>&5
23219 ac_status=$?
23220 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
23221 test $ac_status = 0; }; }
23222 then
23223 gcc_cv_as_comdat_group_percent=yes
23224 else
23225 echo "configure: failed program was" >&5
23226 cat conftest.s >&5
23228 rm -f conftest.o conftest.s
23231 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_comdat_group_percent" >&5
23232 $as_echo "$gcc_cv_as_comdat_group_percent" >&6; }
23234 if test $gcc_cv_as_comdat_group_percent = yes; then
23235 gcc_cv_as_comdat_group_group=no
23236 else
23237 case "${target}" in
23238 # Sun as uses a completely different syntax.
23239 *-*-solaris2*)
23240 case "${target}" in
23241 sparc*-*-solaris2*)
23242 conftest_s='
23243 .group foo,".text%foo",#comdat
23244 .section ".text%foo", #alloc,#execinstr,#progbits
23245 .globl foo
23246 foo:
23249 i?86-*-solaris2* | x86_64-*-solaris2.1[0-9]*)
23250 conftest_s='
23251 .group foo,.text%foo,#comdat
23252 .section .text%foo, "ax", @progbits
23253 .globl foo
23254 foo:
23257 esac
23258 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for COMDAT group support (Sun as, .group)" >&5
23259 $as_echo_n "checking assembler for COMDAT group support (Sun as, .group)... " >&6; }
23260 if test "${gcc_cv_as_comdat_group_group+set}" = set; then :
23261 $as_echo_n "(cached) " >&6
23262 else
23263 gcc_cv_as_comdat_group_group=no
23264 if test x$gcc_cv_as != x; then
23265 $as_echo "$conftest_s" > conftest.s
23266 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
23267 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
23268 (eval $ac_try) 2>&5
23269 ac_status=$?
23270 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
23271 test $ac_status = 0; }; }
23272 then
23273 gcc_cv_as_comdat_group_group=yes
23274 else
23275 echo "configure: failed program was" >&5
23276 cat conftest.s >&5
23278 rm -f conftest.o conftest.s
23281 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_comdat_group_group" >&5
23282 $as_echo "$gcc_cv_as_comdat_group_group" >&6; }
23285 esac
23286 if test -z "${gcc_cv_as_comdat_group_group+set}"; then
23287 gcc_cv_as_comdat_group_group=no
23291 if test x"$ld_is_gold" = xyes; then
23292 comdat_group=yes
23293 elif test $in_tree_ld = yes ; then
23294 comdat_group=no
23295 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 \
23296 && test $in_tree_ld_is_elf = yes; then
23297 comdat_group=yes
23299 elif echo "$ld_ver" | grep GNU > /dev/null; then
23300 comdat_group=yes
23301 if test 0"$ld_date" -lt 20050308; then
23302 if test -n "$ld_date"; then
23303 # If there was date string, but was earlier than 2005-03-08, fail
23304 comdat_group=no
23305 elif test "$ld_vers_major" -lt 2; then
23306 comdat_group=no
23307 elif test "$ld_vers_major" -eq 2 -a "$ld_vers_minor" -lt 16; then
23308 comdat_group=no
23311 else
23312 case "${target}" in
23313 *-*-solaris2.1[1-9]*)
23314 comdat_group=no
23315 # Sun ld has COMDAT group support since Solaris 9, but it doesn't
23316 # interoperate with GNU as until Solaris 11 build 130, i.e. ld
23317 # version 1.688.
23319 # If using Sun as for COMDAT group as emitted by GCC, one needs at
23320 # least ld version 1.2267.
23321 if test "$ld_vers_major" -gt 1; then
23322 comdat_group=yes
23323 elif test "x$gas_flag" = xyes && test "$ld_vers_minor" -ge 1688; then
23324 comdat_group=yes
23325 elif test "$ld_vers_minor" -ge 2267; then
23326 comdat_group=yes
23330 # Assume linkers other than GNU ld don't support COMDAT group.
23331 comdat_group=no
23333 esac
23335 # Allow overriding the automatic COMDAT group tests above.
23336 # Check whether --enable-comdat was given.
23337 if test "${enable_comdat+set}" = set; then :
23338 enableval=$enable_comdat; comdat_group="$enable_comdat"
23341 if test $comdat_group = no; then
23342 gcc_cv_as_comdat_group=no
23343 gcc_cv_as_comdat_group_percent=no
23344 gcc_cv_as_comdat_group_group=no
23347 cat >>confdefs.h <<_ACEOF
23348 #define HAVE_COMDAT_GROUP `if test $gcc_cv_as_comdat_group = yes \
23349 || test $gcc_cv_as_comdat_group_percent = yes \
23350 || test $gcc_cv_as_comdat_group_group = yes; then echo 1; else echo 0; fi`
23351 _ACEOF
23354 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for line table discriminator support" >&5
23355 $as_echo_n "checking assembler for line table discriminator support... " >&6; }
23356 if test "${gcc_cv_as_discriminator+set}" = set; then :
23357 $as_echo_n "(cached) " >&6
23358 else
23359 gcc_cv_as_discriminator=no
23360 if test $in_tree_gas = yes; then
23361 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 19 \) \* 1000 + 51`
23362 then gcc_cv_as_discriminator=yes
23364 elif test x$gcc_cv_as != x; then
23365 $as_echo ' .text
23366 .file 1 "conf.c"
23367 .loc 1 1 0 discriminator 1' > conftest.s
23368 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
23369 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
23370 (eval $ac_try) 2>&5
23371 ac_status=$?
23372 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
23373 test $ac_status = 0; }; }
23374 then
23375 gcc_cv_as_discriminator=yes
23376 else
23377 echo "configure: failed program was" >&5
23378 cat conftest.s >&5
23380 rm -f conftest.o conftest.s
23383 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_discriminator" >&5
23384 $as_echo "$gcc_cv_as_discriminator" >&6; }
23385 if test $gcc_cv_as_discriminator = yes; then
23387 $as_echo "#define HAVE_GAS_DISCRIMINATOR 1" >>confdefs.h
23391 # Thread-local storage - the check is heavily parameterized.
23392 conftest_s=
23393 tls_first_major=
23394 tls_first_minor=
23395 tls_as_opt=
23396 case "$target" in
23397 alpha*-*-*)
23398 conftest_s='
23399 .section ".tdata","awT",@progbits
23400 foo: .long 25
23401 .text
23402 ldq $27,__tls_get_addr($29) !literal!1
23403 lda $16,foo($29) !tlsgd!1
23404 jsr $26,($27),__tls_get_addr !lituse_tlsgd!1
23405 ldq $27,__tls_get_addr($29) !literal!2
23406 lda $16,foo($29) !tlsldm!2
23407 jsr $26,($27),__tls_get_addr !lituse_tlsldm!2
23408 ldq $1,foo($29) !gotdtprel
23409 ldah $2,foo($29) !dtprelhi
23410 lda $3,foo($2) !dtprello
23411 lda $4,foo($29) !dtprel
23412 ldq $1,foo($29) !gottprel
23413 ldah $2,foo($29) !tprelhi
23414 lda $3,foo($2) !tprello
23415 lda $4,foo($29) !tprel'
23416 tls_first_major=2
23417 tls_first_minor=13
23418 tls_as_opt=--fatal-warnings
23420 cris-*-*|crisv32-*-*)
23421 conftest_s='
23422 .section ".tdata","awT",@progbits
23423 x: .long 25
23424 .text
23425 move.d x:IE,$r10
23426 nop'
23427 tls_first_major=2
23428 tls_first_minor=20
23429 tls_as_opt=--fatal-warnings
23431 frv*-*-*)
23432 conftest_s='
23433 .section ".tdata","awT",@progbits
23434 x: .long 25
23435 .text
23436 call #gettlsoff(x)'
23437 tls_first_major=2
23438 tls_first_minor=14
23440 hppa*-*-linux*)
23441 conftest_s='
23442 t1: .reg %r20
23443 t2: .reg %r21
23444 gp: .reg %r19
23445 .section ".tdata","awT",@progbits
23446 foo: .long 25
23447 .text
23448 .align 4
23449 addil LT%foo-$tls_gdidx$,gp
23450 ldo RT%foo-$tls_gdidx$(%r1),%arg0
23451 b __tls_get_addr
23453 addil LT%foo-$tls_ldidx$,gp
23454 b __tls_get_addr
23455 ldo RT%foo-$tls_ldidx$(%r1),%arg0
23456 addil LR%foo-$tls_dtpoff$,%ret0
23457 ldo RR%foo-$tls_dtpoff$(%r1),%t1
23458 mfctl %cr27,%t1
23459 addil LT%foo-$tls_ieoff$,gp
23460 ldw RT%foo-$tls_ieoff$(%r1),%t2
23461 add %t1,%t2,%t3
23462 mfctl %cr27,%t1
23463 addil LR%foo-$tls_leoff$,%t1
23464 ldo RR%foo-$tls_leoff$(%r1),%t2'
23465 tls_first_major=2
23466 tls_first_minor=15
23467 tls_as_opt=--fatal-warnings
23469 arm*-*-*)
23470 conftest_s='
23471 .section ".tdata","awT",%progbits
23472 foo: .long 25
23473 .text
23474 .word foo(gottpoff)
23475 .word foo(tpoff)
23476 .word foo(tlsgd)
23477 .word foo(tlsldm)
23478 .word foo(tlsldo)'
23479 tls_first_major=2
23480 tls_first_minor=17
23482 i[34567]86-*-* | x86_64-*-*)
23483 case "$target" in
23484 i[34567]86-*-solaris2.* | x86_64-*-solaris2.1[0-9]*)
23485 on_solaris=yes
23488 on_solaris=no
23490 esac
23491 if test x$on_solaris = xyes && test x$gas_flag = xno; then
23492 conftest_s='
23493 .section .tdata,"awt",@progbits'
23494 tls_first_major=0
23495 tls_first_minor=0
23496 tls_section_flag=t
23498 $as_echo "#define TLS_SECTION_ASM_FLAG 't'" >>confdefs.h
23500 else
23501 conftest_s='
23502 .section ".tdata","awT",@progbits'
23503 tls_first_major=2
23504 tls_first_minor=14
23505 tls_section_flag=T
23506 tls_as_opt="--fatal-warnings"
23508 case "$target" in
23509 i[34567]86-*-*)
23510 conftest_s="$conftest_s
23511 foo: .long 25
23512 .text
23513 movl %gs:0, %eax
23514 leal foo@tlsgd(,%ebx,1), %eax
23515 leal foo@tlsldm(%ebx), %eax
23516 leal foo@dtpoff(%eax), %edx
23517 movl foo@gottpoff(%ebx), %eax
23518 subl foo@gottpoff(%ebx), %eax
23519 addl foo@gotntpoff(%ebx), %eax
23520 movl foo@indntpoff, %eax
23521 movl \$foo@tpoff, %eax
23522 subl \$foo@tpoff, %eax
23523 leal foo@ntpoff(%ecx), %eax"
23525 x86_64-*-*)
23526 if test x$on_solaris = xyes; then
23527 case $gas_flag in
23528 yes) tls_as_opt="$tls_as_opt --64" ;;
23529 no) tls_as_opt="$tls_as_opt -xarch=amd64" ;;
23530 esac
23532 conftest_s="$conftest_s
23533 foo: .long 25
23534 .text
23535 movq %fs:0, %rax
23536 leaq foo@tlsgd(%rip), %rdi
23537 leaq foo@tlsld(%rip), %rdi
23538 leaq foo@dtpoff(%rax), %rdx
23539 movq foo@gottpoff(%rip), %rax
23540 movq \$foo@tpoff, %rax"
23542 esac
23544 ia64-*-*)
23545 conftest_s='
23546 .section ".tdata","awT",@progbits
23547 foo: data8 25
23548 .text
23549 addl r16 = @ltoff(@dtpmod(foo#)), gp
23550 addl r17 = @ltoff(@dtprel(foo#)), gp
23551 addl r18 = @ltoff(@tprel(foo#)), gp
23552 addl r19 = @dtprel(foo#), gp
23553 adds r21 = @dtprel(foo#), r13
23554 movl r23 = @dtprel(foo#)
23555 addl r20 = @tprel(foo#), gp
23556 adds r22 = @tprel(foo#), r13
23557 movl r24 = @tprel(foo#)'
23558 tls_first_major=2
23559 tls_first_minor=13
23560 tls_as_opt=--fatal-warnings
23562 microblaze*-*-*)
23563 conftest_s='
23564 .section .tdata,"awT",@progbits
23566 .word 2
23567 .text
23568 addik r5,r20,x@TLSGD
23569 addik r5,r20,x@TLSLDM'
23570 tls_first_major=2
23571 tls_first_minor=20
23572 tls_as_opt='--fatal-warnings'
23574 mips*-*-*)
23575 conftest_s='
23576 .section .tdata,"awT",@progbits
23578 .word 2
23579 .text
23580 addiu $4, $28, %tlsgd(x)
23581 addiu $4, $28, %tlsldm(x)
23582 lui $4, %dtprel_hi(x)
23583 addiu $4, $4, %dtprel_lo(x)
23584 lw $4, %gottprel(x)($28)
23585 lui $4, %tprel_hi(x)
23586 addiu $4, $4, %tprel_lo(x)'
23587 tls_first_major=2
23588 tls_first_minor=16
23589 tls_as_opt='-32 --fatal-warnings'
23591 m68k-*-*)
23592 conftest_s='
23593 .section .tdata,"awT",@progbits
23595 .word 2
23596 .text
23597 foo:
23598 move.l x@TLSGD(%a5),%a0
23599 move.l x@TLSLDM(%a5),%a0
23600 move.l x@TLSLDO(%a5),%a0
23601 move.l x@TLSIE(%a5),%a0
23602 move.l x@TLSLE(%a5),%a0'
23603 tls_first_major=2
23604 tls_first_minor=19
23605 tls_as_opt='--fatal-warnings'
23607 nios2-*-*)
23608 conftest_s='
23609 .section ".tdata","awT",@progbits'
23610 tls_first_major=2
23611 tls_first_minor=23
23612 tls_as_opt="--fatal-warnings"
23614 aarch64*-*-*)
23615 conftest_s='
23616 .section ".tdata","awT",%progbits
23617 foo: .long 25
23618 .text
23619 adrp x0, :tlsgd:x
23620 add x0, x0, #:tlsgd_lo12:x
23621 bl __tls_get_addr
23622 nop'
23623 tls_first_major=2
23624 tls_first_minor=20
23625 tls_as_opt='--fatal-warnings'
23627 powerpc-ibm-aix*)
23628 conftest_s='
23629 .extern __get_tpointer
23630 .toc
23631 LC..1:
23632 .tc a[TC],a[TL]@le
23633 .csect .text[PR]
23634 .tlstest:
23635 lwz 9,LC..1(2)
23636 bla __get_tpointer
23637 lwzx 3,9,3
23638 .globl a
23639 .csect a[TL],4
23641 .space 4'
23642 tls_first_major=0
23643 tls_first_minor=0
23645 powerpc64*-*-*)
23646 conftest_s='
23647 .section ".tdata","awT",@progbits
23648 .align 3
23649 ld0: .space 8
23650 ld1: .space 8
23651 x1: .space 8
23652 x2: .space 8
23653 x3: .space 8
23654 .text
23655 addi 3,2,ld0@got@tlsgd
23656 bl .__tls_get_addr
23658 addi 3,2,ld1@toc
23659 bl .__tls_get_addr
23661 addi 3,2,x1@got@tlsld
23662 bl .__tls_get_addr
23664 addi 9,3,x1@dtprel
23665 bl .__tls_get_addr
23667 addis 9,3,x2@dtprel@ha
23668 addi 9,9,x2@dtprel@l
23669 bl .__tls_get_addr
23671 ld 9,x3@got@dtprel(2)
23672 add 9,9,3
23673 bl .__tls_get_addr
23674 nop'
23675 tls_first_major=2
23676 tls_first_minor=14
23677 tls_as_opt="-a64 --fatal-warnings"
23679 powerpc*-*-*)
23680 conftest_s='
23681 .section ".tdata","awT",@progbits
23682 .align 2
23683 ld0: .space 4
23684 ld1: .space 4
23685 x1: .space 4
23686 x2: .space 4
23687 x3: .space 4
23688 .text
23689 addi 3,31,ld0@got@tlsgd
23690 bl __tls_get_addr
23691 addi 3,31,x1@got@tlsld
23692 bl __tls_get_addr
23693 addi 9,3,x1@dtprel
23694 addis 9,3,x2@dtprel@ha
23695 addi 9,9,x2@dtprel@l
23696 lwz 9,x3@got@tprel(31)
23697 add 9,9,x@tls
23698 addi 9,2,x1@tprel
23699 addis 9,2,x2@tprel@ha
23700 addi 9,9,x2@tprel@l'
23701 tls_first_major=2
23702 tls_first_minor=14
23703 tls_as_opt="-a32 --fatal-warnings"
23705 s390-*-*)
23706 conftest_s='
23707 .section ".tdata","awT",@progbits
23708 foo: .long 25
23709 .text
23710 .long foo@TLSGD
23711 .long foo@TLSLDM
23712 .long foo@DTPOFF
23713 .long foo@NTPOFF
23714 .long foo@GOTNTPOFF
23715 .long foo@INDNTPOFF
23716 l %r1,foo@GOTNTPOFF(%r12)
23717 l %r1,0(%r1):tls_load:foo
23718 bas %r14,0(%r1,%r13):tls_gdcall:foo
23719 bas %r14,0(%r1,%r13):tls_ldcall:foo'
23720 tls_first_major=2
23721 tls_first_minor=14
23722 tls_as_opt="-m31 --fatal-warnings"
23724 s390x-*-*)
23725 conftest_s='
23726 .section ".tdata","awT",@progbits
23727 foo: .long 25
23728 .text
23729 .quad foo@TLSGD
23730 .quad foo@TLSLDM
23731 .quad foo@DTPOFF
23732 .quad foo@NTPOFF
23733 .quad foo@GOTNTPOFF
23734 lg %r1,foo@GOTNTPOFF(%r12)
23735 larl %r1,foo@INDNTPOFF
23736 brasl %r14,__tls_get_offset@PLT:tls_gdcall:foo
23737 brasl %r14,__tls_get_offset@PLT:tls_ldcall:foo'
23738 tls_first_major=2
23739 tls_first_minor=14
23740 tls_as_opt="-m64 -Aesame --fatal-warnings"
23742 sh-*-* | sh[34]-*-*)
23743 conftest_s='
23744 .section ".tdata","awT",@progbits
23745 foo: .long 25
23746 .text
23747 .long foo@TLSGD
23748 .long foo@TLSLDM
23749 .long foo@DTPOFF
23750 .long foo@GOTTPOFF
23751 .long foo@TPOFF'
23752 tls_first_major=2
23753 tls_first_minor=13
23754 tls_as_opt=--fatal-warnings
23756 sparc*-*-*)
23757 case "$target" in
23758 sparc*-sun-solaris2.*)
23759 on_solaris=yes
23762 on_solaris=no
23764 esac
23765 if test x$on_solaris = xyes && test x$gas_flag = xno; then
23766 conftest_s='
23767 .section ".tdata",#alloc,#write,#tls'
23768 tls_first_major=0
23769 tls_first_minor=0
23770 else
23771 conftest_s='
23772 .section ".tdata","awT",@progbits'
23773 tls_first_major=2
23774 tls_first_minor=14
23775 tls_as_opt="-32 --fatal-warnings"
23777 conftest_s="$conftest_s
23778 foo: .long 25
23779 .text
23780 sethi %tgd_hi22(foo), %o0
23781 add %o0, %tgd_lo10(foo), %o1
23782 add %l7, %o1, %o0, %tgd_add(foo)
23783 call __tls_get_addr, %tgd_call(foo)
23784 sethi %tldm_hi22(foo), %l1
23785 add %l1, %tldm_lo10(foo), %l2
23786 add %l7, %l2, %o0, %tldm_add(foo)
23787 call __tls_get_addr, %tldm_call(foo)
23788 sethi %tldo_hix22(foo), %l3
23789 xor %l3, %tldo_lox10(foo), %l4
23790 add %o0, %l4, %l5, %tldo_add(foo)
23791 sethi %tie_hi22(foo), %o3
23792 add %o3, %tie_lo10(foo), %o3
23793 ld [%l7 + %o3], %o2, %tie_ld(foo)
23794 add %g7, %o2, %o4, %tie_add(foo)
23795 sethi %tle_hix22(foo), %l1
23796 xor %l1, %tle_lox10(foo), %o5
23797 ld [%g7 + %o5], %o1"
23799 tilepro*-*-*)
23800 conftest_s='
23801 .section ".tdata","awT",@progbits
23802 foo: .long 25
23803 .text
23804 addli r0, zero, tls_gd(foo)
23805 auli r0, zero, tls_gd_ha16(foo)
23806 addli r0, r0, tls_gd_lo16(foo)
23807 jal __tls_get_addr
23808 addli r0, zero, tls_ie(foo)
23809 auli r0, r0, tls_ie_ha16(foo)
23810 addli r0, r0, tls_ie_lo16(foo)'
23811 tls_first_major=2
23812 tls_first_minor=22
23813 tls_as_opt="--fatal-warnings"
23815 tilegx*-*-*)
23816 conftest_s='
23817 .section ".tdata","awT",@progbits
23818 foo: .long 25
23819 .text
23820 shl16insli r0, zero, hw0_last_tls_gd(foo)
23821 shl16insli r0, zero, hw1_last_tls_gd(foo)
23822 shl16insli r0, r0, hw0_tls_gd(foo)
23823 jal __tls_get_addr
23824 shl16insli r0, zero, hw1_last_tls_ie(foo)
23825 shl16insli r0, r0, hw0_tls_ie(foo)'
23826 tls_first_major=2
23827 tls_first_minor=22
23828 tls_as_opt="--fatal-warnings"
23830 xtensa*-*-*)
23831 conftest_s='
23832 .section ".tdata","awT",@progbits
23833 foo: .long 25
23834 .text
23835 movi a8, foo@TLSFUNC
23836 movi a10, foo@TLSARG
23837 callx8.tls a8, foo@TLSCALL'
23838 tls_first_major=2
23839 tls_first_minor=19
23841 esac
23842 set_have_as_tls=no
23843 if test "x$enable_tls" = xno ; then
23844 : # TLS explicitly disabled.
23845 elif test "x$enable_tls" = xyes ; then
23846 set_have_as_tls=yes # TLS explicitly enabled.
23847 elif test -z "$tls_first_major"; then
23848 : # If we don't have a check, assume no support.
23849 else
23850 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for thread-local storage support" >&5
23851 $as_echo_n "checking assembler for thread-local storage support... " >&6; }
23852 if test "${gcc_cv_as_tls+set}" = set; then :
23853 $as_echo_n "(cached) " >&6
23854 else
23855 gcc_cv_as_tls=no
23856 if test $in_tree_gas = yes; then
23857 if test $gcc_cv_gas_vers -ge `expr \( \( $tls_first_major \* 1000 \) + $tls_first_minor \) \* 1000 + 0`
23858 then gcc_cv_as_tls=yes
23860 elif test x$gcc_cv_as != x; then
23861 $as_echo "$conftest_s" > conftest.s
23862 if { ac_try='$gcc_cv_as $gcc_cv_as_flags $tls_as_opt -o conftest.o conftest.s >&5'
23863 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
23864 (eval $ac_try) 2>&5
23865 ac_status=$?
23866 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
23867 test $ac_status = 0; }; }
23868 then
23869 gcc_cv_as_tls=yes
23870 else
23871 echo "configure: failed program was" >&5
23872 cat conftest.s >&5
23874 rm -f conftest.o conftest.s
23877 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_tls" >&5
23878 $as_echo "$gcc_cv_as_tls" >&6; }
23879 if test $gcc_cv_as_tls = yes; then
23880 set_have_as_tls=yes
23883 if test $set_have_as_tls = yes ; then
23885 $as_echo "#define HAVE_AS_TLS 1" >>confdefs.h
23889 # Target-specific assembler checks.
23891 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker -Bstatic/-Bdynamic option" >&5
23892 $as_echo_n "checking linker -Bstatic/-Bdynamic option... " >&6; }
23893 gcc_cv_ld_static_dynamic=no
23894 gcc_cv_ld_static_option='-Bstatic'
23895 gcc_cv_ld_dynamic_option='-Bdynamic'
23896 if test $in_tree_ld = yes ; then
23897 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
23898 gcc_cv_ld_static_dynamic=yes
23900 elif test x$gcc_cv_ld != x; then
23901 # Check if linker supports -Bstatic/-Bdynamic option
23902 if $gcc_cv_ld --help 2>/dev/null | grep -- -Bstatic > /dev/null \
23903 && $gcc_cv_ld --help 2>/dev/null | grep -- -Bdynamic > /dev/null; then
23904 gcc_cv_ld_static_dynamic=yes
23905 else
23906 case "$target" in
23907 # AIX ld uses -b flags
23908 *-*-aix4.[23]* | *-*-aix[5-9]*)
23909 gcc_cv_ld_static_dynamic=yes
23910 gcc_cv_ld_static_option="-bstatic"
23911 gcc_cv_ld_dynamic_option="-bdynamic"
23913 # HP-UX ld uses -a flags to select between shared and archive.
23914 *-*-hpux*)
23915 if test x"$gnu_ld" = xno; then
23916 gcc_cv_ld_static_dynamic=yes
23917 gcc_cv_ld_static_option="-aarchive_shared"
23918 gcc_cv_ld_dynamic_option="-adefault"
23921 # Solaris 2 ld always supports -Bstatic/-Bdynamic.
23922 *-*-solaris2*)
23923 gcc_cv_ld_static_dynamic=yes
23925 esac
23928 if test x"$gcc_cv_ld_static_dynamic" = xyes; then
23930 $as_echo "#define HAVE_LD_STATIC_DYNAMIC 1" >>confdefs.h
23933 cat >>confdefs.h <<_ACEOF
23934 #define LD_STATIC_OPTION "$gcc_cv_ld_static_option"
23935 _ACEOF
23938 cat >>confdefs.h <<_ACEOF
23939 #define LD_DYNAMIC_OPTION "$gcc_cv_ld_dynamic_option"
23940 _ACEOF
23943 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_static_dynamic" >&5
23944 $as_echo "$gcc_cv_ld_static_dynamic" >&6; }
23946 if test x"$demangler_in_ld" = xyes; then
23947 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker --demangle support" >&5
23948 $as_echo_n "checking linker --demangle support... " >&6; }
23949 gcc_cv_ld_demangle=no
23950 if test $in_tree_ld = yes; then
23951 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 \
23952 gcc_cv_ld_demangle=yes
23954 elif test x$gcc_cv_ld != x -a x"$gnu_ld" = xyes; then
23955 # Check if the GNU linker supports --demangle option
23956 if $gcc_cv_ld --help 2>/dev/null | grep no-demangle > /dev/null; then
23957 gcc_cv_ld_demangle=yes
23960 if test x"$gcc_cv_ld_demangle" = xyes; then
23962 $as_echo "#define HAVE_LD_DEMANGLE 1" >>confdefs.h
23965 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_demangle" >&5
23966 $as_echo "$gcc_cv_ld_demangle" >&6; }
23969 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker plugin support" >&5
23970 $as_echo_n "checking linker plugin support... " >&6; }
23971 gcc_cv_lto_plugin=0
23972 if test -f liblto_plugin.la; then
23973 save_ld_ver="$ld_ver"
23974 save_ld_vers_major="$ld_vers_major"
23975 save_ld_vers_minor="$ld_vers_minor"
23976 save_ld_is_gold="$ld_is_gold"
23978 ld_is_gold=no
23980 if test $in_tree_ld = yes -a x"$ORIGINAL_PLUGIN_LD_FOR_TARGET" = x"$gcc_cv_ld"; then
23981 ld_ver="GNU ld"
23982 # FIXME: ld_is_gold?
23983 ld_vers_major="$gcc_cv_gld_major_version"
23984 ld_vers_minor="$gcc_cv_gld_minor_version"
23985 else
23986 # Determine plugin linker version.
23987 # FIXME: Partial duplicate from above, generalize.
23988 ld_ver=`$ORIGINAL_PLUGIN_LD_FOR_TARGET --version 2>/dev/null | sed 1q`
23989 if echo "$ld_ver" | grep GNU > /dev/null; then
23990 if echo "$ld_ver" | grep "GNU gold" > /dev/null; then
23991 ld_is_gold=yes
23992 ld_vers=`echo $ld_ver | sed -n \
23993 -e 's,^[^)]*[ ]\([0-9][0-9]*\.[0-9][0-9]*[^)]*\)) .*$,\1,p'`
23994 else
23995 ld_vers=`echo $ld_ver | sed -n \
23996 -e 's,^.*[ ]\([0-9][0-9]*\.[0-9][0-9]*.*\)$,\1,p'`
23998 ld_vers_major=`expr "$ld_vers" : '\([0-9]*\)'`
23999 ld_vers_minor=`expr "$ld_vers" : '[0-9]*\.\([0-9]*\)'`
24003 # Determine plugin support.
24004 if echo "$ld_ver" | grep GNU > /dev/null; then
24005 # Require GNU ld or gold 2.21+ for plugin support by default.
24006 if test "$ld_vers_major" -eq 2 -a "$ld_vers_minor" -ge 21; then
24007 gcc_cv_lto_plugin=2
24008 # Allow -fuse-linker-plugin to enable plugin support in GNU gold 2.20.
24009 elif test "$ld_is_gold" = yes -a "$ld_vers_major" -eq 2 -a "$ld_vers_minor" -eq 20; then
24010 gcc_cv_lto_plugin=1
24014 ld_ver="$save_ld_ver"
24015 ld_vers_major="$save_ld_vers_major"
24016 ld_vers_minor="$save_ld_vers_minor"
24017 ld_is_gold="$save_ld_is_gold"
24020 cat >>confdefs.h <<_ACEOF
24021 #define HAVE_LTO_PLUGIN $gcc_cv_lto_plugin
24022 _ACEOF
24024 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_lto_plugin" >&5
24025 $as_echo "$gcc_cv_lto_plugin" >&6; }
24027 case "$target" in
24028 aarch64*-*-*)
24029 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for -mabi option" >&5
24030 $as_echo_n "checking assembler for -mabi option... " >&6; }
24031 if test "${gcc_cv_as_aarch64_mabi+set}" = set; then :
24032 $as_echo_n "(cached) " >&6
24033 else
24034 gcc_cv_as_aarch64_mabi=no
24035 if test x$gcc_cv_as != x; then
24036 $as_echo '.text' > conftest.s
24037 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -mabi=lp64 -o conftest.o conftest.s >&5'
24038 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
24039 (eval $ac_try) 2>&5
24040 ac_status=$?
24041 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24042 test $ac_status = 0; }; }
24043 then
24044 gcc_cv_as_aarch64_mabi=yes
24045 else
24046 echo "configure: failed program was" >&5
24047 cat conftest.s >&5
24049 rm -f conftest.o conftest.s
24052 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_aarch64_mabi" >&5
24053 $as_echo "$gcc_cv_as_aarch64_mabi" >&6; }
24055 if test x$gcc_cv_as_aarch64_mabi = xyes; then
24057 $as_echo "#define HAVE_AS_MABI_OPTION 1" >>confdefs.h
24059 else
24060 if test x$with_abi = xilp32; then
24061 as_fn_error "Assembler does not support -mabi=ilp32.\
24062 Upgrade the Assembler." "$LINENO" 5
24064 if test x"$with_multilib_list" = xdefault; then
24065 TM_MULTILIB_CONFIG=lp64
24066 else
24067 aarch64_multilibs=`echo $with_multilib_list | sed -e 's/,/ /g'`
24068 for aarch64_multilib in ${aarch64_multilibs}; do
24069 case ${aarch64_multilib} in
24070 ilp32)
24071 as_fn_error "Assembler does not support -mabi=ilp32.\
24072 Upgrade the Assembler." "$LINENO" 5
24076 esac
24077 done
24080 # Enable default workaround for AArch64 Cortex-A53 erratum 835769.
24081 # Check whether --enable-fix-cortex-a53-835769 was given.
24082 if test "${enable_fix_cortex_a53_835769+set}" = set; then :
24083 enableval=$enable_fix_cortex_a53_835769;
24084 case $enableval in
24085 yes)
24086 tm_defines="${tm_defines} TARGET_FIX_ERR_A53_835769_DEFAULT=1"
24091 as_fn_error "'$enableval' is an invalid value for --enable-fix-cortex-a53-835769.\
24092 Valid choices are 'yes' and 'no'." "$LINENO" 5
24095 esac
24101 # All TARGET_ABI_OSF targets.
24102 alpha*-*-linux* | alpha*-*-*bsd*)
24103 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for explicit relocation support" >&5
24104 $as_echo_n "checking assembler for explicit relocation support... " >&6; }
24105 if test "${gcc_cv_as_alpha_explicit_relocs+set}" = set; then :
24106 $as_echo_n "(cached) " >&6
24107 else
24108 gcc_cv_as_alpha_explicit_relocs=no
24109 if test $in_tree_gas = yes; then
24110 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 12 \) \* 1000 + 0`
24111 then gcc_cv_as_alpha_explicit_relocs=yes
24113 elif test x$gcc_cv_as != x; then
24114 $as_echo ' .set nomacro
24115 .text
24116 extbl $3, $2, $3 !lituse_bytoff!1
24117 ldq $2, a($29) !literal!1
24118 ldq $4, b($29) !literal!2
24119 ldq_u $3, 0($2) !lituse_base!1
24120 ldq $27, f($29) !literal!5
24121 jsr $26, ($27), f !lituse_jsr!5
24122 ldah $29, 0($26) !gpdisp!3
24123 lda $0, c($29) !gprel
24124 ldah $1, d($29) !gprelhigh
24125 lda $1, d($1) !gprellow
24126 lda $29, 0($29) !gpdisp!3' > conftest.s
24127 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
24128 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
24129 (eval $ac_try) 2>&5
24130 ac_status=$?
24131 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24132 test $ac_status = 0; }; }
24133 then
24134 gcc_cv_as_alpha_explicit_relocs=yes
24135 else
24136 echo "configure: failed program was" >&5
24137 cat conftest.s >&5
24139 rm -f conftest.o conftest.s
24142 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_alpha_explicit_relocs" >&5
24143 $as_echo "$gcc_cv_as_alpha_explicit_relocs" >&6; }
24144 if test $gcc_cv_as_alpha_explicit_relocs = yes; then
24146 $as_echo "#define HAVE_AS_EXPLICIT_RELOCS 1" >>confdefs.h
24149 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for jsrdirect relocation support" >&5
24150 $as_echo_n "checking assembler for jsrdirect relocation support... " >&6; }
24151 if test "${gcc_cv_as_alpha_jsrdirect_relocs+set}" = set; then :
24152 $as_echo_n "(cached) " >&6
24153 else
24154 gcc_cv_as_alpha_jsrdirect_relocs=no
24155 if test $in_tree_gas = yes; then
24156 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 16 \) \* 1000 + 90`
24157 then gcc_cv_as_alpha_jsrdirect_relocs=yes
24159 elif test x$gcc_cv_as != x; then
24160 $as_echo ' .set nomacro
24161 .text
24162 ldq $27, a($29) !literal!1
24163 jsr $26, ($27), a !lituse_jsrdirect!1' > conftest.s
24164 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
24165 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
24166 (eval $ac_try) 2>&5
24167 ac_status=$?
24168 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24169 test $ac_status = 0; }; }
24170 then
24171 gcc_cv_as_alpha_jsrdirect_relocs=yes
24172 else
24173 echo "configure: failed program was" >&5
24174 cat conftest.s >&5
24176 rm -f conftest.o conftest.s
24179 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_alpha_jsrdirect_relocs" >&5
24180 $as_echo "$gcc_cv_as_alpha_jsrdirect_relocs" >&6; }
24181 if test $gcc_cv_as_alpha_jsrdirect_relocs = yes; then
24183 $as_echo "#define HAVE_AS_JSRDIRECT_RELOCS 1" >>confdefs.h
24188 cris-*-*)
24189 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for -no-mul-bug-abort option" >&5
24190 $as_echo_n "checking assembler for -no-mul-bug-abort option... " >&6; }
24191 if test "${gcc_cv_as_cris_no_mul_bug+set}" = set; then :
24192 $as_echo_n "(cached) " >&6
24193 else
24194 gcc_cv_as_cris_no_mul_bug=no
24195 if test $in_tree_gas = yes; then
24196 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 15 \) \* 1000 + 91`
24197 then gcc_cv_as_cris_no_mul_bug=yes
24199 elif test x$gcc_cv_as != x; then
24200 $as_echo '.text' > conftest.s
24201 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -no-mul-bug-abort -o conftest.o conftest.s >&5'
24202 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
24203 (eval $ac_try) 2>&5
24204 ac_status=$?
24205 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24206 test $ac_status = 0; }; }
24207 then
24208 gcc_cv_as_cris_no_mul_bug=yes
24209 else
24210 echo "configure: failed program was" >&5
24211 cat conftest.s >&5
24213 rm -f conftest.o conftest.s
24216 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_cris_no_mul_bug" >&5
24217 $as_echo "$gcc_cv_as_cris_no_mul_bug" >&6; }
24218 if test $gcc_cv_as_cris_no_mul_bug = yes; then
24220 $as_echo "#define HAVE_AS_NO_MUL_BUG_ABORT_OPTION 1" >>confdefs.h
24225 sparc*-*-*)
24226 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .register" >&5
24227 $as_echo_n "checking assembler for .register... " >&6; }
24228 if test "${gcc_cv_as_sparc_register_op+set}" = set; then :
24229 $as_echo_n "(cached) " >&6
24230 else
24231 gcc_cv_as_sparc_register_op=no
24232 if test x$gcc_cv_as != x; then
24233 $as_echo '.register %g2, #scratch' > conftest.s
24234 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
24235 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
24236 (eval $ac_try) 2>&5
24237 ac_status=$?
24238 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24239 test $ac_status = 0; }; }
24240 then
24241 gcc_cv_as_sparc_register_op=yes
24242 else
24243 echo "configure: failed program was" >&5
24244 cat conftest.s >&5
24246 rm -f conftest.o conftest.s
24249 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_sparc_register_op" >&5
24250 $as_echo "$gcc_cv_as_sparc_register_op" >&6; }
24251 if test $gcc_cv_as_sparc_register_op = yes; then
24253 $as_echo "#define HAVE_AS_REGISTER_PSEUDO_OP 1" >>confdefs.h
24257 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for #nobits" >&5
24258 $as_echo_n "checking assembler for #nobits... " >&6; }
24259 if test "${gcc_cv_as_sparc_nobits+set}" = set; then :
24260 $as_echo_n "(cached) " >&6
24261 else
24262 gcc_cv_as_sparc_nobits=no
24263 if test x$gcc_cv_as != x; then
24264 $as_echo '.section "nobits",#alloc,#write,#nobits
24265 .section "progbits",#alloc,#write,#progbits' > conftest.s
24266 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
24267 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
24268 (eval $ac_try) 2>&5
24269 ac_status=$?
24270 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24271 test $ac_status = 0; }; }
24272 then
24273 gcc_cv_as_sparc_nobits=yes
24274 else
24275 echo "configure: failed program was" >&5
24276 cat conftest.s >&5
24278 rm -f conftest.o conftest.s
24281 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_sparc_nobits" >&5
24282 $as_echo "$gcc_cv_as_sparc_nobits" >&6; }
24285 cat >>confdefs.h <<_ACEOF
24286 #define HAVE_AS_SPARC_NOBITS `if test $gcc_cv_as_sparc_nobits = yes; then echo 1; else echo 0; fi`
24287 _ACEOF
24290 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for -relax option" >&5
24291 $as_echo_n "checking assembler for -relax option... " >&6; }
24292 if test "${gcc_cv_as_sparc_relax+set}" = set; then :
24293 $as_echo_n "(cached) " >&6
24294 else
24295 gcc_cv_as_sparc_relax=no
24296 if test x$gcc_cv_as != x; then
24297 $as_echo '.text' > conftest.s
24298 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -relax -o conftest.o conftest.s >&5'
24299 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
24300 (eval $ac_try) 2>&5
24301 ac_status=$?
24302 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24303 test $ac_status = 0; }; }
24304 then
24305 gcc_cv_as_sparc_relax=yes
24306 else
24307 echo "configure: failed program was" >&5
24308 cat conftest.s >&5
24310 rm -f conftest.o conftest.s
24313 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_sparc_relax" >&5
24314 $as_echo "$gcc_cv_as_sparc_relax" >&6; }
24315 if test $gcc_cv_as_sparc_relax = yes; then
24317 $as_echo "#define HAVE_AS_RELAX_OPTION 1" >>confdefs.h
24321 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for GOTDATA_OP relocs" >&5
24322 $as_echo_n "checking assembler for GOTDATA_OP relocs... " >&6; }
24323 if test "${gcc_cv_as_sparc_gotdata_op+set}" = set; then :
24324 $as_echo_n "(cached) " >&6
24325 else
24326 gcc_cv_as_sparc_gotdata_op=no
24327 if test x$gcc_cv_as != x; then
24328 $as_echo '.text
24329 .align 4
24330 foo:
24332 bar:
24333 sethi %gdop_hix22(foo), %g1
24334 xor %g1, %gdop_lox10(foo), %g1
24335 ld [%l7 + %g1], %g2, %gdop(foo)' > conftest.s
24336 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -K PIC -o conftest.o conftest.s >&5'
24337 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
24338 (eval $ac_try) 2>&5
24339 ac_status=$?
24340 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24341 test $ac_status = 0; }; }
24342 then
24343 if test x$gcc_cv_ld != x \
24344 && $gcc_cv_ld -o conftest conftest.o -G > /dev/null 2>&1; then
24345 if test x$gcc_cv_objdump != x; then
24346 if $gcc_cv_objdump -s -j .text conftest 2> /dev/null \
24347 | grep ' 03000004 82186004 c405c001'> /dev/null 2>&1; then
24348 gcc_cv_as_sparc_gotdata_op=no
24349 else
24350 gcc_cv_as_sparc_gotdata_op=yes
24354 rm -f conftest
24355 else
24356 echo "configure: failed program was" >&5
24357 cat conftest.s >&5
24359 rm -f conftest.o conftest.s
24362 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_sparc_gotdata_op" >&5
24363 $as_echo "$gcc_cv_as_sparc_gotdata_op" >&6; }
24364 if test $gcc_cv_as_sparc_gotdata_op = yes; then
24366 $as_echo "#define HAVE_AS_SPARC_GOTDATA_OP 1" >>confdefs.h
24370 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for unaligned pcrel relocs" >&5
24371 $as_echo_n "checking assembler for unaligned pcrel relocs... " >&6; }
24372 if test "${gcc_cv_as_sparc_ua_pcrel+set}" = set; then :
24373 $as_echo_n "(cached) " >&6
24374 else
24375 gcc_cv_as_sparc_ua_pcrel=no
24376 if test x$gcc_cv_as != x; then
24377 $as_echo '.text
24378 foo:
24380 .data
24381 .align 4
24382 .byte 0
24383 .uaword %r_disp32(foo)' > conftest.s
24384 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -K PIC -o conftest.o conftest.s >&5'
24385 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
24386 (eval $ac_try) 2>&5
24387 ac_status=$?
24388 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24389 test $ac_status = 0; }; }
24390 then
24391 if test x$gcc_cv_ld != x \
24392 && $gcc_cv_ld -o conftest conftest.o -G > /dev/null 2>&1; then
24393 gcc_cv_as_sparc_ua_pcrel=yes
24395 rm -f conftest
24396 else
24397 echo "configure: failed program was" >&5
24398 cat conftest.s >&5
24400 rm -f conftest.o conftest.s
24403 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_sparc_ua_pcrel" >&5
24404 $as_echo "$gcc_cv_as_sparc_ua_pcrel" >&6; }
24405 if test $gcc_cv_as_sparc_ua_pcrel = yes; then
24407 $as_echo "#define HAVE_AS_SPARC_UA_PCREL 1" >>confdefs.h
24410 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for unaligned pcrel relocs against hidden symbols" >&5
24411 $as_echo_n "checking assembler for unaligned pcrel relocs against hidden symbols... " >&6; }
24412 if test "${gcc_cv_as_sparc_ua_pcrel_hidden+set}" = set; then :
24413 $as_echo_n "(cached) " >&6
24414 else
24415 gcc_cv_as_sparc_ua_pcrel_hidden=no
24416 if test x$gcc_cv_as != x; then
24417 $as_echo '.data
24418 .align 4
24419 .byte 0x31
24420 .uaword %r_disp32(foo)
24421 .byte 0x32, 0x33, 0x34
24422 .global foo
24423 .hidden foo
24424 foo:
24425 .skip 4' > conftest.s
24426 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -K PIC -o conftest.o conftest.s >&5'
24427 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
24428 (eval $ac_try) 2>&5
24429 ac_status=$?
24430 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24431 test $ac_status = 0; }; }
24432 then
24433 if test x$gcc_cv_ld != x && test x$gcc_cv_objdump != x \
24434 && $gcc_cv_ld -o conftest conftest.o -G > /dev/null 2>&1 \
24435 && $gcc_cv_objdump -s -j .data conftest 2> /dev/null \
24436 | grep ' 31000000 07323334' > /dev/null 2>&1; then
24437 if $gcc_cv_objdump -R conftest 2> /dev/null \
24438 | grep 'DISP32' > /dev/null 2>&1; then
24440 else
24441 gcc_cv_as_sparc_ua_pcrel_hidden=yes
24444 rm -f conftest
24445 else
24446 echo "configure: failed program was" >&5
24447 cat conftest.s >&5
24449 rm -f conftest.o conftest.s
24452 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_sparc_ua_pcrel_hidden" >&5
24453 $as_echo "$gcc_cv_as_sparc_ua_pcrel_hidden" >&6; }
24454 if test $gcc_cv_as_sparc_ua_pcrel_hidden = yes; then
24456 $as_echo "#define HAVE_AS_SPARC_UA_PCREL_HIDDEN 1" >>confdefs.h
24460 fi # unaligned pcrel relocs
24462 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for offsetable %lo()" >&5
24463 $as_echo_n "checking assembler for offsetable %lo()... " >&6; }
24464 if test "${gcc_cv_as_sparc_offsetable_lo10+set}" = set; then :
24465 $as_echo_n "(cached) " >&6
24466 else
24467 gcc_cv_as_sparc_offsetable_lo10=no
24468 if test x$gcc_cv_as != x; then
24469 $as_echo '.text
24470 or %g1, %lo(ab) + 12, %g1
24471 or %g1, %lo(ab + 12), %g1' > conftest.s
24472 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -xarch=v9 -o conftest.o conftest.s >&5'
24473 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
24474 (eval $ac_try) 2>&5
24475 ac_status=$?
24476 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24477 test $ac_status = 0; }; }
24478 then
24479 if test x$gcc_cv_objdump != x \
24480 && $gcc_cv_objdump -s -j .text conftest.o 2> /dev/null \
24481 | grep ' 82106000 82106000' > /dev/null 2>&1; then
24482 gcc_cv_as_sparc_offsetable_lo10=yes
24484 else
24485 echo "configure: failed program was" >&5
24486 cat conftest.s >&5
24488 rm -f conftest.o conftest.s
24491 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_sparc_offsetable_lo10" >&5
24492 $as_echo "$gcc_cv_as_sparc_offsetable_lo10" >&6; }
24493 if test $gcc_cv_as_sparc_offsetable_lo10 = yes; then
24495 $as_echo "#define HAVE_AS_OFFSETABLE_LO10 1" >>confdefs.h
24499 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for FMAF, HPC, and VIS 3.0 instructions" >&5
24500 $as_echo_n "checking assembler for FMAF, HPC, and VIS 3.0 instructions... " >&6; }
24501 if test "${gcc_cv_as_sparc_fmaf+set}" = set; then :
24502 $as_echo_n "(cached) " >&6
24503 else
24504 gcc_cv_as_sparc_fmaf=no
24505 if test x$gcc_cv_as != x; then
24506 $as_echo '.text
24507 .register %g2, #scratch
24508 .register %g3, #scratch
24509 .align 4
24510 fmaddd %f0, %f2, %f4, %f6
24511 addxccc %g1, %g2, %g3
24512 fsrl32 %f2, %f4, %f8
24513 fnaddd %f10, %f12, %f14' > conftest.s
24514 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -xarch=v9d -o conftest.o conftest.s >&5'
24515 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
24516 (eval $ac_try) 2>&5
24517 ac_status=$?
24518 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24519 test $ac_status = 0; }; }
24520 then
24521 gcc_cv_as_sparc_fmaf=yes
24522 else
24523 echo "configure: failed program was" >&5
24524 cat conftest.s >&5
24526 rm -f conftest.o conftest.s
24529 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_sparc_fmaf" >&5
24530 $as_echo "$gcc_cv_as_sparc_fmaf" >&6; }
24531 if test $gcc_cv_as_sparc_fmaf = yes; then
24533 $as_echo "#define HAVE_AS_FMAF_HPC_VIS3 1" >>confdefs.h
24537 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for SPARC4 instructions" >&5
24538 $as_echo_n "checking assembler for SPARC4 instructions... " >&6; }
24539 if test "${gcc_cv_as_sparc_sparc4+set}" = set; then :
24540 $as_echo_n "(cached) " >&6
24541 else
24542 gcc_cv_as_sparc_sparc4=no
24543 if test x$gcc_cv_as != x; then
24544 $as_echo '.text
24545 .register %g2, #scratch
24546 .register %g3, #scratch
24547 .align 4
24548 cxbe %g2, %g3, 1f
24549 1: cwbneg %g2, %g3, 1f
24550 1: sha1
24552 aes_kexpand0 %f4, %f6, %f8
24553 des_round %f38, %f40, %f42, %f44
24554 camellia_f %f54, %f56, %f58, %f60
24555 kasumi_fi_xor %f46, %f48, %f50, %f52' > conftest.s
24556 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -xarch=sparc4 -o conftest.o conftest.s >&5'
24557 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
24558 (eval $ac_try) 2>&5
24559 ac_status=$?
24560 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24561 test $ac_status = 0; }; }
24562 then
24563 gcc_cv_as_sparc_sparc4=yes
24564 else
24565 echo "configure: failed program was" >&5
24566 cat conftest.s >&5
24568 rm -f conftest.o conftest.s
24571 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_sparc_sparc4" >&5
24572 $as_echo "$gcc_cv_as_sparc_sparc4" >&6; }
24573 if test $gcc_cv_as_sparc_sparc4 = yes; then
24575 $as_echo "#define HAVE_AS_SPARC4 1" >>confdefs.h
24579 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for LEON instructions" >&5
24580 $as_echo_n "checking assembler for LEON instructions... " >&6; }
24581 if test "${gcc_cv_as_sparc_leon+set}" = set; then :
24582 $as_echo_n "(cached) " >&6
24583 else
24584 gcc_cv_as_sparc_leon=no
24585 if test x$gcc_cv_as != x; then
24586 $as_echo '.text
24587 .register %g2, #scratch
24588 .register %g3, #scratch
24589 .align 4
24590 smac %g2, %g3, %g1
24591 umac %g2, %g3, %g1
24592 casa [%g2] 0xb, %g3, %g1' > conftest.s
24593 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -Aleon -o conftest.o conftest.s >&5'
24594 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
24595 (eval $ac_try) 2>&5
24596 ac_status=$?
24597 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24598 test $ac_status = 0; }; }
24599 then
24600 gcc_cv_as_sparc_leon=yes
24601 else
24602 echo "configure: failed program was" >&5
24603 cat conftest.s >&5
24605 rm -f conftest.o conftest.s
24608 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_sparc_leon" >&5
24609 $as_echo "$gcc_cv_as_sparc_leon" >&6; }
24610 if test $gcc_cv_as_sparc_leon = yes; then
24612 $as_echo "#define HAVE_AS_LEON 1" >>confdefs.h
24617 i[34567]86-*-* | x86_64-*-*)
24618 case $target_os in
24619 cygwin*)
24620 # Full C++ conformance when using a shared libstdc++-v3 requires some
24621 # support from the Cygwin DLL, which in more recent versions exports
24622 # wrappers to aid in interposing and redirecting operators new, delete,
24623 # etc., as per n2800 #17.6.4.6 [replacement.functions]. Check if we
24624 # are configuring for a version of Cygwin that exports the wrappers.
24625 if test x$host = x$target && test x$host_cpu = xi686; then
24626 ac_fn_c_check_func "$LINENO" "__wrap__Znaj" "ac_cv_func___wrap__Znaj"
24627 if test "x$ac_cv_func___wrap__Znaj" = x""yes; then :
24628 gcc_ac_cygwin_dll_wrappers=yes
24629 else
24630 gcc_ac_cygwin_dll_wrappers=no
24633 else
24634 # Can't check presence of libc functions during cross-compile, so
24635 # we just have to assume we're building for an up-to-date target.
24636 gcc_ac_cygwin_dll_wrappers=yes
24639 cat >>confdefs.h <<_ACEOF
24640 #define USE_CYGWIN_LIBSTDCXX_WRAPPERS `if test $gcc_ac_cygwin_dll_wrappers = yes; then echo 1; else echo 0; fi`
24641 _ACEOF
24643 esac
24644 case $target_os in
24645 cygwin* | pe | mingw32* | interix*)
24646 # Recent binutils allows the three-operand form of ".comm" on PE. This
24647 # definition is used unconditionally to initialise the default state of
24648 # the target option variable that governs usage of the feature.
24649 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .comm with alignment" >&5
24650 $as_echo_n "checking assembler for .comm with alignment... " >&6; }
24651 if test "${gcc_cv_as_comm_has_align+set}" = set; then :
24652 $as_echo_n "(cached) " >&6
24653 else
24654 gcc_cv_as_comm_has_align=no
24655 if test $in_tree_gas = yes; then
24656 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 19 \) \* 1000 + 52`
24657 then gcc_cv_as_comm_has_align=yes
24659 elif test x$gcc_cv_as != x; then
24660 $as_echo '.comm foo,1,32' > conftest.s
24661 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
24662 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
24663 (eval $ac_try) 2>&5
24664 ac_status=$?
24665 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24666 test $ac_status = 0; }; }
24667 then
24668 gcc_cv_as_comm_has_align=yes
24669 else
24670 echo "configure: failed program was" >&5
24671 cat conftest.s >&5
24673 rm -f conftest.o conftest.s
24676 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_comm_has_align" >&5
24677 $as_echo "$gcc_cv_as_comm_has_align" >&6; }
24680 cat >>confdefs.h <<_ACEOF
24681 #define HAVE_GAS_ALIGNED_COMM `if test $gcc_cv_as_comm_has_align = yes; then echo 1; else echo 0; fi`
24682 _ACEOF
24684 # Used for DWARF 2 in PE
24685 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .secrel32 relocs" >&5
24686 $as_echo_n "checking assembler for .secrel32 relocs... " >&6; }
24687 if test "${gcc_cv_as_ix86_pe_secrel32+set}" = set; then :
24688 $as_echo_n "(cached) " >&6
24689 else
24690 gcc_cv_as_ix86_pe_secrel32=no
24691 if test $in_tree_gas = yes; then
24692 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 15 \) \* 1000 + 91`
24693 then gcc_cv_as_ix86_pe_secrel32=yes
24695 elif test x$gcc_cv_as != x; then
24696 $as_echo '.text
24697 foo: nop
24698 .data
24699 .secrel32 foo' > conftest.s
24700 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
24701 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
24702 (eval $ac_try) 2>&5
24703 ac_status=$?
24704 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24705 test $ac_status = 0; }; }
24706 then
24707 if test x$gcc_cv_ld != x \
24708 && $gcc_cv_ld -o conftest conftest.o > /dev/null 2>&1; then
24709 gcc_cv_as_ix86_pe_secrel32=yes
24711 rm -f conftest
24712 else
24713 echo "configure: failed program was" >&5
24714 cat conftest.s >&5
24716 rm -f conftest.o conftest.s
24719 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_ix86_pe_secrel32" >&5
24720 $as_echo "$gcc_cv_as_ix86_pe_secrel32" >&6; }
24721 if test $gcc_cv_as_ix86_pe_secrel32 = yes; then
24723 $as_echo "#define HAVE_GAS_PE_SECREL32_RELOC 1" >>confdefs.h
24726 # Test if the assembler supports the extended form of the .section
24727 # directive that specifies section alignment. LTO support uses this,
24728 # but normally only after installation, so we warn but don't fail the
24729 # configure if LTO is enabled but the assembler does not support it.
24730 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .section with alignment" >&5
24731 $as_echo_n "checking assembler for .section with alignment... " >&6; }
24732 if test "${gcc_cv_as_section_has_align+set}" = set; then :
24733 $as_echo_n "(cached) " >&6
24734 else
24735 gcc_cv_as_section_has_align=no
24736 if test $in_tree_gas = yes; then
24737 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 20 \) \* 1000 + 1`
24738 then gcc_cv_as_section_has_align=yes
24740 elif test x$gcc_cv_as != x; then
24741 $as_echo '.section lto_test,"dr0"' > conftest.s
24742 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -fatal-warnings -o conftest.o conftest.s >&5'
24743 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
24744 (eval $ac_try) 2>&5
24745 ac_status=$?
24746 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24747 test $ac_status = 0; }; }
24748 then
24749 gcc_cv_as_section_has_align=yes
24750 else
24751 echo "configure: failed program was" >&5
24752 cat conftest.s >&5
24754 rm -f conftest.o conftest.s
24757 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_section_has_align" >&5
24758 $as_echo "$gcc_cv_as_section_has_align" >&6; }
24760 if test x$gcc_cv_as_section_has_align != xyes; then
24761 case ",$enable_languages," in
24762 *,lto,*)
24763 { $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
24764 $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;}
24766 esac
24769 esac
24771 # Test if the assembler supports the section flag 'e' for specifying
24772 # an excluded section.
24773 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .section with e" >&5
24774 $as_echo_n "checking assembler for .section with e... " >&6; }
24775 if test "${gcc_cv_as_section_has_e+set}" = set; then :
24776 $as_echo_n "(cached) " >&6
24777 else
24778 gcc_cv_as_section_has_e=no
24779 if test $in_tree_gas = yes; then
24780 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 22 \) \* 1000 + 51`
24781 then gcc_cv_as_section_has_e=yes
24783 elif test x$gcc_cv_as != x; then
24784 $as_echo '.section foo1,"e"
24785 .byte 0,0,0,0' > conftest.s
24786 if { ac_try='$gcc_cv_as $gcc_cv_as_flags --fatal-warnings -o conftest.o conftest.s >&5'
24787 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
24788 (eval $ac_try) 2>&5
24789 ac_status=$?
24790 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24791 test $ac_status = 0; }; }
24792 then
24793 gcc_cv_as_section_has_e=yes
24794 else
24795 echo "configure: failed program was" >&5
24796 cat conftest.s >&5
24798 rm -f conftest.o conftest.s
24801 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_section_has_e" >&5
24802 $as_echo "$gcc_cv_as_section_has_e" >&6; }
24805 cat >>confdefs.h <<_ACEOF
24806 #define HAVE_GAS_SECTION_EXCLUDE `if test $gcc_cv_as_section_has_e = yes; then echo 1; else echo 0; fi`
24807 _ACEOF
24810 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for filds and fists mnemonics" >&5
24811 $as_echo_n "checking assembler for filds and fists mnemonics... " >&6; }
24812 if test "${gcc_cv_as_ix86_filds+set}" = set; then :
24813 $as_echo_n "(cached) " >&6
24814 else
24815 gcc_cv_as_ix86_filds=no
24816 if test x$gcc_cv_as != x; then
24817 $as_echo 'filds mem; fists mem' > conftest.s
24818 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
24819 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
24820 (eval $ac_try) 2>&5
24821 ac_status=$?
24822 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24823 test $ac_status = 0; }; }
24824 then
24825 gcc_cv_as_ix86_filds=yes
24826 else
24827 echo "configure: failed program was" >&5
24828 cat conftest.s >&5
24830 rm -f conftest.o conftest.s
24833 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_ix86_filds" >&5
24834 $as_echo "$gcc_cv_as_ix86_filds" >&6; }
24835 if test $gcc_cv_as_ix86_filds = yes; then
24837 $as_echo "#define HAVE_AS_IX86_FILDS 1" >>confdefs.h
24841 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for fildq and fistpq mnemonics" >&5
24842 $as_echo_n "checking assembler for fildq and fistpq mnemonics... " >&6; }
24843 if test "${gcc_cv_as_ix86_fildq+set}" = set; then :
24844 $as_echo_n "(cached) " >&6
24845 else
24846 gcc_cv_as_ix86_fildq=no
24847 if test x$gcc_cv_as != x; then
24848 $as_echo 'fildq mem; fistpq mem' > conftest.s
24849 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
24850 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
24851 (eval $ac_try) 2>&5
24852 ac_status=$?
24853 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24854 test $ac_status = 0; }; }
24855 then
24856 gcc_cv_as_ix86_fildq=yes
24857 else
24858 echo "configure: failed program was" >&5
24859 cat conftest.s >&5
24861 rm -f conftest.o conftest.s
24864 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_ix86_fildq" >&5
24865 $as_echo "$gcc_cv_as_ix86_fildq" >&6; }
24866 if test $gcc_cv_as_ix86_fildq = yes; then
24868 $as_echo "#define HAVE_AS_IX86_FILDQ 1" >>confdefs.h
24872 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for cmov syntax" >&5
24873 $as_echo_n "checking assembler for cmov syntax... " >&6; }
24874 if test "${gcc_cv_as_ix86_cmov_sun_syntax+set}" = set; then :
24875 $as_echo_n "(cached) " >&6
24876 else
24877 gcc_cv_as_ix86_cmov_sun_syntax=no
24878 if test x$gcc_cv_as != x; then
24879 $as_echo 'cmovl.l %edx, %eax' > conftest.s
24880 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
24881 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
24882 (eval $ac_try) 2>&5
24883 ac_status=$?
24884 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24885 test $ac_status = 0; }; }
24886 then
24887 gcc_cv_as_ix86_cmov_sun_syntax=yes
24888 else
24889 echo "configure: failed program was" >&5
24890 cat conftest.s >&5
24892 rm -f conftest.o conftest.s
24895 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_ix86_cmov_sun_syntax" >&5
24896 $as_echo "$gcc_cv_as_ix86_cmov_sun_syntax" >&6; }
24897 if test $gcc_cv_as_ix86_cmov_sun_syntax = yes; then
24899 $as_echo "#define HAVE_AS_IX86_CMOV_SUN_SYNTAX 1" >>confdefs.h
24903 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for ffreep mnemonic" >&5
24904 $as_echo_n "checking assembler for ffreep mnemonic... " >&6; }
24905 if test "${gcc_cv_as_ix86_ffreep+set}" = set; then :
24906 $as_echo_n "(cached) " >&6
24907 else
24908 gcc_cv_as_ix86_ffreep=no
24909 if test x$gcc_cv_as != x; then
24910 $as_echo 'ffreep %st(1)' > conftest.s
24911 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
24912 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
24913 (eval $ac_try) 2>&5
24914 ac_status=$?
24915 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24916 test $ac_status = 0; }; }
24917 then
24918 gcc_cv_as_ix86_ffreep=yes
24919 else
24920 echo "configure: failed program was" >&5
24921 cat conftest.s >&5
24923 rm -f conftest.o conftest.s
24926 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_ix86_ffreep" >&5
24927 $as_echo "$gcc_cv_as_ix86_ffreep" >&6; }
24928 if test $gcc_cv_as_ix86_ffreep = yes; then
24930 $as_echo "#define HAVE_AS_IX86_FFREEP 1" >>confdefs.h
24934 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .quad directive" >&5
24935 $as_echo_n "checking assembler for .quad directive... " >&6; }
24936 if test "${gcc_cv_as_ix86_quad+set}" = set; then :
24937 $as_echo_n "(cached) " >&6
24938 else
24939 gcc_cv_as_ix86_quad=no
24940 if test x$gcc_cv_as != x; then
24941 $as_echo '.quad 0' > conftest.s
24942 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
24943 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
24944 (eval $ac_try) 2>&5
24945 ac_status=$?
24946 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24947 test $ac_status = 0; }; }
24948 then
24949 gcc_cv_as_ix86_quad=yes
24950 else
24951 echo "configure: failed program was" >&5
24952 cat conftest.s >&5
24954 rm -f conftest.o conftest.s
24957 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_ix86_quad" >&5
24958 $as_echo "$gcc_cv_as_ix86_quad" >&6; }
24959 if test $gcc_cv_as_ix86_quad = yes; then
24961 $as_echo "#define HAVE_AS_IX86_QUAD 1" >>confdefs.h
24965 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for sahf mnemonic" >&5
24966 $as_echo_n "checking assembler for sahf mnemonic... " >&6; }
24967 if test "${gcc_cv_as_ix86_sahf+set}" = set; then :
24968 $as_echo_n "(cached) " >&6
24969 else
24970 gcc_cv_as_ix86_sahf=no
24971 if test x$gcc_cv_as != x; then
24972 $as_echo '.code64
24973 sahf' > conftest.s
24974 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
24975 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
24976 (eval $ac_try) 2>&5
24977 ac_status=$?
24978 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24979 test $ac_status = 0; }; }
24980 then
24981 gcc_cv_as_ix86_sahf=yes
24982 else
24983 echo "configure: failed program was" >&5
24984 cat conftest.s >&5
24986 rm -f conftest.o conftest.s
24989 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_ix86_sahf" >&5
24990 $as_echo "$gcc_cv_as_ix86_sahf" >&6; }
24991 if test $gcc_cv_as_ix86_sahf = yes; then
24993 $as_echo "#define HAVE_AS_IX86_SAHF 1" >>confdefs.h
24997 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for interunit movq mnemonic" >&5
24998 $as_echo_n "checking assembler for interunit movq mnemonic... " >&6; }
24999 if test "${gcc_cv_as_ix86_interunit_movq+set}" = set; then :
25000 $as_echo_n "(cached) " >&6
25001 else
25002 gcc_cv_as_ix86_interunit_movq=no
25003 if test x$gcc_cv_as != x; then
25004 $as_echo '.code64
25005 movq %mm0, %rax
25006 movq %rax, %xmm0' > conftest.s
25007 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
25008 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
25009 (eval $ac_try) 2>&5
25010 ac_status=$?
25011 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25012 test $ac_status = 0; }; }
25013 then
25014 gcc_cv_as_ix86_interunit_movq=yes
25015 else
25016 echo "configure: failed program was" >&5
25017 cat conftest.s >&5
25019 rm -f conftest.o conftest.s
25022 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_ix86_interunit_movq" >&5
25023 $as_echo "$gcc_cv_as_ix86_interunit_movq" >&6; }
25026 cat >>confdefs.h <<_ACEOF
25027 #define HAVE_AS_IX86_INTERUNIT_MOVQ `if test $gcc_cv_as_ix86_interunit_movq = yes; then echo 1; else echo 0; fi`
25028 _ACEOF
25031 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for hle prefixes" >&5
25032 $as_echo_n "checking assembler for hle prefixes... " >&6; }
25033 if test "${gcc_cv_as_ix86_hle+set}" = set; then :
25034 $as_echo_n "(cached) " >&6
25035 else
25036 gcc_cv_as_ix86_hle=no
25037 if test x$gcc_cv_as != x; then
25038 $as_echo 'lock xacquire cmpxchg %esi, (%ecx)' > conftest.s
25039 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
25040 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
25041 (eval $ac_try) 2>&5
25042 ac_status=$?
25043 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25044 test $ac_status = 0; }; }
25045 then
25046 gcc_cv_as_ix86_hle=yes
25047 else
25048 echo "configure: failed program was" >&5
25049 cat conftest.s >&5
25051 rm -f conftest.o conftest.s
25054 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_ix86_hle" >&5
25055 $as_echo "$gcc_cv_as_ix86_hle" >&6; }
25056 if test $gcc_cv_as_ix86_hle = yes; then
25058 $as_echo "#define HAVE_AS_IX86_HLE 1" >>confdefs.h
25062 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for swap suffix" >&5
25063 $as_echo_n "checking assembler for swap suffix... " >&6; }
25064 if test "${gcc_cv_as_ix86_swap+set}" = set; then :
25065 $as_echo_n "(cached) " >&6
25066 else
25067 gcc_cv_as_ix86_swap=no
25068 if test x$gcc_cv_as != x; then
25069 $as_echo 'movl.s %esp, %ebp' > conftest.s
25070 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
25071 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
25072 (eval $ac_try) 2>&5
25073 ac_status=$?
25074 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25075 test $ac_status = 0; }; }
25076 then
25077 gcc_cv_as_ix86_swap=yes
25078 else
25079 echo "configure: failed program was" >&5
25080 cat conftest.s >&5
25082 rm -f conftest.o conftest.s
25085 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_ix86_swap" >&5
25086 $as_echo "$gcc_cv_as_ix86_swap" >&6; }
25087 if test $gcc_cv_as_ix86_swap = yes; then
25089 $as_echo "#define HAVE_AS_IX86_SWAP 1" >>confdefs.h
25093 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for different section symbol subtraction" >&5
25094 $as_echo_n "checking assembler for different section symbol subtraction... " >&6; }
25095 if test "${gcc_cv_as_ix86_diff_sect_delta+set}" = set; then :
25096 $as_echo_n "(cached) " >&6
25097 else
25098 gcc_cv_as_ix86_diff_sect_delta=no
25099 if test x$gcc_cv_as != x; then
25100 $as_echo '.section .rodata
25101 .L1:
25102 .long .L2-.L1
25103 .long .L3-.L1
25104 .text
25105 .L3: nop
25106 .L2: nop' > conftest.s
25107 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
25108 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
25109 (eval $ac_try) 2>&5
25110 ac_status=$?
25111 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25112 test $ac_status = 0; }; }
25113 then
25114 gcc_cv_as_ix86_diff_sect_delta=yes
25115 else
25116 echo "configure: failed program was" >&5
25117 cat conftest.s >&5
25119 rm -f conftest.o conftest.s
25122 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_ix86_diff_sect_delta" >&5
25123 $as_echo "$gcc_cv_as_ix86_diff_sect_delta" >&6; }
25124 if test $gcc_cv_as_ix86_diff_sect_delta = yes; then
25126 $as_echo "#define HAVE_AS_IX86_DIFF_SECT_DELTA 1" >>confdefs.h
25130 # These two are used unconditionally by i386.[ch]; it is to be defined
25131 # to 1 if the feature is present, 0 otherwise.
25132 as_ix86_gotoff_in_data_opt=
25133 if test x$gas = xyes; then
25134 as_ix86_gotoff_in_data_opt="--32"
25136 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for GOTOFF in data" >&5
25137 $as_echo_n "checking assembler for GOTOFF in data... " >&6; }
25138 if test "${gcc_cv_as_ix86_gotoff_in_data+set}" = set; then :
25139 $as_echo_n "(cached) " >&6
25140 else
25141 gcc_cv_as_ix86_gotoff_in_data=no
25142 if test $in_tree_gas = yes; then
25143 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 11 \) \* 1000 + 0`
25144 then gcc_cv_as_ix86_gotoff_in_data=yes
25146 elif test x$gcc_cv_as != x; then
25147 $as_echo ' .text
25148 .L0:
25150 .data
25151 .long .L0@GOTOFF' > conftest.s
25152 if { ac_try='$gcc_cv_as $gcc_cv_as_flags $as_ix86_gotoff_in_data_opt -o conftest.o conftest.s >&5'
25153 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
25154 (eval $ac_try) 2>&5
25155 ac_status=$?
25156 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25157 test $ac_status = 0; }; }
25158 then
25159 gcc_cv_as_ix86_gotoff_in_data=yes
25160 else
25161 echo "configure: failed program was" >&5
25162 cat conftest.s >&5
25164 rm -f conftest.o conftest.s
25167 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_ix86_gotoff_in_data" >&5
25168 $as_echo "$gcc_cv_as_ix86_gotoff_in_data" >&6; }
25171 cat >>confdefs.h <<_ACEOF
25172 #define HAVE_AS_GOTOFF_IN_DATA `if test $gcc_cv_as_ix86_gotoff_in_data = yes; then echo 1; else echo 0; fi`
25173 _ACEOF
25176 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for rep and lock prefix" >&5
25177 $as_echo_n "checking assembler for rep and lock prefix... " >&6; }
25178 if test "${gcc_cv_as_ix86_rep_lock_prefix+set}" = set; then :
25179 $as_echo_n "(cached) " >&6
25180 else
25181 gcc_cv_as_ix86_rep_lock_prefix=no
25182 if test x$gcc_cv_as != x; then
25183 $as_echo 'rep movsl
25184 rep ret
25185 rep nop
25186 rep bsf %ecx, %eax
25187 rep bsr %ecx, %eax
25188 lock addl %edi, (%eax,%esi)
25189 lock orl $0, (%esp)' > conftest.s
25190 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
25191 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
25192 (eval $ac_try) 2>&5
25193 ac_status=$?
25194 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25195 test $ac_status = 0; }; }
25196 then
25197 gcc_cv_as_ix86_rep_lock_prefix=yes
25198 else
25199 echo "configure: failed program was" >&5
25200 cat conftest.s >&5
25202 rm -f conftest.o conftest.s
25205 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_ix86_rep_lock_prefix" >&5
25206 $as_echo "$gcc_cv_as_ix86_rep_lock_prefix" >&6; }
25207 if test $gcc_cv_as_ix86_rep_lock_prefix = yes; then
25209 $as_echo "#define HAVE_AS_IX86_REP_LOCK_PREFIX 1" >>confdefs.h
25213 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for ud2 mnemonic" >&5
25214 $as_echo_n "checking assembler for ud2 mnemonic... " >&6; }
25215 if test "${gcc_cv_as_ix86_ud2+set}" = set; then :
25216 $as_echo_n "(cached) " >&6
25217 else
25218 gcc_cv_as_ix86_ud2=no
25219 if test x$gcc_cv_as != x; then
25220 $as_echo 'ud2' > conftest.s
25221 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
25222 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
25223 (eval $ac_try) 2>&5
25224 ac_status=$?
25225 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25226 test $ac_status = 0; }; }
25227 then
25228 gcc_cv_as_ix86_ud2=yes
25229 else
25230 echo "configure: failed program was" >&5
25231 cat conftest.s >&5
25233 rm -f conftest.o conftest.s
25236 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_ix86_ud2" >&5
25237 $as_echo "$gcc_cv_as_ix86_ud2" >&6; }
25238 if test $gcc_cv_as_ix86_ud2 = yes; then
25240 $as_echo "#define HAVE_AS_IX86_UD2 1" >>confdefs.h
25244 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for R_386_TLS_GD_PLT reloc" >&5
25245 $as_echo_n "checking assembler for R_386_TLS_GD_PLT reloc... " >&6; }
25246 if test "${gcc_cv_as_ix86_tlsgdplt+set}" = set; then :
25247 $as_echo_n "(cached) " >&6
25248 else
25249 gcc_cv_as_ix86_tlsgdplt=no
25250 if test x$gcc_cv_as != x; then
25251 $as_echo 'call tls_gd@tlsgdplt' > conftest.s
25252 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
25253 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
25254 (eval $ac_try) 2>&5
25255 ac_status=$?
25256 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25257 test $ac_status = 0; }; }
25258 then
25259 if test x$gcc_cv_ld != x \
25260 && $gcc_cv_ld -o conftest conftest.o -G > /dev/null 2>&1; then
25261 gcc_cv_as_ix86_tlsgdplt=yes
25263 rm -f conftest
25264 else
25265 echo "configure: failed program was" >&5
25266 cat conftest.s >&5
25268 rm -f conftest.o conftest.s
25271 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_ix86_tlsgdplt" >&5
25272 $as_echo "$gcc_cv_as_ix86_tlsgdplt" >&6; }
25273 if test $gcc_cv_as_ix86_tlsgdplt = yes; then
25275 $as_echo "#define HAVE_AS_IX86_TLSGDPLT 1" >>confdefs.h
25279 conftest_s='
25280 .section .tdata,"aw'$tls_section_flag'",@progbits
25281 tls_ld:
25282 .section .text,"ax",@progbits
25283 call tls_ld@tlsldmplt'
25284 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for R_386_TLS_LDM_PLT reloc" >&5
25285 $as_echo_n "checking assembler for R_386_TLS_LDM_PLT reloc... " >&6; }
25286 if test "${gcc_cv_as_ix86_tlsldmplt+set}" = set; then :
25287 $as_echo_n "(cached) " >&6
25288 else
25289 gcc_cv_as_ix86_tlsldmplt=no
25290 if test x$gcc_cv_as != x; then
25291 $as_echo "$conftest_s" > conftest.s
25292 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
25293 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
25294 (eval $ac_try) 2>&5
25295 ac_status=$?
25296 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25297 test $ac_status = 0; }; }
25298 then
25299 if test x$gcc_cv_ld != x \
25300 && $gcc_cv_ld -o conftest conftest.o -G > /dev/null 2>&1; then
25301 gcc_cv_as_ix86_tlsldmplt=yes
25303 rm -f conftest
25304 else
25305 echo "configure: failed program was" >&5
25306 cat conftest.s >&5
25308 rm -f conftest.o conftest.s
25311 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_ix86_tlsldmplt" >&5
25312 $as_echo "$gcc_cv_as_ix86_tlsldmplt" >&6; }
25315 cat >>confdefs.h <<_ACEOF
25316 #define HAVE_AS_IX86_TLSLDMPLT `if test $gcc_cv_as_ix86_tlsldmplt = yes; then echo 1; else echo 0; fi`
25317 _ACEOF
25320 # Enforce 32-bit output with gas and gld.
25321 if test x$gas = xyes; then
25322 as_ix86_tls_ldm_opt="--32"
25324 if echo "$ld_ver" | grep GNU > /dev/null; then
25325 if $gcc_cv_ld -V 2>/dev/null | grep elf_i386_sol2 > /dev/null; then
25326 ld_ix86_tls_ldm_opt="-melf_i386_sol2"
25327 else
25328 ld_ix86_tls_ldm_opt="-melf_i386"
25331 conftest_s='
25332 .section .text,"ax",@progbits
25333 .globl _start
25334 .type _start, @function
25335 _start:
25336 leal value@tlsldm(%ebx), %eax
25337 call ___tls_get_addr@plt
25339 .section .tdata,"aw'$tls_section_flag'",@progbits
25340 .type value, @object
25341 value:'
25342 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for R_386_TLS_LDM reloc" >&5
25343 $as_echo_n "checking assembler for R_386_TLS_LDM reloc... " >&6; }
25344 if test "${gcc_cv_as_ix86_tlsldm+set}" = set; then :
25345 $as_echo_n "(cached) " >&6
25346 else
25347 gcc_cv_as_ix86_tlsldm=no
25348 if test x$gcc_cv_as != x; then
25349 $as_echo "$conftest_s" > conftest.s
25350 if { ac_try='$gcc_cv_as $gcc_cv_as_flags $as_ix86_tls_ldm_opt -o conftest.o conftest.s >&5'
25351 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
25352 (eval $ac_try) 2>&5
25353 ac_status=$?
25354 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25355 test $ac_status = 0; }; }
25356 then
25357 if test x$gcc_cv_ld != x && test x$gcc_cv_objdump != x \
25358 && $gcc_cv_ld $ld_ix86_tls_ldm_opt -o conftest conftest.o $ld_tls_libs -lc > /dev/null 2>&1; then
25359 if $gcc_cv_objdump -d conftest 2>/dev/null | grep nop > /dev/null \
25360 || dis conftest 2>/dev/null | grep nop > /dev/null; then
25361 gcc_cv_as_ix86_tlsldm=yes
25364 rm -f conftest
25365 else
25366 echo "configure: failed program was" >&5
25367 cat conftest.s >&5
25369 rm -f conftest.o conftest.s
25372 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_ix86_tlsldm" >&5
25373 $as_echo "$gcc_cv_as_ix86_tlsldm" >&6; }
25376 cat >>confdefs.h <<_ACEOF
25377 #define HAVE_AS_IX86_TLSLDM `if test $gcc_cv_as_ix86_tlsldm = yes; then echo 1; else echo 0; fi`
25378 _ACEOF
25383 ia64*-*-*)
25384 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for ltoffx and ldxmov relocs" >&5
25385 $as_echo_n "checking assembler for ltoffx and ldxmov relocs... " >&6; }
25386 if test "${gcc_cv_as_ia64_ltoffx_ldxmov_relocs+set}" = set; then :
25387 $as_echo_n "(cached) " >&6
25388 else
25389 gcc_cv_as_ia64_ltoffx_ldxmov_relocs=no
25390 if test $in_tree_gas = yes; then
25391 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 14 \) \* 1000 + 0`
25392 then gcc_cv_as_ia64_ltoffx_ldxmov_relocs=yes
25394 elif test x$gcc_cv_as != x; then
25395 $as_echo ' .text
25396 addl r15 = @ltoffx(x#), gp
25398 ld8.mov r16 = [r15], x#' > conftest.s
25399 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
25400 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
25401 (eval $ac_try) 2>&5
25402 ac_status=$?
25403 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25404 test $ac_status = 0; }; }
25405 then
25406 gcc_cv_as_ia64_ltoffx_ldxmov_relocs=yes
25407 else
25408 echo "configure: failed program was" >&5
25409 cat conftest.s >&5
25411 rm -f conftest.o conftest.s
25414 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_ia64_ltoffx_ldxmov_relocs" >&5
25415 $as_echo "$gcc_cv_as_ia64_ltoffx_ldxmov_relocs" >&6; }
25416 if test $gcc_cv_as_ia64_ltoffx_ldxmov_relocs = yes; then
25418 $as_echo "#define HAVE_AS_LTOFFX_LDXMOV_RELOCS 1" >>confdefs.h
25424 powerpc*-*-*)
25425 case $target in
25426 *-*-aix*) conftest_s=' .machine "pwr5"
25427 .csect .text[PR]
25428 mfcr 3,128';;
25429 *-*-darwin*)
25430 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .machine directive support" >&5
25431 $as_echo_n "checking assembler for .machine directive support... " >&6; }
25432 if test "${gcc_cv_as_machine_directive+set}" = set; then :
25433 $as_echo_n "(cached) " >&6
25434 else
25435 gcc_cv_as_machine_directive=no
25436 if test x$gcc_cv_as != x; then
25437 $as_echo ' .machine ppc7400' > conftest.s
25438 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
25439 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
25440 (eval $ac_try) 2>&5
25441 ac_status=$?
25442 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25443 test $ac_status = 0; }; }
25444 then
25445 gcc_cv_as_machine_directive=yes
25446 else
25447 echo "configure: failed program was" >&5
25448 cat conftest.s >&5
25450 rm -f conftest.o conftest.s
25453 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_machine_directive" >&5
25454 $as_echo "$gcc_cv_as_machine_directive" >&6; }
25456 if test x$gcc_cv_as_machine_directive != xyes; then
25457 echo "*** This target requires an assembler supporting \".machine\"" >&2
25458 echo you can get it from: ftp://gcc.gnu.org/pub/gcc/infrastructure/cctools-528.5.dmg >&2
25459 test x$build = x$target && exit 1
25461 conftest_s=' .text
25462 mfcr r3,128';;
25463 *) conftest_s=' .machine power4
25464 .text
25465 mfcr 3,128';;
25466 esac
25468 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for mfcr field support" >&5
25469 $as_echo_n "checking assembler for mfcr field support... " >&6; }
25470 if test "${gcc_cv_as_powerpc_mfcrf+set}" = set; then :
25471 $as_echo_n "(cached) " >&6
25472 else
25473 gcc_cv_as_powerpc_mfcrf=no
25474 if test $in_tree_gas = yes; then
25475 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 14 \) \* 1000 + 0`
25476 then gcc_cv_as_powerpc_mfcrf=yes
25478 elif test x$gcc_cv_as != x; then
25479 $as_echo "$conftest_s" > conftest.s
25480 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
25481 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
25482 (eval $ac_try) 2>&5
25483 ac_status=$?
25484 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25485 test $ac_status = 0; }; }
25486 then
25487 gcc_cv_as_powerpc_mfcrf=yes
25488 else
25489 echo "configure: failed program was" >&5
25490 cat conftest.s >&5
25492 rm -f conftest.o conftest.s
25495 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_powerpc_mfcrf" >&5
25496 $as_echo "$gcc_cv_as_powerpc_mfcrf" >&6; }
25497 if test $gcc_cv_as_powerpc_mfcrf = yes; then
25499 $as_echo "#define HAVE_AS_MFCRF 1" >>confdefs.h
25503 case $target in
25504 *-*-aix*) conftest_s=' .machine "pwr5"
25505 .csect .text[PR]
25506 popcntb 3,3';;
25507 *) conftest_s=' .machine power5
25508 .text
25509 popcntb 3,3';;
25510 esac
25512 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for popcntb support" >&5
25513 $as_echo_n "checking assembler for popcntb support... " >&6; }
25514 if test "${gcc_cv_as_powerpc_popcntb+set}" = set; then :
25515 $as_echo_n "(cached) " >&6
25516 else
25517 gcc_cv_as_powerpc_popcntb=no
25518 if test $in_tree_gas = yes; then
25519 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 17 \) \* 1000 + 0`
25520 then gcc_cv_as_powerpc_popcntb=yes
25522 elif test x$gcc_cv_as != x; then
25523 $as_echo "$conftest_s" > conftest.s
25524 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
25525 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
25526 (eval $ac_try) 2>&5
25527 ac_status=$?
25528 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25529 test $ac_status = 0; }; }
25530 then
25531 gcc_cv_as_powerpc_popcntb=yes
25532 else
25533 echo "configure: failed program was" >&5
25534 cat conftest.s >&5
25536 rm -f conftest.o conftest.s
25539 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_powerpc_popcntb" >&5
25540 $as_echo "$gcc_cv_as_powerpc_popcntb" >&6; }
25541 if test $gcc_cv_as_powerpc_popcntb = yes; then
25543 $as_echo "#define HAVE_AS_POPCNTB 1" >>confdefs.h
25547 case $target in
25548 *-*-aix*) conftest_s=' .machine "pwr5x"
25549 .csect .text[PR]
25550 frin 1,1';;
25551 *) conftest_s=' .machine power5
25552 .text
25553 frin 1,1';;
25554 esac
25556 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for fp round support" >&5
25557 $as_echo_n "checking assembler for fp round support... " >&6; }
25558 if test "${gcc_cv_as_powerpc_fprnd+set}" = set; then :
25559 $as_echo_n "(cached) " >&6
25560 else
25561 gcc_cv_as_powerpc_fprnd=no
25562 if test $in_tree_gas = yes; then
25563 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 17 \) \* 1000 + 0`
25564 then gcc_cv_as_powerpc_fprnd=yes
25566 elif test x$gcc_cv_as != x; then
25567 $as_echo "$conftest_s" > conftest.s
25568 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
25569 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
25570 (eval $ac_try) 2>&5
25571 ac_status=$?
25572 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25573 test $ac_status = 0; }; }
25574 then
25575 gcc_cv_as_powerpc_fprnd=yes
25576 else
25577 echo "configure: failed program was" >&5
25578 cat conftest.s >&5
25580 rm -f conftest.o conftest.s
25583 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_powerpc_fprnd" >&5
25584 $as_echo "$gcc_cv_as_powerpc_fprnd" >&6; }
25585 if test $gcc_cv_as_powerpc_fprnd = yes; then
25587 $as_echo "#define HAVE_AS_FPRND 1" >>confdefs.h
25591 case $target in
25592 *-*-aix*) conftest_s=' .machine "pwr6"
25593 .csect .text[PR]
25594 mffgpr 1,3';;
25595 *) conftest_s=' .machine power6
25596 .text
25597 mffgpr 1,3';;
25598 esac
25600 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for move fp gpr support" >&5
25601 $as_echo_n "checking assembler for move fp gpr support... " >&6; }
25602 if test "${gcc_cv_as_powerpc_mfpgpr+set}" = set; then :
25603 $as_echo_n "(cached) " >&6
25604 else
25605 gcc_cv_as_powerpc_mfpgpr=no
25606 if test $in_tree_gas = yes; then
25607 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 19 \) \* 1000 + 2`
25608 then gcc_cv_as_powerpc_mfpgpr=yes
25610 elif test x$gcc_cv_as != x; then
25611 $as_echo "$conftest_s" > conftest.s
25612 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
25613 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
25614 (eval $ac_try) 2>&5
25615 ac_status=$?
25616 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25617 test $ac_status = 0; }; }
25618 then
25619 gcc_cv_as_powerpc_mfpgpr=yes
25620 else
25621 echo "configure: failed program was" >&5
25622 cat conftest.s >&5
25624 rm -f conftest.o conftest.s
25627 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_powerpc_mfpgpr" >&5
25628 $as_echo "$gcc_cv_as_powerpc_mfpgpr" >&6; }
25629 if test $gcc_cv_as_powerpc_mfpgpr = yes; then
25631 $as_echo "#define HAVE_AS_MFPGPR 1" >>confdefs.h
25635 case $target in
25636 *-*-aix*) conftest_s=' .csect .text[PR]
25637 LCF..0:
25638 addis 11,30,_GLOBAL_OFFSET_TABLE_-LCF..0@ha';;
25639 *-*-darwin*)
25640 conftest_s=' .text
25641 LCF0:
25642 addis r11,r30,_GLOBAL_OFFSET_TABLE_-LCF0@ha';;
25643 *) conftest_s=' .text
25644 .LCF0:
25645 addis 11,30,_GLOBAL_OFFSET_TABLE_-.LCF0@ha';;
25646 esac
25648 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for rel16 relocs" >&5
25649 $as_echo_n "checking assembler for rel16 relocs... " >&6; }
25650 if test "${gcc_cv_as_powerpc_rel16+set}" = set; then :
25651 $as_echo_n "(cached) " >&6
25652 else
25653 gcc_cv_as_powerpc_rel16=no
25654 if test $in_tree_gas = yes; then
25655 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 17 \) \* 1000 + 0`
25656 then gcc_cv_as_powerpc_rel16=yes
25658 elif test x$gcc_cv_as != x; then
25659 $as_echo "$conftest_s" > conftest.s
25660 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -a32 -o conftest.o conftest.s >&5'
25661 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
25662 (eval $ac_try) 2>&5
25663 ac_status=$?
25664 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25665 test $ac_status = 0; }; }
25666 then
25667 gcc_cv_as_powerpc_rel16=yes
25668 else
25669 echo "configure: failed program was" >&5
25670 cat conftest.s >&5
25672 rm -f conftest.o conftest.s
25675 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_powerpc_rel16" >&5
25676 $as_echo "$gcc_cv_as_powerpc_rel16" >&6; }
25677 if test $gcc_cv_as_powerpc_rel16 = yes; then
25679 $as_echo "#define HAVE_AS_REL16 1" >>confdefs.h
25683 case $target in
25684 *-*-aix*) conftest_s=' .machine "pwr6"
25685 .csect .text[PR]
25686 cmpb 3,4,5';;
25687 *) conftest_s=' .machine power6
25688 .text
25689 cmpb 3,4,5';;
25690 esac
25692 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for compare bytes support" >&5
25693 $as_echo_n "checking assembler for compare bytes support... " >&6; }
25694 if test "${gcc_cv_as_powerpc_cmpb+set}" = set; then :
25695 $as_echo_n "(cached) " >&6
25696 else
25697 gcc_cv_as_powerpc_cmpb=no
25698 if test $in_tree_gas = yes; then
25699 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 19 \) \* 1000 + 2`
25700 then gcc_cv_as_powerpc_cmpb=yes
25702 elif test x$gcc_cv_as != x; then
25703 $as_echo "$conftest_s" > conftest.s
25704 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -a32 -o conftest.o conftest.s >&5'
25705 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
25706 (eval $ac_try) 2>&5
25707 ac_status=$?
25708 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25709 test $ac_status = 0; }; }
25710 then
25711 gcc_cv_as_powerpc_cmpb=yes
25712 else
25713 echo "configure: failed program was" >&5
25714 cat conftest.s >&5
25716 rm -f conftest.o conftest.s
25719 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_powerpc_cmpb" >&5
25720 $as_echo "$gcc_cv_as_powerpc_cmpb" >&6; }
25721 if test $gcc_cv_as_powerpc_cmpb = yes; then
25723 $as_echo "#define HAVE_AS_CMPB 1" >>confdefs.h
25727 case $target in
25728 *-*-aix*) conftest_s=' .machine "pwr6"
25729 .csect .text[PR]
25730 dadd 1,2,3';;
25731 *) conftest_s=' .machine power6
25732 .text
25733 dadd 1,2,3';;
25734 esac
25736 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for decimal float support" >&5
25737 $as_echo_n "checking assembler for decimal float support... " >&6; }
25738 if test "${gcc_cv_as_powerpc_dfp+set}" = set; then :
25739 $as_echo_n "(cached) " >&6
25740 else
25741 gcc_cv_as_powerpc_dfp=no
25742 if test $in_tree_gas = yes; then
25743 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 19 \) \* 1000 + 2`
25744 then gcc_cv_as_powerpc_dfp=yes
25746 elif test x$gcc_cv_as != x; then
25747 $as_echo "$conftest_s" > conftest.s
25748 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -a32 -o conftest.o conftest.s >&5'
25749 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
25750 (eval $ac_try) 2>&5
25751 ac_status=$?
25752 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25753 test $ac_status = 0; }; }
25754 then
25755 gcc_cv_as_powerpc_dfp=yes
25756 else
25757 echo "configure: failed program was" >&5
25758 cat conftest.s >&5
25760 rm -f conftest.o conftest.s
25763 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_powerpc_dfp" >&5
25764 $as_echo "$gcc_cv_as_powerpc_dfp" >&6; }
25765 if test $gcc_cv_as_powerpc_dfp = yes; then
25767 $as_echo "#define HAVE_AS_DFP 1" >>confdefs.h
25771 case $target in
25772 *-*-aix*) conftest_s=' .machine "pwr7"
25773 .csect .text[PR]
25774 lxvd2x 1,2,3';;
25775 *) conftest_s=' .machine power7
25776 .text
25777 lxvd2x 1,2,3';;
25778 esac
25780 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for vector-scalar support" >&5
25781 $as_echo_n "checking assembler for vector-scalar support... " >&6; }
25782 if test "${gcc_cv_as_powerpc_vsx+set}" = set; then :
25783 $as_echo_n "(cached) " >&6
25784 else
25785 gcc_cv_as_powerpc_vsx=no
25786 if test $in_tree_gas = yes; then
25787 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 19 \) \* 1000 + 2`
25788 then gcc_cv_as_powerpc_vsx=yes
25790 elif test x$gcc_cv_as != x; then
25791 $as_echo "$conftest_s" > conftest.s
25792 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -a32 -o conftest.o conftest.s >&5'
25793 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
25794 (eval $ac_try) 2>&5
25795 ac_status=$?
25796 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25797 test $ac_status = 0; }; }
25798 then
25799 gcc_cv_as_powerpc_vsx=yes
25800 else
25801 echo "configure: failed program was" >&5
25802 cat conftest.s >&5
25804 rm -f conftest.o conftest.s
25807 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_powerpc_vsx" >&5
25808 $as_echo "$gcc_cv_as_powerpc_vsx" >&6; }
25809 if test $gcc_cv_as_powerpc_vsx = yes; then
25811 $as_echo "#define HAVE_AS_VSX 1" >>confdefs.h
25815 case $target in
25816 *-*-aix*) conftest_s=' .machine "pwr7"
25817 .csect .text[PR]
25818 popcntd 3,3';;
25819 *) conftest_s=' .machine power7
25820 .text
25821 popcntd 3,3';;
25822 esac
25824 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for popcntd support" >&5
25825 $as_echo_n "checking assembler for popcntd support... " >&6; }
25826 if test "${gcc_cv_as_powerpc_popcntd+set}" = set; then :
25827 $as_echo_n "(cached) " >&6
25828 else
25829 gcc_cv_as_powerpc_popcntd=no
25830 if test $in_tree_gas = yes; then
25831 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 19 \) \* 1000 + 2`
25832 then gcc_cv_as_powerpc_popcntd=yes
25834 elif test x$gcc_cv_as != x; then
25835 $as_echo "$conftest_s" > conftest.s
25836 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -a32 -o conftest.o conftest.s >&5'
25837 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
25838 (eval $ac_try) 2>&5
25839 ac_status=$?
25840 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25841 test $ac_status = 0; }; }
25842 then
25843 gcc_cv_as_powerpc_popcntd=yes
25844 else
25845 echo "configure: failed program was" >&5
25846 cat conftest.s >&5
25848 rm -f conftest.o conftest.s
25851 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_powerpc_popcntd" >&5
25852 $as_echo "$gcc_cv_as_powerpc_popcntd" >&6; }
25853 if test $gcc_cv_as_powerpc_popcntd = yes; then
25855 $as_echo "#define HAVE_AS_POPCNTD 1" >>confdefs.h
25859 case $target in
25860 *-*-aix*) conftest_s=' .machine "pwr8"
25861 .csect .text[PR]';;
25862 *) conftest_s=' .machine power8
25863 .text';;
25864 esac
25866 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for power8 support" >&5
25867 $as_echo_n "checking assembler for power8 support... " >&6; }
25868 if test "${gcc_cv_as_powerpc_power8+set}" = set; then :
25869 $as_echo_n "(cached) " >&6
25870 else
25871 gcc_cv_as_powerpc_power8=no
25872 if test $in_tree_gas = yes; then
25873 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 19 \) \* 1000 + 2`
25874 then gcc_cv_as_powerpc_power8=yes
25876 elif test x$gcc_cv_as != x; then
25877 $as_echo "$conftest_s" > conftest.s
25878 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -a32 -o conftest.o conftest.s >&5'
25879 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
25880 (eval $ac_try) 2>&5
25881 ac_status=$?
25882 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25883 test $ac_status = 0; }; }
25884 then
25885 gcc_cv_as_powerpc_power8=yes
25886 else
25887 echo "configure: failed program was" >&5
25888 cat conftest.s >&5
25890 rm -f conftest.o conftest.s
25893 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_powerpc_power8" >&5
25894 $as_echo "$gcc_cv_as_powerpc_power8" >&6; }
25895 if test $gcc_cv_as_powerpc_power8 = yes; then
25897 $as_echo "#define HAVE_AS_POWER8 1" >>confdefs.h
25901 case $target in
25902 *-*-aix*) conftest_s=' .csect .text[PR]
25903 lwsync';;
25904 *) conftest_s=' .text
25905 lwsync';;
25906 esac
25908 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for lwsync support" >&5
25909 $as_echo_n "checking assembler for lwsync support... " >&6; }
25910 if test "${gcc_cv_as_powerpc_lwsync+set}" = set; then :
25911 $as_echo_n "(cached) " >&6
25912 else
25913 gcc_cv_as_powerpc_lwsync=no
25914 if test $in_tree_gas = yes; then
25915 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 19 \) \* 1000 + 2`
25916 then gcc_cv_as_powerpc_lwsync=yes
25918 elif test x$gcc_cv_as != x; then
25919 $as_echo "$conftest_s" > conftest.s
25920 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -a32 -o conftest.o conftest.s >&5'
25921 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
25922 (eval $ac_try) 2>&5
25923 ac_status=$?
25924 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25925 test $ac_status = 0; }; }
25926 then
25927 gcc_cv_as_powerpc_lwsync=yes
25928 else
25929 echo "configure: failed program was" >&5
25930 cat conftest.s >&5
25932 rm -f conftest.o conftest.s
25935 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_powerpc_lwsync" >&5
25936 $as_echo "$gcc_cv_as_powerpc_lwsync" >&6; }
25937 if test $gcc_cv_as_powerpc_lwsync = yes; then
25939 $as_echo "#define HAVE_AS_LWSYNC 1" >>confdefs.h
25943 case $target in
25944 *-*-aix*) conftest_s=' .machine "476"
25945 .csect .text[PR]
25946 dci 0';;
25947 *) conftest_s=' .machine "476"
25948 .text
25949 dci 0';;
25950 esac
25952 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for data cache invalidate support" >&5
25953 $as_echo_n "checking assembler for data cache invalidate support... " >&6; }
25954 if test "${gcc_cv_as_powerpc_dci+set}" = set; then :
25955 $as_echo_n "(cached) " >&6
25956 else
25957 gcc_cv_as_powerpc_dci=no
25958 if test $in_tree_gas = yes; then
25959 if test $gcc_cv_gas_vers -ge `expr \( \( 9 \* 1000 \) + 99 \) \* 1000 + 0`
25960 then gcc_cv_as_powerpc_dci=yes
25962 elif test x$gcc_cv_as != x; then
25963 $as_echo "$conftest_s" > conftest.s
25964 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -a32 -o conftest.o conftest.s >&5'
25965 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
25966 (eval $ac_try) 2>&5
25967 ac_status=$?
25968 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25969 test $ac_status = 0; }; }
25970 then
25971 gcc_cv_as_powerpc_dci=yes
25972 else
25973 echo "configure: failed program was" >&5
25974 cat conftest.s >&5
25976 rm -f conftest.o conftest.s
25979 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_powerpc_dci" >&5
25980 $as_echo "$gcc_cv_as_powerpc_dci" >&6; }
25981 if test $gcc_cv_as_powerpc_dci = yes; then
25983 $as_echo "#define HAVE_AS_DCI 1" >>confdefs.h
25987 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .gnu_attribute support" >&5
25988 $as_echo_n "checking assembler for .gnu_attribute support... " >&6; }
25989 if test "${gcc_cv_as_powerpc_gnu_attribute+set}" = set; then :
25990 $as_echo_n "(cached) " >&6
25991 else
25992 gcc_cv_as_powerpc_gnu_attribute=no
25993 if test $in_tree_gas = yes; then
25994 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 18 \) \* 1000 + 0`
25995 then gcc_cv_as_powerpc_gnu_attribute=yes
25997 elif test x$gcc_cv_as != x; then
25998 $as_echo '.gnu_attribute 4,1' > conftest.s
25999 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
26000 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
26001 (eval $ac_try) 2>&5
26002 ac_status=$?
26003 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
26004 test $ac_status = 0; }; }
26005 then
26006 gcc_cv_as_powerpc_gnu_attribute=yes
26007 else
26008 echo "configure: failed program was" >&5
26009 cat conftest.s >&5
26011 rm -f conftest.o conftest.s
26014 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_powerpc_gnu_attribute" >&5
26015 $as_echo "$gcc_cv_as_powerpc_gnu_attribute" >&6; }
26016 if test $gcc_cv_as_powerpc_gnu_attribute = yes; then
26018 $as_echo "#define HAVE_AS_GNU_ATTRIBUTE 1" >>confdefs.h
26022 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for tls marker support" >&5
26023 $as_echo_n "checking assembler for tls marker support... " >&6; }
26024 if test "${gcc_cv_as_powerpc_tls_markers+set}" = set; then :
26025 $as_echo_n "(cached) " >&6
26026 else
26027 gcc_cv_as_powerpc_tls_markers=no
26028 if test $in_tree_gas = yes; then
26029 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 20 \) \* 1000 + 0`
26030 then gcc_cv_as_powerpc_tls_markers=yes
26032 elif test x$gcc_cv_as != x; then
26033 $as_echo ' bl __tls_get_addr(x@tlsgd)' > conftest.s
26034 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
26035 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
26036 (eval $ac_try) 2>&5
26037 ac_status=$?
26038 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
26039 test $ac_status = 0; }; }
26040 then
26041 gcc_cv_as_powerpc_tls_markers=yes
26042 else
26043 echo "configure: failed program was" >&5
26044 cat conftest.s >&5
26046 rm -f conftest.o conftest.s
26049 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_powerpc_tls_markers" >&5
26050 $as_echo "$gcc_cv_as_powerpc_tls_markers" >&6; }
26051 if test $gcc_cv_as_powerpc_tls_markers = yes; then
26053 $as_echo "#define HAVE_AS_TLS_MARKERS 1" >>confdefs.h
26057 case $target in
26058 *-*-aix*)
26059 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .ref support" >&5
26060 $as_echo_n "checking assembler for .ref support... " >&6; }
26061 if test "${gcc_cv_as_aix_ref+set}" = set; then :
26062 $as_echo_n "(cached) " >&6
26063 else
26064 gcc_cv_as_aix_ref=no
26065 if test $in_tree_gas = yes; then
26066 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 21 \) \* 1000 + 0`
26067 then gcc_cv_as_aix_ref=yes
26069 elif test x$gcc_cv_as != x; then
26070 $as_echo ' .csect stuff[rw]
26071 stuff:
26072 .long 1
26073 .extern sym
26074 .ref sym
26075 ' > conftest.s
26076 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
26077 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
26078 (eval $ac_try) 2>&5
26079 ac_status=$?
26080 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
26081 test $ac_status = 0; }; }
26082 then
26083 gcc_cv_as_aix_ref=yes
26084 else
26085 echo "configure: failed program was" >&5
26086 cat conftest.s >&5
26088 rm -f conftest.o conftest.s
26091 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_aix_ref" >&5
26092 $as_echo "$gcc_cv_as_aix_ref" >&6; }
26093 if test $gcc_cv_as_aix_ref = yes; then
26095 $as_echo "#define HAVE_AS_REF 1" >>confdefs.h
26099 esac
26102 mips*-*-*)
26103 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for explicit relocation support" >&5
26104 $as_echo_n "checking assembler for explicit relocation support... " >&6; }
26105 if test "${gcc_cv_as_mips_explicit_relocs+set}" = set; then :
26106 $as_echo_n "(cached) " >&6
26107 else
26108 gcc_cv_as_mips_explicit_relocs=no
26109 if test $in_tree_gas = yes; then
26110 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 14 \) \* 1000 + 0`
26111 then gcc_cv_as_mips_explicit_relocs=yes
26113 elif test x$gcc_cv_as != x; then
26114 $as_echo ' lw $4,%gp_rel(foo)($4)' > conftest.s
26115 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
26116 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
26117 (eval $ac_try) 2>&5
26118 ac_status=$?
26119 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
26120 test $ac_status = 0; }; }
26121 then
26122 gcc_cv_as_mips_explicit_relocs=yes
26123 else
26124 echo "configure: failed program was" >&5
26125 cat conftest.s >&5
26127 rm -f conftest.o conftest.s
26130 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_mips_explicit_relocs" >&5
26131 $as_echo "$gcc_cv_as_mips_explicit_relocs" >&6; }
26132 if test $gcc_cv_as_mips_explicit_relocs = yes; then
26133 if test x$target_cpu_default = x
26134 then target_cpu_default=MASK_EXPLICIT_RELOCS
26135 else target_cpu_default="($target_cpu_default)|MASK_EXPLICIT_RELOCS"
26138 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for -mno-shared support" >&5
26139 $as_echo_n "checking assembler for -mno-shared support... " >&6; }
26140 if test "${gcc_cv_as_mips_no_shared+set}" = set; then :
26141 $as_echo_n "(cached) " >&6
26142 else
26143 gcc_cv_as_mips_no_shared=no
26144 if test $in_tree_gas = yes; then
26145 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 16 \) \* 1000 + 0`
26146 then gcc_cv_as_mips_no_shared=yes
26148 elif test x$gcc_cv_as != x; then
26149 $as_echo 'nop' > conftest.s
26150 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -mno-shared -o conftest.o conftest.s >&5'
26151 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
26152 (eval $ac_try) 2>&5
26153 ac_status=$?
26154 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
26155 test $ac_status = 0; }; }
26156 then
26157 gcc_cv_as_mips_no_shared=yes
26158 else
26159 echo "configure: failed program was" >&5
26160 cat conftest.s >&5
26162 rm -f conftest.o conftest.s
26165 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_mips_no_shared" >&5
26166 $as_echo "$gcc_cv_as_mips_no_shared" >&6; }
26167 if test $gcc_cv_as_mips_no_shared = yes; then
26169 $as_echo "#define HAVE_AS_NO_SHARED 1" >>confdefs.h
26173 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .gnu_attribute support" >&5
26174 $as_echo_n "checking assembler for .gnu_attribute support... " >&6; }
26175 if test "${gcc_cv_as_mips_gnu_attribute+set}" = set; then :
26176 $as_echo_n "(cached) " >&6
26177 else
26178 gcc_cv_as_mips_gnu_attribute=no
26179 if test $in_tree_gas = yes; then
26180 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 18 \) \* 1000 + 0`
26181 then gcc_cv_as_mips_gnu_attribute=yes
26183 elif test x$gcc_cv_as != x; then
26184 $as_echo '.gnu_attribute 4,1' > conftest.s
26185 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
26186 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
26187 (eval $ac_try) 2>&5
26188 ac_status=$?
26189 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
26190 test $ac_status = 0; }; }
26191 then
26192 gcc_cv_as_mips_gnu_attribute=yes
26193 else
26194 echo "configure: failed program was" >&5
26195 cat conftest.s >&5
26197 rm -f conftest.o conftest.s
26200 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_mips_gnu_attribute" >&5
26201 $as_echo "$gcc_cv_as_mips_gnu_attribute" >&6; }
26202 if test $gcc_cv_as_mips_gnu_attribute = yes; then
26204 $as_echo "#define HAVE_AS_GNU_ATTRIBUTE 1" >>confdefs.h
26208 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .module support" >&5
26209 $as_echo_n "checking assembler for .module support... " >&6; }
26210 if test "${gcc_cv_as_mips_dot_module+set}" = set; then :
26211 $as_echo_n "(cached) " >&6
26212 else
26213 gcc_cv_as_mips_dot_module=no
26214 if test x$gcc_cv_as != x; then
26215 $as_echo '.module mips2
26216 .module fp=xx' > conftest.s
26217 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -32 -o conftest.o conftest.s >&5'
26218 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
26219 (eval $ac_try) 2>&5
26220 ac_status=$?
26221 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
26222 test $ac_status = 0; }; }
26223 then
26224 gcc_cv_as_mips_dot_module=yes
26225 else
26226 echo "configure: failed program was" >&5
26227 cat conftest.s >&5
26229 rm -f conftest.o conftest.s
26232 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_mips_dot_module" >&5
26233 $as_echo "$gcc_cv_as_mips_dot_module" >&6; }
26234 if test $gcc_cv_as_mips_dot_module = yes; then
26236 $as_echo "#define HAVE_AS_DOT_MODULE 1" >>confdefs.h
26239 if test x$gcc_cv_as_mips_dot_module = xno \
26240 && test x$with_fp_32 != x; then
26241 as_fn_error "Requesting --with-fp-32= requires assembler support for .module." "$LINENO" 5
26244 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .micromips support" >&5
26245 $as_echo_n "checking assembler for .micromips support... " >&6; }
26246 if test "${gcc_cv_as_micromips_support+set}" = set; then :
26247 $as_echo_n "(cached) " >&6
26248 else
26249 gcc_cv_as_micromips_support=no
26250 if test x$gcc_cv_as != x; then
26251 $as_echo '.set micromips' > conftest.s
26252 if { ac_try='$gcc_cv_as $gcc_cv_as_flags --fatal-warnings -o conftest.o conftest.s >&5'
26253 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
26254 (eval $ac_try) 2>&5
26255 ac_status=$?
26256 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
26257 test $ac_status = 0; }; }
26258 then
26259 gcc_cv_as_micromips_support=yes
26260 else
26261 echo "configure: failed program was" >&5
26262 cat conftest.s >&5
26264 rm -f conftest.o conftest.s
26267 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_micromips_support" >&5
26268 $as_echo "$gcc_cv_as_micromips_support" >&6; }
26269 if test $gcc_cv_as_micromips_support = yes; then
26271 $as_echo "#define HAVE_GAS_MICROMIPS 1" >>confdefs.h
26275 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .dtprelword support" >&5
26276 $as_echo_n "checking assembler for .dtprelword support... " >&6; }
26277 if test "${gcc_cv_as_mips_dtprelword+set}" = set; then :
26278 $as_echo_n "(cached) " >&6
26279 else
26280 gcc_cv_as_mips_dtprelword=no
26281 if test $in_tree_gas = yes; then
26282 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 18 \) \* 1000 + 0`
26283 then gcc_cv_as_mips_dtprelword=yes
26285 elif test x$gcc_cv_as != x; then
26286 $as_echo '.section .tdata,"awT",@progbits
26288 .word 2
26289 .text
26290 .dtprelword x+0x8000' > conftest.s
26291 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
26292 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
26293 (eval $ac_try) 2>&5
26294 ac_status=$?
26295 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
26296 test $ac_status = 0; }; }
26297 then
26298 gcc_cv_as_mips_dtprelword=yes
26299 else
26300 echo "configure: failed program was" >&5
26301 cat conftest.s >&5
26303 rm -f conftest.o conftest.s
26306 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_mips_dtprelword" >&5
26307 $as_echo "$gcc_cv_as_mips_dtprelword" >&6; }
26308 if test $gcc_cv_as_mips_dtprelword = yes; then
26310 $as_echo "#define HAVE_AS_DTPRELWORD 1" >>confdefs.h
26314 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for DSPR1 mult with four accumulators support" >&5
26315 $as_echo_n "checking assembler for DSPR1 mult with four accumulators support... " >&6; }
26316 if test "${gcc_cv_as_mips_dspr1_mult+set}" = set; then :
26317 $as_echo_n "(cached) " >&6
26318 else
26319 gcc_cv_as_mips_dspr1_mult=no
26320 if test x$gcc_cv_as != x; then
26321 $as_echo ' .set mips32r2
26322 .set nodspr2
26323 .set dsp
26324 madd $ac3,$4,$5
26325 maddu $ac3,$4,$5
26326 msub $ac3,$4,$5
26327 msubu $ac3,$4,$5
26328 mult $ac3,$4,$5
26329 multu $ac3,$4,$5' > conftest.s
26330 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
26331 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
26332 (eval $ac_try) 2>&5
26333 ac_status=$?
26334 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
26335 test $ac_status = 0; }; }
26336 then
26337 gcc_cv_as_mips_dspr1_mult=yes
26338 else
26339 echo "configure: failed program was" >&5
26340 cat conftest.s >&5
26342 rm -f conftest.o conftest.s
26345 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_mips_dspr1_mult" >&5
26346 $as_echo "$gcc_cv_as_mips_dspr1_mult" >&6; }
26347 if test $gcc_cv_as_mips_dspr1_mult = yes; then
26349 $as_echo "#define HAVE_AS_DSPR1_MULT 1" >>confdefs.h
26353 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler and linker for explicit JALR relocation" >&5
26354 $as_echo_n "checking assembler and linker for explicit JALR relocation... " >&6; }
26355 gcc_cv_as_ld_jalr_reloc=no
26356 if test $gcc_cv_as_mips_explicit_relocs = yes; then
26357 if test $in_tree_ld = yes ; then
26358 if test "$gcc_cv_gld_major_version" -eq 2 -a "$gcc_cv_gld_minor_version" -ge 20 -o "$gcc_cv_gld_major_version" -gt 2 \
26359 && test $in_tree_ld_is_elf = yes; then
26360 gcc_cv_as_ld_jalr_reloc=yes
26362 elif test x$gcc_cv_as != x -a x$gcc_cv_ld != x -a x$gcc_cv_objdump != x; then
26363 echo ' .ent x' > conftest.s
26364 echo 'x: lw $2,%got_disp(y)($3)' >> conftest.s
26365 echo ' lw $25,%call16(y)($28)' >> conftest.s
26366 echo ' .reloc 1f,R_MIPS_JALR,y' >> conftest.s
26367 echo '1: jalr $25' >> conftest.s
26368 echo ' .reloc 1f,R_MIPS_JALR,x' >> conftest.s
26369 echo '1: jalr $25' >> conftest.s
26370 echo ' .end x' >> conftest.s
26371 if $gcc_cv_as -o conftest.o conftest.s >/dev/null 2>&5 \
26372 && $gcc_cv_ld -shared -o conftest.so conftest.o >/dev/null 2>&5; then
26373 if $gcc_cv_objdump -d conftest.so | grep jalr >/dev/null 2>&1 \
26374 && $gcc_cv_objdump -d conftest.so | grep "bal.*<x>" >/dev/null 2>&1; then
26375 gcc_cv_as_ld_jalr_reloc=yes
26378 rm -f conftest.*
26381 if test $gcc_cv_as_ld_jalr_reloc = yes; then
26382 if test x$target_cpu_default = x; then
26383 target_cpu_default=MASK_RELAX_PIC_CALLS
26384 else
26385 target_cpu_default="($target_cpu_default)|MASK_RELAX_PIC_CALLS"
26388 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_ld_jalr_reloc" >&5
26389 $as_echo "$gcc_cv_as_ld_jalr_reloc" >&6; }
26391 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker for .eh_frame personality relaxation" >&5
26392 $as_echo_n "checking linker for .eh_frame personality relaxation... " >&6; }
26393 if test "${gcc_cv_ld_mips_personality_relaxation+set}" = set; then :
26394 $as_echo_n "(cached) " >&6
26395 else
26396 gcc_cv_ld_mips_personality_relaxation=no
26397 if test $in_tree_ld = yes ; then
26398 if test "$gcc_cv_gld_major_version" -eq 2 \
26399 -a "$gcc_cv_gld_minor_version" -ge 21 \
26400 -o "$gcc_cv_gld_major_version" -gt 2; then
26401 gcc_cv_ld_mips_personality_relaxation=yes
26403 elif test x$gcc_cv_as != x \
26404 -a x$gcc_cv_ld != x \
26405 -a x$gcc_cv_readelf != x ; then
26406 cat > conftest.s <<EOF
26407 .cfi_startproc
26408 .cfi_personality 0x80,indirect_ptr
26409 .ent test
26410 test:
26412 .end test
26413 .cfi_endproc
26415 .section .data,"aw",@progbits
26416 indirect_ptr:
26417 .dc.a personality
26419 if $gcc_cv_as -KPIC -o conftest.o conftest.s > /dev/null 2>&1 \
26420 && $gcc_cv_ld -o conftest conftest.o -shared > /dev/null 2>&1; then
26421 if $gcc_cv_readelf -d conftest 2>&1 \
26422 | grep TEXTREL > /dev/null 2>&1; then
26424 elif $gcc_cv_readelf --relocs conftest 2>&1 \
26425 | grep 'R_MIPS_REL32 *$' > /dev/null 2>&1; then
26427 else
26428 gcc_cv_ld_mips_personality_relaxation=yes
26432 rm -f conftest.s conftest.o conftest
26434 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_mips_personality_relaxation" >&5
26435 $as_echo "$gcc_cv_ld_mips_personality_relaxation" >&6; }
26436 if test x$gcc_cv_ld_mips_personality_relaxation = xyes; then
26438 $as_echo "#define HAVE_LD_PERSONALITY_RELAXATION 1" >>confdefs.h
26442 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for -mnan= support" >&5
26443 $as_echo_n "checking assembler for -mnan= support... " >&6; }
26444 if test "${gcc_cv_as_mips_nan+set}" = set; then :
26445 $as_echo_n "(cached) " >&6
26446 else
26447 gcc_cv_as_mips_nan=no
26448 if test x$gcc_cv_as != x; then
26449 $as_echo '' > conftest.s
26450 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -mnan=2008 -o conftest.o conftest.s >&5'
26451 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
26452 (eval $ac_try) 2>&5
26453 ac_status=$?
26454 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
26455 test $ac_status = 0; }; }
26456 then
26457 gcc_cv_as_mips_nan=yes
26458 else
26459 echo "configure: failed program was" >&5
26460 cat conftest.s >&5
26462 rm -f conftest.o conftest.s
26465 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_mips_nan" >&5
26466 $as_echo "$gcc_cv_as_mips_nan" >&6; }
26467 if test $gcc_cv_as_mips_nan = yes; then
26469 $as_echo "#define HAVE_AS_NAN 1" >>confdefs.h
26472 if test x$gcc_cv_as_mips_nan = xno \
26473 && test x$with_nan != x; then
26474 as_fn_error "Requesting --with-nan= requires assembler support for -mnan=" "$LINENO" 5
26477 esac
26479 # Mips and HP-UX need the GNU assembler.
26480 # Linux on IA64 might be able to use the Intel assembler.
26482 case "$target" in
26483 mips*-*-* | *-*-hpux* )
26484 if test x$gas_flag = xyes \
26485 || test x"$host" != x"$build" \
26486 || test ! -x "$gcc_cv_as" \
26487 || "$gcc_cv_as" -v < /dev/null 2>&1 | grep GNU > /dev/null; then
26489 else
26490 echo "*** This configuration requires the GNU assembler" >&2
26491 exit 1
26494 esac
26496 # ??? Not all targets support dwarf2 debug_line, even within a version
26497 # of gas. Moreover, we need to emit a valid instruction to trigger any
26498 # info to the output file. So, as supported targets are added to gas 2.11,
26499 # add some instruction here to (also) show we expect this might work.
26500 # ??? Once 2.11 is released, probably need to add first known working
26501 # version to the per-target configury.
26502 case "$cpu_type" in
26503 aarch64 | alpha | arm | avr | bfin | cris | i386 | m32c | m68k | microblaze \
26504 | mips | nios2 | pa | rs6000 | score | sparc | spu | tilegx | tilepro \
26505 | xstormy16 | xtensa)
26506 insn="nop"
26508 ia64 | s390)
26509 insn="nop 0"
26511 mmix)
26512 insn="swym 0"
26514 esac
26515 if test x"$insn" != x; then
26516 conftest_s="\
26517 .file 1 \"conftest.s\"
26518 .loc 1 3 0
26519 $insn"
26520 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for dwarf2 debug_line support" >&5
26521 $as_echo_n "checking assembler for dwarf2 debug_line support... " >&6; }
26522 if test "${gcc_cv_as_dwarf2_debug_line+set}" = set; then :
26523 $as_echo_n "(cached) " >&6
26524 else
26525 gcc_cv_as_dwarf2_debug_line=no
26526 if test $in_tree_gas = yes; then
26527 if test $in_tree_gas_is_elf = yes \
26528 && test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 11 \) \* 1000 + 0`
26529 then gcc_cv_as_dwarf2_debug_line=yes
26531 elif test x$gcc_cv_as != x; then
26532 $as_echo "$conftest_s" > conftest.s
26533 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
26534 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
26535 (eval $ac_try) 2>&5
26536 ac_status=$?
26537 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
26538 test $ac_status = 0; }; }
26539 then
26540 if test x$gcc_cv_objdump != x \
26541 && $gcc_cv_objdump -h conftest.o 2> /dev/null \
26542 | grep debug_line > /dev/null 2>&1; then
26543 gcc_cv_as_dwarf2_debug_line=yes
26545 else
26546 echo "configure: failed program was" >&5
26547 cat conftest.s >&5
26549 rm -f conftest.o conftest.s
26552 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_dwarf2_debug_line" >&5
26553 $as_echo "$gcc_cv_as_dwarf2_debug_line" >&6; }
26556 # The .debug_line file table must be in the exact order that
26557 # we specified the files, since these indices are also used
26558 # by DW_AT_decl_file. Approximate this test by testing if
26559 # the assembler bitches if the same index is assigned twice.
26560 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for buggy dwarf2 .file directive" >&5
26561 $as_echo_n "checking assembler for buggy dwarf2 .file directive... " >&6; }
26562 if test "${gcc_cv_as_dwarf2_file_buggy+set}" = set; then :
26563 $as_echo_n "(cached) " >&6
26564 else
26565 gcc_cv_as_dwarf2_file_buggy=no
26566 if test x$gcc_cv_as != x; then
26567 $as_echo ' .file 1 "foo.s"
26568 .file 1 "bar.s"' > conftest.s
26569 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
26570 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
26571 (eval $ac_try) 2>&5
26572 ac_status=$?
26573 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
26574 test $ac_status = 0; }; }
26575 then
26576 gcc_cv_as_dwarf2_file_buggy=yes
26577 else
26578 echo "configure: failed program was" >&5
26579 cat conftest.s >&5
26581 rm -f conftest.o conftest.s
26584 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_dwarf2_file_buggy" >&5
26585 $as_echo "$gcc_cv_as_dwarf2_file_buggy" >&6; }
26588 if test $gcc_cv_as_dwarf2_debug_line = yes \
26589 && test $gcc_cv_as_dwarf2_file_buggy = no; then
26591 $as_echo "#define HAVE_AS_DWARF2_DEBUG_LINE 1" >>confdefs.h
26595 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for --gdwarf2 option" >&5
26596 $as_echo_n "checking assembler for --gdwarf2 option... " >&6; }
26597 if test "${gcc_cv_as_gdwarf2_flag+set}" = set; then :
26598 $as_echo_n "(cached) " >&6
26599 else
26600 gcc_cv_as_gdwarf2_flag=no
26601 if test $in_tree_gas = yes; then
26602 if test $in_tree_gas_is_elf = yes \
26603 && test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 11 \) \* 1000 + 0`
26604 then gcc_cv_as_gdwarf2_flag=yes
26606 elif test x$gcc_cv_as != x; then
26607 $as_echo "$insn" > conftest.s
26608 if { ac_try='$gcc_cv_as $gcc_cv_as_flags --gdwarf2 -o conftest.o conftest.s >&5'
26609 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
26610 (eval $ac_try) 2>&5
26611 ac_status=$?
26612 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
26613 test $ac_status = 0; }; }
26614 then
26615 gcc_cv_as_gdwarf2_flag=yes
26616 else
26617 echo "configure: failed program was" >&5
26618 cat conftest.s >&5
26620 rm -f conftest.o conftest.s
26623 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_gdwarf2_flag" >&5
26624 $as_echo "$gcc_cv_as_gdwarf2_flag" >&6; }
26625 if test $gcc_cv_as_gdwarf2_flag = yes; then
26627 $as_echo "#define HAVE_AS_GDWARF2_DEBUG_FLAG 1" >>confdefs.h
26631 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for --gstabs option" >&5
26632 $as_echo_n "checking assembler for --gstabs option... " >&6; }
26633 if test "${gcc_cv_as_gstabs_flag+set}" = set; then :
26634 $as_echo_n "(cached) " >&6
26635 else
26636 gcc_cv_as_gstabs_flag=no
26637 if test $in_tree_gas = yes; then
26638 if test $in_tree_gas_is_elf = yes \
26639 && test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 11 \) \* 1000 + 0`
26640 then gcc_cv_as_gstabs_flag=yes
26642 elif test x$gcc_cv_as != x; then
26643 $as_echo "$insn" > conftest.s
26644 if { ac_try='$gcc_cv_as $gcc_cv_as_flags --gstabs -o conftest.o conftest.s >&5'
26645 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
26646 (eval $ac_try) 2>&5
26647 ac_status=$?
26648 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
26649 test $ac_status = 0; }; }
26650 then
26651 gcc_cv_as_gstabs_flag=yes
26652 else
26653 echo "configure: failed program was" >&5
26654 cat conftest.s >&5
26656 rm -f conftest.o conftest.s
26659 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_gstabs_flag" >&5
26660 $as_echo "$gcc_cv_as_gstabs_flag" >&6; }
26661 if test $gcc_cv_as_gstabs_flag = yes; then
26663 $as_echo "#define HAVE_AS_GSTABS_DEBUG_FLAG 1" >>confdefs.h
26667 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for --debug-prefix-map option" >&5
26668 $as_echo_n "checking assembler for --debug-prefix-map option... " >&6; }
26669 if test "${gcc_cv_as_debug_prefix_map_flag+set}" = set; then :
26670 $as_echo_n "(cached) " >&6
26671 else
26672 gcc_cv_as_debug_prefix_map_flag=no
26673 if test $in_tree_gas = yes; then
26674 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 18 \) \* 1000 + 0`
26675 then gcc_cv_as_debug_prefix_map_flag=yes
26677 elif test x$gcc_cv_as != x; then
26678 $as_echo "$insn" > conftest.s
26679 if { ac_try='$gcc_cv_as $gcc_cv_as_flags --debug-prefix-map /a=/b -o conftest.o conftest.s >&5'
26680 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
26681 (eval $ac_try) 2>&5
26682 ac_status=$?
26683 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
26684 test $ac_status = 0; }; }
26685 then
26686 gcc_cv_as_debug_prefix_map_flag=yes
26687 else
26688 echo "configure: failed program was" >&5
26689 cat conftest.s >&5
26691 rm -f conftest.o conftest.s
26694 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_debug_prefix_map_flag" >&5
26695 $as_echo "$gcc_cv_as_debug_prefix_map_flag" >&6; }
26696 if test $gcc_cv_as_debug_prefix_map_flag = yes; then
26698 $as_echo "#define HAVE_AS_DEBUG_PREFIX_MAP 1" >>confdefs.h
26703 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for compressed debug sections" >&5
26704 $as_echo_n "checking assembler for compressed debug sections... " >&6; }
26705 if test "${gcc_cv_as_compress_debug+set}" = set; then :
26706 $as_echo_n "(cached) " >&6
26707 else
26708 gcc_cv_as_compress_debug=no
26709 if test x$gcc_cv_as != x; then
26710 $as_echo '' > conftest.s
26711 if { ac_try='$gcc_cv_as $gcc_cv_as_flags --compress-debug-sections -o conftest.o conftest.s >&5'
26712 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
26713 (eval $ac_try) 2>&5
26714 ac_status=$?
26715 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
26716 test $ac_status = 0; }; }
26717 then
26718 # gas compiled without zlib cannot compress debug sections and warns
26719 # about it, but still exits successfully. So check for this, too.
26720 if $gcc_cv_as --compress-debug-sections -o conftest.o conftest.s 2>&1 | grep -i warning > /dev/null
26721 then
26722 gcc_cv_as_compress_debug=0
26723 elif $gcc_cv_as --compress-debug-sections -o conftest.o conftest.s > /dev/null 2>&1
26724 then
26725 gcc_cv_as_compress_debug=1
26726 gcc_cv_as_compress_debug_option="--compress-debug-sections"
26727 gcc_cv_as_no_compress_debug_option="--nocompress-debug-sections"
26728 else
26729 gcc_cv_as_compress_debug=0
26730 # FIXME: Future gas versions will support ELF gABI style via
26731 # --compress-debug-sections[=type].
26733 else
26734 echo "configure: failed program was" >&5
26735 cat conftest.s >&5
26737 rm -f conftest.o conftest.s
26740 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_compress_debug" >&5
26741 $as_echo "$gcc_cv_as_compress_debug" >&6; }
26744 cat >>confdefs.h <<_ACEOF
26745 #define HAVE_AS_COMPRESS_DEBUG $gcc_cv_as_compress_debug
26746 _ACEOF
26749 cat >>confdefs.h <<_ACEOF
26750 #define AS_COMPRESS_DEBUG_OPTION "$gcc_cv_as_compress_debug_option"
26751 _ACEOF
26754 cat >>confdefs.h <<_ACEOF
26755 #define AS_NO_COMPRESS_DEBUG_OPTION "$gcc_cv_as_no_compress_debug_option"
26756 _ACEOF
26759 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .lcomm with alignment" >&5
26760 $as_echo_n "checking assembler for .lcomm with alignment... " >&6; }
26761 if test "${gcc_cv_as_lcomm_with_alignment+set}" = set; then :
26762 $as_echo_n "(cached) " >&6
26763 else
26764 gcc_cv_as_lcomm_with_alignment=no
26765 if test x$gcc_cv_as != x; then
26766 $as_echo '.lcomm bar,4,16' > 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 gcc_cv_as_lcomm_with_alignment=yes
26775 else
26776 echo "configure: failed program was" >&5
26777 cat conftest.s >&5
26779 rm -f conftest.o conftest.s
26782 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_lcomm_with_alignment" >&5
26783 $as_echo "$gcc_cv_as_lcomm_with_alignment" >&6; }
26784 if test $gcc_cv_as_lcomm_with_alignment = yes; then
26786 $as_echo "#define HAVE_GAS_LCOMM_WITH_ALIGNMENT 1" >>confdefs.h
26790 if test x$with_sysroot = x && test x$host = x$target \
26791 && test "$prefix" != "/usr" && test "x$prefix" != "x$local_prefix" \
26792 && test "$prefix" != "NONE"; then
26794 cat >>confdefs.h <<_ACEOF
26795 #define PREFIX_INCLUDE_DIR "$prefix/include"
26796 _ACEOF
26800 # Determine the version of glibc, if any, used on the target.
26801 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for target glibc version" >&5
26802 $as_echo_n "checking for target glibc version... " >&6; }
26804 # Check whether --with-glibc-version was given.
26805 if test "${with_glibc_version+set}" = set; then :
26806 withval=$with_glibc_version;
26807 if echo "$with_glibc_version" | grep '^[0-9][0-9]*\.[0-9][0-9]*$'; then
26808 glibc_version_major=`echo "$with_glibc_version" | sed -e 's/\..*//'`
26809 glibc_version_minor=`echo "$with_glibc_version" | sed -e 's/.*\.//'`
26810 else
26811 as_fn_error "option --with-glibc-version requires a version number M.N" "$LINENO" 5
26813 else
26815 glibc_version_major=0
26816 glibc_version_minor=0
26817 if test -f $target_header_dir/features.h \
26818 && glibc_version_major_define=`$EGREP '^[ ]*#[ ]*define[ ]+__GLIBC__[ ]+[0-9]' $target_header_dir/features.h` \
26819 && glibc_version_minor_define=`$EGREP '^[ ]*#[ ]*define[ ]+__GLIBC_MINOR__[ ]+[0-9]' $target_header_dir/features.h`; then
26820 glibc_version_major=`echo "$glibc_version_major_define" | sed -e 's/.*__GLIBC__[ ]*//'`
26821 glibc_version_minor=`echo "$glibc_version_minor_define" | sed -e 's/.*__GLIBC_MINOR__[ ]*//'`
26825 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $glibc_version_major.$glibc_version_minor" >&5
26826 $as_echo "$glibc_version_major.$glibc_version_minor" >&6; }
26828 cat >>confdefs.h <<_ACEOF
26829 #define TARGET_GLIBC_MAJOR $glibc_version_major
26830 _ACEOF
26833 cat >>confdefs.h <<_ACEOF
26834 #define TARGET_GLIBC_MINOR $glibc_version_minor
26835 _ACEOF
26838 # Check whether --enable-gnu-unique-object was given.
26839 if test "${enable_gnu_unique_object+set}" = set; then :
26840 enableval=$enable_gnu_unique_object; case $enable_gnu_unique_object in
26841 yes | no) ;;
26842 *) as_fn_error "'$enable_gnu_unique_object' is an invalid value for --enable-gnu-unique-object.
26843 Valid choices are 'yes' and 'no'." "$LINENO" 5 ;;
26844 esac
26845 else
26846 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for gnu_unique_object" >&5
26847 $as_echo_n "checking assembler for gnu_unique_object... " >&6; }
26848 if test "${gcc_cv_as_gnu_unique_object+set}" = set; then :
26849 $as_echo_n "(cached) " >&6
26850 else
26851 gcc_cv_as_gnu_unique_object=no
26852 if test $in_tree_gas = yes; then
26853 if test $in_tree_gas_is_elf = yes \
26854 && test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 19 \) \* 1000 + 52`
26855 then gcc_cv_as_gnu_unique_object=yes
26857 elif test x$gcc_cv_as != x; then
26858 $as_echo '.type foo, '$target_type_format_char'gnu_unique_object' > conftest.s
26859 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
26860 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
26861 (eval $ac_try) 2>&5
26862 ac_status=$?
26863 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
26864 test $ac_status = 0; }; }
26865 then
26866 gcc_cv_as_gnu_unique_object=yes
26867 else
26868 echo "configure: failed program was" >&5
26869 cat conftest.s >&5
26871 rm -f conftest.o conftest.s
26874 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_gnu_unique_object" >&5
26875 $as_echo "$gcc_cv_as_gnu_unique_object" >&6; }
26876 if test $gcc_cv_as_gnu_unique_object = yes; then
26877 # We need to unquote above to to use the definition from config.gcc.
26878 # Also check for ld.so support, i.e. glibc 2.11 or higher.
26880 if test $glibc_version_major -gt 2 \
26881 || ( test $glibc_version_major -eq 2 && test $glibc_version_minor -ge 11 ); then :
26882 enable_gnu_unique_object=yes
26888 if test x$enable_gnu_unique_object = xyes; then
26890 $as_echo "#define HAVE_GAS_GNU_UNIQUE_OBJECT 1" >>confdefs.h
26894 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for tolerance to line number 0" >&5
26895 $as_echo_n "checking assembler for tolerance to line number 0... " >&6; }
26896 if test "${gcc_cv_as_line_zero+set}" = set; then :
26897 $as_echo_n "(cached) " >&6
26898 else
26899 gcc_cv_as_line_zero=no
26900 if test $in_tree_gas = yes; then
26901 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 16 \) \* 1000 + 91`
26902 then gcc_cv_as_line_zero=yes
26904 elif test "x$gcc_cv_as" != x; then
26905 { echo '# 1 "test.s" 1'; echo '# 0 "" 2'; } > conftest.s
26906 if { ac_try='$gcc_cv_as -o conftest.o conftest.s >&5 2>conftest.out'
26907 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
26908 (eval $ac_try) 2>&5
26909 ac_status=$?
26910 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
26911 test $ac_status = 0; }; } &&
26912 test "x`cat conftest.out`" = x
26913 then
26914 gcc_cv_as_line_zero=yes
26915 else
26916 echo "configure: failed program was" >&5
26917 cat conftest.s >&5
26918 echo "configure: error output was" >&5
26919 cat conftest.out >&5
26921 rm -f conftest.o conftest.s conftest.out
26924 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_line_zero" >&5
26925 $as_echo "$gcc_cv_as_line_zero" >&6; }
26926 if test "x$gcc_cv_as_line_zero" = xyes; then
26928 $as_echo "#define HAVE_AS_LINE_ZERO 1" >>confdefs.h
26932 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker PT_GNU_EH_FRAME support" >&5
26933 $as_echo_n "checking linker PT_GNU_EH_FRAME support... " >&6; }
26934 gcc_cv_ld_eh_frame_hdr=no
26935 if test $in_tree_ld = yes ; then
26936 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 \
26937 && test $in_tree_ld_is_elf = yes; then
26938 gcc_cv_ld_eh_frame_hdr=yes
26940 elif test x$gcc_cv_ld != x; then
26941 if echo "$ld_ver" | grep GNU > /dev/null; then
26942 # Check if linker supports --eh-frame-hdr option
26943 if $gcc_cv_ld --help 2>/dev/null | grep eh-frame-hdr > /dev/null; then
26944 gcc_cv_ld_eh_frame_hdr=yes
26946 else
26947 case "$target" in
26948 *-*-solaris2*)
26949 # Sun ld has various bugs in .eh_frame_hdr support before version 1.2251.
26950 if test "$ld_vers_major" -gt 1 || test "$ld_vers_minor" -ge 2251; then
26951 gcc_cv_ld_eh_frame_hdr=yes
26954 esac
26958 if test x"$gcc_cv_ld_eh_frame_hdr" = xyes; then
26960 $as_echo "#define HAVE_LD_EH_FRAME_HDR 1" >>confdefs.h
26963 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_eh_frame_hdr" >&5
26964 $as_echo "$gcc_cv_ld_eh_frame_hdr" >&6; }
26966 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker CIEv3 in .eh_frame support" >&5
26967 $as_echo_n "checking linker CIEv3 in .eh_frame support... " >&6; }
26968 gcc_cv_ld_eh_frame_ciev3=no
26969 if test $in_tree_ld = yes ; then
26970 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 \
26971 && test $in_tree_ld_is_elf = yes; then
26972 gcc_cv_ld_eh_frame_ciev3=yes
26974 elif test x$gcc_cv_ld != x; then
26975 if echo "$ld_ver" | grep GNU > /dev/null; then
26976 gcc_cv_ld_eh_frame_ciev3=yes
26977 if test 0"$ld_date" -lt 20040513; then
26978 if test -n "$ld_date"; then
26979 # If there was date string, but was earlier than 2004-05-13, fail
26980 gcc_cv_ld_eh_frame_ciev3=no
26981 elif test "$ld_vers_major" -lt 2; then
26982 gcc_cv_ld_eh_frame_ciev3=no
26983 elif test "$ld_vers_major" -eq 2 -a "$ld_vers_minor" -lt 16; then
26984 gcc_cv_ld_eh_frame_ciev3=no
26987 else
26988 case "$target" in
26989 *-*-solaris2*)
26990 # Sun ld added support for CIE v3 in .eh_frame in Solaris 11.1.
26991 if test "$ld_vers_major" -gt 1 || test "$ld_vers_minor" -ge 2324; then
26992 gcc_cv_ld_eh_frame_ciev3=yes
26995 esac
26999 cat >>confdefs.h <<_ACEOF
27000 #define HAVE_LD_EH_FRAME_CIEV3 `if test x"$gcc_cv_ld_eh_frame_ciev3" = xyes; then echo 1; else echo 0; fi`
27001 _ACEOF
27003 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_eh_frame_ciev3" >&5
27004 $as_echo "$gcc_cv_ld_eh_frame_ciev3" >&6; }
27006 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker position independent executable support" >&5
27007 $as_echo_n "checking linker position independent executable support... " >&6; }
27008 gcc_cv_ld_pie=no
27009 if test $in_tree_ld = yes ; then
27010 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 \
27011 && test $in_tree_ld_is_elf = yes; then
27012 gcc_cv_ld_pie=yes
27014 elif test x$gcc_cv_ld != x; then
27015 # Check if linker supports -pie option
27016 if $gcc_cv_ld --help 2>/dev/null | grep -- -pie > /dev/null; then
27017 gcc_cv_ld_pie=yes
27020 if test x"$gcc_cv_ld_pie" = xyes; then
27022 $as_echo "#define HAVE_LD_PIE 1" >>confdefs.h
27025 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_pie" >&5
27026 $as_echo "$gcc_cv_ld_pie" >&6; }
27028 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker PIE support with copy reloc" >&5
27029 $as_echo_n "checking linker PIE support with copy reloc... " >&6; }
27030 gcc_cv_ld_pie_copyreloc=no
27031 if test $gcc_cv_ld_pie = yes ; then
27032 if test $in_tree_ld = yes ; then
27033 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
27034 gcc_cv_ld_pie_copyreloc=yes
27036 elif test x$gcc_cv_as != x -a x$gcc_cv_ld != x ; then
27037 # Check if linker supports -pie option with copy reloc
27038 case "$target" in
27039 i?86-*-linux* | x86_64-*-linux*)
27040 cat > conftest1.s <<EOF
27041 .globl a_glob
27042 .data
27043 .type a_glob, @object
27044 .size a_glob, 4
27045 a_glob:
27046 .long 2
27048 cat > conftest2.s <<EOF
27049 .text
27050 .globl main
27051 .type main, @function
27052 main:
27053 movl %eax, a_glob(%rip)
27054 .size main, .-main
27056 if $gcc_cv_as --64 -o conftest1.o conftest1.s > /dev/null 2>&1 \
27057 && $gcc_cv_ld -shared -melf_x86_64 -o conftest1.so conftest1.o > /dev/null 2>&1 \
27058 && $gcc_cv_as --64 -o conftest2.o conftest2.s > /dev/null 2>&1 \
27059 && $gcc_cv_ld -pie -melf_x86_64 -o conftest conftest2.o conftest1.so > /dev/null 2>&1; then
27060 gcc_cv_ld_pie_copyreloc=yes
27062 rm -f conftest conftest1.so conftest1.o conftest2.o conftest1.s conftest2.s
27064 esac
27068 cat >>confdefs.h <<_ACEOF
27069 #define HAVE_LD_PIE_COPYRELOC `if test x"$gcc_cv_ld_pie_copyreloc" = xyes; then echo 1; else echo 0; fi`
27070 _ACEOF
27072 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_pie_copyreloc" >&5
27073 $as_echo "$gcc_cv_ld_pie_copyreloc" >&6; }
27075 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker EH-compatible garbage collection of sections" >&5
27076 $as_echo_n "checking linker EH-compatible garbage collection of sections... " >&6; }
27077 gcc_cv_ld_eh_gc_sections=no
27078 if test $in_tree_ld = yes ; then
27079 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 \
27080 && test $in_tree_ld_is_elf = yes; then
27081 gcc_cv_ld_eh_gc_sections=yes
27083 elif test x$gcc_cv_as != x -a x$gcc_cv_ld != x -a x$gcc_cv_objdump != x ; then
27084 cat > conftest.s <<EOF
27085 .section .text
27086 .globl _start
27087 .type _start, @function
27088 _start:
27089 .long foo
27090 .size _start, .-_start
27091 .section .text.foo,"ax",@progbits
27092 .type foo, @function
27093 foo:
27094 .long 0
27095 .size foo, .-foo
27096 .section .gcc_except_table.foo,"a",@progbits
27097 .L0:
27098 .long 0
27099 .section .eh_frame,"a",@progbits
27100 .long .L0
27102 if $gcc_cv_as -o conftest.o conftest.s > /dev/null 2>&1; then
27103 if $gcc_cv_ld -o conftest conftest.o --entry=_start --gc-sections 2>&1 \
27104 | grep "gc-sections option ignored" > /dev/null; then
27105 gcc_cv_ld_eh_gc_sections=no
27106 elif $gcc_cv_objdump -h conftest 2> /dev/null \
27107 | grep gcc_except_table > /dev/null; then
27108 gcc_cv_ld_eh_gc_sections=yes
27109 # If no COMDAT groups, the compiler will emit .gnu.linkonce.t. sections.
27110 if test x$gcc_cv_as_comdat_group != xyes; then
27111 gcc_cv_ld_eh_gc_sections=no
27112 cat > conftest.s <<EOF
27113 .section .text
27114 .globl _start
27115 .type _start, @function
27116 _start:
27117 .long foo
27118 .size _start, .-_start
27119 .section .gnu.linkonce.t.foo,"ax",@progbits
27120 .type foo, @function
27121 foo:
27122 .long 0
27123 .size foo, .-foo
27124 .section .gcc_except_table.foo,"a",@progbits
27125 .L0:
27126 .long 0
27127 .section .eh_frame,"a",@progbits
27128 .long .L0
27130 if $gcc_cv_as -o conftest.o conftest.s > /dev/null 2>&1; then
27131 if $gcc_cv_ld -o conftest conftest.o --entry=_start --gc-sections 2>&1 \
27132 | grep "gc-sections option ignored" > /dev/null; then
27133 gcc_cv_ld_eh_gc_sections=no
27134 elif $gcc_cv_objdump -h conftest 2> /dev/null \
27135 | grep gcc_except_table > /dev/null; then
27136 gcc_cv_ld_eh_gc_sections=yes
27142 rm -f conftest.s conftest.o conftest
27144 case "$target" in
27145 hppa*-*-linux*)
27146 # ??? This apparently exposes a binutils bug with PC-relative relocations.
27147 gcc_cv_ld_eh_gc_sections=no
27149 esac
27150 if test x$gcc_cv_ld_eh_gc_sections = xyes; then
27152 $as_echo "#define HAVE_LD_EH_GC_SECTIONS 1" >>confdefs.h
27155 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_eh_gc_sections" >&5
27156 $as_echo "$gcc_cv_ld_eh_gc_sections" >&6; }
27158 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker EH garbage collection of sections bug" >&5
27159 $as_echo_n "checking linker EH garbage collection of sections bug... " >&6; }
27160 gcc_cv_ld_eh_gc_sections_bug=no
27161 if test $in_tree_ld = yes ; then
27162 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 \
27163 && test $in_tree_ld_is_elf = yes; then
27164 gcc_cv_ld_eh_gc_sections_bug=yes
27166 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
27167 gcc_cv_ld_eh_gc_sections_bug=yes
27168 cat > conftest.s <<EOF
27169 .section .text
27170 .globl _start
27171 .type _start, @function
27172 _start:
27173 .long foo
27174 .size _start, .-_start
27175 .section .text.startup.foo,"ax",@progbits
27176 .type foo, @function
27177 foo:
27178 .long 0
27179 .size foo, .-foo
27180 .section .gcc_except_table.foo,"a",@progbits
27181 .L0:
27182 .long 0
27183 .section .eh_frame,"a",@progbits
27184 .long .L0
27186 if $gcc_cv_as -o conftest.o conftest.s > /dev/null 2>&1; then
27187 if $gcc_cv_ld -o conftest conftest.o --entry=_start --gc-sections 2>&1 \
27188 | grep "gc-sections option ignored" > /dev/null; then
27190 elif $gcc_cv_objdump -h conftest 2> /dev/null \
27191 | grep gcc_except_table > /dev/null; then
27192 gcc_cv_ld_eh_gc_sections_bug=no
27195 rm -f conftest.s conftest.o conftest
27197 if test x$gcc_cv_ld_eh_gc_sections_bug = xyes; then
27199 $as_echo "#define HAVE_LD_EH_GC_SECTIONS_BUG 1" >>confdefs.h
27202 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_eh_gc_sections_bug" >&5
27203 $as_echo "$gcc_cv_ld_eh_gc_sections_bug" >&6; }
27205 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker for compressed debug sections" >&5
27206 $as_echo_n "checking linker for compressed debug sections... " >&6; }
27207 # gold/gld support compressed debug sections since binutils 2.19/2.21
27208 if test $in_tree_ld = yes ; then
27209 gcc_cv_ld_compress_debug=0
27210 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 \
27211 && test $in_tree_ld_is_elf = yes && test $ld_is_gold = yes; then
27212 gcc_cv_ld_compress_debug=2
27213 gcc_cv_ld_compress_debug_option="--compress-debug-sections"
27214 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 \
27215 && test $in_tree_ld_is_elf = yes; then
27216 gcc_cv_ld_compress_debug=1
27218 elif echo "$ld_ver" | grep GNU > /dev/null; then
27219 gcc_cv_ld_compress_debug=1
27220 if test 0"$ld_date" -lt 20050308; then
27221 if test -n "$ld_date"; then
27222 # If there was date string, but was earlier than 2005-03-08, fail
27223 gcc_cv_ld_compress_debug=0
27224 elif test "$ld_vers_major" -lt 2; then
27225 gcc_cv_ld_compress_debug=0
27226 elif test "$ld_vers_major" -eq 2 -a "$ld_vers_minor" -lt 21; then
27227 gcc_cv_ld_compress_debug=0
27230 if test $ld_is_gold = yes; then
27231 gcc_cv_ld_compress_debug=2
27232 gcc_cv_ld_compress_debug_option="--compress-debug-sections"
27234 else
27235 case "${target}" in
27236 *-*-solaris2*)
27237 # Introduced in Solaris 11.2.
27238 if $gcc_cv_ld --help 2>&1 | grep -- '-z compress-sections' > /dev/null; then
27239 gcc_cv_ld_compress_debug=3
27240 gcc_cv_ld_compress_debug_option="-z compress-sections"
27241 else
27242 gcc_cv_ld_compress_debug=0
27246 # Assume linkers other than GNU ld don't support compessed debug
27247 # sections.
27248 gcc_cv_ld_compress_debug=0
27250 esac
27253 cat >>confdefs.h <<_ACEOF
27254 #define HAVE_LD_COMPRESS_DEBUG $gcc_cv_ld_compress_debug
27255 _ACEOF
27258 cat >>confdefs.h <<_ACEOF
27259 #define LD_COMPRESS_DEBUG_OPTION "$gcc_cv_ld_compress_debug_option"
27260 _ACEOF
27262 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_compress_debug" >&5
27263 $as_echo "$gcc_cv_ld_compress_debug" >&6; }
27265 # --------
27266 # UNSORTED
27267 # --------
27269 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker --as-needed support" >&5
27270 $as_echo_n "checking linker --as-needed support... " >&6; }
27271 if test "${gcc_cv_ld_as_needed+set}" = set; then :
27272 $as_echo_n "(cached) " >&6
27273 else
27274 gcc_cv_ld_as_needed=no
27275 gcc_cv_ld_as_needed_option='--as-needed'
27276 gcc_cv_ld_no_as_needed_option='--no-as-needed'
27277 if test $in_tree_ld = yes ; then
27278 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 \
27279 && test $in_tree_ld_is_elf = yes; then
27280 gcc_cv_ld_as_needed=yes
27282 elif test x$gcc_cv_ld != x; then
27283 # Check if linker supports --as-needed and --no-as-needed options
27284 if $gcc_cv_ld --help 2>/dev/null | grep as-needed > /dev/null; then
27285 gcc_cv_ld_as_needed=yes
27286 else
27287 case "$target" in
27288 # Solaris 2 ld always supports -z ignore/-z record.
27289 *-*-solaris2*)
27290 gcc_cv_ld_as_needed=yes
27291 gcc_cv_ld_as_needed_option="-z ignore"
27292 gcc_cv_ld_no_as_needed_option="-z record"
27294 esac
27297 # --as-needed/-z ignore can only be used if libgcc_s.so.1 uses
27298 # dl_iterate_phdr, i.e. since Solaris 11.
27299 case "$target" in
27300 *-*-solaris2.1[1-9]*)
27301 case "$target" in
27302 i?86-*-* | x86_64-*-*)
27303 if echo "$ld_ver" | grep GNU > /dev/null; then
27304 # Doesn't work with gld on Solaris/x86 due to PR ld/12320.
27305 gcc_cv_ld_as_needed=no
27308 esac
27310 *-*-solaris2*)
27311 gcc_cv_ld_as_needed=no
27313 esac
27316 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_as_needed" >&5
27317 $as_echo "$gcc_cv_ld_as_needed" >&6; }
27318 if test x"$gcc_cv_ld_as_needed" = xyes; then
27320 $as_echo "#define HAVE_LD_AS_NEEDED 1" >>confdefs.h
27323 cat >>confdefs.h <<_ACEOF
27324 #define LD_AS_NEEDED_OPTION "$gcc_cv_ld_as_needed_option"
27325 _ACEOF
27328 cat >>confdefs.h <<_ACEOF
27329 #define LD_NO_AS_NEEDED_OPTION "$gcc_cv_ld_no_as_needed_option"
27330 _ACEOF
27334 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker mapfile support for clearing hardware capabilities" >&5
27335 $as_echo_n "checking linker mapfile support for clearing hardware capabilities... " >&6; }
27336 saved_LDFLAGS="$LDFLAGS"
27337 for clearcap_map in sol2-clearcapv2.map sol2-clearcap.map; do
27338 LDFLAGS="$saved_LDFLAGS -Wl,-M,${srcdir}/config/$clearcap_map"
27339 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
27340 /* end confdefs.h. */
27341 int main(void) {return 0;}
27342 _ACEOF
27343 if ac_fn_c_try_link "$LINENO"; then :
27344 gcc_cv_ld_clearcap=yes; break
27345 else
27346 gcc_cv_ld_clearcap=no
27348 rm -f core conftest.err conftest.$ac_objext \
27349 conftest$ac_exeext conftest.$ac_ext
27350 done
27351 LDFLAGS="$saved_LDFLAGS"
27352 if test "x$gcc_cv_ld_clearcap" = xyes; then
27354 $as_echo "#define HAVE_LD_CLEARCAP 1" >>confdefs.h
27356 ac_config_links="$ac_config_links clearcap.map:${srcdir}/config/$clearcap_map"
27359 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_clearcap" >&5
27360 $as_echo "$gcc_cv_ld_clearcap" >&6; }
27362 case "$target:$tm_file" in
27363 powerpc64-*-freebsd* | powerpc64*-*-linux* | powerpc*-*-linux*rs6000/biarch64.h*)
27364 case "$target" in
27365 *le-*-linux*)
27366 emul_name="-melf64lppc"
27368 *-*-linux*)
27369 emul_name="-melf64ppc"
27371 *-*-freebsd*)
27372 emul_name="-melf64ppc_fbsd"
27374 esac
27375 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker support for omitting dot symbols" >&5
27376 $as_echo_n "checking linker support for omitting dot symbols... " >&6; }
27377 if test "${gcc_cv_ld_no_dot_syms+set}" = set; then :
27378 $as_echo_n "(cached) " >&6
27379 else
27380 gcc_cv_ld_no_dot_syms=no
27381 if test x"$ld_is_gold" = xyes; then
27382 gcc_cv_ld_no_dot_syms=yes
27383 elif test $in_tree_ld = yes ; then
27384 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
27385 gcc_cv_ld_no_dot_syms=yes
27387 elif test x$gcc_cv_as != x -a x$gcc_cv_ld != x ; then
27388 cat > conftest1.s <<EOF
27389 .text
27390 bl .foo
27392 cat > conftest2.s <<EOF
27393 .section ".opd","aw"
27394 .align 3
27395 .globl foo
27396 .type foo,@function
27397 foo:
27398 .quad .LEfoo,.TOC.@tocbase,0
27399 .text
27400 .LEfoo:
27402 .size foo,.-.LEfoo
27404 if $gcc_cv_as -a64 -o conftest1.o conftest1.s > /dev/null 2>&1 \
27405 && $gcc_cv_as -a64 -o conftest2.o conftest2.s > /dev/null 2>&1 \
27406 && $gcc_cv_ld $emul_name -o conftest conftest1.o conftest2.o > /dev/null 2>&1; then
27407 gcc_cv_ld_no_dot_syms=yes
27409 rm -f conftest conftest1.o conftest2.o conftest1.s conftest2.s
27413 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_no_dot_syms" >&5
27414 $as_echo "$gcc_cv_ld_no_dot_syms" >&6; }
27415 if test x"$gcc_cv_ld_no_dot_syms" = xyes; then
27417 $as_echo "#define HAVE_LD_NO_DOT_SYMS 1" >>confdefs.h
27421 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker large toc support" >&5
27422 $as_echo_n "checking linker large toc support... " >&6; }
27423 if test "${gcc_cv_ld_large_toc+set}" = set; then :
27424 $as_echo_n "(cached) " >&6
27425 else
27426 gcc_cv_ld_large_toc=no
27427 if test x"$ld_is_gold" = xyes; then
27428 gcc_cv_ld_large_toc=yes
27429 elif test $in_tree_ld = yes ; then
27430 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
27431 gcc_cv_ld_large_toc=yes
27433 elif test x$gcc_cv_as != x -a x$gcc_cv_ld != x ; then
27434 cat > conftest.s <<EOF
27435 .section ".tbss","awT",@nobits
27436 .align 3
27437 ie0: .space 8
27438 .global _start
27439 .text
27440 _start:
27441 addis 9,13,ie0@got@tprel@ha
27442 ld 9,ie0@got@tprel@l(9)
27444 if $gcc_cv_as -a64 -o conftest.o conftest.s > /dev/null 2>&1 \
27445 && $gcc_cv_ld $emul_name --no-toc-sort -o conftest conftest.o > /dev/null 2>&1; then
27446 gcc_cv_ld_large_toc=yes
27448 rm -f conftest conftest.o conftest.s
27452 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_large_toc" >&5
27453 $as_echo "$gcc_cv_ld_large_toc" >&6; }
27454 if test x"$gcc_cv_ld_large_toc" = xyes; then
27456 $as_echo "#define HAVE_LD_LARGE_TOC 1" >>confdefs.h
27460 esac
27462 case "$target" in
27463 *-*-aix*)
27464 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker large toc support" >&5
27465 $as_echo_n "checking linker large toc support... " >&6; }
27466 if test "${gcc_cv_ld_large_toc+set}" = set; then :
27467 $as_echo_n "(cached) " >&6
27468 else
27469 gcc_cv_ld_large_toc=no
27470 if test x$gcc_cv_as != x ; then
27471 cat > conftest.s <<EOF
27472 .toc
27473 LC..1:
27474 .tc a[TC],a[RW]
27475 .extern a[RW]
27476 .csect .text[PR]
27477 .largetoctest:
27478 addis 9,LC..1@u(2)
27479 ld 3,LC..1@l(9)
27481 if $gcc_cv_as -a64 -o conftest.o conftest.s > /dev/null 2>&1; then
27482 gcc_cv_ld_large_toc=yes
27484 rm -f conftest conftest.o conftest.s
27488 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_large_toc" >&5
27489 $as_echo "$gcc_cv_ld_large_toc" >&6; }
27490 if test x"$gcc_cv_ld_large_toc" = xyes; then
27492 $as_echo "#define HAVE_LD_LARGE_TOC 1" >>confdefs.h
27496 esac
27498 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker --build-id support" >&5
27499 $as_echo_n "checking linker --build-id support... " >&6; }
27500 if test "${gcc_cv_ld_buildid+set}" = set; then :
27501 $as_echo_n "(cached) " >&6
27502 else
27503 gcc_cv_ld_buildid=no
27504 if test $in_tree_ld = yes ; then
27505 if test "$gcc_cv_gld_major_version" -eq 2 -a \
27506 "$gcc_cv_gld_minor_version" -ge 18 -o \
27507 "$gcc_cv_gld_major_version" -gt 2 \
27508 && test $in_tree_ld_is_elf = yes; then
27509 gcc_cv_ld_buildid=yes
27511 elif test x$gcc_cv_ld != x; then
27512 if $gcc_cv_ld --help 2>/dev/null | grep build-id > /dev/null; then
27513 gcc_cv_ld_buildid=yes
27517 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_buildid" >&5
27518 $as_echo "$gcc_cv_ld_buildid" >&6; }
27519 if test x"$gcc_cv_ld_buildid" = xyes; then
27521 $as_echo "#define HAVE_LD_BUILDID 1" >>confdefs.h
27525 # Check whether --enable-linker-build-id was given.
27526 if test "${enable_linker_build_id+set}" = set; then :
27527 enableval=$enable_linker_build_id;
27528 else
27529 enable_linker_build_id=no
27533 if test x"$enable_linker_build_id" = xyes; then
27534 if test x"$gcc_cv_ld_buildid" = xyes; then
27536 $as_echo "#define ENABLE_LD_BUILDID 1" >>confdefs.h
27538 else
27539 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: --build-id is not supported by your linker; --enable-linker-build-id ignored" >&5
27540 $as_echo "$as_me: WARNING: --build-id is not supported by your linker; --enable-linker-build-id ignored" >&2;}
27544 # In binutils 2.21, GNU ld gained support for new emulations fully
27545 # supporting the Solaris 2 ABI. Detect their presence in the linker used.
27546 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker *_sol2 emulation support" >&5
27547 $as_echo_n "checking linker *_sol2 emulation support... " >&6; }
27548 if test "${gcc_cv_ld_sol2_emulation+set}" = set; then :
27549 $as_echo_n "(cached) " >&6
27550 else
27551 gcc_cv_ld_sol2_emulation=no
27552 if test $in_tree_ld = yes ; then
27553 if test "$gcc_cv_gld_major_version" -eq 2 -a \
27554 "$gcc_cv_gld_minor_version" -ge 21 -o \
27555 "$gcc_cv_gld_major_version" -gt 2 \
27556 && test $in_tree_ld_is_elf = yes; then
27557 gcc_cv_ld_sol2_emulation=yes
27559 elif test x$gcc_cv_ld != x; then
27560 if $gcc_cv_ld -V 2>/dev/null | sed -e '1,/Supported emulations/d;q' | \
27561 grep _sol2 > /dev/null; then
27562 gcc_cv_ld_sol2_emulation=yes
27566 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_sol2_emulation" >&5
27567 $as_echo "$gcc_cv_ld_sol2_emulation" >&6; }
27568 if test x"$gcc_cv_ld_sol2_emulation" = xyes; then
27570 $as_echo "#define HAVE_LD_SOL2_EMULATION 1" >>confdefs.h
27574 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker --sysroot support" >&5
27575 $as_echo_n "checking linker --sysroot support... " >&6; }
27576 if test "${gcc_cv_ld_sysroot+set}" = set; then :
27577 $as_echo_n "(cached) " >&6
27578 else
27579 gcc_cv_ld_sysroot=no
27580 if test $in_tree_ld = yes ; then
27581 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
27582 gcc_cv_ld_sysroot=yes
27584 elif test x$gcc_cv_ld != x; then
27585 if $gcc_cv_ld --help 2>/dev/null | grep sysroot > /dev/null; then
27586 gcc_cv_ld_sysroot=yes
27590 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_sysroot" >&5
27591 $as_echo "$gcc_cv_ld_sysroot" >&6; }
27592 if test x"$gcc_cv_ld_sysroot" = xyes; then
27594 $as_echo "#define HAVE_LD_SYSROOT 1" >>confdefs.h
27598 # Test for stack protector support in target C library.
27599 { $as_echo "$as_me:${as_lineno-$LINENO}: checking __stack_chk_fail in target C library" >&5
27600 $as_echo_n "checking __stack_chk_fail in target C library... " >&6; }
27601 if test "${gcc_cv_libc_provides_ssp+set}" = set; then :
27602 $as_echo_n "(cached) " >&6
27603 else
27604 gcc_cv_libc_provides_ssp=no
27605 case "$target" in
27606 *-*-linux* | *-*-kfreebsd*-gnu | *-*-knetbsd*-gnu)
27607 # glibc 2.4 and later provides __stack_chk_fail and
27608 # either __stack_chk_guard, or TLS access to stack guard canary.
27610 if test $glibc_version_major -gt 2 \
27611 || ( test $glibc_version_major -eq 2 && test $glibc_version_minor -ge 4 ); then :
27612 gcc_cv_libc_provides_ssp=yes
27613 else
27615 if test -f $target_header_dir/features.h \
27616 && $EGREP '^[ ]*#[ ]*define[ ]+__GNU_LIBRARY__[ ]+([1-9][0-9]|[6-9])' \
27617 $target_header_dir/features.h > /dev/null; then
27618 if $EGREP '^[ ]*#[ ]*define[ ]+__UCLIBC__[ ]+1' \
27619 $target_header_dir/features.h > /dev/null && \
27620 test -f $target_header_dir/bits/uClibc_config.h && \
27621 $EGREP '^[ ]*#[ ]*define[ ]+__UCLIBC_HAS_SSP__[ ]+1' \
27622 $target_header_dir/bits/uClibc_config.h > /dev/null; then
27623 gcc_cv_libc_provides_ssp=yes
27625 # all versions of Bionic support stack protector
27626 elif test -f $target_header_dir/sys/cdefs.h \
27627 && $EGREP '^[ ]*#[ ]*define[ ]+__BIONIC__[ ]+1' \
27628 $target_header_dir/sys/cdefs.h > /dev/null; then
27629 gcc_cv_libc_provides_ssp=yes
27633 *-*-gnu*)
27634 # Avoid complicated tests (see
27635 # <http://gcc.gnu.org/ml/gcc/2008-10/msg00130.html>) and for now
27636 # simply assert that glibc does provide this, which is true for all
27637 # realistically usable GNU/Hurd configurations.
27638 gcc_cv_libc_provides_ssp=yes;;
27639 *-*-darwin* | *-*-freebsd*)
27640 ac_fn_c_check_func "$LINENO" "__stack_chk_fail" "ac_cv_func___stack_chk_fail"
27641 if test "x$ac_cv_func___stack_chk_fail" = x""yes; then :
27642 gcc_cv_libc_provides_ssp=yes
27643 else
27644 echo "no __stack_chk_fail on this target"
27648 *) gcc_cv_libc_provides_ssp=no ;;
27649 esac
27651 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_libc_provides_ssp" >&5
27652 $as_echo "$gcc_cv_libc_provides_ssp" >&6; }
27654 if test x$gcc_cv_libc_provides_ssp = xyes; then
27656 $as_echo "#define TARGET_LIBC_PROVIDES_SSP 1" >>confdefs.h
27660 # Test for <sys/sdt.h> on the target.
27662 { $as_echo "$as_me:${as_lineno-$LINENO}: checking sys/sdt.h in the target C library" >&5
27663 $as_echo_n "checking sys/sdt.h in the target C library... " >&6; }
27664 have_sys_sdt_h=no
27665 if test -f $target_header_dir/sys/sdt.h; then
27666 have_sys_sdt_h=yes
27668 $as_echo "#define HAVE_SYS_SDT_H 1" >>confdefs.h
27671 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_sys_sdt_h" >&5
27672 $as_echo "$have_sys_sdt_h" >&6; }
27674 # Check if TFmode long double should be used by default or not.
27675 # Some glibc targets used DFmode long double, but with glibc 2.4
27676 # and later they can use TFmode.
27677 case "$target" in
27678 powerpc*-*-linux* | \
27679 sparc*-*-linux* | \
27680 s390*-*-linux* | \
27681 alpha*-*-linux*)
27683 # Check whether --with-long-double-128 was given.
27684 if test "${with_long_double_128+set}" = set; then :
27685 withval=$with_long_double_128; gcc_cv_target_ldbl128="$with_long_double_128"
27686 else
27688 if test $glibc_version_major -gt 2 \
27689 || ( test $glibc_version_major -eq 2 && test $glibc_version_minor -ge 4 ); then :
27690 gcc_cv_target_ldbl128=yes
27691 else
27693 gcc_cv_target_ldbl128=no
27694 grep '^[ ]*#[ ]*define[ ][ ]*__LONG_DOUBLE_MATH_OPTIONAL' \
27695 $target_header_dir/bits/wordsize.h > /dev/null 2>&1 \
27696 && gcc_cv_target_ldbl128=yes
27702 esac
27703 if test x$gcc_cv_target_ldbl128 = xyes; then
27705 $as_echo "#define TARGET_DEFAULT_LONG_DOUBLE_128 1" >>confdefs.h
27709 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dl_iterate_phdr in target C library" >&5
27710 $as_echo_n "checking dl_iterate_phdr in target C library... " >&6; }
27711 gcc_cv_target_dl_iterate_phdr=unknown
27712 case "$target" in
27713 # Restrict to Solaris 11+. While most of the Solaris 11 linker changes
27714 # were backported to Solaris 10 Update 10, dl_iterate_phdr only lives in
27715 # libdl there, both complicating its use and breaking compatibility
27716 # between Solaris 10 updates.
27717 *-*-solaris2.1[1-9]*)
27718 # <link.h> needs both a dl_iterate_phdr declaration and support for
27719 # compilation with largefile support.
27720 if grep dl_iterate_phdr $target_header_dir/link.h > /dev/null 2>&1 \
27721 && grep 'large file capable' $target_header_dir/link.h > /dev/null 2>&1; then
27722 gcc_cv_target_dl_iterate_phdr=yes
27723 else
27724 gcc_cv_target_dl_iterate_phdr=no
27727 *-*-dragonfly* | *-*-freebsd*)
27728 if grep dl_iterate_phdr $target_header_dir/sys/link_elf.h > /dev/null 2>&1; then
27729 gcc_cv_target_dl_iterate_phdr=yes
27730 else
27731 gcc_cv_target_dl_iterate_phdr=no
27734 esac
27736 if test x$gcc_cv_target_dl_iterate_phdr = xyes; then
27738 $as_echo "#define TARGET_DL_ITERATE_PHDR 1" >>confdefs.h
27741 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_target_dl_iterate_phdr" >&5
27742 $as_echo "$gcc_cv_target_dl_iterate_phdr" >&6; }
27744 # We no longer support different GC mechanisms. Emit an error if
27745 # the user configures with --with-gc.
27747 # Check whether --with-gc was given.
27748 if test "${with_gc+set}" = set; then :
27749 withval=$with_gc; as_fn_error "Configure option --with-gc is only supported up to GCC 4.7.x" "$LINENO" 5
27753 # Libraries to use on the host. This will normally be set by the top
27754 # level Makefile. Here we simply capture the value for our Makefile.
27755 if test -z "${HOST_LIBS+set}"; then
27756 HOST_LIBS=
27760 # Use the system's zlib library.
27761 zlibdir=-L../zlib
27762 zlibinc="-I\$(srcdir)/../zlib"
27764 # Check whether --with-system-zlib was given.
27765 if test "${with_system_zlib+set}" = set; then :
27766 withval=$with_system_zlib; zlibdir=
27767 zlibinc=
27775 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable maintainer-specific portions of Makefiles" >&5
27776 $as_echo_n "checking whether to enable maintainer-specific portions of Makefiles... " >&6; }
27777 # Check whether --enable-maintainer-mode was given.
27778 if test "${enable_maintainer_mode+set}" = set; then :
27779 enableval=$enable_maintainer_mode; maintainer_mode=$enableval
27780 else
27781 maintainer_mode=no
27785 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $maintainer_mode" >&5
27786 $as_echo "$maintainer_mode" >&6; }
27788 if test "$maintainer_mode" = "yes"; then
27789 MAINT=''
27790 else
27791 MAINT='#'
27795 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to avoid linking multiple front-ends at once" >&5
27796 $as_echo_n "checking whether to avoid linking multiple front-ends at once... " >&6; }
27797 # Check whether --enable-link-mutex was given.
27798 if test "${enable_link_mutex+set}" = set; then :
27799 enableval=$enable_link_mutex; do_link_mutex=$enableval
27800 else
27801 do_link_mutex=no
27804 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $do_link_mutex" >&5
27805 $as_echo "$do_link_mutex" >&6; }
27807 if test "$do_link_mutex" = "yes"; then
27808 DO_LINK_MUTEX=true
27809 else
27810 DO_LINK_MUTEX=false
27814 # --------------
27815 # Language hooks
27816 # --------------
27818 # Make empty files to contain the specs and options for each language.
27819 # Then add #include lines to for a compiler that has specs and/or options.
27821 subdirs=
27822 lang_opt_files=
27823 lang_specs_files=
27824 lang_tree_files=
27825 # These (without "all_") are set in each config-lang.in.
27826 # `language' must be a single word so is spelled singularly.
27827 all_languages=
27828 all_compilers=
27829 all_outputs='Makefile'
27830 # List of language makefile fragments.
27831 all_lang_makefrags=
27832 # Additional files for gengtype
27833 all_gtfiles="$target_gtfiles"
27835 # These are the languages that are set in --enable-languages,
27836 # and are available in the GCC tree.
27837 all_selected_languages=
27839 # Add the language fragments.
27840 # Languages are added via two mechanisms. Some information must be
27841 # recorded in makefile variables, these are defined in config-lang.in.
27842 # We accumulate them and plug them into the main Makefile.
27843 # The other mechanism is a set of hooks for each of the main targets
27844 # like `clean', `install', etc.
27846 language_hooks="Make-hooks"
27848 for lang in ${srcdir}/*/config-lang.in
27850 test "$lang" = "${srcdir}/*/config-lang.in" && continue
27852 lang_alias=`sed -n -e 's,^language=['"'"'"'"]\(.*\)["'"'"'"'].*$,\1,p' -e 's,^language=\([^ ]*\).*$,\1,p' $lang`
27853 if test "x$lang_alias" = x
27854 then
27855 echo "$lang doesn't set \$language." 1>&2
27856 exit 1
27858 subdir="`echo $lang | sed -e 's,^.*/\([^/]*\)/config-lang.in$,\1,'`"
27859 subdirs="$subdirs $subdir"
27861 # $gcc_subdir is where the gcc integration files are to be found
27862 # for a language, both for internal compiler purposes (compiler
27863 # sources implementing front-end to GCC tree converters), and for
27864 # build infrastructure purposes (Make-lang.in, etc.)
27866 # This will be <subdir> (relative to $srcdir) if a line like
27867 # gcc_subdir="<subdir>" or gcc_subdir=<subdir>
27868 # is found in <langdir>/config-lang.in, and will remain <langdir>
27869 # otherwise.
27871 # Except for the language alias (fetched above), the regular
27872 # "config-lang.in" contents are always retrieved from $gcc_subdir,
27873 # so a <langdir>/config-lang.in setting gcc_subdir typically sets
27874 # only this and the language alias.
27876 gcc_subdir=`sed -n -e 's,^gcc_subdir=['"'"'"'"]\(.*\)["'"'"'"'].*$,\1,p' -e 's,^gcc_subdir=\([^ ]*\).*$,\1,p' $lang`
27877 if [ "$gcc_subdir" = "" ]; then
27878 gcc_subdir="$subdir"
27881 case ",$enable_languages," in
27882 *,$lang_alias,*)
27883 all_selected_languages="$all_selected_languages $lang_alias"
27884 if test -f $srcdir/$gcc_subdir/lang-specs.h; then
27885 lang_specs_files="$lang_specs_files $srcdir/$gcc_subdir/lang-specs.h"
27888 esac
27890 language=
27891 boot_language=
27892 compilers=
27893 outputs=
27894 gtfiles=
27895 subdir_requires=
27896 . ${srcdir}/$gcc_subdir/config-lang.in
27897 if test "x$language" = x
27898 then
27899 echo "${srcdir}/$gcc_subdir/config-lang.in doesn't set \$language." 1>&2
27900 exit 1
27903 ok=:
27904 case ",$enable_languages," in
27905 *,$lang_alias,*) ;;
27907 for i in $subdir_requires; do
27908 test -f "${srcdir}/$i/config-lang.in" && continue
27909 ok=false
27910 break
27911 done
27913 esac
27914 $ok || continue
27916 all_lang_makefrags="$all_lang_makefrags \$(srcdir)/$gcc_subdir/Make-lang.in"
27917 if test -f $srcdir/$gcc_subdir/lang.opt; then
27918 lang_opt_files="$lang_opt_files $srcdir/$gcc_subdir/lang.opt"
27919 all_opt_files="$all_opt_files $srcdir/$gcc_subdir/lang.opt"
27921 if test -f $srcdir/$gcc_subdir/$subdir-tree.def; then
27922 lang_tree_files="$lang_tree_files $srcdir/$gcc_subdir/$subdir-tree.def"
27924 all_languages="$all_languages $language"
27925 all_compilers="$all_compilers $compilers"
27926 all_outputs="$all_outputs $outputs"
27927 all_gtfiles="$all_gtfiles [$subdir] $gtfiles"
27928 case ",$enable_languages," in
27929 *,lto,*)
27931 $as_echo "#define ENABLE_LTO 1" >>confdefs.h
27933 enable_lto=yes
27936 *) ;;
27937 esac
27938 done
27940 check_languages=
27941 for language in $all_selected_languages
27943 check_languages="$check_languages check-$language"
27944 done
27946 # We link each language in with a set of hooks, reached indirectly via
27947 # lang.${target}. Only do so for selected languages.
27949 rm -f Make-hooks
27950 touch Make-hooks
27951 target_list="all.cross start.encap rest.encap tags \
27952 install-common install-man install-info install-pdf install-html dvi \
27953 pdf html uninstall info man srcextra srcman srcinfo \
27954 mostlyclean clean distclean maintainer-clean install-plugin"
27956 for t in $target_list
27959 for lang in $all_selected_languages
27961 x="$x $lang.$t"
27962 done
27963 echo "lang.$t: $x" >> Make-hooks
27964 done
27966 # --------
27967 # Option include files
27968 # --------
27970 ${AWK} -f $srcdir/opt-include.awk $all_opt_files > option-includes.mk
27971 option_includes="option-includes.mk"
27974 # --------
27975 # UNSORTED
27976 # --------
27978 # Create .gdbinit.
27980 echo "dir ." > .gdbinit
27981 echo "dir ${srcdir}" >> .gdbinit
27982 if test x$gdb_needs_out_file_path = xyes
27983 then
27984 echo "dir ${srcdir}/config/"`dirname ${out_file}` >> .gdbinit
27986 if test "x$subdirs" != x; then
27987 for s in $subdirs
27989 echo "dir ${srcdir}/$s" >> .gdbinit
27990 done
27992 echo "source ${srcdir}/gdbinit.in" >> .gdbinit
27993 echo "python import sys; sys.path.append('${srcdir}'); import gdbhooks" >> .gdbinit
27995 # Put a breakpoint on __asan_report_error to help with debugging buffer
27996 # overflow.
27997 case "$CFLAGS" in
27998 *-fsanitize=address*)
27999 echo "source ${srcdir}/gdbasan.in" >> .gdbinit
28001 esac
28003 gcc_tooldir='$(libsubdir)/$(libsubdir_to_prefix)$(target_noncanonical)'
28007 # Find a directory in which to install a shared libgcc.
28009 # Check whether --enable-version-specific-runtime-libs was given.
28010 if test "${enable_version_specific_runtime_libs+set}" = set; then :
28011 enableval=$enable_version_specific_runtime_libs;
28015 # Substitute configuration variables
28078 # Echo link setup.
28079 if test x${build} = x${host} ; then
28080 if test x${host} = x${target} ; then
28081 echo "Links are now set up to build a native compiler for ${target}." 1>&2
28082 else
28083 echo "Links are now set up to build a cross-compiler" 1>&2
28084 echo " from ${host} to ${target}." 1>&2
28086 else
28087 if test x${host} = x${target} ; then
28088 echo "Links are now set up to build (on ${build}) a native compiler" 1>&2
28089 echo " for ${target}." 1>&2
28090 else
28091 echo "Links are now set up to build (on ${build}) a cross-compiler" 1>&2
28092 echo " from ${host} to ${target}." 1>&2
28101 if test "x${ISLLIBS}" != "x" ; then
28103 $as_echo "#define HAVE_isl 1" >>confdefs.h
28107 # Check whether isl_schedule_constraints_compute_schedule is available;
28108 # it's new in ISL-0.13.
28109 if test "x${ISLLIBS}" != "x" ; then
28110 saved_CFLAGS="$CFLAGS"
28111 CFLAGS="$CFLAGS $ISLINC"
28112 saved_LIBS="$LIBS"
28113 LIBS="$LIBS $ISLLIBS $GMPLIBS"
28115 { $as_echo "$as_me:${as_lineno-$LINENO}: checking Checking for isl_schedule_constraints_compute_schedule" >&5
28116 $as_echo_n "checking Checking for isl_schedule_constraints_compute_schedule... " >&6; }
28117 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
28118 /* end confdefs.h. */
28119 #include <isl/schedule.h>
28121 main ()
28123 isl_schedule_constraints_compute_schedule (NULL);
28125 return 0;
28127 _ACEOF
28128 if ac_fn_c_try_link "$LINENO"; then :
28129 ac_has_isl_schedule_constraints_compute_schedule=yes
28130 else
28131 ac_has_isl_schedule_constraints_compute_schedule=no
28133 rm -f core conftest.err conftest.$ac_objext \
28134 conftest$ac_exeext conftest.$ac_ext
28135 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_has_isl_schedule_constraints_compute_schedule" >&5
28136 $as_echo "$ac_has_isl_schedule_constraints_compute_schedule" >&6; }
28138 LIBS="$saved_LIBS"
28139 CFLAGS="$saved_CFLAGS"
28141 if test x"$ac_has_isl_schedule_constraints_compute_schedule" = x"yes"; then
28143 $as_echo "#define HAVE_ISL_SCHED_CONSTRAINTS_COMPUTE_SCHEDULE 1" >>confdefs.h
28148 # Check for plugin support
28149 # Check whether --enable-plugin was given.
28150 if test "${enable_plugin+set}" = set; then :
28151 enableval=$enable_plugin; enable_plugin=$enableval
28152 else
28153 enable_plugin=yes; default_plugin=yes
28157 pluginlibs=
28159 case "${host}" in
28160 *-*-darwin*)
28161 if test x$build = x$host; then
28162 export_sym_check="nm${exeext} -g"
28163 elif test x$host = x$target; then
28164 export_sym_check="$gcc_cv_nm -g"
28165 else
28166 export_sym_check=
28170 if test x$build = x$host; then
28171 export_sym_check="objdump${exeext} -T"
28172 elif test x$host = x$target; then
28173 export_sym_check="$gcc_cv_objdump -T"
28174 else
28175 export_sym_check=
28178 esac
28180 if test x"$enable_plugin" = x"yes"; then
28182 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for exported symbols" >&5
28183 $as_echo_n "checking for exported symbols... " >&6; }
28184 if test "x$export_sym_check" != x; then
28185 echo "int main() {return 0;} int foobar() {return 0;}" > conftest.c
28186 ${CC} ${CFLAGS} ${LDFLAGS} conftest.c -o conftest$ac_exeext > /dev/null 2>&1
28187 if $export_sym_check conftest$ac_exeext | grep -q foobar > /dev/null; then
28188 : # No need to use a flag
28189 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
28190 $as_echo "yes" >&6; }
28191 else
28192 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
28193 $as_echo "yes" >&6; }
28194 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -rdynamic" >&5
28195 $as_echo_n "checking for -rdynamic... " >&6; }
28196 ${CC} ${CFLAGS} ${LDFLAGS} -rdynamic conftest.c -o conftest$ac_exeext > /dev/null 2>&1
28197 if $export_sym_check conftest$ac_exeext | grep -q foobar > /dev/null; then
28198 plugin_rdynamic=yes
28199 pluginlibs="-rdynamic"
28200 else
28201 plugin_rdynamic=no
28202 enable_plugin=no
28204 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $plugin_rdynamic" >&5
28205 $as_echo "$plugin_rdynamic" >&6; }
28207 else
28208 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unable to check" >&5
28209 $as_echo "unable to check" >&6; }
28212 # Check -ldl
28213 saved_LIBS="$LIBS"
28214 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing dlopen" >&5
28215 $as_echo_n "checking for library containing dlopen... " >&6; }
28216 if test "${ac_cv_search_dlopen+set}" = set; then :
28217 $as_echo_n "(cached) " >&6
28218 else
28219 ac_func_search_save_LIBS=$LIBS
28220 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
28221 /* end confdefs.h. */
28223 /* Override any GCC internal prototype to avoid an error.
28224 Use char because int might match the return type of a GCC
28225 builtin and then its argument prototype would still apply. */
28226 #ifdef __cplusplus
28227 extern "C"
28228 #endif
28229 char dlopen ();
28231 main ()
28233 return dlopen ();
28235 return 0;
28237 _ACEOF
28238 for ac_lib in '' dl; do
28239 if test -z "$ac_lib"; then
28240 ac_res="none required"
28241 else
28242 ac_res=-l$ac_lib
28243 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
28245 if ac_fn_c_try_link "$LINENO"; then :
28246 ac_cv_search_dlopen=$ac_res
28248 rm -f core conftest.err conftest.$ac_objext \
28249 conftest$ac_exeext
28250 if test "${ac_cv_search_dlopen+set}" = set; then :
28251 break
28253 done
28254 if test "${ac_cv_search_dlopen+set}" = set; then :
28256 else
28257 ac_cv_search_dlopen=no
28259 rm conftest.$ac_ext
28260 LIBS=$ac_func_search_save_LIBS
28262 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_dlopen" >&5
28263 $as_echo "$ac_cv_search_dlopen" >&6; }
28264 ac_res=$ac_cv_search_dlopen
28265 if test "$ac_res" != no; then :
28266 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
28270 if test x"$ac_cv_search_dlopen" = x"-ldl"; then
28271 pluginlibs="$pluginlibs -ldl"
28273 LIBS="$saved_LIBS"
28275 # Check that we can build shared objects with -fPIC -shared
28276 saved_LDFLAGS="$LDFLAGS"
28277 saved_CFLAGS="$CFLAGS"
28278 case "${host}" in
28279 *-*-darwin*)
28280 CFLAGS=`echo $CFLAGS | sed s/-mdynamic-no-pic//g`
28281 CFLAGS="$CFLAGS -fPIC"
28282 LDFLAGS="$LDFLAGS -shared -undefined dynamic_lookup"
28285 CFLAGS="$CFLAGS -fPIC"
28286 LDFLAGS="$LDFLAGS -fPIC -shared"
28288 esac
28289 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -fPIC -shared" >&5
28290 $as_echo_n "checking for -fPIC -shared... " >&6; }
28291 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
28292 /* end confdefs.h. */
28293 extern int X;
28295 main ()
28297 return X == 0;
28299 return 0;
28301 _ACEOF
28302 if ac_fn_c_try_link "$LINENO"; then :
28303 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
28304 $as_echo "yes" >&6; }; have_pic_shared=yes
28305 else
28306 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
28307 $as_echo "no" >&6; }; have_pic_shared=no
28309 rm -f core conftest.err conftest.$ac_objext \
28310 conftest$ac_exeext conftest.$ac_ext
28311 if test x"$have_pic_shared" != x"yes" -o x"$ac_cv_search_dlopen" = x"no"; then
28312 pluginlibs=
28313 enable_plugin=no
28315 LDFLAGS="$saved_LDFLAGS"
28316 CFLAGS="$saved_CFLAGS"
28318 # If plugin support had been requested but not available, fail.
28319 if test x"$enable_plugin" = x"no" ; then
28320 if test x"$default_plugin" != x"yes"; then
28321 as_fn_error "
28322 Building GCC with plugin support requires a host that supports
28323 -fPIC, -shared, -ldl and -rdynamic." "$LINENO" 5
28330 if test x"$enable_plugin" = x"yes"; then
28332 $as_echo "#define ENABLE_PLUGIN 1" >>confdefs.h
28337 # Enable --enable-host-shared
28338 # Check whether --enable-host-shared was given.
28339 if test "${enable_host_shared+set}" = set; then :
28340 enableval=$enable_host_shared; PICFLAG=-fPIC
28341 else
28342 PICFLAG=
28349 # Check whether --enable-libquadmath-support was given.
28350 if test "${enable_libquadmath_support+set}" = set; then :
28351 enableval=$enable_libquadmath_support; ENABLE_LIBQUADMATH_SUPPORT=$enableval
28352 else
28353 ENABLE_LIBQUADMATH_SUPPORT=yes
28356 if test "${ENABLE_LIBQUADMATH_SUPPORT}" != "no" ; then
28358 $as_echo "#define ENABLE_LIBQUADMATH_SUPPORT 1" >>confdefs.h
28363 # Specify what hash style to use by default.
28365 # Check whether --with-linker-hash-style was given.
28366 if test "${with_linker_hash_style+set}" = set; then :
28367 withval=$with_linker_hash_style; case x"$withval" in
28368 xsysv)
28369 LINKER_HASH_STYLE=sysv
28371 xgnu)
28372 LINKER_HASH_STYLE=gnu
28374 xboth)
28375 LINKER_HASH_STYLE=both
28378 as_fn_error "$withval is an invalid option to --with-linker-hash-style" "$LINENO" 5
28380 esac
28381 else
28382 LINKER_HASH_STYLE=''
28385 if test x"${LINKER_HASH_STYLE}" != x; then
28387 cat >>confdefs.h <<_ACEOF
28388 #define LINKER_HASH_STYLE "$LINKER_HASH_STYLE"
28389 _ACEOF
28393 # Specify what should be the default of -fdiagnostics-color option.
28395 # Check whether --with-diagnostics-color was given.
28396 if test "${with_diagnostics_color+set}" = set; then :
28397 withval=$with_diagnostics_color; case x"$withval" in
28398 xnever)
28399 DIAGNOSTICS_COLOR_DEFAULT=DIAGNOSTICS_COLOR_NO
28401 xauto)
28402 DIAGNOSTICS_COLOR_DEFAULT=DIAGNOSTICS_COLOR_AUTO
28404 xauto-if-env)
28405 DIAGNOSTICS_COLOR_DEFAULT=-1
28407 xalways)
28408 DIAGNOSTICS_COLOR_DEFAULT=DIAGNOSTICS_COLOR_YES
28411 as_fn_error "$withval is an invalid option to --with-diagnostics-color" "$LINENO" 5
28413 esac
28414 else
28415 DIAGNOSTICS_COLOR_DEFAULT=DIAGNOSTICS_COLOR_AUTO
28419 cat >>confdefs.h <<_ACEOF
28420 #define DIAGNOSTICS_COLOR_DEFAULT $DIAGNOSTICS_COLOR_DEFAULT
28421 _ACEOF
28424 # Generate gcc-driver-name.h containing GCC_DRIVER_NAME for the benefit
28425 # of jit/jit-playback.c.
28426 cat > gcc-driver-name.h <<EOF
28427 #define GCC_DRIVER_NAME "${target_noncanonical}-gcc-${gcc_BASEVER}${exeext}"
28430 # Configure the subdirectories
28431 # AC_CONFIG_SUBDIRS($subdirs)
28433 # Create the Makefile
28434 # and configure language subdirectories
28435 ac_config_files="$ac_config_files $all_outputs"
28438 ac_config_commands="$ac_config_commands default"
28440 cat >confcache <<\_ACEOF
28441 # This file is a shell script that caches the results of configure
28442 # tests run on this system so they can be shared between configure
28443 # scripts and configure runs, see configure's option --config-cache.
28444 # It is not useful on other systems. If it contains results you don't
28445 # want to keep, you may remove or edit it.
28447 # config.status only pays attention to the cache file if you give it
28448 # the --recheck option to rerun configure.
28450 # `ac_cv_env_foo' variables (set or unset) will be overridden when
28451 # loading this file, other *unset* `ac_cv_foo' will be assigned the
28452 # following values.
28454 _ACEOF
28456 # The following way of writing the cache mishandles newlines in values,
28457 # but we know of no workaround that is simple, portable, and efficient.
28458 # So, we kill variables containing newlines.
28459 # Ultrix sh set writes to stderr and can't be redirected directly,
28460 # and sets the high bit in the cache file unless we assign to the vars.
28462 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
28463 eval ac_val=\$$ac_var
28464 case $ac_val in #(
28465 *${as_nl}*)
28466 case $ac_var in #(
28467 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
28468 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
28469 esac
28470 case $ac_var in #(
28471 _ | IFS | as_nl) ;; #(
28472 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
28473 *) { eval $ac_var=; unset $ac_var;} ;;
28474 esac ;;
28475 esac
28476 done
28478 (set) 2>&1 |
28479 case $as_nl`(ac_space=' '; set) 2>&1` in #(
28480 *${as_nl}ac_space=\ *)
28481 # `set' does not quote correctly, so add quotes: double-quote
28482 # substitution turns \\\\ into \\, and sed turns \\ into \.
28483 sed -n \
28484 "s/'/'\\\\''/g;
28485 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
28486 ;; #(
28488 # `set' quotes correctly as required by POSIX, so do not add quotes.
28489 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
28491 esac |
28492 sort
28494 sed '
28495 /^ac_cv_env_/b end
28496 t clear
28497 :clear
28498 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
28499 t end
28500 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
28501 :end' >>confcache
28502 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
28503 if test -w "$cache_file"; then
28504 test "x$cache_file" != "x/dev/null" &&
28505 { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
28506 $as_echo "$as_me: updating cache $cache_file" >&6;}
28507 cat confcache >$cache_file
28508 else
28509 { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
28510 $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
28513 rm -f confcache
28515 test "x$prefix" = xNONE && prefix=$ac_default_prefix
28516 # Let make expand exec_prefix.
28517 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
28519 DEFS=-DHAVE_CONFIG_H
28521 ac_libobjs=
28522 ac_ltlibobjs=
28523 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
28524 # 1. Remove the extension, and $U if already installed.
28525 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
28526 ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
28527 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
28528 # will be set to the directory where LIBOBJS objects are built.
28529 as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
28530 as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
28531 done
28532 LIBOBJS=$ac_libobjs
28534 LTLIBOBJS=$ac_ltlibobjs
28539 : ${CONFIG_STATUS=./config.status}
28540 ac_write_fail=0
28541 ac_clean_files_save=$ac_clean_files
28542 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
28543 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
28544 $as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
28545 as_write_fail=0
28546 cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
28547 #! $SHELL
28548 # Generated by $as_me.
28549 # Run this file to recreate the current configuration.
28550 # Compiler output produced by configure, useful for debugging
28551 # configure, is in config.log if it exists.
28553 debug=false
28554 ac_cs_recheck=false
28555 ac_cs_silent=false
28557 SHELL=\${CONFIG_SHELL-$SHELL}
28558 export SHELL
28559 _ASEOF
28560 cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
28561 ## -------------------- ##
28562 ## M4sh Initialization. ##
28563 ## -------------------- ##
28565 # Be more Bourne compatible
28566 DUALCASE=1; export DUALCASE # for MKS sh
28567 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
28568 emulate sh
28569 NULLCMD=:
28570 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
28571 # is contrary to our usage. Disable this feature.
28572 alias -g '${1+"$@"}'='"$@"'
28573 setopt NO_GLOB_SUBST
28574 else
28575 case `(set -o) 2>/dev/null` in #(
28576 *posix*) :
28577 set -o posix ;; #(
28578 *) :
28580 esac
28584 as_nl='
28586 export as_nl
28587 # Printing a long string crashes Solaris 7 /usr/bin/printf.
28588 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
28589 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
28590 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
28591 # Prefer a ksh shell builtin over an external printf program on Solaris,
28592 # but without wasting forks for bash or zsh.
28593 if test -z "$BASH_VERSION$ZSH_VERSION" \
28594 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
28595 as_echo='print -r --'
28596 as_echo_n='print -rn --'
28597 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
28598 as_echo='printf %s\n'
28599 as_echo_n='printf %s'
28600 else
28601 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
28602 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
28603 as_echo_n='/usr/ucb/echo -n'
28604 else
28605 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
28606 as_echo_n_body='eval
28607 arg=$1;
28608 case $arg in #(
28609 *"$as_nl"*)
28610 expr "X$arg" : "X\\(.*\\)$as_nl";
28611 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
28612 esac;
28613 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
28615 export as_echo_n_body
28616 as_echo_n='sh -c $as_echo_n_body as_echo'
28618 export as_echo_body
28619 as_echo='sh -c $as_echo_body as_echo'
28622 # The user is always right.
28623 if test "${PATH_SEPARATOR+set}" != set; then
28624 PATH_SEPARATOR=:
28625 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
28626 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
28627 PATH_SEPARATOR=';'
28632 # IFS
28633 # We need space, tab and new line, in precisely that order. Quoting is
28634 # there to prevent editors from complaining about space-tab.
28635 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
28636 # splitting by setting IFS to empty value.)
28637 IFS=" "" $as_nl"
28639 # Find who we are. Look in the path if we contain no directory separator.
28640 case $0 in #((
28641 *[\\/]* ) as_myself=$0 ;;
28642 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
28643 for as_dir in $PATH
28645 IFS=$as_save_IFS
28646 test -z "$as_dir" && as_dir=.
28647 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
28648 done
28649 IFS=$as_save_IFS
28652 esac
28653 # We did not find ourselves, most probably we were run as `sh COMMAND'
28654 # in which case we are not to be found in the path.
28655 if test "x$as_myself" = x; then
28656 as_myself=$0
28658 if test ! -f "$as_myself"; then
28659 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
28660 exit 1
28663 # Unset variables that we do not need and which cause bugs (e.g. in
28664 # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
28665 # suppresses any "Segmentation fault" message there. '((' could
28666 # trigger a bug in pdksh 5.2.14.
28667 for as_var in BASH_ENV ENV MAIL MAILPATH
28668 do eval test x\${$as_var+set} = xset \
28669 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
28670 done
28671 PS1='$ '
28672 PS2='> '
28673 PS4='+ '
28675 # NLS nuisances.
28676 LC_ALL=C
28677 export LC_ALL
28678 LANGUAGE=C
28679 export LANGUAGE
28681 # CDPATH.
28682 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
28685 # as_fn_error ERROR [LINENO LOG_FD]
28686 # ---------------------------------
28687 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
28688 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
28689 # script with status $?, using 1 if that was 0.
28690 as_fn_error ()
28692 as_status=$?; test $as_status -eq 0 && as_status=1
28693 if test "$3"; then
28694 as_lineno=${as_lineno-"$2"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
28695 $as_echo "$as_me:${as_lineno-$LINENO}: error: $1" >&$3
28697 $as_echo "$as_me: error: $1" >&2
28698 as_fn_exit $as_status
28699 } # as_fn_error
28702 # as_fn_set_status STATUS
28703 # -----------------------
28704 # Set $? to STATUS, without forking.
28705 as_fn_set_status ()
28707 return $1
28708 } # as_fn_set_status
28710 # as_fn_exit STATUS
28711 # -----------------
28712 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
28713 as_fn_exit ()
28715 set +e
28716 as_fn_set_status $1
28717 exit $1
28718 } # as_fn_exit
28720 # as_fn_unset VAR
28721 # ---------------
28722 # Portably unset VAR.
28723 as_fn_unset ()
28725 { eval $1=; unset $1;}
28727 as_unset=as_fn_unset
28728 # as_fn_append VAR VALUE
28729 # ----------------------
28730 # Append the text in VALUE to the end of the definition contained in VAR. Take
28731 # advantage of any shell optimizations that allow amortized linear growth over
28732 # repeated appends, instead of the typical quadratic growth present in naive
28733 # implementations.
28734 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
28735 eval 'as_fn_append ()
28737 eval $1+=\$2
28739 else
28740 as_fn_append ()
28742 eval $1=\$$1\$2
28744 fi # as_fn_append
28746 # as_fn_arith ARG...
28747 # ------------------
28748 # Perform arithmetic evaluation on the ARGs, and store the result in the
28749 # global $as_val. Take advantage of shells that can avoid forks. The arguments
28750 # must be portable across $(()) and expr.
28751 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
28752 eval 'as_fn_arith ()
28754 as_val=$(( $* ))
28756 else
28757 as_fn_arith ()
28759 as_val=`expr "$@" || test $? -eq 1`
28761 fi # as_fn_arith
28764 if expr a : '\(a\)' >/dev/null 2>&1 &&
28765 test "X`expr 00001 : '.*\(...\)'`" = X001; then
28766 as_expr=expr
28767 else
28768 as_expr=false
28771 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
28772 as_basename=basename
28773 else
28774 as_basename=false
28777 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
28778 as_dirname=dirname
28779 else
28780 as_dirname=false
28783 as_me=`$as_basename -- "$0" ||
28784 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
28785 X"$0" : 'X\(//\)$' \| \
28786 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
28787 $as_echo X/"$0" |
28788 sed '/^.*\/\([^/][^/]*\)\/*$/{
28789 s//\1/
28792 /^X\/\(\/\/\)$/{
28793 s//\1/
28796 /^X\/\(\/\).*/{
28797 s//\1/
28800 s/.*/./; q'`
28802 # Avoid depending upon Character Ranges.
28803 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
28804 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
28805 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
28806 as_cr_digits='0123456789'
28807 as_cr_alnum=$as_cr_Letters$as_cr_digits
28809 ECHO_C= ECHO_N= ECHO_T=
28810 case `echo -n x` in #(((((
28811 -n*)
28812 case `echo 'xy\c'` in
28813 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
28814 xy) ECHO_C='\c';;
28815 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
28816 ECHO_T=' ';;
28817 esac;;
28819 ECHO_N='-n';;
28820 esac
28822 rm -f conf$$ conf$$.exe conf$$.file
28823 if test -d conf$$.dir; then
28824 rm -f conf$$.dir/conf$$.file
28825 else
28826 rm -f conf$$.dir
28827 mkdir conf$$.dir 2>/dev/null
28829 if (echo >conf$$.file) 2>/dev/null; then
28830 if ln -s conf$$.file conf$$ 2>/dev/null; then
28831 as_ln_s='ln -s'
28832 # ... but there are two gotchas:
28833 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
28834 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
28835 # In both cases, we have to default to `cp -p'.
28836 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
28837 as_ln_s='cp -p'
28838 elif ln conf$$.file conf$$ 2>/dev/null; then
28839 as_ln_s=ln
28840 else
28841 as_ln_s='cp -p'
28843 else
28844 as_ln_s='cp -p'
28846 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
28847 rmdir conf$$.dir 2>/dev/null
28850 # as_fn_mkdir_p
28851 # -------------
28852 # Create "$as_dir" as a directory, including parents if necessary.
28853 as_fn_mkdir_p ()
28856 case $as_dir in #(
28857 -*) as_dir=./$as_dir;;
28858 esac
28859 test -d "$as_dir" || eval $as_mkdir_p || {
28860 as_dirs=
28861 while :; do
28862 case $as_dir in #(
28863 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
28864 *) as_qdir=$as_dir;;
28865 esac
28866 as_dirs="'$as_qdir' $as_dirs"
28867 as_dir=`$as_dirname -- "$as_dir" ||
28868 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
28869 X"$as_dir" : 'X\(//\)[^/]' \| \
28870 X"$as_dir" : 'X\(//\)$' \| \
28871 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
28872 $as_echo X"$as_dir" |
28873 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
28874 s//\1/
28877 /^X\(\/\/\)[^/].*/{
28878 s//\1/
28881 /^X\(\/\/\)$/{
28882 s//\1/
28885 /^X\(\/\).*/{
28886 s//\1/
28889 s/.*/./; q'`
28890 test -d "$as_dir" && break
28891 done
28892 test -z "$as_dirs" || eval "mkdir $as_dirs"
28893 } || test -d "$as_dir" || as_fn_error "cannot create directory $as_dir"
28896 } # as_fn_mkdir_p
28897 if mkdir -p . 2>/dev/null; then
28898 as_mkdir_p='mkdir -p "$as_dir"'
28899 else
28900 test -d ./-p && rmdir ./-p
28901 as_mkdir_p=false
28904 if test -x / >/dev/null 2>&1; then
28905 as_test_x='test -x'
28906 else
28907 if ls -dL / >/dev/null 2>&1; then
28908 as_ls_L_option=L
28909 else
28910 as_ls_L_option=
28912 as_test_x='
28913 eval sh -c '\''
28914 if test -d "$1"; then
28915 test -d "$1/.";
28916 else
28917 case $1 in #(
28918 -*)set "./$1";;
28919 esac;
28920 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in #((
28921 ???[sx]*):;;*)false;;esac;fi
28922 '\'' sh
28925 as_executable_p=$as_test_x
28927 # Sed expression to map a string onto a valid CPP name.
28928 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
28930 # Sed expression to map a string onto a valid variable name.
28931 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
28934 exec 6>&1
28935 ## ----------------------------------- ##
28936 ## Main body of $CONFIG_STATUS script. ##
28937 ## ----------------------------------- ##
28938 _ASEOF
28939 test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
28941 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
28942 # Save the log message, to keep $0 and so on meaningful, and to
28943 # report actual input values of CONFIG_FILES etc. instead of their
28944 # values after options handling.
28945 ac_log="
28946 This file was extended by $as_me, which was
28947 generated by GNU Autoconf 2.64. Invocation command line was
28949 CONFIG_FILES = $CONFIG_FILES
28950 CONFIG_HEADERS = $CONFIG_HEADERS
28951 CONFIG_LINKS = $CONFIG_LINKS
28952 CONFIG_COMMANDS = $CONFIG_COMMANDS
28953 $ $0 $@
28955 on `(hostname || uname -n) 2>/dev/null | sed 1q`
28958 _ACEOF
28960 case $ac_config_files in *"
28961 "*) set x $ac_config_files; shift; ac_config_files=$*;;
28962 esac
28964 case $ac_config_headers in *"
28965 "*) set x $ac_config_headers; shift; ac_config_headers=$*;;
28966 esac
28969 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
28970 # Files that config.status was made for.
28971 config_files="$ac_config_files"
28972 config_headers="$ac_config_headers"
28973 config_links="$ac_config_links"
28974 config_commands="$ac_config_commands"
28976 _ACEOF
28978 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
28979 ac_cs_usage="\
28980 \`$as_me' instantiates files and other configuration actions
28981 from templates according to the current configuration. Unless the files
28982 and actions are specified as TAGs, all are instantiated by default.
28984 Usage: $0 [OPTION]... [TAG]...
28986 -h, --help print this help, then exit
28987 -V, --version print version number and configuration settings, then exit
28988 -q, --quiet, --silent
28989 do not print progress messages
28990 -d, --debug don't remove temporary files
28991 --recheck update $as_me by reconfiguring in the same conditions
28992 --file=FILE[:TEMPLATE]
28993 instantiate the configuration file FILE
28994 --header=FILE[:TEMPLATE]
28995 instantiate the configuration header FILE
28997 Configuration files:
28998 $config_files
29000 Configuration headers:
29001 $config_headers
29003 Configuration links:
29004 $config_links
29006 Configuration commands:
29007 $config_commands
29009 Report bugs to the package provider."
29011 _ACEOF
29012 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
29013 ac_cs_version="\\
29014 config.status
29015 configured by $0, generated by GNU Autoconf 2.64,
29016 with options \\"`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`\\"
29018 Copyright (C) 2009 Free Software Foundation, Inc.
29019 This config.status script is free software; the Free Software Foundation
29020 gives unlimited permission to copy, distribute and modify it."
29022 ac_pwd='$ac_pwd'
29023 srcdir='$srcdir'
29024 AWK='$AWK'
29025 test -n "\$AWK" || AWK=awk
29026 _ACEOF
29028 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
29029 # The default lists apply if the user does not specify any file.
29030 ac_need_defaults=:
29031 while test $# != 0
29033 case $1 in
29034 --*=*)
29035 ac_option=`expr "X$1" : 'X\([^=]*\)='`
29036 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
29037 ac_shift=:
29040 ac_option=$1
29041 ac_optarg=$2
29042 ac_shift=shift
29044 esac
29046 case $ac_option in
29047 # Handling of the options.
29048 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
29049 ac_cs_recheck=: ;;
29050 --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
29051 $as_echo "$ac_cs_version"; exit ;;
29052 --debug | --debu | --deb | --de | --d | -d )
29053 debug=: ;;
29054 --file | --fil | --fi | --f )
29055 $ac_shift
29056 case $ac_optarg in
29057 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
29058 esac
29059 as_fn_append CONFIG_FILES " '$ac_optarg'"
29060 ac_need_defaults=false;;
29061 --header | --heade | --head | --hea )
29062 $ac_shift
29063 case $ac_optarg in
29064 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
29065 esac
29066 as_fn_append CONFIG_HEADERS " '$ac_optarg'"
29067 ac_need_defaults=false;;
29068 --he | --h)
29069 # Conflict between --help and --header
29070 as_fn_error "ambiguous option: \`$1'
29071 Try \`$0 --help' for more information.";;
29072 --help | --hel | -h )
29073 $as_echo "$ac_cs_usage"; exit ;;
29074 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
29075 | -silent | --silent | --silen | --sile | --sil | --si | --s)
29076 ac_cs_silent=: ;;
29078 # This is an error.
29079 -*) as_fn_error "unrecognized option: \`$1'
29080 Try \`$0 --help' for more information." ;;
29082 *) as_fn_append ac_config_targets " $1"
29083 ac_need_defaults=false ;;
29085 esac
29086 shift
29087 done
29089 ac_configure_extra_args=
29091 if $ac_cs_silent; then
29092 exec 6>/dev/null
29093 ac_configure_extra_args="$ac_configure_extra_args --silent"
29096 _ACEOF
29097 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
29098 if \$ac_cs_recheck; then
29099 set X '$SHELL' '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
29100 shift
29101 \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
29102 CONFIG_SHELL='$SHELL'
29103 export CONFIG_SHELL
29104 exec "\$@"
29107 _ACEOF
29108 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
29109 exec 5>>config.log
29111 echo
29112 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
29113 ## Running $as_me. ##
29114 _ASBOX
29115 $as_echo "$ac_log"
29116 } >&5
29118 _ACEOF
29119 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
29121 # INIT-COMMANDS
29123 ac_aux_dir=$ac_aux_dir DEPDIR=$DEPDIR
29124 subdirs="$subdirs" ac_aux_dir=$ac_aux_dir DEPDIR=$DEPDIR
29125 subdirs='$subdirs'
29127 _ACEOF
29129 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
29131 # Handling of arguments.
29132 for ac_config_target in $ac_config_targets
29134 case $ac_config_target in
29135 "auto-host.h") CONFIG_HEADERS="$CONFIG_HEADERS auto-host.h:config.in" ;;
29136 "depdir") CONFIG_COMMANDS="$CONFIG_COMMANDS depdir" ;;
29137 "gccdepdir") CONFIG_COMMANDS="$CONFIG_COMMANDS gccdepdir" ;;
29138 "as") CONFIG_FILES="$CONFIG_FILES as:exec-tool.in" ;;
29139 "collect-ld") CONFIG_FILES="$CONFIG_FILES collect-ld:exec-tool.in" ;;
29140 "nm") CONFIG_FILES="$CONFIG_FILES nm:exec-tool.in" ;;
29141 "clearcap.map") CONFIG_LINKS="$CONFIG_LINKS clearcap.map:${srcdir}/config/$clearcap_map" ;;
29142 "$all_outputs") CONFIG_FILES="$CONFIG_FILES $all_outputs" ;;
29143 "default") CONFIG_COMMANDS="$CONFIG_COMMANDS default" ;;
29145 *) as_fn_error "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
29146 esac
29147 done
29150 # If the user did not use the arguments to specify the items to instantiate,
29151 # then the envvar interface is used. Set only those that are not.
29152 # We use the long form for the default assignment because of an extremely
29153 # bizarre bug on SunOS 4.1.3.
29154 if $ac_need_defaults; then
29155 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
29156 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
29157 test "${CONFIG_LINKS+set}" = set || CONFIG_LINKS=$config_links
29158 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
29161 # Have a temporary directory for convenience. Make it in the build tree
29162 # simply because there is no reason against having it here, and in addition,
29163 # creating and moving files from /tmp can sometimes cause problems.
29164 # Hook for its removal unless debugging.
29165 # Note that there is a small window in which the directory will not be cleaned:
29166 # after its creation but before its name has been assigned to `$tmp'.
29167 $debug ||
29169 tmp=
29170 trap 'exit_status=$?
29171 { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status
29173 trap 'as_fn_exit 1' 1 2 13 15
29175 # Create a (secure) tmp directory for tmp files.
29178 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
29179 test -n "$tmp" && test -d "$tmp"
29180 } ||
29182 tmp=./conf$$-$RANDOM
29183 (umask 077 && mkdir "$tmp")
29184 } || as_fn_error "cannot create a temporary directory in ." "$LINENO" 5
29186 # Set up the scripts for CONFIG_FILES section.
29187 # No need to generate them if there are no CONFIG_FILES.
29188 # This happens for instance with `./config.status config.h'.
29189 if test -n "$CONFIG_FILES"; then
29191 if $AWK 'BEGIN { getline <"/dev/null" }' </dev/null 2>/dev/null; then
29192 ac_cs_awk_getline=:
29193 ac_cs_awk_pipe_init=
29194 ac_cs_awk_read_file='
29195 while ((getline aline < (F[key])) > 0)
29196 print(aline)
29197 close(F[key])'
29198 ac_cs_awk_pipe_fini=
29199 else
29200 ac_cs_awk_getline=false
29201 ac_cs_awk_pipe_init="print \"cat <<'|#_!!_#|' &&\""
29202 ac_cs_awk_read_file='
29203 print "|#_!!_#|"
29204 print "cat " F[key] " &&"
29205 '$ac_cs_awk_pipe_init
29206 # The final `:' finishes the AND list.
29207 ac_cs_awk_pipe_fini='END { print "|#_!!_#|"; print ":" }'
29209 ac_cr=`echo X | tr X '\015'`
29210 # On cygwin, bash can eat \r inside `` if the user requested igncr.
29211 # But we know of no other shell where ac_cr would be empty at this
29212 # point, so we can use a bashism as a fallback.
29213 if test "x$ac_cr" = x; then
29214 eval ac_cr=\$\'\\r\'
29216 ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
29217 if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
29218 ac_cs_awk_cr='\r'
29219 else
29220 ac_cs_awk_cr=$ac_cr
29223 echo 'BEGIN {' >"$tmp/subs1.awk" &&
29224 _ACEOF
29226 # Create commands to substitute file output variables.
29228 echo "cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1" &&
29229 echo 'cat >>"\$tmp/subs1.awk" <<\\_ACAWK &&' &&
29230 echo "$ac_subst_files" | sed 's/.*/F["&"]="$&"/' &&
29231 echo "_ACAWK" &&
29232 echo "_ACEOF"
29233 } >conf$$files.sh &&
29234 . ./conf$$files.sh ||
29235 as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5
29236 rm -f conf$$files.sh
29239 echo "cat >conf$$subs.awk <<_ACEOF" &&
29240 echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
29241 echo "_ACEOF"
29242 } >conf$$subs.sh ||
29243 as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5
29244 ac_delim_num=`echo "$ac_subst_vars" | grep -c '$'`
29245 ac_delim='%!_!# '
29246 for ac_last_try in false false false false false :; do
29247 . ./conf$$subs.sh ||
29248 as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5
29250 ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
29251 if test $ac_delim_n = $ac_delim_num; then
29252 break
29253 elif $ac_last_try; then
29254 as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5
29255 else
29256 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
29258 done
29259 rm -f conf$$subs.sh
29261 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
29262 cat >>"\$tmp/subs1.awk" <<\\_ACAWK &&
29263 _ACEOF
29264 sed -n '
29266 s/^/S["/; s/!.*/"]=/
29269 s/^[^!]*!//
29270 :repl
29271 t repl
29272 s/'"$ac_delim"'$//
29273 t delim
29276 s/\(.\{148\}\).*/\1/
29277 t more1
29278 s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
29281 b repl
29282 :more1
29283 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
29286 s/.\{148\}//
29287 t nl
29288 :delim
29290 s/\(.\{148\}\).*/\1/
29291 t more2
29292 s/["\\]/\\&/g; s/^/"/; s/$/"/
29295 :more2
29296 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
29299 s/.\{148\}//
29300 t delim
29301 ' <conf$$subs.awk | sed '
29302 /^[^""]/{
29304 s/\n//
29306 ' >>$CONFIG_STATUS || ac_write_fail=1
29307 rm -f conf$$subs.awk
29308 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
29309 _ACAWK
29310 cat >>"\$tmp/subs1.awk" <<_ACAWK &&
29311 for (key in S) S_is_set[key] = 1
29312 FS = "\a"
29313 \$ac_cs_awk_pipe_init
29316 line = $ 0
29317 nfields = split(line, field, "@")
29318 substed = 0
29319 len = length(field[1])
29320 for (i = 2; i < nfields; i++) {
29321 key = field[i]
29322 keylen = length(key)
29323 if (S_is_set[key]) {
29324 value = S[key]
29325 line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
29326 len += length(value) + length(field[++i])
29327 substed = 1
29328 } else
29329 len += 1 + keylen
29331 if (nfields == 3 && !substed) {
29332 key = field[2]
29333 if (F[key] != "" && line ~ /^[ ]*@.*@[ ]*$/) {
29334 \$ac_cs_awk_read_file
29335 next
29338 print line
29340 \$ac_cs_awk_pipe_fini
29341 _ACAWK
29342 _ACEOF
29343 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
29344 if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
29345 sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
29346 else
29348 fi < "$tmp/subs1.awk" > "$tmp/subs.awk" \
29349 || as_fn_error "could not setup config files machinery" "$LINENO" 5
29350 _ACEOF
29352 # VPATH may cause trouble with some makes, so we remove $(srcdir),
29353 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
29354 # trailing colons and then remove the whole line if VPATH becomes empty
29355 # (actually we leave an empty line to preserve line numbers).
29356 if test "x$srcdir" = x.; then
29357 ac_vpsub='/^[ ]*VPATH[ ]*=/{
29358 s/:*\$(srcdir):*/:/
29359 s/:*\${srcdir}:*/:/
29360 s/:*@srcdir@:*/:/
29361 s/^\([^=]*=[ ]*\):*/\1/
29362 s/:*$//
29363 s/^[^=]*=[ ]*$//
29367 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
29368 fi # test -n "$CONFIG_FILES"
29370 # Set up the scripts for CONFIG_HEADERS section.
29371 # No need to generate them if there are no CONFIG_HEADERS.
29372 # This happens for instance with `./config.status Makefile'.
29373 if test -n "$CONFIG_HEADERS"; then
29374 cat >"$tmp/defines.awk" <<\_ACAWK ||
29375 BEGIN {
29376 _ACEOF
29378 # Transform confdefs.h into an awk script `defines.awk', embedded as
29379 # here-document in config.status, that substitutes the proper values into
29380 # config.h.in to produce config.h.
29382 # Create a delimiter string that does not exist in confdefs.h, to ease
29383 # handling of long lines.
29384 ac_delim='%!_!# '
29385 for ac_last_try in false false :; do
29386 ac_t=`sed -n "/$ac_delim/p" confdefs.h`
29387 if test -z "$ac_t"; then
29388 break
29389 elif $ac_last_try; then
29390 as_fn_error "could not make $CONFIG_HEADERS" "$LINENO" 5
29391 else
29392 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
29394 done
29396 # For the awk script, D is an array of macro values keyed by name,
29397 # likewise P contains macro parameters if any. Preserve backslash
29398 # newline sequences.
29400 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
29401 sed -n '
29402 s/.\{148\}/&'"$ac_delim"'/g
29403 t rset
29404 :rset
29405 s/^[ ]*#[ ]*define[ ][ ]*/ /
29406 t def
29408 :def
29409 s/\\$//
29410 t bsnl
29411 s/["\\]/\\&/g
29412 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
29413 D["\1"]=" \3"/p
29414 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2"/p
29416 :bsnl
29417 s/["\\]/\\&/g
29418 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
29419 D["\1"]=" \3\\\\\\n"\\/p
29420 t cont
29421 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
29422 t cont
29424 :cont
29426 s/.\{148\}/&'"$ac_delim"'/g
29427 t clear
29428 :clear
29429 s/\\$//
29430 t bsnlc
29431 s/["\\]/\\&/g; s/^/"/; s/$/"/p
29433 :bsnlc
29434 s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
29435 b cont
29436 ' <confdefs.h | sed '
29437 s/'"$ac_delim"'/"\\\
29438 "/g' >>$CONFIG_STATUS || ac_write_fail=1
29440 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
29441 for (key in D) D_is_set[key] = 1
29442 FS = "\a"
29444 /^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
29445 line = \$ 0
29446 split(line, arg, " ")
29447 if (arg[1] == "#") {
29448 defundef = arg[2]
29449 mac1 = arg[3]
29450 } else {
29451 defundef = substr(arg[1], 2)
29452 mac1 = arg[2]
29454 split(mac1, mac2, "(") #)
29455 macro = mac2[1]
29456 prefix = substr(line, 1, index(line, defundef) - 1)
29457 if (D_is_set[macro]) {
29458 # Preserve the white space surrounding the "#".
29459 print prefix "define", macro P[macro] D[macro]
29460 next
29461 } else {
29462 # Replace #undef with comments. This is necessary, for example,
29463 # in the case of _POSIX_SOURCE, which is predefined and required
29464 # on some systems where configure will not decide to define it.
29465 if (defundef == "undef") {
29466 print "/*", prefix defundef, macro, "*/"
29467 next
29471 { print }
29472 _ACAWK
29473 _ACEOF
29474 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
29475 as_fn_error "could not setup config headers machinery" "$LINENO" 5
29476 fi # test -n "$CONFIG_HEADERS"
29479 eval set X " :F $CONFIG_FILES :H $CONFIG_HEADERS :L $CONFIG_LINKS :C $CONFIG_COMMANDS"
29480 shift
29481 for ac_tag
29483 case $ac_tag in
29484 :[FHLC]) ac_mode=$ac_tag; continue;;
29485 esac
29486 case $ac_mode$ac_tag in
29487 :[FHL]*:*);;
29488 :L* | :C*:*) as_fn_error "invalid tag \`$ac_tag'" "$LINENO" 5;;
29489 :[FH]-) ac_tag=-:-;;
29490 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
29491 esac
29492 ac_save_IFS=$IFS
29493 IFS=:
29494 set x $ac_tag
29495 IFS=$ac_save_IFS
29496 shift
29497 ac_file=$1
29498 shift
29500 case $ac_mode in
29501 :L) ac_source=$1;;
29502 :[FH])
29503 ac_file_inputs=
29504 for ac_f
29506 case $ac_f in
29507 -) ac_f="$tmp/stdin";;
29508 *) # Look for the file first in the build tree, then in the source tree
29509 # (if the path is not absolute). The absolute path cannot be DOS-style,
29510 # because $ac_f cannot contain `:'.
29511 test -f "$ac_f" ||
29512 case $ac_f in
29513 [\\/$]*) false;;
29514 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
29515 esac ||
29516 as_fn_error "cannot find input file: \`$ac_f'" "$LINENO" 5;;
29517 esac
29518 case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
29519 as_fn_append ac_file_inputs " '$ac_f'"
29520 done
29522 # Let's still pretend it is `configure' which instantiates (i.e., don't
29523 # use $as_me), people would be surprised to read:
29524 # /* config.h. Generated by config.status. */
29525 configure_input='Generated from '`
29526 $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
29527 `' by configure.'
29528 if test x"$ac_file" != x-; then
29529 configure_input="$ac_file. $configure_input"
29530 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
29531 $as_echo "$as_me: creating $ac_file" >&6;}
29533 # Neutralize special characters interpreted by sed in replacement strings.
29534 case $configure_input in #(
29535 *\&* | *\|* | *\\* )
29536 ac_sed_conf_input=`$as_echo "$configure_input" |
29537 sed 's/[\\\\&|]/\\\\&/g'`;; #(
29538 *) ac_sed_conf_input=$configure_input;;
29539 esac
29541 case $ac_tag in
29542 *:-:* | *:-) cat >"$tmp/stdin" \
29543 || as_fn_error "could not create $ac_file" "$LINENO" 5 ;;
29544 esac
29546 esac
29548 ac_dir=`$as_dirname -- "$ac_file" ||
29549 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
29550 X"$ac_file" : 'X\(//\)[^/]' \| \
29551 X"$ac_file" : 'X\(//\)$' \| \
29552 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
29553 $as_echo X"$ac_file" |
29554 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
29555 s//\1/
29558 /^X\(\/\/\)[^/].*/{
29559 s//\1/
29562 /^X\(\/\/\)$/{
29563 s//\1/
29566 /^X\(\/\).*/{
29567 s//\1/
29570 s/.*/./; q'`
29571 as_dir="$ac_dir"; as_fn_mkdir_p
29572 ac_builddir=.
29574 case "$ac_dir" in
29575 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
29577 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
29578 # A ".." for each directory in $ac_dir_suffix.
29579 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
29580 case $ac_top_builddir_sub in
29581 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
29582 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
29583 esac ;;
29584 esac
29585 ac_abs_top_builddir=$ac_pwd
29586 ac_abs_builddir=$ac_pwd$ac_dir_suffix
29587 # for backward compatibility:
29588 ac_top_builddir=$ac_top_build_prefix
29590 case $srcdir in
29591 .) # We are building in place.
29592 ac_srcdir=.
29593 ac_top_srcdir=$ac_top_builddir_sub
29594 ac_abs_top_srcdir=$ac_pwd ;;
29595 [\\/]* | ?:[\\/]* ) # Absolute name.
29596 ac_srcdir=$srcdir$ac_dir_suffix;
29597 ac_top_srcdir=$srcdir
29598 ac_abs_top_srcdir=$srcdir ;;
29599 *) # Relative name.
29600 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
29601 ac_top_srcdir=$ac_top_build_prefix$srcdir
29602 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
29603 esac
29604 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
29607 case $ac_mode in
29610 # CONFIG_FILE
29613 _ACEOF
29615 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
29616 # If the template does not know about datarootdir, expand it.
29617 # FIXME: This hack should be removed a few years after 2.60.
29618 ac_datarootdir_hack=; ac_datarootdir_seen=
29619 ac_sed_dataroot='
29620 /datarootdir/ {
29624 /@datadir@/p
29625 /@docdir@/p
29626 /@infodir@/p
29627 /@localedir@/p
29628 /@mandir@/p'
29629 case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
29630 *datarootdir*) ac_datarootdir_seen=yes;;
29631 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
29632 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
29633 $as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
29634 _ACEOF
29635 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
29636 ac_datarootdir_hack='
29637 s&@datadir@&$datadir&g
29638 s&@docdir@&$docdir&g
29639 s&@infodir@&$infodir&g
29640 s&@localedir@&$localedir&g
29641 s&@mandir@&$mandir&g
29642 s&\\\${datarootdir}&$datarootdir&g' ;;
29643 esac
29644 _ACEOF
29646 # Neutralize VPATH when `$srcdir' = `.'.
29647 # Shell code in configure.ac might set extrasub.
29648 # FIXME: do we really want to maintain this feature?
29649 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
29650 ac_sed_extra="$ac_vpsub
29651 $extrasub
29652 _ACEOF
29653 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
29655 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
29656 s|@configure_input@|$ac_sed_conf_input|;t t
29657 s&@top_builddir@&$ac_top_builddir_sub&;t t
29658 s&@top_build_prefix@&$ac_top_build_prefix&;t t
29659 s&@srcdir@&$ac_srcdir&;t t
29660 s&@abs_srcdir@&$ac_abs_srcdir&;t t
29661 s&@top_srcdir@&$ac_top_srcdir&;t t
29662 s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
29663 s&@builddir@&$ac_builddir&;t t
29664 s&@abs_builddir@&$ac_abs_builddir&;t t
29665 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
29666 $ac_datarootdir_hack
29668 eval sed \"\$ac_sed_extra\" "$ac_file_inputs" |
29669 if $ac_cs_awk_getline; then
29670 $AWK -f "$tmp/subs.awk"
29671 else
29672 $AWK -f "$tmp/subs.awk" | $SHELL
29673 fi >$tmp/out \
29674 || as_fn_error "could not create $ac_file" "$LINENO" 5
29676 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
29677 { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out"`; test -n "$ac_out"; } &&
29678 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' "$tmp/out"`; test -z "$ac_out"; } &&
29679 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
29680 which seems to be undefined. Please make sure it is defined." >&5
29681 $as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
29682 which seems to be undefined. Please make sure it is defined." >&2;}
29684 rm -f "$tmp/stdin"
29685 case $ac_file in
29686 -) cat "$tmp/out" && rm -f "$tmp/out";;
29687 *) rm -f "$ac_file" && mv "$tmp/out" "$ac_file";;
29688 esac \
29689 || as_fn_error "could not create $ac_file" "$LINENO" 5
29693 # CONFIG_HEADER
29695 if test x"$ac_file" != x-; then
29697 $as_echo "/* $configure_input */" \
29698 && eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs"
29699 } >"$tmp/config.h" \
29700 || as_fn_error "could not create $ac_file" "$LINENO" 5
29701 if diff "$ac_file" "$tmp/config.h" >/dev/null 2>&1; then
29702 { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
29703 $as_echo "$as_me: $ac_file is unchanged" >&6;}
29704 else
29705 rm -f "$ac_file"
29706 mv "$tmp/config.h" "$ac_file" \
29707 || as_fn_error "could not create $ac_file" "$LINENO" 5
29709 else
29710 $as_echo "/* $configure_input */" \
29711 && eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs" \
29712 || as_fn_error "could not create -" "$LINENO" 5
29717 # CONFIG_LINK
29720 if test "$ac_source" = "$ac_file" && test "$srcdir" = '.'; then
29722 else
29723 # Prefer the file from the source tree if names are identical.
29724 if test "$ac_source" = "$ac_file" || test ! -r "$ac_source"; then
29725 ac_source=$srcdir/$ac_source
29728 { $as_echo "$as_me:${as_lineno-$LINENO}: linking $ac_source to $ac_file" >&5
29729 $as_echo "$as_me: linking $ac_source to $ac_file" >&6;}
29731 if test ! -r "$ac_source"; then
29732 as_fn_error "$ac_source: file not found" "$LINENO" 5
29734 rm -f "$ac_file"
29736 # Try a relative symlink, then a hard link, then a copy.
29737 case $srcdir in
29738 [\\/$]* | ?:[\\/]* ) ac_rel_source=$ac_source ;;
29739 *) ac_rel_source=$ac_top_build_prefix$ac_source ;;
29740 esac
29741 ln -s "$ac_rel_source" "$ac_file" 2>/dev/null ||
29742 ln "$ac_source" "$ac_file" 2>/dev/null ||
29743 cp -p "$ac_source" "$ac_file" ||
29744 as_fn_error "cannot link or copy $ac_source to $ac_file" "$LINENO" 5
29747 :C) { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
29748 $as_echo "$as_me: executing $ac_file commands" >&6;}
29750 esac
29753 case $ac_file$ac_mode in
29754 "depdir":C) $SHELL $ac_aux_dir/mkinstalldirs $DEPDIR ;;
29755 "gccdepdir":C)
29756 ${CONFIG_SHELL-/bin/sh} $ac_aux_dir/mkinstalldirs build/$DEPDIR
29757 for lang in $subdirs c-family common
29759 ${CONFIG_SHELL-/bin/sh} $ac_aux_dir/mkinstalldirs $lang/$DEPDIR
29760 done ;;
29761 "as":F) chmod +x as ;;
29762 "collect-ld":F) chmod +x collect-ld ;;
29763 "nm":F) chmod +x nm ;;
29764 "default":C)
29765 case ${CONFIG_HEADERS} in
29766 *auto-host.h:config.in*)
29767 echo > cstamp-h ;;
29768 esac
29769 # Make sure all the subdirs exist.
29770 for d in $subdirs doc build common c-family
29772 test -d $d || mkdir $d
29773 done
29776 esac
29777 done # for ac_tag
29780 as_fn_exit 0
29781 _ACEOF
29782 ac_clean_files=$ac_clean_files_save
29784 test $ac_write_fail = 0 ||
29785 as_fn_error "write failure creating $CONFIG_STATUS" "$LINENO" 5
29788 # configure is writing to config.log, and then calls config.status.
29789 # config.status does its own redirection, appending to config.log.
29790 # Unfortunately, on DOS this fails, as config.log is still kept open
29791 # by configure, so config.status won't be able to write to it; its
29792 # output is simply discarded. So we exec the FD to /dev/null,
29793 # effectively closing config.log, so it can be properly (re)opened and
29794 # appended to by config.status. When coming back to configure, we
29795 # need to make the FD available again.
29796 if test "$no_create" != yes; then
29797 ac_cs_success=:
29798 ac_config_status_args=
29799 test "$silent" = yes &&
29800 ac_config_status_args="$ac_config_status_args --quiet"
29801 exec 5>/dev/null
29802 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
29803 exec 5>>config.log
29804 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
29805 # would make configure fail if this is the last instruction.
29806 $ac_cs_success || as_fn_exit $?
29808 if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
29809 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
29810 $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}