2013-10-24 Jan-Benedict Glaw <jbglaw@lug-owl.de>
[official-gcc.git] / gcc / configure
blob1e7bcb6c49a89f5a9226eb5b48ba2c130c82270d
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 CLOOGINC
608 CLOOGLIBS
609 ISLINC
610 ISLLIBS
611 GMPINC
612 GMPLIBS
613 target_cpu_default
614 fortran_target_objs
615 cxx_target_objs
616 c_target_objs
617 use_gcc_stdint
618 xm_defines
619 xm_include_list
620 xm_file_list
621 tm_p_include_list
622 tm_p_file_list
623 tm_defines
624 tm_include_list
625 tm_file_list
626 common_out_object_file
627 common_out_file
628 out_object_file
629 out_file
630 objc_boehm_gc
631 md_file
632 local_prefix
633 lang_tree_files
634 lang_specs_files
635 lang_opt_files
636 install
637 out_host_hook_obj
638 host_xm_defines
639 host_xm_include_list
640 host_xm_file_list
641 host_exeext
642 gcc_gxx_include_dir_add_sysroot
643 gcc_gxx_include_dir
644 gcc_config_arguments
645 float_h_file
646 extra_programs
647 extra_objs
648 extra_headers_list
649 user_headers_inc_next_post
650 user_headers_inc_next_pre
651 extra_gcc_objs
652 TM_MULTILIB_EXCEPTIONS_CONFIG
653 TM_MULTILIB_CONFIG
654 TM_ENDIAN_CONFIG
655 tmake_file
656 xmake_file
657 cpp_install_dir
658 check_languages
659 build_file_translate
660 build_xm_defines
661 build_xm_include_list
662 build_xm_file_list
663 build_install_headers_dir
664 build_exeext
665 all_selected_languages
666 all_languages
667 all_lang_makefrags
668 all_gtfiles
669 all_compilers
670 srcdir
671 subdirs
672 dollar
673 gcc_tooldir
674 enable_lto
675 DO_LINK_MUTEX
676 MAINT
677 zlibinc
678 zlibdir
679 HOST_LIBS
680 libgcc_visibility
681 gcc_cv_readelf
682 gcc_cv_objdump
683 ORIGINAL_NM_FOR_TARGET
684 gcc_cv_nm
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
746 BISON
747 FLEX
748 GENERATED_MANPAGES
749 BUILD_INFO
750 MAKEINFO
751 have_mktemp_command
752 make_compare_target
753 INSTALL_DATA
754 INSTALL_PROGRAM
755 INSTALL
756 ranlib_flags
757 RANLIB
759 LN_S
761 SET_MAKE
762 REPORT_BUGS_TEXI
763 REPORT_BUGS_TO
764 PKGVERSION
765 CONFIGURE_SPECS
766 CROSS_SYSTEM_HEADER_DIR
767 TARGET_SYSTEM_ROOT_DEFINE
768 TARGET_SYSTEM_ROOT
769 SYSROOT_CFLAGS_FOR_TARGET
770 enable_shared
771 enable_fixed_point
772 enable_decimal_float
773 with_float
774 with_cpu
775 enable_multiarch
776 enable_multilib
777 coverage_flags
778 valgrind_command
779 valgrind_path_defines
780 valgrind_path
781 TREECHECKING
782 TREEBROWSER
783 nocommon_flag
784 noexception_flags
785 warn_cxxflags
786 warn_cflags
787 c_strict_warn
788 strict_warn
789 c_loose_warn
790 loose_warn
791 EGREP
792 GREP
794 PICFLAG_FOR_TARGET
795 GNATMAKE
796 GNATBIND
797 ac_ct_CXX
798 CXXFLAGS
800 OBJEXT
801 EXEEXT
802 ac_ct_CC
803 CPPFLAGS
804 LDFLAGS
805 CFLAGS
807 GENINSRC
808 target_subdir
809 host_subdir
810 build_subdir
811 build_libsubdir
812 target_noncanonical
813 target_os
814 target_vendor
815 target_cpu
816 target
817 host_os
818 host_vendor
819 host_cpu
820 host
821 build_os
822 build_vendor
823 build_cpu
824 build
825 target_alias
826 host_alias
827 build_alias
828 LIBS
829 ECHO_T
830 ECHO_N
831 ECHO_C
832 DEFS
833 mandir
834 localedir
835 libdir
836 psdir
837 pdfdir
838 dvidir
839 htmldir
840 infodir
841 docdir
842 oldincludedir
843 includedir
844 localstatedir
845 sharedstatedir
846 sysconfdir
847 datadir
848 datarootdir
849 libexecdir
850 sbindir
851 bindir
852 program_transform_name
853 prefix
854 exec_prefix
855 PACKAGE_URL
856 PACKAGE_BUGREPORT
857 PACKAGE_STRING
858 PACKAGE_VERSION
859 PACKAGE_TARNAME
860 PACKAGE_NAME
861 PATH_SEPARATOR
862 SHELL'
863 ac_subst_files='option_includes
864 language_hooks'
865 ac_user_opts='
866 enable_option_checking
867 with_build_libsubdir
868 with_local_prefix
869 with_gxx_include_dir
870 with_cpp_install_dir
871 enable_generated_files_in_srcdir
872 with_gnu_ld
873 with_ld
874 with_demangler_in_ld
875 with_gnu_as
876 with_as
877 enable_largefile
878 enable_werror_always
879 enable_checking
880 enable_coverage
881 enable_gather_detailed_mem_stats
882 with_stabs
883 enable_multilib
884 enable_multiarch
885 enable___cxa_atexit
886 enable_decimal_float
887 enable_fixed_point
888 enable_threads
889 enable_tls
890 enable_objc_gc
891 with_dwarf2
892 enable_shared
893 with_native_system_header_dir
894 with_build_sysroot
895 with_sysroot
896 with_specs
897 with_pkgversion
898 with_bugurl
899 enable_languages
900 with_multilib_list
901 enable_rpath
902 with_libiconv_prefix
903 enable_sjlj_exceptions
904 enable_secureplt
905 enable_leading_mingw64_underscores
906 enable_cld
907 enable_frame_pointer
908 enable_win32_registry
909 enable_static
910 with_pic
911 enable_fast_install
912 enable_libtool_lock
913 with_plugin_ld
914 enable_gnu_indirect_function
915 enable_initfini_array
916 enable_comdat
917 enable_gnu_unique_object
918 enable_linker_build_id
919 with_long_double_128
920 with_gc
921 with_system_zlib
922 enable_maintainer_mode
923 enable_link_mutex
924 enable_version_specific_runtime_libs
925 enable_plugin
926 enable_host_shared
927 enable_libquadmath_support
928 with_linker_hash_style
930 ac_precious_vars='build_alias
931 host_alias
932 target_alias
934 CFLAGS
935 LDFLAGS
936 LIBS
937 CPPFLAGS
939 CXXFLAGS
942 CXXCPP
943 GMPLIBS
944 GMPINC
945 ISLLIBS
946 ISLINC
947 CLOOGLIBS
948 CLOOGINC'
951 # Initialize some variables set by options.
952 ac_init_help=
953 ac_init_version=false
954 ac_unrecognized_opts=
955 ac_unrecognized_sep=
956 # The variables have the same names as the options, with
957 # dashes changed to underlines.
958 cache_file=/dev/null
959 exec_prefix=NONE
960 no_create=
961 no_recursion=
962 prefix=NONE
963 program_prefix=NONE
964 program_suffix=NONE
965 program_transform_name=s,x,x,
966 silent=
967 site=
968 srcdir=
969 verbose=
970 x_includes=NONE
971 x_libraries=NONE
973 # Installation directory options.
974 # These are left unexpanded so users can "make install exec_prefix=/foo"
975 # and all the variables that are supposed to be based on exec_prefix
976 # by default will actually change.
977 # Use braces instead of parens because sh, perl, etc. also accept them.
978 # (The list follows the same order as the GNU Coding Standards.)
979 bindir='${exec_prefix}/bin'
980 sbindir='${exec_prefix}/sbin'
981 libexecdir='${exec_prefix}/libexec'
982 datarootdir='${prefix}/share'
983 datadir='${datarootdir}'
984 sysconfdir='${prefix}/etc'
985 sharedstatedir='${prefix}/com'
986 localstatedir='${prefix}/var'
987 includedir='${prefix}/include'
988 oldincludedir='/usr/include'
989 docdir='${datarootdir}/doc/${PACKAGE}'
990 infodir='${datarootdir}/info'
991 htmldir='${docdir}'
992 dvidir='${docdir}'
993 pdfdir='${docdir}'
994 psdir='${docdir}'
995 libdir='${exec_prefix}/lib'
996 localedir='${datarootdir}/locale'
997 mandir='${datarootdir}/man'
999 ac_prev=
1000 ac_dashdash=
1001 for ac_option
1003 # If the previous option needs an argument, assign it.
1004 if test -n "$ac_prev"; then
1005 eval $ac_prev=\$ac_option
1006 ac_prev=
1007 continue
1010 case $ac_option in
1011 *=*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
1012 *) ac_optarg=yes ;;
1013 esac
1015 # Accept the important Cygnus configure options, so we can diagnose typos.
1017 case $ac_dashdash$ac_option in
1019 ac_dashdash=yes ;;
1021 -bindir | --bindir | --bindi | --bind | --bin | --bi)
1022 ac_prev=bindir ;;
1023 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
1024 bindir=$ac_optarg ;;
1026 -build | --build | --buil | --bui | --bu)
1027 ac_prev=build_alias ;;
1028 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
1029 build_alias=$ac_optarg ;;
1031 -cache-file | --cache-file | --cache-fil | --cache-fi \
1032 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
1033 ac_prev=cache_file ;;
1034 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
1035 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
1036 cache_file=$ac_optarg ;;
1038 --config-cache | -C)
1039 cache_file=config.cache ;;
1041 -datadir | --datadir | --datadi | --datad)
1042 ac_prev=datadir ;;
1043 -datadir=* | --datadir=* | --datadi=* | --datad=*)
1044 datadir=$ac_optarg ;;
1046 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
1047 | --dataroo | --dataro | --datar)
1048 ac_prev=datarootdir ;;
1049 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
1050 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
1051 datarootdir=$ac_optarg ;;
1053 -disable-* | --disable-*)
1054 ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
1055 # Reject names that are not valid shell variable names.
1056 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1057 as_fn_error "invalid feature name: $ac_useropt"
1058 ac_useropt_orig=$ac_useropt
1059 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1060 case $ac_user_opts in
1062 "enable_$ac_useropt"
1063 "*) ;;
1064 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
1065 ac_unrecognized_sep=', ';;
1066 esac
1067 eval enable_$ac_useropt=no ;;
1069 -docdir | --docdir | --docdi | --doc | --do)
1070 ac_prev=docdir ;;
1071 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
1072 docdir=$ac_optarg ;;
1074 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
1075 ac_prev=dvidir ;;
1076 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
1077 dvidir=$ac_optarg ;;
1079 -enable-* | --enable-*)
1080 ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
1081 # Reject names that are not valid shell variable names.
1082 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1083 as_fn_error "invalid feature name: $ac_useropt"
1084 ac_useropt_orig=$ac_useropt
1085 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1086 case $ac_user_opts in
1088 "enable_$ac_useropt"
1089 "*) ;;
1090 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
1091 ac_unrecognized_sep=', ';;
1092 esac
1093 eval enable_$ac_useropt=\$ac_optarg ;;
1095 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
1096 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
1097 | --exec | --exe | --ex)
1098 ac_prev=exec_prefix ;;
1099 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
1100 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
1101 | --exec=* | --exe=* | --ex=*)
1102 exec_prefix=$ac_optarg ;;
1104 -gas | --gas | --ga | --g)
1105 # Obsolete; use --with-gas.
1106 with_gas=yes ;;
1108 -help | --help | --hel | --he | -h)
1109 ac_init_help=long ;;
1110 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
1111 ac_init_help=recursive ;;
1112 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
1113 ac_init_help=short ;;
1115 -host | --host | --hos | --ho)
1116 ac_prev=host_alias ;;
1117 -host=* | --host=* | --hos=* | --ho=*)
1118 host_alias=$ac_optarg ;;
1120 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
1121 ac_prev=htmldir ;;
1122 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
1123 | --ht=*)
1124 htmldir=$ac_optarg ;;
1126 -includedir | --includedir | --includedi | --included | --include \
1127 | --includ | --inclu | --incl | --inc)
1128 ac_prev=includedir ;;
1129 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
1130 | --includ=* | --inclu=* | --incl=* | --inc=*)
1131 includedir=$ac_optarg ;;
1133 -infodir | --infodir | --infodi | --infod | --info | --inf)
1134 ac_prev=infodir ;;
1135 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
1136 infodir=$ac_optarg ;;
1138 -libdir | --libdir | --libdi | --libd)
1139 ac_prev=libdir ;;
1140 -libdir=* | --libdir=* | --libdi=* | --libd=*)
1141 libdir=$ac_optarg ;;
1143 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
1144 | --libexe | --libex | --libe)
1145 ac_prev=libexecdir ;;
1146 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
1147 | --libexe=* | --libex=* | --libe=*)
1148 libexecdir=$ac_optarg ;;
1150 -localedir | --localedir | --localedi | --localed | --locale)
1151 ac_prev=localedir ;;
1152 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
1153 localedir=$ac_optarg ;;
1155 -localstatedir | --localstatedir | --localstatedi | --localstated \
1156 | --localstate | --localstat | --localsta | --localst | --locals)
1157 ac_prev=localstatedir ;;
1158 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
1159 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
1160 localstatedir=$ac_optarg ;;
1162 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1163 ac_prev=mandir ;;
1164 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1165 mandir=$ac_optarg ;;
1167 -nfp | --nfp | --nf)
1168 # Obsolete; use --without-fp.
1169 with_fp=no ;;
1171 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1172 | --no-cr | --no-c | -n)
1173 no_create=yes ;;
1175 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1176 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1177 no_recursion=yes ;;
1179 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1180 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1181 | --oldin | --oldi | --old | --ol | --o)
1182 ac_prev=oldincludedir ;;
1183 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1184 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1185 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1186 oldincludedir=$ac_optarg ;;
1188 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1189 ac_prev=prefix ;;
1190 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1191 prefix=$ac_optarg ;;
1193 -program-prefix | --program-prefix | --program-prefi | --program-pref \
1194 | --program-pre | --program-pr | --program-p)
1195 ac_prev=program_prefix ;;
1196 -program-prefix=* | --program-prefix=* | --program-prefi=* \
1197 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1198 program_prefix=$ac_optarg ;;
1200 -program-suffix | --program-suffix | --program-suffi | --program-suff \
1201 | --program-suf | --program-su | --program-s)
1202 ac_prev=program_suffix ;;
1203 -program-suffix=* | --program-suffix=* | --program-suffi=* \
1204 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1205 program_suffix=$ac_optarg ;;
1207 -program-transform-name | --program-transform-name \
1208 | --program-transform-nam | --program-transform-na \
1209 | --program-transform-n | --program-transform- \
1210 | --program-transform | --program-transfor \
1211 | --program-transfo | --program-transf \
1212 | --program-trans | --program-tran \
1213 | --progr-tra | --program-tr | --program-t)
1214 ac_prev=program_transform_name ;;
1215 -program-transform-name=* | --program-transform-name=* \
1216 | --program-transform-nam=* | --program-transform-na=* \
1217 | --program-transform-n=* | --program-transform-=* \
1218 | --program-transform=* | --program-transfor=* \
1219 | --program-transfo=* | --program-transf=* \
1220 | --program-trans=* | --program-tran=* \
1221 | --progr-tra=* | --program-tr=* | --program-t=*)
1222 program_transform_name=$ac_optarg ;;
1224 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1225 ac_prev=pdfdir ;;
1226 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1227 pdfdir=$ac_optarg ;;
1229 -psdir | --psdir | --psdi | --psd | --ps)
1230 ac_prev=psdir ;;
1231 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1232 psdir=$ac_optarg ;;
1234 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1235 | -silent | --silent | --silen | --sile | --sil)
1236 silent=yes ;;
1238 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1239 ac_prev=sbindir ;;
1240 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1241 | --sbi=* | --sb=*)
1242 sbindir=$ac_optarg ;;
1244 -sharedstatedir | --sharedstatedir | --sharedstatedi \
1245 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1246 | --sharedst | --shareds | --shared | --share | --shar \
1247 | --sha | --sh)
1248 ac_prev=sharedstatedir ;;
1249 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1250 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1251 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1252 | --sha=* | --sh=*)
1253 sharedstatedir=$ac_optarg ;;
1255 -site | --site | --sit)
1256 ac_prev=site ;;
1257 -site=* | --site=* | --sit=*)
1258 site=$ac_optarg ;;
1260 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1261 ac_prev=srcdir ;;
1262 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1263 srcdir=$ac_optarg ;;
1265 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1266 | --syscon | --sysco | --sysc | --sys | --sy)
1267 ac_prev=sysconfdir ;;
1268 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1269 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1270 sysconfdir=$ac_optarg ;;
1272 -target | --target | --targe | --targ | --tar | --ta | --t)
1273 ac_prev=target_alias ;;
1274 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1275 target_alias=$ac_optarg ;;
1277 -v | -verbose | --verbose | --verbos | --verbo | --verb)
1278 verbose=yes ;;
1280 -version | --version | --versio | --versi | --vers | -V)
1281 ac_init_version=: ;;
1283 -with-* | --with-*)
1284 ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1285 # Reject names that are not valid shell variable names.
1286 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1287 as_fn_error "invalid package name: $ac_useropt"
1288 ac_useropt_orig=$ac_useropt
1289 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1290 case $ac_user_opts in
1292 "with_$ac_useropt"
1293 "*) ;;
1294 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1295 ac_unrecognized_sep=', ';;
1296 esac
1297 eval with_$ac_useropt=\$ac_optarg ;;
1299 -without-* | --without-*)
1300 ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1301 # Reject names that are not valid shell variable names.
1302 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1303 as_fn_error "invalid package name: $ac_useropt"
1304 ac_useropt_orig=$ac_useropt
1305 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1306 case $ac_user_opts in
1308 "with_$ac_useropt"
1309 "*) ;;
1310 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1311 ac_unrecognized_sep=', ';;
1312 esac
1313 eval with_$ac_useropt=no ;;
1315 --x)
1316 # Obsolete; use --with-x.
1317 with_x=yes ;;
1319 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1320 | --x-incl | --x-inc | --x-in | --x-i)
1321 ac_prev=x_includes ;;
1322 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1323 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1324 x_includes=$ac_optarg ;;
1326 -x-libraries | --x-libraries | --x-librarie | --x-librari \
1327 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1328 ac_prev=x_libraries ;;
1329 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1330 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1331 x_libraries=$ac_optarg ;;
1333 -*) as_fn_error "unrecognized option: \`$ac_option'
1334 Try \`$0 --help' for more information."
1337 *=*)
1338 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1339 # Reject names that are not valid shell variable names.
1340 case $ac_envvar in #(
1341 '' | [0-9]* | *[!_$as_cr_alnum]* )
1342 as_fn_error "invalid variable name: \`$ac_envvar'" ;;
1343 esac
1344 eval $ac_envvar=\$ac_optarg
1345 export $ac_envvar ;;
1348 # FIXME: should be removed in autoconf 3.0.
1349 $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1350 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1351 $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1352 : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
1355 esac
1356 done
1358 if test -n "$ac_prev"; then
1359 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1360 as_fn_error "missing argument to $ac_option"
1363 if test -n "$ac_unrecognized_opts"; then
1364 case $enable_option_checking in
1365 no) ;;
1366 fatal) as_fn_error "unrecognized options: $ac_unrecognized_opts" ;;
1367 *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1368 esac
1371 # Check all directory arguments for consistency.
1372 for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1373 datadir sysconfdir sharedstatedir localstatedir includedir \
1374 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1375 libdir localedir mandir
1377 eval ac_val=\$$ac_var
1378 # Remove trailing slashes.
1379 case $ac_val in
1380 */ )
1381 ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1382 eval $ac_var=\$ac_val;;
1383 esac
1384 # Be sure to have absolute directory names.
1385 case $ac_val in
1386 [\\/$]* | ?:[\\/]* ) continue;;
1387 NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1388 esac
1389 as_fn_error "expected an absolute directory name for --$ac_var: $ac_val"
1390 done
1392 # There might be people who depend on the old broken behavior: `$host'
1393 # used to hold the argument of --host etc.
1394 # FIXME: To remove some day.
1395 build=$build_alias
1396 host=$host_alias
1397 target=$target_alias
1399 # FIXME: To remove some day.
1400 if test "x$host_alias" != x; then
1401 if test "x$build_alias" = x; then
1402 cross_compiling=maybe
1403 $as_echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
1404 If a cross compiler is detected then cross compile mode will be used." >&2
1405 elif test "x$build_alias" != "x$host_alias"; then
1406 cross_compiling=yes
1410 ac_tool_prefix=
1411 test -n "$host_alias" && ac_tool_prefix=$host_alias-
1413 test "$silent" = yes && exec 6>/dev/null
1416 ac_pwd=`pwd` && test -n "$ac_pwd" &&
1417 ac_ls_di=`ls -di .` &&
1418 ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1419 as_fn_error "working directory cannot be determined"
1420 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1421 as_fn_error "pwd does not report name of working directory"
1424 # Find the source files, if location was not specified.
1425 if test -z "$srcdir"; then
1426 ac_srcdir_defaulted=yes
1427 # Try the directory containing this script, then the parent directory.
1428 ac_confdir=`$as_dirname -- "$as_myself" ||
1429 $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1430 X"$as_myself" : 'X\(//\)[^/]' \| \
1431 X"$as_myself" : 'X\(//\)$' \| \
1432 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1433 $as_echo X"$as_myself" |
1434 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1435 s//\1/
1438 /^X\(\/\/\)[^/].*/{
1439 s//\1/
1442 /^X\(\/\/\)$/{
1443 s//\1/
1446 /^X\(\/\).*/{
1447 s//\1/
1450 s/.*/./; q'`
1451 srcdir=$ac_confdir
1452 if test ! -r "$srcdir/$ac_unique_file"; then
1453 srcdir=..
1455 else
1456 ac_srcdir_defaulted=no
1458 if test ! -r "$srcdir/$ac_unique_file"; then
1459 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1460 as_fn_error "cannot find sources ($ac_unique_file) in $srcdir"
1462 ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1463 ac_abs_confdir=`(
1464 cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error "$ac_msg"
1465 pwd)`
1466 # When building in place, set srcdir=.
1467 if test "$ac_abs_confdir" = "$ac_pwd"; then
1468 srcdir=.
1470 # Remove unnecessary trailing slashes from srcdir.
1471 # Double slashes in file names in object file debugging info
1472 # mess up M-x gdb in Emacs.
1473 case $srcdir in
1474 */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1475 esac
1476 for ac_var in $ac_precious_vars; do
1477 eval ac_env_${ac_var}_set=\${${ac_var}+set}
1478 eval ac_env_${ac_var}_value=\$${ac_var}
1479 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1480 eval ac_cv_env_${ac_var}_value=\$${ac_var}
1481 done
1484 # Report the --help message.
1486 if test "$ac_init_help" = "long"; then
1487 # Omit some internal or obsolete options to make the list less imposing.
1488 # This message is too long to be a string in the A/UX 3.1 sh.
1489 cat <<_ACEOF
1490 \`configure' configures this package to adapt to many kinds of systems.
1492 Usage: $0 [OPTION]... [VAR=VALUE]...
1494 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1495 VAR=VALUE. See below for descriptions of some of the useful variables.
1497 Defaults for the options are specified in brackets.
1499 Configuration:
1500 -h, --help display this help and exit
1501 --help=short display options specific to this package
1502 --help=recursive display the short help of all the included packages
1503 -V, --version display version information and exit
1504 -q, --quiet, --silent do not print \`checking...' messages
1505 --cache-file=FILE cache test results in FILE [disabled]
1506 -C, --config-cache alias for \`--cache-file=config.cache'
1507 -n, --no-create do not create output files
1508 --srcdir=DIR find the sources in DIR [configure dir or \`..']
1510 Installation directories:
1511 --prefix=PREFIX install architecture-independent files in PREFIX
1512 [$ac_default_prefix]
1513 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
1514 [PREFIX]
1516 By default, \`make install' will install all the files in
1517 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1518 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1519 for instance \`--prefix=\$HOME'.
1521 For better control, use the options below.
1523 Fine tuning of the installation directories:
1524 --bindir=DIR user executables [EPREFIX/bin]
1525 --sbindir=DIR system admin executables [EPREFIX/sbin]
1526 --libexecdir=DIR program executables [EPREFIX/libexec]
1527 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1528 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1529 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1530 --libdir=DIR object code libraries [EPREFIX/lib]
1531 --includedir=DIR C header files [PREFIX/include]
1532 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1533 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1534 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1535 --infodir=DIR info documentation [DATAROOTDIR/info]
1536 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1537 --mandir=DIR man documentation [DATAROOTDIR/man]
1538 --docdir=DIR documentation root [DATAROOTDIR/doc/PACKAGE]
1539 --htmldir=DIR html documentation [DOCDIR]
1540 --dvidir=DIR dvi documentation [DOCDIR]
1541 --pdfdir=DIR pdf documentation [DOCDIR]
1542 --psdir=DIR ps documentation [DOCDIR]
1543 _ACEOF
1545 cat <<\_ACEOF
1547 Program names:
1548 --program-prefix=PREFIX prepend PREFIX to installed program names
1549 --program-suffix=SUFFIX append SUFFIX to installed program names
1550 --program-transform-name=PROGRAM run sed PROGRAM on installed program names
1552 System types:
1553 --build=BUILD configure for building on BUILD [guessed]
1554 --host=HOST cross-compile to build programs to run on HOST [BUILD]
1555 --target=TARGET configure for building compilers for TARGET [HOST]
1556 _ACEOF
1559 if test -n "$ac_init_help"; then
1561 cat <<\_ACEOF
1563 Optional Features:
1564 --disable-option-checking ignore unrecognized --enable/--with options
1565 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
1566 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
1567 --enable-generated-files-in-srcdir
1568 put copies of generated files in source dir intended
1569 for creating source tarballs for users without
1570 texinfo bison or flex
1571 --disable-largefile omit support for large files
1572 --enable-werror-always enable -Werror despite compiler version
1573 --enable-checking[=LIST]
1574 enable expensive run-time checks. With LIST, enable
1575 only specific categories of checks. Categories are:
1576 yes,no,all,none,release. Flags are:
1577 assert,df,fold,gc,gcac,gimple,misc,
1578 rtlflag,rtl,runtime,tree,valgrind,types
1579 --enable-coverage[=LEVEL]
1580 enable compiler's code coverage collection. Use to
1581 measure compiler performance and locate unused parts
1582 of the compiler. With LEVEL, specify optimization.
1583 Values are opt, noopt, default is noopt
1584 --enable-gather-detailed-mem-stats
1585 enable detailed memory allocation stats gathering
1586 --enable-multilib enable library support for multiple ABIs
1587 --enable-multiarch enable support for multiarch paths
1588 --enable-__cxa_atexit enable __cxa_atexit for C++
1589 --enable-decimal-float={no,yes,bid,dpd}
1590 enable decimal float extension to C. Selecting 'bid'
1591 or 'dpd' choses which decimal floating point format
1592 to use
1593 --enable-fixed-point enable fixed-point arithmetic extension to C
1594 --enable-threads[=LIB] enable thread usage for target GCC, using LIB thread
1595 package
1596 --enable-tls enable or disable generation of tls code overriding
1597 the assembler check for tls support
1598 --enable-objc-gc enable the use of Boehm's garbage collector with the
1599 GNU Objective-C runtime
1600 --disable-shared don't provide a shared libgcc
1601 --enable-languages=LIST specify which front-ends to build
1602 --disable-rpath do not hardcode runtime library paths
1603 --enable-sjlj-exceptions
1604 arrange to use setjmp/longjmp exception handling
1605 --enable-secureplt enable -msecure-plt by default for PowerPC
1606 --enable-leading-mingw64-underscores
1607 enable leading underscores on 64 bit mingw targets
1608 --enable-cld enable -mcld by default for 32bit x86
1609 --enable-frame-pointer enable -fno-omit-frame-pointer by default for 32bit
1611 --disable-win32-registry
1612 disable lookup of installation paths in the Registry
1613 on Windows hosts
1614 --enable-win32-registry enable registry lookup (default)
1615 --enable-win32-registry=KEY
1616 use KEY instead of GCC version as the last portion
1617 of the registry key
1618 --enable-shared[=PKGS] build shared libraries [default=yes]
1619 --enable-static[=PKGS] build static libraries [default=yes]
1620 --enable-fast-install[=PKGS]
1621 optimize for fast installation [default=yes]
1622 --disable-libtool-lock avoid locking (might break parallel builds)
1623 --enable-gnu-indirect-function
1624 enable the use of the @gnu_indirect_function to
1625 glibc systems
1626 --enable-initfini-array use .init_array/.fini_array sections
1627 --enable-comdat enable COMDAT group support
1628 --enable-gnu-unique-object
1629 enable the use of the @gnu_unique_object ELF
1630 extension on glibc systems
1631 --enable-linker-build-id
1632 compiler will always pass --build-id to linker
1633 --enable-maintainer-mode
1634 enable make rules and dependencies not useful (and
1635 sometimes confusing) to the casual installer
1636 --enable-link-mutex avoid linking multiple front-ends at once to avoid
1637 thrashing on the build machine
1638 --enable-version-specific-runtime-libs
1639 specify that runtime libraries should be installed
1640 in a compiler-specific directory
1641 --enable-plugin enable plugin support
1642 --enable-host-shared build host code as shared libraries
1643 --disable-libquadmath-support
1644 disable libquadmath support for Fortran
1646 Optional Packages:
1647 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1648 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
1649 --with-build-libsubdir=DIR Directory where to find libraries for build system
1650 --with-local-prefix=DIR specifies directory to put local include
1651 --with-gxx-include-dir=DIR
1652 specifies directory to put g++ header files
1653 --with-cpp-install-dir=DIR
1654 install the user visible C preprocessor in DIR
1655 (relative to PREFIX) as well as PREFIX/bin
1656 --with-gnu-ld arrange to work with GNU ld
1657 --with-ld arrange to use the specified ld (full pathname)
1658 --with-demangler-in-ld try to use demangler in GNU ld
1659 --with-gnu-as arrange to work with GNU as
1660 --with-as arrange to use the specified as (full pathname)
1661 --with-stabs arrange to use stabs instead of host debug format
1662 --with-dwarf2 force the default debug format to be DWARF 2
1663 --with-native-system-header-dir=dir
1664 use dir as the directory to look for standard
1665 system header files in. Defaults to /usr/include.
1666 --with-build-sysroot=sysroot
1667 use sysroot as the system root during the build
1668 --with-sysroot[=DIR] search for usr/lib, usr/include, et al, within DIR
1669 --with-specs=SPECS add SPECS to driver command-line processing
1670 --with-pkgversion=PKG Use PKG in the version string in place of "GCC"
1671 --with-bugurl=URL Direct users to URL to report a bug
1672 --with-multilib-list select multilibs (AArch64, SH and x86-64 only)
1673 --with-gnu-ld assume the C compiler uses GNU ld default=no
1674 --with-libiconv-prefix[=DIR] search for libiconv in DIR/include and DIR/lib
1675 --without-libiconv-prefix don't search for libiconv in includedir and libdir
1676 --with-pic try to use only PIC/non-PIC objects [default=use
1677 both]
1678 --with-gnu-ld assume the C compiler uses GNU ld [default=no]
1679 --with-plugin-ld=[ARG] specify the plugin linker
1680 --with-long-double-128 use 128-bit long double by default
1681 --with-gc={page,zone} this option is not supported anymore. It used to
1682 choose the garbage collection mechanism to use with
1683 the compiler
1684 --with-system-zlib use installed libz
1685 --with-linker-hash-style={sysv,gnu,both}
1686 specify the linker hash style
1688 Some influential environment variables:
1689 CC C compiler command
1690 CFLAGS C compiler flags
1691 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1692 nonstandard directory <lib dir>
1693 LIBS libraries to pass to the linker, e.g. -l<library>
1694 CPPFLAGS C/C++/Objective C preprocessor flags, e.g. -I<include dir> if
1695 you have headers in a nonstandard directory <include dir>
1696 CXX C++ compiler command
1697 CXXFLAGS C++ compiler flags
1698 CPP C preprocessor
1699 CXXCPP C++ preprocessor
1700 GMPLIBS How to link GMP
1701 GMPINC How to find GMP include files
1702 ISLLIBS How to link ISL
1703 ISLINC How to find ISL include files
1704 CLOOGLIBS How to link CLOOG
1705 CLOOGINC How to find CLOOG include files
1707 Use these variables to override the choices made by `configure' or to help
1708 it to find libraries and programs with nonstandard names/locations.
1710 Report bugs to the package provider.
1711 _ACEOF
1712 ac_status=$?
1715 if test "$ac_init_help" = "recursive"; then
1716 # If there are subdirs, report their specific --help.
1717 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1718 test -d "$ac_dir" ||
1719 { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1720 continue
1721 ac_builddir=.
1723 case "$ac_dir" in
1724 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1726 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
1727 # A ".." for each directory in $ac_dir_suffix.
1728 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
1729 case $ac_top_builddir_sub in
1730 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1731 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1732 esac ;;
1733 esac
1734 ac_abs_top_builddir=$ac_pwd
1735 ac_abs_builddir=$ac_pwd$ac_dir_suffix
1736 # for backward compatibility:
1737 ac_top_builddir=$ac_top_build_prefix
1739 case $srcdir in
1740 .) # We are building in place.
1741 ac_srcdir=.
1742 ac_top_srcdir=$ac_top_builddir_sub
1743 ac_abs_top_srcdir=$ac_pwd ;;
1744 [\\/]* | ?:[\\/]* ) # Absolute name.
1745 ac_srcdir=$srcdir$ac_dir_suffix;
1746 ac_top_srcdir=$srcdir
1747 ac_abs_top_srcdir=$srcdir ;;
1748 *) # Relative name.
1749 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1750 ac_top_srcdir=$ac_top_build_prefix$srcdir
1751 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1752 esac
1753 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1755 cd "$ac_dir" || { ac_status=$?; continue; }
1756 # Check for guested configure.
1757 if test -f "$ac_srcdir/configure.gnu"; then
1758 echo &&
1759 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1760 elif test -f "$ac_srcdir/configure"; then
1761 echo &&
1762 $SHELL "$ac_srcdir/configure" --help=recursive
1763 else
1764 $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1765 fi || ac_status=$?
1766 cd "$ac_pwd" || { ac_status=$?; break; }
1767 done
1770 test -n "$ac_init_help" && exit $ac_status
1771 if $ac_init_version; then
1772 cat <<\_ACEOF
1773 configure
1774 generated by GNU Autoconf 2.64
1776 Copyright (C) 2009 Free Software Foundation, Inc.
1777 This configure script is free software; the Free Software Foundation
1778 gives unlimited permission to copy, distribute and modify it.
1779 _ACEOF
1780 exit
1783 ## ------------------------ ##
1784 ## Autoconf initialization. ##
1785 ## ------------------------ ##
1787 # ac_fn_c_try_compile LINENO
1788 # --------------------------
1789 # Try to compile conftest.$ac_ext, and return whether this succeeded.
1790 ac_fn_c_try_compile ()
1792 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1793 rm -f conftest.$ac_objext
1794 if { { ac_try="$ac_compile"
1795 case "(($ac_try" in
1796 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1797 *) ac_try_echo=$ac_try;;
1798 esac
1799 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1800 $as_echo "$ac_try_echo"; } >&5
1801 (eval "$ac_compile") 2>conftest.err
1802 ac_status=$?
1803 if test -s conftest.err; then
1804 grep -v '^ *+' conftest.err >conftest.er1
1805 cat conftest.er1 >&5
1806 mv -f conftest.er1 conftest.err
1808 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1809 test $ac_status = 0; } && {
1810 test -z "$ac_c_werror_flag" ||
1811 test ! -s conftest.err
1812 } && test -s conftest.$ac_objext; then :
1813 ac_retval=0
1814 else
1815 $as_echo "$as_me: failed program was:" >&5
1816 sed 's/^/| /' conftest.$ac_ext >&5
1818 ac_retval=1
1820 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1821 return $ac_retval
1823 } # ac_fn_c_try_compile
1825 # ac_fn_cxx_try_compile LINENO
1826 # ----------------------------
1827 # Try to compile conftest.$ac_ext, and return whether this succeeded.
1828 ac_fn_cxx_try_compile ()
1830 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1831 rm -f conftest.$ac_objext
1832 if { { ac_try="$ac_compile"
1833 case "(($ac_try" in
1834 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1835 *) ac_try_echo=$ac_try;;
1836 esac
1837 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1838 $as_echo "$ac_try_echo"; } >&5
1839 (eval "$ac_compile") 2>conftest.err
1840 ac_status=$?
1841 if test -s conftest.err; then
1842 grep -v '^ *+' conftest.err >conftest.er1
1843 cat conftest.er1 >&5
1844 mv -f conftest.er1 conftest.err
1846 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1847 test $ac_status = 0; } && {
1848 test -z "$ac_cxx_werror_flag" ||
1849 test ! -s conftest.err
1850 } && test -s conftest.$ac_objext; then :
1851 ac_retval=0
1852 else
1853 $as_echo "$as_me: failed program was:" >&5
1854 sed 's/^/| /' conftest.$ac_ext >&5
1856 ac_retval=1
1858 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1859 return $ac_retval
1861 } # ac_fn_cxx_try_compile
1863 # ac_fn_c_try_cpp LINENO
1864 # ----------------------
1865 # Try to preprocess conftest.$ac_ext, and return whether this succeeded.
1866 ac_fn_c_try_cpp ()
1868 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1869 if { { ac_try="$ac_cpp conftest.$ac_ext"
1870 case "(($ac_try" in
1871 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1872 *) ac_try_echo=$ac_try;;
1873 esac
1874 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1875 $as_echo "$ac_try_echo"; } >&5
1876 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
1877 ac_status=$?
1878 if test -s conftest.err; then
1879 grep -v '^ *+' conftest.err >conftest.er1
1880 cat conftest.er1 >&5
1881 mv -f conftest.er1 conftest.err
1883 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1884 test $ac_status = 0; } >/dev/null && {
1885 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
1886 test ! -s conftest.err
1887 }; then :
1888 ac_retval=0
1889 else
1890 $as_echo "$as_me: failed program was:" >&5
1891 sed 's/^/| /' conftest.$ac_ext >&5
1893 ac_retval=1
1895 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1896 return $ac_retval
1898 } # ac_fn_c_try_cpp
1900 # ac_fn_c_check_header_mongrel LINENO HEADER VAR INCLUDES
1901 # -------------------------------------------------------
1902 # Tests whether HEADER exists, giving a warning if it cannot be compiled using
1903 # the include files in INCLUDES and setting the cache variable VAR
1904 # accordingly.
1905 ac_fn_c_check_header_mongrel ()
1907 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1908 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
1909 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1910 $as_echo_n "checking for $2... " >&6; }
1911 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
1912 $as_echo_n "(cached) " >&6
1914 eval ac_res=\$$3
1915 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1916 $as_echo "$ac_res" >&6; }
1917 else
1918 # Is the header compilable?
1919 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5
1920 $as_echo_n "checking $2 usability... " >&6; }
1921 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1922 /* end confdefs.h. */
1924 #include <$2>
1925 _ACEOF
1926 if ac_fn_c_try_compile "$LINENO"; then :
1927 ac_header_compiler=yes
1928 else
1929 ac_header_compiler=no
1931 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1932 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5
1933 $as_echo "$ac_header_compiler" >&6; }
1935 # Is the header present?
1936 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5
1937 $as_echo_n "checking $2 presence... " >&6; }
1938 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1939 /* end confdefs.h. */
1940 #include <$2>
1941 _ACEOF
1942 if ac_fn_c_try_cpp "$LINENO"; then :
1943 ac_header_preproc=yes
1944 else
1945 ac_header_preproc=no
1947 rm -f conftest.err conftest.$ac_ext
1948 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5
1949 $as_echo "$ac_header_preproc" >&6; }
1951 # So? What about this header?
1952 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in #((
1953 yes:no: )
1954 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5
1955 $as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;}
1956 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
1957 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
1959 no:yes:* )
1960 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5
1961 $as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;}
1962 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: check for missing prerequisite headers?" >&5
1963 $as_echo "$as_me: WARNING: $2: check for missing prerequisite headers?" >&2;}
1964 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5
1965 $as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;}
1966 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&5
1967 $as_echo "$as_me: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&2;}
1968 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
1969 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
1971 esac
1972 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1973 $as_echo_n "checking for $2... " >&6; }
1974 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
1975 $as_echo_n "(cached) " >&6
1976 else
1977 eval "$3=\$ac_header_compiler"
1979 eval ac_res=\$$3
1980 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1981 $as_echo "$ac_res" >&6; }
1983 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1985 } # ac_fn_c_check_header_mongrel
1987 # ac_fn_c_try_run LINENO
1988 # ----------------------
1989 # Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
1990 # that executables *can* be run.
1991 ac_fn_c_try_run ()
1993 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1994 if { { ac_try="$ac_link"
1995 case "(($ac_try" in
1996 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1997 *) ac_try_echo=$ac_try;;
1998 esac
1999 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2000 $as_echo "$ac_try_echo"; } >&5
2001 (eval "$ac_link") 2>&5
2002 ac_status=$?
2003 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2004 test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
2005 { { case "(($ac_try" in
2006 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2007 *) ac_try_echo=$ac_try;;
2008 esac
2009 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2010 $as_echo "$ac_try_echo"; } >&5
2011 (eval "$ac_try") 2>&5
2012 ac_status=$?
2013 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2014 test $ac_status = 0; }; }; then :
2015 ac_retval=0
2016 else
2017 $as_echo "$as_me: program exited with status $ac_status" >&5
2018 $as_echo "$as_me: failed program was:" >&5
2019 sed 's/^/| /' conftest.$ac_ext >&5
2021 ac_retval=$ac_status
2023 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
2024 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2025 return $ac_retval
2027 } # ac_fn_c_try_run
2029 # ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
2030 # -------------------------------------------------------
2031 # Tests whether HEADER exists and can be compiled using the include files in
2032 # INCLUDES, setting the cache variable VAR accordingly.
2033 ac_fn_c_check_header_compile ()
2035 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2036 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2037 $as_echo_n "checking for $2... " >&6; }
2038 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
2039 $as_echo_n "(cached) " >&6
2040 else
2041 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2042 /* end confdefs.h. */
2044 #include <$2>
2045 _ACEOF
2046 if ac_fn_c_try_compile "$LINENO"; then :
2047 eval "$3=yes"
2048 else
2049 eval "$3=no"
2051 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2053 eval ac_res=\$$3
2054 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2055 $as_echo "$ac_res" >&6; }
2056 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2058 } # ac_fn_c_check_header_compile
2060 # ac_fn_c_compute_int LINENO EXPR VAR INCLUDES
2061 # --------------------------------------------
2062 # Tries to find the compile-time value of EXPR in a program that includes
2063 # INCLUDES, setting VAR accordingly. Returns whether the value could be
2064 # computed
2065 ac_fn_c_compute_int ()
2067 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2068 if test "$cross_compiling" = yes; then
2069 # Depending upon the size, compute the lo and hi bounds.
2070 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2071 /* end confdefs.h. */
2074 main ()
2076 static int test_array [1 - 2 * !(($2) >= 0)];
2077 test_array [0] = 0
2080 return 0;
2082 _ACEOF
2083 if ac_fn_c_try_compile "$LINENO"; then :
2084 ac_lo=0 ac_mid=0
2085 while :; do
2086 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2087 /* end confdefs.h. */
2090 main ()
2092 static int test_array [1 - 2 * !(($2) <= $ac_mid)];
2093 test_array [0] = 0
2096 return 0;
2098 _ACEOF
2099 if ac_fn_c_try_compile "$LINENO"; then :
2100 ac_hi=$ac_mid; break
2101 else
2102 as_fn_arith $ac_mid + 1 && ac_lo=$as_val
2103 if test $ac_lo -le $ac_mid; then
2104 ac_lo= ac_hi=
2105 break
2107 as_fn_arith 2 '*' $ac_mid + 1 && ac_mid=$as_val
2109 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2110 done
2111 else
2112 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2113 /* end confdefs.h. */
2116 main ()
2118 static int test_array [1 - 2 * !(($2) < 0)];
2119 test_array [0] = 0
2122 return 0;
2124 _ACEOF
2125 if ac_fn_c_try_compile "$LINENO"; then :
2126 ac_hi=-1 ac_mid=-1
2127 while :; do
2128 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2129 /* end confdefs.h. */
2132 main ()
2134 static int test_array [1 - 2 * !(($2) >= $ac_mid)];
2135 test_array [0] = 0
2138 return 0;
2140 _ACEOF
2141 if ac_fn_c_try_compile "$LINENO"; then :
2142 ac_lo=$ac_mid; break
2143 else
2144 as_fn_arith '(' $ac_mid ')' - 1 && ac_hi=$as_val
2145 if test $ac_mid -le $ac_hi; then
2146 ac_lo= ac_hi=
2147 break
2149 as_fn_arith 2 '*' $ac_mid && ac_mid=$as_val
2151 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2152 done
2153 else
2154 ac_lo= ac_hi=
2156 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2158 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2159 # Binary search between lo and hi bounds.
2160 while test "x$ac_lo" != "x$ac_hi"; do
2161 as_fn_arith '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo && ac_mid=$as_val
2162 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2163 /* end confdefs.h. */
2166 main ()
2168 static int test_array [1 - 2 * !(($2) <= $ac_mid)];
2169 test_array [0] = 0
2172 return 0;
2174 _ACEOF
2175 if ac_fn_c_try_compile "$LINENO"; then :
2176 ac_hi=$ac_mid
2177 else
2178 as_fn_arith '(' $ac_mid ')' + 1 && ac_lo=$as_val
2180 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2181 done
2182 case $ac_lo in #((
2183 ?*) eval "$3=\$ac_lo"; ac_retval=0 ;;
2184 '') ac_retval=1 ;;
2185 esac
2186 else
2187 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2188 /* end confdefs.h. */
2190 static long int longval () { return $2; }
2191 static unsigned long int ulongval () { return $2; }
2192 #include <stdio.h>
2193 #include <stdlib.h>
2195 main ()
2198 FILE *f = fopen ("conftest.val", "w");
2199 if (! f)
2200 return 1;
2201 if (($2) < 0)
2203 long int i = longval ();
2204 if (i != ($2))
2205 return 1;
2206 fprintf (f, "%ld", i);
2208 else
2210 unsigned long int i = ulongval ();
2211 if (i != ($2))
2212 return 1;
2213 fprintf (f, "%lu", i);
2215 /* Do not output a trailing newline, as this causes \r\n confusion
2216 on some platforms. */
2217 return ferror (f) || fclose (f) != 0;
2220 return 0;
2222 _ACEOF
2223 if ac_fn_c_try_run "$LINENO"; then :
2224 echo >>conftest.val; read $3 <conftest.val; ac_retval=0
2225 else
2226 ac_retval=1
2228 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
2229 conftest.$ac_objext conftest.beam conftest.$ac_ext
2230 rm -f conftest.val
2233 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2234 return $ac_retval
2236 } # ac_fn_c_compute_int
2238 # ac_fn_c_check_type LINENO TYPE VAR INCLUDES
2239 # -------------------------------------------
2240 # Tests whether TYPE exists after having included INCLUDES, setting cache
2241 # variable VAR accordingly.
2242 ac_fn_c_check_type ()
2244 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2245 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2246 $as_echo_n "checking for $2... " >&6; }
2247 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
2248 $as_echo_n "(cached) " >&6
2249 else
2250 eval "$3=no"
2251 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2252 /* end confdefs.h. */
2255 main ()
2257 if (sizeof ($2))
2258 return 0;
2260 return 0;
2262 _ACEOF
2263 if ac_fn_c_try_compile "$LINENO"; then :
2264 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2265 /* end confdefs.h. */
2268 main ()
2270 if (sizeof (($2)))
2271 return 0;
2273 return 0;
2275 _ACEOF
2276 if ac_fn_c_try_compile "$LINENO"; then :
2278 else
2279 eval "$3=yes"
2281 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2283 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2285 eval ac_res=\$$3
2286 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2287 $as_echo "$ac_res" >&6; }
2288 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2290 } # ac_fn_c_check_type
2292 # ac_fn_c_find_intX_t LINENO BITS VAR
2293 # -----------------------------------
2294 # Finds a signed integer type with width BITS, setting cache variable VAR
2295 # accordingly.
2296 ac_fn_c_find_intX_t ()
2298 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2299 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for int$2_t" >&5
2300 $as_echo_n "checking for int$2_t... " >&6; }
2301 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
2302 $as_echo_n "(cached) " >&6
2303 else
2304 eval "$3=no"
2305 for ac_type in int$2_t 'int' 'long int' \
2306 'long long int' 'short int' 'signed char'; do
2307 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2308 /* end confdefs.h. */
2309 $ac_includes_default
2311 main ()
2313 static int test_array [1 - 2 * !(0 < ($ac_type) (((($ac_type) 1 << ($2 - 2)) - 1) * 2 + 1))];
2314 test_array [0] = 0
2317 return 0;
2319 _ACEOF
2320 if ac_fn_c_try_compile "$LINENO"; then :
2321 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2322 /* end confdefs.h. */
2323 $ac_includes_default
2325 main ()
2327 static int test_array [1 - 2 * !(($ac_type) (((($ac_type) 1 << ($2 - 2)) - 1) * 2 + 1)
2328 < ($ac_type) (((($ac_type) 1 << ($2 - 2)) - 1) * 2 + 2))];
2329 test_array [0] = 0
2332 return 0;
2334 _ACEOF
2335 if ac_fn_c_try_compile "$LINENO"; then :
2337 else
2338 case $ac_type in #(
2339 int$2_t) :
2340 eval "$3=yes" ;; #(
2341 *) :
2342 eval "$3=\$ac_type" ;;
2343 esac
2345 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2347 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2348 eval as_val=\$$3
2349 if test "x$as_val" = x""no; then :
2351 else
2352 break
2354 done
2356 eval ac_res=\$$3
2357 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2358 $as_echo "$ac_res" >&6; }
2359 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2361 } # ac_fn_c_find_intX_t
2363 # ac_fn_c_try_link LINENO
2364 # -----------------------
2365 # Try to link conftest.$ac_ext, and return whether this succeeded.
2366 ac_fn_c_try_link ()
2368 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2369 rm -f conftest.$ac_objext conftest$ac_exeext
2370 if { { ac_try="$ac_link"
2371 case "(($ac_try" in
2372 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2373 *) ac_try_echo=$ac_try;;
2374 esac
2375 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2376 $as_echo "$ac_try_echo"; } >&5
2377 (eval "$ac_link") 2>conftest.err
2378 ac_status=$?
2379 if test -s conftest.err; then
2380 grep -v '^ *+' conftest.err >conftest.er1
2381 cat conftest.er1 >&5
2382 mv -f conftest.er1 conftest.err
2384 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2385 test $ac_status = 0; } && {
2386 test -z "$ac_c_werror_flag" ||
2387 test ! -s conftest.err
2388 } && test -s conftest$ac_exeext && {
2389 test "$cross_compiling" = yes ||
2390 $as_test_x conftest$ac_exeext
2391 }; then :
2392 ac_retval=0
2393 else
2394 $as_echo "$as_me: failed program was:" >&5
2395 sed 's/^/| /' conftest.$ac_ext >&5
2397 ac_retval=1
2399 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
2400 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
2401 # interfere with the next link command; also delete a directory that is
2402 # left behind by Apple's compiler. We do this before executing the actions.
2403 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
2404 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2405 return $ac_retval
2407 } # ac_fn_c_try_link
2409 # ac_fn_c_find_uintX_t LINENO BITS VAR
2410 # ------------------------------------
2411 # Finds an unsigned integer type with width BITS, setting cache variable VAR
2412 # accordingly.
2413 ac_fn_c_find_uintX_t ()
2415 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2416 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for uint$2_t" >&5
2417 $as_echo_n "checking for uint$2_t... " >&6; }
2418 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
2419 $as_echo_n "(cached) " >&6
2420 else
2421 eval "$3=no"
2422 for ac_type in uint$2_t 'unsigned int' 'unsigned long int' \
2423 'unsigned long long int' 'unsigned short int' 'unsigned char'; do
2424 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2425 /* end confdefs.h. */
2426 $ac_includes_default
2428 main ()
2430 static int test_array [1 - 2 * !(($ac_type) -1 >> ($2 - 1) == 1)];
2431 test_array [0] = 0
2434 return 0;
2436 _ACEOF
2437 if ac_fn_c_try_compile "$LINENO"; then :
2438 case $ac_type in #(
2439 uint$2_t) :
2440 eval "$3=yes" ;; #(
2441 *) :
2442 eval "$3=\$ac_type" ;;
2443 esac
2445 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2446 eval as_val=\$$3
2447 if test "x$as_val" = x""no; then :
2449 else
2450 break
2452 done
2454 eval ac_res=\$$3
2455 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2456 $as_echo "$ac_res" >&6; }
2457 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2459 } # ac_fn_c_find_uintX_t
2461 # ac_fn_c_check_header_preproc LINENO HEADER VAR
2462 # ----------------------------------------------
2463 # Tests whether HEADER is present, setting the cache variable VAR accordingly.
2464 ac_fn_c_check_header_preproc ()
2466 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2467 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2468 $as_echo_n "checking for $2... " >&6; }
2469 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
2470 $as_echo_n "(cached) " >&6
2471 else
2472 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2473 /* end confdefs.h. */
2474 #include <$2>
2475 _ACEOF
2476 if ac_fn_c_try_cpp "$LINENO"; then :
2477 eval "$3=yes"
2478 else
2479 eval "$3=no"
2481 rm -f conftest.err conftest.$ac_ext
2483 eval ac_res=\$$3
2484 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2485 $as_echo "$ac_res" >&6; }
2486 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2488 } # ac_fn_c_check_header_preproc
2490 # ac_fn_cxx_try_cpp LINENO
2491 # ------------------------
2492 # Try to preprocess conftest.$ac_ext, and return whether this succeeded.
2493 ac_fn_cxx_try_cpp ()
2495 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2496 if { { ac_try="$ac_cpp conftest.$ac_ext"
2497 case "(($ac_try" in
2498 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2499 *) ac_try_echo=$ac_try;;
2500 esac
2501 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2502 $as_echo "$ac_try_echo"; } >&5
2503 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
2504 ac_status=$?
2505 if test -s conftest.err; then
2506 grep -v '^ *+' conftest.err >conftest.er1
2507 cat conftest.er1 >&5
2508 mv -f conftest.er1 conftest.err
2510 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2511 test $ac_status = 0; } >/dev/null && {
2512 test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
2513 test ! -s conftest.err
2514 }; then :
2515 ac_retval=0
2516 else
2517 $as_echo "$as_me: failed program was:" >&5
2518 sed 's/^/| /' conftest.$ac_ext >&5
2520 ac_retval=1
2522 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2523 return $ac_retval
2525 } # ac_fn_cxx_try_cpp
2527 # ac_fn_cxx_check_header_preproc LINENO HEADER VAR
2528 # ------------------------------------------------
2529 # Tests whether HEADER is present, setting the cache variable VAR accordingly.
2530 ac_fn_cxx_check_header_preproc ()
2532 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2533 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2534 $as_echo_n "checking for $2... " >&6; }
2535 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
2536 $as_echo_n "(cached) " >&6
2537 else
2538 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2539 /* end confdefs.h. */
2540 #include <$2>
2541 _ACEOF
2542 if ac_fn_cxx_try_cpp "$LINENO"; then :
2543 eval "$3=yes"
2544 else
2545 eval "$3=no"
2547 rm -f conftest.err conftest.$ac_ext
2549 eval ac_res=\$$3
2550 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2551 $as_echo "$ac_res" >&6; }
2552 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2554 } # ac_fn_cxx_check_header_preproc
2556 # ac_fn_c_check_func LINENO FUNC VAR
2557 # ----------------------------------
2558 # Tests whether FUNC exists, setting the cache variable VAR accordingly
2559 ac_fn_c_check_func ()
2561 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2562 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2563 $as_echo_n "checking for $2... " >&6; }
2564 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
2565 $as_echo_n "(cached) " >&6
2566 else
2567 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2568 /* end confdefs.h. */
2569 /* Define $2 to an innocuous variant, in case <limits.h> declares $2.
2570 For example, HP-UX 11i <limits.h> declares gettimeofday. */
2571 #define $2 innocuous_$2
2573 /* System header to define __stub macros and hopefully few prototypes,
2574 which can conflict with char $2 (); below.
2575 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
2576 <limits.h> exists even on freestanding compilers. */
2578 #ifdef __STDC__
2579 # include <limits.h>
2580 #else
2581 # include <assert.h>
2582 #endif
2584 #undef $2
2586 /* Override any GCC internal prototype to avoid an error.
2587 Use char because int might match the return type of a GCC
2588 builtin and then its argument prototype would still apply. */
2589 #ifdef __cplusplus
2590 extern "C"
2591 #endif
2592 char $2 ();
2593 /* The GNU C library defines this for functions which it implements
2594 to always fail with ENOSYS. Some functions are actually named
2595 something starting with __ and the normal name is an alias. */
2596 #if defined __stub_$2 || defined __stub___$2
2597 choke me
2598 #endif
2601 main ()
2603 return $2 ();
2605 return 0;
2607 _ACEOF
2608 if ac_fn_c_try_link "$LINENO"; then :
2609 eval "$3=yes"
2610 else
2611 eval "$3=no"
2613 rm -f core conftest.err conftest.$ac_objext \
2614 conftest$ac_exeext conftest.$ac_ext
2616 eval ac_res=\$$3
2617 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2618 $as_echo "$ac_res" >&6; }
2619 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2621 } # ac_fn_c_check_func
2623 # ac_fn_cxx_try_link LINENO
2624 # -------------------------
2625 # Try to link conftest.$ac_ext, and return whether this succeeded.
2626 ac_fn_cxx_try_link ()
2628 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2629 rm -f conftest.$ac_objext conftest$ac_exeext
2630 if { { ac_try="$ac_link"
2631 case "(($ac_try" in
2632 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2633 *) ac_try_echo=$ac_try;;
2634 esac
2635 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2636 $as_echo "$ac_try_echo"; } >&5
2637 (eval "$ac_link") 2>conftest.err
2638 ac_status=$?
2639 if test -s conftest.err; then
2640 grep -v '^ *+' conftest.err >conftest.er1
2641 cat conftest.er1 >&5
2642 mv -f conftest.er1 conftest.err
2644 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2645 test $ac_status = 0; } && {
2646 test -z "$ac_cxx_werror_flag" ||
2647 test ! -s conftest.err
2648 } && test -s conftest$ac_exeext && {
2649 test "$cross_compiling" = yes ||
2650 $as_test_x conftest$ac_exeext
2651 }; then :
2652 ac_retval=0
2653 else
2654 $as_echo "$as_me: failed program was:" >&5
2655 sed 's/^/| /' conftest.$ac_ext >&5
2657 ac_retval=1
2659 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
2660 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
2661 # interfere with the next link command; also delete a directory that is
2662 # left behind by Apple's compiler. We do this before executing the actions.
2663 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
2664 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2665 return $ac_retval
2667 } # ac_fn_cxx_try_link
2668 cat >config.log <<_ACEOF
2669 This file contains any messages produced by compilers while
2670 running configure, to aid debugging if configure makes a mistake.
2672 It was created by $as_me, which was
2673 generated by GNU Autoconf 2.64. Invocation command line was
2675 $ $0 $@
2677 _ACEOF
2678 exec 5>>config.log
2680 cat <<_ASUNAME
2681 ## --------- ##
2682 ## Platform. ##
2683 ## --------- ##
2685 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
2686 uname -m = `(uname -m) 2>/dev/null || echo unknown`
2687 uname -r = `(uname -r) 2>/dev/null || echo unknown`
2688 uname -s = `(uname -s) 2>/dev/null || echo unknown`
2689 uname -v = `(uname -v) 2>/dev/null || echo unknown`
2691 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
2692 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
2694 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
2695 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
2696 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
2697 /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
2698 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
2699 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
2700 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
2702 _ASUNAME
2704 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2705 for as_dir in $PATH
2707 IFS=$as_save_IFS
2708 test -z "$as_dir" && as_dir=.
2709 $as_echo "PATH: $as_dir"
2710 done
2711 IFS=$as_save_IFS
2713 } >&5
2715 cat >&5 <<_ACEOF
2718 ## ----------- ##
2719 ## Core tests. ##
2720 ## ----------- ##
2722 _ACEOF
2725 # Keep a trace of the command line.
2726 # Strip out --no-create and --no-recursion so they do not pile up.
2727 # Strip out --silent because we don't want to record it for future runs.
2728 # Also quote any args containing shell meta-characters.
2729 # Make two passes to allow for proper duplicate-argument suppression.
2730 ac_configure_args=
2731 ac_configure_args0=
2732 ac_configure_args1=
2733 ac_must_keep_next=false
2734 for ac_pass in 1 2
2736 for ac_arg
2738 case $ac_arg in
2739 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
2740 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
2741 | -silent | --silent | --silen | --sile | --sil)
2742 continue ;;
2743 *\'*)
2744 ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
2745 esac
2746 case $ac_pass in
2747 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
2749 as_fn_append ac_configure_args1 " '$ac_arg'"
2750 if test $ac_must_keep_next = true; then
2751 ac_must_keep_next=false # Got value, back to normal.
2752 else
2753 case $ac_arg in
2754 *=* | --config-cache | -C | -disable-* | --disable-* \
2755 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
2756 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
2757 | -with-* | --with-* | -without-* | --without-* | --x)
2758 case "$ac_configure_args0 " in
2759 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
2760 esac
2762 -* ) ac_must_keep_next=true ;;
2763 esac
2765 as_fn_append ac_configure_args " '$ac_arg'"
2767 esac
2768 done
2769 done
2770 { ac_configure_args0=; unset ac_configure_args0;}
2771 { ac_configure_args1=; unset ac_configure_args1;}
2773 # When interrupted or exit'd, cleanup temporary files, and complete
2774 # config.log. We remove comments because anyway the quotes in there
2775 # would cause problems or look ugly.
2776 # WARNING: Use '\'' to represent an apostrophe within the trap.
2777 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
2778 trap 'exit_status=$?
2779 # Save into config.log some information that might help in debugging.
2781 echo
2783 cat <<\_ASBOX
2784 ## ---------------- ##
2785 ## Cache variables. ##
2786 ## ---------------- ##
2787 _ASBOX
2788 echo
2789 # The following way of writing the cache mishandles newlines in values,
2791 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
2792 eval ac_val=\$$ac_var
2793 case $ac_val in #(
2794 *${as_nl}*)
2795 case $ac_var in #(
2796 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
2797 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
2798 esac
2799 case $ac_var in #(
2800 _ | IFS | as_nl) ;; #(
2801 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
2802 *) { eval $ac_var=; unset $ac_var;} ;;
2803 esac ;;
2804 esac
2805 done
2806 (set) 2>&1 |
2807 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
2808 *${as_nl}ac_space=\ *)
2809 sed -n \
2810 "s/'\''/'\''\\\\'\'''\''/g;
2811 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
2812 ;; #(
2814 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
2816 esac |
2817 sort
2819 echo
2821 cat <<\_ASBOX
2822 ## ----------------- ##
2823 ## Output variables. ##
2824 ## ----------------- ##
2825 _ASBOX
2826 echo
2827 for ac_var in $ac_subst_vars
2829 eval ac_val=\$$ac_var
2830 case $ac_val in
2831 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2832 esac
2833 $as_echo "$ac_var='\''$ac_val'\''"
2834 done | sort
2835 echo
2837 if test -n "$ac_subst_files"; then
2838 cat <<\_ASBOX
2839 ## ------------------- ##
2840 ## File substitutions. ##
2841 ## ------------------- ##
2842 _ASBOX
2843 echo
2844 for ac_var in $ac_subst_files
2846 eval ac_val=\$$ac_var
2847 case $ac_val in
2848 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2849 esac
2850 $as_echo "$ac_var='\''$ac_val'\''"
2851 done | sort
2852 echo
2855 if test -s confdefs.h; then
2856 cat <<\_ASBOX
2857 ## ----------- ##
2858 ## confdefs.h. ##
2859 ## ----------- ##
2860 _ASBOX
2861 echo
2862 cat confdefs.h
2863 echo
2865 test "$ac_signal" != 0 &&
2866 $as_echo "$as_me: caught signal $ac_signal"
2867 $as_echo "$as_me: exit $exit_status"
2868 } >&5
2869 rm -f core *.core core.conftest.* &&
2870 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
2871 exit $exit_status
2873 for ac_signal in 1 2 13 15; do
2874 trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
2875 done
2876 ac_signal=0
2878 # confdefs.h avoids OS command line length limits that DEFS can exceed.
2879 rm -f -r conftest* confdefs.h
2881 $as_echo "/* confdefs.h */" > confdefs.h
2883 # Predefined preprocessor variables.
2885 cat >>confdefs.h <<_ACEOF
2886 #define PACKAGE_NAME "$PACKAGE_NAME"
2887 _ACEOF
2889 cat >>confdefs.h <<_ACEOF
2890 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
2891 _ACEOF
2893 cat >>confdefs.h <<_ACEOF
2894 #define PACKAGE_VERSION "$PACKAGE_VERSION"
2895 _ACEOF
2897 cat >>confdefs.h <<_ACEOF
2898 #define PACKAGE_STRING "$PACKAGE_STRING"
2899 _ACEOF
2901 cat >>confdefs.h <<_ACEOF
2902 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
2903 _ACEOF
2905 cat >>confdefs.h <<_ACEOF
2906 #define PACKAGE_URL "$PACKAGE_URL"
2907 _ACEOF
2910 # Let the site file select an alternate cache file if it wants to.
2911 # Prefer an explicitly selected file to automatically selected ones.
2912 ac_site_file1=NONE
2913 ac_site_file2=NONE
2914 if test -n "$CONFIG_SITE"; then
2915 ac_site_file1=$CONFIG_SITE
2916 elif test "x$prefix" != xNONE; then
2917 ac_site_file1=$prefix/share/config.site
2918 ac_site_file2=$prefix/etc/config.site
2919 else
2920 ac_site_file1=$ac_default_prefix/share/config.site
2921 ac_site_file2=$ac_default_prefix/etc/config.site
2923 for ac_site_file in "$ac_site_file1" "$ac_site_file2"
2925 test "x$ac_site_file" = xNONE && continue
2926 if test -r "$ac_site_file"; then
2927 { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
2928 $as_echo "$as_me: loading site script $ac_site_file" >&6;}
2929 sed 's/^/| /' "$ac_site_file" >&5
2930 . "$ac_site_file"
2932 done
2934 if test -r "$cache_file"; then
2935 # Some versions of bash will fail to source /dev/null (special
2936 # files actually), so we avoid doing that.
2937 if test -f "$cache_file"; then
2938 { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
2939 $as_echo "$as_me: loading cache $cache_file" >&6;}
2940 case $cache_file in
2941 [\\/]* | ?:[\\/]* ) . "$cache_file";;
2942 *) . "./$cache_file";;
2943 esac
2945 else
2946 { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
2947 $as_echo "$as_me: creating cache $cache_file" >&6;}
2948 >$cache_file
2951 # Check that the precious variables saved in the cache have kept the same
2952 # value.
2953 ac_cache_corrupted=false
2954 for ac_var in $ac_precious_vars; do
2955 eval ac_old_set=\$ac_cv_env_${ac_var}_set
2956 eval ac_new_set=\$ac_env_${ac_var}_set
2957 eval ac_old_val=\$ac_cv_env_${ac_var}_value
2958 eval ac_new_val=\$ac_env_${ac_var}_value
2959 case $ac_old_set,$ac_new_set in
2960 set,)
2961 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
2962 $as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
2963 ac_cache_corrupted=: ;;
2964 ,set)
2965 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
2966 $as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
2967 ac_cache_corrupted=: ;;
2968 ,);;
2970 if test "x$ac_old_val" != "x$ac_new_val"; then
2971 # differences in whitespace do not lead to failure.
2972 ac_old_val_w=`echo x $ac_old_val`
2973 ac_new_val_w=`echo x $ac_new_val`
2974 if test "$ac_old_val_w" != "$ac_new_val_w"; then
2975 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
2976 $as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
2977 ac_cache_corrupted=:
2978 else
2979 { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
2980 $as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
2981 eval $ac_var=\$ac_old_val
2983 { $as_echo "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5
2984 $as_echo "$as_me: former value: \`$ac_old_val'" >&2;}
2985 { $as_echo "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5
2986 $as_echo "$as_me: current value: \`$ac_new_val'" >&2;}
2987 fi;;
2988 esac
2989 # Pass precious variables to config.status.
2990 if test "$ac_new_set" = set; then
2991 case $ac_new_val in
2992 *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
2993 *) ac_arg=$ac_var=$ac_new_val ;;
2994 esac
2995 case " $ac_configure_args " in
2996 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
2997 *) as_fn_append ac_configure_args " '$ac_arg'" ;;
2998 esac
3000 done
3001 if $ac_cache_corrupted; then
3002 { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3003 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3004 { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
3005 $as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
3006 as_fn_error "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
3008 ## -------------------- ##
3009 ## Main body of script. ##
3010 ## -------------------- ##
3012 ac_ext=c
3013 ac_cpp='$CPP $CPPFLAGS'
3014 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3015 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3016 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3023 ac_config_headers="$ac_config_headers auto-host.h:config.in"
3026 gcc_version=`cat $srcdir/BASE-VER`
3028 # Determine the host, build, and target systems
3029 ac_aux_dir=
3030 for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do
3031 for ac_t in install-sh install.sh shtool; do
3032 if test -f "$ac_dir/$ac_t"; then
3033 ac_aux_dir=$ac_dir
3034 ac_install_sh="$ac_aux_dir/$ac_t -c"
3035 break 2
3037 done
3038 done
3039 if test -z "$ac_aux_dir"; then
3040 as_fn_error "cannot find install-sh, install.sh, or shtool in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" "$LINENO" 5
3043 # These three variables are undocumented and unsupported,
3044 # and are intended to be withdrawn in a future Autoconf release.
3045 # They can cause serious problems if a builder's source tree is in a directory
3046 # whose full name contains unusual characters.
3047 ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
3048 ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
3049 ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
3052 # Make sure we can run config.sub.
3053 $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
3054 as_fn_error "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
3056 { $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
3057 $as_echo_n "checking build system type... " >&6; }
3058 if test "${ac_cv_build+set}" = set; then :
3059 $as_echo_n "(cached) " >&6
3060 else
3061 ac_build_alias=$build_alias
3062 test "x$ac_build_alias" = x &&
3063 ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
3064 test "x$ac_build_alias" = x &&
3065 as_fn_error "cannot guess build type; you must specify one" "$LINENO" 5
3066 ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
3067 as_fn_error "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
3070 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
3071 $as_echo "$ac_cv_build" >&6; }
3072 case $ac_cv_build in
3073 *-*-*) ;;
3074 *) as_fn_error "invalid value of canonical build" "$LINENO" 5;;
3075 esac
3076 build=$ac_cv_build
3077 ac_save_IFS=$IFS; IFS='-'
3078 set x $ac_cv_build
3079 shift
3080 build_cpu=$1
3081 build_vendor=$2
3082 shift; shift
3083 # Remember, the first character of IFS is used to create $*,
3084 # except with old shells:
3085 build_os=$*
3086 IFS=$ac_save_IFS
3087 case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
3090 { $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
3091 $as_echo_n "checking host system type... " >&6; }
3092 if test "${ac_cv_host+set}" = set; then :
3093 $as_echo_n "(cached) " >&6
3094 else
3095 if test "x$host_alias" = x; then
3096 ac_cv_host=$ac_cv_build
3097 else
3098 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
3099 as_fn_error "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
3103 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
3104 $as_echo "$ac_cv_host" >&6; }
3105 case $ac_cv_host in
3106 *-*-*) ;;
3107 *) as_fn_error "invalid value of canonical host" "$LINENO" 5;;
3108 esac
3109 host=$ac_cv_host
3110 ac_save_IFS=$IFS; IFS='-'
3111 set x $ac_cv_host
3112 shift
3113 host_cpu=$1
3114 host_vendor=$2
3115 shift; shift
3116 # Remember, the first character of IFS is used to create $*,
3117 # except with old shells:
3118 host_os=$*
3119 IFS=$ac_save_IFS
3120 case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
3123 { $as_echo "$as_me:${as_lineno-$LINENO}: checking target system type" >&5
3124 $as_echo_n "checking target system type... " >&6; }
3125 if test "${ac_cv_target+set}" = set; then :
3126 $as_echo_n "(cached) " >&6
3127 else
3128 if test "x$target_alias" = x; then
3129 ac_cv_target=$ac_cv_host
3130 else
3131 ac_cv_target=`$SHELL "$ac_aux_dir/config.sub" $target_alias` ||
3132 as_fn_error "$SHELL $ac_aux_dir/config.sub $target_alias failed" "$LINENO" 5
3136 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_target" >&5
3137 $as_echo "$ac_cv_target" >&6; }
3138 case $ac_cv_target in
3139 *-*-*) ;;
3140 *) as_fn_error "invalid value of canonical target" "$LINENO" 5;;
3141 esac
3142 target=$ac_cv_target
3143 ac_save_IFS=$IFS; IFS='-'
3144 set x $ac_cv_target
3145 shift
3146 target_cpu=$1
3147 target_vendor=$2
3148 shift; shift
3149 # Remember, the first character of IFS is used to create $*,
3150 # except with old shells:
3151 target_os=$*
3152 IFS=$ac_save_IFS
3153 case $target_os in *\ *) target_os=`echo "$target_os" | sed 's/ /-/g'`;; esac
3156 # The aliases save the names the user supplied, while $host etc.
3157 # will get canonicalized.
3158 test -n "$target_alias" &&
3159 test "$program_prefix$program_suffix$program_transform_name" = \
3160 NONENONEs,x,x, &&
3161 program_prefix=${target_alias}-
3163 # Determine the noncanonical target name, for directory use.
3164 case ${build_alias} in
3165 "") build_noncanonical=${build} ;;
3166 *) build_noncanonical=${build_alias} ;;
3167 esac
3169 case ${host_alias} in
3170 "") host_noncanonical=${build_noncanonical} ;;
3171 *) host_noncanonical=${host_alias} ;;
3172 esac
3174 case ${target_alias} in
3175 "") target_noncanonical=${host_noncanonical} ;;
3176 *) target_noncanonical=${target_alias} ;;
3177 esac
3182 # Determine the target- and build-specific subdirectories
3184 # post-stage1 host modules use a different CC_FOR_BUILD so, in order to
3185 # have matching libraries, they should use host libraries: Makefile.tpl
3186 # arranges to pass --with-build-libsubdir=$(HOST_SUBDIR).
3187 # However, they still use the build modules, because the corresponding
3188 # host modules (e.g. bison) are only built for the host when bootstrap
3189 # finishes. So:
3190 # - build_subdir is where we find build modules, and never changes.
3191 # - build_libsubdir is where we find build libraries, and can be overridden.
3193 # Prefix 'build-' so this never conflicts with target_subdir.
3194 build_subdir="build-${build_noncanonical}"
3196 # Check whether --with-build-libsubdir was given.
3197 if test "${with_build_libsubdir+set}" = set; then :
3198 withval=$with_build_libsubdir; build_libsubdir="$withval"
3199 else
3200 build_libsubdir="$build_subdir"
3203 # --srcdir=. covers the toplevel, while "test -d" covers the subdirectories
3204 if ( test $srcdir = . && test -d gcc ) \
3205 || test -d $srcdir/../host-${host_noncanonical}; then
3206 host_subdir="host-${host_noncanonical}"
3207 else
3208 host_subdir=.
3210 # No prefix.
3211 target_subdir=${target_noncanonical}
3214 # Set program_transform_name
3215 test "$program_prefix" != NONE &&
3216 program_transform_name="s&^&$program_prefix&;$program_transform_name"
3217 # Use a double $ so make ignores it.
3218 test "$program_suffix" != NONE &&
3219 program_transform_name="s&\$&$program_suffix&;$program_transform_name"
3220 # Double any \ or $.
3221 # By default was `s,x,x', remove it if useless.
3222 ac_script='s/[\\$]/&&/g;s/;s,x,x,$//'
3223 program_transform_name=`$as_echo "$program_transform_name" | sed "$ac_script"`
3226 # Check for bogus environment variables.
3227 # Test if LIBRARY_PATH contains the notation for the current directory
3228 # since this would lead to problems installing/building glibc.
3229 # LIBRARY_PATH contains the current directory if one of the following
3230 # is true:
3231 # - one of the terminals (":" and ";") is the first or last sign
3232 # - two terminals occur directly after each other
3233 # - the path contains an element with a dot in it
3234 { $as_echo "$as_me:${as_lineno-$LINENO}: checking LIBRARY_PATH variable" >&5
3235 $as_echo_n "checking LIBRARY_PATH variable... " >&6; }
3236 case ${LIBRARY_PATH} in
3237 [:\;]* | *[:\;] | *[:\;][:\;]* | *[:\;]. | .[:\;]*| . | *[:\;].[:\;]* )
3238 library_path_setting="contains current directory"
3241 library_path_setting="ok"
3243 esac
3244 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $library_path_setting" >&5
3245 $as_echo "$library_path_setting" >&6; }
3246 if test "$library_path_setting" != "ok"; then
3247 as_fn_error "
3248 *** LIBRARY_PATH shouldn't contain the current directory when
3249 *** building gcc. Please change the environment variable
3250 *** and run configure again." "$LINENO" 5
3253 # Test if GCC_EXEC_PREFIX contains the notation for the current directory
3254 # since this would lead to problems installing/building glibc.
3255 # GCC_EXEC_PREFIX contains the current directory if one of the following
3256 # is true:
3257 # - one of the terminals (":" and ";") is the first or last sign
3258 # - two terminals occur directly after each other
3259 # - the path contains an element with a dot in it
3260 { $as_echo "$as_me:${as_lineno-$LINENO}: checking GCC_EXEC_PREFIX variable" >&5
3261 $as_echo_n "checking GCC_EXEC_PREFIX variable... " >&6; }
3262 case ${GCC_EXEC_PREFIX} in
3263 [:\;]* | *[:\;] | *[:\;][:\;]* | *[:\;]. | .[:\;]*| . | *[:\;].[:\;]* )
3264 gcc_exec_prefix_setting="contains current directory"
3267 gcc_exec_prefix_setting="ok"
3269 esac
3270 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_exec_prefix_setting" >&5
3271 $as_echo "$gcc_exec_prefix_setting" >&6; }
3272 if test "$gcc_exec_prefix_setting" != "ok"; then
3273 as_fn_error "
3274 *** GCC_EXEC_PREFIX shouldn't contain the current directory when
3275 *** building gcc. Please change the environment variable
3276 *** and run configure again." "$LINENO" 5
3279 # -----------
3280 # Directories
3281 # -----------
3283 # Specify the local prefix
3284 local_prefix=
3286 # Check whether --with-local-prefix was given.
3287 if test "${with_local_prefix+set}" = set; then :
3288 withval=$with_local_prefix; case "${withval}" in
3289 yes) as_fn_error "bad value ${withval} given for local include directory prefix" "$LINENO" 5 ;;
3290 no) ;;
3291 *) local_prefix=$with_local_prefix ;;
3292 esac
3296 # Default local prefix if it is empty
3297 if test x$local_prefix = x; then
3298 local_prefix=/usr/local
3301 # Don't set gcc_gxx_include_dir to gxx_include_dir since that's only
3302 # passed in by the toplevel make and thus we'd get different behavior
3303 # depending on where we built the sources.
3304 gcc_gxx_include_dir=
3305 # Specify the g++ header file directory
3307 # Check whether --with-gxx-include-dir was given.
3308 if test "${with_gxx_include_dir+set}" = set; then :
3309 withval=$with_gxx_include_dir; case "${withval}" in
3310 yes) as_fn_error "bad value ${withval} given for g++ include directory" "$LINENO" 5 ;;
3311 no) ;;
3312 *) gcc_gxx_include_dir=$with_gxx_include_dir ;;
3313 esac
3317 # This logic must match libstdc++-v3/acinclude.m4:GLIBCXX_EXPORT_INSTALL_INFO.
3318 if test x${gcc_gxx_include_dir} = x; then
3319 if test x${enable_version_specific_runtime_libs} = xyes; then
3320 gcc_gxx_include_dir='${libsubdir}/include/c++'
3321 else
3322 libstdcxx_incdir='include/c++/$(version)'
3323 if test x$host != x$target; then
3324 libstdcxx_incdir="$target_alias/$libstdcxx_incdir"
3326 gcc_gxx_include_dir="\$(libsubdir)/\$(libsubdir_to_prefix)$libstdcxx_incdir"
3330 gcc_gxx_include_dir_add_sysroot=0
3331 if test "${with_sysroot+set}" = set; then
3332 gcc_gxx_without_sysroot=`expr "${gcc_gxx_include_dir}" : "${with_sysroot}"'\(.*\)'`
3333 if test "${gcc_gxx_without_sysroot}"; then
3334 gcc_gxx_include_dir="${gcc_gxx_without_sysroot}"
3335 gcc_gxx_include_dir_add_sysroot=1
3340 # Check whether --with-cpp_install_dir was given.
3341 if test "${with_cpp_install_dir+set}" = set; then :
3342 withval=$with_cpp_install_dir; if test x$withval = xyes; then
3343 as_fn_error "option --with-cpp-install-dir requires an argument" "$LINENO" 5
3344 elif test x$withval != xno; then
3345 cpp_install_dir=$withval
3350 # We would like to our source tree to be readonly. However when releases or
3351 # pre-releases are generated, the flex/bison generated files as well as the
3352 # various formats of manuals need to be included along with the rest of the
3353 # sources. Therefore we have --enable-generated-files-in-srcdir to do
3354 # just that.
3356 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to place generated files in the source directory" >&5
3357 $as_echo_n "checking whether to place generated files in the source directory... " >&6; }
3358 # Check whether --enable-generated-files-in-srcdir was given.
3359 if test "${enable_generated_files_in_srcdir+set}" = set; then :
3360 enableval=$enable_generated_files_in_srcdir; generated_files_in_srcdir=$enableval
3361 else
3362 generated_files_in_srcdir=no
3366 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $generated_files_in_srcdir" >&5
3367 $as_echo "$generated_files_in_srcdir" >&6; }
3369 if test "$generated_files_in_srcdir" = "yes"; then
3370 GENINSRC=''
3371 else
3372 GENINSRC='#'
3376 # -------------------
3377 # Find default linker
3378 # -------------------
3380 # With GNU ld
3382 # Check whether --with-gnu-ld was given.
3383 if test "${with_gnu_ld+set}" = set; then :
3384 withval=$with_gnu_ld; gnu_ld_flag="$with_gnu_ld"
3385 else
3386 gnu_ld_flag=no
3390 # With pre-defined ld
3392 # Check whether --with-ld was given.
3393 if test "${with_ld+set}" = set; then :
3394 withval=$with_ld; DEFAULT_LINKER="$with_ld"
3397 if test x"${DEFAULT_LINKER+set}" = x"set"; then
3398 if test ! -x "$DEFAULT_LINKER"; then
3399 as_fn_error "cannot execute: $DEFAULT_LINKER: check --with-ld or env. var. DEFAULT_LINKER" "$LINENO" 5
3400 elif $DEFAULT_LINKER -v < /dev/null 2>&1 | grep GNU > /dev/null; then
3401 gnu_ld_flag=yes
3404 cat >>confdefs.h <<_ACEOF
3405 #define DEFAULT_LINKER "$DEFAULT_LINKER"
3406 _ACEOF
3410 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a default linker was specified" >&5
3411 $as_echo_n "checking whether a default linker was specified... " >&6; }
3412 if test x"${DEFAULT_LINKER+set}" = x"set"; then
3413 if test x"$gnu_ld_flag" = x"no"; then
3414 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes ($DEFAULT_LINKER)" >&5
3415 $as_echo "yes ($DEFAULT_LINKER)" >&6; }
3416 else
3417 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes ($DEFAULT_LINKER - GNU ld)" >&5
3418 $as_echo "yes ($DEFAULT_LINKER - GNU ld)" >&6; }
3420 else
3421 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3422 $as_echo "no" >&6; }
3425 # With demangler in GNU ld
3427 # Check whether --with-demangler-in-ld was given.
3428 if test "${with_demangler_in_ld+set}" = set; then :
3429 withval=$with_demangler_in_ld; demangler_in_ld="$with_demangler_in_ld"
3430 else
3431 demangler_in_ld=yes
3435 # ----------------------
3436 # Find default assembler
3437 # ----------------------
3439 # With GNU as
3441 # Check whether --with-gnu-as was given.
3442 if test "${with_gnu_as+set}" = set; then :
3443 withval=$with_gnu_as; gas_flag="$with_gnu_as"
3444 else
3445 gas_flag=no
3450 # Check whether --with-as was given.
3451 if test "${with_as+set}" = set; then :
3452 withval=$with_as; DEFAULT_ASSEMBLER="$with_as"
3455 if test x"${DEFAULT_ASSEMBLER+set}" = x"set"; then
3456 if test ! -x "$DEFAULT_ASSEMBLER"; then
3457 as_fn_error "cannot execute: $DEFAULT_ASSEMBLER: check --with-as or env. var. DEFAULT_ASSEMBLER" "$LINENO" 5
3458 elif $DEFAULT_ASSEMBLER -v < /dev/null 2>&1 | grep GNU > /dev/null; then
3459 gas_flag=yes
3462 cat >>confdefs.h <<_ACEOF
3463 #define DEFAULT_ASSEMBLER "$DEFAULT_ASSEMBLER"
3464 _ACEOF
3468 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a default assembler was specified" >&5
3469 $as_echo_n "checking whether a default assembler was specified... " >&6; }
3470 if test x"${DEFAULT_ASSEMBLER+set}" = x"set"; then
3471 if test x"$gas_flag" = x"no"; then
3472 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes ($DEFAULT_ASSEMBLER)" >&5
3473 $as_echo "yes ($DEFAULT_ASSEMBLER)" >&6; }
3474 else
3475 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes ($DEFAULT_ASSEMBLER - GNU as)" >&5
3476 $as_echo "yes ($DEFAULT_ASSEMBLER - GNU as)" >&6; }
3478 else
3479 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3480 $as_echo "no" >&6; }
3483 # ---------------
3484 # Find C compiler
3485 # ---------------
3487 # If a non-executable a.out is present (e.g. created by GNU as above even if
3488 # invoked with -v only), the IRIX 6 native ld just overwrites the existing
3489 # file, even when creating an executable, so an execution test fails.
3490 # Remove possible default executable files to avoid this.
3492 # FIXME: This really belongs into AC_PROG_CC and can be removed once
3493 # Autoconf includes it.
3494 rm -f a.out a.exe b.out
3496 # Find the native compiler
3497 ac_ext=c
3498 ac_cpp='$CPP $CPPFLAGS'
3499 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3500 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3501 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3502 if test -n "$ac_tool_prefix"; then
3503 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
3504 set dummy ${ac_tool_prefix}gcc; ac_word=$2
3505 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3506 $as_echo_n "checking for $ac_word... " >&6; }
3507 if test "${ac_cv_prog_CC+set}" = set; then :
3508 $as_echo_n "(cached) " >&6
3509 else
3510 if test -n "$CC"; then
3511 ac_cv_prog_CC="$CC" # Let the user override the test.
3512 else
3513 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3514 for as_dir in $PATH
3516 IFS=$as_save_IFS
3517 test -z "$as_dir" && as_dir=.
3518 for ac_exec_ext in '' $ac_executable_extensions; do
3519 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3520 ac_cv_prog_CC="${ac_tool_prefix}gcc"
3521 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3522 break 2
3524 done
3525 done
3526 IFS=$as_save_IFS
3530 CC=$ac_cv_prog_CC
3531 if test -n "$CC"; then
3532 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3533 $as_echo "$CC" >&6; }
3534 else
3535 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3536 $as_echo "no" >&6; }
3541 if test -z "$ac_cv_prog_CC"; then
3542 ac_ct_CC=$CC
3543 # Extract the first word of "gcc", so it can be a program name with args.
3544 set dummy gcc; ac_word=$2
3545 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3546 $as_echo_n "checking for $ac_word... " >&6; }
3547 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then :
3548 $as_echo_n "(cached) " >&6
3549 else
3550 if test -n "$ac_ct_CC"; then
3551 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3552 else
3553 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3554 for as_dir in $PATH
3556 IFS=$as_save_IFS
3557 test -z "$as_dir" && as_dir=.
3558 for ac_exec_ext in '' $ac_executable_extensions; do
3559 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3560 ac_cv_prog_ac_ct_CC="gcc"
3561 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3562 break 2
3564 done
3565 done
3566 IFS=$as_save_IFS
3570 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3571 if test -n "$ac_ct_CC"; then
3572 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3573 $as_echo "$ac_ct_CC" >&6; }
3574 else
3575 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3576 $as_echo "no" >&6; }
3579 if test "x$ac_ct_CC" = x; then
3580 CC=""
3581 else
3582 case $cross_compiling:$ac_tool_warned in
3583 yes:)
3584 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3585 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3586 ac_tool_warned=yes ;;
3587 esac
3588 CC=$ac_ct_CC
3590 else
3591 CC="$ac_cv_prog_CC"
3594 if test -z "$CC"; then
3595 if test -n "$ac_tool_prefix"; then
3596 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
3597 set dummy ${ac_tool_prefix}cc; ac_word=$2
3598 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3599 $as_echo_n "checking for $ac_word... " >&6; }
3600 if test "${ac_cv_prog_CC+set}" = set; then :
3601 $as_echo_n "(cached) " >&6
3602 else
3603 if test -n "$CC"; then
3604 ac_cv_prog_CC="$CC" # Let the user override the test.
3605 else
3606 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3607 for as_dir in $PATH
3609 IFS=$as_save_IFS
3610 test -z "$as_dir" && as_dir=.
3611 for ac_exec_ext in '' $ac_executable_extensions; do
3612 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3613 ac_cv_prog_CC="${ac_tool_prefix}cc"
3614 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3615 break 2
3617 done
3618 done
3619 IFS=$as_save_IFS
3623 CC=$ac_cv_prog_CC
3624 if test -n "$CC"; then
3625 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3626 $as_echo "$CC" >&6; }
3627 else
3628 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3629 $as_echo "no" >&6; }
3635 if test -z "$CC"; then
3636 # Extract the first word of "cc", so it can be a program name with args.
3637 set dummy cc; ac_word=$2
3638 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3639 $as_echo_n "checking for $ac_word... " >&6; }
3640 if test "${ac_cv_prog_CC+set}" = set; then :
3641 $as_echo_n "(cached) " >&6
3642 else
3643 if test -n "$CC"; then
3644 ac_cv_prog_CC="$CC" # Let the user override the test.
3645 else
3646 ac_prog_rejected=no
3647 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3648 for as_dir in $PATH
3650 IFS=$as_save_IFS
3651 test -z "$as_dir" && as_dir=.
3652 for ac_exec_ext in '' $ac_executable_extensions; do
3653 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3654 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
3655 ac_prog_rejected=yes
3656 continue
3658 ac_cv_prog_CC="cc"
3659 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3660 break 2
3662 done
3663 done
3664 IFS=$as_save_IFS
3666 if test $ac_prog_rejected = yes; then
3667 # We found a bogon in the path, so make sure we never use it.
3668 set dummy $ac_cv_prog_CC
3669 shift
3670 if test $# != 0; then
3671 # We chose a different compiler from the bogus one.
3672 # However, it has the same basename, so the bogon will be chosen
3673 # first if we set CC to just the basename; use the full file name.
3674 shift
3675 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
3680 CC=$ac_cv_prog_CC
3681 if test -n "$CC"; then
3682 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3683 $as_echo "$CC" >&6; }
3684 else
3685 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3686 $as_echo "no" >&6; }
3691 if test -z "$CC"; then
3692 if test -n "$ac_tool_prefix"; then
3693 for ac_prog in cl.exe
3695 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3696 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
3697 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3698 $as_echo_n "checking for $ac_word... " >&6; }
3699 if test "${ac_cv_prog_CC+set}" = set; then :
3700 $as_echo_n "(cached) " >&6
3701 else
3702 if test -n "$CC"; then
3703 ac_cv_prog_CC="$CC" # Let the user override the test.
3704 else
3705 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3706 for as_dir in $PATH
3708 IFS=$as_save_IFS
3709 test -z "$as_dir" && as_dir=.
3710 for ac_exec_ext in '' $ac_executable_extensions; do
3711 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3712 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
3713 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3714 break 2
3716 done
3717 done
3718 IFS=$as_save_IFS
3722 CC=$ac_cv_prog_CC
3723 if test -n "$CC"; then
3724 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3725 $as_echo "$CC" >&6; }
3726 else
3727 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3728 $as_echo "no" >&6; }
3732 test -n "$CC" && break
3733 done
3735 if test -z "$CC"; then
3736 ac_ct_CC=$CC
3737 for ac_prog in cl.exe
3739 # Extract the first word of "$ac_prog", so it can be a program name with args.
3740 set dummy $ac_prog; ac_word=$2
3741 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3742 $as_echo_n "checking for $ac_word... " >&6; }
3743 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then :
3744 $as_echo_n "(cached) " >&6
3745 else
3746 if test -n "$ac_ct_CC"; then
3747 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3748 else
3749 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3750 for as_dir in $PATH
3752 IFS=$as_save_IFS
3753 test -z "$as_dir" && as_dir=.
3754 for ac_exec_ext in '' $ac_executable_extensions; do
3755 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3756 ac_cv_prog_ac_ct_CC="$ac_prog"
3757 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3758 break 2
3760 done
3761 done
3762 IFS=$as_save_IFS
3766 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3767 if test -n "$ac_ct_CC"; then
3768 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3769 $as_echo "$ac_ct_CC" >&6; }
3770 else
3771 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3772 $as_echo "no" >&6; }
3776 test -n "$ac_ct_CC" && break
3777 done
3779 if test "x$ac_ct_CC" = x; then
3780 CC=""
3781 else
3782 case $cross_compiling:$ac_tool_warned in
3783 yes:)
3784 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3785 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3786 ac_tool_warned=yes ;;
3787 esac
3788 CC=$ac_ct_CC
3795 test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3796 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3797 as_fn_error "no acceptable C compiler found in \$PATH
3798 See \`config.log' for more details." "$LINENO" 5; }
3800 # Provide some information about the compiler.
3801 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
3802 set X $ac_compile
3803 ac_compiler=$2
3804 for ac_option in --version -v -V -qversion; do
3805 { { ac_try="$ac_compiler $ac_option >&5"
3806 case "(($ac_try" in
3807 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3808 *) ac_try_echo=$ac_try;;
3809 esac
3810 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3811 $as_echo "$ac_try_echo"; } >&5
3812 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
3813 ac_status=$?
3814 if test -s conftest.err; then
3815 sed '10a\
3816 ... rest of stderr output deleted ...
3817 10q' conftest.err >conftest.er1
3818 cat conftest.er1 >&5
3819 rm -f conftest.er1 conftest.err
3821 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3822 test $ac_status = 0; }
3823 done
3825 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3826 /* end confdefs.h. */
3829 main ()
3833 return 0;
3835 _ACEOF
3836 ac_clean_files_save=$ac_clean_files
3837 ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out conftest.out"
3838 # Try to create an executable without -o first, disregard a.out.
3839 # It will help us diagnose broken compilers, and finding out an intuition
3840 # of exeext.
3841 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
3842 $as_echo_n "checking for C compiler default output file name... " >&6; }
3843 ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
3845 # The possible output files:
3846 ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
3848 ac_rmfiles=
3849 for ac_file in $ac_files
3851 case $ac_file in
3852 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3853 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
3854 esac
3855 done
3856 rm -f $ac_rmfiles
3858 if { { ac_try="$ac_link_default"
3859 case "(($ac_try" in
3860 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3861 *) ac_try_echo=$ac_try;;
3862 esac
3863 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3864 $as_echo "$ac_try_echo"; } >&5
3865 (eval "$ac_link_default") 2>&5
3866 ac_status=$?
3867 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3868 test $ac_status = 0; }; then :
3869 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
3870 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
3871 # in a Makefile. We should not override ac_cv_exeext if it was cached,
3872 # so that the user can short-circuit this test for compilers unknown to
3873 # Autoconf.
3874 for ac_file in $ac_files ''
3876 test -f "$ac_file" || continue
3877 case $ac_file in
3878 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
3880 [ab].out )
3881 # We found the default executable, but exeext='' is most
3882 # certainly right.
3883 break;;
3884 *.* )
3885 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
3886 then :; else
3887 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3889 # We set ac_cv_exeext here because the later test for it is not
3890 # safe: cross compilers may not add the suffix if given an `-o'
3891 # argument, so we may need to know it at that point already.
3892 # Even if this section looks crufty: it has the advantage of
3893 # actually working.
3894 break;;
3896 break;;
3897 esac
3898 done
3899 test "$ac_cv_exeext" = no && ac_cv_exeext=
3901 else
3902 ac_file=''
3904 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
3905 $as_echo "$ac_file" >&6; }
3906 if test -z "$ac_file"; then :
3907 $as_echo "$as_me: failed program was:" >&5
3908 sed 's/^/| /' conftest.$ac_ext >&5
3910 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3911 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3912 { as_fn_set_status 77
3913 as_fn_error "C compiler cannot create executables
3914 See \`config.log' for more details." "$LINENO" 5; }; }
3916 ac_exeext=$ac_cv_exeext
3918 # Check that the compiler produces executables we can run. If not, either
3919 # the compiler is broken, or we cross compile.
3920 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
3921 $as_echo_n "checking whether the C compiler works... " >&6; }
3922 # If not cross compiling, check that we can run a simple program.
3923 if test "$cross_compiling" != yes; then
3924 if { ac_try='./$ac_file'
3925 { { case "(($ac_try" in
3926 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3927 *) ac_try_echo=$ac_try;;
3928 esac
3929 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3930 $as_echo "$ac_try_echo"; } >&5
3931 (eval "$ac_try") 2>&5
3932 ac_status=$?
3933 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3934 test $ac_status = 0; }; }; then
3935 cross_compiling=no
3936 else
3937 if test "$cross_compiling" = maybe; then
3938 cross_compiling=yes
3939 else
3940 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3941 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3942 as_fn_error "cannot run C compiled programs.
3943 If you meant to cross compile, use \`--host'.
3944 See \`config.log' for more details." "$LINENO" 5; }
3948 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3949 $as_echo "yes" >&6; }
3951 rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out conftest.out
3952 ac_clean_files=$ac_clean_files_save
3953 # Check that the compiler produces executables we can run. If not, either
3954 # the compiler is broken, or we cross compile.
3955 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
3956 $as_echo_n "checking whether we are cross compiling... " >&6; }
3957 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
3958 $as_echo "$cross_compiling" >&6; }
3960 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
3961 $as_echo_n "checking for suffix of executables... " >&6; }
3962 if { { ac_try="$ac_link"
3963 case "(($ac_try" in
3964 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3965 *) ac_try_echo=$ac_try;;
3966 esac
3967 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3968 $as_echo "$ac_try_echo"; } >&5
3969 (eval "$ac_link") 2>&5
3970 ac_status=$?
3971 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3972 test $ac_status = 0; }; then :
3973 # If both `conftest.exe' and `conftest' are `present' (well, observable)
3974 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
3975 # work properly (i.e., refer to `conftest.exe'), while it won't with
3976 # `rm'.
3977 for ac_file in conftest.exe conftest conftest.*; do
3978 test -f "$ac_file" || continue
3979 case $ac_file in
3980 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3981 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3982 break;;
3983 * ) break;;
3984 esac
3985 done
3986 else
3987 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3988 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3989 as_fn_error "cannot compute suffix of executables: cannot compile and link
3990 See \`config.log' for more details." "$LINENO" 5; }
3992 rm -f conftest$ac_cv_exeext
3993 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
3994 $as_echo "$ac_cv_exeext" >&6; }
3996 rm -f conftest.$ac_ext
3997 EXEEXT=$ac_cv_exeext
3998 ac_exeext=$EXEEXT
3999 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
4000 $as_echo_n "checking for suffix of object files... " >&6; }
4001 if test "${ac_cv_objext+set}" = set; then :
4002 $as_echo_n "(cached) " >&6
4003 else
4004 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4005 /* end confdefs.h. */
4008 main ()
4012 return 0;
4014 _ACEOF
4015 rm -f conftest.o conftest.obj
4016 if { { ac_try="$ac_compile"
4017 case "(($ac_try" in
4018 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4019 *) ac_try_echo=$ac_try;;
4020 esac
4021 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4022 $as_echo "$ac_try_echo"; } >&5
4023 (eval "$ac_compile") 2>&5
4024 ac_status=$?
4025 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4026 test $ac_status = 0; }; then :
4027 for ac_file in conftest.o conftest.obj conftest.*; do
4028 test -f "$ac_file" || continue;
4029 case $ac_file in
4030 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
4031 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
4032 break;;
4033 esac
4034 done
4035 else
4036 $as_echo "$as_me: failed program was:" >&5
4037 sed 's/^/| /' conftest.$ac_ext >&5
4039 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4040 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4041 as_fn_error "cannot compute suffix of object files: cannot compile
4042 See \`config.log' for more details." "$LINENO" 5; }
4044 rm -f conftest.$ac_cv_objext conftest.$ac_ext
4046 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
4047 $as_echo "$ac_cv_objext" >&6; }
4048 OBJEXT=$ac_cv_objext
4049 ac_objext=$OBJEXT
4050 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
4051 $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
4052 if test "${ac_cv_c_compiler_gnu+set}" = set; then :
4053 $as_echo_n "(cached) " >&6
4054 else
4055 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4056 /* end confdefs.h. */
4059 main ()
4061 #ifndef __GNUC__
4062 choke me
4063 #endif
4066 return 0;
4068 _ACEOF
4069 if ac_fn_c_try_compile "$LINENO"; then :
4070 ac_compiler_gnu=yes
4071 else
4072 ac_compiler_gnu=no
4074 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4075 ac_cv_c_compiler_gnu=$ac_compiler_gnu
4078 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
4079 $as_echo "$ac_cv_c_compiler_gnu" >&6; }
4080 if test $ac_compiler_gnu = yes; then
4081 GCC=yes
4082 else
4083 GCC=
4085 ac_test_CFLAGS=${CFLAGS+set}
4086 ac_save_CFLAGS=$CFLAGS
4087 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
4088 $as_echo_n "checking whether $CC accepts -g... " >&6; }
4089 if test "${ac_cv_prog_cc_g+set}" = set; then :
4090 $as_echo_n "(cached) " >&6
4091 else
4092 ac_save_c_werror_flag=$ac_c_werror_flag
4093 ac_c_werror_flag=yes
4094 ac_cv_prog_cc_g=no
4095 CFLAGS="-g"
4096 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4097 /* end confdefs.h. */
4100 main ()
4104 return 0;
4106 _ACEOF
4107 if ac_fn_c_try_compile "$LINENO"; then :
4108 ac_cv_prog_cc_g=yes
4109 else
4110 CFLAGS=""
4111 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4112 /* end confdefs.h. */
4115 main ()
4119 return 0;
4121 _ACEOF
4122 if ac_fn_c_try_compile "$LINENO"; then :
4124 else
4125 ac_c_werror_flag=$ac_save_c_werror_flag
4126 CFLAGS="-g"
4127 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4128 /* end confdefs.h. */
4131 main ()
4135 return 0;
4137 _ACEOF
4138 if ac_fn_c_try_compile "$LINENO"; then :
4139 ac_cv_prog_cc_g=yes
4141 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4143 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4145 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4146 ac_c_werror_flag=$ac_save_c_werror_flag
4148 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
4149 $as_echo "$ac_cv_prog_cc_g" >&6; }
4150 if test "$ac_test_CFLAGS" = set; then
4151 CFLAGS=$ac_save_CFLAGS
4152 elif test $ac_cv_prog_cc_g = yes; then
4153 if test "$GCC" = yes; then
4154 CFLAGS="-g -O2"
4155 else
4156 CFLAGS="-g"
4158 else
4159 if test "$GCC" = yes; then
4160 CFLAGS="-O2"
4161 else
4162 CFLAGS=
4165 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
4166 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
4167 if test "${ac_cv_prog_cc_c89+set}" = set; then :
4168 $as_echo_n "(cached) " >&6
4169 else
4170 ac_cv_prog_cc_c89=no
4171 ac_save_CC=$CC
4172 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4173 /* end confdefs.h. */
4174 #include <stdarg.h>
4175 #include <stdio.h>
4176 #include <sys/types.h>
4177 #include <sys/stat.h>
4178 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
4179 struct buf { int x; };
4180 FILE * (*rcsopen) (struct buf *, struct stat *, int);
4181 static char *e (p, i)
4182 char **p;
4183 int i;
4185 return p[i];
4187 static char *f (char * (*g) (char **, int), char **p, ...)
4189 char *s;
4190 va_list v;
4191 va_start (v,p);
4192 s = g (p, va_arg (v,int));
4193 va_end (v);
4194 return s;
4197 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
4198 function prototypes and stuff, but not '\xHH' hex character constants.
4199 These don't provoke an error unfortunately, instead are silently treated
4200 as 'x'. The following induces an error, until -std is added to get
4201 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
4202 array size at least. It's necessary to write '\x00'==0 to get something
4203 that's true only with -std. */
4204 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
4206 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
4207 inside strings and character constants. */
4208 #define FOO(x) 'x'
4209 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
4211 int test (int i, double x);
4212 struct s1 {int (*f) (int a);};
4213 struct s2 {int (*f) (double a);};
4214 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
4215 int argc;
4216 char **argv;
4218 main ()
4220 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
4222 return 0;
4224 _ACEOF
4225 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
4226 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
4228 CC="$ac_save_CC $ac_arg"
4229 if ac_fn_c_try_compile "$LINENO"; then :
4230 ac_cv_prog_cc_c89=$ac_arg
4232 rm -f core conftest.err conftest.$ac_objext
4233 test "x$ac_cv_prog_cc_c89" != "xno" && break
4234 done
4235 rm -f conftest.$ac_ext
4236 CC=$ac_save_CC
4239 # AC_CACHE_VAL
4240 case "x$ac_cv_prog_cc_c89" in
4242 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
4243 $as_echo "none needed" >&6; } ;;
4244 xno)
4245 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
4246 $as_echo "unsupported" >&6; } ;;
4248 CC="$CC $ac_cv_prog_cc_c89"
4249 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
4250 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
4251 esac
4252 if test "x$ac_cv_prog_cc_c89" != xno; then :
4256 ac_ext=c
4257 ac_cpp='$CPP $CPPFLAGS'
4258 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4259 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4260 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4262 ac_ext=cpp
4263 ac_cpp='$CXXCPP $CPPFLAGS'
4264 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4265 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4266 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
4267 if test -z "$CXX"; then
4268 if test -n "$CCC"; then
4269 CXX=$CCC
4270 else
4271 if test -n "$ac_tool_prefix"; then
4272 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
4274 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
4275 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
4276 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4277 $as_echo_n "checking for $ac_word... " >&6; }
4278 if test "${ac_cv_prog_CXX+set}" = set; then :
4279 $as_echo_n "(cached) " >&6
4280 else
4281 if test -n "$CXX"; then
4282 ac_cv_prog_CXX="$CXX" # Let the user override the test.
4283 else
4284 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4285 for as_dir in $PATH
4287 IFS=$as_save_IFS
4288 test -z "$as_dir" && as_dir=.
4289 for ac_exec_ext in '' $ac_executable_extensions; do
4290 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4291 ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
4292 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4293 break 2
4295 done
4296 done
4297 IFS=$as_save_IFS
4301 CXX=$ac_cv_prog_CXX
4302 if test -n "$CXX"; then
4303 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXX" >&5
4304 $as_echo "$CXX" >&6; }
4305 else
4306 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4307 $as_echo "no" >&6; }
4311 test -n "$CXX" && break
4312 done
4314 if test -z "$CXX"; then
4315 ac_ct_CXX=$CXX
4316 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
4318 # Extract the first word of "$ac_prog", so it can be a program name with args.
4319 set dummy $ac_prog; ac_word=$2
4320 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4321 $as_echo_n "checking for $ac_word... " >&6; }
4322 if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then :
4323 $as_echo_n "(cached) " >&6
4324 else
4325 if test -n "$ac_ct_CXX"; then
4326 ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
4327 else
4328 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4329 for as_dir in $PATH
4331 IFS=$as_save_IFS
4332 test -z "$as_dir" && as_dir=.
4333 for ac_exec_ext in '' $ac_executable_extensions; do
4334 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4335 ac_cv_prog_ac_ct_CXX="$ac_prog"
4336 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4337 break 2
4339 done
4340 done
4341 IFS=$as_save_IFS
4345 ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
4346 if test -n "$ac_ct_CXX"; then
4347 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CXX" >&5
4348 $as_echo "$ac_ct_CXX" >&6; }
4349 else
4350 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4351 $as_echo "no" >&6; }
4355 test -n "$ac_ct_CXX" && break
4356 done
4358 if test "x$ac_ct_CXX" = x; then
4359 CXX="g++"
4360 else
4361 case $cross_compiling:$ac_tool_warned in
4362 yes:)
4363 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4364 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4365 ac_tool_warned=yes ;;
4366 esac
4367 CXX=$ac_ct_CXX
4373 # Provide some information about the compiler.
4374 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C++ compiler version" >&5
4375 set X $ac_compile
4376 ac_compiler=$2
4377 for ac_option in --version -v -V -qversion; do
4378 { { ac_try="$ac_compiler $ac_option >&5"
4379 case "(($ac_try" in
4380 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4381 *) ac_try_echo=$ac_try;;
4382 esac
4383 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4384 $as_echo "$ac_try_echo"; } >&5
4385 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
4386 ac_status=$?
4387 if test -s conftest.err; then
4388 sed '10a\
4389 ... rest of stderr output deleted ...
4390 10q' conftest.err >conftest.er1
4391 cat conftest.er1 >&5
4392 rm -f conftest.er1 conftest.err
4394 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4395 test $ac_status = 0; }
4396 done
4398 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C++ compiler" >&5
4399 $as_echo_n "checking whether we are using the GNU C++ compiler... " >&6; }
4400 if test "${ac_cv_cxx_compiler_gnu+set}" = set; then :
4401 $as_echo_n "(cached) " >&6
4402 else
4403 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4404 /* end confdefs.h. */
4407 main ()
4409 #ifndef __GNUC__
4410 choke me
4411 #endif
4414 return 0;
4416 _ACEOF
4417 if ac_fn_cxx_try_compile "$LINENO"; then :
4418 ac_compiler_gnu=yes
4419 else
4420 ac_compiler_gnu=no
4422 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4423 ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
4426 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cxx_compiler_gnu" >&5
4427 $as_echo "$ac_cv_cxx_compiler_gnu" >&6; }
4428 if test $ac_compiler_gnu = yes; then
4429 GXX=yes
4430 else
4431 GXX=
4433 ac_test_CXXFLAGS=${CXXFLAGS+set}
4434 ac_save_CXXFLAGS=$CXXFLAGS
4435 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CXX accepts -g" >&5
4436 $as_echo_n "checking whether $CXX accepts -g... " >&6; }
4437 if test "${ac_cv_prog_cxx_g+set}" = set; then :
4438 $as_echo_n "(cached) " >&6
4439 else
4440 ac_save_cxx_werror_flag=$ac_cxx_werror_flag
4441 ac_cxx_werror_flag=yes
4442 ac_cv_prog_cxx_g=no
4443 CXXFLAGS="-g"
4444 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4445 /* end confdefs.h. */
4448 main ()
4452 return 0;
4454 _ACEOF
4455 if ac_fn_cxx_try_compile "$LINENO"; then :
4456 ac_cv_prog_cxx_g=yes
4457 else
4458 CXXFLAGS=""
4459 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4460 /* end confdefs.h. */
4463 main ()
4467 return 0;
4469 _ACEOF
4470 if ac_fn_cxx_try_compile "$LINENO"; then :
4472 else
4473 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
4474 CXXFLAGS="-g"
4475 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4476 /* end confdefs.h. */
4479 main ()
4483 return 0;
4485 _ACEOF
4486 if ac_fn_cxx_try_compile "$LINENO"; then :
4487 ac_cv_prog_cxx_g=yes
4489 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4491 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4493 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4494 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
4496 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cxx_g" >&5
4497 $as_echo "$ac_cv_prog_cxx_g" >&6; }
4498 if test "$ac_test_CXXFLAGS" = set; then
4499 CXXFLAGS=$ac_save_CXXFLAGS
4500 elif test $ac_cv_prog_cxx_g = yes; then
4501 if test "$GXX" = yes; then
4502 CXXFLAGS="-g -O2"
4503 else
4504 CXXFLAGS="-g"
4506 else
4507 if test "$GXX" = yes; then
4508 CXXFLAGS="-O2"
4509 else
4510 CXXFLAGS=
4513 ac_ext=c
4514 ac_cpp='$CPP $CPPFLAGS'
4515 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4516 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4517 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4522 if test -n "$ac_tool_prefix"; then
4523 # Extract the first word of "${ac_tool_prefix}gnatbind", so it can be a program name with args.
4524 set dummy ${ac_tool_prefix}gnatbind; ac_word=$2
4525 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4526 $as_echo_n "checking for $ac_word... " >&6; }
4527 if test "${ac_cv_prog_GNATBIND+set}" = set; then :
4528 $as_echo_n "(cached) " >&6
4529 else
4530 if test -n "$GNATBIND"; then
4531 ac_cv_prog_GNATBIND="$GNATBIND" # Let the user override the test.
4532 else
4533 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4534 for as_dir in $PATH
4536 IFS=$as_save_IFS
4537 test -z "$as_dir" && as_dir=.
4538 for ac_exec_ext in '' $ac_executable_extensions; do
4539 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4540 ac_cv_prog_GNATBIND="${ac_tool_prefix}gnatbind"
4541 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4542 break 2
4544 done
4545 done
4546 IFS=$as_save_IFS
4550 GNATBIND=$ac_cv_prog_GNATBIND
4551 if test -n "$GNATBIND"; then
4552 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GNATBIND" >&5
4553 $as_echo "$GNATBIND" >&6; }
4554 else
4555 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4556 $as_echo "no" >&6; }
4561 if test -z "$ac_cv_prog_GNATBIND"; then
4562 ac_ct_GNATBIND=$GNATBIND
4563 # Extract the first word of "gnatbind", so it can be a program name with args.
4564 set dummy gnatbind; ac_word=$2
4565 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4566 $as_echo_n "checking for $ac_word... " >&6; }
4567 if test "${ac_cv_prog_ac_ct_GNATBIND+set}" = set; then :
4568 $as_echo_n "(cached) " >&6
4569 else
4570 if test -n "$ac_ct_GNATBIND"; then
4571 ac_cv_prog_ac_ct_GNATBIND="$ac_ct_GNATBIND" # Let the user override the test.
4572 else
4573 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4574 for as_dir in $PATH
4576 IFS=$as_save_IFS
4577 test -z "$as_dir" && as_dir=.
4578 for ac_exec_ext in '' $ac_executable_extensions; do
4579 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4580 ac_cv_prog_ac_ct_GNATBIND="gnatbind"
4581 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4582 break 2
4584 done
4585 done
4586 IFS=$as_save_IFS
4590 ac_ct_GNATBIND=$ac_cv_prog_ac_ct_GNATBIND
4591 if test -n "$ac_ct_GNATBIND"; then
4592 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_GNATBIND" >&5
4593 $as_echo "$ac_ct_GNATBIND" >&6; }
4594 else
4595 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4596 $as_echo "no" >&6; }
4599 if test "x$ac_ct_GNATBIND" = x; then
4600 GNATBIND="no"
4601 else
4602 case $cross_compiling:$ac_tool_warned in
4603 yes:)
4604 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4605 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4606 ac_tool_warned=yes ;;
4607 esac
4608 GNATBIND=$ac_ct_GNATBIND
4610 else
4611 GNATBIND="$ac_cv_prog_GNATBIND"
4614 if test -n "$ac_tool_prefix"; then
4615 # Extract the first word of "${ac_tool_prefix}gnatmake", so it can be a program name with args.
4616 set dummy ${ac_tool_prefix}gnatmake; ac_word=$2
4617 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4618 $as_echo_n "checking for $ac_word... " >&6; }
4619 if test "${ac_cv_prog_GNATMAKE+set}" = set; then :
4620 $as_echo_n "(cached) " >&6
4621 else
4622 if test -n "$GNATMAKE"; then
4623 ac_cv_prog_GNATMAKE="$GNATMAKE" # Let the user override the test.
4624 else
4625 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4626 for as_dir in $PATH
4628 IFS=$as_save_IFS
4629 test -z "$as_dir" && as_dir=.
4630 for ac_exec_ext in '' $ac_executable_extensions; do
4631 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4632 ac_cv_prog_GNATMAKE="${ac_tool_prefix}gnatmake"
4633 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4634 break 2
4636 done
4637 done
4638 IFS=$as_save_IFS
4642 GNATMAKE=$ac_cv_prog_GNATMAKE
4643 if test -n "$GNATMAKE"; then
4644 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GNATMAKE" >&5
4645 $as_echo "$GNATMAKE" >&6; }
4646 else
4647 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4648 $as_echo "no" >&6; }
4653 if test -z "$ac_cv_prog_GNATMAKE"; then
4654 ac_ct_GNATMAKE=$GNATMAKE
4655 # Extract the first word of "gnatmake", so it can be a program name with args.
4656 set dummy gnatmake; ac_word=$2
4657 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4658 $as_echo_n "checking for $ac_word... " >&6; }
4659 if test "${ac_cv_prog_ac_ct_GNATMAKE+set}" = set; then :
4660 $as_echo_n "(cached) " >&6
4661 else
4662 if test -n "$ac_ct_GNATMAKE"; then
4663 ac_cv_prog_ac_ct_GNATMAKE="$ac_ct_GNATMAKE" # Let the user override the test.
4664 else
4665 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4666 for as_dir in $PATH
4668 IFS=$as_save_IFS
4669 test -z "$as_dir" && as_dir=.
4670 for ac_exec_ext in '' $ac_executable_extensions; do
4671 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4672 ac_cv_prog_ac_ct_GNATMAKE="gnatmake"
4673 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4674 break 2
4676 done
4677 done
4678 IFS=$as_save_IFS
4682 ac_ct_GNATMAKE=$ac_cv_prog_ac_ct_GNATMAKE
4683 if test -n "$ac_ct_GNATMAKE"; then
4684 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_GNATMAKE" >&5
4685 $as_echo "$ac_ct_GNATMAKE" >&6; }
4686 else
4687 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4688 $as_echo "no" >&6; }
4691 if test "x$ac_ct_GNATMAKE" = x; then
4692 GNATMAKE="no"
4693 else
4694 case $cross_compiling:$ac_tool_warned in
4695 yes:)
4696 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4697 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4698 ac_tool_warned=yes ;;
4699 esac
4700 GNATMAKE=$ac_ct_GNATMAKE
4702 else
4703 GNATMAKE="$ac_cv_prog_GNATMAKE"
4706 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether compiler driver understands Ada" >&5
4707 $as_echo_n "checking whether compiler driver understands Ada... " >&6; }
4708 if test "${acx_cv_cc_gcc_supports_ada+set}" = set; then :
4709 $as_echo_n "(cached) " >&6
4710 else
4711 cat >conftest.adb <<EOF
4712 procedure conftest is begin null; end conftest;
4714 acx_cv_cc_gcc_supports_ada=no
4715 # There is a bug in old released versions of GCC which causes the
4716 # driver to exit successfully when the appropriate language module
4717 # has not been installed. This is fixed in 2.95.4, 3.0.2, and 3.1.
4718 # Therefore we must check for the error message as well as an
4719 # unsuccessful exit.
4720 # Other compilers, like HP Tru64 UNIX cc, exit successfully when
4721 # given a .adb file, but produce no object file. So we must check
4722 # if an object file was really produced to guard against this.
4723 errors=`(${CC} -I"$srcdir"/ada -c conftest.adb) 2>&1 || echo failure`
4724 if test x"$errors" = x && test -f conftest.$ac_objext; then
4725 acx_cv_cc_gcc_supports_ada=yes
4727 rm -f conftest.*
4729 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $acx_cv_cc_gcc_supports_ada" >&5
4730 $as_echo "$acx_cv_cc_gcc_supports_ada" >&6; }
4732 if test "x$GNATBIND" != xno && test "x$GNATMAKE" != xno && test x$acx_cv_cc_gcc_supports_ada != xno; then
4733 have_gnat=yes
4734 else
4735 have_gnat=no
4739 # Remove the -O2: for historical reasons, unless bootstrapping we prefer
4740 # optimizations to be activated explicitly by the toplevel.
4741 case "$CC" in
4742 */prev-gcc/xgcc*) ;;
4743 *) CFLAGS=`echo "$CFLAGS " | sed -e "s/-Ofast[ ]//" -e "s/-O[gs][ ]//" -e "s/-O[0-9]*[ ]//" `
4744 CXXFLAGS=`echo "$CXXFLAGS " | sed -e "s/-Ofast[ ]//" -e "s/-O[gs][ ]//" -e "s/-O[0-9]*[ ]//" ` ;;
4745 esac
4749 # Determine PICFLAG for target gnatlib.
4754 case "${target}" in
4755 # PIC is the default on some targets or must not be used.
4756 *-*-darwin*)
4757 # PIC is the default on this platform
4758 # Common symbols not allowed in MH_DYLIB files
4759 PICFLAG_FOR_TARGET=-fno-common
4761 alpha*-dec-osf5*)
4762 # PIC is the default.
4764 hppa*64*-*-hpux*)
4765 # PIC is the default for 64-bit PA HP-UX.
4767 i[34567]86-*-cygwin* | x86_64-*-cygwin*)
4769 i[34567]86-*-mingw* | x86_64-*-mingw*)
4771 i[34567]86-*-interix[3-9]*)
4772 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
4773 # Instead, we relocate shared libraries at runtime.
4775 i[34567]86-*-nto-qnx*)
4776 # QNX uses GNU C++, but need to define -shared option too, otherwise
4777 # it will coredump.
4778 PICFLAG_FOR_TARGET='-fPIC -shared'
4780 i[34567]86-pc-msdosdjgpp*)
4781 # DJGPP does not support shared libraries at all.
4783 ia64*-*-hpux*)
4784 # On IA64 HP-UX, PIC is the default but the pic flag
4785 # sets the default TLS model and affects inlining.
4786 PICFLAG_FOR_TARGET=-fPIC
4788 mips-sgi-irix6*)
4789 # PIC is the default.
4791 rs6000-ibm-aix* | powerpc-ibm-aix*)
4792 # All AIX code is PIC.
4795 # Some targets support both -fPIC and -fpic, but prefer the latter.
4796 # FIXME: Why?
4797 i[34567]86-*-* | x86_64-*-*)
4798 PICFLAG_FOR_TARGET=-fpic
4800 m68k-*-*)
4801 PICFLAG_FOR_TARGET=-fpic
4803 # FIXME: Override -fPIC default in libgcc only?
4804 sh-*-linux* | sh[2346lbe]*-*-linux*)
4805 PICFLAG_FOR_TARGET=-fpic
4807 # FIXME: Simplify to sh*-*-netbsd*?
4808 sh-*-netbsdelf* | shl*-*-netbsdelf* | sh5-*-netbsd* | sh5l*-*-netbsd* | \
4809 sh64-*-netbsd* | sh64l*-*-netbsd*)
4810 PICFLAG_FOR_TARGET=-fpic
4812 # Default to -fPIC unless specified otherwise.
4814 PICFLAG_FOR_TARGET=-fPIC
4816 esac
4818 # If the user explicitly uses -fpic/-fPIC, keep that.
4819 case "${CFLAGS_FOR_TARGET}" in
4820 *-fpic*)
4821 PICFLAG_FOR_TARGET=-fpic
4823 *-fPIC*)
4824 PICFLAG_FOR_TARGET=-fPIC
4826 esac
4830 # -------------------------
4831 # Check C compiler features
4832 # -------------------------
4835 ac_ext=c
4836 ac_cpp='$CPP $CPPFLAGS'
4837 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4838 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4839 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4840 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
4841 $as_echo_n "checking how to run the C preprocessor... " >&6; }
4842 # On Suns, sometimes $CPP names a directory.
4843 if test -n "$CPP" && test -d "$CPP"; then
4844 CPP=
4846 if test -z "$CPP"; then
4847 if test "${ac_cv_prog_CPP+set}" = set; then :
4848 $as_echo_n "(cached) " >&6
4849 else
4850 # Double quotes because CPP needs to be expanded
4851 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
4853 ac_preproc_ok=false
4854 for ac_c_preproc_warn_flag in '' yes
4856 # Use a header file that comes with gcc, so configuring glibc
4857 # with a fresh cross-compiler works.
4858 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4859 # <limits.h> exists even on freestanding compilers.
4860 # On the NeXT, cc -E runs the code through the compiler's parser,
4861 # not just through cpp. "Syntax error" is here to catch this case.
4862 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4863 /* end confdefs.h. */
4864 #ifdef __STDC__
4865 # include <limits.h>
4866 #else
4867 # include <assert.h>
4868 #endif
4869 Syntax error
4870 _ACEOF
4871 if ac_fn_c_try_cpp "$LINENO"; then :
4873 else
4874 # Broken: fails on valid input.
4875 continue
4877 rm -f conftest.err conftest.$ac_ext
4879 # OK, works on sane cases. Now check whether nonexistent headers
4880 # can be detected and how.
4881 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4882 /* end confdefs.h. */
4883 #include <ac_nonexistent.h>
4884 _ACEOF
4885 if ac_fn_c_try_cpp "$LINENO"; then :
4886 # Broken: success on invalid input.
4887 continue
4888 else
4889 # Passes both tests.
4890 ac_preproc_ok=:
4891 break
4893 rm -f conftest.err conftest.$ac_ext
4895 done
4896 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4897 rm -f conftest.err conftest.$ac_ext
4898 if $ac_preproc_ok; then :
4899 break
4902 done
4903 ac_cv_prog_CPP=$CPP
4906 CPP=$ac_cv_prog_CPP
4907 else
4908 ac_cv_prog_CPP=$CPP
4910 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
4911 $as_echo "$CPP" >&6; }
4912 ac_preproc_ok=false
4913 for ac_c_preproc_warn_flag in '' yes
4915 # Use a header file that comes with gcc, so configuring glibc
4916 # with a fresh cross-compiler works.
4917 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4918 # <limits.h> exists even on freestanding compilers.
4919 # On the NeXT, cc -E runs the code through the compiler's parser,
4920 # not just through cpp. "Syntax error" is here to catch this case.
4921 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4922 /* end confdefs.h. */
4923 #ifdef __STDC__
4924 # include <limits.h>
4925 #else
4926 # include <assert.h>
4927 #endif
4928 Syntax error
4929 _ACEOF
4930 if ac_fn_c_try_cpp "$LINENO"; then :
4932 else
4933 # Broken: fails on valid input.
4934 continue
4936 rm -f conftest.err conftest.$ac_ext
4938 # OK, works on sane cases. Now check whether nonexistent headers
4939 # can be detected and how.
4940 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4941 /* end confdefs.h. */
4942 #include <ac_nonexistent.h>
4943 _ACEOF
4944 if ac_fn_c_try_cpp "$LINENO"; then :
4945 # Broken: success on invalid input.
4946 continue
4947 else
4948 # Passes both tests.
4949 ac_preproc_ok=:
4950 break
4952 rm -f conftest.err conftest.$ac_ext
4954 done
4955 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4956 rm -f conftest.err conftest.$ac_ext
4957 if $ac_preproc_ok; then :
4959 else
4960 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4961 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4962 as_fn_error "C preprocessor \"$CPP\" fails sanity check
4963 See \`config.log' for more details." "$LINENO" 5; }
4966 ac_ext=c
4967 ac_cpp='$CPP $CPPFLAGS'
4968 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4969 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4970 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4973 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
4974 $as_echo_n "checking for grep that handles long lines and -e... " >&6; }
4975 if test "${ac_cv_path_GREP+set}" = set; then :
4976 $as_echo_n "(cached) " >&6
4977 else
4978 if test -z "$GREP"; then
4979 ac_path_GREP_found=false
4980 # Loop through the user's path and test for each of PROGNAME-LIST
4981 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4982 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4984 IFS=$as_save_IFS
4985 test -z "$as_dir" && as_dir=.
4986 for ac_prog in grep ggrep; do
4987 for ac_exec_ext in '' $ac_executable_extensions; do
4988 ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
4989 { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } || continue
4990 # Check for GNU ac_path_GREP and select it if it is found.
4991 # Check for GNU $ac_path_GREP
4992 case `"$ac_path_GREP" --version 2>&1` in
4993 *GNU*)
4994 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
4996 ac_count=0
4997 $as_echo_n 0123456789 >"conftest.in"
4998 while :
5000 cat "conftest.in" "conftest.in" >"conftest.tmp"
5001 mv "conftest.tmp" "conftest.in"
5002 cp "conftest.in" "conftest.nl"
5003 $as_echo 'GREP' >> "conftest.nl"
5004 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
5005 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
5006 as_fn_arith $ac_count + 1 && ac_count=$as_val
5007 if test $ac_count -gt ${ac_path_GREP_max-0}; then
5008 # Best one so far, save it but keep looking for a better one
5009 ac_cv_path_GREP="$ac_path_GREP"
5010 ac_path_GREP_max=$ac_count
5012 # 10*(2^10) chars as input seems more than enough
5013 test $ac_count -gt 10 && break
5014 done
5015 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
5016 esac
5018 $ac_path_GREP_found && break 3
5019 done
5020 done
5021 done
5022 IFS=$as_save_IFS
5023 if test -z "$ac_cv_path_GREP"; then
5024 as_fn_error "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
5026 else
5027 ac_cv_path_GREP=$GREP
5031 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
5032 $as_echo "$ac_cv_path_GREP" >&6; }
5033 GREP="$ac_cv_path_GREP"
5036 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
5037 $as_echo_n "checking for egrep... " >&6; }
5038 if test "${ac_cv_path_EGREP+set}" = set; then :
5039 $as_echo_n "(cached) " >&6
5040 else
5041 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
5042 then ac_cv_path_EGREP="$GREP -E"
5043 else
5044 if test -z "$EGREP"; then
5045 ac_path_EGREP_found=false
5046 # Loop through the user's path and test for each of PROGNAME-LIST
5047 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5048 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
5050 IFS=$as_save_IFS
5051 test -z "$as_dir" && as_dir=.
5052 for ac_prog in egrep; do
5053 for ac_exec_ext in '' $ac_executable_extensions; do
5054 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
5055 { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } || continue
5056 # Check for GNU ac_path_EGREP and select it if it is found.
5057 # Check for GNU $ac_path_EGREP
5058 case `"$ac_path_EGREP" --version 2>&1` in
5059 *GNU*)
5060 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
5062 ac_count=0
5063 $as_echo_n 0123456789 >"conftest.in"
5064 while :
5066 cat "conftest.in" "conftest.in" >"conftest.tmp"
5067 mv "conftest.tmp" "conftest.in"
5068 cp "conftest.in" "conftest.nl"
5069 $as_echo 'EGREP' >> "conftest.nl"
5070 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
5071 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
5072 as_fn_arith $ac_count + 1 && ac_count=$as_val
5073 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
5074 # Best one so far, save it but keep looking for a better one
5075 ac_cv_path_EGREP="$ac_path_EGREP"
5076 ac_path_EGREP_max=$ac_count
5078 # 10*(2^10) chars as input seems more than enough
5079 test $ac_count -gt 10 && break
5080 done
5081 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
5082 esac
5084 $ac_path_EGREP_found && break 3
5085 done
5086 done
5087 done
5088 IFS=$as_save_IFS
5089 if test -z "$ac_cv_path_EGREP"; then
5090 as_fn_error "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
5092 else
5093 ac_cv_path_EGREP=$EGREP
5098 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
5099 $as_echo "$ac_cv_path_EGREP" >&6; }
5100 EGREP="$ac_cv_path_EGREP"
5103 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
5104 $as_echo_n "checking for ANSI C header files... " >&6; }
5105 if test "${ac_cv_header_stdc+set}" = set; then :
5106 $as_echo_n "(cached) " >&6
5107 else
5108 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5109 /* end confdefs.h. */
5110 #include <stdlib.h>
5111 #include <stdarg.h>
5112 #include <string.h>
5113 #include <float.h>
5116 main ()
5120 return 0;
5122 _ACEOF
5123 if ac_fn_c_try_compile "$LINENO"; then :
5124 ac_cv_header_stdc=yes
5125 else
5126 ac_cv_header_stdc=no
5128 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5130 if test $ac_cv_header_stdc = yes; then
5131 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
5132 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5133 /* end confdefs.h. */
5134 #include <string.h>
5136 _ACEOF
5137 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5138 $EGREP "memchr" >/dev/null 2>&1; then :
5140 else
5141 ac_cv_header_stdc=no
5143 rm -f conftest*
5147 if test $ac_cv_header_stdc = yes; then
5148 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
5149 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5150 /* end confdefs.h. */
5151 #include <stdlib.h>
5153 _ACEOF
5154 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5155 $EGREP "free" >/dev/null 2>&1; then :
5157 else
5158 ac_cv_header_stdc=no
5160 rm -f conftest*
5164 if test $ac_cv_header_stdc = yes; then
5165 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
5166 if test "$cross_compiling" = yes; then :
5168 else
5169 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5170 /* end confdefs.h. */
5171 #include <ctype.h>
5172 #include <stdlib.h>
5173 #if ((' ' & 0x0FF) == 0x020)
5174 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
5175 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
5176 #else
5177 # define ISLOWER(c) \
5178 (('a' <= (c) && (c) <= 'i') \
5179 || ('j' <= (c) && (c) <= 'r') \
5180 || ('s' <= (c) && (c) <= 'z'))
5181 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
5182 #endif
5184 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
5186 main ()
5188 int i;
5189 for (i = 0; i < 256; i++)
5190 if (XOR (islower (i), ISLOWER (i))
5191 || toupper (i) != TOUPPER (i))
5192 return 2;
5193 return 0;
5195 _ACEOF
5196 if ac_fn_c_try_run "$LINENO"; then :
5198 else
5199 ac_cv_header_stdc=no
5201 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
5202 conftest.$ac_objext conftest.beam conftest.$ac_ext
5207 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
5208 $as_echo "$ac_cv_header_stdc" >&6; }
5209 if test $ac_cv_header_stdc = yes; then
5211 $as_echo "#define STDC_HEADERS 1" >>confdefs.h
5215 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
5216 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
5217 inttypes.h stdint.h unistd.h
5218 do :
5219 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
5220 ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
5222 eval as_val=\$$as_ac_Header
5223 if test "x$as_val" = x""yes; then :
5224 cat >>confdefs.h <<_ACEOF
5225 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
5226 _ACEOF
5230 done
5234 ac_fn_c_check_header_mongrel "$LINENO" "minix/config.h" "ac_cv_header_minix_config_h" "$ac_includes_default"
5235 if test "x$ac_cv_header_minix_config_h" = x""yes; then :
5236 MINIX=yes
5237 else
5238 MINIX=
5242 if test "$MINIX" = yes; then
5244 $as_echo "#define _POSIX_SOURCE 1" >>confdefs.h
5247 $as_echo "#define _POSIX_1_SOURCE 2" >>confdefs.h
5250 $as_echo "#define _MINIX 1" >>confdefs.h
5255 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether it is safe to define __EXTENSIONS__" >&5
5256 $as_echo_n "checking whether it is safe to define __EXTENSIONS__... " >&6; }
5257 if test "${ac_cv_safe_to_define___extensions__+set}" = set; then :
5258 $as_echo_n "(cached) " >&6
5259 else
5260 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5261 /* end confdefs.h. */
5263 # define __EXTENSIONS__ 1
5264 $ac_includes_default
5266 main ()
5270 return 0;
5272 _ACEOF
5273 if ac_fn_c_try_compile "$LINENO"; then :
5274 ac_cv_safe_to_define___extensions__=yes
5275 else
5276 ac_cv_safe_to_define___extensions__=no
5278 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5280 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_safe_to_define___extensions__" >&5
5281 $as_echo "$ac_cv_safe_to_define___extensions__" >&6; }
5282 test $ac_cv_safe_to_define___extensions__ = yes &&
5283 $as_echo "#define __EXTENSIONS__ 1" >>confdefs.h
5285 $as_echo "#define _ALL_SOURCE 1" >>confdefs.h
5287 $as_echo "#define _GNU_SOURCE 1" >>confdefs.h
5289 $as_echo "#define _POSIX_PTHREAD_SEMANTICS 1" >>confdefs.h
5291 $as_echo "#define _TANDEM_SOURCE 1" >>confdefs.h
5294 ac_ext=c
5295 ac_cpp='$CPP $CPPFLAGS'
5296 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5297 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5298 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5299 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
5300 $as_echo_n "checking how to run the C preprocessor... " >&6; }
5301 # On Suns, sometimes $CPP names a directory.
5302 if test -n "$CPP" && test -d "$CPP"; then
5303 CPP=
5305 if test -z "$CPP"; then
5306 if test "${ac_cv_prog_CPP+set}" = set; then :
5307 $as_echo_n "(cached) " >&6
5308 else
5309 # Double quotes because CPP needs to be expanded
5310 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
5312 ac_preproc_ok=false
5313 for ac_c_preproc_warn_flag in '' yes
5315 # Use a header file that comes with gcc, so configuring glibc
5316 # with a fresh cross-compiler works.
5317 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5318 # <limits.h> exists even on freestanding compilers.
5319 # On the NeXT, cc -E runs the code through the compiler's parser,
5320 # not just through cpp. "Syntax error" is here to catch this case.
5321 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5322 /* end confdefs.h. */
5323 #ifdef __STDC__
5324 # include <limits.h>
5325 #else
5326 # include <assert.h>
5327 #endif
5328 Syntax error
5329 _ACEOF
5330 if ac_fn_c_try_cpp "$LINENO"; then :
5332 else
5333 # Broken: fails on valid input.
5334 continue
5336 rm -f conftest.err conftest.$ac_ext
5338 # OK, works on sane cases. Now check whether nonexistent headers
5339 # can be detected and how.
5340 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5341 /* end confdefs.h. */
5342 #include <ac_nonexistent.h>
5343 _ACEOF
5344 if ac_fn_c_try_cpp "$LINENO"; then :
5345 # Broken: success on invalid input.
5346 continue
5347 else
5348 # Passes both tests.
5349 ac_preproc_ok=:
5350 break
5352 rm -f conftest.err conftest.$ac_ext
5354 done
5355 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5356 rm -f conftest.err conftest.$ac_ext
5357 if $ac_preproc_ok; then :
5358 break
5361 done
5362 ac_cv_prog_CPP=$CPP
5365 CPP=$ac_cv_prog_CPP
5366 else
5367 ac_cv_prog_CPP=$CPP
5369 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
5370 $as_echo "$CPP" >&6; }
5371 ac_preproc_ok=false
5372 for ac_c_preproc_warn_flag in '' yes
5374 # Use a header file that comes with gcc, so configuring glibc
5375 # with a fresh cross-compiler works.
5376 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5377 # <limits.h> exists even on freestanding compilers.
5378 # On the NeXT, cc -E runs the code through the compiler's parser,
5379 # not just through cpp. "Syntax error" is here to catch this case.
5380 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5381 /* end confdefs.h. */
5382 #ifdef __STDC__
5383 # include <limits.h>
5384 #else
5385 # include <assert.h>
5386 #endif
5387 Syntax error
5388 _ACEOF
5389 if ac_fn_c_try_cpp "$LINENO"; then :
5391 else
5392 # Broken: fails on valid input.
5393 continue
5395 rm -f conftest.err conftest.$ac_ext
5397 # OK, works on sane cases. Now check whether nonexistent headers
5398 # can be detected and how.
5399 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5400 /* end confdefs.h. */
5401 #include <ac_nonexistent.h>
5402 _ACEOF
5403 if ac_fn_c_try_cpp "$LINENO"; then :
5404 # Broken: success on invalid input.
5405 continue
5406 else
5407 # Passes both tests.
5408 ac_preproc_ok=:
5409 break
5411 rm -f conftest.err conftest.$ac_ext
5413 done
5414 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5415 rm -f conftest.err conftest.$ac_ext
5416 if $ac_preproc_ok; then :
5418 else
5419 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
5420 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
5421 as_fn_error "C preprocessor \"$CPP\" fails sanity check
5422 See \`config.log' for more details." "$LINENO" 5; }
5425 ac_ext=c
5426 ac_cpp='$CPP $CPPFLAGS'
5427 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5428 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5429 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5431 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for inline" >&5
5432 $as_echo_n "checking for inline... " >&6; }
5433 if test "${ac_cv_c_inline+set}" = set; then :
5434 $as_echo_n "(cached) " >&6
5435 else
5436 ac_cv_c_inline=no
5437 for ac_kw in inline __inline__ __inline; do
5438 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5439 /* end confdefs.h. */
5440 #ifndef __cplusplus
5441 typedef int foo_t;
5442 static $ac_kw foo_t static_foo () {return 0; }
5443 $ac_kw foo_t foo () {return 0; }
5444 #endif
5446 _ACEOF
5447 if ac_fn_c_try_compile "$LINENO"; then :
5448 ac_cv_c_inline=$ac_kw
5450 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5451 test "$ac_cv_c_inline" != no && break
5452 done
5455 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_inline" >&5
5456 $as_echo "$ac_cv_c_inline" >&6; }
5458 case $ac_cv_c_inline in
5459 inline | yes) ;;
5461 case $ac_cv_c_inline in
5462 no) ac_val=;;
5463 *) ac_val=$ac_cv_c_inline;;
5464 esac
5465 cat >>confdefs.h <<_ACEOF
5466 #ifndef __cplusplus
5467 #define inline $ac_val
5468 #endif
5469 _ACEOF
5471 esac
5474 # Check whether --enable-largefile was given.
5475 if test "${enable_largefile+set}" = set; then :
5476 enableval=$enable_largefile;
5479 if test "$enable_largefile" != no; then
5481 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for special C compiler options needed for large files" >&5
5482 $as_echo_n "checking for special C compiler options needed for large files... " >&6; }
5483 if test "${ac_cv_sys_largefile_CC+set}" = set; then :
5484 $as_echo_n "(cached) " >&6
5485 else
5486 ac_cv_sys_largefile_CC=no
5487 if test "$GCC" != yes; then
5488 ac_save_CC=$CC
5489 while :; do
5490 # IRIX 6.2 and later do not support large files by default,
5491 # so use the C compiler's -n32 option if that helps.
5492 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5493 /* end confdefs.h. */
5494 #include <sys/types.h>
5495 /* Check that off_t can represent 2**63 - 1 correctly.
5496 We can't simply define LARGE_OFF_T to be 9223372036854775807,
5497 since some C++ compilers masquerading as C compilers
5498 incorrectly reject 9223372036854775807. */
5499 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
5500 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
5501 && LARGE_OFF_T % 2147483647 == 1)
5502 ? 1 : -1];
5504 main ()
5508 return 0;
5510 _ACEOF
5511 if ac_fn_c_try_compile "$LINENO"; then :
5512 break
5514 rm -f core conftest.err conftest.$ac_objext
5515 CC="$CC -n32"
5516 if ac_fn_c_try_compile "$LINENO"; then :
5517 ac_cv_sys_largefile_CC=' -n32'; break
5519 rm -f core conftest.err conftest.$ac_objext
5520 break
5521 done
5522 CC=$ac_save_CC
5523 rm -f conftest.$ac_ext
5526 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_largefile_CC" >&5
5527 $as_echo "$ac_cv_sys_largefile_CC" >&6; }
5528 if test "$ac_cv_sys_largefile_CC" != no; then
5529 CC=$CC$ac_cv_sys_largefile_CC
5532 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _FILE_OFFSET_BITS value needed for large files" >&5
5533 $as_echo_n "checking for _FILE_OFFSET_BITS value needed for large files... " >&6; }
5534 if test "${ac_cv_sys_file_offset_bits+set}" = set; then :
5535 $as_echo_n "(cached) " >&6
5536 else
5537 while :; do
5538 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5539 /* end confdefs.h. */
5540 #include <sys/types.h>
5541 /* Check that off_t can represent 2**63 - 1 correctly.
5542 We can't simply define LARGE_OFF_T to be 9223372036854775807,
5543 since some C++ compilers masquerading as C compilers
5544 incorrectly reject 9223372036854775807. */
5545 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
5546 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
5547 && LARGE_OFF_T % 2147483647 == 1)
5548 ? 1 : -1];
5550 main ()
5554 return 0;
5556 _ACEOF
5557 if ac_fn_c_try_compile "$LINENO"; then :
5558 ac_cv_sys_file_offset_bits=no; break
5560 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5561 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5562 /* end confdefs.h. */
5563 #define _FILE_OFFSET_BITS 64
5564 #include <sys/types.h>
5565 /* Check that off_t can represent 2**63 - 1 correctly.
5566 We can't simply define LARGE_OFF_T to be 9223372036854775807,
5567 since some C++ compilers masquerading as C compilers
5568 incorrectly reject 9223372036854775807. */
5569 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
5570 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
5571 && LARGE_OFF_T % 2147483647 == 1)
5572 ? 1 : -1];
5574 main ()
5578 return 0;
5580 _ACEOF
5581 if ac_fn_c_try_compile "$LINENO"; then :
5582 ac_cv_sys_file_offset_bits=64; break
5584 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5585 ac_cv_sys_file_offset_bits=unknown
5586 break
5587 done
5589 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_file_offset_bits" >&5
5590 $as_echo "$ac_cv_sys_file_offset_bits" >&6; }
5591 case $ac_cv_sys_file_offset_bits in #(
5592 no | unknown) ;;
5594 cat >>confdefs.h <<_ACEOF
5595 #define _FILE_OFFSET_BITS $ac_cv_sys_file_offset_bits
5596 _ACEOF
5598 esac
5599 rm -rf conftest*
5600 if test $ac_cv_sys_file_offset_bits = unknown; then
5601 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _LARGE_FILES value needed for large files" >&5
5602 $as_echo_n "checking for _LARGE_FILES value needed for large files... " >&6; }
5603 if test "${ac_cv_sys_large_files+set}" = set; then :
5604 $as_echo_n "(cached) " >&6
5605 else
5606 while :; do
5607 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5608 /* end confdefs.h. */
5609 #include <sys/types.h>
5610 /* Check that off_t can represent 2**63 - 1 correctly.
5611 We can't simply define LARGE_OFF_T to be 9223372036854775807,
5612 since some C++ compilers masquerading as C compilers
5613 incorrectly reject 9223372036854775807. */
5614 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
5615 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
5616 && LARGE_OFF_T % 2147483647 == 1)
5617 ? 1 : -1];
5619 main ()
5623 return 0;
5625 _ACEOF
5626 if ac_fn_c_try_compile "$LINENO"; then :
5627 ac_cv_sys_large_files=no; break
5629 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5630 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5631 /* end confdefs.h. */
5632 #define _LARGE_FILES 1
5633 #include <sys/types.h>
5634 /* Check that off_t can represent 2**63 - 1 correctly.
5635 We can't simply define LARGE_OFF_T to be 9223372036854775807,
5636 since some C++ compilers masquerading as C compilers
5637 incorrectly reject 9223372036854775807. */
5638 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
5639 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
5640 && LARGE_OFF_T % 2147483647 == 1)
5641 ? 1 : -1];
5643 main ()
5647 return 0;
5649 _ACEOF
5650 if ac_fn_c_try_compile "$LINENO"; then :
5651 ac_cv_sys_large_files=1; break
5653 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5654 ac_cv_sys_large_files=unknown
5655 break
5656 done
5658 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_large_files" >&5
5659 $as_echo "$ac_cv_sys_large_files" >&6; }
5660 case $ac_cv_sys_large_files in #(
5661 no | unknown) ;;
5663 cat >>confdefs.h <<_ACEOF
5664 #define _LARGE_FILES $ac_cv_sys_large_files
5665 _ACEOF
5667 esac
5668 rm -rf conftest*
5673 # sizeof(char) is 1 by definition.
5674 # The cast to long int works around a bug in the HP C Compiler
5675 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
5676 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
5677 # This bug is HP SR number 8606223364.
5678 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of void *" >&5
5679 $as_echo_n "checking size of void *... " >&6; }
5680 if test "${ac_cv_sizeof_void_p+set}" = set; then :
5681 $as_echo_n "(cached) " >&6
5682 else
5683 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (void *))" "ac_cv_sizeof_void_p" "$ac_includes_default"; then :
5685 else
5686 if test "$ac_cv_type_void_p" = yes; then
5687 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
5688 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
5689 { as_fn_set_status 77
5690 as_fn_error "cannot compute sizeof (void *)
5691 See \`config.log' for more details." "$LINENO" 5; }; }
5692 else
5693 ac_cv_sizeof_void_p=0
5698 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_void_p" >&5
5699 $as_echo "$ac_cv_sizeof_void_p" >&6; }
5703 cat >>confdefs.h <<_ACEOF
5704 #define SIZEOF_VOID_P $ac_cv_sizeof_void_p
5705 _ACEOF
5708 # The cast to long int works around a bug in the HP C Compiler
5709 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
5710 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
5711 # This bug is HP SR number 8606223364.
5712 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of short" >&5
5713 $as_echo_n "checking size of short... " >&6; }
5714 if test "${ac_cv_sizeof_short+set}" = set; then :
5715 $as_echo_n "(cached) " >&6
5716 else
5717 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (short))" "ac_cv_sizeof_short" "$ac_includes_default"; then :
5719 else
5720 if test "$ac_cv_type_short" = yes; then
5721 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
5722 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
5723 { as_fn_set_status 77
5724 as_fn_error "cannot compute sizeof (short)
5725 See \`config.log' for more details." "$LINENO" 5; }; }
5726 else
5727 ac_cv_sizeof_short=0
5732 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_short" >&5
5733 $as_echo "$ac_cv_sizeof_short" >&6; }
5737 cat >>confdefs.h <<_ACEOF
5738 #define SIZEOF_SHORT $ac_cv_sizeof_short
5739 _ACEOF
5742 # The cast to long int works around a bug in the HP C Compiler
5743 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
5744 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
5745 # This bug is HP SR number 8606223364.
5746 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of int" >&5
5747 $as_echo_n "checking size of int... " >&6; }
5748 if test "${ac_cv_sizeof_int+set}" = set; then :
5749 $as_echo_n "(cached) " >&6
5750 else
5751 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (int))" "ac_cv_sizeof_int" "$ac_includes_default"; then :
5753 else
5754 if test "$ac_cv_type_int" = yes; then
5755 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
5756 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
5757 { as_fn_set_status 77
5758 as_fn_error "cannot compute sizeof (int)
5759 See \`config.log' for more details." "$LINENO" 5; }; }
5760 else
5761 ac_cv_sizeof_int=0
5766 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_int" >&5
5767 $as_echo "$ac_cv_sizeof_int" >&6; }
5771 cat >>confdefs.h <<_ACEOF
5772 #define SIZEOF_INT $ac_cv_sizeof_int
5773 _ACEOF
5776 # The cast to long int works around a bug in the HP C Compiler
5777 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
5778 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
5779 # This bug is HP SR number 8606223364.
5780 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of long" >&5
5781 $as_echo_n "checking size of long... " >&6; }
5782 if test "${ac_cv_sizeof_long+set}" = set; then :
5783 $as_echo_n "(cached) " >&6
5784 else
5785 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (long))" "ac_cv_sizeof_long" "$ac_includes_default"; then :
5787 else
5788 if test "$ac_cv_type_long" = yes; then
5789 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
5790 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
5791 { as_fn_set_status 77
5792 as_fn_error "cannot compute sizeof (long)
5793 See \`config.log' for more details." "$LINENO" 5; }; }
5794 else
5795 ac_cv_sizeof_long=0
5800 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_long" >&5
5801 $as_echo "$ac_cv_sizeof_long" >&6; }
5805 cat >>confdefs.h <<_ACEOF
5806 #define SIZEOF_LONG $ac_cv_sizeof_long
5807 _ACEOF
5810 ac_fn_c_check_type "$LINENO" "long long" "ac_cv_type_long_long" "$ac_includes_default"
5811 if test "x$ac_cv_type_long_long" = x""yes; then :
5813 cat >>confdefs.h <<_ACEOF
5814 #define HAVE_LONG_LONG 1
5815 _ACEOF
5817 # The cast to long int works around a bug in the HP C Compiler
5818 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
5819 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
5820 # This bug is HP SR number 8606223364.
5821 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of long long" >&5
5822 $as_echo_n "checking size of long long... " >&6; }
5823 if test "${ac_cv_sizeof_long_long+set}" = set; then :
5824 $as_echo_n "(cached) " >&6
5825 else
5826 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (long long))" "ac_cv_sizeof_long_long" "$ac_includes_default"; then :
5828 else
5829 if test "$ac_cv_type_long_long" = yes; then
5830 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
5831 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
5832 { as_fn_set_status 77
5833 as_fn_error "cannot compute sizeof (long long)
5834 See \`config.log' for more details." "$LINENO" 5; }; }
5835 else
5836 ac_cv_sizeof_long_long=0
5841 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_long_long" >&5
5842 $as_echo "$ac_cv_sizeof_long_long" >&6; }
5846 cat >>confdefs.h <<_ACEOF
5847 #define SIZEOF_LONG_LONG $ac_cv_sizeof_long_long
5848 _ACEOF
5853 ac_fn_c_check_type "$LINENO" "__int64" "ac_cv_type___int64" "$ac_includes_default"
5854 if test "x$ac_cv_type___int64" = x""yes; then :
5856 cat >>confdefs.h <<_ACEOF
5857 #define HAVE___INT64 1
5858 _ACEOF
5860 # The cast to long int works around a bug in the HP C Compiler
5861 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
5862 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
5863 # This bug is HP SR number 8606223364.
5864 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of __int64" >&5
5865 $as_echo_n "checking size of __int64... " >&6; }
5866 if test "${ac_cv_sizeof___int64+set}" = set; then :
5867 $as_echo_n "(cached) " >&6
5868 else
5869 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (__int64))" "ac_cv_sizeof___int64" "$ac_includes_default"; then :
5871 else
5872 if test "$ac_cv_type___int64" = yes; then
5873 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
5874 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
5875 { as_fn_set_status 77
5876 as_fn_error "cannot compute sizeof (__int64)
5877 See \`config.log' for more details." "$LINENO" 5; }; }
5878 else
5879 ac_cv_sizeof___int64=0
5884 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof___int64" >&5
5885 $as_echo "$ac_cv_sizeof___int64" >&6; }
5889 cat >>confdefs.h <<_ACEOF
5890 #define SIZEOF___INT64 $ac_cv_sizeof___int64
5891 _ACEOF
5896 ac_fn_c_find_intX_t "$LINENO" "8" "ac_cv_c_int8_t"
5897 case $ac_cv_c_int8_t in #(
5898 no|yes) ;; #(
5901 cat >>confdefs.h <<_ACEOF
5902 #define int8_t $ac_cv_c_int8_t
5903 _ACEOF
5905 esac
5907 ac_fn_c_find_intX_t "$LINENO" "16" "ac_cv_c_int16_t"
5908 case $ac_cv_c_int16_t in #(
5909 no|yes) ;; #(
5912 cat >>confdefs.h <<_ACEOF
5913 #define int16_t $ac_cv_c_int16_t
5914 _ACEOF
5916 esac
5918 ac_fn_c_find_intX_t "$LINENO" "32" "ac_cv_c_int32_t"
5919 case $ac_cv_c_int32_t in #(
5920 no|yes) ;; #(
5923 cat >>confdefs.h <<_ACEOF
5924 #define int32_t $ac_cv_c_int32_t
5925 _ACEOF
5927 esac
5929 ac_fn_c_find_intX_t "$LINENO" "64" "ac_cv_c_int64_t"
5930 case $ac_cv_c_int64_t in #(
5931 no|yes) ;; #(
5934 cat >>confdefs.h <<_ACEOF
5935 #define int64_t $ac_cv_c_int64_t
5936 _ACEOF
5938 esac
5941 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for long long int" >&5
5942 $as_echo_n "checking for long long int... " >&6; }
5943 if test "${ac_cv_type_long_long_int+set}" = set; then :
5944 $as_echo_n "(cached) " >&6
5945 else
5946 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5947 /* end confdefs.h. */
5949 /* For now, do not test the preprocessor; as of 2007 there are too many
5950 implementations with broken preprocessors. Perhaps this can
5951 be revisited in 2012. In the meantime, code should not expect
5952 #if to work with literals wider than 32 bits. */
5953 /* Test literals. */
5954 long long int ll = 9223372036854775807ll;
5955 long long int nll = -9223372036854775807LL;
5956 unsigned long long int ull = 18446744073709551615ULL;
5957 /* Test constant expressions. */
5958 typedef int a[((-9223372036854775807LL < 0 && 0 < 9223372036854775807ll)
5959 ? 1 : -1)];
5960 typedef int b[(18446744073709551615ULL <= (unsigned long long int) -1
5961 ? 1 : -1)];
5962 int i = 63;
5964 main ()
5966 /* Test availability of runtime routines for shift and division. */
5967 long long int llmax = 9223372036854775807ll;
5968 unsigned long long int ullmax = 18446744073709551615ull;
5969 return ((ll << 63) | (ll >> 63) | (ll < i) | (ll > i)
5970 | (llmax / ll) | (llmax % ll)
5971 | (ull << 63) | (ull >> 63) | (ull << i) | (ull >> i)
5972 | (ullmax / ull) | (ullmax % ull));
5974 return 0;
5977 _ACEOF
5978 if ac_fn_c_try_link "$LINENO"; then :
5979 if test "$cross_compiling" = yes; then :
5980 ac_cv_type_long_long_int=yes
5981 else
5982 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5983 /* end confdefs.h. */
5984 #include <limits.h>
5985 #ifndef LLONG_MAX
5986 # define HALF \
5987 (1LL << (sizeof (long long int) * CHAR_BIT - 2))
5988 # define LLONG_MAX (HALF - 1 + HALF)
5989 #endif
5991 main ()
5993 long long int n = 1;
5994 int i;
5995 for (i = 0; ; i++)
5997 long long int m = n << i;
5998 if (m >> i != n)
5999 return 1;
6000 if (LLONG_MAX / 2 < m)
6001 break;
6003 return 0;
6005 return 0;
6007 _ACEOF
6008 if ac_fn_c_try_run "$LINENO"; then :
6009 ac_cv_type_long_long_int=yes
6010 else
6011 ac_cv_type_long_long_int=no
6013 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
6014 conftest.$ac_objext conftest.beam conftest.$ac_ext
6017 else
6018 ac_cv_type_long_long_int=no
6020 rm -f core conftest.err conftest.$ac_objext \
6021 conftest$ac_exeext conftest.$ac_ext
6023 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_long_long_int" >&5
6024 $as_echo "$ac_cv_type_long_long_int" >&6; }
6025 if test $ac_cv_type_long_long_int = yes; then
6027 $as_echo "#define HAVE_LONG_LONG_INT 1" >>confdefs.h
6033 ac_fn_c_check_type "$LINENO" "intmax_t" "ac_cv_type_intmax_t" "$ac_includes_default"
6034 if test "x$ac_cv_type_intmax_t" = x""yes; then :
6036 $as_echo "#define HAVE_INTMAX_T 1" >>confdefs.h
6038 else
6039 test $ac_cv_type_long_long_int = yes \
6040 && ac_type='long long int' \
6041 || ac_type='long int'
6043 cat >>confdefs.h <<_ACEOF
6044 #define intmax_t $ac_type
6045 _ACEOF
6051 ac_fn_c_check_type "$LINENO" "intptr_t" "ac_cv_type_intptr_t" "$ac_includes_default"
6052 if test "x$ac_cv_type_intptr_t" = x""yes; then :
6054 $as_echo "#define HAVE_INTPTR_T 1" >>confdefs.h
6056 else
6057 for ac_type in 'int' 'long int' 'long long int'; do
6058 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6059 /* end confdefs.h. */
6060 $ac_includes_default
6062 main ()
6064 static int test_array [1 - 2 * !(sizeof (void *) <= sizeof ($ac_type))];
6065 test_array [0] = 0
6068 return 0;
6070 _ACEOF
6071 if ac_fn_c_try_compile "$LINENO"; then :
6073 cat >>confdefs.h <<_ACEOF
6074 #define intptr_t $ac_type
6075 _ACEOF
6077 ac_type=
6079 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6080 test -z "$ac_type" && break
6081 done
6085 ac_fn_c_find_uintX_t "$LINENO" "8" "ac_cv_c_uint8_t"
6086 case $ac_cv_c_uint8_t in #(
6087 no|yes) ;; #(
6090 $as_echo "#define _UINT8_T 1" >>confdefs.h
6093 cat >>confdefs.h <<_ACEOF
6094 #define uint8_t $ac_cv_c_uint8_t
6095 _ACEOF
6097 esac
6099 ac_fn_c_find_uintX_t "$LINENO" "16" "ac_cv_c_uint16_t"
6100 case $ac_cv_c_uint16_t in #(
6101 no|yes) ;; #(
6105 cat >>confdefs.h <<_ACEOF
6106 #define uint16_t $ac_cv_c_uint16_t
6107 _ACEOF
6109 esac
6111 ac_fn_c_find_uintX_t "$LINENO" "32" "ac_cv_c_uint32_t"
6112 case $ac_cv_c_uint32_t in #(
6113 no|yes) ;; #(
6116 $as_echo "#define _UINT32_T 1" >>confdefs.h
6119 cat >>confdefs.h <<_ACEOF
6120 #define uint32_t $ac_cv_c_uint32_t
6121 _ACEOF
6123 esac
6125 ac_fn_c_find_uintX_t "$LINENO" "64" "ac_cv_c_uint64_t"
6126 case $ac_cv_c_uint64_t in #(
6127 no|yes) ;; #(
6130 $as_echo "#define _UINT64_T 1" >>confdefs.h
6133 cat >>confdefs.h <<_ACEOF
6134 #define uint64_t $ac_cv_c_uint64_t
6135 _ACEOF
6137 esac
6140 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for unsigned long long int" >&5
6141 $as_echo_n "checking for unsigned long long int... " >&6; }
6142 if test "${ac_cv_type_unsigned_long_long_int+set}" = set; then :
6143 $as_echo_n "(cached) " >&6
6144 else
6145 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6146 /* end confdefs.h. */
6148 /* For now, do not test the preprocessor; as of 2007 there are too many
6149 implementations with broken preprocessors. Perhaps this can
6150 be revisited in 2012. In the meantime, code should not expect
6151 #if to work with literals wider than 32 bits. */
6152 /* Test literals. */
6153 long long int ll = 9223372036854775807ll;
6154 long long int nll = -9223372036854775807LL;
6155 unsigned long long int ull = 18446744073709551615ULL;
6156 /* Test constant expressions. */
6157 typedef int a[((-9223372036854775807LL < 0 && 0 < 9223372036854775807ll)
6158 ? 1 : -1)];
6159 typedef int b[(18446744073709551615ULL <= (unsigned long long int) -1
6160 ? 1 : -1)];
6161 int i = 63;
6163 main ()
6165 /* Test availability of runtime routines for shift and division. */
6166 long long int llmax = 9223372036854775807ll;
6167 unsigned long long int ullmax = 18446744073709551615ull;
6168 return ((ll << 63) | (ll >> 63) | (ll < i) | (ll > i)
6169 | (llmax / ll) | (llmax % ll)
6170 | (ull << 63) | (ull >> 63) | (ull << i) | (ull >> i)
6171 | (ullmax / ull) | (ullmax % ull));
6173 return 0;
6176 _ACEOF
6177 if ac_fn_c_try_link "$LINENO"; then :
6178 ac_cv_type_unsigned_long_long_int=yes
6179 else
6180 ac_cv_type_unsigned_long_long_int=no
6182 rm -f core conftest.err conftest.$ac_objext \
6183 conftest$ac_exeext conftest.$ac_ext
6185 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_unsigned_long_long_int" >&5
6186 $as_echo "$ac_cv_type_unsigned_long_long_int" >&6; }
6187 if test $ac_cv_type_unsigned_long_long_int = yes; then
6189 $as_echo "#define HAVE_UNSIGNED_LONG_LONG_INT 1" >>confdefs.h
6195 ac_fn_c_check_type "$LINENO" "uintmax_t" "ac_cv_type_uintmax_t" "$ac_includes_default"
6196 if test "x$ac_cv_type_uintmax_t" = x""yes; then :
6198 $as_echo "#define HAVE_UINTMAX_T 1" >>confdefs.h
6200 else
6201 test $ac_cv_type_unsigned_long_long_int = yes \
6202 && ac_type='unsigned long long int' \
6203 || ac_type='unsigned long int'
6205 cat >>confdefs.h <<_ACEOF
6206 #define uintmax_t $ac_type
6207 _ACEOF
6213 ac_fn_c_check_type "$LINENO" "uintptr_t" "ac_cv_type_uintptr_t" "$ac_includes_default"
6214 if test "x$ac_cv_type_uintptr_t" = x""yes; then :
6216 $as_echo "#define HAVE_UINTPTR_T 1" >>confdefs.h
6218 else
6219 for ac_type in 'unsigned int' 'unsigned long int' \
6220 'unsigned long long int'; do
6221 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6222 /* end confdefs.h. */
6223 $ac_includes_default
6225 main ()
6227 static int test_array [1 - 2 * !(sizeof (void *) <= sizeof ($ac_type))];
6228 test_array [0] = 0
6231 return 0;
6233 _ACEOF
6234 if ac_fn_c_try_compile "$LINENO"; then :
6236 cat >>confdefs.h <<_ACEOF
6237 #define uintptr_t $ac_type
6238 _ACEOF
6240 ac_type=
6242 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6243 test -z "$ac_type" && break
6244 done
6261 # ---------------------
6262 # Warnings and checking
6263 # ---------------------
6265 # Check $CC warning features (if it's GCC).
6266 # We want to use -pedantic, but we don't want warnings about
6267 # * 'long long'
6268 # * variadic macros
6269 # * overlong strings
6270 # * C++11 narrowing conversions in { }
6271 # So, we only use -pedantic if we can disable those warnings.
6273 loose_warn=
6274 save_CFLAGS="$CFLAGS"
6275 for real_option in -W -Wall -Wno-narrowing -Wwrite-strings -Wcast-qual; do
6276 # Do the check with the no- prefix removed since gcc silently
6277 # accepts any -Wno-* option on purpose
6278 case $real_option in
6279 -Wno-*) option=-W`expr x$real_option : 'x-Wno-\(.*\)'` ;;
6280 *) option=$real_option ;;
6281 esac
6282 as_acx_Woption=`$as_echo "acx_cv_prog_cc_warning_$option" | $as_tr_sh`
6284 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC supports $option" >&5
6285 $as_echo_n "checking whether $CC supports $option... " >&6; }
6286 if { as_var=$as_acx_Woption; eval "test \"\${$as_var+set}\" = set"; }; then :
6287 $as_echo_n "(cached) " >&6
6288 else
6289 CFLAGS="$option"
6290 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6291 /* end confdefs.h. */
6294 main ()
6298 return 0;
6300 _ACEOF
6301 if ac_fn_c_try_compile "$LINENO"; then :
6302 eval "$as_acx_Woption=yes"
6303 else
6304 eval "$as_acx_Woption=no"
6306 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6309 eval ac_res=\$$as_acx_Woption
6310 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
6311 $as_echo "$ac_res" >&6; }
6312 if test `eval 'as_val=${'$as_acx_Woption'};$as_echo "$as_val"'` = yes; then :
6313 loose_warn="$loose_warn${loose_warn:+ }$real_option"
6315 done
6316 CFLAGS="$save_CFLAGS"
6318 c_loose_warn=
6319 save_CFLAGS="$CFLAGS"
6320 for real_option in -Wstrict-prototypes -Wmissing-prototypes; do
6321 # Do the check with the no- prefix removed since gcc silently
6322 # accepts any -Wno-* option on purpose
6323 case $real_option in
6324 -Wno-*) option=-W`expr x$real_option : 'x-Wno-\(.*\)'` ;;
6325 *) option=$real_option ;;
6326 esac
6327 as_acx_Woption=`$as_echo "acx_cv_prog_cc_warning_$option" | $as_tr_sh`
6329 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC supports $option" >&5
6330 $as_echo_n "checking whether $CC supports $option... " >&6; }
6331 if { as_var=$as_acx_Woption; eval "test \"\${$as_var+set}\" = set"; }; then :
6332 $as_echo_n "(cached) " >&6
6333 else
6334 CFLAGS="$option"
6335 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6336 /* end confdefs.h. */
6339 main ()
6343 return 0;
6345 _ACEOF
6346 if ac_fn_c_try_compile "$LINENO"; then :
6347 eval "$as_acx_Woption=yes"
6348 else
6349 eval "$as_acx_Woption=no"
6351 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6354 eval ac_res=\$$as_acx_Woption
6355 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
6356 $as_echo "$ac_res" >&6; }
6357 if test `eval 'as_val=${'$as_acx_Woption'};$as_echo "$as_val"'` = yes; then :
6358 c_loose_warn="$c_loose_warn${c_loose_warn:+ }$real_option"
6360 done
6361 CFLAGS="$save_CFLAGS"
6363 strict_warn=
6364 save_CFLAGS="$CFLAGS"
6365 for real_option in -Wmissing-format-attribute; do
6366 # Do the check with the no- prefix removed since gcc silently
6367 # accepts any -Wno-* option on purpose
6368 case $real_option in
6369 -Wno-*) option=-W`expr x$real_option : 'x-Wno-\(.*\)'` ;;
6370 *) option=$real_option ;;
6371 esac
6372 as_acx_Woption=`$as_echo "acx_cv_prog_cc_warning_$option" | $as_tr_sh`
6374 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC supports $option" >&5
6375 $as_echo_n "checking whether $CC supports $option... " >&6; }
6376 if { as_var=$as_acx_Woption; eval "test \"\${$as_var+set}\" = set"; }; then :
6377 $as_echo_n "(cached) " >&6
6378 else
6379 CFLAGS="$option"
6380 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6381 /* end confdefs.h. */
6384 main ()
6388 return 0;
6390 _ACEOF
6391 if ac_fn_c_try_compile "$LINENO"; then :
6392 eval "$as_acx_Woption=yes"
6393 else
6394 eval "$as_acx_Woption=no"
6396 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6399 eval ac_res=\$$as_acx_Woption
6400 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
6401 $as_echo "$ac_res" >&6; }
6402 if test `eval 'as_val=${'$as_acx_Woption'};$as_echo "$as_val"'` = yes; then :
6403 strict_warn="$strict_warn${strict_warn:+ }$real_option"
6405 done
6406 CFLAGS="$save_CFLAGS"
6408 c_strict_warn=
6409 save_CFLAGS="$CFLAGS"
6410 for real_option in -Wold-style-definition -Wc++-compat; do
6411 # Do the check with the no- prefix removed since gcc silently
6412 # accepts any -Wno-* option on purpose
6413 case $real_option in
6414 -Wno-*) option=-W`expr x$real_option : 'x-Wno-\(.*\)'` ;;
6415 *) option=$real_option ;;
6416 esac
6417 as_acx_Woption=`$as_echo "acx_cv_prog_cc_warning_$option" | $as_tr_sh`
6419 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC supports $option" >&5
6420 $as_echo_n "checking whether $CC supports $option... " >&6; }
6421 if { as_var=$as_acx_Woption; eval "test \"\${$as_var+set}\" = set"; }; then :
6422 $as_echo_n "(cached) " >&6
6423 else
6424 CFLAGS="$option"
6425 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6426 /* end confdefs.h. */
6429 main ()
6433 return 0;
6435 _ACEOF
6436 if ac_fn_c_try_compile "$LINENO"; then :
6437 eval "$as_acx_Woption=yes"
6438 else
6439 eval "$as_acx_Woption=no"
6441 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6444 eval ac_res=\$$as_acx_Woption
6445 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
6446 $as_echo "$ac_res" >&6; }
6447 if test `eval 'as_val=${'$as_acx_Woption'};$as_echo "$as_val"'` = yes; then :
6448 c_strict_warn="$c_strict_warn${c_strict_warn:+ }$real_option"
6450 done
6451 CFLAGS="$save_CFLAGS"
6453 # Do the check with the no- prefix removed from the warning options
6454 # since gcc silently accepts any -Wno-* option on purpose
6455 if test "$GCC" = yes; then :
6456 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC supports -pedantic -Wlong-long -Wvariadic-macros -Woverlength-strings" >&5
6457 $as_echo_n "checking whether $CC supports -pedantic -Wlong-long -Wvariadic-macros -Woverlength-strings... " >&6; }
6458 if test "${acx_cv_prog_cc_pedantic__Wlong_long__Wvariadic_macros__Woverlength_strings+set}" = set; then :
6459 $as_echo_n "(cached) " >&6
6460 else
6461 save_CFLAGS="$CFLAGS"
6462 CFLAGS="-pedantic -Wlong-long -Wvariadic-macros -Woverlength-strings"
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 acx_cv_prog_cc_pedantic__Wlong_long__Wvariadic_macros__Woverlength_strings=yes
6476 else
6477 acx_cv_prog_cc_pedantic__Wlong_long__Wvariadic_macros__Woverlength_strings=no
6479 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6480 CFLAGS="$save_CFLAGS"
6482 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $acx_cv_prog_cc_pedantic__Wlong_long__Wvariadic_macros__Woverlength_strings" >&5
6483 $as_echo "$acx_cv_prog_cc_pedantic__Wlong_long__Wvariadic_macros__Woverlength_strings" >&6; }
6484 if test $acx_cv_prog_cc_pedantic__Wlong_long__Wvariadic_macros__Woverlength_strings = yes; then :
6485 strict_warn="$strict_warn${strict_warn:+ }-pedantic -Wno-long-long -Wno-variadic-macros -Wno-overlength-strings"
6490 # Check whether --enable-werror-always was given.
6491 if test "${enable_werror_always+set}" = set; then :
6492 enableval=$enable_werror_always;
6493 else
6494 enable_werror_always=no
6497 if test $enable_werror_always = yes; then :
6498 strict_warn="$strict_warn${strict_warn:+ }-Werror"
6503 # The above macros do nothing if the compiler is not GCC. However, the
6504 # Makefile has more goo to add other flags, so these variables are used
6505 # to enable warnings only for GCC.
6506 warn_cflags=
6507 warn_cxxflags=
6508 if test "x$GCC" = "xyes"; then
6509 warn_cflags='$(GCC_WARN_CFLAGS)'
6510 warn_cxxflags='$(GCC_WARN_CXXFLAGS)'
6515 # Disable exceptions and RTTI if building with g++
6516 noexception_flags=
6517 save_CFLAGS="$CFLAGS"
6518 for real_option in -fno-exceptions -fno-rtti -fasynchronous-unwind-tables; do
6519 # Do the check with the no- prefix removed since gcc silently
6520 # accepts any -Wno-* option on purpose
6521 case $real_option in
6522 -Wno-*) option=-W`expr x$real_option : 'x-Wno-\(.*\)'` ;;
6523 *) option=$real_option ;;
6524 esac
6525 as_acx_Woption=`$as_echo "acx_cv_prog_cc_warning_$option" | $as_tr_sh`
6527 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC supports $option" >&5
6528 $as_echo_n "checking whether $CC supports $option... " >&6; }
6529 if { as_var=$as_acx_Woption; eval "test \"\${$as_var+set}\" = set"; }; then :
6530 $as_echo_n "(cached) " >&6
6531 else
6532 CFLAGS="$option"
6533 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6534 /* end confdefs.h. */
6537 main ()
6541 return 0;
6543 _ACEOF
6544 if ac_fn_c_try_compile "$LINENO"; then :
6545 eval "$as_acx_Woption=yes"
6546 else
6547 eval "$as_acx_Woption=no"
6549 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6552 eval ac_res=\$$as_acx_Woption
6553 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
6554 $as_echo "$ac_res" >&6; }
6555 if test `eval 'as_val=${'$as_acx_Woption'};$as_echo "$as_val"'` = yes; then :
6556 noexception_flags="$noexception_flags${noexception_flags:+ }$real_option"
6558 done
6559 CFLAGS="$save_CFLAGS"
6562 # Enable expensive internal checks
6563 is_release=
6564 if test x"`cat $srcdir/DEV-PHASE`" != xexperimental; then
6565 is_release=yes
6568 # Check whether --enable-checking was given.
6569 if test "${enable_checking+set}" = set; then :
6570 enableval=$enable_checking; ac_checking_flags="${enableval}"
6571 else
6573 # Determine the default checks.
6574 if test x$is_release = x ; then
6575 ac_checking_flags=yes
6576 else
6577 ac_checking_flags=release
6581 IFS="${IFS= }"; ac_save_IFS="$IFS"; IFS="$IFS,"
6582 for check in release $ac_checking_flags
6584 case $check in
6585 # these set all the flags to specific states
6586 yes) ac_assert_checking=1 ; ac_checking=1 ; ac_df_checking= ;
6587 ac_fold_checking= ; ac_gc_checking=1 ;
6588 ac_gc_always_collect= ; ac_gimple_checking=1 ; ac_rtl_checking= ;
6589 ac_rtlflag_checking=1 ; ac_runtime_checking=1 ;
6590 ac_tree_checking=1 ; ac_valgrind_checking= ;
6591 ac_types_checking=1 ;;
6592 no|none) ac_assert_checking= ; ac_checking= ; ac_df_checking= ;
6593 ac_fold_checking= ; ac_gc_checking= ;
6594 ac_gc_always_collect= ; ac_gimple_checking= ; ac_rtl_checking= ;
6595 ac_rtlflag_checking= ; ac_runtime_checking= ;
6596 ac_tree_checking= ; ac_valgrind_checking= ;
6597 ac_types_checking= ;;
6598 all) ac_assert_checking=1 ; ac_checking=1 ; ac_df_checking=1 ;
6599 ac_fold_checking=1 ; ac_gc_checking=1 ;
6600 ac_gc_always_collect=1 ; ac_gimple_checking=1 ; ac_rtl_checking=1 ;
6601 ac_rtlflag_checking=1 ; ac_runtime_checking=1 ;
6602 ac_tree_checking=1 ; ac_valgrind_checking= ;
6603 ac_types_checking=1 ;;
6604 release) ac_assert_checking=1 ; ac_checking= ; ac_df_checking= ;
6605 ac_fold_checking= ; ac_gc_checking= ;
6606 ac_gc_always_collect= ; ac_gimple_checking= ; ac_rtl_checking= ;
6607 ac_rtlflag_checking= ; ac_runtime_checking=1 ;
6608 ac_tree_checking= ; ac_valgrind_checking= ;
6609 ac_types_checking= ;;
6610 # these enable particular checks
6611 assert) ac_assert_checking=1 ;;
6612 df) ac_df_checking=1 ;;
6613 fold) ac_fold_checking=1 ;;
6614 gc) ac_gc_checking=1 ;;
6615 gcac) ac_gc_always_collect=1 ;;
6616 gimple) ac_gimple_checking=1 ;;
6617 misc) ac_checking=1 ;;
6618 rtl) ac_rtl_checking=1 ;;
6619 rtlflag) ac_rtlflag_checking=1 ;;
6620 runtime) ac_runtime_checking=1 ;;
6621 tree) ac_tree_checking=1 ;;
6622 types) ac_types_checking=1 ;;
6623 valgrind) ac_valgrind_checking=1 ;;
6624 *) as_fn_error "unknown check category $check" "$LINENO" 5 ;;
6625 esac
6626 done
6627 IFS="$ac_save_IFS"
6629 nocommon_flag=""
6630 if test x$ac_checking != x ; then
6632 $as_echo "#define ENABLE_CHECKING 1" >>confdefs.h
6634 nocommon_flag=-fno-common
6637 if test x$ac_df_checking != x ; then
6639 $as_echo "#define ENABLE_DF_CHECKING 1" >>confdefs.h
6642 if test x$ac_assert_checking != x ; then
6644 $as_echo "#define ENABLE_ASSERT_CHECKING 1" >>confdefs.h
6647 if test x$ac_gimple_checking != x ; then
6649 $as_echo "#define ENABLE_GIMPLE_CHECKING 1" >>confdefs.h
6653 if test x$ac_runtime_checking != x ; then
6655 $as_echo "#define ENABLE_RUNTIME_CHECKING 1" >>confdefs.h
6658 if test x$ac_tree_checking != x ; then
6660 $as_echo "#define ENABLE_TREE_CHECKING 1" >>confdefs.h
6662 TREEBROWSER=tree-browser.o
6663 TREECHECKING=yes
6665 if test x$ac_types_checking != x ; then
6667 $as_echo "#define ENABLE_TYPES_CHECKING 1" >>confdefs.h
6672 if test x$ac_rtl_checking != x ; then
6674 $as_echo "#define ENABLE_RTL_CHECKING 1" >>confdefs.h
6677 if test x$ac_rtlflag_checking != x ; then
6679 $as_echo "#define ENABLE_RTL_FLAG_CHECKING 1" >>confdefs.h
6682 if test x$ac_gc_checking != x ; then
6684 $as_echo "#define ENABLE_GC_CHECKING 1" >>confdefs.h
6687 if test x$ac_gc_always_collect != x ; then
6689 $as_echo "#define ENABLE_GC_ALWAYS_COLLECT 1" >>confdefs.h
6692 if test x$ac_fold_checking != x ; then
6694 $as_echo "#define ENABLE_FOLD_CHECKING 1" >>confdefs.h
6697 valgrind_path_defines=
6698 valgrind_command=
6700 ac_fn_c_check_header_mongrel "$LINENO" "valgrind.h" "ac_cv_header_valgrind_h" "$ac_includes_default"
6701 if test "x$ac_cv_header_valgrind_h" = x""yes; then :
6702 have_valgrind_h=yes
6703 else
6704 have_valgrind_h=no
6709 if test x$ac_valgrind_checking != x ; then
6710 # It is certainly possible that there's valgrind but no valgrind.h.
6711 # GCC relies on making annotations so we must have both.
6712 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for VALGRIND_DISCARD in <valgrind/memcheck.h>" >&5
6713 $as_echo_n "checking for VALGRIND_DISCARD in <valgrind/memcheck.h>... " >&6; }
6714 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6715 /* end confdefs.h. */
6716 #include <valgrind/memcheck.h>
6717 #ifndef VALGRIND_DISCARD
6718 #error VALGRIND_DISCARD not defined
6719 #endif
6720 _ACEOF
6721 if ac_fn_c_try_cpp "$LINENO"; then :
6722 gcc_cv_header_valgrind_memcheck_h=yes
6723 else
6724 gcc_cv_header_valgrind_memcheck_h=no
6726 rm -f conftest.err conftest.$ac_ext
6727 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_header_valgrind_memcheck_h" >&5
6728 $as_echo "$gcc_cv_header_valgrind_memcheck_h" >&6; }
6729 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for VALGRIND_DISCARD in <memcheck.h>" >&5
6730 $as_echo_n "checking for VALGRIND_DISCARD in <memcheck.h>... " >&6; }
6731 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6732 /* end confdefs.h. */
6733 #include <memcheck.h>
6734 #ifndef VALGRIND_DISCARD
6735 #error VALGRIND_DISCARD not defined
6736 #endif
6737 _ACEOF
6738 if ac_fn_c_try_cpp "$LINENO"; then :
6739 gcc_cv_header_memcheck_h=yes
6740 else
6741 gcc_cv_header_memcheck_h=no
6743 rm -f conftest.err conftest.$ac_ext
6744 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_header_memcheck_h" >&5
6745 $as_echo "$gcc_cv_header_memcheck_h" >&6; }
6747 # Prepare PATH_SEPARATOR.
6748 # The user is always right.
6749 if test "${PATH_SEPARATOR+set}" != set; then
6750 echo "#! /bin/sh" >conf$$.sh
6751 echo "exit 0" >>conf$$.sh
6752 chmod +x conf$$.sh
6753 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
6754 PATH_SEPARATOR=';'
6755 else
6756 PATH_SEPARATOR=:
6758 rm -f conf$$.sh
6761 # Find out how to test for executable files. Don't use a zero-byte file,
6762 # as systems may use methods other than mode bits to determine executability.
6763 cat >conf$$.file <<_ASEOF
6764 #! /bin/sh
6765 exit 0
6766 _ASEOF
6767 chmod +x conf$$.file
6768 if test -x conf$$.file >/dev/null 2>&1; then
6769 ac_executable_p="test -x"
6770 else
6771 ac_executable_p="test -f"
6773 rm -f conf$$.file
6775 # Extract the first word of "valgrind", so it can be a program name with args.
6776 set dummy valgrind; ac_word=$2
6777 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6778 $as_echo_n "checking for $ac_word... " >&6; }
6779 if test "${ac_cv_path_valgrind_path+set}" = set; then :
6780 $as_echo_n "(cached) " >&6
6781 else
6782 case "$valgrind_path" in
6783 [\\/]* | ?:[\\/]*)
6784 ac_cv_path_valgrind_path="$valgrind_path" # Let the user override the test with a path.
6787 ac_save_IFS="$IFS"; IFS=$PATH_SEPARATOR
6788 for ac_dir in $PATH; do
6789 IFS="$ac_save_IFS"
6790 test -z "$ac_dir" && ac_dir=.
6791 for ac_exec_ext in '' $ac_executable_extensions; do
6792 if $ac_executable_p "$ac_dir/$ac_word$ac_exec_ext"; then
6793 if $ac_dir/$ac_word --version | grep valgrind- >/dev/null 2>&1; then
6794 ac_cv_path_valgrind_path="$ac_dir/$ac_word$ac_exec_ext"
6795 break 2
6798 done
6799 done
6800 IFS="$ac_save_IFS"
6802 esac
6804 valgrind_path="$ac_cv_path_valgrind_path"
6805 if test -n "$valgrind_path"; then
6806 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $valgrind_path" >&5
6807 $as_echo "$valgrind_path" >&6; }
6808 else
6809 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6810 $as_echo "no" >&6; }
6813 if test "x$valgrind_path" = "x" \
6814 || (test $have_valgrind_h = no \
6815 && test $gcc_cv_header_memcheck_h = no \
6816 && test $gcc_cv_header_valgrind_memcheck_h = no); then
6817 as_fn_error "*** Can't find both valgrind and valgrind/memcheck.h, memcheck.h or valgrind.h" "$LINENO" 5
6819 valgrind_path_defines=-DVALGRIND_PATH='\"'$valgrind_path'\"'
6820 valgrind_command="$valgrind_path -q"
6822 $as_echo "#define ENABLE_VALGRIND_CHECKING 1" >>confdefs.h
6824 if test $gcc_cv_header_valgrind_memcheck_h = yes; then
6826 $as_echo "#define HAVE_VALGRIND_MEMCHECK_H 1" >>confdefs.h
6829 if test $gcc_cv_header_memcheck_h = yes; then
6831 $as_echo "#define HAVE_MEMCHECK_H 1" >>confdefs.h
6838 # Enable code coverage collection
6839 # Check whether --enable-coverage was given.
6840 if test "${enable_coverage+set}" = set; then :
6841 enableval=$enable_coverage; case "${enableval}" in
6842 yes|noopt)
6843 coverage_flags="-fprofile-arcs -ftest-coverage -frandom-seed=\$@ -O0"
6845 opt)
6846 coverage_flags="-fprofile-arcs -ftest-coverage -frandom-seed=\$@ -O2"
6849 # a.k.a. --disable-coverage
6850 coverage_flags=""
6853 as_fn_error "unknown coverage setting $enableval" "$LINENO" 5
6855 esac
6856 else
6857 coverage_flags=""
6862 # Check whether --enable-gather-detailed-mem-stats was given.
6863 if test "${enable_gather_detailed_mem_stats+set}" = set; then :
6864 enableval=$enable_gather_detailed_mem_stats;
6865 else
6866 enable_gather_detailed_mem_stats=no
6869 gather_stats=`if test $enable_gather_detailed_mem_stats != no; then echo 1; else echo 0; fi`
6871 cat >>confdefs.h <<_ACEOF
6872 #define GATHER_STATISTICS $gather_stats
6873 _ACEOF
6876 # -------------------------------
6877 # Miscenalleous configure options
6878 # -------------------------------
6880 # With stabs
6882 # Check whether --with-stabs was given.
6883 if test "${with_stabs+set}" = set; then :
6884 withval=$with_stabs; stabs="$with_stabs"
6885 else
6886 stabs=no
6890 # Determine whether or not multilibs are enabled.
6891 # Check whether --enable-multilib was given.
6892 if test "${enable_multilib+set}" = set; then :
6893 enableval=$enable_multilib;
6894 else
6895 enable_multilib=yes
6900 # Determine whether or not multiarch is enabled.
6901 # Check whether --enable-multiarch was given.
6902 if test "${enable_multiarch+set}" = set; then :
6903 enableval=$enable_multiarch; case "${enableval}" in
6904 yes|no|auto) enable_multiarch=$enableval;;
6905 *) as_fn_error "bad value ${enableval} given for --enable-multiarch option" "$LINENO" 5 ;;
6906 esac
6907 else
6908 enable_multiarch=auto
6911 if test x${enable_multiarch} = xauto; then
6912 if test x${with_native_system_header_dir} != x; then
6913 ma_msg_suffix=", disabled auto check (configured with --native-system-header-dir)"
6914 enable_multiarch=no
6916 if test x$host != x$target && test "x$with_sysroot" = x; then
6917 ma_msg_suffix=", disabled auto check (cross build configured without --with-sysroot)"
6918 enable_multiarch=no
6921 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for multiarch configuration" >&5
6922 $as_echo_n "checking for multiarch configuration... " >&6; }
6924 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_multiarch$ma_msg_suffix" >&5
6925 $as_echo "$enable_multiarch$ma_msg_suffix" >&6; }
6927 # needed for setting the multiarch name for soft-float/hard-float ABIs
6931 # Enable __cxa_atexit for C++.
6932 # Check whether --enable-__cxa_atexit was given.
6933 if test "${enable___cxa_atexit+set}" = set; then :
6934 enableval=$enable___cxa_atexit;
6938 # Enable C extension for decimal float if target supports it.
6940 # Check whether --enable-decimal-float was given.
6941 if test "${enable_decimal_float+set}" = set; then :
6942 enableval=$enable_decimal_float;
6943 case $enable_decimal_float in
6944 yes | no | bid | dpd) default_decimal_float=$enable_decimal_float ;;
6945 *) as_fn_error "'$enable_decimal_float' is an invalid value for --enable-decimal-float.
6946 Valid choices are 'yes', 'bid', 'dpd', and 'no'." "$LINENO" 5 ;;
6947 esac
6949 else
6951 case $target in
6952 powerpc*-*-linux* | i?86*-*-linux* | x86_64*-*-linux* | s390*-*-linux* | \
6953 i?86*-*-gnu* | \
6954 i?86*-*-mingw* | x86_64*-*-mingw* | \
6955 i?86*-*-cygwin* | x86_64*-*-cygwin*)
6956 enable_decimal_float=yes
6959 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: decimal float is not supported for this target, ignored" >&5
6960 $as_echo "$as_me: WARNING: decimal float is not supported for this target, ignored" >&2;}
6961 enable_decimal_float=no
6963 esac
6968 # x86's use BID format instead of DPD
6969 case x$enable_decimal_float in
6970 xyes)
6971 case $target in
6972 i?86*-*-* | x86_64*-*-*)
6973 enable_decimal_float=bid
6976 enable_decimal_float=dpd
6978 esac
6979 default_decimal_float=$enable_decimal_float
6981 xno)
6982 # ENABLE_DECIMAL_FLOAT is set to 0. But we have to have proper
6983 # dependency on libdecnumber.
6984 default_decimal_float=dpd
6986 esac
6991 dfp=`if test $enable_decimal_float != no; then echo 1; else echo 0; fi`
6993 cat >>confdefs.h <<_ACEOF
6994 #define ENABLE_DECIMAL_FLOAT $dfp
6995 _ACEOF
6998 # Use default_decimal_float for dependency.
6999 enable_decimal_float=$default_decimal_float
7001 bid=`if test $enable_decimal_float = bid; then echo 1; else echo 0; fi`
7003 cat >>confdefs.h <<_ACEOF
7004 #define ENABLE_DECIMAL_BID_FORMAT $bid
7005 _ACEOF
7008 # Enable C extension for fixed-point arithmetic.
7009 # Check whether --enable-fixed-point was given.
7010 if test "${enable_fixed_point+set}" = set; then :
7011 enableval=$enable_fixed_point;
7012 else
7014 case $target in
7015 arm*)
7016 enable_fixed_point=yes
7019 mips*-*-*)
7020 enable_fixed_point=yes
7023 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: fixed-point is not supported for this target, ignored" >&5
7024 $as_echo "$as_me: WARNING: fixed-point is not supported for this target, ignored" >&2;}
7025 enable_fixed_point=no
7027 esac
7033 fixedpoint=`if test $enable_fixed_point = yes; then echo 1; else echo 0; fi`
7035 cat >>confdefs.h <<_ACEOF
7036 #define ENABLE_FIXED_POINT $fixedpoint
7037 _ACEOF
7040 # Enable threads
7041 # Pass with no value to take the default
7042 # Pass with a value to specify a thread package
7043 # Check whether --enable-threads was given.
7044 if test "${enable_threads+set}" = set; then :
7045 enableval=$enable_threads;
7046 else
7047 enable_threads=''
7051 # Check whether --enable-tls was given.
7052 if test "${enable_tls+set}" = set; then :
7053 enableval=$enable_tls;
7054 case $enable_tls in
7055 yes | no) ;;
7056 *) as_fn_error "'$enable_tls' is an invalid value for --enable-tls.
7057 Valid choices are 'yes' and 'no'." "$LINENO" 5 ;;
7058 esac
7060 else
7061 enable_tls=''
7065 # Check whether --enable-objc-gc was given.
7066 if test "${enable_objc_gc+set}" = set; then :
7067 enableval=$enable_objc_gc; if test x$enable_objc_gc = xno; then
7068 objc_boehm_gc=''
7069 else
7070 objc_boehm_gc=1
7072 else
7073 objc_boehm_gc=''
7078 # Check whether --with-dwarf2 was given.
7079 if test "${with_dwarf2+set}" = set; then :
7080 withval=$with_dwarf2; dwarf2="$with_dwarf2"
7081 else
7082 dwarf2=no
7086 # Check whether --enable-shared was given.
7087 if test "${enable_shared+set}" = set; then :
7088 enableval=$enable_shared;
7089 case $enable_shared in
7090 yes | no) ;;
7092 enable_shared=no
7093 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:,"
7094 for pkg in $enableval; do
7095 if test "X$pkg" = "Xgcc" || test "X$pkg" = "Xlibgcc"; then
7096 enable_shared=yes
7098 done
7099 IFS="$ac_save_ifs"
7101 esac
7103 else
7104 enable_shared=yes
7110 # Check whether --with-native-system-header-dir was given.
7111 if test "${with_native_system_header_dir+set}" = set; then :
7112 withval=$with_native_system_header_dir;
7113 case ${with_native_system_header_dir} in
7114 yes|no) as_fn_error "bad value ${withval} given for --with-native-system-header-dir" "$LINENO" 5 ;;
7115 /* | [A-Za-z]:[\\/]*) ;;
7116 *) as_fn_error "--with-native-system-header-dir argument ${withval} must be an absolute directory" "$LINENO" 5 ;;
7117 esac
7118 configured_native_system_header_dir="${withval}"
7120 else
7121 configured_native_system_header_dir=
7126 # Check whether --with-build-sysroot was given.
7127 if test "${with_build_sysroot+set}" = set; then :
7128 withval=$with_build_sysroot; if test x"$withval" != x ; then
7129 SYSROOT_CFLAGS_FOR_TARGET="--sysroot=$withval"
7131 else
7132 SYSROOT_CFLAGS_FOR_TARGET=
7137 if test "x$prefix" = xNONE; then
7138 test_prefix=/usr/local
7139 else
7140 test_prefix=$prefix
7142 if test "x$exec_prefix" = xNONE; then
7143 test_exec_prefix=$test_prefix
7144 else
7145 test_exec_prefix=$exec_prefix
7149 # Check whether --with-sysroot was given.
7150 if test "${with_sysroot+set}" = set; then :
7151 withval=$with_sysroot;
7152 case ${with_sysroot} in
7153 yes) TARGET_SYSTEM_ROOT='${exec_prefix}/${target_noncanonical}/sys-root' ;;
7154 *) TARGET_SYSTEM_ROOT=$with_sysroot ;;
7155 esac
7157 TARGET_SYSTEM_ROOT_DEFINE='-DTARGET_SYSTEM_ROOT=\"$(TARGET_SYSTEM_ROOT)\"'
7158 CROSS_SYSTEM_HEADER_DIR='$(TARGET_SYSTEM_ROOT)$${sysroot_headers_suffix}$(NATIVE_SYSTEM_HEADER_DIR)'
7160 case ${TARGET_SYSTEM_ROOT} in
7161 "${test_prefix}"|"${test_prefix}/"*|\
7162 "${test_exec_prefix}"|"${test_exec_prefix}/"*|\
7163 '${prefix}'|'${prefix}/'*|\
7164 '${exec_prefix}'|'${exec_prefix}/'*)
7165 t="$TARGET_SYSTEM_ROOT_DEFINE -DTARGET_SYSTEM_ROOT_RELOCATABLE"
7166 TARGET_SYSTEM_ROOT_DEFINE="$t"
7168 esac
7170 else
7172 TARGET_SYSTEM_ROOT=
7173 TARGET_SYSTEM_ROOT_DEFINE=
7174 CROSS_SYSTEM_HEADER_DIR='$(gcc_tooldir)/sys-include'
7183 # Check whether --with-specs was given.
7184 if test "${with_specs+set}" = set; then :
7185 withval=$with_specs; CONFIGURE_SPECS=$withval
7186 else
7187 CONFIGURE_SPECS=
7195 # Check whether --with-pkgversion was given.
7196 if test "${with_pkgversion+set}" = set; then :
7197 withval=$with_pkgversion; case "$withval" in
7198 yes) as_fn_error "package version not specified" "$LINENO" 5 ;;
7199 no) PKGVERSION= ;;
7200 *) PKGVERSION="($withval) " ;;
7201 esac
7202 else
7203 PKGVERSION="(GCC) "
7211 # Check whether --with-bugurl was given.
7212 if test "${with_bugurl+set}" = set; then :
7213 withval=$with_bugurl; case "$withval" in
7214 yes) as_fn_error "bug URL not specified" "$LINENO" 5 ;;
7215 no) BUGURL=
7217 *) BUGURL="$withval"
7219 esac
7220 else
7221 BUGURL="http://gcc.gnu.org/bugs.html"
7225 case ${BUGURL} in
7227 REPORT_BUGS_TO=
7228 REPORT_BUGS_TEXI=
7231 REPORT_BUGS_TO="<$BUGURL>"
7232 REPORT_BUGS_TEXI=@uref{`echo "$BUGURL" | sed 's/@/@@/g'`}
7234 esac;
7239 # Sanity check enable_languages in case someone does not run the toplevel
7240 # configure # script.
7241 # Check whether --enable-languages was given.
7242 if test "${enable_languages+set}" = set; then :
7243 enableval=$enable_languages; case ,${enable_languages}, in
7244 ,,|,yes,)
7245 # go safe -- we cannot be much sure without the toplevel
7246 # configure's
7247 # analysis of which target libs are present and usable
7248 enable_languages=c
7250 *,all,*)
7251 as_fn_error "only the toplevel supports --enable-languages=all" "$LINENO" 5
7253 *,c,*)
7256 enable_languages=c,${enable_languages}
7258 esac
7259 else
7260 enable_languages=c
7265 # Check whether --with-multilib-list was given.
7266 if test "${with_multilib_list+set}" = set; then :
7267 withval=$with_multilib_list; :
7268 else
7269 with_multilib_list=default
7273 # -------------------------
7274 # Checks for other programs
7275 # -------------------------
7277 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
7278 $as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
7279 set x ${MAKE-make}
7280 ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
7281 if { as_var=ac_cv_prog_make_${ac_make}_set; eval "test \"\${$as_var+set}\" = set"; }; then :
7282 $as_echo_n "(cached) " >&6
7283 else
7284 cat >conftest.make <<\_ACEOF
7285 SHELL = /bin/sh
7286 all:
7287 @echo '@@@%%%=$(MAKE)=@@@%%%'
7288 _ACEOF
7289 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
7290 case `${MAKE-make} -f conftest.make 2>/dev/null` in
7291 *@@@%%%=?*=@@@%%%*)
7292 eval ac_cv_prog_make_${ac_make}_set=yes;;
7294 eval ac_cv_prog_make_${ac_make}_set=no;;
7295 esac
7296 rm -f conftest.make
7298 if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
7299 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
7300 $as_echo "yes" >&6; }
7301 SET_MAKE=
7302 else
7303 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7304 $as_echo "no" >&6; }
7305 SET_MAKE="MAKE=${MAKE-make}"
7309 # Find some useful tools
7310 for ac_prog in gawk mawk nawk awk
7312 # Extract the first word of "$ac_prog", so it can be a program name with args.
7313 set dummy $ac_prog; ac_word=$2
7314 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7315 $as_echo_n "checking for $ac_word... " >&6; }
7316 if test "${ac_cv_prog_AWK+set}" = set; then :
7317 $as_echo_n "(cached) " >&6
7318 else
7319 if test -n "$AWK"; then
7320 ac_cv_prog_AWK="$AWK" # Let the user override the test.
7321 else
7322 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7323 for as_dir in $PATH
7325 IFS=$as_save_IFS
7326 test -z "$as_dir" && as_dir=.
7327 for ac_exec_ext in '' $ac_executable_extensions; do
7328 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7329 ac_cv_prog_AWK="$ac_prog"
7330 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7331 break 2
7333 done
7334 done
7335 IFS=$as_save_IFS
7339 AWK=$ac_cv_prog_AWK
7340 if test -n "$AWK"; then
7341 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
7342 $as_echo "$AWK" >&6; }
7343 else
7344 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7345 $as_echo "no" >&6; }
7349 test -n "$AWK" && break
7350 done
7352 # We need awk to create options.c and options.h.
7353 # Bail out if it's missing.
7354 case ${AWK} in
7355 "") as_fn_error "can't build without awk, bailing out" "$LINENO" 5 ;;
7356 esac
7358 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5
7359 $as_echo_n "checking whether ln -s works... " >&6; }
7360 if test "${gcc_cv_prog_LN_S+set}" = set; then :
7361 $as_echo_n "(cached) " >&6
7362 else
7363 rm -f conftestdata_t
7364 echo >conftestdata_f
7365 if ln -s conftestdata_f conftestdata_t 2>/dev/null
7366 then
7367 gcc_cv_prog_LN_S="ln -s"
7368 else
7369 if ln conftestdata_f conftestdata_t 2>/dev/null
7370 then
7371 gcc_cv_prog_LN_S=ln
7372 else
7373 if cp -p conftestdata_f conftestdata_t 2>/dev/null
7374 then
7375 gcc_cv_prog_LN_S="cp -p"
7376 else
7377 gcc_cv_prog_LN_S=cp
7381 rm -f conftestdata_f conftestdata_t
7384 LN_S="$gcc_cv_prog_LN_S"
7385 if test "$gcc_cv_prog_LN_S" = "ln -s"; then
7386 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
7387 $as_echo "yes" >&6; }
7388 else
7389 if test "$gcc_cv_prog_LN_S" = "ln"; then
7390 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using ln" >&5
7391 $as_echo "no, using ln" >&6; }
7392 else
7393 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, and neither does ln, so using $gcc_cv_prog_LN_S" >&5
7394 $as_echo "no, and neither does ln, so using $gcc_cv_prog_LN_S" >&6; }
7398 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln works" >&5
7399 $as_echo_n "checking whether ln works... " >&6; }
7400 if test "${acx_cv_prog_LN+set}" = set; then :
7401 $as_echo_n "(cached) " >&6
7402 else
7403 rm -f conftestdata_t
7404 echo >conftestdata_f
7405 if ln conftestdata_f conftestdata_t 2>/dev/null
7406 then
7407 acx_cv_prog_LN=ln
7408 else
7409 acx_cv_prog_LN=no
7411 rm -f conftestdata_f conftestdata_t
7414 if test $acx_cv_prog_LN = no; then
7415 LN="$LN_S"
7416 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN" >&5
7417 $as_echo "no, using $LN" >&6; }
7418 else
7419 LN="$acx_cv_prog_LN"
7420 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
7421 $as_echo "yes" >&6; }
7424 if test -n "$ac_tool_prefix"; then
7425 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
7426 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
7427 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7428 $as_echo_n "checking for $ac_word... " >&6; }
7429 if test "${ac_cv_prog_RANLIB+set}" = set; then :
7430 $as_echo_n "(cached) " >&6
7431 else
7432 if test -n "$RANLIB"; then
7433 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
7434 else
7435 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7436 for as_dir in $PATH
7438 IFS=$as_save_IFS
7439 test -z "$as_dir" && as_dir=.
7440 for ac_exec_ext in '' $ac_executable_extensions; do
7441 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7442 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
7443 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7444 break 2
7446 done
7447 done
7448 IFS=$as_save_IFS
7452 RANLIB=$ac_cv_prog_RANLIB
7453 if test -n "$RANLIB"; then
7454 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
7455 $as_echo "$RANLIB" >&6; }
7456 else
7457 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7458 $as_echo "no" >&6; }
7463 if test -z "$ac_cv_prog_RANLIB"; then
7464 ac_ct_RANLIB=$RANLIB
7465 # Extract the first word of "ranlib", so it can be a program name with args.
7466 set dummy ranlib; ac_word=$2
7467 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7468 $as_echo_n "checking for $ac_word... " >&6; }
7469 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then :
7470 $as_echo_n "(cached) " >&6
7471 else
7472 if test -n "$ac_ct_RANLIB"; then
7473 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
7474 else
7475 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7476 for as_dir in $PATH
7478 IFS=$as_save_IFS
7479 test -z "$as_dir" && as_dir=.
7480 for ac_exec_ext in '' $ac_executable_extensions; do
7481 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7482 ac_cv_prog_ac_ct_RANLIB="ranlib"
7483 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7484 break 2
7486 done
7487 done
7488 IFS=$as_save_IFS
7492 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
7493 if test -n "$ac_ct_RANLIB"; then
7494 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
7495 $as_echo "$ac_ct_RANLIB" >&6; }
7496 else
7497 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7498 $as_echo "no" >&6; }
7501 if test "x$ac_ct_RANLIB" = x; then
7502 RANLIB=":"
7503 else
7504 case $cross_compiling:$ac_tool_warned in
7505 yes:)
7506 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7507 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7508 ac_tool_warned=yes ;;
7509 esac
7510 RANLIB=$ac_ct_RANLIB
7512 else
7513 RANLIB="$ac_cv_prog_RANLIB"
7516 ranlib_flags=""
7519 # Find a good install program. We prefer a C program (faster),
7520 # so one script is as good as another. But avoid the broken or
7521 # incompatible versions:
7522 # SysV /etc/install, /usr/sbin/install
7523 # SunOS /usr/etc/install
7524 # IRIX /sbin/install
7525 # AIX /bin/install
7526 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
7527 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
7528 # ./install, which can be erroneously created by make from ./install.sh.
7529 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD compatible install" >&5
7530 $as_echo_n "checking for a BSD compatible install... " >&6; }
7531 if test -z "$INSTALL"; then
7532 if test "${ac_cv_path_install+set}" = set; then :
7533 $as_echo_n "(cached) " >&6
7534 else
7535 IFS="${IFS= }"; ac_save_IFS="$IFS"; IFS="${IFS}:"
7536 for ac_dir in $PATH; do
7537 # Account for people who put trailing slashes in PATH elements.
7538 case "$ac_dir/" in
7539 /|./|.//|/etc/*|/usr/sbin/*|/usr/etc/*|/sbin/*|/usr/afsws/bin/*|/usr/ucb/*) ;;
7541 # OSF1 and SCO ODT 3.0 have their own names for install.
7542 for ac_prog in ginstall scoinst install; do
7543 if test -f $ac_dir/$ac_prog; then
7544 if test $ac_prog = install &&
7545 grep dspmsg $ac_dir/$ac_prog >/dev/null 2>&1; then
7546 # AIX install. It has an incompatible calling convention.
7547 # OSF/1 installbsd also uses dspmsg, but is usable.
7549 else
7550 ac_cv_path_install="$ac_dir/$ac_prog -c"
7551 break 2
7554 done
7556 esac
7557 done
7558 IFS="$ac_save_IFS"
7561 if test "${ac_cv_path_install+set}" = set; then
7562 INSTALL="$ac_cv_path_install"
7563 else
7564 # As a last resort, use the slow shell script. We don't cache a
7565 # path for INSTALL within a source directory, because that will
7566 # break other packages using the cache if that directory is
7567 # removed, or if the path is relative.
7568 INSTALL="$ac_install_sh"
7571 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
7572 $as_echo "$INSTALL" >&6; }
7574 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
7575 # It thinks the first close brace ends the variable substitution.
7576 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
7578 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
7581 # See if cmp has --ignore-initial.
7582 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for cmp's capabilities" >&5
7583 $as_echo_n "checking for cmp's capabilities... " >&6; }
7584 if test "${gcc_cv_prog_cmp_skip+set}" = set; then :
7585 $as_echo_n "(cached) " >&6
7586 else
7587 echo abfoo >t1
7588 echo cdfoo >t2
7589 gcc_cv_prog_cmp_skip=slowcompare
7590 if cmp --ignore-initial=2 t1 t2 > /dev/null 2>&1; then
7591 if cmp --ignore-initial=1 t1 t2 > /dev/null 2>&1; then
7593 else
7594 gcc_cv_prog_cmp_skip=gnucompare
7597 if test $gcc_cv_prog_cmp_skip = slowcompare ; then
7598 if cmp t1 t2 2 2 > /dev/null 2>&1; then
7599 if cmp t1 t2 1 1 > /dev/null 2>&1; then
7601 else
7602 gcc_cv_prog_cmp_skip=fastcompare
7606 rm t1 t2
7609 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_prog_cmp_skip" >&5
7610 $as_echo "$gcc_cv_prog_cmp_skip" >&6; }
7611 make_compare_target=$gcc_cv_prog_cmp_skip
7615 # See if we have the mktemp command.
7616 # Extract the first word of "mktemp", so it can be a program name with args.
7617 set dummy mktemp; ac_word=$2
7618 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7619 $as_echo_n "checking for $ac_word... " >&6; }
7620 if test "${ac_cv_prog_have_mktemp_command+set}" = set; then :
7621 $as_echo_n "(cached) " >&6
7622 else
7623 if test -n "$have_mktemp_command"; then
7624 ac_cv_prog_have_mktemp_command="$have_mktemp_command" # Let the user override the test.
7625 else
7626 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7627 for as_dir in $PATH
7629 IFS=$as_save_IFS
7630 test -z "$as_dir" && as_dir=.
7631 for ac_exec_ext in '' $ac_executable_extensions; do
7632 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7633 ac_cv_prog_have_mktemp_command="yes"
7634 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7635 break 2
7637 done
7638 done
7639 IFS=$as_save_IFS
7641 test -z "$ac_cv_prog_have_mktemp_command" && ac_cv_prog_have_mktemp_command="no"
7644 have_mktemp_command=$ac_cv_prog_have_mktemp_command
7645 if test -n "$have_mktemp_command"; then
7646 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_mktemp_command" >&5
7647 $as_echo "$have_mktemp_command" >&6; }
7648 else
7649 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7650 $as_echo "no" >&6; }
7655 # See if makeinfo has been installed and is modern enough
7656 # that we can use it.
7658 # Extract the first word of "makeinfo", so it can be a program name with args.
7659 set dummy makeinfo; ac_word=$2
7660 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7661 $as_echo_n "checking for $ac_word... " >&6; }
7662 if test "${ac_cv_prog_MAKEINFO+set}" = set; then :
7663 $as_echo_n "(cached) " >&6
7664 else
7665 if test -n "$MAKEINFO"; then
7666 ac_cv_prog_MAKEINFO="$MAKEINFO" # Let the user override the test.
7667 else
7668 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7669 for as_dir in $PATH
7671 IFS=$as_save_IFS
7672 test -z "$as_dir" && as_dir=.
7673 for ac_exec_ext in '' $ac_executable_extensions; do
7674 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7675 ac_cv_prog_MAKEINFO="makeinfo"
7676 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7677 break 2
7679 done
7680 done
7681 IFS=$as_save_IFS
7685 MAKEINFO=$ac_cv_prog_MAKEINFO
7686 if test -n "$MAKEINFO"; then
7687 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAKEINFO" >&5
7688 $as_echo "$MAKEINFO" >&6; }
7689 else
7690 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7691 $as_echo "no" >&6; }
7695 if test -n "$MAKEINFO"; then
7696 # Found it, now check the version.
7697 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for modern makeinfo" >&5
7698 $as_echo_n "checking for modern makeinfo... " >&6; }
7699 if test "${gcc_cv_prog_makeinfo_modern+set}" = set; then :
7700 $as_echo_n "(cached) " >&6
7701 else
7702 ac_prog_version=`eval $MAKEINFO --version 2>&1 |
7703 sed -n 's/^.*GNU texinfo.* \([0-9][0-9.]*\).*$/\1/p'`
7705 case $ac_prog_version in
7706 '') gcc_cv_prog_makeinfo_modern=no;;
7707 4.[7-9]*|4.[1-9][0-9]*|[5-9]*|[1-9][0-9]*) gcc_cv_prog_makeinfo_modern=yes;;
7708 *) gcc_cv_prog_makeinfo_modern=no;;
7709 esac
7712 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_prog_makeinfo_modern" >&5
7713 $as_echo "$gcc_cv_prog_makeinfo_modern" >&6; }
7714 else
7715 gcc_cv_prog_makeinfo_modern=no
7717 if test $gcc_cv_prog_makeinfo_modern = no; then
7718 MAKEINFO="${CONFIG_SHELL-/bin/sh} $ac_aux_dir/missing makeinfo"
7721 if test $gcc_cv_prog_makeinfo_modern = no; then
7722 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING:
7723 *** Makeinfo is missing or too old.
7724 *** Info documentation will not be built." >&5
7725 $as_echo "$as_me: WARNING:
7726 *** Makeinfo is missing or too old.
7727 *** Info documentation will not be built." >&2;}
7728 BUILD_INFO=
7729 else
7730 BUILD_INFO=info
7734 # Is pod2man recent enough to regenerate manpages?
7735 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for recent Pod::Man" >&5
7736 $as_echo_n "checking for recent Pod::Man... " >&6; }
7737 if (perl -e 'use 1.10 Pod::Man') >/dev/null 2>&1; then
7738 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
7739 $as_echo "yes" >&6; }
7740 GENERATED_MANPAGES=generated-manpages
7741 else
7742 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7743 $as_echo "no" >&6; }
7744 GENERATED_MANPAGES=
7748 MISSING="${CONFIG_SHELL-/bin/sh} $ac_aux_dir/missing"
7750 # How about lex?
7751 for ac_prog in flex
7753 # Extract the first word of "$ac_prog", so it can be a program name with args.
7754 set dummy $ac_prog; ac_word=$2
7755 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7756 $as_echo_n "checking for $ac_word... " >&6; }
7757 if test "${ac_cv_prog_FLEX+set}" = set; then :
7758 $as_echo_n "(cached) " >&6
7759 else
7760 if test -n "$FLEX"; then
7761 ac_cv_prog_FLEX="$FLEX" # Let the user override the test.
7762 else
7763 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7764 for as_dir in $PATH
7766 IFS=$as_save_IFS
7767 test -z "$as_dir" && as_dir=.
7768 for ac_exec_ext in '' $ac_executable_extensions; do
7769 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7770 ac_cv_prog_FLEX="$ac_prog"
7771 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7772 break 2
7774 done
7775 done
7776 IFS=$as_save_IFS
7780 FLEX=$ac_cv_prog_FLEX
7781 if test -n "$FLEX"; then
7782 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $FLEX" >&5
7783 $as_echo "$FLEX" >&6; }
7784 else
7785 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7786 $as_echo "no" >&6; }
7790 test -n "$FLEX" && break
7791 done
7792 test -n "$FLEX" || FLEX="$MISSING flex"
7795 # Bison?
7796 for ac_prog in bison
7798 # Extract the first word of "$ac_prog", so it can be a program name with args.
7799 set dummy $ac_prog; ac_word=$2
7800 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7801 $as_echo_n "checking for $ac_word... " >&6; }
7802 if test "${ac_cv_prog_BISON+set}" = set; then :
7803 $as_echo_n "(cached) " >&6
7804 else
7805 if test -n "$BISON"; then
7806 ac_cv_prog_BISON="$BISON" # Let the user override the test.
7807 else
7808 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7809 for as_dir in $PATH
7811 IFS=$as_save_IFS
7812 test -z "$as_dir" && as_dir=.
7813 for ac_exec_ext in '' $ac_executable_extensions; do
7814 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7815 ac_cv_prog_BISON="$ac_prog"
7816 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7817 break 2
7819 done
7820 done
7821 IFS=$as_save_IFS
7825 BISON=$ac_cv_prog_BISON
7826 if test -n "$BISON"; then
7827 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BISON" >&5
7828 $as_echo "$BISON" >&6; }
7829 else
7830 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7831 $as_echo "no" >&6; }
7835 test -n "$BISON" && break
7836 done
7837 test -n "$BISON" || BISON="$MISSING bison"
7840 # Binutils are not build modules, unlike bison/flex/makeinfo. So we
7841 # check for build == host before using them.
7843 # NM
7844 if test x${build} = x${host} && test -f $srcdir/../binutils/nm.c \
7845 && test -d ../binutils ; then
7846 NM='${objdir}/../binutils/nm-new'
7847 else
7848 # Extract the first word of "nm", so it can be a program name with args.
7849 set dummy nm; ac_word=$2
7850 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7851 $as_echo_n "checking for $ac_word... " >&6; }
7852 if test "${ac_cv_prog_NM+set}" = set; then :
7853 $as_echo_n "(cached) " >&6
7854 else
7855 if test -n "$NM"; then
7856 ac_cv_prog_NM="$NM" # Let the user override the test.
7857 else
7858 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7859 for as_dir in $PATH
7861 IFS=$as_save_IFS
7862 test -z "$as_dir" && as_dir=.
7863 for ac_exec_ext in '' $ac_executable_extensions; do
7864 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7865 ac_cv_prog_NM="nm"
7866 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7867 break 2
7869 done
7870 done
7871 IFS=$as_save_IFS
7873 test -z "$ac_cv_prog_NM" && ac_cv_prog_NM="${CONFIG_SHELL-/bin/sh} ${srcdir}/../missing nm"
7876 NM=$ac_cv_prog_NM
7877 if test -n "$NM"; then
7878 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NM" >&5
7879 $as_echo "$NM" >&6; }
7880 else
7881 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7882 $as_echo "no" >&6; }
7888 # AR
7889 if test x${build} = x${host} && test -f $srcdir/../binutils/ar.c \
7890 && test -d ../binutils ; then
7891 AR='${objdir}/../binutils/ar'
7892 else
7893 # Extract the first word of "ar", so it can be a program name with args.
7894 set dummy ar; ac_word=$2
7895 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7896 $as_echo_n "checking for $ac_word... " >&6; }
7897 if test "${ac_cv_prog_AR+set}" = set; then :
7898 $as_echo_n "(cached) " >&6
7899 else
7900 if test -n "$AR"; then
7901 ac_cv_prog_AR="$AR" # Let the user override the test.
7902 else
7903 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7904 for as_dir in $PATH
7906 IFS=$as_save_IFS
7907 test -z "$as_dir" && as_dir=.
7908 for ac_exec_ext in '' $ac_executable_extensions; do
7909 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7910 ac_cv_prog_AR="ar"
7911 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7912 break 2
7914 done
7915 done
7916 IFS=$as_save_IFS
7918 test -z "$ac_cv_prog_AR" && ac_cv_prog_AR="${CONFIG_SHELL-/bin/sh} ${srcdir}/../missing ar"
7921 AR=$ac_cv_prog_AR
7922 if test -n "$AR"; then
7923 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
7924 $as_echo "$AR" >&6; }
7925 else
7926 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7927 $as_echo "no" >&6; }
7934 # --------------------
7935 # Checks for C headers
7936 # --------------------
7938 # Need to reject headers which give warnings, so that the -Werror bootstrap
7939 # works later. *sigh* This needs to come before all header checks.
7941 ac_c_preproc_warn_flag=yes
7943 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
7944 $as_echo_n "checking for ANSI C header files... " >&6; }
7945 if test "${ac_cv_header_stdc+set}" = set; then :
7946 $as_echo_n "(cached) " >&6
7947 else
7948 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7949 /* end confdefs.h. */
7950 #include <stdlib.h>
7951 #include <stdarg.h>
7952 #include <string.h>
7953 #include <float.h>
7956 main ()
7960 return 0;
7962 _ACEOF
7963 if ac_fn_c_try_compile "$LINENO"; then :
7964 ac_cv_header_stdc=yes
7965 else
7966 ac_cv_header_stdc=no
7968 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7970 if test $ac_cv_header_stdc = yes; then
7971 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
7972 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7973 /* end confdefs.h. */
7974 #include <string.h>
7976 _ACEOF
7977 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7978 $EGREP "memchr" >/dev/null 2>&1; then :
7980 else
7981 ac_cv_header_stdc=no
7983 rm -f conftest*
7987 if test $ac_cv_header_stdc = yes; then
7988 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
7989 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7990 /* end confdefs.h. */
7991 #include <stdlib.h>
7993 _ACEOF
7994 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7995 $EGREP "free" >/dev/null 2>&1; then :
7997 else
7998 ac_cv_header_stdc=no
8000 rm -f conftest*
8004 if test $ac_cv_header_stdc = yes; then
8005 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
8006 if test "$cross_compiling" = yes; then :
8008 else
8009 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8010 /* end confdefs.h. */
8011 #include <ctype.h>
8012 #include <stdlib.h>
8013 #if ((' ' & 0x0FF) == 0x020)
8014 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
8015 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
8016 #else
8017 # define ISLOWER(c) \
8018 (('a' <= (c) && (c) <= 'i') \
8019 || ('j' <= (c) && (c) <= 'r') \
8020 || ('s' <= (c) && (c) <= 'z'))
8021 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
8022 #endif
8024 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
8026 main ()
8028 int i;
8029 for (i = 0; i < 256; i++)
8030 if (XOR (islower (i), ISLOWER (i))
8031 || toupper (i) != TOUPPER (i))
8032 return 2;
8033 return 0;
8035 _ACEOF
8036 if ac_fn_c_try_run "$LINENO"; then :
8038 else
8039 ac_cv_header_stdc=no
8041 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
8042 conftest.$ac_objext conftest.beam conftest.$ac_ext
8047 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
8048 $as_echo "$ac_cv_header_stdc" >&6; }
8049 if test $ac_cv_header_stdc = yes; then
8051 $as_echo "#define STDC_HEADERS 1" >>confdefs.h
8055 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether time.h and sys/time.h may both be included" >&5
8056 $as_echo_n "checking whether time.h and sys/time.h may both be included... " >&6; }
8057 if test "${ac_cv_header_time+set}" = set; then :
8058 $as_echo_n "(cached) " >&6
8059 else
8060 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8061 /* end confdefs.h. */
8062 #include <sys/types.h>
8063 #include <sys/time.h>
8064 #include <time.h>
8067 main ()
8069 if ((struct tm *) 0)
8070 return 0;
8072 return 0;
8074 _ACEOF
8075 if ac_fn_c_try_compile "$LINENO"; then :
8076 ac_cv_header_time=yes
8077 else
8078 ac_cv_header_time=no
8080 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8082 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_time" >&5
8083 $as_echo "$ac_cv_header_time" >&6; }
8084 if test $ac_cv_header_time = yes; then
8086 $as_echo "#define TIME_WITH_SYS_TIME 1" >>confdefs.h
8090 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether string.h and strings.h may both be included" >&5
8091 $as_echo_n "checking whether string.h and strings.h may both be included... " >&6; }
8092 if test "${gcc_cv_header_string+set}" = set; then :
8093 $as_echo_n "(cached) " >&6
8094 else
8095 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8096 /* end confdefs.h. */
8097 #include <string.h>
8098 #include <strings.h>
8100 main ()
8104 return 0;
8106 _ACEOF
8107 if ac_fn_c_try_compile "$LINENO"; then :
8108 gcc_cv_header_string=yes
8109 else
8110 gcc_cv_header_string=no
8112 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8114 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_header_string" >&5
8115 $as_echo "$gcc_cv_header_string" >&6; }
8116 if test $gcc_cv_header_string = yes; then
8118 $as_echo "#define STRING_WITH_STRINGS 1" >>confdefs.h
8122 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sys/wait.h that is POSIX.1 compatible" >&5
8123 $as_echo_n "checking for sys/wait.h that is POSIX.1 compatible... " >&6; }
8124 if test "${ac_cv_header_sys_wait_h+set}" = set; then :
8125 $as_echo_n "(cached) " >&6
8126 else
8127 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8128 /* end confdefs.h. */
8129 #include <sys/types.h>
8130 #include <sys/wait.h>
8131 #ifndef WEXITSTATUS
8132 # define WEXITSTATUS(stat_val) ((unsigned int) (stat_val) >> 8)
8133 #endif
8134 #ifndef WIFEXITED
8135 # define WIFEXITED(stat_val) (((stat_val) & 255) == 0)
8136 #endif
8139 main ()
8141 int s;
8142 wait (&s);
8143 s = WIFEXITED (s) ? WEXITSTATUS (s) : 1;
8145 return 0;
8147 _ACEOF
8148 if ac_fn_c_try_compile "$LINENO"; then :
8149 ac_cv_header_sys_wait_h=yes
8150 else
8151 ac_cv_header_sys_wait_h=no
8153 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8155 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_sys_wait_h" >&5
8156 $as_echo "$ac_cv_header_sys_wait_h" >&6; }
8157 if test $ac_cv_header_sys_wait_h = yes; then
8159 $as_echo "#define HAVE_SYS_WAIT_H 1" >>confdefs.h
8163 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether termios.h defines TIOCGWINSZ" >&5
8164 $as_echo_n "checking whether termios.h defines TIOCGWINSZ... " >&6; }
8165 if test "${ac_cv_sys_tiocgwinsz_in_termios_h+set}" = set; then :
8166 $as_echo_n "(cached) " >&6
8167 else
8168 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8169 /* end confdefs.h. */
8170 #include <sys/types.h>
8171 #include <termios.h>
8172 #ifdef TIOCGWINSZ
8174 #endif
8176 _ACEOF
8177 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
8178 $EGREP "yes" >/dev/null 2>&1; then :
8179 ac_cv_sys_tiocgwinsz_in_termios_h=yes
8180 else
8181 ac_cv_sys_tiocgwinsz_in_termios_h=no
8183 rm -f conftest*
8186 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_tiocgwinsz_in_termios_h" >&5
8187 $as_echo "$ac_cv_sys_tiocgwinsz_in_termios_h" >&6; }
8189 if test $ac_cv_sys_tiocgwinsz_in_termios_h != yes; then
8190 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether sys/ioctl.h defines TIOCGWINSZ" >&5
8191 $as_echo_n "checking whether sys/ioctl.h defines TIOCGWINSZ... " >&6; }
8192 if test "${ac_cv_sys_tiocgwinsz_in_sys_ioctl_h+set}" = set; then :
8193 $as_echo_n "(cached) " >&6
8194 else
8195 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8196 /* end confdefs.h. */
8197 #include <sys/types.h>
8198 #include <sys/ioctl.h>
8199 #ifdef TIOCGWINSZ
8201 #endif
8203 _ACEOF
8204 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
8205 $EGREP "yes" >/dev/null 2>&1; then :
8206 ac_cv_sys_tiocgwinsz_in_sys_ioctl_h=yes
8207 else
8208 ac_cv_sys_tiocgwinsz_in_sys_ioctl_h=no
8210 rm -f conftest*
8213 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_tiocgwinsz_in_sys_ioctl_h" >&5
8214 $as_echo "$ac_cv_sys_tiocgwinsz_in_sys_ioctl_h" >&6; }
8216 if test $ac_cv_sys_tiocgwinsz_in_sys_ioctl_h = yes; then
8218 $as_echo "#define GWINSZ_IN_SYS_IOCTL 1" >>confdefs.h
8223 for ac_header in limits.h stddef.h string.h strings.h stdlib.h time.h iconv.h \
8224 fcntl.h unistd.h sys/file.h sys/time.h sys/mman.h \
8225 sys/resource.h sys/param.h sys/times.h sys/stat.h \
8226 direct.h malloc.h langinfo.h ldfcn.h locale.h wchar.h
8227 do :
8228 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
8229 ac_fn_c_check_header_preproc "$LINENO" "$ac_header" "$as_ac_Header"
8230 eval as_val=\$$as_ac_Header
8231 if test "x$as_val" = x""yes; then :
8232 cat >>confdefs.h <<_ACEOF
8233 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
8234 _ACEOF
8237 done
8240 # Check for thread headers.
8241 ac_fn_c_check_header_preproc "$LINENO" "thread.h" "ac_cv_header_thread_h"
8242 if test "x$ac_cv_header_thread_h" = x""yes; then :
8243 have_thread_h=yes
8244 else
8245 have_thread_h=
8248 ac_fn_c_check_header_preproc "$LINENO" "pthread.h" "ac_cv_header_pthread_h"
8249 if test "x$ac_cv_header_pthread_h" = x""yes; then :
8250 have_pthread_h=yes
8251 else
8252 have_pthread_h=
8256 # These tests can't be done till we know if we have limits.h.
8257 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for CHAR_BIT" >&5
8258 $as_echo_n "checking for CHAR_BIT... " >&6; }
8259 if test "${gcc_cv_decl_char_bit+set}" = set; then :
8260 $as_echo_n "(cached) " >&6
8261 else
8262 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8263 /* end confdefs.h. */
8264 #ifdef HAVE_LIMITS_H
8265 #include <limits.h>
8266 #endif
8267 #ifdef CHAR_BIT
8268 found
8269 #endif
8270 _ACEOF
8271 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
8272 $EGREP "found" >/dev/null 2>&1; then :
8273 gcc_cv_decl_char_bit=yes
8274 else
8275 gcc_cv_decl_char_bit=no
8277 rm -f conftest*
8281 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_decl_char_bit" >&5
8282 $as_echo "$gcc_cv_decl_char_bit" >&6; }
8283 if test $gcc_cv_decl_char_bit = no; then
8284 { $as_echo "$as_me:${as_lineno-$LINENO}: checking number of bits in a byte" >&5
8285 $as_echo_n "checking number of bits in a byte... " >&6; }
8286 if test "${gcc_cv_c_nbby+set}" = set; then :
8287 $as_echo_n "(cached) " >&6
8288 else
8290 gcc_cv_c_nbby=
8291 while test $i -lt 65; do
8292 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8293 /* end confdefs.h. */
8296 main ()
8298 switch(0) {
8299 case (unsigned char)((unsigned long)1 << $i) == ((unsigned long)1 << $i):
8300 case (unsigned char)((unsigned long)1<<($i-1)) == ((unsigned long)1<<($i-1)):
8303 return 0;
8305 _ACEOF
8306 if ac_fn_c_try_compile "$LINENO"; then :
8307 gcc_cv_c_nbby=$i; break
8309 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8310 i=`expr $i + 1`
8311 done
8312 test -z "$gcc_cv_c_nbby" && gcc_cv_c_nbby=failed
8315 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_c_nbby" >&5
8316 $as_echo "$gcc_cv_c_nbby" >&6; }
8317 if test $gcc_cv_c_nbby = failed; then
8318 as_fn_error "cannot determine number of bits in a byte" "$LINENO" 5
8319 else
8321 cat >>confdefs.h <<_ACEOF
8322 #define CHAR_BIT $gcc_cv_c_nbby
8323 _ACEOF
8327 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether byte ordering is bigendian" >&5
8328 $as_echo_n "checking whether byte ordering is bigendian... " >&6; }
8329 if test "${ac_cv_c_bigendian+set}" = set; then :
8330 $as_echo_n "(cached) " >&6
8331 else
8332 ac_cv_c_bigendian=unknown
8333 # See if we're dealing with a universal compiler.
8334 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8335 /* end confdefs.h. */
8336 #ifndef __APPLE_CC__
8337 not a universal capable compiler
8338 #endif
8339 typedef int dummy;
8341 _ACEOF
8342 if ac_fn_c_try_compile "$LINENO"; then :
8344 # Check for potential -arch flags. It is not universal unless
8345 # there are at least two -arch flags with different values.
8346 ac_arch=
8347 ac_prev=
8348 for ac_word in $CC $CFLAGS $CPPFLAGS $LDFLAGS; do
8349 if test -n "$ac_prev"; then
8350 case $ac_word in
8351 i?86 | x86_64 | ppc | ppc64)
8352 if test -z "$ac_arch" || test "$ac_arch" = "$ac_word"; then
8353 ac_arch=$ac_word
8354 else
8355 ac_cv_c_bigendian=universal
8356 break
8359 esac
8360 ac_prev=
8361 elif test "x$ac_word" = "x-arch"; then
8362 ac_prev=arch
8364 done
8366 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8367 if test $ac_cv_c_bigendian = unknown; then
8368 # See if sys/param.h defines the BYTE_ORDER macro.
8369 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8370 /* end confdefs.h. */
8371 #include <sys/types.h>
8372 #include <sys/param.h>
8375 main ()
8377 #if ! (defined BYTE_ORDER && defined BIG_ENDIAN \
8378 && defined LITTLE_ENDIAN && BYTE_ORDER && BIG_ENDIAN \
8379 && LITTLE_ENDIAN)
8380 bogus endian macros
8381 #endif
8384 return 0;
8386 _ACEOF
8387 if ac_fn_c_try_compile "$LINENO"; then :
8388 # It does; now see whether it defined to BIG_ENDIAN or not.
8389 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8390 /* end confdefs.h. */
8391 #include <sys/types.h>
8392 #include <sys/param.h>
8395 main ()
8397 #if BYTE_ORDER != BIG_ENDIAN
8398 not big endian
8399 #endif
8402 return 0;
8404 _ACEOF
8405 if ac_fn_c_try_compile "$LINENO"; then :
8406 ac_cv_c_bigendian=yes
8407 else
8408 ac_cv_c_bigendian=no
8410 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8412 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8414 if test $ac_cv_c_bigendian = unknown; then
8415 # See if <limits.h> defines _LITTLE_ENDIAN or _BIG_ENDIAN (e.g., Solaris).
8416 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8417 /* end confdefs.h. */
8418 #include <limits.h>
8421 main ()
8423 #if ! (defined _LITTLE_ENDIAN || defined _BIG_ENDIAN)
8424 bogus endian macros
8425 #endif
8428 return 0;
8430 _ACEOF
8431 if ac_fn_c_try_compile "$LINENO"; then :
8432 # It does; now see whether it defined to _BIG_ENDIAN or not.
8433 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8434 /* end confdefs.h. */
8435 #include <limits.h>
8438 main ()
8440 #ifndef _BIG_ENDIAN
8441 not big endian
8442 #endif
8445 return 0;
8447 _ACEOF
8448 if ac_fn_c_try_compile "$LINENO"; then :
8449 ac_cv_c_bigendian=yes
8450 else
8451 ac_cv_c_bigendian=no
8453 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8455 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8457 if test $ac_cv_c_bigendian = unknown; then
8458 # Compile a test program.
8459 if test "$cross_compiling" = yes; then :
8460 # Try to guess by grepping values from an object file.
8461 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8462 /* end confdefs.h. */
8463 short int ascii_mm[] =
8464 { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 };
8465 short int ascii_ii[] =
8466 { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 };
8467 int use_ascii (int i) {
8468 return ascii_mm[i] + ascii_ii[i];
8470 short int ebcdic_ii[] =
8471 { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 };
8472 short int ebcdic_mm[] =
8473 { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 };
8474 int use_ebcdic (int i) {
8475 return ebcdic_mm[i] + ebcdic_ii[i];
8477 extern int foo;
8480 main ()
8482 return use_ascii (foo) == use_ebcdic (foo);
8484 return 0;
8486 _ACEOF
8487 if ac_fn_c_try_compile "$LINENO"; then :
8488 if grep BIGenDianSyS conftest.$ac_objext >/dev/null; then
8489 ac_cv_c_bigendian=yes
8491 if grep LiTTleEnDian conftest.$ac_objext >/dev/null ; then
8492 if test "$ac_cv_c_bigendian" = unknown; then
8493 ac_cv_c_bigendian=no
8494 else
8495 # finding both strings is unlikely to happen, but who knows?
8496 ac_cv_c_bigendian=unknown
8500 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8501 else
8502 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8503 /* end confdefs.h. */
8504 $ac_includes_default
8506 main ()
8509 /* Are we little or big endian? From Harbison&Steele. */
8510 union
8512 long int l;
8513 char c[sizeof (long int)];
8514 } u;
8515 u.l = 1;
8516 return u.c[sizeof (long int) - 1] == 1;
8519 return 0;
8521 _ACEOF
8522 if ac_fn_c_try_run "$LINENO"; then :
8523 ac_cv_c_bigendian=no
8524 else
8525 ac_cv_c_bigendian=yes
8527 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
8528 conftest.$ac_objext conftest.beam conftest.$ac_ext
8533 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_bigendian" >&5
8534 $as_echo "$ac_cv_c_bigendian" >&6; }
8535 case $ac_cv_c_bigendian in #(
8536 yes)
8537 $as_echo "#define WORDS_BIGENDIAN 1" >>confdefs.h
8538 ;; #(
8540 ;; #(
8541 universal)
8543 $as_echo "#define AC_APPLE_UNIVERSAL_BUILD 1" >>confdefs.h
8545 ;; #(
8547 as_fn_error "unknown endianness
8548 presetting ac_cv_c_bigendian=no (or yes) will help" "$LINENO" 5 ;;
8549 esac
8552 # ----------------------
8553 # Checks for C++ headers
8554 # ----------------------
8556 ac_ext=cpp
8557 ac_cpp='$CXXCPP $CPPFLAGS'
8558 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8559 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8560 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
8561 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C++ preprocessor" >&5
8562 $as_echo_n "checking how to run the C++ preprocessor... " >&6; }
8563 if test -z "$CXXCPP"; then
8564 if test "${ac_cv_prog_CXXCPP+set}" = set; then :
8565 $as_echo_n "(cached) " >&6
8566 else
8567 # Double quotes because CXXCPP needs to be expanded
8568 for CXXCPP in "$CXX -E" "/lib/cpp"
8570 ac_preproc_ok=false
8571 for ac_cxx_preproc_warn_flag in '' yes
8573 # Use a header file that comes with gcc, so configuring glibc
8574 # with a fresh cross-compiler works.
8575 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
8576 # <limits.h> exists even on freestanding compilers.
8577 # On the NeXT, cc -E runs the code through the compiler's parser,
8578 # not just through cpp. "Syntax error" is here to catch this case.
8579 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8580 /* end confdefs.h. */
8581 #ifdef __STDC__
8582 # include <limits.h>
8583 #else
8584 # include <assert.h>
8585 #endif
8586 Syntax error
8587 _ACEOF
8588 if ac_fn_cxx_try_cpp "$LINENO"; then :
8590 else
8591 # Broken: fails on valid input.
8592 continue
8594 rm -f conftest.err conftest.$ac_ext
8596 # OK, works on sane cases. Now check whether nonexistent headers
8597 # can be detected and how.
8598 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8599 /* end confdefs.h. */
8600 #include <ac_nonexistent.h>
8601 _ACEOF
8602 if ac_fn_cxx_try_cpp "$LINENO"; then :
8603 # Broken: success on invalid input.
8604 continue
8605 else
8606 # Passes both tests.
8607 ac_preproc_ok=:
8608 break
8610 rm -f conftest.err conftest.$ac_ext
8612 done
8613 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
8614 rm -f conftest.err conftest.$ac_ext
8615 if $ac_preproc_ok; then :
8616 break
8619 done
8620 ac_cv_prog_CXXCPP=$CXXCPP
8623 CXXCPP=$ac_cv_prog_CXXCPP
8624 else
8625 ac_cv_prog_CXXCPP=$CXXCPP
8627 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXXCPP" >&5
8628 $as_echo "$CXXCPP" >&6; }
8629 ac_preproc_ok=false
8630 for ac_cxx_preproc_warn_flag in '' yes
8632 # Use a header file that comes with gcc, so configuring glibc
8633 # with a fresh cross-compiler works.
8634 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
8635 # <limits.h> exists even on freestanding compilers.
8636 # On the NeXT, cc -E runs the code through the compiler's parser,
8637 # not just through cpp. "Syntax error" is here to catch this case.
8638 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8639 /* end confdefs.h. */
8640 #ifdef __STDC__
8641 # include <limits.h>
8642 #else
8643 # include <assert.h>
8644 #endif
8645 Syntax error
8646 _ACEOF
8647 if ac_fn_cxx_try_cpp "$LINENO"; then :
8649 else
8650 # Broken: fails on valid input.
8651 continue
8653 rm -f conftest.err conftest.$ac_ext
8655 # OK, works on sane cases. Now check whether nonexistent headers
8656 # can be detected and how.
8657 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8658 /* end confdefs.h. */
8659 #include <ac_nonexistent.h>
8660 _ACEOF
8661 if ac_fn_cxx_try_cpp "$LINENO"; then :
8662 # Broken: success on invalid input.
8663 continue
8664 else
8665 # Passes both tests.
8666 ac_preproc_ok=:
8667 break
8669 rm -f conftest.err conftest.$ac_ext
8671 done
8672 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
8673 rm -f conftest.err conftest.$ac_ext
8674 if $ac_preproc_ok; then :
8676 else
8677 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
8678 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
8679 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: C++ preprocessor \"$CXXCPP\" fails sanity check
8680 See \`config.log' for more details." >&5
8681 $as_echo "$as_me: WARNING: C++ preprocessor \"$CXXCPP\" fails sanity check
8682 See \`config.log' for more details." >&2;}; }
8685 ac_ext=c
8686 ac_cpp='$CPP $CPPFLAGS'
8687 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8688 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8689 ac_compiler_gnu=$ac_cv_c_compiler_gnu
8692 ac_ext=cpp
8693 ac_cpp='$CXXCPP $CPPFLAGS'
8694 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8695 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8696 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
8701 for ac_header in unordered_map
8702 do :
8703 ac_fn_cxx_check_header_preproc "$LINENO" "unordered_map" "ac_cv_header_unordered_map"
8704 if test "x$ac_cv_header_unordered_map" = x""yes; then :
8705 cat >>confdefs.h <<_ACEOF
8706 #define HAVE_UNORDERED_MAP 1
8707 _ACEOF
8710 done
8712 for ac_header in tr1/unordered_map
8713 do :
8714 ac_fn_cxx_check_header_preproc "$LINENO" "tr1/unordered_map" "ac_cv_header_tr1_unordered_map"
8715 if test "x$ac_cv_header_tr1_unordered_map" = x""yes; then :
8716 cat >>confdefs.h <<_ACEOF
8717 #define HAVE_TR1_UNORDERED_MAP 1
8718 _ACEOF
8721 done
8723 for ac_header in ext/hash_map
8724 do :
8725 ac_fn_cxx_check_header_preproc "$LINENO" "ext/hash_map" "ac_cv_header_ext_hash_map"
8726 if test "x$ac_cv_header_ext_hash_map" = x""yes; then :
8727 cat >>confdefs.h <<_ACEOF
8728 #define HAVE_EXT_HASH_MAP 1
8729 _ACEOF
8732 done
8735 ac_ext=c
8736 ac_cpp='$CPP $CPPFLAGS'
8737 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8738 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8739 ac_compiler_gnu=$ac_cv_c_compiler_gnu
8742 # --------
8743 # Dependency checking.
8744 # --------
8746 ac_ext=cpp
8747 ac_cpp='$CXXCPP $CPPFLAGS'
8748 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8749 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8750 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
8752 rm -rf .tst 2>/dev/null
8753 mkdir .tst 2>/dev/null
8754 if test -d .tst; then
8755 am__leading_dot=.
8756 else
8757 am__leading_dot=_
8759 rmdir .tst 2>/dev/null
8761 DEPDIR="${am__leading_dot}deps"
8763 ac_config_commands="$ac_config_commands depdir"
8766 ac_config_commands="$ac_config_commands gccdepdir"
8769 depcc="$CXX" am_compiler_list=
8771 am_depcomp=$ac_aux_dir/depcomp
8772 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
8773 $as_echo_n "checking dependency style of $depcc... " >&6; }
8774 if test "${am_cv_CXX_dependencies_compiler_type+set}" = set; then :
8775 $as_echo_n "(cached) " >&6
8776 else
8777 if test -f "$am_depcomp"; then
8778 # We make a subdir and do the tests there. Otherwise we can end up
8779 # making bogus files that we don't know about and never remove. For
8780 # instance it was reported that on HP-UX the gcc test will end up
8781 # making a dummy file named `D' -- because `-MD' means `put the output
8782 # in D'.
8783 mkdir conftest.dir
8784 # Copy depcomp to subdir because otherwise we won't find it if we're
8785 # using a relative directory.
8786 cp "$am_depcomp" conftest.dir
8787 cd conftest.dir
8788 # We will build objects and dependencies in a subdirectory because
8789 # it helps to detect inapplicable dependency modes. For instance
8790 # both Tru64's cc and ICC support -MD to output dependencies as a
8791 # side effect of compilation, but ICC will put the dependencies in
8792 # the current directory while Tru64 will put them in the object
8793 # directory.
8794 mkdir sub
8796 am_cv_CXX_dependencies_compiler_type=none
8797 if test "$am_compiler_list" = ""; then
8798 am_compiler_list=`sed -n 's/^\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
8800 for depmode in $am_compiler_list; do
8801 if test $depmode = none; then break; fi
8803 $as_echo "$as_me:$LINENO: trying $depmode" >&5
8804 # Setup a source with many dependencies, because some compilers
8805 # like to wrap large dependency lists on column 80 (with \), and
8806 # we should not choose a depcomp mode which is confused by this.
8808 # We need to recreate these files for each test, as the compiler may
8809 # overwrite some of them when testing with obscure command lines.
8810 # This happens at least with the AIX C compiler.
8811 : > sub/conftest.c
8812 for i in 1 2 3 4 5 6; do
8813 echo '#include "conftst'$i'.h"' >> sub/conftest.c
8814 # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
8815 # Solaris 8's {/usr,}/bin/sh.
8816 touch sub/conftst$i.h
8817 done
8818 echo "include sub/conftest.Po" > confmf
8820 # We check with `-c' and `-o' for the sake of the "dashmstdout"
8821 # mode. It turns out that the SunPro C++ compiler does not properly
8822 # handle `-M -o', and we need to detect this.
8823 depcmd="depmode=$depmode \
8824 source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \
8825 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
8826 $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c"
8827 echo "| $depcmd" | sed -e 's/ */ /g' >&5
8828 if env $depcmd > conftest.err 2>&1 &&
8829 grep sub/conftst6.h sub/conftest.Po >>conftest.err 2>&1 &&
8830 grep sub/conftest.${OBJEXT-o} sub/conftest.Po >>conftest.err 2>&1 &&
8831 ${MAKE-make} -s -f confmf >>conftest.err 2>&1; then
8832 # icc doesn't choke on unknown options, it will just issue warnings
8833 # or remarks (even with -Werror). So we grep stderr for any message
8834 # that says an option was ignored or not supported.
8835 # When given -MP, icc 7.0 and 7.1 complain thusly:
8836 # icc: Command line warning: ignoring option '-M'; no argument required
8837 # The diagnosis changed in icc 8.0:
8838 # icc: Command line remark: option '-MP' not supported
8839 if (grep 'ignoring option' conftest.err ||
8840 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
8841 am_cv_CXX_dependencies_compiler_type=$depmode
8842 $as_echo "$as_me:$LINENO: success" >&5
8843 break
8846 $as_echo "$as_me:$LINENO: failure, diagnostics are:" >&5
8847 sed -e 's/^/| /' < conftest.err >&5
8848 done
8850 cd ..
8851 rm -rf conftest.dir
8852 else
8853 am_cv_CXX_dependencies_compiler_type=none
8857 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CXX_dependencies_compiler_type" >&5
8858 $as_echo "$am_cv_CXX_dependencies_compiler_type" >&6; }
8859 if test x${am_cv_CXX_dependencies_compiler_type-none} = xnone
8860 then as_fn_error "no usable dependency style found" "$LINENO" 5
8861 else CXXDEPMODE=depmode=$am_cv_CXX_dependencies_compiler_type
8865 ac_ext=c
8866 ac_cpp='$CPP $CPPFLAGS'
8867 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8868 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8869 ac_compiler_gnu=$ac_cv_c_compiler_gnu
8872 # --------
8873 # UNSORTED
8874 # --------
8877 # These libraries may be used by collect2.
8878 # We may need a special search path to get them linked.
8879 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for collect2 libraries" >&5
8880 $as_echo_n "checking for collect2 libraries... " >&6; }
8881 if test "${gcc_cv_collect2_libs+set}" = set; then :
8882 $as_echo_n "(cached) " >&6
8883 else
8884 save_LIBS="$LIBS"
8885 for libs in '' -lld -lmld \
8886 '-L/usr/lib/cmplrs/cc2.11 -lmld' \
8887 '-L/usr/lib/cmplrs/cc3.11 -lmld'
8889 LIBS="$libs"
8890 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8891 /* end confdefs.h. */
8893 /* Override any GCC internal prototype to avoid an error.
8894 Use char because int might match the return type of a GCC
8895 builtin and then its argument prototype would still apply. */
8896 #ifdef __cplusplus
8897 extern "C"
8898 #endif
8899 char ldopen ();
8901 main ()
8903 return ldopen ();
8905 return 0;
8907 _ACEOF
8908 if ac_fn_c_try_link "$LINENO"; then :
8909 gcc_cv_collect2_libs="$libs"; break
8911 rm -f core conftest.err conftest.$ac_objext \
8912 conftest$ac_exeext conftest.$ac_ext
8913 done
8914 LIBS="$save_LIBS"
8915 test -z "$gcc_cv_collect2_libs" && gcc_cv_collect2_libs='none required'
8917 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_collect2_libs" >&5
8918 $as_echo "$gcc_cv_collect2_libs" >&6; }
8919 case $gcc_cv_collect2_libs in
8920 "none required") ;;
8921 *) COLLECT2_LIBS=$gcc_cv_collect2_libs ;;
8922 esac
8925 # When building Ada code on Alpha, we need exc_resume which is usually in
8926 # -lexc. So test for it.
8927 save_LIBS="$LIBS"
8928 LIBS=
8929 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing exc_resume" >&5
8930 $as_echo_n "checking for library containing exc_resume... " >&6; }
8931 if test "${ac_cv_search_exc_resume+set}" = set; then :
8932 $as_echo_n "(cached) " >&6
8933 else
8934 ac_func_search_save_LIBS=$LIBS
8935 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8936 /* end confdefs.h. */
8938 /* Override any GCC internal prototype to avoid an error.
8939 Use char because int might match the return type of a GCC
8940 builtin and then its argument prototype would still apply. */
8941 #ifdef __cplusplus
8942 extern "C"
8943 #endif
8944 char exc_resume ();
8946 main ()
8948 return exc_resume ();
8950 return 0;
8952 _ACEOF
8953 for ac_lib in '' exc; do
8954 if test -z "$ac_lib"; then
8955 ac_res="none required"
8956 else
8957 ac_res=-l$ac_lib
8958 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
8960 if ac_fn_c_try_link "$LINENO"; then :
8961 ac_cv_search_exc_resume=$ac_res
8963 rm -f core conftest.err conftest.$ac_objext \
8964 conftest$ac_exeext
8965 if test "${ac_cv_search_exc_resume+set}" = set; then :
8966 break
8968 done
8969 if test "${ac_cv_search_exc_resume+set}" = set; then :
8971 else
8972 ac_cv_search_exc_resume=no
8974 rm conftest.$ac_ext
8975 LIBS=$ac_func_search_save_LIBS
8977 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_exc_resume" >&5
8978 $as_echo "$ac_cv_search_exc_resume" >&6; }
8979 ac_res=$ac_cv_search_exc_resume
8980 if test "$ac_res" != no; then :
8981 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
8985 GNAT_LIBEXC="$LIBS"
8986 LIBS="$save_LIBS"
8989 # To support -mcpu=native on Solaris/SPARC, we need libkstat.
8990 save_LIBS="$LIBS"
8991 LIBS=
8992 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing kstat_open" >&5
8993 $as_echo_n "checking for library containing kstat_open... " >&6; }
8994 if test "${ac_cv_search_kstat_open+set}" = set; then :
8995 $as_echo_n "(cached) " >&6
8996 else
8997 ac_func_search_save_LIBS=$LIBS
8998 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8999 /* end confdefs.h. */
9001 /* Override any GCC internal prototype to avoid an error.
9002 Use char because int might match the return type of a GCC
9003 builtin and then its argument prototype would still apply. */
9004 #ifdef __cplusplus
9005 extern "C"
9006 #endif
9007 char kstat_open ();
9009 main ()
9011 return kstat_open ();
9013 return 0;
9015 _ACEOF
9016 for ac_lib in '' kstat; do
9017 if test -z "$ac_lib"; then
9018 ac_res="none required"
9019 else
9020 ac_res=-l$ac_lib
9021 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
9023 if ac_fn_c_try_link "$LINENO"; then :
9024 ac_cv_search_kstat_open=$ac_res
9026 rm -f core conftest.err conftest.$ac_objext \
9027 conftest$ac_exeext
9028 if test "${ac_cv_search_kstat_open+set}" = set; then :
9029 break
9031 done
9032 if test "${ac_cv_search_kstat_open+set}" = set; then :
9034 else
9035 ac_cv_search_kstat_open=no
9037 rm conftest.$ac_ext
9038 LIBS=$ac_func_search_save_LIBS
9040 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_kstat_open" >&5
9041 $as_echo "$ac_cv_search_kstat_open" >&6; }
9042 ac_res=$ac_cv_search_kstat_open
9043 if test "$ac_res" != no; then :
9044 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
9048 EXTRA_GCC_LIBS="$LIBS"
9049 LIBS="$save_LIBS"
9052 # Some systems put ldexp and frexp in libm instead of libc; assume
9053 # they're both in the same place. jcf-dump needs them.
9054 save_LIBS="$LIBS"
9055 LIBS=
9056 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing ldexp" >&5
9057 $as_echo_n "checking for library containing ldexp... " >&6; }
9058 if test "${ac_cv_search_ldexp+set}" = set; then :
9059 $as_echo_n "(cached) " >&6
9060 else
9061 ac_func_search_save_LIBS=$LIBS
9062 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9063 /* end confdefs.h. */
9065 /* Override any GCC internal prototype to avoid an error.
9066 Use char because int might match the return type of a GCC
9067 builtin and then its argument prototype would still apply. */
9068 #ifdef __cplusplus
9069 extern "C"
9070 #endif
9071 char ldexp ();
9073 main ()
9075 return ldexp ();
9077 return 0;
9079 _ACEOF
9080 for ac_lib in '' m; do
9081 if test -z "$ac_lib"; then
9082 ac_res="none required"
9083 else
9084 ac_res=-l$ac_lib
9085 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
9087 if ac_fn_c_try_link "$LINENO"; then :
9088 ac_cv_search_ldexp=$ac_res
9090 rm -f core conftest.err conftest.$ac_objext \
9091 conftest$ac_exeext
9092 if test "${ac_cv_search_ldexp+set}" = set; then :
9093 break
9095 done
9096 if test "${ac_cv_search_ldexp+set}" = set; then :
9098 else
9099 ac_cv_search_ldexp=no
9101 rm conftest.$ac_ext
9102 LIBS=$ac_func_search_save_LIBS
9104 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_ldexp" >&5
9105 $as_echo "$ac_cv_search_ldexp" >&6; }
9106 ac_res=$ac_cv_search_ldexp
9107 if test "$ac_res" != no; then :
9108 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
9112 LDEXP_LIB="$LIBS"
9113 LIBS="$save_LIBS"
9116 # Use <inttypes.h> only if it exists,
9117 # doesn't clash with <sys/types.h>, and declares intmax_t.
9118 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for inttypes.h" >&5
9119 $as_echo_n "checking for inttypes.h... " >&6; }
9120 if test "${gcc_cv_header_inttypes_h+set}" = set; then :
9121 $as_echo_n "(cached) " >&6
9122 else
9123 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9124 /* end confdefs.h. */
9125 #include <sys/types.h>
9126 #include <inttypes.h>
9128 main ()
9130 intmax_t i = -1;
9132 return 0;
9134 _ACEOF
9135 if ac_fn_c_try_compile "$LINENO"; then :
9136 gcc_cv_header_inttypes_h=yes
9137 else
9138 gcc_cv_header_inttypes_h=no
9140 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9143 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_header_inttypes_h" >&5
9144 $as_echo "$gcc_cv_header_inttypes_h" >&6; }
9145 if test $gcc_cv_header_inttypes_h = yes; then
9147 $as_echo "#define HAVE_INTTYPES_H 1" >>confdefs.h
9153 for ac_func in times clock kill getrlimit setrlimit atoll atoq \
9154 sysconf strsignal getrusage nl_langinfo \
9155 gettimeofday mbstowcs wcswidth mmap setlocale \
9156 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
9157 do :
9158 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
9159 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
9160 eval as_val=\$$as_ac_var
9161 if test "x$as_val" = x""yes; then :
9162 cat >>confdefs.h <<_ACEOF
9163 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
9164 _ACEOF
9167 done
9170 if test x$ac_cv_func_mbstowcs = xyes; then
9171 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether mbstowcs works" >&5
9172 $as_echo_n "checking whether mbstowcs works... " >&6; }
9173 if test "${gcc_cv_func_mbstowcs_works+set}" = set; then :
9174 $as_echo_n "(cached) " >&6
9175 else
9176 if test "$cross_compiling" = yes; then :
9177 gcc_cv_func_mbstowcs_works=yes
9178 else
9179 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9180 /* end confdefs.h. */
9181 #include <stdlib.h>
9182 int main()
9184 mbstowcs(0, "", 0);
9185 return 0;
9187 _ACEOF
9188 if ac_fn_c_try_run "$LINENO"; then :
9189 gcc_cv_func_mbstowcs_works=yes
9190 else
9191 gcc_cv_func_mbstowcs_works=no
9193 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
9194 conftest.$ac_objext conftest.beam conftest.$ac_ext
9198 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_func_mbstowcs_works" >&5
9199 $as_echo "$gcc_cv_func_mbstowcs_works" >&6; }
9200 if test x$gcc_cv_func_mbstowcs_works = xyes; then
9202 $as_echo "#define HAVE_WORKING_MBSTOWCS 1" >>confdefs.h
9207 ac_fn_c_check_type "$LINENO" "ssize_t" "ac_cv_type_ssize_t" "$ac_includes_default"
9208 if test "x$ac_cv_type_ssize_t" = x""yes; then :
9210 else
9212 cat >>confdefs.h <<_ACEOF
9213 #define ssize_t int
9214 _ACEOF
9218 ac_fn_c_check_type "$LINENO" "caddr_t" "ac_cv_type_caddr_t" "$ac_includes_default"
9219 if test "x$ac_cv_type_caddr_t" = x""yes; then :
9221 else
9223 cat >>confdefs.h <<_ACEOF
9224 #define caddr_t char *
9225 _ACEOF
9231 ac_fn_c_check_header_preproc "$LINENO" "sys/mman.h" "ac_cv_header_sys_mman_h"
9232 if test "x$ac_cv_header_sys_mman_h" = x""yes; then :
9233 gcc_header_sys_mman_h=yes
9234 else
9235 gcc_header_sys_mman_h=no
9238 ac_fn_c_check_func "$LINENO" "mmap" "ac_cv_func_mmap"
9239 if test "x$ac_cv_func_mmap" = x""yes; then :
9240 gcc_func_mmap=yes
9241 else
9242 gcc_func_mmap=no
9245 if test "$gcc_header_sys_mman_h" != yes \
9246 || test "$gcc_func_mmap" != yes; then
9247 gcc_cv_func_mmap_file=no
9248 gcc_cv_func_mmap_dev_zero=no
9249 gcc_cv_func_mmap_anon=no
9250 else
9251 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether read-only mmap of a plain file works" >&5
9252 $as_echo_n "checking whether read-only mmap of a plain file works... " >&6; }
9253 if test "${gcc_cv_func_mmap_file+set}" = set; then :
9254 $as_echo_n "(cached) " >&6
9255 else
9256 # Add a system to this blacklist if
9257 # mmap(0, stat_size, PROT_READ, MAP_PRIVATE, fd, 0) doesn't return a
9258 # memory area containing the same data that you'd get if you applied
9259 # read() to the same fd. The only system known to have a problem here
9260 # is VMS, where text files have record structure.
9261 case "$host_os" in
9262 *vms* | ultrix*)
9263 gcc_cv_func_mmap_file=no ;;
9265 gcc_cv_func_mmap_file=yes;;
9266 esac
9268 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_func_mmap_file" >&5
9269 $as_echo "$gcc_cv_func_mmap_file" >&6; }
9270 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether mmap from /dev/zero works" >&5
9271 $as_echo_n "checking whether mmap from /dev/zero works... " >&6; }
9272 if test "${gcc_cv_func_mmap_dev_zero+set}" = set; then :
9273 $as_echo_n "(cached) " >&6
9274 else
9275 # Add a system to this blacklist if it has mmap() but /dev/zero
9276 # does not exist, or if mmapping /dev/zero does not give anonymous
9277 # zeroed pages with both the following properties:
9278 # 1. If you map N consecutive pages in with one call, and then
9279 # unmap any subset of those pages, the pages that were not
9280 # explicitly unmapped remain accessible.
9281 # 2. If you map two adjacent blocks of memory and then unmap them
9282 # both at once, they must both go away.
9283 # Systems known to be in this category are Windows (all variants),
9284 # VMS, and Darwin.
9285 case "$host_os" in
9286 *vms* | cygwin* | pe | mingw* | darwin* | ultrix* | hpux10* | hpux11.00)
9287 gcc_cv_func_mmap_dev_zero=no ;;
9289 gcc_cv_func_mmap_dev_zero=yes;;
9290 esac
9292 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_func_mmap_dev_zero" >&5
9293 $as_echo "$gcc_cv_func_mmap_dev_zero" >&6; }
9295 # Unlike /dev/zero, the MAP_ANON(YMOUS) defines can be probed for.
9296 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for MAP_ANON(YMOUS)" >&5
9297 $as_echo_n "checking for MAP_ANON(YMOUS)... " >&6; }
9298 if test "${gcc_cv_decl_map_anon+set}" = set; then :
9299 $as_echo_n "(cached) " >&6
9300 else
9301 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9302 /* end confdefs.h. */
9303 #include <sys/types.h>
9304 #include <sys/mman.h>
9305 #include <unistd.h>
9307 #ifndef MAP_ANONYMOUS
9308 #define MAP_ANONYMOUS MAP_ANON
9309 #endif
9312 main ()
9314 int n = MAP_ANONYMOUS;
9316 return 0;
9318 _ACEOF
9319 if ac_fn_c_try_compile "$LINENO"; then :
9320 gcc_cv_decl_map_anon=yes
9321 else
9322 gcc_cv_decl_map_anon=no
9324 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9326 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_decl_map_anon" >&5
9327 $as_echo "$gcc_cv_decl_map_anon" >&6; }
9329 if test $gcc_cv_decl_map_anon = no; then
9330 gcc_cv_func_mmap_anon=no
9331 else
9332 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether mmap with MAP_ANON(YMOUS) works" >&5
9333 $as_echo_n "checking whether mmap with MAP_ANON(YMOUS) works... " >&6; }
9334 if test "${gcc_cv_func_mmap_anon+set}" = set; then :
9335 $as_echo_n "(cached) " >&6
9336 else
9337 # Add a system to this blacklist if it has mmap() and MAP_ANON or
9338 # MAP_ANONYMOUS, but using mmap(..., MAP_PRIVATE|MAP_ANONYMOUS, -1, 0)
9339 # doesn't give anonymous zeroed pages with the same properties listed
9340 # above for use of /dev/zero.
9341 # Systems known to be in this category are Windows, VMS, and SCO Unix.
9342 case "$host_os" in
9343 *vms* | cygwin* | pe | mingw* | sco* | udk* )
9344 gcc_cv_func_mmap_anon=no ;;
9346 gcc_cv_func_mmap_anon=yes;;
9347 esac
9349 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_func_mmap_anon" >&5
9350 $as_echo "$gcc_cv_func_mmap_anon" >&6; }
9354 if test $gcc_cv_func_mmap_file = yes; then
9356 $as_echo "#define HAVE_MMAP_FILE 1" >>confdefs.h
9359 if test $gcc_cv_func_mmap_dev_zero = yes; then
9361 $as_echo "#define HAVE_MMAP_DEV_ZERO 1" >>confdefs.h
9364 if test $gcc_cv_func_mmap_anon = yes; then
9366 $as_echo "#define HAVE_MMAP_ANON 1" >>confdefs.h
9371 case "${host}" in
9372 *-*-*vms*)
9373 # Under VMS, vfork works very differently than on Unix. The standard test
9374 # won't work, and it isn't easily adaptable. It makes more sense to
9375 # just force it.
9376 ac_cv_func_vfork_works=yes
9378 esac
9379 ac_fn_c_check_type "$LINENO" "pid_t" "ac_cv_type_pid_t" "$ac_includes_default"
9380 if test "x$ac_cv_type_pid_t" = x""yes; then :
9382 else
9384 cat >>confdefs.h <<_ACEOF
9385 #define pid_t int
9386 _ACEOF
9390 for ac_header in vfork.h
9391 do :
9392 ac_fn_c_check_header_preproc "$LINENO" "vfork.h" "ac_cv_header_vfork_h"
9393 if test "x$ac_cv_header_vfork_h" = x""yes; then :
9394 cat >>confdefs.h <<_ACEOF
9395 #define HAVE_VFORK_H 1
9396 _ACEOF
9399 done
9401 for ac_func in fork vfork
9402 do :
9403 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
9404 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
9405 eval as_val=\$$as_ac_var
9406 if test "x$as_val" = x""yes; then :
9407 cat >>confdefs.h <<_ACEOF
9408 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
9409 _ACEOF
9412 done
9414 if test "x$ac_cv_func_fork" = xyes; then
9415 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working fork" >&5
9416 $as_echo_n "checking for working fork... " >&6; }
9417 if test "${ac_cv_func_fork_works+set}" = set; then :
9418 $as_echo_n "(cached) " >&6
9419 else
9420 if test "$cross_compiling" = yes; then :
9421 ac_cv_func_fork_works=cross
9422 else
9423 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9424 /* end confdefs.h. */
9425 $ac_includes_default
9427 main ()
9430 /* By Ruediger Kuhlmann. */
9431 return fork () < 0;
9434 return 0;
9436 _ACEOF
9437 if ac_fn_c_try_run "$LINENO"; then :
9438 ac_cv_func_fork_works=yes
9439 else
9440 ac_cv_func_fork_works=no
9442 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
9443 conftest.$ac_objext conftest.beam conftest.$ac_ext
9447 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_fork_works" >&5
9448 $as_echo "$ac_cv_func_fork_works" >&6; }
9450 else
9451 ac_cv_func_fork_works=$ac_cv_func_fork
9453 if test "x$ac_cv_func_fork_works" = xcross; then
9454 case $host in
9455 *-*-amigaos* | *-*-msdosdjgpp*)
9456 # Override, as these systems have only a dummy fork() stub
9457 ac_cv_func_fork_works=no
9460 ac_cv_func_fork_works=yes
9462 esac
9463 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: result $ac_cv_func_fork_works guessed because of cross compilation" >&5
9464 $as_echo "$as_me: WARNING: result $ac_cv_func_fork_works guessed because of cross compilation" >&2;}
9466 ac_cv_func_vfork_works=$ac_cv_func_vfork
9467 if test "x$ac_cv_func_vfork" = xyes; then
9468 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working vfork" >&5
9469 $as_echo_n "checking for working vfork... " >&6; }
9470 if test "${ac_cv_func_vfork_works+set}" = set; then :
9471 $as_echo_n "(cached) " >&6
9472 else
9473 if test "$cross_compiling" = yes; then :
9474 ac_cv_func_vfork_works=cross
9475 else
9476 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9477 /* end confdefs.h. */
9478 /* Thanks to Paul Eggert for this test. */
9479 $ac_includes_default
9480 #include <sys/wait.h>
9481 #ifdef HAVE_VFORK_H
9482 # include <vfork.h>
9483 #endif
9484 /* On some sparc systems, changes by the child to local and incoming
9485 argument registers are propagated back to the parent. The compiler
9486 is told about this with #include <vfork.h>, but some compilers
9487 (e.g. gcc -O) don't grok <vfork.h>. Test for this by using a
9488 static variable whose address is put into a register that is
9489 clobbered by the vfork. */
9490 static void
9491 #ifdef __cplusplus
9492 sparc_address_test (int arg)
9493 # else
9494 sparc_address_test (arg) int arg;
9495 #endif
9497 static pid_t child;
9498 if (!child) {
9499 child = vfork ();
9500 if (child < 0) {
9501 perror ("vfork");
9502 _exit(2);
9504 if (!child) {
9505 arg = getpid();
9506 write(-1, "", 0);
9507 _exit (arg);
9513 main ()
9515 pid_t parent = getpid ();
9516 pid_t child;
9518 sparc_address_test (0);
9520 child = vfork ();
9522 if (child == 0) {
9523 /* Here is another test for sparc vfork register problems. This
9524 test uses lots of local variables, at least as many local
9525 variables as main has allocated so far including compiler
9526 temporaries. 4 locals are enough for gcc 1.40.3 on a Solaris
9527 4.1.3 sparc, but we use 8 to be safe. A buggy compiler should
9528 reuse the register of parent for one of the local variables,
9529 since it will think that parent can't possibly be used any more
9530 in this routine. Assigning to the local variable will thus
9531 munge parent in the parent process. */
9532 pid_t
9533 p = getpid(), p1 = getpid(), p2 = getpid(), p3 = getpid(),
9534 p4 = getpid(), p5 = getpid(), p6 = getpid(), p7 = getpid();
9535 /* Convince the compiler that p..p7 are live; otherwise, it might
9536 use the same hardware register for all 8 local variables. */
9537 if (p != p1 || p != p2 || p != p3 || p != p4
9538 || p != p5 || p != p6 || p != p7)
9539 _exit(1);
9541 /* On some systems (e.g. IRIX 3.3), vfork doesn't separate parent
9542 from child file descriptors. If the child closes a descriptor
9543 before it execs or exits, this munges the parent's descriptor
9544 as well. Test for this by closing stdout in the child. */
9545 _exit(close(fileno(stdout)) != 0);
9546 } else {
9547 int status;
9548 struct stat st;
9550 while (wait(&status) != child)
9552 return (
9553 /* Was there some problem with vforking? */
9554 child < 0
9556 /* Did the child fail? (This shouldn't happen.) */
9557 || status
9559 /* Did the vfork/compiler bug occur? */
9560 || parent != getpid()
9562 /* Did the file descriptor bug occur? */
9563 || fstat(fileno(stdout), &st) != 0
9567 _ACEOF
9568 if ac_fn_c_try_run "$LINENO"; then :
9569 ac_cv_func_vfork_works=yes
9570 else
9571 ac_cv_func_vfork_works=no
9573 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
9574 conftest.$ac_objext conftest.beam conftest.$ac_ext
9578 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_vfork_works" >&5
9579 $as_echo "$ac_cv_func_vfork_works" >&6; }
9582 if test "x$ac_cv_func_fork_works" = xcross; then
9583 ac_cv_func_vfork_works=$ac_cv_func_vfork
9584 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: result $ac_cv_func_vfork_works guessed because of cross compilation" >&5
9585 $as_echo "$as_me: WARNING: result $ac_cv_func_vfork_works guessed because of cross compilation" >&2;}
9588 if test "x$ac_cv_func_vfork_works" = xyes; then
9590 $as_echo "#define HAVE_WORKING_VFORK 1" >>confdefs.h
9592 else
9594 $as_echo "#define vfork fork" >>confdefs.h
9597 if test "x$ac_cv_func_fork_works" = xyes; then
9599 $as_echo "#define HAVE_WORKING_FORK 1" >>confdefs.h
9604 # g++ on Solaris 10+ defines _XOPEN_SOURCE=600, which exposes a different
9605 # iconv() prototype.
9606 ac_ext=cpp
9607 ac_cpp='$CXXCPP $CPPFLAGS'
9608 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
9609 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
9610 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
9613 if test "X$prefix" = "XNONE"; then
9614 acl_final_prefix="$ac_default_prefix"
9615 else
9616 acl_final_prefix="$prefix"
9618 if test "X$exec_prefix" = "XNONE"; then
9619 acl_final_exec_prefix='${prefix}'
9620 else
9621 acl_final_exec_prefix="$exec_prefix"
9623 acl_save_prefix="$prefix"
9624 prefix="$acl_final_prefix"
9625 eval acl_final_exec_prefix=\"$acl_final_exec_prefix\"
9626 prefix="$acl_save_prefix"
9629 # Check whether --with-gnu-ld was given.
9630 if test "${with_gnu_ld+set}" = set; then :
9631 withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
9632 else
9633 with_gnu_ld=no
9636 # Prepare PATH_SEPARATOR.
9637 # The user is always right.
9638 if test "${PATH_SEPARATOR+set}" != set; then
9639 echo "#! /bin/sh" >conf$$.sh
9640 echo "exit 0" >>conf$$.sh
9641 chmod +x conf$$.sh
9642 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
9643 PATH_SEPARATOR=';'
9644 else
9645 PATH_SEPARATOR=:
9647 rm -f conf$$.sh
9649 ac_prog=ld
9650 if test "$GCC" = yes; then
9651 # Check if gcc -print-prog-name=ld gives a path.
9652 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by GCC" >&5
9653 $as_echo_n "checking for ld used by GCC... " >&6; }
9654 case $host in
9655 *-*-mingw*)
9656 # gcc leaves a trailing carriage return which upsets mingw
9657 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
9659 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
9660 esac
9661 case $ac_prog in
9662 # Accept absolute paths.
9663 [\\/]* | [A-Za-z]:[\\/]*)
9664 re_direlt='/[^/][^/]*/\.\./'
9665 # Canonicalize the path of ld
9666 ac_prog=`echo $ac_prog| sed 's%\\\\%/%g'`
9667 while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
9668 ac_prog=`echo $ac_prog| sed "s%$re_direlt%/%"`
9669 done
9670 test -z "$LD" && LD="$ac_prog"
9673 # If it fails, then pretend we aren't using GCC.
9674 ac_prog=ld
9677 # If it is relative, then search for the first ld in PATH.
9678 with_gnu_ld=unknown
9680 esac
9681 elif test "$with_gnu_ld" = yes; then
9682 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
9683 $as_echo_n "checking for GNU ld... " >&6; }
9684 else
9685 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
9686 $as_echo_n "checking for non-GNU ld... " >&6; }
9688 if test "${acl_cv_path_LD+set}" = set; then :
9689 $as_echo_n "(cached) " >&6
9690 else
9691 if test -z "$LD"; then
9692 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}${PATH_SEPARATOR-:}"
9693 for ac_dir in $PATH; do
9694 test -z "$ac_dir" && ac_dir=.
9695 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
9696 acl_cv_path_LD="$ac_dir/$ac_prog"
9697 # Check to see if the program is GNU ld. I'd rather use --version,
9698 # but apparently some GNU ld's only accept -v.
9699 # Break only if it was the GNU/non-GNU ld that we prefer.
9700 if "$acl_cv_path_LD" -v 2>&1 < /dev/null | egrep '(GNU|with BFD)' > /dev/null; then
9701 test "$with_gnu_ld" != no && break
9702 else
9703 test "$with_gnu_ld" != yes && break
9706 done
9707 IFS="$ac_save_ifs"
9708 else
9709 acl_cv_path_LD="$LD" # Let the user override the test with a path.
9713 LD="$acl_cv_path_LD"
9714 if test -n "$LD"; then
9715 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
9716 $as_echo "$LD" >&6; }
9717 else
9718 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9719 $as_echo "no" >&6; }
9721 test -z "$LD" && as_fn_error "no acceptable ld found in \$PATH" "$LINENO" 5
9722 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
9723 $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
9724 if test "${acl_cv_prog_gnu_ld+set}" = set; then :
9725 $as_echo_n "(cached) " >&6
9726 else
9727 # I'd rather use --version here, but apparently some GNU ld's only accept -v.
9728 if $LD -v 2>&1 </dev/null | egrep '(GNU|with BFD)' 1>&5; then
9729 acl_cv_prog_gnu_ld=yes
9730 else
9731 acl_cv_prog_gnu_ld=no
9734 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $acl_cv_prog_gnu_ld" >&5
9735 $as_echo "$acl_cv_prog_gnu_ld" >&6; }
9736 with_gnu_ld=$acl_cv_prog_gnu_ld
9740 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shared library run path origin" >&5
9741 $as_echo_n "checking for shared library run path origin... " >&6; }
9742 if test "${acl_cv_rpath+set}" = set; then :
9743 $as_echo_n "(cached) " >&6
9744 else
9746 CC="$CC" GCC="$GCC" LDFLAGS="$LDFLAGS" LD="$LD" with_gnu_ld="$with_gnu_ld" \
9747 ${CONFIG_SHELL-/bin/sh} "$ac_aux_dir/config.rpath" "$host" > conftest.sh
9748 . ./conftest.sh
9749 rm -f ./conftest.sh
9750 acl_cv_rpath=done
9753 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $acl_cv_rpath" >&5
9754 $as_echo "$acl_cv_rpath" >&6; }
9755 wl="$acl_cv_wl"
9756 libext="$acl_cv_libext"
9757 shlibext="$acl_cv_shlibext"
9758 hardcode_libdir_flag_spec="$acl_cv_hardcode_libdir_flag_spec"
9759 hardcode_libdir_separator="$acl_cv_hardcode_libdir_separator"
9760 hardcode_direct="$acl_cv_hardcode_direct"
9761 hardcode_minus_L="$acl_cv_hardcode_minus_L"
9762 # Check whether --enable-rpath was given.
9763 if test "${enable_rpath+set}" = set; then :
9764 enableval=$enable_rpath; :
9765 else
9766 enable_rpath=yes
9776 use_additional=yes
9778 acl_save_prefix="$prefix"
9779 prefix="$acl_final_prefix"
9780 acl_save_exec_prefix="$exec_prefix"
9781 exec_prefix="$acl_final_exec_prefix"
9783 eval additional_includedir=\"$includedir\"
9784 eval additional_libdir=\"$libdir\"
9786 exec_prefix="$acl_save_exec_prefix"
9787 prefix="$acl_save_prefix"
9790 # Check whether --with-libiconv-prefix was given.
9791 if test "${with_libiconv_prefix+set}" = set; then :
9792 withval=$with_libiconv_prefix;
9793 if test "X$withval" = "Xno"; then
9794 use_additional=no
9795 else
9796 if test "X$withval" = "X"; then
9798 acl_save_prefix="$prefix"
9799 prefix="$acl_final_prefix"
9800 acl_save_exec_prefix="$exec_prefix"
9801 exec_prefix="$acl_final_exec_prefix"
9803 eval additional_includedir=\"$includedir\"
9804 eval additional_libdir=\"$libdir\"
9806 exec_prefix="$acl_save_exec_prefix"
9807 prefix="$acl_save_prefix"
9809 else
9810 additional_includedir="$withval/include"
9811 additional_libdir="$withval/lib"
9817 LIBICONV=
9818 LTLIBICONV=
9819 INCICONV=
9820 rpathdirs=
9821 ltrpathdirs=
9822 names_already_handled=
9823 names_next_round='iconv '
9824 while test -n "$names_next_round"; do
9825 names_this_round="$names_next_round"
9826 names_next_round=
9827 for name in $names_this_round; do
9828 already_handled=
9829 for n in $names_already_handled; do
9830 if test "$n" = "$name"; then
9831 already_handled=yes
9832 break
9834 done
9835 if test -z "$already_handled"; then
9836 names_already_handled="$names_already_handled $name"
9837 uppername=`echo "$name" | sed -e 'y|abcdefghijklmnopqrstuvwxyz./-|ABCDEFGHIJKLMNOPQRSTUVWXYZ___|'`
9838 eval value=\"\$HAVE_LIB$uppername\"
9839 if test -n "$value"; then
9840 if test "$value" = yes; then
9841 eval value=\"\$LIB$uppername\"
9842 test -z "$value" || LIBICONV="${LIBICONV}${LIBICONV:+ }$value"
9843 eval value=\"\$LTLIB$uppername\"
9844 test -z "$value" || LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }$value"
9845 else
9848 else
9849 found_dir=
9850 found_la=
9851 found_so=
9852 found_a=
9853 if test $use_additional = yes; then
9854 if test -n "$shlibext" && test -f "$additional_libdir/lib$name.$shlibext"; then
9855 found_dir="$additional_libdir"
9856 found_so="$additional_libdir/lib$name.$shlibext"
9857 if test -f "$additional_libdir/lib$name.la"; then
9858 found_la="$additional_libdir/lib$name.la"
9860 else
9861 if test -f "$additional_libdir/lib$name.$libext"; then
9862 found_dir="$additional_libdir"
9863 found_a="$additional_libdir/lib$name.$libext"
9864 if test -f "$additional_libdir/lib$name.la"; then
9865 found_la="$additional_libdir/lib$name.la"
9870 if test "X$found_dir" = "X"; then
9871 for x in $LDFLAGS $LTLIBICONV; do
9873 acl_save_prefix="$prefix"
9874 prefix="$acl_final_prefix"
9875 acl_save_exec_prefix="$exec_prefix"
9876 exec_prefix="$acl_final_exec_prefix"
9877 eval x=\"$x\"
9878 exec_prefix="$acl_save_exec_prefix"
9879 prefix="$acl_save_prefix"
9881 case "$x" in
9882 -L*)
9883 dir=`echo "X$x" | sed -e 's/^X-L//'`
9884 if test -n "$shlibext" && test -f "$dir/lib$name.$shlibext"; then
9885 found_dir="$dir"
9886 found_so="$dir/lib$name.$shlibext"
9887 if test -f "$dir/lib$name.la"; then
9888 found_la="$dir/lib$name.la"
9890 else
9891 if test -f "$dir/lib$name.$libext"; then
9892 found_dir="$dir"
9893 found_a="$dir/lib$name.$libext"
9894 if test -f "$dir/lib$name.la"; then
9895 found_la="$dir/lib$name.la"
9900 esac
9901 if test "X$found_dir" != "X"; then
9902 break
9904 done
9906 if test "X$found_dir" != "X"; then
9907 LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-L$found_dir -l$name"
9908 if test "X$found_so" != "X"; then
9909 if test "$enable_rpath" = no || test "X$found_dir" = "X/usr/lib"; then
9910 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
9911 else
9912 haveit=
9913 for x in $ltrpathdirs; do
9914 if test "X$x" = "X$found_dir"; then
9915 haveit=yes
9916 break
9918 done
9919 if test -z "$haveit"; then
9920 ltrpathdirs="$ltrpathdirs $found_dir"
9922 if test "$hardcode_direct" = yes; then
9923 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
9924 else
9925 if test -n "$hardcode_libdir_flag_spec" && test "$hardcode_minus_L" = no; then
9926 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
9927 haveit=
9928 for x in $rpathdirs; do
9929 if test "X$x" = "X$found_dir"; then
9930 haveit=yes
9931 break
9933 done
9934 if test -z "$haveit"; then
9935 rpathdirs="$rpathdirs $found_dir"
9937 else
9938 haveit=
9939 for x in $LDFLAGS $LIBICONV; do
9941 acl_save_prefix="$prefix"
9942 prefix="$acl_final_prefix"
9943 acl_save_exec_prefix="$exec_prefix"
9944 exec_prefix="$acl_final_exec_prefix"
9945 eval x=\"$x\"
9946 exec_prefix="$acl_save_exec_prefix"
9947 prefix="$acl_save_prefix"
9949 if test "X$x" = "X-L$found_dir"; then
9950 haveit=yes
9951 break
9953 done
9954 if test -z "$haveit"; then
9955 LIBICONV="${LIBICONV}${LIBICONV:+ }-L$found_dir"
9957 if test "$hardcode_minus_L" != no; then
9958 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
9959 else
9960 LIBICONV="${LIBICONV}${LIBICONV:+ }-l$name"
9965 else
9966 if test "X$found_a" != "X"; then
9967 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_a"
9968 else
9969 LIBICONV="${LIBICONV}${LIBICONV:+ }-L$found_dir -l$name"
9972 additional_includedir=
9973 case "$found_dir" in
9974 */lib | */lib/)
9975 basedir=`echo "X$found_dir" | sed -e 's,^X,,' -e 's,/lib/*$,,'`
9976 additional_includedir="$basedir/include"
9978 esac
9979 if test "X$additional_includedir" != "X"; then
9980 if test "X$additional_includedir" != "X/usr/include"; then
9981 haveit=
9982 if test "X$additional_includedir" = "X/usr/local/include"; then
9983 if test -n "$GCC"; then
9984 case $host_os in
9985 linux*) haveit=yes;;
9986 esac
9989 if test -z "$haveit"; then
9990 for x in $CPPFLAGS $INCICONV; do
9992 acl_save_prefix="$prefix"
9993 prefix="$acl_final_prefix"
9994 acl_save_exec_prefix="$exec_prefix"
9995 exec_prefix="$acl_final_exec_prefix"
9996 eval x=\"$x\"
9997 exec_prefix="$acl_save_exec_prefix"
9998 prefix="$acl_save_prefix"
10000 if test "X$x" = "X-I$additional_includedir"; then
10001 haveit=yes
10002 break
10004 done
10005 if test -z "$haveit"; then
10006 if test -d "$additional_includedir"; then
10007 INCICONV="${INCICONV}${INCICONV:+ }-I$additional_includedir"
10013 if test -n "$found_la"; then
10014 save_libdir="$libdir"
10015 case "$found_la" in
10016 */* | *\\*) . "$found_la" ;;
10017 *) . "./$found_la" ;;
10018 esac
10019 libdir="$save_libdir"
10020 for dep in $dependency_libs; do
10021 case "$dep" in
10022 -L*)
10023 additional_libdir=`echo "X$dep" | sed -e 's/^X-L//'`
10024 if test "X$additional_libdir" != "X/usr/lib"; then
10025 haveit=
10026 if test "X$additional_libdir" = "X/usr/local/lib"; then
10027 if test -n "$GCC"; then
10028 case $host_os in
10029 linux*) haveit=yes;;
10030 esac
10033 if test -z "$haveit"; then
10034 haveit=
10035 for x in $LDFLAGS $LIBICONV; do
10037 acl_save_prefix="$prefix"
10038 prefix="$acl_final_prefix"
10039 acl_save_exec_prefix="$exec_prefix"
10040 exec_prefix="$acl_final_exec_prefix"
10041 eval x=\"$x\"
10042 exec_prefix="$acl_save_exec_prefix"
10043 prefix="$acl_save_prefix"
10045 if test "X$x" = "X-L$additional_libdir"; then
10046 haveit=yes
10047 break
10049 done
10050 if test -z "$haveit"; then
10051 if test -d "$additional_libdir"; then
10052 LIBICONV="${LIBICONV}${LIBICONV:+ }-L$additional_libdir"
10055 haveit=
10056 for x in $LDFLAGS $LTLIBICONV; do
10058 acl_save_prefix="$prefix"
10059 prefix="$acl_final_prefix"
10060 acl_save_exec_prefix="$exec_prefix"
10061 exec_prefix="$acl_final_exec_prefix"
10062 eval x=\"$x\"
10063 exec_prefix="$acl_save_exec_prefix"
10064 prefix="$acl_save_prefix"
10066 if test "X$x" = "X-L$additional_libdir"; then
10067 haveit=yes
10068 break
10070 done
10071 if test -z "$haveit"; then
10072 if test -d "$additional_libdir"; then
10073 LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-L$additional_libdir"
10079 -R*)
10080 dir=`echo "X$dep" | sed -e 's/^X-R//'`
10081 if test "$enable_rpath" != no; then
10082 haveit=
10083 for x in $rpathdirs; do
10084 if test "X$x" = "X$dir"; then
10085 haveit=yes
10086 break
10088 done
10089 if test -z "$haveit"; then
10090 rpathdirs="$rpathdirs $dir"
10092 haveit=
10093 for x in $ltrpathdirs; do
10094 if test "X$x" = "X$dir"; then
10095 haveit=yes
10096 break
10098 done
10099 if test -z "$haveit"; then
10100 ltrpathdirs="$ltrpathdirs $dir"
10104 -l*)
10105 names_next_round="$names_next_round "`echo "X$dep" | sed -e 's/^X-l//'`
10107 *.la)
10108 names_next_round="$names_next_round "`echo "X$dep" | sed -e 's,^X.*/,,' -e 's,^lib,,' -e 's,\.la$,,'`
10111 LIBICONV="${LIBICONV}${LIBICONV:+ }$dep"
10112 LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }$dep"
10114 esac
10115 done
10117 else
10118 LIBICONV="${LIBICONV}${LIBICONV:+ }-l$name"
10119 LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-l$name"
10123 done
10124 done
10125 if test "X$rpathdirs" != "X"; then
10126 if test -n "$hardcode_libdir_separator"; then
10127 alldirs=
10128 for found_dir in $rpathdirs; do
10129 alldirs="${alldirs}${alldirs:+$hardcode_libdir_separator}$found_dir"
10130 done
10131 acl_save_libdir="$libdir"
10132 libdir="$alldirs"
10133 eval flag=\"$hardcode_libdir_flag_spec\"
10134 libdir="$acl_save_libdir"
10135 LIBICONV="${LIBICONV}${LIBICONV:+ }$flag"
10136 else
10137 for found_dir in $rpathdirs; do
10138 acl_save_libdir="$libdir"
10139 libdir="$found_dir"
10140 eval flag=\"$hardcode_libdir_flag_spec\"
10141 libdir="$acl_save_libdir"
10142 LIBICONV="${LIBICONV}${LIBICONV:+ }$flag"
10143 done
10146 if test "X$ltrpathdirs" != "X"; then
10147 for found_dir in $ltrpathdirs; do
10148 LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-R$found_dir"
10149 done
10158 am_save_CPPFLAGS="$CPPFLAGS"
10160 for element in $INCICONV; do
10161 haveit=
10162 for x in $CPPFLAGS; do
10164 acl_save_prefix="$prefix"
10165 prefix="$acl_final_prefix"
10166 acl_save_exec_prefix="$exec_prefix"
10167 exec_prefix="$acl_final_exec_prefix"
10168 eval x=\"$x\"
10169 exec_prefix="$acl_save_exec_prefix"
10170 prefix="$acl_save_prefix"
10172 if test "X$x" = "X$element"; then
10173 haveit=yes
10174 break
10176 done
10177 if test -z "$haveit"; then
10178 CPPFLAGS="${CPPFLAGS}${CPPFLAGS:+ }$element"
10180 done
10183 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for iconv" >&5
10184 $as_echo_n "checking for iconv... " >&6; }
10185 if test "${am_cv_func_iconv+set}" = set; then :
10186 $as_echo_n "(cached) " >&6
10187 else
10189 am_cv_func_iconv="no, consider installing GNU libiconv"
10190 am_cv_lib_iconv=no
10191 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10192 /* end confdefs.h. */
10193 #include <stdlib.h>
10194 #include <iconv.h>
10196 main ()
10198 iconv_t cd = iconv_open("","");
10199 iconv(cd,NULL,NULL,NULL,NULL);
10200 iconv_close(cd);
10202 return 0;
10204 _ACEOF
10205 if ac_fn_cxx_try_link "$LINENO"; then :
10206 am_cv_func_iconv=yes
10208 rm -f core conftest.err conftest.$ac_objext \
10209 conftest$ac_exeext conftest.$ac_ext
10210 if test "$am_cv_func_iconv" != yes; then
10211 am_save_LIBS="$LIBS"
10212 LIBS="$LIBS $LIBICONV"
10213 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10214 /* end confdefs.h. */
10215 #include <stdlib.h>
10216 #include <iconv.h>
10218 main ()
10220 iconv_t cd = iconv_open("","");
10221 iconv(cd,NULL,NULL,NULL,NULL);
10222 iconv_close(cd);
10224 return 0;
10226 _ACEOF
10227 if ac_fn_cxx_try_link "$LINENO"; then :
10228 am_cv_lib_iconv=yes
10229 am_cv_func_iconv=yes
10231 rm -f core conftest.err conftest.$ac_objext \
10232 conftest$ac_exeext conftest.$ac_ext
10233 LIBS="$am_save_LIBS"
10237 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_func_iconv" >&5
10238 $as_echo "$am_cv_func_iconv" >&6; }
10239 if test "$am_cv_func_iconv" = yes; then
10241 $as_echo "#define HAVE_ICONV 1" >>confdefs.h
10244 if test "$am_cv_lib_iconv" = yes; then
10245 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to link with libiconv" >&5
10246 $as_echo_n "checking how to link with libiconv... " >&6; }
10247 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIBICONV" >&5
10248 $as_echo "$LIBICONV" >&6; }
10249 else
10250 CPPFLAGS="$am_save_CPPFLAGS"
10251 LIBICONV=
10252 LTLIBICONV=
10257 if test "$am_cv_func_iconv" = yes; then
10258 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for iconv declaration" >&5
10259 $as_echo_n "checking for iconv declaration... " >&6; }
10260 if test "${am_cv_proto_iconv+set}" = set; then :
10261 $as_echo_n "(cached) " >&6
10262 else
10264 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10265 /* end confdefs.h. */
10267 #include <stdlib.h>
10268 #include <iconv.h>
10269 extern
10270 #ifdef __cplusplus
10272 #endif
10273 #if defined(__STDC__) || defined(__cplusplus)
10274 size_t iconv (iconv_t cd, char * *inbuf, size_t *inbytesleft, char * *outbuf, size_t *outbytesleft);
10275 #else
10276 size_t iconv();
10277 #endif
10280 main ()
10284 return 0;
10286 _ACEOF
10287 if ac_fn_cxx_try_compile "$LINENO"; then :
10288 am_cv_proto_iconv_arg1=""
10289 else
10290 am_cv_proto_iconv_arg1="const"
10292 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10293 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);"
10296 am_cv_proto_iconv=`echo "$am_cv_proto_iconv" | tr -s ' ' | sed -e 's/( /(/'`
10297 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${ac_t:-
10298 }$am_cv_proto_iconv" >&5
10299 $as_echo "${ac_t:-
10300 }$am_cv_proto_iconv" >&6; }
10302 cat >>confdefs.h <<_ACEOF
10303 #define ICONV_CONST $am_cv_proto_iconv_arg1
10304 _ACEOF
10308 ac_ext=c
10309 ac_cpp='$CPP $CPPFLAGS'
10310 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
10311 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
10312 ac_compiler_gnu=$ac_cv_c_compiler_gnu
10315 # Until we have in-tree GNU iconv:
10316 LIBICONV_DEP=
10320 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for LC_MESSAGES" >&5
10321 $as_echo_n "checking for LC_MESSAGES... " >&6; }
10322 if test "${am_cv_val_LC_MESSAGES+set}" = set; then :
10323 $as_echo_n "(cached) " >&6
10324 else
10325 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10326 /* end confdefs.h. */
10327 #include <locale.h>
10329 main ()
10331 return LC_MESSAGES
10333 return 0;
10335 _ACEOF
10336 if ac_fn_c_try_link "$LINENO"; then :
10337 am_cv_val_LC_MESSAGES=yes
10338 else
10339 am_cv_val_LC_MESSAGES=no
10341 rm -f core conftest.err conftest.$ac_objext \
10342 conftest$ac_exeext conftest.$ac_ext
10344 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_val_LC_MESSAGES" >&5
10345 $as_echo "$am_cv_val_LC_MESSAGES" >&6; }
10346 if test $am_cv_val_LC_MESSAGES = yes; then
10348 $as_echo "#define HAVE_LC_MESSAGES 1" >>confdefs.h
10354 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for nl_langinfo and CODESET" >&5
10355 $as_echo_n "checking for nl_langinfo and CODESET... " >&6; }
10356 if test "${am_cv_langinfo_codeset+set}" = set; then :
10357 $as_echo_n "(cached) " >&6
10358 else
10359 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10360 /* end confdefs.h. */
10361 #include <langinfo.h>
10363 main ()
10365 char* cs = nl_langinfo(CODESET);
10367 return 0;
10369 _ACEOF
10370 if ac_fn_c_try_link "$LINENO"; then :
10371 am_cv_langinfo_codeset=yes
10372 else
10373 am_cv_langinfo_codeset=no
10375 rm -f core conftest.err conftest.$ac_objext \
10376 conftest$ac_exeext conftest.$ac_ext
10379 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_langinfo_codeset" >&5
10380 $as_echo "$am_cv_langinfo_codeset" >&6; }
10381 if test $am_cv_langinfo_codeset = yes; then
10383 $as_echo "#define HAVE_LANGINFO_CODESET 1" >>confdefs.h
10388 # We will need to find libiberty.h and ansidecl.h
10389 saved_CFLAGS="$CFLAGS"
10390 CFLAGS="$CFLAGS -I${srcdir} -I${srcdir}/../include $GMPINC"
10391 saved_CXXFLAGS="$CXXFLAGS"
10392 CXXFLAGS="$CXXFLAGS -I${srcdir} -I${srcdir}/../include $GMPINC"
10393 for ac_func in getenv atol asprintf sbrk abort atof getcwd getwd \
10394 strsignal strstr stpcpy strverscmp \
10395 errno snprintf vsnprintf vasprintf malloc realloc calloc \
10396 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
10398 ac_tr_decl=`$as_echo "HAVE_DECL_$ac_func" | $as_tr_cpp`
10399 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $ac_func is declared" >&5
10400 $as_echo_n "checking whether $ac_func is declared... " >&6; }
10401 if { as_var=gcc_cv_have_decl_$ac_func; eval "test \"\${$as_var+set}\" = set"; }; then :
10402 $as_echo_n "(cached) " >&6
10403 else
10404 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10405 /* end confdefs.h. */
10406 #undef $ac_tr_decl
10407 #define $ac_tr_decl 1
10409 #include "ansidecl.h"
10410 #include "system.h"
10413 main ()
10415 #ifndef $ac_func
10416 char *(*pfn) = (char *(*)) $ac_func ;
10417 #endif
10419 return 0;
10421 _ACEOF
10422 if ac_fn_c_try_compile "$LINENO"; then :
10423 eval "gcc_cv_have_decl_$ac_func=yes"
10424 else
10425 eval "gcc_cv_have_decl_$ac_func=no"
10427 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10430 if eval "test \"`echo '$gcc_cv_have_decl_'$ac_func`\" = yes"; then
10431 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
10432 $as_echo "yes" >&6; } ; cat >>confdefs.h <<_ACEOF
10433 #define $ac_tr_decl 1
10434 _ACEOF
10436 else
10437 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10438 $as_echo "no" >&6; } ; cat >>confdefs.h <<_ACEOF
10439 #define $ac_tr_decl 0
10440 _ACEOF
10444 done
10447 for ac_func in getrlimit setrlimit getrusage
10449 ac_tr_decl=`$as_echo "HAVE_DECL_$ac_func" | $as_tr_cpp`
10450 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $ac_func is declared" >&5
10451 $as_echo_n "checking whether $ac_func is declared... " >&6; }
10452 if { as_var=gcc_cv_have_decl_$ac_func; eval "test \"\${$as_var+set}\" = set"; }; then :
10453 $as_echo_n "(cached) " >&6
10454 else
10455 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10456 /* end confdefs.h. */
10457 #undef $ac_tr_decl
10458 #define $ac_tr_decl 1
10460 #include "ansidecl.h"
10461 #include "system.h"
10462 #ifdef HAVE_SYS_RESOURCE_H
10463 #include <sys/resource.h>
10464 #endif
10468 main ()
10470 #ifndef $ac_func
10471 char *(*pfn) = (char *(*)) $ac_func ;
10472 #endif
10474 return 0;
10476 _ACEOF
10477 if ac_fn_c_try_compile "$LINENO"; then :
10478 eval "gcc_cv_have_decl_$ac_func=yes"
10479 else
10480 eval "gcc_cv_have_decl_$ac_func=no"
10482 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10485 if eval "test \"`echo '$gcc_cv_have_decl_'$ac_func`\" = yes"; then
10486 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
10487 $as_echo "yes" >&6; } ; cat >>confdefs.h <<_ACEOF
10488 #define $ac_tr_decl 1
10489 _ACEOF
10491 else
10492 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10493 $as_echo "no" >&6; } ; cat >>confdefs.h <<_ACEOF
10494 #define $ac_tr_decl 0
10495 _ACEOF
10499 done
10502 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10503 /* end confdefs.h. */
10505 #include "ansidecl.h"
10506 #include "system.h"
10507 #ifdef HAVE_SYS_RESOURCE_H
10508 #include <sys/resource.h>
10509 #endif
10512 main ()
10514 rlim_t l = 0;
10516 return 0;
10518 _ACEOF
10519 if ac_fn_c_try_compile "$LINENO"; then :
10521 else
10523 $as_echo "#define rlim_t long" >>confdefs.h
10526 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10528 # On AIX 5.2, <ldfcn.h> conflicts with <fcntl.h>, as both define incompatible
10529 # FREAD and FWRITE macros. Fortunately, for GCC's single usage of ldgetname
10530 # in collect2.c, <fcntl.h> isn't visible, but the configure test below needs
10531 # to undef these macros to get the correct value for HAVE_DECL_LDGETNAME.
10532 for ac_func in ldgetname
10534 ac_tr_decl=`$as_echo "HAVE_DECL_$ac_func" | $as_tr_cpp`
10535 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $ac_func is declared" >&5
10536 $as_echo_n "checking whether $ac_func is declared... " >&6; }
10537 if { as_var=gcc_cv_have_decl_$ac_func; eval "test \"\${$as_var+set}\" = set"; }; then :
10538 $as_echo_n "(cached) " >&6
10539 else
10540 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10541 /* end confdefs.h. */
10542 #undef $ac_tr_decl
10543 #define $ac_tr_decl 1
10545 #include "ansidecl.h"
10546 #include "system.h"
10547 #ifdef HAVE_LDFCN_H
10548 #undef FREAD
10549 #undef FWRITE
10550 #include <ldfcn.h>
10551 #endif
10555 main ()
10557 #ifndef $ac_func
10558 char *(*pfn) = (char *(*)) $ac_func ;
10559 #endif
10561 return 0;
10563 _ACEOF
10564 if ac_fn_c_try_compile "$LINENO"; then :
10565 eval "gcc_cv_have_decl_$ac_func=yes"
10566 else
10567 eval "gcc_cv_have_decl_$ac_func=no"
10569 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10572 if eval "test \"`echo '$gcc_cv_have_decl_'$ac_func`\" = yes"; then
10573 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
10574 $as_echo "yes" >&6; } ; cat >>confdefs.h <<_ACEOF
10575 #define $ac_tr_decl 1
10576 _ACEOF
10578 else
10579 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10580 $as_echo "no" >&6; } ; cat >>confdefs.h <<_ACEOF
10581 #define $ac_tr_decl 0
10582 _ACEOF
10586 done
10589 for ac_func in times
10591 ac_tr_decl=`$as_echo "HAVE_DECL_$ac_func" | $as_tr_cpp`
10592 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $ac_func is declared" >&5
10593 $as_echo_n "checking whether $ac_func is declared... " >&6; }
10594 if { as_var=gcc_cv_have_decl_$ac_func; eval "test \"\${$as_var+set}\" = set"; }; then :
10595 $as_echo_n "(cached) " >&6
10596 else
10597 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10598 /* end confdefs.h. */
10599 #undef $ac_tr_decl
10600 #define $ac_tr_decl 1
10602 #include "ansidecl.h"
10603 #include "system.h"
10604 #ifdef HAVE_SYS_TIMES_H
10605 #include <sys/times.h>
10606 #endif
10610 main ()
10612 #ifndef $ac_func
10613 char *(*pfn) = (char *(*)) $ac_func ;
10614 #endif
10616 return 0;
10618 _ACEOF
10619 if ac_fn_c_try_compile "$LINENO"; then :
10620 eval "gcc_cv_have_decl_$ac_func=yes"
10621 else
10622 eval "gcc_cv_have_decl_$ac_func=no"
10624 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10627 if eval "test \"`echo '$gcc_cv_have_decl_'$ac_func`\" = yes"; then
10628 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
10629 $as_echo "yes" >&6; } ; cat >>confdefs.h <<_ACEOF
10630 #define $ac_tr_decl 1
10631 _ACEOF
10633 else
10634 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10635 $as_echo "no" >&6; } ; cat >>confdefs.h <<_ACEOF
10636 #define $ac_tr_decl 0
10637 _ACEOF
10641 done
10644 for ac_func in sigaltstack
10646 ac_tr_decl=`$as_echo "HAVE_DECL_$ac_func" | $as_tr_cpp`
10647 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $ac_func is declared" >&5
10648 $as_echo_n "checking whether $ac_func is declared... " >&6; }
10649 if { as_var=gcc_cv_have_decl_$ac_func; eval "test \"\${$as_var+set}\" = set"; }; then :
10650 $as_echo_n "(cached) " >&6
10651 else
10652 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10653 /* end confdefs.h. */
10654 #undef $ac_tr_decl
10655 #define $ac_tr_decl 1
10657 #include "ansidecl.h"
10658 #include "system.h"
10659 #include <signal.h>
10663 main ()
10665 #ifndef $ac_func
10666 char *(*pfn) = (char *(*)) $ac_func ;
10667 #endif
10669 return 0;
10671 _ACEOF
10672 if ac_fn_c_try_compile "$LINENO"; then :
10673 eval "gcc_cv_have_decl_$ac_func=yes"
10674 else
10675 eval "gcc_cv_have_decl_$ac_func=no"
10677 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10680 if eval "test \"`echo '$gcc_cv_have_decl_'$ac_func`\" = yes"; then
10681 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
10682 $as_echo "yes" >&6; } ; cat >>confdefs.h <<_ACEOF
10683 #define $ac_tr_decl 1
10684 _ACEOF
10686 else
10687 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10688 $as_echo "no" >&6; } ; cat >>confdefs.h <<_ACEOF
10689 #define $ac_tr_decl 0
10690 _ACEOF
10694 done
10697 # g++ on Solaris 10+ defines _XOPEN_SOURCE=600, which hides the madvise()
10698 # prototype.
10699 ac_ext=cpp
10700 ac_cpp='$CXXCPP $CPPFLAGS'
10701 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
10702 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
10703 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
10705 for ac_func in madvise
10707 ac_tr_decl=`$as_echo "HAVE_DECL_$ac_func" | $as_tr_cpp`
10708 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $ac_func is declared" >&5
10709 $as_echo_n "checking whether $ac_func is declared... " >&6; }
10710 if { as_var=gcc_cv_have_decl_$ac_func; eval "test \"\${$as_var+set}\" = set"; }; then :
10711 $as_echo_n "(cached) " >&6
10712 else
10713 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10714 /* end confdefs.h. */
10715 #undef $ac_tr_decl
10716 #define $ac_tr_decl 1
10718 #include "ansidecl.h"
10719 #include "system.h"
10723 main ()
10725 #ifndef $ac_func
10726 char *(*pfn) = (char *(*)) $ac_func ;
10727 #endif
10729 return 0;
10731 _ACEOF
10732 if ac_fn_cxx_try_compile "$LINENO"; then :
10733 eval "gcc_cv_have_decl_$ac_func=yes"
10734 else
10735 eval "gcc_cv_have_decl_$ac_func=no"
10737 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10740 if eval "test \"`echo '$gcc_cv_have_decl_'$ac_func`\" = yes"; then
10741 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
10742 $as_echo "yes" >&6; } ; cat >>confdefs.h <<_ACEOF
10743 #define $ac_tr_decl 1
10744 _ACEOF
10746 else
10747 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10748 $as_echo "no" >&6; } ; cat >>confdefs.h <<_ACEOF
10749 #define $ac_tr_decl 0
10750 _ACEOF
10754 done
10756 ac_ext=c
10757 ac_cpp='$CPP $CPPFLAGS'
10758 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
10759 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
10760 ac_compiler_gnu=$ac_cv_c_compiler_gnu
10763 # More time-related stuff.
10764 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for struct tms" >&5
10765 $as_echo_n "checking for struct tms... " >&6; }
10766 if test "${ac_cv_struct_tms+set}" = set; then :
10767 $as_echo_n "(cached) " >&6
10768 else
10770 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10771 /* end confdefs.h. */
10773 #include "ansidecl.h"
10774 #include "system.h"
10775 #ifdef HAVE_SYS_TIMES_H
10776 #include <sys/times.h>
10777 #endif
10780 main ()
10782 struct tms tms;
10784 return 0;
10786 _ACEOF
10787 if ac_fn_c_try_compile "$LINENO"; then :
10788 ac_cv_struct_tms=yes
10789 else
10790 ac_cv_struct_tms=no
10792 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10794 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_struct_tms" >&5
10795 $as_echo "$ac_cv_struct_tms" >&6; }
10796 if test $ac_cv_struct_tms = yes; then
10798 $as_echo "#define HAVE_STRUCT_TMS 1" >>confdefs.h
10802 # use gcc_cv_* here because this doesn't match the behavior of AC_CHECK_TYPE.
10803 # revisit after autoconf 2.50.
10804 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for clock_t" >&5
10805 $as_echo_n "checking for clock_t... " >&6; }
10806 if test "${gcc_cv_type_clock_t+set}" = set; then :
10807 $as_echo_n "(cached) " >&6
10808 else
10810 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10811 /* end confdefs.h. */
10813 #include "ansidecl.h"
10814 #include "system.h"
10817 main ()
10819 clock_t x;
10821 return 0;
10823 _ACEOF
10824 if ac_fn_c_try_compile "$LINENO"; then :
10825 gcc_cv_type_clock_t=yes
10826 else
10827 gcc_cv_type_clock_t=no
10829 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10831 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_type_clock_t" >&5
10832 $as_echo "$gcc_cv_type_clock_t" >&6; }
10833 if test $gcc_cv_type_clock_t = yes; then
10835 $as_echo "#define HAVE_CLOCK_T 1" >>confdefs.h
10839 # Check if F_SETLKW is supported by fcntl.
10840 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for F_SETLKW" >&5
10841 $as_echo_n "checking for F_SETLKW... " >&6; }
10842 if test "${ac_cv_f_setlkw+set}" = set; then :
10843 $as_echo_n "(cached) " >&6
10844 else
10846 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10847 /* end confdefs.h. */
10849 #include <fcntl.h>
10851 main ()
10854 struct flock fl;
10855 fl.l_whence = 0;
10856 fl.l_start = 0;
10857 fl.l_len = 0;
10858 fl.l_pid = 0;
10859 return fcntl (1, F_SETLKW, &fl);
10861 return 0;
10863 _ACEOF
10864 if ac_fn_c_try_compile "$LINENO"; then :
10865 ac_cv_f_setlkw=yes
10866 else
10867 ac_cv_f_setlkw=no
10869 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10871 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_f_setlkw" >&5
10872 $as_echo "$ac_cv_f_setlkw" >&6; }
10873 if test $ac_cv_f_setlkw = yes; then
10875 $as_echo "#define HOST_HAS_F_SETLKW 1" >>confdefs.h
10879 # Restore CFLAGS, CXXFLAGS from before the gcc_AC_NEED_DECLARATIONS tests.
10880 CFLAGS="$saved_CFLAGS"
10881 CXXFLAGS="$saved_CXXFLAGS"
10883 # mkdir takes a single argument on some systems.
10884 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if mkdir takes one argument" >&5
10885 $as_echo_n "checking if mkdir takes one argument... " >&6; }
10886 if test "${gcc_cv_mkdir_takes_one_arg+set}" = set; then :
10887 $as_echo_n "(cached) " >&6
10888 else
10889 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10890 /* end confdefs.h. */
10892 #include <sys/types.h>
10893 #ifdef HAVE_SYS_STAT_H
10894 # include <sys/stat.h>
10895 #endif
10896 #ifdef HAVE_UNISTD_H
10897 # include <unistd.h>
10898 #endif
10899 #ifdef HAVE_DIRECT_H
10900 # include <direct.h>
10901 #endif
10903 main ()
10905 mkdir ("foo", 0);
10907 return 0;
10909 _ACEOF
10910 if ac_fn_c_try_compile "$LINENO"; then :
10911 gcc_cv_mkdir_takes_one_arg=no
10912 else
10913 gcc_cv_mkdir_takes_one_arg=yes
10915 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10917 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_mkdir_takes_one_arg" >&5
10918 $as_echo "$gcc_cv_mkdir_takes_one_arg" >&6; }
10919 if test $gcc_cv_mkdir_takes_one_arg = yes ; then
10921 $as_echo "#define MKDIR_TAKES_ONE_ARG 1" >>confdefs.h
10926 # File extensions
10927 manext='.1'
10928 objext='.o'
10932 # With Setjmp/Longjmp based exception handling.
10933 # Check whether --enable-sjlj-exceptions was given.
10934 if test "${enable_sjlj_exceptions+set}" = set; then :
10935 enableval=$enable_sjlj_exceptions; case $target in
10936 *-*-hpux10*)
10937 if test $enableval != yes; then
10938 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: dwarf2 exceptions not supported, sjlj exceptions forced" >&5
10939 $as_echo "$as_me: WARNING: dwarf2 exceptions not supported, sjlj exceptions forced" >&2;}
10940 enableval=yes
10943 esac
10944 force_sjlj_exceptions=yes
10945 else
10946 case $target in
10947 *-*-hpux10*)
10948 force_sjlj_exceptions=yes
10949 enableval=yes
10952 force_sjlj_exceptions=no
10954 esac
10957 if test $force_sjlj_exceptions = yes; then
10958 sjlj=`if test $enableval = yes; then echo 1; else echo 0; fi`
10960 cat >>confdefs.h <<_ACEOF
10961 #define CONFIG_SJLJ_EXCEPTIONS $sjlj
10962 _ACEOF
10966 # --------------------------------------------------------
10967 # Build, host, and target specific configuration fragments
10968 # --------------------------------------------------------
10970 # Collect build-machine-specific information.
10971 . ${srcdir}/config.build
10973 # Collect host-machine-specific information.
10974 . ${srcdir}/config.host
10976 target_gtfiles=
10978 # Collect target-machine-specific information.
10979 . ${srcdir}/config.gcc
10981 extra_objs="${host_extra_objs} ${extra_objs}"
10982 extra_gcc_objs="${host_extra_gcc_objs} ${extra_gcc_objs}"
10984 # Default the target-machine variables that were not explicitly set.
10985 if test x"$tm_file" = x
10986 then tm_file=$cpu_type/$cpu_type.h; fi
10988 if test x"$extra_headers" = x
10989 then extra_headers=; fi
10991 if test x$md_file = x
10992 then md_file=$cpu_type/$cpu_type.md; fi
10994 if test x$out_file = x
10995 then out_file=$cpu_type/$cpu_type.c; fi
10997 if test x"$tmake_file" = x
10998 then tmake_file=$cpu_type/t-$cpu_type
11001 # Support --enable-initfini-array.
11002 if test x$enable_initfini_array != xno; then
11003 tm_file="${tm_file} initfini-array.h"
11006 if test x"$dwarf2" = xyes
11007 then tm_file="$tm_file tm-dwarf2.h"
11010 # Say what files are being used for the output code and MD file.
11011 echo "Using \`$srcdir/config/$out_file' for machine-specific logic."
11012 echo "Using \`$srcdir/config/$md_file' as machine description file."
11014 # If any of the xm_file variables contain nonexistent files, warn
11015 # about them and drop them.
11018 for x in $build_xm_file; do
11019 if test -f $srcdir/config/$x
11020 then bx="$bx $x"
11021 else { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $srcdir/config/$x does not exist." >&5
11022 $as_echo "$as_me: WARNING: $srcdir/config/$x does not exist." >&2;}
11024 done
11025 build_xm_file="$bx"
11028 for x in $host_xm_file; do
11029 if test -f $srcdir/config/$x
11030 then hx="$hx $x"
11031 else { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $srcdir/config/$x does not exist." >&5
11032 $as_echo "$as_me: WARNING: $srcdir/config/$x does not exist." >&2;}
11034 done
11035 host_xm_file="$hx"
11038 for x in $xm_file; do
11039 if test -f $srcdir/config/$x
11040 then tx="$tx $x"
11041 else { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $srcdir/config/$x does not exist." >&5
11042 $as_echo "$as_me: WARNING: $srcdir/config/$x does not exist." >&2;}
11044 done
11045 xm_file="$tx"
11047 count=a
11048 for f in $tm_file; do
11049 count=${count}x
11050 done
11051 if test $count = ax; then
11052 echo "Using \`$srcdir/config/$tm_file' as target machine macro file."
11053 else
11054 echo "Using the following target machine macro files:"
11055 for f in $tm_file; do
11056 echo " $srcdir/config/$f"
11057 done
11060 if test x$need_64bit_hwint = xyes; then
11062 $as_echo "#define NEED_64BIT_HOST_WIDE_INT 1" >>confdefs.h
11066 if test x$use_long_long_for_widest_fast_int = xyes; then
11068 $as_echo "#define USE_LONG_LONG_FOR_WIDEST_FAST_INT 1" >>confdefs.h
11072 gnu_ld_bool=`if test x"$gnu_ld" = x"yes"; then echo 1; else echo 0; fi`
11074 cat >>confdefs.h <<_ACEOF
11075 #define HAVE_GNU_LD $gnu_ld_bool
11076 _ACEOF
11079 gnu_as_bool=`if test x"$gas" = x"yes"; then echo 1; else echo 0; fi`
11081 cat >>confdefs.h <<_ACEOF
11082 #define HAVE_GNU_AS $gnu_as_bool
11083 _ACEOF
11086 count=a
11087 for f in $host_xm_file; do
11088 count=${count}x
11089 done
11090 if test $count = a; then
11092 elif test $count = ax; then
11093 echo "Using \`$srcdir/config/$host_xm_file' as host machine macro file."
11094 else
11095 echo "Using the following host machine macro files:"
11096 for f in $host_xm_file; do
11097 echo " $srcdir/config/$f"
11098 done
11100 echo "Using ${out_host_hook_obj} for host machine hooks."
11102 if test "$host_xm_file" != "$build_xm_file"; then
11103 count=a
11104 for f in $build_xm_file; do
11105 count=${count}x
11106 done
11107 if test $count = a; then
11109 elif test $count = ax; then
11110 echo "Using \`$srcdir/config/$build_xm_file' as build machine macro file."
11111 else
11112 echo "Using the following build machine macro files:"
11113 for f in $build_xm_file; do
11114 echo " $srcdir/config/$f"
11115 done
11119 if test -n "$configured_native_system_header_dir"; then
11120 native_system_header_dir=$configured_native_system_header_dir
11122 NATIVE_SYSTEM_HEADER_DIR="$native_system_header_dir"
11125 case ${host} in
11126 powerpc*-*-darwin*)
11127 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether mcontext_t fields have underscores" >&5
11128 $as_echo_n "checking whether mcontext_t fields have underscores... " >&6; }
11129 if test "${gcc_cv_mcontext_underscores+set}" = set; then :
11130 $as_echo_n "(cached) " >&6
11131 else
11132 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11133 /* end confdefs.h. */
11135 #include <sys/cdefs.h>
11136 #include <sys/signal.h>
11137 #include <ucontext.h>
11138 int main() { mcontext_t m; if (m->ss.srr0) return 0; return 0; }
11140 _ACEOF
11141 if ac_fn_c_try_compile "$LINENO"; then :
11142 gcc_cv_mcontext_underscores=no
11143 else
11144 gcc_cv_mcontext_underscores=yes
11146 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11148 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_mcontext_underscores" >&5
11149 $as_echo "$gcc_cv_mcontext_underscores" >&6; }
11150 if test $gcc_cv_mcontext_underscores = yes; then
11152 $as_echo "#define HAS_MCONTEXT_T_UNDERSCORES /**/" >>confdefs.h
11156 esac
11158 # ---------
11159 # Threading
11160 # ---------
11162 # Check if a valid thread package
11163 case ${enable_threads} in
11164 "" | no)
11165 # No threads
11166 target_thread_file='single'
11168 yes)
11169 # default
11170 target_thread_file='single'
11172 aix | dce | lynx | mipssde | posix | rtems | \
11173 single | tpf | vxworks | win32)
11174 target_thread_file=${enable_threads}
11177 echo "${enable_threads} is an unknown thread package" 1>&2
11178 exit 1
11180 esac
11182 if test x${thread_file} = x; then
11183 # No thread file set by target-specific clauses in config.gcc,
11184 # so use file chosen by default logic above
11185 thread_file=${target_thread_file}
11188 # --------
11189 # UNSORTED
11190 # --------
11192 use_cxa_atexit=no
11193 if test x$enable___cxa_atexit = xyes || \
11194 test x$enable___cxa_atexit = x -a x$default_use_cxa_atexit = xyes; then
11195 if test x$host = x$target; then
11196 case $host in
11197 # mingw32 doesn't have __cxa_atexit but uses atexit registration
11198 # keyed to flag_use_cxa_atexit
11199 *-*-mingw32*)
11200 use_cxa_atexit=yes
11202 powerpc-ibm-aix*)
11203 use_cxa_atexit=yes
11206 ac_fn_c_check_func "$LINENO" "__cxa_atexit" "ac_cv_func___cxa_atexit"
11207 if test "x$ac_cv_func___cxa_atexit" = x""yes; then :
11208 use_cxa_atexit=yes
11209 else
11210 echo "__cxa_atexit can't be enabled on this target"
11214 esac
11215 else
11216 # We can't check for __cxa_atexit when building a cross, so assume
11217 # it is available
11218 use_cxa_atexit=yes
11220 if test x$use_cxa_atexit = xyes; then
11222 $as_echo "#define DEFAULT_USE_CXA_ATEXIT 2" >>confdefs.h
11227 # Look for a file containing extra machine modes.
11228 if test -n "$extra_modes" && test -f $srcdir/config/$extra_modes; then
11229 extra_modes_file='$(srcdir)'/config/${extra_modes}
11232 cat >>confdefs.h <<_ACEOF
11233 #define EXTRA_MODES_FILE "config/$extra_modes"
11234 _ACEOF
11238 # Convert extra_options into a form suitable for Makefile use.
11239 extra_opt_files=
11240 all_opt_files=
11241 for f in $extra_options; do
11242 extra_opt_files="$extra_opt_files \$(srcdir)/config/$f"
11243 all_opt_files="$all_opt_files $srcdir/config/$f"
11244 done
11247 # auto-host.h is the file containing items generated by autoconf and is
11248 # the first file included by config.h.
11249 # If host=build, it is correct to have bconfig include auto-host.h
11250 # as well. If host!=build, we are in error and need to do more
11251 # work to find out the build config parameters.
11252 if test x$host = x$build
11253 then
11254 build_auto=auto-host.h
11255 else
11256 # We create a subdir, then run autoconf in the subdir.
11257 # To prevent recursion we set host and build for the new
11258 # invocation of configure to the build for this invocation
11259 # of configure.
11260 tempdir=build.$$
11261 rm -rf $tempdir
11262 mkdir $tempdir
11263 cd $tempdir
11264 case ${srcdir} in
11265 /* | A-Za-z:\\/* ) realsrcdir=${srcdir};;
11266 *) realsrcdir=../${srcdir};;
11267 esac
11268 saved_CFLAGS="${CFLAGS}"
11269 CC="${CC_FOR_BUILD}" CFLAGS="${CFLAGS_FOR_BUILD}" \
11270 LDFLAGS="${LDFLAGS_FOR_BUILD}" \
11271 ${realsrcdir}/configure \
11272 --enable-languages=${enable_languages-all} \
11273 --target=$target_alias --host=$build_alias --build=$build_alias
11274 CFLAGS="${saved_CFLAGS}"
11276 # We just finished tests for the build machine, so rename
11277 # the file auto-build.h in the gcc directory.
11278 mv auto-host.h ../auto-build.h
11279 cd ..
11280 rm -rf $tempdir
11281 build_auto=auto-build.h
11285 tm_file="${tm_file} defaults.h"
11286 tm_p_file="${tm_p_file} tm-preds.h"
11287 host_xm_file="auto-host.h ansidecl.h ${host_xm_file}"
11288 build_xm_file="${build_auto} ansidecl.h ${build_xm_file}"
11289 # We don't want ansidecl.h in target files, write code there in ISO/GNU C.
11290 # put this back in temporarily.
11291 xm_file="auto-host.h ansidecl.h ${xm_file}"
11293 # --------
11294 # UNSORTED
11295 # --------
11297 # Compile in configure arguments.
11298 if test -f configargs.h ; then
11299 # Being re-configured.
11300 gcc_config_arguments=`grep configuration_arguments configargs.h | sed -e 's/.*"\([^"]*\)".*/\1/'`
11301 gcc_config_arguments="$gcc_config_arguments : (reconfigured) $TOPLEVEL_CONFIGURE_ARGUMENTS"
11302 else
11303 gcc_config_arguments="$TOPLEVEL_CONFIGURE_ARGUMENTS"
11306 # Double all backslashes and backslash all quotes to turn
11307 # gcc_config_arguments into a C string.
11308 sed -e 's/\\/\\\\/g; s/"/\\"/g' <<EOF >conftest.out
11309 $gcc_config_arguments
11311 gcc_config_arguments_str=`cat conftest.out`
11312 rm -f conftest.out
11314 cat > configargs.h <<EOF
11315 /* Generated automatically. */
11316 static const char configuration_arguments[] = "$gcc_config_arguments_str";
11317 static const char thread_model[] = "$thread_file";
11319 static const struct {
11320 const char *name, *value;
11321 } configure_default_options[] = $configure_default_options;
11324 gcc_BASEVER=`cat $srcdir/BASE-VER`
11325 gcc_DEVPHASE=`cat $srcdir/DEV-PHASE`
11326 gcc_DATESTAMP=`cat $srcdir/DATESTAMP`
11327 if test -f $srcdir/REVISION ; then
11328 gcc_REVISION=`cat $srcdir/REVISION`
11329 else
11330 gcc_REVISION=""
11332 cat > plugin-version.h <<EOF
11333 #include "configargs.h"
11335 #define GCCPLUGIN_VERSION_MAJOR `echo $gcc_BASEVER | sed -e 's/^\([0-9]*\).*$/\1/'`
11336 #define GCCPLUGIN_VERSION_MINOR `echo $gcc_BASEVER | sed -e 's/^[0-9]*\.\([0-9]*\).*$/\1/'`
11337 #define GCCPLUGIN_VERSION_PATCHLEVEL `echo $gcc_BASEVER | sed -e 's/^[0-9]*\.[0-9]*\.\([0-9]*\)$/\1/'`
11338 #define GCCPLUGIN_VERSION (GCCPLUGIN_VERSION_MAJOR*1000 + GCCPLUGIN_VERSION_MINOR)
11340 static char basever[] = "$gcc_BASEVER";
11341 static char datestamp[] = "$gcc_DATESTAMP";
11342 static char devphase[] = "$gcc_DEVPHASE";
11343 static char revision[] = "$gcc_REVISION";
11345 /* FIXME plugins: We should make the version information more precise.
11346 One way to do is to add a checksum. */
11348 static struct plugin_gcc_version gcc_version = {basever, datestamp,
11349 devphase, revision,
11350 configuration_arguments};
11353 # Internationalization
11354 # If we haven't got the data from the intl directory,
11355 # assume NLS is disabled.
11356 USE_NLS=no
11357 LIBINTL=
11358 LIBINTL_DEP=
11359 INCINTL=
11360 XGETTEXT=
11361 GMSGFMT=
11362 POSUB=
11364 if test -f ../intl/config.intl; then
11365 . ../intl/config.intl
11367 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether NLS is requested" >&5
11368 $as_echo_n "checking whether NLS is requested... " >&6; }
11369 if test x"$USE_NLS" != xyes; then
11370 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11371 $as_echo "no" >&6; }
11372 else
11373 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11374 $as_echo "yes" >&6; }
11376 $as_echo "#define ENABLE_NLS 1" >>confdefs.h
11379 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for catalogs to be installed" >&5
11380 $as_echo_n "checking for catalogs to be installed... " >&6; }
11381 # Look for .po and .gmo files in the source directory.
11382 CATALOGS=
11383 XLINGUAS=
11384 for cat in $srcdir/po/*.gmo $srcdir/po/*.po; do
11385 # If there aren't any .gmo files the shell will give us the
11386 # literal string "../path/to/srcdir/po/*.gmo" which has to be
11387 # weeded out.
11388 case "$cat" in *\**)
11389 continue;;
11390 esac
11391 # The quadruple backslash is collapsed to a double backslash
11392 # by the backticks, then collapsed again by the double quotes,
11393 # leaving us with one backslash in the sed expression (right
11394 # before the dot that mustn't act as a wildcard).
11395 cat=`echo $cat | sed -e "s!$srcdir/po/!!" -e "s!\\\\.po!.gmo!"`
11396 lang=`echo $cat | sed -e "s!\\\\.gmo!!"`
11397 # The user is allowed to set LINGUAS to a list of languages to
11398 # install catalogs for. If it's empty that means "all of them."
11399 if test "x$LINGUAS" = x; then
11400 CATALOGS="$CATALOGS $cat"
11401 XLINGUAS="$XLINGUAS $lang"
11402 else
11403 case "$LINGUAS" in *$lang*)
11404 CATALOGS="$CATALOGS $cat"
11405 XLINGUAS="$XLINGUAS $lang"
11407 esac
11409 done
11410 LINGUAS="$XLINGUAS"
11411 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LINGUAS" >&5
11412 $as_echo "$LINGUAS" >&6; }
11415 DATADIRNAME=share
11417 INSTOBJEXT=.mo
11419 GENCAT=gencat
11421 CATOBJEXT=.gmo
11425 # If LIBINTL contains LIBICONV, then clear LIBICONV so we don't get
11426 # -liconv on the link line twice.
11427 case "$LIBINTL" in *$LIBICONV*)
11428 LIBICONV= ;;
11429 esac
11431 # Check whether --enable-secureplt was given.
11432 if test "${enable_secureplt+set}" = set; then :
11433 enableval=$enable_secureplt;
11437 # Check whether --enable-leading-mingw64-underscores was given.
11438 if test "${enable_leading_mingw64_underscores+set}" = set; then :
11439 enableval=$enable_leading_mingw64_underscores;
11442 if test x"$enable_leading_mingw64_underscores" = xyes ; then :
11444 $as_echo "#define USE_MINGW64_LEADING_UNDERSCORES 1" >>confdefs.h
11448 # Check whether --enable-cld was given.
11449 if test "${enable_cld+set}" = set; then :
11450 enableval=$enable_cld;
11451 else
11452 enable_cld=no
11456 # Check whether --enable-frame-pointer was given.
11457 if test "${enable_frame_pointer+set}" = set; then :
11458 enableval=$enable_frame_pointer;
11459 else
11461 case $target_os in
11462 linux* | darwin[8912]*)
11463 # Enable -fomit-frame-pointer by default for Linux and Darwin with
11464 # DWARF2.
11465 enable_frame_pointer=no
11468 enable_frame_pointer=yes
11470 esac
11475 # Windows32 Registry support for specifying GCC installation paths.
11476 # Check whether --enable-win32-registry was given.
11477 if test "${enable_win32_registry+set}" = set; then :
11478 enableval=$enable_win32_registry;
11482 case $host_os in
11483 win32 | pe | cygwin* | mingw32* | uwin*)
11484 if test "x$enable_win32_registry" != xno; then
11485 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing RegOpenKeyExA" >&5
11486 $as_echo_n "checking for library containing RegOpenKeyExA... " >&6; }
11487 if test "${ac_cv_search_RegOpenKeyExA+set}" = set; then :
11488 $as_echo_n "(cached) " >&6
11489 else
11490 ac_func_search_save_LIBS=$LIBS
11491 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11492 /* end confdefs.h. */
11494 /* Override any GCC internal prototype to avoid an error.
11495 Use char because int might match the return type of a GCC
11496 builtin and then its argument prototype would still apply. */
11497 #ifdef __cplusplus
11498 extern "C"
11499 #endif
11500 char RegOpenKeyExA ();
11502 main ()
11504 return RegOpenKeyExA ();
11506 return 0;
11508 _ACEOF
11509 for ac_lib in '' advapi32; do
11510 if test -z "$ac_lib"; then
11511 ac_res="none required"
11512 else
11513 ac_res=-l$ac_lib
11514 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
11516 if ac_fn_c_try_link "$LINENO"; then :
11517 ac_cv_search_RegOpenKeyExA=$ac_res
11519 rm -f core conftest.err conftest.$ac_objext \
11520 conftest$ac_exeext
11521 if test "${ac_cv_search_RegOpenKeyExA+set}" = set; then :
11522 break
11524 done
11525 if test "${ac_cv_search_RegOpenKeyExA+set}" = set; then :
11527 else
11528 ac_cv_search_RegOpenKeyExA=no
11530 rm conftest.$ac_ext
11531 LIBS=$ac_func_search_save_LIBS
11533 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_RegOpenKeyExA" >&5
11534 $as_echo "$ac_cv_search_RegOpenKeyExA" >&6; }
11535 ac_res=$ac_cv_search_RegOpenKeyExA
11536 if test "$ac_res" != no; then :
11537 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
11539 else
11540 enable_win32_registry=no
11545 if test "x$enable_win32_registry" != xno; then
11547 $as_echo "#define ENABLE_WIN32_REGISTRY 1" >>confdefs.h
11550 if test "x$enable_win32_registry" != xyes \
11551 && test "x$enable_win32_registry" != x; then
11553 cat >>confdefs.h <<_ACEOF
11554 #define WIN32_REGISTRY_KEY "$enable_win32_registry"
11555 _ACEOF
11560 esac
11562 # Get an absolute path to the GCC top-level source directory
11563 holddir=`${PWDCMD-pwd}`
11564 cd $srcdir
11565 topdir=`${PWDCMD-pwd}`
11566 cd $holddir
11568 # Conditionalize the makefile for this host machine.
11569 xmake_file=
11570 for f in ${host_xmake_file}
11572 if test -f ${srcdir}/config/$f
11573 then
11574 xmake_file="${xmake_file} \$(srcdir)/config/$f"
11576 done
11578 # Conditionalize the makefile for this target machine.
11579 tmake_file_=
11580 for f in ${tmake_file}
11582 if test -f ${srcdir}/config/$f
11583 then
11584 tmake_file_="${tmake_file_} \$(srcdir)/config/$f"
11586 done
11587 tmake_file="${tmake_file_}"
11589 out_object_file=`basename $out_file .c`.o
11590 common_out_object_file=`basename $common_out_file .c`.o
11592 tm_file_list="options.h"
11593 tm_include_list="options.h insn-constants.h"
11594 for f in $tm_file; do
11595 case $f in
11596 ./* )
11597 f=`echo $f | sed 's/^..//'`
11598 tm_file_list="${tm_file_list} $f"
11599 tm_include_list="${tm_include_list} $f"
11601 defaults.h )
11602 tm_file_list="${tm_file_list} \$(srcdir)/$f"
11603 tm_include_list="${tm_include_list} $f"
11606 tm_file_list="${tm_file_list} \$(srcdir)/config/$f"
11607 tm_include_list="${tm_include_list} config/$f"
11609 esac
11610 done
11612 tm_p_file_list=
11613 tm_p_include_list=
11614 for f in $tm_p_file; do
11615 case $f in
11616 tm-preds.h )
11617 tm_p_file_list="${tm_p_file_list} $f"
11618 tm_p_include_list="${tm_p_include_list} $f"
11621 tm_p_file_list="${tm_p_file_list} \$(srcdir)/config/$f"
11622 tm_p_include_list="${tm_p_include_list} config/$f"
11623 esac
11624 done
11626 xm_file_list=
11627 xm_include_list=
11628 for f in $xm_file; do
11629 case $f in
11630 ansidecl.h )
11631 xm_file_list="${xm_file_list} \$(srcdir)/../include/$f"
11632 xm_include_list="${xm_include_list} $f"
11634 auto-host.h )
11635 xm_file_list="${xm_file_list} $f"
11636 xm_include_list="${xm_include_list} $f"
11639 xm_file_list="${xm_file_list} \$(srcdir)/config/$f"
11640 xm_include_list="${xm_include_list} config/$f"
11642 esac
11643 done
11645 host_xm_file_list=
11646 host_xm_include_list=
11647 for f in $host_xm_file; do
11648 case $f in
11649 ansidecl.h )
11650 host_xm_file_list="${host_xm_file_list} \$(srcdir)/../include/$f"
11651 host_xm_include_list="${host_xm_include_list} $f"
11653 auto-host.h )
11654 host_xm_file_list="${host_xm_file_list} $f"
11655 host_xm_include_list="${host_xm_include_list} $f"
11658 host_xm_file_list="${host_xm_file_list} \$(srcdir)/config/$f"
11659 host_xm_include_list="${host_xm_include_list} config/$f"
11661 esac
11662 done
11664 build_xm_file_list=
11665 for f in $build_xm_file; do
11666 case $f in
11667 ansidecl.h )
11668 build_xm_file_list="${build_xm_file_list} \$(srcdir)/../include/$f"
11669 build_xm_include_list="${build_xm_include_list} $f"
11671 auto-build.h | auto-host.h )
11672 build_xm_file_list="${build_xm_file_list} $f"
11673 build_xm_include_list="${build_xm_include_list} $f"
11676 build_xm_file_list="${build_xm_file_list} \$(srcdir)/config/$f"
11677 build_xm_include_list="${build_xm_include_list} config/$f"
11679 esac
11680 done
11682 # Define macro CROSS_DIRECTORY_STRUCTURE in compilation if this is a
11683 # cross-compiler which does not use the native headers and libraries.
11684 # Also use all.cross instead of all.internal and adjust SYSTEM_HEADER_DIR.
11685 CROSS=
11686 ALL=all.internal
11687 SYSTEM_HEADER_DIR='$(NATIVE_SYSTEM_HEADER_DIR)'
11689 if test "x$with_build_sysroot" != x; then
11690 build_system_header_dir=$with_build_sysroot'$${sysroot_headers_suffix}$(NATIVE_SYSTEM_HEADER_DIR)'
11691 else
11692 # This value is used, even on a native system, because
11693 # CROSS_SYSTEM_HEADER_DIR is just
11694 # $(TARGET_SYSTEM_ROOT)$(NATIVE_SYSTEM_HEADER_DIR).
11695 build_system_header_dir='$(CROSS_SYSTEM_HEADER_DIR)'
11698 if test x$host != x$target
11699 then
11700 CROSS="-DCROSS_DIRECTORY_STRUCTURE"
11701 ALL=all.cross
11702 SYSTEM_HEADER_DIR=$build_system_header_dir
11703 case "$host","$target" in
11704 # Darwin crosses can use the host system's libraries and headers,
11705 # because of the fat library support. Of course, it must be the
11706 # same version of Darwin on both sides. Allow the user to
11707 # just say --target=foo-darwin without a version number to mean
11708 # "the version on this system".
11709 *-*-darwin*,*-*-darwin*)
11710 hostos=`echo $host | sed 's/.*-darwin/darwin/'`
11711 targetos=`echo $target | sed 's/.*-darwin/darwin/'`
11712 if test $hostos = $targetos -o $targetos = darwin ; then
11713 CROSS=
11714 SYSTEM_HEADER_DIR='$(NATIVE_SYSTEM_HEADER_DIR)'
11715 with_headers=yes
11719 i?86-*-*,x86_64-*-* \
11720 | powerpc*-*-*,powerpc64*-*-*)
11721 CROSS="$CROSS -DNATIVE_CROSS" ;;
11722 esac
11724 case $target in
11725 *-*-mingw*)
11726 if test "x$with_headers" = x; then
11727 with_headers=yes
11732 esac
11733 elif test "x$TARGET_SYSTEM_ROOT" != x; then
11734 SYSTEM_HEADER_DIR=$build_system_header_dir
11737 # If this is a cross-compiler that does not
11738 # have its own set of headers then define
11739 # inhibit_libc
11741 # If this is using newlib, without having the headers available now,
11742 # then define inhibit_libc in LIBGCC2_CFLAGS.
11743 # This prevents libgcc2 from containing any code which requires libc
11744 # support.
11745 : ${inhibit_libc=false}
11746 if { { test x$host != x$target && test "x$with_sysroot" = x ; } ||
11747 test x$with_newlib = xyes ; } &&
11748 { test "x$with_headers" = x || test "x$with_headers" = xno ; } ; then
11749 inhibit_libc=true
11753 # When building gcc with a cross-compiler, we need to adjust things so
11754 # that the generator programs are still built with the native compiler.
11755 # Also, we cannot run fixincludes.
11757 # These are the normal (build=host) settings:
11758 CC_FOR_BUILD='$(CC)'
11759 CXX_FOR_BUILD='$(CXX)'
11760 BUILD_CFLAGS='$(ALL_CFLAGS)'
11761 BUILD_CXXFLAGS='$(ALL_CXXFLAGS)'
11762 BUILD_LDFLAGS='$(LDFLAGS)'
11763 STMP_FIXINC=stmp-fixinc
11765 # And these apply if build != host, or we are generating coverage data
11766 if test x$build != x$host || test "x$coverage_flags" != x
11767 then
11768 BUILD_CFLAGS='$(INTERNAL_CFLAGS) $(T_CFLAGS) $(CFLAGS_FOR_BUILD)'
11769 BUILD_LDFLAGS='$(LDFLAGS_FOR_BUILD)'
11772 # Expand extra_headers to include complete path.
11773 # This substitutes for lots of t-* files.
11774 extra_headers_list=
11775 # Prepend $(srcdir)/config/${cpu_type}/ to every entry in extra_headers.
11776 for file in ${extra_headers} ; do
11777 extra_headers_list="${extra_headers_list} \$(srcdir)/config/${cpu_type}/${file}"
11778 done
11780 # If use_gcc_tgmath is set, append ginclude/tgmath.h.
11781 if test x"$use_gcc_tgmath" = xyes
11782 then extra_headers_list="${extra_headers_list} \$(srcdir)/ginclude/tgmath.h"
11785 # Define collect2 in Makefile.
11786 case $host_can_use_collect2 in
11787 no) collect2= ;;
11788 *) collect2='collect2$(exeext)' ;;
11789 esac
11792 # Add a definition of USE_COLLECT2 if system wants one.
11793 case $use_collect2 in
11794 no) use_collect2= ;;
11795 "") ;;
11797 host_xm_defines="${host_xm_defines} USE_COLLECT2"
11798 xm_defines="${xm_defines} USE_COLLECT2"
11799 case $host_can_use_collect2 in
11801 as_fn_error "collect2 is required but cannot be built on this system" "$LINENO" 5
11803 esac
11805 esac
11808 cat >>confdefs.h <<_ACEOF
11809 #define LTOPLUGINSONAME "${host_lto_plugin_soname}"
11810 _ACEOF
11813 # ---------------------------
11814 # Assembler & linker features
11815 # ---------------------------
11817 # During stage 2, ld is actually gcc/collect-ld, which is a small script to
11818 # discern between when to use prev-ld/ld-new and when to use ld/ld-new.
11819 # However when ld-new is first executed from the build tree, libtool will
11820 # relink it as .libs/lt-ld-new, so that it can give it an RPATH that refers
11821 # to the build tree. While doing this we need to use the previous-stage
11822 # linker, or we have an infinite loop. The presence of a shell script as
11823 # ld/ld-new, and the fact that the script *uses ld itself*, is what confuses
11824 # the gcc/collect-ld script. So we need to know how libtool works, or
11825 # exec-tool will fail.
11828 case `pwd` in
11829 *\ * | *\ *)
11830 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&5
11831 $as_echo "$as_me: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&2;} ;;
11832 esac
11836 macro_version='2.2.7a'
11837 macro_revision='1.3134'
11851 ltmain="$ac_aux_dir/ltmain.sh"
11853 # Backslashify metacharacters that are still active within
11854 # double-quoted strings.
11855 sed_quote_subst='s/\(["`$\\]\)/\\\1/g'
11857 # Same as above, but do not quote variable references.
11858 double_quote_subst='s/\(["`\\]\)/\\\1/g'
11860 # Sed substitution to delay expansion of an escaped shell variable in a
11861 # double_quote_subst'ed string.
11862 delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
11864 # Sed substitution to delay expansion of an escaped single quote.
11865 delay_single_quote_subst='s/'\''/'\'\\\\\\\'\''/g'
11867 # Sed substitution to avoid accidental globbing in evaled expressions
11868 no_glob_subst='s/\*/\\\*/g'
11870 ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
11871 ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO
11872 ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO$ECHO
11874 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to print strings" >&5
11875 $as_echo_n "checking how to print strings... " >&6; }
11876 # Test print first, because it will be a builtin if present.
11877 if test "X`print -r -- -n 2>/dev/null`" = X-n && \
11878 test "X`print -r -- $ECHO 2>/dev/null`" = "X$ECHO"; then
11879 ECHO='print -r --'
11880 elif test "X`printf %s $ECHO 2>/dev/null`" = "X$ECHO"; then
11881 ECHO='printf %s\n'
11882 else
11883 # Use this function as a fallback that always works.
11884 func_fallback_echo ()
11886 eval 'cat <<_LTECHO_EOF
11888 _LTECHO_EOF'
11890 ECHO='func_fallback_echo'
11893 # func_echo_all arg...
11894 # Invoke $ECHO with all args, space-separated.
11895 func_echo_all ()
11897 $ECHO ""
11900 case "$ECHO" in
11901 printf*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: printf" >&5
11902 $as_echo "printf" >&6; } ;;
11903 print*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: print -r" >&5
11904 $as_echo "print -r" >&6; } ;;
11905 *) { $as_echo "$as_me:${as_lineno-$LINENO}: result: cat" >&5
11906 $as_echo "cat" >&6; } ;;
11907 esac
11922 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5
11923 $as_echo_n "checking for a sed that does not truncate output... " >&6; }
11924 if test "${ac_cv_path_SED+set}" = set; then :
11925 $as_echo_n "(cached) " >&6
11926 else
11927 ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
11928 for ac_i in 1 2 3 4 5 6 7; do
11929 ac_script="$ac_script$as_nl$ac_script"
11930 done
11931 echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed
11932 { ac_script=; unset ac_script;}
11933 if test -z "$SED"; then
11934 ac_path_SED_found=false
11935 # Loop through the user's path and test for each of PROGNAME-LIST
11936 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11937 for as_dir in $PATH
11939 IFS=$as_save_IFS
11940 test -z "$as_dir" && as_dir=.
11941 for ac_prog in sed gsed; do
11942 for ac_exec_ext in '' $ac_executable_extensions; do
11943 ac_path_SED="$as_dir/$ac_prog$ac_exec_ext"
11944 { test -f "$ac_path_SED" && $as_test_x "$ac_path_SED"; } || continue
11945 # Check for GNU ac_path_SED and select it if it is found.
11946 # Check for GNU $ac_path_SED
11947 case `"$ac_path_SED" --version 2>&1` in
11948 *GNU*)
11949 ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
11951 ac_count=0
11952 $as_echo_n 0123456789 >"conftest.in"
11953 while :
11955 cat "conftest.in" "conftest.in" >"conftest.tmp"
11956 mv "conftest.tmp" "conftest.in"
11957 cp "conftest.in" "conftest.nl"
11958 $as_echo '' >> "conftest.nl"
11959 "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break
11960 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
11961 as_fn_arith $ac_count + 1 && ac_count=$as_val
11962 if test $ac_count -gt ${ac_path_SED_max-0}; then
11963 # Best one so far, save it but keep looking for a better one
11964 ac_cv_path_SED="$ac_path_SED"
11965 ac_path_SED_max=$ac_count
11967 # 10*(2^10) chars as input seems more than enough
11968 test $ac_count -gt 10 && break
11969 done
11970 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
11971 esac
11973 $ac_path_SED_found && break 3
11974 done
11975 done
11976 done
11977 IFS=$as_save_IFS
11978 if test -z "$ac_cv_path_SED"; then
11979 as_fn_error "no acceptable sed could be found in \$PATH" "$LINENO" 5
11981 else
11982 ac_cv_path_SED=$SED
11986 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5
11987 $as_echo "$ac_cv_path_SED" >&6; }
11988 SED="$ac_cv_path_SED"
11989 rm -f conftest.sed
11991 test -z "$SED" && SED=sed
11992 Xsed="$SED -e 1s/^X//"
12004 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for fgrep" >&5
12005 $as_echo_n "checking for fgrep... " >&6; }
12006 if test "${ac_cv_path_FGREP+set}" = set; then :
12007 $as_echo_n "(cached) " >&6
12008 else
12009 if echo 'ab*c' | $GREP -F 'ab*c' >/dev/null 2>&1
12010 then ac_cv_path_FGREP="$GREP -F"
12011 else
12012 if test -z "$FGREP"; then
12013 ac_path_FGREP_found=false
12014 # Loop through the user's path and test for each of PROGNAME-LIST
12015 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12016 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
12018 IFS=$as_save_IFS
12019 test -z "$as_dir" && as_dir=.
12020 for ac_prog in fgrep; do
12021 for ac_exec_ext in '' $ac_executable_extensions; do
12022 ac_path_FGREP="$as_dir/$ac_prog$ac_exec_ext"
12023 { test -f "$ac_path_FGREP" && $as_test_x "$ac_path_FGREP"; } || continue
12024 # Check for GNU ac_path_FGREP and select it if it is found.
12025 # Check for GNU $ac_path_FGREP
12026 case `"$ac_path_FGREP" --version 2>&1` in
12027 *GNU*)
12028 ac_cv_path_FGREP="$ac_path_FGREP" ac_path_FGREP_found=:;;
12030 ac_count=0
12031 $as_echo_n 0123456789 >"conftest.in"
12032 while :
12034 cat "conftest.in" "conftest.in" >"conftest.tmp"
12035 mv "conftest.tmp" "conftest.in"
12036 cp "conftest.in" "conftest.nl"
12037 $as_echo 'FGREP' >> "conftest.nl"
12038 "$ac_path_FGREP" FGREP < "conftest.nl" >"conftest.out" 2>/dev/null || break
12039 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
12040 as_fn_arith $ac_count + 1 && ac_count=$as_val
12041 if test $ac_count -gt ${ac_path_FGREP_max-0}; then
12042 # Best one so far, save it but keep looking for a better one
12043 ac_cv_path_FGREP="$ac_path_FGREP"
12044 ac_path_FGREP_max=$ac_count
12046 # 10*(2^10) chars as input seems more than enough
12047 test $ac_count -gt 10 && break
12048 done
12049 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
12050 esac
12052 $ac_path_FGREP_found && break 3
12053 done
12054 done
12055 done
12056 IFS=$as_save_IFS
12057 if test -z "$ac_cv_path_FGREP"; then
12058 as_fn_error "no acceptable fgrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
12060 else
12061 ac_cv_path_FGREP=$FGREP
12066 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_FGREP" >&5
12067 $as_echo "$ac_cv_path_FGREP" >&6; }
12068 FGREP="$ac_cv_path_FGREP"
12071 test -z "$GREP" && GREP=grep
12091 # Check whether --with-gnu-ld was given.
12092 if test "${with_gnu_ld+set}" = set; then :
12093 withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
12094 else
12095 with_gnu_ld=no
12098 ac_prog=ld
12099 if test "$GCC" = yes; then
12100 # Check if gcc -print-prog-name=ld gives a path.
12101 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
12102 $as_echo_n "checking for ld used by $CC... " >&6; }
12103 case $host in
12104 *-*-mingw*)
12105 # gcc leaves a trailing carriage return which upsets mingw
12106 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
12108 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
12109 esac
12110 case $ac_prog in
12111 # Accept absolute paths.
12112 [\\/]* | ?:[\\/]*)
12113 re_direlt='/[^/][^/]*/\.\./'
12114 # Canonicalize the pathname of ld
12115 ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
12116 while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
12117 ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
12118 done
12119 test -z "$LD" && LD="$ac_prog"
12122 # If it fails, then pretend we aren't using GCC.
12123 ac_prog=ld
12126 # If it is relative, then search for the first ld in PATH.
12127 with_gnu_ld=unknown
12129 esac
12130 elif test "$with_gnu_ld" = yes; then
12131 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
12132 $as_echo_n "checking for GNU ld... " >&6; }
12133 else
12134 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
12135 $as_echo_n "checking for non-GNU ld... " >&6; }
12137 if test "${lt_cv_path_LD+set}" = set; then :
12138 $as_echo_n "(cached) " >&6
12139 else
12140 if test -z "$LD"; then
12141 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
12142 for ac_dir in $PATH; do
12143 IFS="$lt_save_ifs"
12144 test -z "$ac_dir" && ac_dir=.
12145 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
12146 lt_cv_path_LD="$ac_dir/$ac_prog"
12147 # Check to see if the program is GNU ld. I'd rather use --version,
12148 # but apparently some variants of GNU ld only accept -v.
12149 # Break only if it was the GNU/non-GNU ld that we prefer.
12150 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
12151 *GNU* | *'with BFD'*)
12152 test "$with_gnu_ld" != no && break
12155 test "$with_gnu_ld" != yes && break
12157 esac
12159 done
12160 IFS="$lt_save_ifs"
12161 else
12162 lt_cv_path_LD="$LD" # Let the user override the test with a path.
12166 LD="$lt_cv_path_LD"
12167 if test -n "$LD"; then
12168 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
12169 $as_echo "$LD" >&6; }
12170 else
12171 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12172 $as_echo "no" >&6; }
12174 test -z "$LD" && as_fn_error "no acceptable ld found in \$PATH" "$LINENO" 5
12175 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
12176 $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
12177 if test "${lt_cv_prog_gnu_ld+set}" = set; then :
12178 $as_echo_n "(cached) " >&6
12179 else
12180 # I'd rather use --version here, but apparently some GNU lds only accept -v.
12181 case `$LD -v 2>&1 </dev/null` in
12182 *GNU* | *'with BFD'*)
12183 lt_cv_prog_gnu_ld=yes
12186 lt_cv_prog_gnu_ld=no
12188 esac
12190 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
12191 $as_echo "$lt_cv_prog_gnu_ld" >&6; }
12192 with_gnu_ld=$lt_cv_prog_gnu_ld
12202 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for BSD- or MS-compatible name lister (nm)" >&5
12203 $as_echo_n "checking for BSD- or MS-compatible name lister (nm)... " >&6; }
12204 if test "${lt_cv_path_NM+set}" = set; then :
12205 $as_echo_n "(cached) " >&6
12206 else
12207 if test -n "$NM"; then
12208 # Let the user override the test.
12209 lt_cv_path_NM="$NM"
12210 else
12211 lt_nm_to_check="${ac_tool_prefix}nm"
12212 if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
12213 lt_nm_to_check="$lt_nm_to_check nm"
12215 for lt_tmp_nm in $lt_nm_to_check; do
12216 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
12217 for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
12218 IFS="$lt_save_ifs"
12219 test -z "$ac_dir" && ac_dir=.
12220 tmp_nm="$ac_dir/$lt_tmp_nm"
12221 if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
12222 # Check to see if the nm accepts a BSD-compat flag.
12223 # Adding the `sed 1q' prevents false positives on HP-UX, which says:
12224 # nm: unknown option "B" ignored
12225 # Tru64's nm complains that /dev/null is an invalid object file
12226 case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
12227 */dev/null* | *'Invalid file or object type'*)
12228 lt_cv_path_NM="$tmp_nm -B"
12229 break
12232 case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
12233 */dev/null*)
12234 lt_cv_path_NM="$tmp_nm -p"
12235 break
12238 lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
12239 continue # so that we can try to find one that supports BSD flags
12241 esac
12243 esac
12245 done
12246 IFS="$lt_save_ifs"
12247 done
12248 : ${lt_cv_path_NM=no}
12251 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_NM" >&5
12252 $as_echo "$lt_cv_path_NM" >&6; }
12253 if test "$lt_cv_path_NM" != "no"; then
12254 NM="$lt_cv_path_NM"
12255 else
12256 # Didn't find any BSD compatible name lister, look for dumpbin.
12257 if test -n "$DUMPBIN"; then :
12258 # Let the user override the test.
12259 else
12260 if test -n "$ac_tool_prefix"; then
12261 for ac_prog in dumpbin "link -dump"
12263 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
12264 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
12265 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12266 $as_echo_n "checking for $ac_word... " >&6; }
12267 if test "${ac_cv_prog_DUMPBIN+set}" = set; then :
12268 $as_echo_n "(cached) " >&6
12269 else
12270 if test -n "$DUMPBIN"; then
12271 ac_cv_prog_DUMPBIN="$DUMPBIN" # Let the user override the test.
12272 else
12273 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12274 for as_dir in $PATH
12276 IFS=$as_save_IFS
12277 test -z "$as_dir" && as_dir=.
12278 for ac_exec_ext in '' $ac_executable_extensions; do
12279 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12280 ac_cv_prog_DUMPBIN="$ac_tool_prefix$ac_prog"
12281 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12282 break 2
12284 done
12285 done
12286 IFS=$as_save_IFS
12290 DUMPBIN=$ac_cv_prog_DUMPBIN
12291 if test -n "$DUMPBIN"; then
12292 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DUMPBIN" >&5
12293 $as_echo "$DUMPBIN" >&6; }
12294 else
12295 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12296 $as_echo "no" >&6; }
12300 test -n "$DUMPBIN" && break
12301 done
12303 if test -z "$DUMPBIN"; then
12304 ac_ct_DUMPBIN=$DUMPBIN
12305 for ac_prog in dumpbin "link -dump"
12307 # Extract the first word of "$ac_prog", so it can be a program name with args.
12308 set dummy $ac_prog; ac_word=$2
12309 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12310 $as_echo_n "checking for $ac_word... " >&6; }
12311 if test "${ac_cv_prog_ac_ct_DUMPBIN+set}" = set; then :
12312 $as_echo_n "(cached) " >&6
12313 else
12314 if test -n "$ac_ct_DUMPBIN"; then
12315 ac_cv_prog_ac_ct_DUMPBIN="$ac_ct_DUMPBIN" # Let the user override the test.
12316 else
12317 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12318 for as_dir in $PATH
12320 IFS=$as_save_IFS
12321 test -z "$as_dir" && as_dir=.
12322 for ac_exec_ext in '' $ac_executable_extensions; do
12323 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12324 ac_cv_prog_ac_ct_DUMPBIN="$ac_prog"
12325 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12326 break 2
12328 done
12329 done
12330 IFS=$as_save_IFS
12334 ac_ct_DUMPBIN=$ac_cv_prog_ac_ct_DUMPBIN
12335 if test -n "$ac_ct_DUMPBIN"; then
12336 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DUMPBIN" >&5
12337 $as_echo "$ac_ct_DUMPBIN" >&6; }
12338 else
12339 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12340 $as_echo "no" >&6; }
12344 test -n "$ac_ct_DUMPBIN" && break
12345 done
12347 if test "x$ac_ct_DUMPBIN" = x; then
12348 DUMPBIN=":"
12349 else
12350 case $cross_compiling:$ac_tool_warned in
12351 yes:)
12352 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
12353 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
12354 ac_tool_warned=yes ;;
12355 esac
12356 DUMPBIN=$ac_ct_DUMPBIN
12360 case `$DUMPBIN -symbols /dev/null 2>&1 | sed '1q'` in
12361 *COFF*)
12362 DUMPBIN="$DUMPBIN -symbols"
12365 DUMPBIN=:
12367 esac
12370 if test "$DUMPBIN" != ":"; then
12371 NM="$DUMPBIN"
12374 test -z "$NM" && NM=nm
12381 { $as_echo "$as_me:${as_lineno-$LINENO}: checking the name lister ($NM) interface" >&5
12382 $as_echo_n "checking the name lister ($NM) interface... " >&6; }
12383 if test "${lt_cv_nm_interface+set}" = set; then :
12384 $as_echo_n "(cached) " >&6
12385 else
12386 lt_cv_nm_interface="BSD nm"
12387 echo "int some_variable = 0;" > conftest.$ac_ext
12388 (eval echo "\"\$as_me:$LINENO: $ac_compile\"" >&5)
12389 (eval "$ac_compile" 2>conftest.err)
12390 cat conftest.err >&5
12391 (eval echo "\"\$as_me:$LINENO: $NM \\\"conftest.$ac_objext\\\"\"" >&5)
12392 (eval "$NM \"conftest.$ac_objext\"" 2>conftest.err > conftest.out)
12393 cat conftest.err >&5
12394 (eval echo "\"\$as_me:$LINENO: output\"" >&5)
12395 cat conftest.out >&5
12396 if $GREP 'External.*some_variable' conftest.out > /dev/null; then
12397 lt_cv_nm_interface="MS dumpbin"
12399 rm -f conftest*
12401 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_nm_interface" >&5
12402 $as_echo "$lt_cv_nm_interface" >&6; }
12404 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5
12405 $as_echo_n "checking whether ln -s works... " >&6; }
12406 LN_S=$as_ln_s
12407 if test "$LN_S" = "ln -s"; then
12408 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12409 $as_echo "yes" >&6; }
12410 else
12411 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5
12412 $as_echo "no, using $LN_S" >&6; }
12415 # find the maximum length of command line arguments
12416 { $as_echo "$as_me:${as_lineno-$LINENO}: checking the maximum length of command line arguments" >&5
12417 $as_echo_n "checking the maximum length of command line arguments... " >&6; }
12418 if test "${lt_cv_sys_max_cmd_len+set}" = set; then :
12419 $as_echo_n "(cached) " >&6
12420 else
12422 teststring="ABCD"
12424 case $build_os in
12425 msdosdjgpp*)
12426 # On DJGPP, this test can blow up pretty badly due to problems in libc
12427 # (any single argument exceeding 2000 bytes causes a buffer overrun
12428 # during glob expansion). Even if it were fixed, the result of this
12429 # check would be larger than it should be.
12430 lt_cv_sys_max_cmd_len=12288; # 12K is about right
12433 gnu*)
12434 # Under GNU Hurd, this test is not required because there is
12435 # no limit to the length of command line arguments.
12436 # Libtool will interpret -1 as no limit whatsoever
12437 lt_cv_sys_max_cmd_len=-1;
12440 cygwin* | mingw* | cegcc*)
12441 # On Win9x/ME, this test blows up -- it succeeds, but takes
12442 # about 5 minutes as the teststring grows exponentially.
12443 # Worse, since 9x/ME are not pre-emptively multitasking,
12444 # you end up with a "frozen" computer, even though with patience
12445 # the test eventually succeeds (with a max line length of 256k).
12446 # Instead, let's just punt: use the minimum linelength reported by
12447 # all of the supported platforms: 8192 (on NT/2K/XP).
12448 lt_cv_sys_max_cmd_len=8192;
12451 mint*)
12452 # On MiNT this can take a long time and run out of memory.
12453 lt_cv_sys_max_cmd_len=8192;
12456 amigaos*)
12457 # On AmigaOS with pdksh, this test takes hours, literally.
12458 # So we just punt and use a minimum line length of 8192.
12459 lt_cv_sys_max_cmd_len=8192;
12462 netbsd* | freebsd* | openbsd* | darwin* | dragonfly*)
12463 # This has been around since 386BSD, at least. Likely further.
12464 if test -x /sbin/sysctl; then
12465 lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
12466 elif test -x /usr/sbin/sysctl; then
12467 lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
12468 else
12469 lt_cv_sys_max_cmd_len=65536 # usable default for all BSDs
12471 # And add a safety zone
12472 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
12473 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
12476 interix*)
12477 # We know the value 262144 and hardcode it with a safety zone (like BSD)
12478 lt_cv_sys_max_cmd_len=196608
12481 osf*)
12482 # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
12483 # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
12484 # nice to cause kernel panics so lets avoid the loop below.
12485 # First set a reasonable default.
12486 lt_cv_sys_max_cmd_len=16384
12488 if test -x /sbin/sysconfig; then
12489 case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
12490 *1*) lt_cv_sys_max_cmd_len=-1 ;;
12491 esac
12494 sco3.2v5*)
12495 lt_cv_sys_max_cmd_len=102400
12497 sysv5* | sco5v6* | sysv4.2uw2*)
12498 kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
12499 if test -n "$kargmax"; then
12500 lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[ ]//'`
12501 else
12502 lt_cv_sys_max_cmd_len=32768
12506 lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null`
12507 if test -n "$lt_cv_sys_max_cmd_len"; then
12508 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
12509 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
12510 else
12511 # Make teststring a little bigger before we do anything with it.
12512 # a 1K string should be a reasonable start.
12513 for i in 1 2 3 4 5 6 7 8 ; do
12514 teststring=$teststring$teststring
12515 done
12516 SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
12517 # If test is not a shell built-in, we'll probably end up computing a
12518 # maximum length that is only half of the actual maximum length, but
12519 # we can't tell.
12520 while { test "X"`func_fallback_echo "$teststring$teststring" 2>/dev/null` \
12521 = "X$teststring$teststring"; } >/dev/null 2>&1 &&
12522 test $i != 17 # 1/2 MB should be enough
12524 i=`expr $i + 1`
12525 teststring=$teststring$teststring
12526 done
12527 # Only check the string length outside the loop.
12528 lt_cv_sys_max_cmd_len=`expr "X$teststring" : ".*" 2>&1`
12529 teststring=
12530 # Add a significant safety factor because C++ compilers can tack on
12531 # massive amounts of additional arguments before passing them to the
12532 # linker. It appears as though 1/2 is a usable value.
12533 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
12536 esac
12540 if test -n $lt_cv_sys_max_cmd_len ; then
12541 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_max_cmd_len" >&5
12542 $as_echo "$lt_cv_sys_max_cmd_len" >&6; }
12543 else
12544 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none" >&5
12545 $as_echo "none" >&6; }
12547 max_cmd_len=$lt_cv_sys_max_cmd_len
12554 : ${CP="cp -f"}
12555 : ${MV="mv -f"}
12556 : ${RM="rm -f"}
12558 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands some XSI constructs" >&5
12559 $as_echo_n "checking whether the shell understands some XSI constructs... " >&6; }
12560 # Try some XSI features
12561 xsi_shell=no
12562 ( _lt_dummy="a/b/c"
12563 test "${_lt_dummy##*/},${_lt_dummy%/*},"${_lt_dummy%"$_lt_dummy"}, \
12564 = c,a/b,, \
12565 && eval 'test $(( 1 + 1 )) -eq 2 \
12566 && test "${#_lt_dummy}" -eq 5' ) >/dev/null 2>&1 \
12567 && xsi_shell=yes
12568 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xsi_shell" >&5
12569 $as_echo "$xsi_shell" >&6; }
12572 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands \"+=\"" >&5
12573 $as_echo_n "checking whether the shell understands \"+=\"... " >&6; }
12574 lt_shell_append=no
12575 ( foo=bar; set foo baz; eval "$1+=\$2" && test "$foo" = barbaz ) \
12576 >/dev/null 2>&1 \
12577 && lt_shell_append=yes
12578 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_shell_append" >&5
12579 $as_echo "$lt_shell_append" >&6; }
12582 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
12583 lt_unset=unset
12584 else
12585 lt_unset=false
12592 # test EBCDIC or ASCII
12593 case `echo X|tr X '\101'` in
12594 A) # ASCII based system
12595 # \n is not interpreted correctly by Solaris 8 /usr/ucb/tr
12596 lt_SP2NL='tr \040 \012'
12597 lt_NL2SP='tr \015\012 \040\040'
12599 *) # EBCDIC based system
12600 lt_SP2NL='tr \100 \n'
12601 lt_NL2SP='tr \r\n \100\100'
12603 esac
12613 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $LD option to reload object files" >&5
12614 $as_echo_n "checking for $LD option to reload object files... " >&6; }
12615 if test "${lt_cv_ld_reload_flag+set}" = set; then :
12616 $as_echo_n "(cached) " >&6
12617 else
12618 lt_cv_ld_reload_flag='-r'
12620 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_reload_flag" >&5
12621 $as_echo "$lt_cv_ld_reload_flag" >&6; }
12622 reload_flag=$lt_cv_ld_reload_flag
12623 case $reload_flag in
12624 "" | " "*) ;;
12625 *) reload_flag=" $reload_flag" ;;
12626 esac
12627 reload_cmds='$LD$reload_flag -o $output$reload_objs'
12628 case $host_os in
12629 darwin*)
12630 if test "$GCC" = yes; then
12631 reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r -o $output$reload_objs'
12632 else
12633 reload_cmds='$LD$reload_flag -o $output$reload_objs'
12636 esac
12646 if test -n "$ac_tool_prefix"; then
12647 # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args.
12648 set dummy ${ac_tool_prefix}objdump; ac_word=$2
12649 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12650 $as_echo_n "checking for $ac_word... " >&6; }
12651 if test "${ac_cv_prog_OBJDUMP+set}" = set; then :
12652 $as_echo_n "(cached) " >&6
12653 else
12654 if test -n "$OBJDUMP"; then
12655 ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
12656 else
12657 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12658 for as_dir in $PATH
12660 IFS=$as_save_IFS
12661 test -z "$as_dir" && as_dir=.
12662 for ac_exec_ext in '' $ac_executable_extensions; do
12663 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12664 ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump"
12665 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12666 break 2
12668 done
12669 done
12670 IFS=$as_save_IFS
12674 OBJDUMP=$ac_cv_prog_OBJDUMP
12675 if test -n "$OBJDUMP"; then
12676 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5
12677 $as_echo "$OBJDUMP" >&6; }
12678 else
12679 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12680 $as_echo "no" >&6; }
12685 if test -z "$ac_cv_prog_OBJDUMP"; then
12686 ac_ct_OBJDUMP=$OBJDUMP
12687 # Extract the first word of "objdump", so it can be a program name with args.
12688 set dummy objdump; ac_word=$2
12689 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12690 $as_echo_n "checking for $ac_word... " >&6; }
12691 if test "${ac_cv_prog_ac_ct_OBJDUMP+set}" = set; then :
12692 $as_echo_n "(cached) " >&6
12693 else
12694 if test -n "$ac_ct_OBJDUMP"; then
12695 ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test.
12696 else
12697 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12698 for as_dir in $PATH
12700 IFS=$as_save_IFS
12701 test -z "$as_dir" && as_dir=.
12702 for ac_exec_ext in '' $ac_executable_extensions; do
12703 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12704 ac_cv_prog_ac_ct_OBJDUMP="objdump"
12705 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12706 break 2
12708 done
12709 done
12710 IFS=$as_save_IFS
12714 ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP
12715 if test -n "$ac_ct_OBJDUMP"; then
12716 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5
12717 $as_echo "$ac_ct_OBJDUMP" >&6; }
12718 else
12719 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12720 $as_echo "no" >&6; }
12723 if test "x$ac_ct_OBJDUMP" = x; then
12724 OBJDUMP="false"
12725 else
12726 case $cross_compiling:$ac_tool_warned in
12727 yes:)
12728 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
12729 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
12730 ac_tool_warned=yes ;;
12731 esac
12732 OBJDUMP=$ac_ct_OBJDUMP
12734 else
12735 OBJDUMP="$ac_cv_prog_OBJDUMP"
12738 test -z "$OBJDUMP" && OBJDUMP=objdump
12748 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to recognize dependent libraries" >&5
12749 $as_echo_n "checking how to recognize dependent libraries... " >&6; }
12750 if test "${lt_cv_deplibs_check_method+set}" = set; then :
12751 $as_echo_n "(cached) " >&6
12752 else
12753 lt_cv_file_magic_cmd='$MAGIC_CMD'
12754 lt_cv_file_magic_test_file=
12755 lt_cv_deplibs_check_method='unknown'
12756 # Need to set the preceding variable on all platforms that support
12757 # interlibrary dependencies.
12758 # 'none' -- dependencies not supported.
12759 # `unknown' -- same as none, but documents that we really don't know.
12760 # 'pass_all' -- all dependencies passed with no checks.
12761 # 'test_compile' -- check by making test program.
12762 # 'file_magic [[regex]]' -- check by looking for files in library path
12763 # which responds to the $file_magic_cmd with a given extended regex.
12764 # If you have `file' or equivalent on your system and you're not sure
12765 # whether `pass_all' will *always* work, you probably want this one.
12767 case $host_os in
12768 aix[4-9]*)
12769 lt_cv_deplibs_check_method=pass_all
12772 beos*)
12773 lt_cv_deplibs_check_method=pass_all
12776 bsdi[45]*)
12777 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
12778 lt_cv_file_magic_cmd='/usr/bin/file -L'
12779 lt_cv_file_magic_test_file=/shlib/libc.so
12782 cygwin*)
12783 # func_win32_libid is a shell function defined in ltmain.sh
12784 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
12785 lt_cv_file_magic_cmd='func_win32_libid'
12788 mingw* | pw32*)
12789 # Base MSYS/MinGW do not provide the 'file' command needed by
12790 # func_win32_libid shell function, so use a weaker test based on 'objdump',
12791 # unless we find 'file', for example because we are cross-compiling.
12792 # func_win32_libid assumes BSD nm, so disallow it if using MS dumpbin.
12793 if ( test "$lt_cv_nm_interface" = "BSD nm" && file / ) >/dev/null 2>&1; then
12794 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
12795 lt_cv_file_magic_cmd='func_win32_libid'
12796 else
12797 lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?'
12798 lt_cv_file_magic_cmd='$OBJDUMP -f'
12802 cegcc*)
12803 # use the weaker test based on 'objdump'. See mingw*.
12804 lt_cv_deplibs_check_method='file_magic file format pe-arm-.*little(.*architecture: arm)?'
12805 lt_cv_file_magic_cmd='$OBJDUMP -f'
12808 darwin* | rhapsody*)
12809 lt_cv_deplibs_check_method=pass_all
12812 freebsd* | dragonfly*)
12813 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
12814 case $host_cpu in
12815 i*86 )
12816 # Not sure whether the presence of OpenBSD here was a mistake.
12817 # Let's accept both of them until this is cleared up.
12818 lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
12819 lt_cv_file_magic_cmd=/usr/bin/file
12820 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
12822 esac
12823 else
12824 lt_cv_deplibs_check_method=pass_all
12828 gnu*)
12829 lt_cv_deplibs_check_method=pass_all
12832 haiku*)
12833 lt_cv_deplibs_check_method=pass_all
12836 hpux10.20* | hpux11*)
12837 lt_cv_file_magic_cmd=/usr/bin/file
12838 case $host_cpu in
12839 ia64*)
12840 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
12841 lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
12843 hppa*64*)
12844 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]'
12845 lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
12848 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9]\.[0-9]) shared library'
12849 lt_cv_file_magic_test_file=/usr/lib/libc.sl
12851 esac
12854 interix[3-9]*)
12855 # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
12856 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
12859 irix5* | irix6* | nonstopux*)
12860 case $LD in
12861 *-32|*"-32 ") libmagic=32-bit;;
12862 *-n32|*"-n32 ") libmagic=N32;;
12863 *-64|*"-64 ") libmagic=64-bit;;
12864 *) libmagic=never-match;;
12865 esac
12866 lt_cv_deplibs_check_method=pass_all
12869 # This must be Linux ELF.
12870 linux* | k*bsd*-gnu | kopensolaris*-gnu)
12871 lt_cv_deplibs_check_method=pass_all
12874 netbsd*)
12875 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
12876 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
12877 else
12878 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
12882 newos6*)
12883 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
12884 lt_cv_file_magic_cmd=/usr/bin/file
12885 lt_cv_file_magic_test_file=/usr/lib/libnls.so
12888 *nto* | *qnx*)
12889 lt_cv_deplibs_check_method=pass_all
12892 openbsd*)
12893 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
12894 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
12895 else
12896 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
12900 osf3* | osf4* | osf5*)
12901 lt_cv_deplibs_check_method=pass_all
12904 rdos*)
12905 lt_cv_deplibs_check_method=pass_all
12908 solaris*)
12909 lt_cv_deplibs_check_method=pass_all
12912 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
12913 lt_cv_deplibs_check_method=pass_all
12916 sysv4 | sysv4.3*)
12917 case $host_vendor in
12918 motorola)
12919 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]'
12920 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
12922 ncr)
12923 lt_cv_deplibs_check_method=pass_all
12925 sequent)
12926 lt_cv_file_magic_cmd='/bin/file'
12927 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
12929 sni)
12930 lt_cv_file_magic_cmd='/bin/file'
12931 lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
12932 lt_cv_file_magic_test_file=/lib/libc.so
12934 siemens)
12935 lt_cv_deplibs_check_method=pass_all
12938 lt_cv_deplibs_check_method=pass_all
12940 esac
12943 tpf*)
12944 lt_cv_deplibs_check_method=pass_all
12946 esac
12949 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_deplibs_check_method" >&5
12950 $as_echo "$lt_cv_deplibs_check_method" >&6; }
12951 file_magic_cmd=$lt_cv_file_magic_cmd
12952 deplibs_check_method=$lt_cv_deplibs_check_method
12953 test -z "$deplibs_check_method" && deplibs_check_method=unknown
12966 if test -n "$ac_tool_prefix"; then
12967 # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
12968 set dummy ${ac_tool_prefix}ar; ac_word=$2
12969 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12970 $as_echo_n "checking for $ac_word... " >&6; }
12971 if test "${ac_cv_prog_AR+set}" = set; then :
12972 $as_echo_n "(cached) " >&6
12973 else
12974 if test -n "$AR"; then
12975 ac_cv_prog_AR="$AR" # Let the user override the test.
12976 else
12977 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12978 for as_dir in $PATH
12980 IFS=$as_save_IFS
12981 test -z "$as_dir" && as_dir=.
12982 for ac_exec_ext in '' $ac_executable_extensions; do
12983 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12984 ac_cv_prog_AR="${ac_tool_prefix}ar"
12985 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12986 break 2
12988 done
12989 done
12990 IFS=$as_save_IFS
12994 AR=$ac_cv_prog_AR
12995 if test -n "$AR"; then
12996 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
12997 $as_echo "$AR" >&6; }
12998 else
12999 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13000 $as_echo "no" >&6; }
13005 if test -z "$ac_cv_prog_AR"; then
13006 ac_ct_AR=$AR
13007 # Extract the first word of "ar", so it can be a program name with args.
13008 set dummy ar; ac_word=$2
13009 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13010 $as_echo_n "checking for $ac_word... " >&6; }
13011 if test "${ac_cv_prog_ac_ct_AR+set}" = set; then :
13012 $as_echo_n "(cached) " >&6
13013 else
13014 if test -n "$ac_ct_AR"; then
13015 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
13016 else
13017 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13018 for as_dir in $PATH
13020 IFS=$as_save_IFS
13021 test -z "$as_dir" && as_dir=.
13022 for ac_exec_ext in '' $ac_executable_extensions; do
13023 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
13024 ac_cv_prog_ac_ct_AR="ar"
13025 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13026 break 2
13028 done
13029 done
13030 IFS=$as_save_IFS
13034 ac_ct_AR=$ac_cv_prog_ac_ct_AR
13035 if test -n "$ac_ct_AR"; then
13036 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5
13037 $as_echo "$ac_ct_AR" >&6; }
13038 else
13039 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13040 $as_echo "no" >&6; }
13043 if test "x$ac_ct_AR" = x; then
13044 AR="false"
13045 else
13046 case $cross_compiling:$ac_tool_warned in
13047 yes:)
13048 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
13049 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
13050 ac_tool_warned=yes ;;
13051 esac
13052 AR=$ac_ct_AR
13054 else
13055 AR="$ac_cv_prog_AR"
13058 test -z "$AR" && AR=ar
13059 test -z "$AR_FLAGS" && AR_FLAGS=cru
13071 if test -n "$ac_tool_prefix"; then
13072 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
13073 set dummy ${ac_tool_prefix}strip; ac_word=$2
13074 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13075 $as_echo_n "checking for $ac_word... " >&6; }
13076 if test "${ac_cv_prog_STRIP+set}" = set; then :
13077 $as_echo_n "(cached) " >&6
13078 else
13079 if test -n "$STRIP"; then
13080 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
13081 else
13082 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13083 for as_dir in $PATH
13085 IFS=$as_save_IFS
13086 test -z "$as_dir" && as_dir=.
13087 for ac_exec_ext in '' $ac_executable_extensions; do
13088 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
13089 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
13090 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13091 break 2
13093 done
13094 done
13095 IFS=$as_save_IFS
13099 STRIP=$ac_cv_prog_STRIP
13100 if test -n "$STRIP"; then
13101 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
13102 $as_echo "$STRIP" >&6; }
13103 else
13104 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13105 $as_echo "no" >&6; }
13110 if test -z "$ac_cv_prog_STRIP"; then
13111 ac_ct_STRIP=$STRIP
13112 # Extract the first word of "strip", so it can be a program name with args.
13113 set dummy strip; ac_word=$2
13114 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13115 $as_echo_n "checking for $ac_word... " >&6; }
13116 if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then :
13117 $as_echo_n "(cached) " >&6
13118 else
13119 if test -n "$ac_ct_STRIP"; then
13120 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
13121 else
13122 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13123 for as_dir in $PATH
13125 IFS=$as_save_IFS
13126 test -z "$as_dir" && as_dir=.
13127 for ac_exec_ext in '' $ac_executable_extensions; do
13128 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
13129 ac_cv_prog_ac_ct_STRIP="strip"
13130 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13131 break 2
13133 done
13134 done
13135 IFS=$as_save_IFS
13139 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
13140 if test -n "$ac_ct_STRIP"; then
13141 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
13142 $as_echo "$ac_ct_STRIP" >&6; }
13143 else
13144 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13145 $as_echo "no" >&6; }
13148 if test "x$ac_ct_STRIP" = x; then
13149 STRIP=":"
13150 else
13151 case $cross_compiling:$ac_tool_warned in
13152 yes:)
13153 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
13154 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
13155 ac_tool_warned=yes ;;
13156 esac
13157 STRIP=$ac_ct_STRIP
13159 else
13160 STRIP="$ac_cv_prog_STRIP"
13163 test -z "$STRIP" && STRIP=:
13170 if test -n "$ac_tool_prefix"; then
13171 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
13172 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
13173 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13174 $as_echo_n "checking for $ac_word... " >&6; }
13175 if test "${ac_cv_prog_RANLIB+set}" = set; then :
13176 $as_echo_n "(cached) " >&6
13177 else
13178 if test -n "$RANLIB"; then
13179 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
13180 else
13181 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13182 for as_dir in $PATH
13184 IFS=$as_save_IFS
13185 test -z "$as_dir" && as_dir=.
13186 for ac_exec_ext in '' $ac_executable_extensions; do
13187 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
13188 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
13189 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13190 break 2
13192 done
13193 done
13194 IFS=$as_save_IFS
13198 RANLIB=$ac_cv_prog_RANLIB
13199 if test -n "$RANLIB"; then
13200 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
13201 $as_echo "$RANLIB" >&6; }
13202 else
13203 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13204 $as_echo "no" >&6; }
13209 if test -z "$ac_cv_prog_RANLIB"; then
13210 ac_ct_RANLIB=$RANLIB
13211 # Extract the first word of "ranlib", so it can be a program name with args.
13212 set dummy ranlib; ac_word=$2
13213 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13214 $as_echo_n "checking for $ac_word... " >&6; }
13215 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then :
13216 $as_echo_n "(cached) " >&6
13217 else
13218 if test -n "$ac_ct_RANLIB"; then
13219 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
13220 else
13221 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13222 for as_dir in $PATH
13224 IFS=$as_save_IFS
13225 test -z "$as_dir" && as_dir=.
13226 for ac_exec_ext in '' $ac_executable_extensions; do
13227 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
13228 ac_cv_prog_ac_ct_RANLIB="ranlib"
13229 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13230 break 2
13232 done
13233 done
13234 IFS=$as_save_IFS
13238 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
13239 if test -n "$ac_ct_RANLIB"; then
13240 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
13241 $as_echo "$ac_ct_RANLIB" >&6; }
13242 else
13243 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13244 $as_echo "no" >&6; }
13247 if test "x$ac_ct_RANLIB" = x; then
13248 RANLIB=":"
13249 else
13250 case $cross_compiling:$ac_tool_warned in
13251 yes:)
13252 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
13253 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
13254 ac_tool_warned=yes ;;
13255 esac
13256 RANLIB=$ac_ct_RANLIB
13258 else
13259 RANLIB="$ac_cv_prog_RANLIB"
13262 test -z "$RANLIB" && RANLIB=:
13269 # Determine commands to create old-style static archives.
13270 old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs'
13271 old_postinstall_cmds='chmod 644 $oldlib'
13272 old_postuninstall_cmds=
13274 if test -n "$RANLIB"; then
13275 case $host_os in
13276 openbsd*)
13277 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$oldlib"
13280 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$oldlib"
13282 esac
13283 old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib"
13286 case $host_os in
13287 darwin*)
13288 lock_old_archive_extraction=yes ;;
13290 lock_old_archive_extraction=no ;;
13291 esac
13331 # If no C compiler was specified, use CC.
13332 LTCC=${LTCC-"$CC"}
13334 # If no C compiler flags were specified, use CFLAGS.
13335 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
13337 # Allow CC to be a program name with arguments.
13338 compiler=$CC
13341 # Check for command to grab the raw symbol name followed by C symbol from nm.
13342 { $as_echo "$as_me:${as_lineno-$LINENO}: checking command to parse $NM output from $compiler object" >&5
13343 $as_echo_n "checking command to parse $NM output from $compiler object... " >&6; }
13344 if test "${lt_cv_sys_global_symbol_pipe+set}" = set; then :
13345 $as_echo_n "(cached) " >&6
13346 else
13348 # These are sane defaults that work on at least a few old systems.
13349 # [They come from Ultrix. What could be older than Ultrix?!! ;)]
13351 # Character class describing NM global symbol codes.
13352 symcode='[BCDEGRST]'
13354 # Regexp to match symbols that can be accessed directly from C.
13355 sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
13357 # Define system-specific variables.
13358 case $host_os in
13359 aix*)
13360 symcode='[BCDT]'
13362 cygwin* | mingw* | pw32* | cegcc*)
13363 symcode='[ABCDGISTW]'
13365 hpux*)
13366 if test "$host_cpu" = ia64; then
13367 symcode='[ABCDEGRST]'
13370 irix* | nonstopux*)
13371 symcode='[BCDEGRST]'
13373 osf*)
13374 symcode='[BCDEGQRST]'
13376 solaris*)
13377 symcode='[BDRT]'
13379 sco3.2v5*)
13380 symcode='[DT]'
13382 sysv4.2uw2*)
13383 symcode='[DT]'
13385 sysv5* | sco5v6* | unixware* | OpenUNIX*)
13386 symcode='[ABDT]'
13388 sysv4)
13389 symcode='[DFNSTU]'
13391 esac
13393 # If we're using GNU nm, then use its standard symbol codes.
13394 case `$NM -V 2>&1` in
13395 *GNU* | *'with BFD'*)
13396 symcode='[ABCDGIRSTW]' ;;
13397 esac
13399 # Transform an extracted symbol line into a proper C declaration.
13400 # Some systems (esp. on ia64) link data and code symbols differently,
13401 # so use this general approach.
13402 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
13404 # Transform an extracted symbol line into symbol name and symbol address
13405 lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([^ ]*\) $/ {\\\"\1\\\", (void *) 0},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/ {\"\2\", (void *) \&\2},/p'"
13406 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'"
13408 # Handle CRLF in mingw tool chain
13409 opt_cr=
13410 case $build_os in
13411 mingw*)
13412 opt_cr=`$ECHO 'x\{0,1\}' | tr x '\015'` # option cr in regexp
13414 esac
13416 # Try without a prefix underscore, then with it.
13417 for ac_symprfx in "" "_"; do
13419 # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
13420 symxfrm="\\1 $ac_symprfx\\2 \\2"
13422 # Write the raw and C identifiers.
13423 if test "$lt_cv_nm_interface" = "MS dumpbin"; then
13424 # Fake it for dumpbin and say T for any non-static function
13425 # and D for any global variable.
13426 # Also find C++ and __fastcall symbols from MSVC++,
13427 # which start with @ or ?.
13428 lt_cv_sys_global_symbol_pipe="$AWK '"\
13429 " {last_section=section; section=\$ 3};"\
13430 " /Section length .*#relocs.*(pick any)/{hide[last_section]=1};"\
13431 " \$ 0!~/External *\|/{next};"\
13432 " / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};"\
13433 " {if(hide[section]) next};"\
13434 " {f=0}; \$ 0~/\(\).*\|/{f=1}; {printf f ? \"T \" : \"D \"};"\
13435 " {split(\$ 0, a, /\||\r/); split(a[2], s)};"\
13436 " s[1]~/^[@?]/{print s[1], s[1]; next};"\
13437 " s[1]~prfx {split(s[1],t,\"@\"); print t[1], substr(t[1],length(prfx))}"\
13438 " ' prfx=^$ac_symprfx"
13439 else
13440 lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
13443 # Check to see that the pipe works correctly.
13444 pipe_works=no
13446 rm -f conftest*
13447 cat > conftest.$ac_ext <<_LT_EOF
13448 #ifdef __cplusplus
13449 extern "C" {
13450 #endif
13451 char nm_test_var;
13452 void nm_test_func(void);
13453 void nm_test_func(void){}
13454 #ifdef __cplusplus
13456 #endif
13457 int main(){nm_test_var='a';nm_test_func();return(0);}
13458 _LT_EOF
13460 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
13461 (eval $ac_compile) 2>&5
13462 ac_status=$?
13463 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
13464 test $ac_status = 0; }; then
13465 # Now try to grab the symbols.
13466 nlist=conftest.nm
13467 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist\""; } >&5
13468 (eval $NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist) 2>&5
13469 ac_status=$?
13470 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
13471 test $ac_status = 0; } && test -s "$nlist"; then
13472 # Try sorting and uniquifying the output.
13473 if sort "$nlist" | uniq > "$nlist"T; then
13474 mv -f "$nlist"T "$nlist"
13475 else
13476 rm -f "$nlist"T
13479 # Make sure that we snagged all the symbols we need.
13480 if $GREP ' nm_test_var$' "$nlist" >/dev/null; then
13481 if $GREP ' nm_test_func$' "$nlist" >/dev/null; then
13482 cat <<_LT_EOF > conftest.$ac_ext
13483 #ifdef __cplusplus
13484 extern "C" {
13485 #endif
13487 _LT_EOF
13488 # Now generate the symbol file.
13489 eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | $GREP -v main >> conftest.$ac_ext'
13491 cat <<_LT_EOF >> conftest.$ac_ext
13493 /* The mapping between symbol names and symbols. */
13494 const struct {
13495 const char *name;
13496 void *address;
13498 lt__PROGRAM__LTX_preloaded_symbols[] =
13500 { "@PROGRAM@", (void *) 0 },
13501 _LT_EOF
13502 $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/ {\"\2\", (void *) \&\2},/" < "$nlist" | $GREP -v main >> conftest.$ac_ext
13503 cat <<\_LT_EOF >> conftest.$ac_ext
13504 {0, (void *) 0}
13507 /* This works around a problem in FreeBSD linker */
13508 #ifdef FREEBSD_WORKAROUND
13509 static const void *lt_preloaded_setup() {
13510 return lt__PROGRAM__LTX_preloaded_symbols;
13512 #endif
13514 #ifdef __cplusplus
13516 #endif
13517 _LT_EOF
13518 # Now try linking the two files.
13519 mv conftest.$ac_objext conftstm.$ac_objext
13520 lt_save_LIBS="$LIBS"
13521 lt_save_CFLAGS="$CFLAGS"
13522 LIBS="conftstm.$ac_objext"
13523 CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
13524 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
13525 (eval $ac_link) 2>&5
13526 ac_status=$?
13527 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
13528 test $ac_status = 0; } && test -s conftest${ac_exeext}; then
13529 pipe_works=yes
13531 LIBS="$lt_save_LIBS"
13532 CFLAGS="$lt_save_CFLAGS"
13533 else
13534 echo "cannot find nm_test_func in $nlist" >&5
13536 else
13537 echo "cannot find nm_test_var in $nlist" >&5
13539 else
13540 echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
13542 else
13543 echo "$progname: failed program was:" >&5
13544 cat conftest.$ac_ext >&5
13546 rm -rf conftest* conftst*
13548 # Do not use the global_symbol_pipe unless it works.
13549 if test "$pipe_works" = yes; then
13550 break
13551 else
13552 lt_cv_sys_global_symbol_pipe=
13554 done
13558 if test -z "$lt_cv_sys_global_symbol_pipe"; then
13559 lt_cv_sys_global_symbol_to_cdecl=
13561 if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
13562 { $as_echo "$as_me:${as_lineno-$LINENO}: result: failed" >&5
13563 $as_echo "failed" >&6; }
13564 else
13565 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5
13566 $as_echo "ok" >&6; }
13590 # Check whether --enable-libtool-lock was given.
13591 if test "${enable_libtool_lock+set}" = set; then :
13592 enableval=$enable_libtool_lock;
13595 test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
13597 # Some flags need to be propagated to the compiler or linker for good
13598 # libtool support.
13599 case $host in
13600 ia64-*-hpux*)
13601 # Find out which ABI we are using.
13602 echo 'int i;' > conftest.$ac_ext
13603 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
13604 (eval $ac_compile) 2>&5
13605 ac_status=$?
13606 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
13607 test $ac_status = 0; }; then
13608 case `/usr/bin/file conftest.$ac_objext` in
13609 *ELF-32*)
13610 HPUX_IA64_MODE="32"
13612 *ELF-64*)
13613 HPUX_IA64_MODE="64"
13615 esac
13617 rm -rf conftest*
13619 *-*-irix6*)
13620 # Find out which ABI we are using.
13621 echo '#line '$LINENO' "configure"' > conftest.$ac_ext
13622 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
13623 (eval $ac_compile) 2>&5
13624 ac_status=$?
13625 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
13626 test $ac_status = 0; }; then
13627 if test "$lt_cv_prog_gnu_ld" = yes; then
13628 case `/usr/bin/file conftest.$ac_objext` in
13629 *32-bit*)
13630 LD="${LD-ld} -melf32bsmip"
13632 *N32*)
13633 LD="${LD-ld} -melf32bmipn32"
13635 *64-bit*)
13636 LD="${LD-ld} -melf64bmip"
13638 esac
13639 else
13640 case `/usr/bin/file conftest.$ac_objext` in
13641 *32-bit*)
13642 LD="${LD-ld} -32"
13644 *N32*)
13645 LD="${LD-ld} -n32"
13647 *64-bit*)
13648 LD="${LD-ld} -64"
13650 esac
13653 rm -rf conftest*
13656 x86_64-*kfreebsd*-gnu|x86_64-*linux*|powerpc*-*linux*| \
13657 s390*-*linux*|s390*-*tpf*|sparc*-*linux*)
13658 # Find out which ABI we are using.
13659 echo 'int i;' > conftest.$ac_ext
13660 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
13661 (eval $ac_compile) 2>&5
13662 ac_status=$?
13663 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
13664 test $ac_status = 0; }; then
13665 case `/usr/bin/file conftest.o` in
13666 *32-bit*)
13667 case $host in
13668 x86_64-*kfreebsd*-gnu)
13669 LD="${LD-ld} -m elf_i386_fbsd"
13671 x86_64-*linux*)
13672 case `/usr/bin/file conftest.o` in
13673 *x86-64*)
13674 LD="${LD-ld} -m elf32_x86_64"
13677 LD="${LD-ld} -m elf_i386"
13679 esac
13681 powerpc64le-*linux*)
13682 LD="${LD-ld} -m elf32lppclinux"
13684 powerpc64-*linux*)
13685 LD="${LD-ld} -m elf32ppclinux"
13687 s390x-*linux*)
13688 LD="${LD-ld} -m elf_s390"
13690 sparc64-*linux*)
13691 LD="${LD-ld} -m elf32_sparc"
13693 esac
13695 *64-bit*)
13696 case $host in
13697 x86_64-*kfreebsd*-gnu)
13698 LD="${LD-ld} -m elf_x86_64_fbsd"
13700 x86_64-*linux*)
13701 LD="${LD-ld} -m elf_x86_64"
13703 powerpcle-*linux*)
13704 LD="${LD-ld} -m elf64lppc"
13706 powerpc-*linux*)
13707 LD="${LD-ld} -m elf64ppc"
13709 s390*-*linux*|s390*-*tpf*)
13710 LD="${LD-ld} -m elf64_s390"
13712 sparc*-*linux*)
13713 LD="${LD-ld} -m elf64_sparc"
13715 esac
13717 esac
13719 rm -rf conftest*
13722 *-*-sco3.2v5*)
13723 # On SCO OpenServer 5, we need -belf to get full-featured binaries.
13724 SAVE_CFLAGS="$CFLAGS"
13725 CFLAGS="$CFLAGS -belf"
13726 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler needs -belf" >&5
13727 $as_echo_n "checking whether the C compiler needs -belf... " >&6; }
13728 if test "${lt_cv_cc_needs_belf+set}" = set; then :
13729 $as_echo_n "(cached) " >&6
13730 else
13731 ac_ext=c
13732 ac_cpp='$CPP $CPPFLAGS'
13733 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
13734 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13735 ac_compiler_gnu=$ac_cv_c_compiler_gnu
13737 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13738 /* end confdefs.h. */
13741 main ()
13745 return 0;
13747 _ACEOF
13748 if ac_fn_c_try_link "$LINENO"; then :
13749 lt_cv_cc_needs_belf=yes
13750 else
13751 lt_cv_cc_needs_belf=no
13753 rm -f core conftest.err conftest.$ac_objext \
13754 conftest$ac_exeext conftest.$ac_ext
13755 ac_ext=c
13756 ac_cpp='$CPP $CPPFLAGS'
13757 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
13758 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13759 ac_compiler_gnu=$ac_cv_c_compiler_gnu
13762 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_cc_needs_belf" >&5
13763 $as_echo "$lt_cv_cc_needs_belf" >&6; }
13764 if test x"$lt_cv_cc_needs_belf" != x"yes"; then
13765 # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
13766 CFLAGS="$SAVE_CFLAGS"
13769 sparc*-*solaris*)
13770 # Find out which ABI we are using.
13771 echo 'int i;' > conftest.$ac_ext
13772 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
13773 (eval $ac_compile) 2>&5
13774 ac_status=$?
13775 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
13776 test $ac_status = 0; }; then
13777 case `/usr/bin/file conftest.o` in
13778 *64-bit*)
13779 case $lt_cv_prog_gnu_ld in
13780 yes*) LD="${LD-ld} -m elf64_sparc" ;;
13782 if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then
13783 LD="${LD-ld} -64"
13786 esac
13788 esac
13790 rm -rf conftest*
13792 esac
13794 need_locks="$enable_libtool_lock"
13797 case $host_os in
13798 rhapsody* | darwin*)
13799 if test -n "$ac_tool_prefix"; then
13800 # Extract the first word of "${ac_tool_prefix}dsymutil", so it can be a program name with args.
13801 set dummy ${ac_tool_prefix}dsymutil; ac_word=$2
13802 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13803 $as_echo_n "checking for $ac_word... " >&6; }
13804 if test "${ac_cv_prog_DSYMUTIL+set}" = set; then :
13805 $as_echo_n "(cached) " >&6
13806 else
13807 if test -n "$DSYMUTIL"; then
13808 ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test.
13809 else
13810 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13811 for as_dir in $PATH
13813 IFS=$as_save_IFS
13814 test -z "$as_dir" && as_dir=.
13815 for ac_exec_ext in '' $ac_executable_extensions; do
13816 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
13817 ac_cv_prog_DSYMUTIL="${ac_tool_prefix}dsymutil"
13818 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13819 break 2
13821 done
13822 done
13823 IFS=$as_save_IFS
13827 DSYMUTIL=$ac_cv_prog_DSYMUTIL
13828 if test -n "$DSYMUTIL"; then
13829 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DSYMUTIL" >&5
13830 $as_echo "$DSYMUTIL" >&6; }
13831 else
13832 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13833 $as_echo "no" >&6; }
13838 if test -z "$ac_cv_prog_DSYMUTIL"; then
13839 ac_ct_DSYMUTIL=$DSYMUTIL
13840 # Extract the first word of "dsymutil", so it can be a program name with args.
13841 set dummy dsymutil; ac_word=$2
13842 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13843 $as_echo_n "checking for $ac_word... " >&6; }
13844 if test "${ac_cv_prog_ac_ct_DSYMUTIL+set}" = set; then :
13845 $as_echo_n "(cached) " >&6
13846 else
13847 if test -n "$ac_ct_DSYMUTIL"; then
13848 ac_cv_prog_ac_ct_DSYMUTIL="$ac_ct_DSYMUTIL" # Let the user override the test.
13849 else
13850 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13851 for as_dir in $PATH
13853 IFS=$as_save_IFS
13854 test -z "$as_dir" && as_dir=.
13855 for ac_exec_ext in '' $ac_executable_extensions; do
13856 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
13857 ac_cv_prog_ac_ct_DSYMUTIL="dsymutil"
13858 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13859 break 2
13861 done
13862 done
13863 IFS=$as_save_IFS
13867 ac_ct_DSYMUTIL=$ac_cv_prog_ac_ct_DSYMUTIL
13868 if test -n "$ac_ct_DSYMUTIL"; then
13869 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DSYMUTIL" >&5
13870 $as_echo "$ac_ct_DSYMUTIL" >&6; }
13871 else
13872 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13873 $as_echo "no" >&6; }
13876 if test "x$ac_ct_DSYMUTIL" = x; then
13877 DSYMUTIL=":"
13878 else
13879 case $cross_compiling:$ac_tool_warned in
13880 yes:)
13881 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
13882 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
13883 ac_tool_warned=yes ;;
13884 esac
13885 DSYMUTIL=$ac_ct_DSYMUTIL
13887 else
13888 DSYMUTIL="$ac_cv_prog_DSYMUTIL"
13891 if test -n "$ac_tool_prefix"; then
13892 # Extract the first word of "${ac_tool_prefix}nmedit", so it can be a program name with args.
13893 set dummy ${ac_tool_prefix}nmedit; ac_word=$2
13894 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13895 $as_echo_n "checking for $ac_word... " >&6; }
13896 if test "${ac_cv_prog_NMEDIT+set}" = set; then :
13897 $as_echo_n "(cached) " >&6
13898 else
13899 if test -n "$NMEDIT"; then
13900 ac_cv_prog_NMEDIT="$NMEDIT" # Let the user override the test.
13901 else
13902 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13903 for as_dir in $PATH
13905 IFS=$as_save_IFS
13906 test -z "$as_dir" && as_dir=.
13907 for ac_exec_ext in '' $ac_executable_extensions; do
13908 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
13909 ac_cv_prog_NMEDIT="${ac_tool_prefix}nmedit"
13910 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13911 break 2
13913 done
13914 done
13915 IFS=$as_save_IFS
13919 NMEDIT=$ac_cv_prog_NMEDIT
13920 if test -n "$NMEDIT"; then
13921 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NMEDIT" >&5
13922 $as_echo "$NMEDIT" >&6; }
13923 else
13924 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13925 $as_echo "no" >&6; }
13930 if test -z "$ac_cv_prog_NMEDIT"; then
13931 ac_ct_NMEDIT=$NMEDIT
13932 # Extract the first word of "nmedit", so it can be a program name with args.
13933 set dummy nmedit; ac_word=$2
13934 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13935 $as_echo_n "checking for $ac_word... " >&6; }
13936 if test "${ac_cv_prog_ac_ct_NMEDIT+set}" = set; then :
13937 $as_echo_n "(cached) " >&6
13938 else
13939 if test -n "$ac_ct_NMEDIT"; then
13940 ac_cv_prog_ac_ct_NMEDIT="$ac_ct_NMEDIT" # Let the user override the test.
13941 else
13942 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13943 for as_dir in $PATH
13945 IFS=$as_save_IFS
13946 test -z "$as_dir" && as_dir=.
13947 for ac_exec_ext in '' $ac_executable_extensions; do
13948 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
13949 ac_cv_prog_ac_ct_NMEDIT="nmedit"
13950 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13951 break 2
13953 done
13954 done
13955 IFS=$as_save_IFS
13959 ac_ct_NMEDIT=$ac_cv_prog_ac_ct_NMEDIT
13960 if test -n "$ac_ct_NMEDIT"; then
13961 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_NMEDIT" >&5
13962 $as_echo "$ac_ct_NMEDIT" >&6; }
13963 else
13964 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13965 $as_echo "no" >&6; }
13968 if test "x$ac_ct_NMEDIT" = x; then
13969 NMEDIT=":"
13970 else
13971 case $cross_compiling:$ac_tool_warned in
13972 yes:)
13973 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
13974 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
13975 ac_tool_warned=yes ;;
13976 esac
13977 NMEDIT=$ac_ct_NMEDIT
13979 else
13980 NMEDIT="$ac_cv_prog_NMEDIT"
13983 if test -n "$ac_tool_prefix"; then
13984 # Extract the first word of "${ac_tool_prefix}lipo", so it can be a program name with args.
13985 set dummy ${ac_tool_prefix}lipo; ac_word=$2
13986 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13987 $as_echo_n "checking for $ac_word... " >&6; }
13988 if test "${ac_cv_prog_LIPO+set}" = set; then :
13989 $as_echo_n "(cached) " >&6
13990 else
13991 if test -n "$LIPO"; then
13992 ac_cv_prog_LIPO="$LIPO" # Let the user override the test.
13993 else
13994 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13995 for as_dir in $PATH
13997 IFS=$as_save_IFS
13998 test -z "$as_dir" && as_dir=.
13999 for ac_exec_ext in '' $ac_executable_extensions; do
14000 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
14001 ac_cv_prog_LIPO="${ac_tool_prefix}lipo"
14002 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
14003 break 2
14005 done
14006 done
14007 IFS=$as_save_IFS
14011 LIPO=$ac_cv_prog_LIPO
14012 if test -n "$LIPO"; then
14013 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO" >&5
14014 $as_echo "$LIPO" >&6; }
14015 else
14016 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14017 $as_echo "no" >&6; }
14022 if test -z "$ac_cv_prog_LIPO"; then
14023 ac_ct_LIPO=$LIPO
14024 # Extract the first word of "lipo", so it can be a program name with args.
14025 set dummy lipo; ac_word=$2
14026 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
14027 $as_echo_n "checking for $ac_word... " >&6; }
14028 if test "${ac_cv_prog_ac_ct_LIPO+set}" = set; then :
14029 $as_echo_n "(cached) " >&6
14030 else
14031 if test -n "$ac_ct_LIPO"; then
14032 ac_cv_prog_ac_ct_LIPO="$ac_ct_LIPO" # Let the user override the test.
14033 else
14034 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14035 for as_dir in $PATH
14037 IFS=$as_save_IFS
14038 test -z "$as_dir" && as_dir=.
14039 for ac_exec_ext in '' $ac_executable_extensions; do
14040 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
14041 ac_cv_prog_ac_ct_LIPO="lipo"
14042 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
14043 break 2
14045 done
14046 done
14047 IFS=$as_save_IFS
14051 ac_ct_LIPO=$ac_cv_prog_ac_ct_LIPO
14052 if test -n "$ac_ct_LIPO"; then
14053 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_LIPO" >&5
14054 $as_echo "$ac_ct_LIPO" >&6; }
14055 else
14056 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14057 $as_echo "no" >&6; }
14060 if test "x$ac_ct_LIPO" = x; then
14061 LIPO=":"
14062 else
14063 case $cross_compiling:$ac_tool_warned in
14064 yes:)
14065 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
14066 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
14067 ac_tool_warned=yes ;;
14068 esac
14069 LIPO=$ac_ct_LIPO
14071 else
14072 LIPO="$ac_cv_prog_LIPO"
14075 if test -n "$ac_tool_prefix"; then
14076 # Extract the first word of "${ac_tool_prefix}otool", so it can be a program name with args.
14077 set dummy ${ac_tool_prefix}otool; ac_word=$2
14078 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
14079 $as_echo_n "checking for $ac_word... " >&6; }
14080 if test "${ac_cv_prog_OTOOL+set}" = set; then :
14081 $as_echo_n "(cached) " >&6
14082 else
14083 if test -n "$OTOOL"; then
14084 ac_cv_prog_OTOOL="$OTOOL" # Let the user override the test.
14085 else
14086 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14087 for as_dir in $PATH
14089 IFS=$as_save_IFS
14090 test -z "$as_dir" && as_dir=.
14091 for ac_exec_ext in '' $ac_executable_extensions; do
14092 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
14093 ac_cv_prog_OTOOL="${ac_tool_prefix}otool"
14094 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
14095 break 2
14097 done
14098 done
14099 IFS=$as_save_IFS
14103 OTOOL=$ac_cv_prog_OTOOL
14104 if test -n "$OTOOL"; then
14105 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL" >&5
14106 $as_echo "$OTOOL" >&6; }
14107 else
14108 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14109 $as_echo "no" >&6; }
14114 if test -z "$ac_cv_prog_OTOOL"; then
14115 ac_ct_OTOOL=$OTOOL
14116 # Extract the first word of "otool", so it can be a program name with args.
14117 set dummy otool; ac_word=$2
14118 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
14119 $as_echo_n "checking for $ac_word... " >&6; }
14120 if test "${ac_cv_prog_ac_ct_OTOOL+set}" = set; then :
14121 $as_echo_n "(cached) " >&6
14122 else
14123 if test -n "$ac_ct_OTOOL"; then
14124 ac_cv_prog_ac_ct_OTOOL="$ac_ct_OTOOL" # Let the user override the test.
14125 else
14126 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14127 for as_dir in $PATH
14129 IFS=$as_save_IFS
14130 test -z "$as_dir" && as_dir=.
14131 for ac_exec_ext in '' $ac_executable_extensions; do
14132 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
14133 ac_cv_prog_ac_ct_OTOOL="otool"
14134 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
14135 break 2
14137 done
14138 done
14139 IFS=$as_save_IFS
14143 ac_ct_OTOOL=$ac_cv_prog_ac_ct_OTOOL
14144 if test -n "$ac_ct_OTOOL"; then
14145 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL" >&5
14146 $as_echo "$ac_ct_OTOOL" >&6; }
14147 else
14148 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14149 $as_echo "no" >&6; }
14152 if test "x$ac_ct_OTOOL" = x; then
14153 OTOOL=":"
14154 else
14155 case $cross_compiling:$ac_tool_warned in
14156 yes:)
14157 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
14158 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
14159 ac_tool_warned=yes ;;
14160 esac
14161 OTOOL=$ac_ct_OTOOL
14163 else
14164 OTOOL="$ac_cv_prog_OTOOL"
14167 if test -n "$ac_tool_prefix"; then
14168 # Extract the first word of "${ac_tool_prefix}otool64", so it can be a program name with args.
14169 set dummy ${ac_tool_prefix}otool64; ac_word=$2
14170 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
14171 $as_echo_n "checking for $ac_word... " >&6; }
14172 if test "${ac_cv_prog_OTOOL64+set}" = set; then :
14173 $as_echo_n "(cached) " >&6
14174 else
14175 if test -n "$OTOOL64"; then
14176 ac_cv_prog_OTOOL64="$OTOOL64" # Let the user override the test.
14177 else
14178 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14179 for as_dir in $PATH
14181 IFS=$as_save_IFS
14182 test -z "$as_dir" && as_dir=.
14183 for ac_exec_ext in '' $ac_executable_extensions; do
14184 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
14185 ac_cv_prog_OTOOL64="${ac_tool_prefix}otool64"
14186 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
14187 break 2
14189 done
14190 done
14191 IFS=$as_save_IFS
14195 OTOOL64=$ac_cv_prog_OTOOL64
14196 if test -n "$OTOOL64"; then
14197 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL64" >&5
14198 $as_echo "$OTOOL64" >&6; }
14199 else
14200 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14201 $as_echo "no" >&6; }
14206 if test -z "$ac_cv_prog_OTOOL64"; then
14207 ac_ct_OTOOL64=$OTOOL64
14208 # Extract the first word of "otool64", so it can be a program name with args.
14209 set dummy otool64; ac_word=$2
14210 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
14211 $as_echo_n "checking for $ac_word... " >&6; }
14212 if test "${ac_cv_prog_ac_ct_OTOOL64+set}" = set; then :
14213 $as_echo_n "(cached) " >&6
14214 else
14215 if test -n "$ac_ct_OTOOL64"; then
14216 ac_cv_prog_ac_ct_OTOOL64="$ac_ct_OTOOL64" # Let the user override the test.
14217 else
14218 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14219 for as_dir in $PATH
14221 IFS=$as_save_IFS
14222 test -z "$as_dir" && as_dir=.
14223 for ac_exec_ext in '' $ac_executable_extensions; do
14224 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
14225 ac_cv_prog_ac_ct_OTOOL64="otool64"
14226 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
14227 break 2
14229 done
14230 done
14231 IFS=$as_save_IFS
14235 ac_ct_OTOOL64=$ac_cv_prog_ac_ct_OTOOL64
14236 if test -n "$ac_ct_OTOOL64"; then
14237 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL64" >&5
14238 $as_echo "$ac_ct_OTOOL64" >&6; }
14239 else
14240 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14241 $as_echo "no" >&6; }
14244 if test "x$ac_ct_OTOOL64" = x; then
14245 OTOOL64=":"
14246 else
14247 case $cross_compiling:$ac_tool_warned in
14248 yes:)
14249 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
14250 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
14251 ac_tool_warned=yes ;;
14252 esac
14253 OTOOL64=$ac_ct_OTOOL64
14255 else
14256 OTOOL64="$ac_cv_prog_OTOOL64"
14285 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -single_module linker flag" >&5
14286 $as_echo_n "checking for -single_module linker flag... " >&6; }
14287 if test "${lt_cv_apple_cc_single_mod+set}" = set; then :
14288 $as_echo_n "(cached) " >&6
14289 else
14290 lt_cv_apple_cc_single_mod=no
14291 if test -z "${LT_MULTI_MODULE}"; then
14292 # By default we will add the -single_module flag. You can override
14293 # by either setting the environment variable LT_MULTI_MODULE
14294 # non-empty at configure time, or by adding -multi_module to the
14295 # link flags.
14296 rm -rf libconftest.dylib*
14297 echo "int foo(void){return 1;}" > conftest.c
14298 echo "$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
14299 -dynamiclib -Wl,-single_module conftest.c" >&5
14300 $LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
14301 -dynamiclib -Wl,-single_module conftest.c 2>conftest.err
14302 _lt_result=$?
14303 if test -f libconftest.dylib && test ! -s conftest.err && test $_lt_result = 0; then
14304 lt_cv_apple_cc_single_mod=yes
14305 else
14306 cat conftest.err >&5
14308 rm -rf libconftest.dylib*
14309 rm -f conftest.*
14312 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_apple_cc_single_mod" >&5
14313 $as_echo "$lt_cv_apple_cc_single_mod" >&6; }
14314 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -exported_symbols_list linker flag" >&5
14315 $as_echo_n "checking for -exported_symbols_list linker flag... " >&6; }
14316 if test "${lt_cv_ld_exported_symbols_list+set}" = set; then :
14317 $as_echo_n "(cached) " >&6
14318 else
14319 lt_cv_ld_exported_symbols_list=no
14320 save_LDFLAGS=$LDFLAGS
14321 echo "_main" > conftest.sym
14322 LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym"
14323 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14324 /* end confdefs.h. */
14327 main ()
14331 return 0;
14333 _ACEOF
14334 if ac_fn_c_try_link "$LINENO"; then :
14335 lt_cv_ld_exported_symbols_list=yes
14336 else
14337 lt_cv_ld_exported_symbols_list=no
14339 rm -f core conftest.err conftest.$ac_objext \
14340 conftest$ac_exeext conftest.$ac_ext
14341 LDFLAGS="$save_LDFLAGS"
14344 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_exported_symbols_list" >&5
14345 $as_echo "$lt_cv_ld_exported_symbols_list" >&6; }
14346 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -force_load linker flag" >&5
14347 $as_echo_n "checking for -force_load linker flag... " >&6; }
14348 if test "${lt_cv_ld_force_load+set}" = set; then :
14349 $as_echo_n "(cached) " >&6
14350 else
14351 lt_cv_ld_force_load=no
14352 cat > conftest.c << _LT_EOF
14353 int forced_loaded() { return 2;}
14354 _LT_EOF
14355 echo "$LTCC $LTCFLAGS -c -o conftest.o conftest.c" >&5
14356 $LTCC $LTCFLAGS -c -o conftest.o conftest.c 2>&5
14357 echo "$AR cru libconftest.a conftest.o" >&5
14358 $AR cru libconftest.a conftest.o 2>&5
14359 cat > conftest.c << _LT_EOF
14360 int main() { return 0;}
14361 _LT_EOF
14362 echo "$LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a" >&5
14363 $LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a 2>conftest.err
14364 _lt_result=$?
14365 if test -f conftest && test ! -s conftest.err && test $_lt_result = 0 && $GREP forced_load conftest 2>&1 >/dev/null; then
14366 lt_cv_ld_force_load=yes
14367 else
14368 cat conftest.err >&5
14370 rm -f conftest.err libconftest.a conftest conftest.c
14371 rm -rf conftest.dSYM
14374 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_force_load" >&5
14375 $as_echo "$lt_cv_ld_force_load" >&6; }
14376 case $host_os in
14377 rhapsody* | darwin1.[012])
14378 _lt_dar_allow_undefined='${wl}-undefined ${wl}suppress' ;;
14379 darwin1.*)
14380 _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
14381 darwin*) # darwin 5.x on
14382 # if running on 10.5 or later, the deployment target defaults
14383 # to the OS version, if on x86, and 10.4, the deployment
14384 # target defaults to 10.4. Don't you love it?
14385 case ${MACOSX_DEPLOYMENT_TARGET-10.0},$host in
14386 10.0,*86*-darwin8*|10.0,*-darwin[91]*)
14387 _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
14388 10.[012]*)
14389 _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
14390 10.*)
14391 _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
14392 esac
14394 esac
14395 if test "$lt_cv_apple_cc_single_mod" = "yes"; then
14396 _lt_dar_single_mod='$single_module'
14398 if test "$lt_cv_ld_exported_symbols_list" = "yes"; then
14399 _lt_dar_export_syms=' ${wl}-exported_symbols_list,$output_objdir/${libname}-symbols.expsym'
14400 else
14401 _lt_dar_export_syms='~$NMEDIT -s $output_objdir/${libname}-symbols.expsym ${lib}'
14403 if test "$DSYMUTIL" != ":" && test "$lt_cv_ld_force_load" = "no"; then
14404 _lt_dsymutil='~$DSYMUTIL $lib || :'
14405 else
14406 _lt_dsymutil=
14409 esac
14411 for ac_header in dlfcn.h
14412 do :
14413 ac_fn_c_check_header_preproc "$LINENO" "dlfcn.h" "ac_cv_header_dlfcn_h"
14414 if test "x$ac_cv_header_dlfcn_h" = x""yes; then :
14415 cat >>confdefs.h <<_ACEOF
14416 #define HAVE_DLFCN_H 1
14417 _ACEOF
14420 done
14426 # Set options
14430 enable_dlopen=no
14433 enable_win32_dll=no
14436 # Check whether --enable-shared was given.
14437 if test "${enable_shared+set}" = set; then :
14438 enableval=$enable_shared; p=${PACKAGE-default}
14439 case $enableval in
14440 yes) enable_shared=yes ;;
14441 no) enable_shared=no ;;
14443 enable_shared=no
14444 # Look at the argument we got. We use all the common list separators.
14445 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
14446 for pkg in $enableval; do
14447 IFS="$lt_save_ifs"
14448 if test "X$pkg" = "X$p"; then
14449 enable_shared=yes
14451 done
14452 IFS="$lt_save_ifs"
14454 esac
14455 else
14456 enable_shared=yes
14467 # Check whether --enable-static was given.
14468 if test "${enable_static+set}" = set; then :
14469 enableval=$enable_static; p=${PACKAGE-default}
14470 case $enableval in
14471 yes) enable_static=yes ;;
14472 no) enable_static=no ;;
14474 enable_static=no
14475 # Look at the argument we got. We use all the common list separators.
14476 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
14477 for pkg in $enableval; do
14478 IFS="$lt_save_ifs"
14479 if test "X$pkg" = "X$p"; then
14480 enable_static=yes
14482 done
14483 IFS="$lt_save_ifs"
14485 esac
14486 else
14487 enable_static=yes
14499 # Check whether --with-pic was given.
14500 if test "${with_pic+set}" = set; then :
14501 withval=$with_pic; pic_mode="$withval"
14502 else
14503 pic_mode=default
14507 test -z "$pic_mode" && pic_mode=default
14515 # Check whether --enable-fast-install was given.
14516 if test "${enable_fast_install+set}" = set; then :
14517 enableval=$enable_fast_install; p=${PACKAGE-default}
14518 case $enableval in
14519 yes) enable_fast_install=yes ;;
14520 no) enable_fast_install=no ;;
14522 enable_fast_install=no
14523 # Look at the argument we got. We use all the common list separators.
14524 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
14525 for pkg in $enableval; do
14526 IFS="$lt_save_ifs"
14527 if test "X$pkg" = "X$p"; then
14528 enable_fast_install=yes
14530 done
14531 IFS="$lt_save_ifs"
14533 esac
14534 else
14535 enable_fast_install=yes
14548 # This can be used to rebuild libtool when needed
14549 LIBTOOL_DEPS="$ltmain"
14551 # Always use our own libtool.
14552 LIBTOOL='$(SHELL) $(top_builddir)/libtool'
14579 test -z "$LN_S" && LN_S="ln -s"
14594 if test -n "${ZSH_VERSION+set}" ; then
14595 setopt NO_GLOB_SUBST
14598 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for objdir" >&5
14599 $as_echo_n "checking for objdir... " >&6; }
14600 if test "${lt_cv_objdir+set}" = set; then :
14601 $as_echo_n "(cached) " >&6
14602 else
14603 rm -f .libs 2>/dev/null
14604 mkdir .libs 2>/dev/null
14605 if test -d .libs; then
14606 lt_cv_objdir=.libs
14607 else
14608 # MS-DOS does not allow filenames that begin with a dot.
14609 lt_cv_objdir=_libs
14611 rmdir .libs 2>/dev/null
14613 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_objdir" >&5
14614 $as_echo "$lt_cv_objdir" >&6; }
14615 objdir=$lt_cv_objdir
14621 cat >>confdefs.h <<_ACEOF
14622 #define LT_OBJDIR "$lt_cv_objdir/"
14623 _ACEOF
14628 case $host_os in
14629 aix3*)
14630 # AIX sometimes has problems with the GCC collect2 program. For some
14631 # reason, if we set the COLLECT_NAMES environment variable, the problems
14632 # vanish in a puff of smoke.
14633 if test "X${COLLECT_NAMES+set}" != Xset; then
14634 COLLECT_NAMES=
14635 export COLLECT_NAMES
14638 esac
14640 # Global variables:
14641 ofile=libtool
14642 can_build_shared=yes
14644 # All known linkers require a `.a' archive for static linking (except MSVC,
14645 # which needs '.lib').
14646 libext=a
14648 with_gnu_ld="$lt_cv_prog_gnu_ld"
14650 old_CC="$CC"
14651 old_CFLAGS="$CFLAGS"
14653 # Set sane defaults for various variables
14654 test -z "$CC" && CC=cc
14655 test -z "$LTCC" && LTCC=$CC
14656 test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
14657 test -z "$LD" && LD=ld
14658 test -z "$ac_objext" && ac_objext=o
14660 for cc_temp in $compiler""; do
14661 case $cc_temp in
14662 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
14663 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
14664 \-*) ;;
14665 *) break;;
14666 esac
14667 done
14668 cc_basename=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
14671 # Only perform the check for file, if the check method requires it
14672 test -z "$MAGIC_CMD" && MAGIC_CMD=file
14673 case $deplibs_check_method in
14674 file_magic*)
14675 if test "$file_magic_cmd" = '$MAGIC_CMD'; then
14676 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ac_tool_prefix}file" >&5
14677 $as_echo_n "checking for ${ac_tool_prefix}file... " >&6; }
14678 if test "${lt_cv_path_MAGIC_CMD+set}" = set; then :
14679 $as_echo_n "(cached) " >&6
14680 else
14681 case $MAGIC_CMD in
14682 [\\/*] | ?:[\\/]*)
14683 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
14686 lt_save_MAGIC_CMD="$MAGIC_CMD"
14687 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
14688 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
14689 for ac_dir in $ac_dummy; do
14690 IFS="$lt_save_ifs"
14691 test -z "$ac_dir" && ac_dir=.
14692 if test -f $ac_dir/${ac_tool_prefix}file; then
14693 lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
14694 if test -n "$file_magic_test_file"; then
14695 case $deplibs_check_method in
14696 "file_magic "*)
14697 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
14698 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
14699 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
14700 $EGREP "$file_magic_regex" > /dev/null; then
14702 else
14703 cat <<_LT_EOF 1>&2
14705 *** Warning: the command libtool uses to detect shared libraries,
14706 *** $file_magic_cmd, produces output that libtool cannot recognize.
14707 *** The result is that libtool may fail to recognize shared libraries
14708 *** as such. This will affect the creation of libtool libraries that
14709 *** depend on shared libraries, but programs linked with such libtool
14710 *** libraries will work regardless of this problem. Nevertheless, you
14711 *** may want to report the problem to your system manager and/or to
14712 *** bug-libtool@gnu.org
14714 _LT_EOF
14715 fi ;;
14716 esac
14718 break
14720 done
14721 IFS="$lt_save_ifs"
14722 MAGIC_CMD="$lt_save_MAGIC_CMD"
14724 esac
14727 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
14728 if test -n "$MAGIC_CMD"; then
14729 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
14730 $as_echo "$MAGIC_CMD" >&6; }
14731 else
14732 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14733 $as_echo "no" >&6; }
14740 if test -z "$lt_cv_path_MAGIC_CMD"; then
14741 if test -n "$ac_tool_prefix"; then
14742 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for file" >&5
14743 $as_echo_n "checking for file... " >&6; }
14744 if test "${lt_cv_path_MAGIC_CMD+set}" = set; then :
14745 $as_echo_n "(cached) " >&6
14746 else
14747 case $MAGIC_CMD in
14748 [\\/*] | ?:[\\/]*)
14749 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
14752 lt_save_MAGIC_CMD="$MAGIC_CMD"
14753 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
14754 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
14755 for ac_dir in $ac_dummy; do
14756 IFS="$lt_save_ifs"
14757 test -z "$ac_dir" && ac_dir=.
14758 if test -f $ac_dir/file; then
14759 lt_cv_path_MAGIC_CMD="$ac_dir/file"
14760 if test -n "$file_magic_test_file"; then
14761 case $deplibs_check_method in
14762 "file_magic "*)
14763 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
14764 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
14765 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
14766 $EGREP "$file_magic_regex" > /dev/null; then
14768 else
14769 cat <<_LT_EOF 1>&2
14771 *** Warning: the command libtool uses to detect shared libraries,
14772 *** $file_magic_cmd, produces output that libtool cannot recognize.
14773 *** The result is that libtool may fail to recognize shared libraries
14774 *** as such. This will affect the creation of libtool libraries that
14775 *** depend on shared libraries, but programs linked with such libtool
14776 *** libraries will work regardless of this problem. Nevertheless, you
14777 *** may want to report the problem to your system manager and/or to
14778 *** bug-libtool@gnu.org
14780 _LT_EOF
14781 fi ;;
14782 esac
14784 break
14786 done
14787 IFS="$lt_save_ifs"
14788 MAGIC_CMD="$lt_save_MAGIC_CMD"
14790 esac
14793 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
14794 if test -n "$MAGIC_CMD"; then
14795 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
14796 $as_echo "$MAGIC_CMD" >&6; }
14797 else
14798 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14799 $as_echo "no" >&6; }
14803 else
14804 MAGIC_CMD=:
14810 esac
14812 # Use C for the default configuration in the libtool script
14814 lt_save_CC="$CC"
14815 ac_ext=c
14816 ac_cpp='$CPP $CPPFLAGS'
14817 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
14818 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
14819 ac_compiler_gnu=$ac_cv_c_compiler_gnu
14822 # Source file extension for C test sources.
14823 ac_ext=c
14825 # Object file extension for compiled C test sources.
14826 objext=o
14827 objext=$objext
14829 # Code to be used in simple compile tests
14830 lt_simple_compile_test_code="int some_variable = 0;"
14832 # Code to be used in simple link tests
14833 lt_simple_link_test_code='int main(){return(0);}'
14841 # If no C compiler was specified, use CC.
14842 LTCC=${LTCC-"$CC"}
14844 # If no C compiler flags were specified, use CFLAGS.
14845 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
14847 # Allow CC to be a program name with arguments.
14848 compiler=$CC
14850 # Save the default compiler, since it gets overwritten when the other
14851 # tags are being tested, and _LT_TAGVAR(compiler, []) is a NOP.
14852 compiler_DEFAULT=$CC
14854 # save warnings/boilerplate of simple test code
14855 ac_outfile=conftest.$ac_objext
14856 echo "$lt_simple_compile_test_code" >conftest.$ac_ext
14857 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
14858 _lt_compiler_boilerplate=`cat conftest.err`
14859 $RM conftest*
14861 ac_outfile=conftest.$ac_objext
14862 echo "$lt_simple_link_test_code" >conftest.$ac_ext
14863 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
14864 _lt_linker_boilerplate=`cat conftest.err`
14865 $RM -r conftest*
14868 ## CAVEAT EMPTOR:
14869 ## There is no encapsulation within the following macros, do not change
14870 ## the running order or otherwise move them around unless you know exactly
14871 ## what you are doing...
14872 if test -n "$compiler"; then
14874 lt_prog_compiler_no_builtin_flag=
14876 if test "$GCC" = yes; then
14877 case $cc_basename in
14878 nvcc*)
14879 lt_prog_compiler_no_builtin_flag=' -Xcompiler -fno-builtin' ;;
14881 lt_prog_compiler_no_builtin_flag=' -fno-builtin' ;;
14882 esac
14884 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
14885 $as_echo_n "checking if $compiler supports -fno-rtti -fno-exceptions... " >&6; }
14886 if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then :
14887 $as_echo_n "(cached) " >&6
14888 else
14889 lt_cv_prog_compiler_rtti_exceptions=no
14890 ac_outfile=conftest.$ac_objext
14891 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
14892 lt_compiler_flag="-fno-rtti -fno-exceptions"
14893 # Insert the option either (1) after the last *FLAGS variable, or
14894 # (2) before a word containing "conftest.", or (3) at the end.
14895 # Note that $ac_compile itself does not contain backslashes and begins
14896 # with a dollar sign (not a hyphen), so the echo should work correctly.
14897 # The option is referenced via a variable to avoid confusing sed.
14898 lt_compile=`echo "$ac_compile" | $SED \
14899 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
14900 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
14901 -e 's:$: $lt_compiler_flag:'`
14902 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
14903 (eval "$lt_compile" 2>conftest.err)
14904 ac_status=$?
14905 cat conftest.err >&5
14906 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14907 if (exit $ac_status) && test -s "$ac_outfile"; then
14908 # The compiler can only warn and ignore the option if not recognized
14909 # So say no if there are warnings other than the usual output.
14910 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
14911 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
14912 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
14913 lt_cv_prog_compiler_rtti_exceptions=yes
14916 $RM conftest*
14919 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
14920 $as_echo "$lt_cv_prog_compiler_rtti_exceptions" >&6; }
14922 if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
14923 lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
14924 else
14935 lt_prog_compiler_wl=
14936 lt_prog_compiler_pic=
14937 lt_prog_compiler_static=
14939 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
14940 $as_echo_n "checking for $compiler option to produce PIC... " >&6; }
14942 if test "$GCC" = yes; then
14943 lt_prog_compiler_wl='-Wl,'
14944 lt_prog_compiler_static='-static'
14946 case $host_os in
14947 aix*)
14948 # All AIX code is PIC.
14949 if test "$host_cpu" = ia64; then
14950 # AIX 5 now supports IA64 processor
14951 lt_prog_compiler_static='-Bstatic'
14953 lt_prog_compiler_pic='-fPIC'
14956 amigaos*)
14957 case $host_cpu in
14958 powerpc)
14959 # see comment about AmigaOS4 .so support
14960 lt_prog_compiler_pic='-fPIC'
14962 m68k)
14963 # FIXME: we need at least 68020 code to build shared libraries, but
14964 # adding the `-m68020' flag to GCC prevents building anything better,
14965 # like `-m68040'.
14966 lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
14968 esac
14971 beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
14972 # PIC is the default for these OSes.
14975 mingw* | cygwin* | pw32* | os2* | cegcc*)
14976 # This hack is so that the source file can tell whether it is being
14977 # built for inclusion in a dll (and should export symbols for example).
14978 # Although the cygwin gcc ignores -fPIC, still need this for old-style
14979 # (--disable-auto-import) libraries
14980 lt_prog_compiler_pic='-DDLL_EXPORT'
14983 darwin* | rhapsody*)
14984 # PIC is the default on this platform
14985 # Common symbols not allowed in MH_DYLIB files
14986 lt_prog_compiler_pic='-fno-common'
14989 haiku*)
14990 # PIC is the default for Haiku.
14991 # The "-static" flag exists, but is broken.
14992 lt_prog_compiler_static=
14995 hpux*)
14996 # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
14997 # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag
14998 # sets the default TLS model and affects inlining.
14999 case $host_cpu in
15000 hppa*64*)
15001 # +Z the default
15004 lt_prog_compiler_pic='-fPIC'
15006 esac
15009 interix[3-9]*)
15010 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
15011 # Instead, we relocate shared libraries at runtime.
15014 msdosdjgpp*)
15015 # Just because we use GCC doesn't mean we suddenly get shared libraries
15016 # on systems that don't support them.
15017 lt_prog_compiler_can_build_shared=no
15018 enable_shared=no
15021 *nto* | *qnx*)
15022 # QNX uses GNU C++, but need to define -shared option too, otherwise
15023 # it will coredump.
15024 lt_prog_compiler_pic='-fPIC -shared'
15027 sysv4*MP*)
15028 if test -d /usr/nec; then
15029 lt_prog_compiler_pic=-Kconform_pic
15034 lt_prog_compiler_pic='-fPIC'
15036 esac
15038 case $cc_basename in
15039 nvcc*) # Cuda Compiler Driver 2.2
15040 lt_prog_compiler_wl='-Xlinker '
15041 lt_prog_compiler_pic='-Xcompiler -fPIC'
15043 esac
15044 else
15045 # PORTME Check for flag to pass linker flags through the system compiler.
15046 case $host_os in
15047 aix*)
15048 lt_prog_compiler_wl='-Wl,'
15049 if test "$host_cpu" = ia64; then
15050 # AIX 5 now supports IA64 processor
15051 lt_prog_compiler_static='-Bstatic'
15052 else
15053 lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
15057 mingw* | cygwin* | pw32* | os2* | cegcc*)
15058 # This hack is so that the source file can tell whether it is being
15059 # built for inclusion in a dll (and should export symbols for example).
15060 lt_prog_compiler_pic='-DDLL_EXPORT'
15063 hpux9* | hpux10* | hpux11*)
15064 lt_prog_compiler_wl='-Wl,'
15065 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
15066 # not for PA HP-UX.
15067 case $host_cpu in
15068 hppa*64*|ia64*)
15069 # +Z the default
15072 lt_prog_compiler_pic='+Z'
15074 esac
15075 # Is there a better lt_prog_compiler_static that works with the bundled CC?
15076 lt_prog_compiler_static='${wl}-a ${wl}archive'
15079 irix5* | irix6* | nonstopux*)
15080 lt_prog_compiler_wl='-Wl,'
15081 # PIC (with -KPIC) is the default.
15082 lt_prog_compiler_static='-non_shared'
15085 linux* | k*bsd*-gnu | kopensolaris*-gnu)
15086 case $cc_basename in
15087 # old Intel for x86_64 which still supported -KPIC.
15088 ecc*)
15089 lt_prog_compiler_wl='-Wl,'
15090 lt_prog_compiler_pic='-KPIC'
15091 lt_prog_compiler_static='-static'
15093 # icc used to be incompatible with GCC.
15094 # ICC 10 doesn't accept -KPIC any more.
15095 icc* | ifort*)
15096 lt_prog_compiler_wl='-Wl,'
15097 lt_prog_compiler_pic='-fPIC'
15098 lt_prog_compiler_static='-static'
15100 # Lahey Fortran 8.1.
15101 lf95*)
15102 lt_prog_compiler_wl='-Wl,'
15103 lt_prog_compiler_pic='--shared'
15104 lt_prog_compiler_static='--static'
15106 pgcc* | pgf77* | pgf90* | pgf95* | pgfortran*)
15107 # Portland Group compilers (*not* the Pentium gcc compiler,
15108 # which looks to be a dead project)
15109 lt_prog_compiler_wl='-Wl,'
15110 lt_prog_compiler_pic='-fpic'
15111 lt_prog_compiler_static='-Bstatic'
15113 ccc*)
15114 lt_prog_compiler_wl='-Wl,'
15115 # All Alpha code is PIC.
15116 lt_prog_compiler_static='-non_shared'
15118 xl* | bgxl* | bgf* | mpixl*)
15119 # IBM XL C 8.0/Fortran 10.1, 11.1 on PPC and BlueGene
15120 lt_prog_compiler_wl='-Wl,'
15121 lt_prog_compiler_pic='-qpic'
15122 lt_prog_compiler_static='-qstaticlink'
15125 case `$CC -V 2>&1 | sed 5q` in
15126 *Sun\ F* | *Sun*Fortran*)
15127 # Sun Fortran 8.3 passes all unrecognized flags to the linker
15128 lt_prog_compiler_pic='-KPIC'
15129 lt_prog_compiler_static='-Bstatic'
15130 lt_prog_compiler_wl=''
15132 *Sun\ C*)
15133 # Sun C 5.9
15134 lt_prog_compiler_pic='-KPIC'
15135 lt_prog_compiler_static='-Bstatic'
15136 lt_prog_compiler_wl='-Wl,'
15138 esac
15140 esac
15143 newsos6)
15144 lt_prog_compiler_pic='-KPIC'
15145 lt_prog_compiler_static='-Bstatic'
15148 *nto* | *qnx*)
15149 # QNX uses GNU C++, but need to define -shared option too, otherwise
15150 # it will coredump.
15151 lt_prog_compiler_pic='-fPIC -shared'
15154 osf3* | osf4* | osf5*)
15155 lt_prog_compiler_wl='-Wl,'
15156 # All OSF/1 code is PIC.
15157 lt_prog_compiler_static='-non_shared'
15160 rdos*)
15161 lt_prog_compiler_static='-non_shared'
15164 solaris*)
15165 lt_prog_compiler_pic='-KPIC'
15166 lt_prog_compiler_static='-Bstatic'
15167 case $cc_basename in
15168 f77* | f90* | f95*)
15169 lt_prog_compiler_wl='-Qoption ld ';;
15171 lt_prog_compiler_wl='-Wl,';;
15172 esac
15175 sunos4*)
15176 lt_prog_compiler_wl='-Qoption ld '
15177 lt_prog_compiler_pic='-PIC'
15178 lt_prog_compiler_static='-Bstatic'
15181 sysv4 | sysv4.2uw2* | sysv4.3*)
15182 lt_prog_compiler_wl='-Wl,'
15183 lt_prog_compiler_pic='-KPIC'
15184 lt_prog_compiler_static='-Bstatic'
15187 sysv4*MP*)
15188 if test -d /usr/nec ;then
15189 lt_prog_compiler_pic='-Kconform_pic'
15190 lt_prog_compiler_static='-Bstatic'
15194 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
15195 lt_prog_compiler_wl='-Wl,'
15196 lt_prog_compiler_pic='-KPIC'
15197 lt_prog_compiler_static='-Bstatic'
15200 unicos*)
15201 lt_prog_compiler_wl='-Wl,'
15202 lt_prog_compiler_can_build_shared=no
15205 uts4*)
15206 lt_prog_compiler_pic='-pic'
15207 lt_prog_compiler_static='-Bstatic'
15211 lt_prog_compiler_can_build_shared=no
15213 esac
15216 case $host_os in
15217 # For platforms which do not support PIC, -DPIC is meaningless:
15218 *djgpp*)
15219 lt_prog_compiler_pic=
15222 lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
15224 esac
15225 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_prog_compiler_pic" >&5
15226 $as_echo "$lt_prog_compiler_pic" >&6; }
15234 # Check to make sure the PIC flag actually works.
15236 if test -n "$lt_prog_compiler_pic"; then
15237 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
15238 $as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic works... " >&6; }
15239 if test "${lt_cv_prog_compiler_pic_works+set}" = set; then :
15240 $as_echo_n "(cached) " >&6
15241 else
15242 lt_cv_prog_compiler_pic_works=no
15243 ac_outfile=conftest.$ac_objext
15244 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
15245 lt_compiler_flag="$lt_prog_compiler_pic -DPIC"
15246 # Insert the option either (1) after the last *FLAGS variable, or
15247 # (2) before a word containing "conftest.", or (3) at the end.
15248 # Note that $ac_compile itself does not contain backslashes and begins
15249 # with a dollar sign (not a hyphen), so the echo should work correctly.
15250 # The option is referenced via a variable to avoid confusing sed.
15251 lt_compile=`echo "$ac_compile" | $SED \
15252 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
15253 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
15254 -e 's:$: $lt_compiler_flag:'`
15255 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
15256 (eval "$lt_compile" 2>conftest.err)
15257 ac_status=$?
15258 cat conftest.err >&5
15259 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15260 if (exit $ac_status) && test -s "$ac_outfile"; then
15261 # The compiler can only warn and ignore the option if not recognized
15262 # So say no if there are warnings other than the usual output.
15263 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
15264 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
15265 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
15266 lt_cv_prog_compiler_pic_works=yes
15269 $RM conftest*
15272 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works" >&5
15273 $as_echo "$lt_cv_prog_compiler_pic_works" >&6; }
15275 if test x"$lt_cv_prog_compiler_pic_works" = xyes; then
15276 case $lt_prog_compiler_pic in
15277 "" | " "*) ;;
15278 *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
15279 esac
15280 else
15281 lt_prog_compiler_pic=
15282 lt_prog_compiler_can_build_shared=no
15293 # Check to make sure the static flag actually works.
15295 wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
15296 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
15297 $as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
15298 if test "${lt_cv_prog_compiler_static_works+set}" = set; then :
15299 $as_echo_n "(cached) " >&6
15300 else
15301 lt_cv_prog_compiler_static_works=no
15302 save_LDFLAGS="$LDFLAGS"
15303 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
15304 echo "$lt_simple_link_test_code" > conftest.$ac_ext
15305 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
15306 # The linker can only warn and ignore the option if not recognized
15307 # So say no if there are warnings
15308 if test -s conftest.err; then
15309 # Append any errors to the config.log.
15310 cat conftest.err 1>&5
15311 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
15312 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
15313 if diff conftest.exp conftest.er2 >/dev/null; then
15314 lt_cv_prog_compiler_static_works=yes
15316 else
15317 lt_cv_prog_compiler_static_works=yes
15320 $RM -r conftest*
15321 LDFLAGS="$save_LDFLAGS"
15324 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works" >&5
15325 $as_echo "$lt_cv_prog_compiler_static_works" >&6; }
15327 if test x"$lt_cv_prog_compiler_static_works" = xyes; then
15329 else
15330 lt_prog_compiler_static=
15339 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
15340 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
15341 if test "${lt_cv_prog_compiler_c_o+set}" = set; then :
15342 $as_echo_n "(cached) " >&6
15343 else
15344 lt_cv_prog_compiler_c_o=no
15345 $RM -r conftest 2>/dev/null
15346 mkdir conftest
15347 cd conftest
15348 mkdir out
15349 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
15351 lt_compiler_flag="-o out/conftest2.$ac_objext"
15352 # Insert the option either (1) after the last *FLAGS variable, or
15353 # (2) before a word containing "conftest.", or (3) at the end.
15354 # Note that $ac_compile itself does not contain backslashes and begins
15355 # with a dollar sign (not a hyphen), so the echo should work correctly.
15356 lt_compile=`echo "$ac_compile" | $SED \
15357 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
15358 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
15359 -e 's:$: $lt_compiler_flag:'`
15360 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
15361 (eval "$lt_compile" 2>out/conftest.err)
15362 ac_status=$?
15363 cat out/conftest.err >&5
15364 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15365 if (exit $ac_status) && test -s out/conftest2.$ac_objext
15366 then
15367 # The compiler can only warn and ignore the option if not recognized
15368 # So say no if there are warnings
15369 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
15370 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
15371 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
15372 lt_cv_prog_compiler_c_o=yes
15375 chmod u+w . 2>&5
15376 $RM conftest*
15377 # SGI C++ compiler will create directory out/ii_files/ for
15378 # template instantiation
15379 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
15380 $RM out/* && rmdir out
15381 cd ..
15382 $RM -r conftest
15383 $RM conftest*
15386 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
15387 $as_echo "$lt_cv_prog_compiler_c_o" >&6; }
15394 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
15395 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
15396 if test "${lt_cv_prog_compiler_c_o+set}" = set; then :
15397 $as_echo_n "(cached) " >&6
15398 else
15399 lt_cv_prog_compiler_c_o=no
15400 $RM -r conftest 2>/dev/null
15401 mkdir conftest
15402 cd conftest
15403 mkdir out
15404 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
15406 lt_compiler_flag="-o out/conftest2.$ac_objext"
15407 # Insert the option either (1) after the last *FLAGS variable, or
15408 # (2) before a word containing "conftest.", or (3) at the end.
15409 # Note that $ac_compile itself does not contain backslashes and begins
15410 # with a dollar sign (not a hyphen), so the echo should work correctly.
15411 lt_compile=`echo "$ac_compile" | $SED \
15412 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
15413 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
15414 -e 's:$: $lt_compiler_flag:'`
15415 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
15416 (eval "$lt_compile" 2>out/conftest.err)
15417 ac_status=$?
15418 cat out/conftest.err >&5
15419 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15420 if (exit $ac_status) && test -s out/conftest2.$ac_objext
15421 then
15422 # The compiler can only warn and ignore the option if not recognized
15423 # So say no if there are warnings
15424 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
15425 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
15426 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
15427 lt_cv_prog_compiler_c_o=yes
15430 chmod u+w . 2>&5
15431 $RM conftest*
15432 # SGI C++ compiler will create directory out/ii_files/ for
15433 # template instantiation
15434 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
15435 $RM out/* && rmdir out
15436 cd ..
15437 $RM -r conftest
15438 $RM conftest*
15441 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
15442 $as_echo "$lt_cv_prog_compiler_c_o" >&6; }
15447 hard_links="nottested"
15448 if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then
15449 # do not overwrite the value of need_locks provided by the user
15450 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
15451 $as_echo_n "checking if we can lock with hard links... " >&6; }
15452 hard_links=yes
15453 $RM conftest*
15454 ln conftest.a conftest.b 2>/dev/null && hard_links=no
15455 touch conftest.a
15456 ln conftest.a conftest.b 2>&5 || hard_links=no
15457 ln conftest.a conftest.b 2>/dev/null && hard_links=no
15458 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
15459 $as_echo "$hard_links" >&6; }
15460 if test "$hard_links" = no; then
15461 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
15462 $as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
15463 need_locks=warn
15465 else
15466 need_locks=no
15474 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
15475 $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
15477 runpath_var=
15478 allow_undefined_flag=
15479 always_export_symbols=no
15480 archive_cmds=
15481 archive_expsym_cmds=
15482 compiler_needs_object=no
15483 enable_shared_with_static_runtimes=no
15484 export_dynamic_flag_spec=
15485 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
15486 hardcode_automatic=no
15487 hardcode_direct=no
15488 hardcode_direct_absolute=no
15489 hardcode_libdir_flag_spec=
15490 hardcode_libdir_flag_spec_ld=
15491 hardcode_libdir_separator=
15492 hardcode_minus_L=no
15493 hardcode_shlibpath_var=unsupported
15494 inherit_rpath=no
15495 link_all_deplibs=unknown
15496 module_cmds=
15497 module_expsym_cmds=
15498 old_archive_from_new_cmds=
15499 old_archive_from_expsyms_cmds=
15500 thread_safe_flag_spec=
15501 whole_archive_flag_spec=
15502 # include_expsyms should be a list of space-separated symbols to be *always*
15503 # included in the symbol list
15504 include_expsyms=
15505 # exclude_expsyms can be an extended regexp of symbols to exclude
15506 # it will be wrapped by ` (' and `)$', so one must not match beginning or
15507 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
15508 # as well as any symbol that contains `d'.
15509 exclude_expsyms='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
15510 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
15511 # platforms (ab)use it in PIC code, but their linkers get confused if
15512 # the symbol is explicitly referenced. Since portable code cannot
15513 # rely on this symbol name, it's probably fine to never include it in
15514 # preloaded symbol tables.
15515 # Exclude shared library initialization/finalization symbols.
15516 extract_expsyms_cmds=
15518 case $host_os in
15519 cygwin* | mingw* | pw32* | cegcc*)
15520 # FIXME: the MSVC++ port hasn't been tested in a loooong time
15521 # When not using gcc, we currently assume that we are using
15522 # Microsoft Visual C++.
15523 if test "$GCC" != yes; then
15524 with_gnu_ld=no
15527 interix*)
15528 # we just hope/assume this is gcc and not c89 (= MSVC++)
15529 with_gnu_ld=yes
15531 openbsd*)
15532 with_gnu_ld=no
15534 esac
15536 ld_shlibs=yes
15538 # On some targets, GNU ld is compatible enough with the native linker
15539 # that we're better off using the native interface for both.
15540 lt_use_gnu_ld_interface=no
15541 if test "$with_gnu_ld" = yes; then
15542 case $host_os in
15543 aix*)
15544 # The AIX port of GNU ld has always aspired to compatibility
15545 # with the native linker. However, as the warning in the GNU ld
15546 # block says, versions before 2.19.5* couldn't really create working
15547 # shared libraries, regardless of the interface used.
15548 case `$LD -v 2>&1` in
15549 *\ \(GNU\ Binutils\)\ 2.19.5*) ;;
15550 *\ \(GNU\ Binutils\)\ 2.[2-9]*) ;;
15551 *\ \(GNU\ Binutils\)\ [3-9]*) ;;
15553 lt_use_gnu_ld_interface=yes
15555 esac
15558 lt_use_gnu_ld_interface=yes
15560 esac
15563 if test "$lt_use_gnu_ld_interface" = yes; then
15564 # If archive_cmds runs LD, not CC, wlarc should be empty
15565 wlarc='${wl}'
15567 # Set some defaults for GNU ld with shared library support. These
15568 # are reset later if shared libraries are not supported. Putting them
15569 # here allows them to be overridden if necessary.
15570 runpath_var=LD_RUN_PATH
15571 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
15572 export_dynamic_flag_spec='${wl}--export-dynamic'
15573 # ancient GNU ld didn't support --whole-archive et. al.
15574 if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then
15575 whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
15576 else
15577 whole_archive_flag_spec=
15579 supports_anon_versioning=no
15580 case `$LD -v 2>&1` in
15581 *GNU\ gold*) supports_anon_versioning=yes ;;
15582 *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
15583 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
15584 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
15585 *\ 2.11.*) ;; # other 2.11 versions
15586 *) supports_anon_versioning=yes ;;
15587 esac
15589 # See if GNU ld supports shared libraries.
15590 case $host_os in
15591 aix[3-9]*)
15592 # On AIX/PPC, the GNU linker is very broken
15593 if test "$host_cpu" != ia64; then
15594 ld_shlibs=no
15595 cat <<_LT_EOF 1>&2
15597 *** Warning: the GNU linker, at least up to release 2.19, is reported
15598 *** to be unable to reliably create shared libraries on AIX.
15599 *** Therefore, libtool is disabling shared libraries support. If you
15600 *** really care for shared libraries, you may want to install binutils
15601 *** 2.20 or above, or modify your PATH so that a non-GNU linker is found.
15602 *** You will then need to restart the configuration process.
15604 _LT_EOF
15608 amigaos*)
15609 case $host_cpu in
15610 powerpc)
15611 # see comment about AmigaOS4 .so support
15612 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
15613 archive_expsym_cmds=''
15615 m68k)
15616 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)'
15617 hardcode_libdir_flag_spec='-L$libdir'
15618 hardcode_minus_L=yes
15620 esac
15623 beos*)
15624 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
15625 allow_undefined_flag=unsupported
15626 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
15627 # support --undefined. This deserves some investigation. FIXME
15628 archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
15629 else
15630 ld_shlibs=no
15634 cygwin* | mingw* | pw32* | cegcc*)
15635 # _LT_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
15636 # as there is no search path for DLLs.
15637 hardcode_libdir_flag_spec='-L$libdir'
15638 export_dynamic_flag_spec='${wl}--export-all-symbols'
15639 allow_undefined_flag=unsupported
15640 always_export_symbols=no
15641 enable_shared_with_static_runtimes=yes
15642 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
15644 if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
15645 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
15646 # If the export-symbols file already is a .def file (1st line
15647 # is EXPORTS), use it as is; otherwise, prepend...
15648 archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
15649 cp $export_symbols $output_objdir/$soname.def;
15650 else
15651 echo EXPORTS > $output_objdir/$soname.def;
15652 cat $export_symbols >> $output_objdir/$soname.def;
15654 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
15655 else
15656 ld_shlibs=no
15660 haiku*)
15661 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
15662 link_all_deplibs=yes
15665 interix[3-9]*)
15666 hardcode_direct=no
15667 hardcode_shlibpath_var=no
15668 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
15669 export_dynamic_flag_spec='${wl}-E'
15670 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
15671 # Instead, shared libraries are loaded at an image base (0x10000000 by
15672 # default) and relocated if they conflict, which is a slow very memory
15673 # consuming and fragmenting process. To avoid this, we pick a random,
15674 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
15675 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
15676 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
15677 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'
15680 gnu* | linux* | tpf* | k*bsd*-gnu | kopensolaris*-gnu)
15681 tmp_diet=no
15682 if test "$host_os" = linux-dietlibc; then
15683 case $cc_basename in
15684 diet\ *) tmp_diet=yes;; # linux-dietlibc with static linking (!diet-dyn)
15685 esac
15687 if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \
15688 && test "$tmp_diet" = no
15689 then
15690 tmp_addflag=
15691 tmp_sharedflag='-shared'
15692 case $cc_basename,$host_cpu in
15693 pgcc*) # Portland Group C compiler
15694 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'
15695 tmp_addflag=' $pic_flag'
15697 pgf77* | pgf90* | pgf95* | pgfortran*)
15698 # Portland Group f77 and f90 compilers
15699 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'
15700 tmp_addflag=' $pic_flag -Mnomain' ;;
15701 ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64
15702 tmp_addflag=' -i_dynamic' ;;
15703 efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64
15704 tmp_addflag=' -i_dynamic -nofor_main' ;;
15705 ifc* | ifort*) # Intel Fortran compiler
15706 tmp_addflag=' -nofor_main' ;;
15707 lf95*) # Lahey Fortran 8.1
15708 whole_archive_flag_spec=
15709 tmp_sharedflag='--shared' ;;
15710 xl[cC]* | bgxl[cC]* | mpixl[cC]*) # IBM XL C 8.0 on PPC (deal with xlf below)
15711 tmp_sharedflag='-qmkshrobj'
15712 tmp_addflag= ;;
15713 nvcc*) # Cuda Compiler Driver 2.2
15714 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'
15715 compiler_needs_object=yes
15717 esac
15718 case `$CC -V 2>&1 | sed 5q` in
15719 *Sun\ C*) # Sun C 5.9
15720 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'
15721 compiler_needs_object=yes
15722 tmp_sharedflag='-G' ;;
15723 *Sun\ F*) # Sun Fortran 8.3
15724 tmp_sharedflag='-G' ;;
15725 esac
15726 archive_cmds='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
15728 if test "x$supports_anon_versioning" = xyes; then
15729 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
15730 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
15731 echo "local: *; };" >> $output_objdir/$libname.ver~
15732 $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
15735 case $cc_basename in
15736 xlf* | bgf* | bgxlf* | mpixlf*)
15737 # IBM XL Fortran 10.1 on PPC cannot create shared libs itself
15738 whole_archive_flag_spec='--whole-archive$convenience --no-whole-archive'
15739 hardcode_libdir_flag_spec=
15740 hardcode_libdir_flag_spec_ld='-rpath $libdir'
15741 archive_cmds='$LD -shared $libobjs $deplibs $compiler_flags -soname $soname -o $lib'
15742 if test "x$supports_anon_versioning" = xyes; then
15743 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
15744 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
15745 echo "local: *; };" >> $output_objdir/$libname.ver~
15746 $LD -shared $libobjs $deplibs $compiler_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib'
15749 esac
15750 else
15751 ld_shlibs=no
15755 netbsd*)
15756 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
15757 archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
15758 wlarc=
15759 else
15760 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
15761 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
15765 solaris*)
15766 if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then
15767 ld_shlibs=no
15768 cat <<_LT_EOF 1>&2
15770 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
15771 *** create shared libraries on Solaris systems. Therefore, libtool
15772 *** is disabling shared libraries support. We urge you to upgrade GNU
15773 *** binutils to release 2.9.1 or newer. Another option is to modify
15774 *** your PATH or compiler configuration so that the native linker is
15775 *** used, and then restart.
15777 _LT_EOF
15778 elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
15779 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
15780 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
15781 else
15782 ld_shlibs=no
15786 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
15787 case `$LD -v 2>&1` in
15788 *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
15789 ld_shlibs=no
15790 cat <<_LT_EOF 1>&2
15792 *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
15793 *** reliably create shared libraries on SCO systems. Therefore, libtool
15794 *** is disabling shared libraries support. We urge you to upgrade GNU
15795 *** binutils to release 2.16.91.0.3 or newer. Another option is to modify
15796 *** your PATH or compiler configuration so that the native linker is
15797 *** used, and then restart.
15799 _LT_EOF
15802 # For security reasons, it is highly recommended that you always
15803 # use absolute paths for naming shared libraries, and exclude the
15804 # DT_RUNPATH tag from executables and libraries. But doing so
15805 # requires that you compile everything twice, which is a pain.
15806 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
15807 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
15808 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
15809 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
15810 else
15811 ld_shlibs=no
15814 esac
15817 sunos4*)
15818 archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
15819 wlarc=
15820 hardcode_direct=yes
15821 hardcode_shlibpath_var=no
15825 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
15826 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
15827 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
15828 else
15829 ld_shlibs=no
15832 esac
15834 if test "$ld_shlibs" = no; then
15835 runpath_var=
15836 hardcode_libdir_flag_spec=
15837 export_dynamic_flag_spec=
15838 whole_archive_flag_spec=
15840 else
15841 # PORTME fill in a description of your system's linker (not GNU ld)
15842 case $host_os in
15843 aix3*)
15844 allow_undefined_flag=unsupported
15845 always_export_symbols=yes
15846 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'
15847 # Note: this linker hardcodes the directories in LIBPATH if there
15848 # are no directories specified by -L.
15849 hardcode_minus_L=yes
15850 if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
15851 # Neither direct hardcoding nor static linking is supported with a
15852 # broken collect2.
15853 hardcode_direct=unsupported
15857 aix[4-9]*)
15858 if test "$host_cpu" = ia64; then
15859 # On IA64, the linker does run time linking by default, so we don't
15860 # have to do anything special.
15861 aix_use_runtimelinking=no
15862 exp_sym_flag='-Bexport'
15863 no_entry_flag=""
15864 else
15865 # If we're using GNU nm, then we don't want the "-C" option.
15866 # -C means demangle to AIX nm, but means don't demangle with GNU nm
15867 # Also, AIX nm treats weak defined symbols like other global
15868 # defined symbols, whereas GNU nm marks them as "W".
15869 if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
15870 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'
15871 else
15872 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'
15874 aix_use_runtimelinking=no
15876 # Test if we are trying to use run time linking or normal
15877 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
15878 # need to do runtime linking.
15879 case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
15880 for ld_flag in $LDFLAGS; do
15881 if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
15882 aix_use_runtimelinking=yes
15883 break
15885 done
15887 esac
15889 exp_sym_flag='-bexport'
15890 no_entry_flag='-bnoentry'
15893 # When large executables or shared objects are built, AIX ld can
15894 # have problems creating the table of contents. If linking a library
15895 # or program results in "error TOC overflow" add -mminimal-toc to
15896 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
15897 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
15899 archive_cmds=''
15900 hardcode_direct=yes
15901 hardcode_direct_absolute=yes
15902 hardcode_libdir_separator=':'
15903 link_all_deplibs=yes
15904 file_list_spec='${wl}-f,'
15906 if test "$GCC" = yes; then
15907 case $host_os in aix4.[012]|aix4.[012].*)
15908 # We only want to do this on AIX 4.2 and lower, the check
15909 # below for broken collect2 doesn't work under 4.3+
15910 collect2name=`${CC} -print-prog-name=collect2`
15911 if test -f "$collect2name" &&
15912 strings "$collect2name" | $GREP resolve_lib_name >/dev/null
15913 then
15914 # We have reworked collect2
15916 else
15917 # We have old collect2
15918 hardcode_direct=unsupported
15919 # It fails to find uninstalled libraries when the uninstalled
15920 # path is not listed in the libpath. Setting hardcode_minus_L
15921 # to unsupported forces relinking
15922 hardcode_minus_L=yes
15923 hardcode_libdir_flag_spec='-L$libdir'
15924 hardcode_libdir_separator=
15927 esac
15928 shared_flag='-shared'
15929 if test "$aix_use_runtimelinking" = yes; then
15930 shared_flag="$shared_flag "'${wl}-G'
15932 else
15933 # not using gcc
15934 if test "$host_cpu" = ia64; then
15935 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
15936 # chokes on -Wl,-G. The following line is correct:
15937 shared_flag='-G'
15938 else
15939 if test "$aix_use_runtimelinking" = yes; then
15940 shared_flag='${wl}-G'
15941 else
15942 shared_flag='${wl}-bM:SRE'
15947 export_dynamic_flag_spec='${wl}-bexpall'
15948 # It seems that -bexpall does not export symbols beginning with
15949 # underscore (_), so it is better to generate a list of symbols to export.
15950 always_export_symbols=yes
15951 if test "$aix_use_runtimelinking" = yes; then
15952 # Warning - without using the other runtime loading flags (-brtl),
15953 # -berok will link without error, but may produce a broken library.
15954 allow_undefined_flag='-berok'
15955 # Determine the default libpath from the value encoded in an
15956 # empty executable.
15957 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15958 /* end confdefs.h. */
15961 main ()
15965 return 0;
15967 _ACEOF
15968 if ac_fn_c_try_link "$LINENO"; then :
15970 lt_aix_libpath_sed='
15971 /Import File Strings/,/^$/ {
15972 /^0/ {
15973 s/^0 *\(.*\)$/\1/
15977 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
15978 # Check for a 64-bit object if we didn't find anything.
15979 if test -z "$aix_libpath"; then
15980 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
15983 rm -f core conftest.err conftest.$ac_objext \
15984 conftest$ac_exeext conftest.$ac_ext
15985 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
15987 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
15988 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"
15989 else
15990 if test "$host_cpu" = ia64; then
15991 hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
15992 allow_undefined_flag="-z nodefs"
15993 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"
15994 else
15995 # Determine the default libpath from the value encoded in an
15996 # empty executable.
15997 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15998 /* end confdefs.h. */
16001 main ()
16005 return 0;
16007 _ACEOF
16008 if ac_fn_c_try_link "$LINENO"; then :
16010 lt_aix_libpath_sed='
16011 /Import File Strings/,/^$/ {
16012 /^0/ {
16013 s/^0 *\(.*\)$/\1/
16017 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
16018 # Check for a 64-bit object if we didn't find anything.
16019 if test -z "$aix_libpath"; then
16020 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
16023 rm -f core conftest.err conftest.$ac_objext \
16024 conftest$ac_exeext conftest.$ac_ext
16025 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
16027 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
16028 # Warning - without using the other run time loading flags,
16029 # -berok will link without error, but may produce a broken library.
16030 no_undefined_flag=' ${wl}-bernotok'
16031 allow_undefined_flag=' ${wl}-berok'
16032 if test "$with_gnu_ld" = yes; then
16033 # We only use this code for GNU lds that support --whole-archive.
16034 whole_archive_flag_spec='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
16035 else
16036 # Exported symbols can be pulled into shared objects from archives
16037 whole_archive_flag_spec='$convenience'
16039 archive_cmds_need_lc=yes
16040 # This is similar to how AIX traditionally builds its shared libraries.
16041 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'
16046 amigaos*)
16047 case $host_cpu in
16048 powerpc)
16049 # see comment about AmigaOS4 .so support
16050 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
16051 archive_expsym_cmds=''
16053 m68k)
16054 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)'
16055 hardcode_libdir_flag_spec='-L$libdir'
16056 hardcode_minus_L=yes
16058 esac
16061 bsdi[45]*)
16062 export_dynamic_flag_spec=-rdynamic
16065 cygwin* | mingw* | pw32* | cegcc*)
16066 # When not using gcc, we currently assume that we are using
16067 # Microsoft Visual C++.
16068 # hardcode_libdir_flag_spec is actually meaningless, as there is
16069 # no search path for DLLs.
16070 hardcode_libdir_flag_spec=' '
16071 allow_undefined_flag=unsupported
16072 # Tell ltmain to make .lib files, not .a files.
16073 libext=lib
16074 # Tell ltmain to make .dll files, not .so files.
16075 shrext_cmds=".dll"
16076 # FIXME: Setting linknames here is a bad hack.
16077 archive_cmds='$CC -o $lib $libobjs $compiler_flags `func_echo_all "$deplibs" | $SED '\''s/ -lc$//'\''` -link -dll~linknames='
16078 # The linker will automatically build a .lib file if we build a DLL.
16079 old_archive_from_new_cmds='true'
16080 # FIXME: Should let the user specify the lib program.
16081 old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs'
16082 fix_srcfile_path='`cygpath -w "$srcfile"`'
16083 enable_shared_with_static_runtimes=yes
16086 darwin* | rhapsody*)
16089 archive_cmds_need_lc=no
16090 hardcode_direct=no
16091 hardcode_automatic=yes
16092 hardcode_shlibpath_var=unsupported
16093 if test "$lt_cv_ld_force_load" = "yes"; then
16094 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\"`'
16095 else
16096 whole_archive_flag_spec=''
16098 link_all_deplibs=yes
16099 allow_undefined_flag="$_lt_dar_allow_undefined"
16100 case $cc_basename in
16101 ifort*) _lt_dar_can_shared=yes ;;
16102 *) _lt_dar_can_shared=$GCC ;;
16103 esac
16104 if test "$_lt_dar_can_shared" = "yes"; then
16105 output_verbose_link_cmd=func_echo_all
16106 archive_cmds="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod${_lt_dsymutil}"
16107 module_cmds="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
16108 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}"
16109 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}"
16111 else
16112 ld_shlibs=no
16117 dgux*)
16118 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
16119 hardcode_libdir_flag_spec='-L$libdir'
16120 hardcode_shlibpath_var=no
16123 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
16124 # support. Future versions do this automatically, but an explicit c++rt0.o
16125 # does not break anything, and helps significantly (at the cost of a little
16126 # extra space).
16127 freebsd2.2*)
16128 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
16129 hardcode_libdir_flag_spec='-R$libdir'
16130 hardcode_direct=yes
16131 hardcode_shlibpath_var=no
16134 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
16135 freebsd2.*)
16136 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
16137 hardcode_direct=yes
16138 hardcode_minus_L=yes
16139 hardcode_shlibpath_var=no
16142 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
16143 freebsd* | dragonfly*)
16144 archive_cmds='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
16145 hardcode_libdir_flag_spec='-R$libdir'
16146 hardcode_direct=yes
16147 hardcode_shlibpath_var=no
16150 hpux9*)
16151 if test "$GCC" = yes; then
16152 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'
16153 else
16154 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'
16156 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
16157 hardcode_libdir_separator=:
16158 hardcode_direct=yes
16160 # hardcode_minus_L: Not really in the search PATH,
16161 # but as the default location of the library.
16162 hardcode_minus_L=yes
16163 export_dynamic_flag_spec='${wl}-E'
16166 hpux10*)
16167 if test "$GCC" = yes && test "$with_gnu_ld" = no; then
16168 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
16169 else
16170 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
16172 if test "$with_gnu_ld" = no; then
16173 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
16174 hardcode_libdir_flag_spec_ld='+b $libdir'
16175 hardcode_libdir_separator=:
16176 hardcode_direct=yes
16177 hardcode_direct_absolute=yes
16178 export_dynamic_flag_spec='${wl}-E'
16179 # hardcode_minus_L: Not really in the search PATH,
16180 # but as the default location of the library.
16181 hardcode_minus_L=yes
16185 hpux11*)
16186 if test "$GCC" = yes && test "$with_gnu_ld" = no; then
16187 case $host_cpu in
16188 hppa*64*)
16189 archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
16191 ia64*)
16192 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
16195 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
16197 esac
16198 else
16199 case $host_cpu in
16200 hppa*64*)
16201 archive_cmds='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
16203 ia64*)
16204 archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
16208 # Older versions of the 11.00 compiler do not understand -b yet
16209 # (HP92453-01 A.11.01.20 doesn't, HP92453-01 B.11.X.35175-35176.GP does)
16210 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC understands -b" >&5
16211 $as_echo_n "checking if $CC understands -b... " >&6; }
16212 if test "${lt_cv_prog_compiler__b+set}" = set; then :
16213 $as_echo_n "(cached) " >&6
16214 else
16215 lt_cv_prog_compiler__b=no
16216 save_LDFLAGS="$LDFLAGS"
16217 LDFLAGS="$LDFLAGS -b"
16218 echo "$lt_simple_link_test_code" > conftest.$ac_ext
16219 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
16220 # The linker can only warn and ignore the option if not recognized
16221 # So say no if there are warnings
16222 if test -s conftest.err; then
16223 # Append any errors to the config.log.
16224 cat conftest.err 1>&5
16225 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
16226 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
16227 if diff conftest.exp conftest.er2 >/dev/null; then
16228 lt_cv_prog_compiler__b=yes
16230 else
16231 lt_cv_prog_compiler__b=yes
16234 $RM -r conftest*
16235 LDFLAGS="$save_LDFLAGS"
16238 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler__b" >&5
16239 $as_echo "$lt_cv_prog_compiler__b" >&6; }
16241 if test x"$lt_cv_prog_compiler__b" = xyes; then
16242 archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
16243 else
16244 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
16248 esac
16250 if test "$with_gnu_ld" = no; then
16251 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
16252 hardcode_libdir_separator=:
16254 case $host_cpu in
16255 hppa*64*|ia64*)
16256 hardcode_direct=no
16257 hardcode_shlibpath_var=no
16260 hardcode_direct=yes
16261 hardcode_direct_absolute=yes
16262 export_dynamic_flag_spec='${wl}-E'
16264 # hardcode_minus_L: Not really in the search PATH,
16265 # but as the default location of the library.
16266 hardcode_minus_L=yes
16268 esac
16272 irix5* | irix6* | nonstopux*)
16273 if test "$GCC" = yes; then
16274 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'
16275 # Try to use the -exported_symbol ld option, if it does not
16276 # work, assume that -exports_file does not work either and
16277 # implicitly export all symbols.
16278 save_LDFLAGS="$LDFLAGS"
16279 LDFLAGS="$LDFLAGS -shared ${wl}-exported_symbol ${wl}foo ${wl}-update_registry ${wl}/dev/null"
16280 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16281 /* end confdefs.h. */
16282 int foo(void) {}
16283 _ACEOF
16284 if ac_fn_c_try_link "$LINENO"; then :
16285 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'
16288 rm -f core conftest.err conftest.$ac_objext \
16289 conftest$ac_exeext conftest.$ac_ext
16290 LDFLAGS="$save_LDFLAGS"
16291 else
16292 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'
16293 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'
16295 archive_cmds_need_lc='no'
16296 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
16297 hardcode_libdir_separator=:
16298 inherit_rpath=yes
16299 link_all_deplibs=yes
16302 netbsd*)
16303 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
16304 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
16305 else
16306 archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
16308 hardcode_libdir_flag_spec='-R$libdir'
16309 hardcode_direct=yes
16310 hardcode_shlibpath_var=no
16313 newsos6)
16314 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
16315 hardcode_direct=yes
16316 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
16317 hardcode_libdir_separator=:
16318 hardcode_shlibpath_var=no
16321 *nto* | *qnx*)
16324 openbsd*)
16325 if test -f /usr/libexec/ld.so; then
16326 hardcode_direct=yes
16327 hardcode_shlibpath_var=no
16328 hardcode_direct_absolute=yes
16329 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
16330 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
16331 archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
16332 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
16333 export_dynamic_flag_spec='${wl}-E'
16334 else
16335 case $host_os in
16336 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
16337 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
16338 hardcode_libdir_flag_spec='-R$libdir'
16341 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
16342 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
16344 esac
16346 else
16347 ld_shlibs=no
16351 os2*)
16352 hardcode_libdir_flag_spec='-L$libdir'
16353 hardcode_minus_L=yes
16354 allow_undefined_flag=unsupported
16355 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'
16356 old_archive_from_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
16359 osf3*)
16360 if test "$GCC" = yes; then
16361 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
16362 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'
16363 else
16364 allow_undefined_flag=' -expect_unresolved \*'
16365 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'
16367 archive_cmds_need_lc='no'
16368 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
16369 hardcode_libdir_separator=:
16372 osf4* | osf5*) # as osf3* with the addition of -msym flag
16373 if test "$GCC" = yes; then
16374 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
16375 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'
16376 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
16377 else
16378 allow_undefined_flag=' -expect_unresolved \*'
16379 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'
16380 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~
16381 $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'
16383 # Both c and cxx compiler support -rpath directly
16384 hardcode_libdir_flag_spec='-rpath $libdir'
16386 archive_cmds_need_lc='no'
16387 hardcode_libdir_separator=:
16390 solaris*)
16391 no_undefined_flag=' -z defs'
16392 if test "$GCC" = yes; then
16393 wlarc='${wl}'
16394 archive_cmds='$CC -shared ${wl}-z ${wl}text ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
16395 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
16396 $CC -shared ${wl}-z ${wl}text ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
16397 else
16398 case `$CC -V 2>&1` in
16399 *"Compilers 5.0"*)
16400 wlarc=''
16401 archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
16402 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
16403 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp'
16406 wlarc='${wl}'
16407 archive_cmds='$CC -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $compiler_flags'
16408 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
16409 $CC -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
16411 esac
16413 hardcode_libdir_flag_spec='-R$libdir'
16414 hardcode_shlibpath_var=no
16415 case $host_os in
16416 solaris2.[0-5] | solaris2.[0-5].*) ;;
16418 # The compiler driver will combine and reorder linker options,
16419 # but understands `-z linker_flag'. GCC discards it without `$wl',
16420 # but is careful enough not to reorder.
16421 # Supported since Solaris 2.6 (maybe 2.5.1?)
16422 if test "$GCC" = yes; then
16423 whole_archive_flag_spec='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
16424 else
16425 whole_archive_flag_spec='-z allextract$convenience -z defaultextract'
16428 esac
16429 link_all_deplibs=yes
16432 sunos4*)
16433 if test "x$host_vendor" = xsequent; then
16434 # Use $CC to link under sequent, because it throws in some extra .o
16435 # files that make .init and .fini sections work.
16436 archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
16437 else
16438 archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
16440 hardcode_libdir_flag_spec='-L$libdir'
16441 hardcode_direct=yes
16442 hardcode_minus_L=yes
16443 hardcode_shlibpath_var=no
16446 sysv4)
16447 case $host_vendor in
16448 sni)
16449 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
16450 hardcode_direct=yes # is this really true???
16452 siemens)
16453 ## LD is ld it makes a PLAMLIB
16454 ## CC just makes a GrossModule.
16455 archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
16456 reload_cmds='$CC -r -o $output$reload_objs'
16457 hardcode_direct=no
16459 motorola)
16460 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
16461 hardcode_direct=no #Motorola manual says yes, but my tests say they lie
16463 esac
16464 runpath_var='LD_RUN_PATH'
16465 hardcode_shlibpath_var=no
16468 sysv4.3*)
16469 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
16470 hardcode_shlibpath_var=no
16471 export_dynamic_flag_spec='-Bexport'
16474 sysv4*MP*)
16475 if test -d /usr/nec; then
16476 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
16477 hardcode_shlibpath_var=no
16478 runpath_var=LD_RUN_PATH
16479 hardcode_runpath_var=yes
16480 ld_shlibs=yes
16484 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
16485 no_undefined_flag='${wl}-z,text'
16486 archive_cmds_need_lc=no
16487 hardcode_shlibpath_var=no
16488 runpath_var='LD_RUN_PATH'
16490 if test "$GCC" = yes; then
16491 archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
16492 archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
16493 else
16494 archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
16495 archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
16499 sysv5* | sco3.2v5* | sco5v6*)
16500 # Note: We can NOT use -z defs as we might desire, because we do not
16501 # link with -lc, and that would cause any symbols used from libc to
16502 # always be unresolved, which means just about no library would
16503 # ever link correctly. If we're not using GNU ld we use -z text
16504 # though, which does catch some bad symbols but isn't as heavy-handed
16505 # as -z defs.
16506 no_undefined_flag='${wl}-z,text'
16507 allow_undefined_flag='${wl}-z,nodefs'
16508 archive_cmds_need_lc=no
16509 hardcode_shlibpath_var=no
16510 hardcode_libdir_flag_spec='${wl}-R,$libdir'
16511 hardcode_libdir_separator=':'
16512 link_all_deplibs=yes
16513 export_dynamic_flag_spec='${wl}-Bexport'
16514 runpath_var='LD_RUN_PATH'
16516 if test "$GCC" = yes; then
16517 archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
16518 archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
16519 else
16520 archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
16521 archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
16525 uts4*)
16526 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
16527 hardcode_libdir_flag_spec='-L$libdir'
16528 hardcode_shlibpath_var=no
16532 ld_shlibs=no
16534 esac
16536 if test x$host_vendor = xsni; then
16537 case $host in
16538 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
16539 export_dynamic_flag_spec='${wl}-Blargedynsym'
16541 esac
16545 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs" >&5
16546 $as_echo "$ld_shlibs" >&6; }
16547 test "$ld_shlibs" = no && can_build_shared=no
16549 with_gnu_ld=$with_gnu_ld
16566 # Do we need to explicitly link libc?
16568 case "x$archive_cmds_need_lc" in
16569 x|xyes)
16570 # Assume -lc should be added
16571 archive_cmds_need_lc=yes
16573 if test "$enable_shared" = yes && test "$GCC" = yes; then
16574 case $archive_cmds in
16575 *'~'*)
16576 # FIXME: we may have to deal with multi-command sequences.
16578 '$CC '*)
16579 # Test whether the compiler implicitly links with -lc since on some
16580 # systems, -lgcc has to come before -lc. If gcc already passes -lc
16581 # to ld, don't add -lc before -lgcc.
16582 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
16583 $as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
16584 if test "${lt_cv_archive_cmds_need_lc+set}" = set; then :
16585 $as_echo_n "(cached) " >&6
16586 else
16587 $RM conftest*
16588 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
16590 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
16591 (eval $ac_compile) 2>&5
16592 ac_status=$?
16593 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
16594 test $ac_status = 0; } 2>conftest.err; then
16595 soname=conftest
16596 lib=conftest
16597 libobjs=conftest.$ac_objext
16598 deplibs=
16599 wl=$lt_prog_compiler_wl
16600 pic_flag=$lt_prog_compiler_pic
16601 compiler_flags=-v
16602 linker_flags=-v
16603 verstring=
16604 output_objdir=.
16605 libname=conftest
16606 lt_save_allow_undefined_flag=$allow_undefined_flag
16607 allow_undefined_flag=
16608 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5
16609 (eval $archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
16610 ac_status=$?
16611 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
16612 test $ac_status = 0; }
16613 then
16614 lt_cv_archive_cmds_need_lc=no
16615 else
16616 lt_cv_archive_cmds_need_lc=yes
16618 allow_undefined_flag=$lt_save_allow_undefined_flag
16619 else
16620 cat conftest.err 1>&5
16622 $RM conftest*
16625 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc" >&5
16626 $as_echo "$lt_cv_archive_cmds_need_lc" >&6; }
16627 archive_cmds_need_lc=$lt_cv_archive_cmds_need_lc
16629 esac
16632 esac
16790 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
16791 $as_echo_n "checking dynamic linker characteristics... " >&6; }
16793 if test "$GCC" = yes; then
16794 case $host_os in
16795 darwin*) lt_awk_arg="/^libraries:/,/LR/" ;;
16796 *) lt_awk_arg="/^libraries:/" ;;
16797 esac
16798 case $host_os in
16799 mingw* | cegcc*) lt_sed_strip_eq="s,=\([A-Za-z]:\),\1,g" ;;
16800 *) lt_sed_strip_eq="s,=/,/,g" ;;
16801 esac
16802 lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e $lt_sed_strip_eq`
16803 case $lt_search_path_spec in
16804 *\;*)
16805 # if the path contains ";" then we assume it to be the separator
16806 # otherwise default to the standard path separator (i.e. ":") - it is
16807 # assumed that no part of a normal pathname contains ";" but that should
16808 # okay in the real world where ";" in dirpaths is itself problematic.
16809 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED 's/;/ /g'`
16812 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED "s/$PATH_SEPARATOR/ /g"`
16814 esac
16815 # Ok, now we have the path, separated by spaces, we can step through it
16816 # and add multilib dir if necessary.
16817 lt_tmp_lt_search_path_spec=
16818 lt_multi_os_dir=`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null`
16819 for lt_sys_path in $lt_search_path_spec; do
16820 if test -d "$lt_sys_path/$lt_multi_os_dir"; then
16821 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path/$lt_multi_os_dir"
16822 else
16823 test -d "$lt_sys_path" && \
16824 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path"
16826 done
16827 lt_search_path_spec=`$ECHO "$lt_tmp_lt_search_path_spec" | awk '
16828 BEGIN {RS=" "; FS="/|\n";} {
16829 lt_foo="";
16830 lt_count=0;
16831 for (lt_i = NF; lt_i > 0; lt_i--) {
16832 if ($lt_i != "" && $lt_i != ".") {
16833 if ($lt_i == "..") {
16834 lt_count++;
16835 } else {
16836 if (lt_count == 0) {
16837 lt_foo="/" $lt_i lt_foo;
16838 } else {
16839 lt_count--;
16844 if (lt_foo != "") { lt_freq[lt_foo]++; }
16845 if (lt_freq[lt_foo] == 1) { print lt_foo; }
16847 # AWK program above erroneously prepends '/' to C:/dos/paths
16848 # for these hosts.
16849 case $host_os in
16850 mingw* | cegcc*) lt_search_path_spec=`$ECHO "$lt_search_path_spec" |\
16851 $SED 's,/\([A-Za-z]:\),\1,g'` ;;
16852 esac
16853 sys_lib_search_path_spec=`$ECHO "$lt_search_path_spec" | $lt_NL2SP`
16854 else
16855 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
16857 library_names_spec=
16858 libname_spec='lib$name'
16859 soname_spec=
16860 shrext_cmds=".so"
16861 postinstall_cmds=
16862 postuninstall_cmds=
16863 finish_cmds=
16864 finish_eval=
16865 shlibpath_var=
16866 shlibpath_overrides_runpath=unknown
16867 version_type=none
16868 dynamic_linker="$host_os ld.so"
16869 sys_lib_dlsearch_path_spec="/lib /usr/lib"
16870 need_lib_prefix=unknown
16871 hardcode_into_libs=no
16873 # when you set need_version to no, make sure it does not cause -set_version
16874 # flags to be left without arguments
16875 need_version=unknown
16877 case $host_os in
16878 aix3*)
16879 version_type=linux
16880 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
16881 shlibpath_var=LIBPATH
16883 # AIX 3 has no versioning support, so we append a major version to the name.
16884 soname_spec='${libname}${release}${shared_ext}$major'
16887 aix[4-9]*)
16888 version_type=linux
16889 need_lib_prefix=no
16890 need_version=no
16891 hardcode_into_libs=yes
16892 if test "$host_cpu" = ia64; then
16893 # AIX 5 supports IA64
16894 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
16895 shlibpath_var=LD_LIBRARY_PATH
16896 else
16897 # With GCC up to 2.95.x, collect2 would create an import file
16898 # for dependence libraries. The import file would start with
16899 # the line `#! .'. This would cause the generated library to
16900 # depend on `.', always an invalid library. This was fixed in
16901 # development snapshots of GCC prior to 3.0.
16902 case $host_os in
16903 aix4 | aix4.[01] | aix4.[01].*)
16904 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
16905 echo ' yes '
16906 echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then
16908 else
16909 can_build_shared=no
16912 esac
16913 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
16914 # soname into executable. Probably we can add versioning support to
16915 # collect2, so additional links can be useful in future.
16916 if test "$aix_use_runtimelinking" = yes; then
16917 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
16918 # instead of lib<name>.a to let people know that these are not
16919 # typical AIX shared libraries.
16920 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16921 else
16922 # We preserve .a as extension for shared libraries through AIX4.2
16923 # and later when we are not doing run time linking.
16924 library_names_spec='${libname}${release}.a $libname.a'
16925 soname_spec='${libname}${release}${shared_ext}$major'
16927 shlibpath_var=LIBPATH
16931 amigaos*)
16932 case $host_cpu in
16933 powerpc)
16934 # Since July 2007 AmigaOS4 officially supports .so libraries.
16935 # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
16936 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16938 m68k)
16939 library_names_spec='$libname.ixlibrary $libname.a'
16940 # Create ${libname}_ixlibrary.a entries in /sys/libs.
16941 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'
16943 esac
16946 beos*)
16947 library_names_spec='${libname}${shared_ext}'
16948 dynamic_linker="$host_os ld.so"
16949 shlibpath_var=LIBRARY_PATH
16952 bsdi[45]*)
16953 version_type=linux
16954 need_version=no
16955 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16956 soname_spec='${libname}${release}${shared_ext}$major'
16957 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
16958 shlibpath_var=LD_LIBRARY_PATH
16959 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
16960 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
16961 # the default ld.so.conf also contains /usr/contrib/lib and
16962 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
16963 # libtool to hard-code these into programs
16966 cygwin* | mingw* | pw32* | cegcc*)
16967 version_type=windows
16968 shrext_cmds=".dll"
16969 need_version=no
16970 need_lib_prefix=no
16972 case $GCC,$host_os in
16973 yes,cygwin* | yes,mingw* | yes,pw32* | yes,cegcc*)
16974 library_names_spec='$libname.dll.a'
16975 # DLL is installed to $(libdir)/../bin by postinstall_cmds
16976 postinstall_cmds='base_file=`basename \${file}`~
16977 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
16978 dldir=$destdir/`dirname \$dlpath`~
16979 test -d \$dldir || mkdir -p \$dldir~
16980 $install_prog $dir/$dlname \$dldir/$dlname~
16981 chmod a+x \$dldir/$dlname~
16982 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
16983 eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
16985 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
16986 dlpath=$dir/\$dldll~
16987 $RM \$dlpath'
16988 shlibpath_overrides_runpath=yes
16990 case $host_os in
16991 cygwin*)
16992 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
16993 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
16995 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/lib/w32api"
16997 mingw* | cegcc*)
16998 # MinGW DLLs use traditional 'lib' prefix
16999 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
17001 pw32*)
17002 # pw32 DLLs use 'pw' prefix rather than 'lib'
17003 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
17005 esac
17009 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
17011 esac
17012 dynamic_linker='Win32 ld.exe'
17013 # FIXME: first we should search . and the directory the executable is in
17014 shlibpath_var=PATH
17017 darwin* | rhapsody*)
17018 dynamic_linker="$host_os dyld"
17019 version_type=darwin
17020 need_lib_prefix=no
17021 need_version=no
17022 library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext'
17023 soname_spec='${libname}${release}${major}$shared_ext'
17024 shlibpath_overrides_runpath=yes
17025 shlibpath_var=DYLD_LIBRARY_PATH
17026 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
17028 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib"
17029 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
17032 dgux*)
17033 version_type=linux
17034 need_lib_prefix=no
17035 need_version=no
17036 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
17037 soname_spec='${libname}${release}${shared_ext}$major'
17038 shlibpath_var=LD_LIBRARY_PATH
17041 freebsd* | dragonfly*)
17042 # DragonFly does not have aout. When/if they implement a new
17043 # versioning mechanism, adjust this.
17044 if test -x /usr/bin/objformat; then
17045 objformat=`/usr/bin/objformat`
17046 else
17047 case $host_os in
17048 freebsd[23].*) objformat=aout ;;
17049 *) objformat=elf ;;
17050 esac
17052 version_type=freebsd-$objformat
17053 case $version_type in
17054 freebsd-elf*)
17055 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
17056 need_version=no
17057 need_lib_prefix=no
17059 freebsd-*)
17060 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
17061 need_version=yes
17063 esac
17064 shlibpath_var=LD_LIBRARY_PATH
17065 case $host_os in
17066 freebsd2.*)
17067 shlibpath_overrides_runpath=yes
17069 freebsd3.[01]* | freebsdelf3.[01]*)
17070 shlibpath_overrides_runpath=yes
17071 hardcode_into_libs=yes
17073 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
17074 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
17075 shlibpath_overrides_runpath=no
17076 hardcode_into_libs=yes
17078 *) # from 4.6 on, and DragonFly
17079 shlibpath_overrides_runpath=yes
17080 hardcode_into_libs=yes
17082 esac
17085 gnu*)
17086 version_type=linux
17087 need_lib_prefix=no
17088 need_version=no
17089 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
17090 soname_spec='${libname}${release}${shared_ext}$major'
17091 shlibpath_var=LD_LIBRARY_PATH
17092 hardcode_into_libs=yes
17095 haiku*)
17096 version_type=linux
17097 need_lib_prefix=no
17098 need_version=no
17099 dynamic_linker="$host_os runtime_loader"
17100 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
17101 soname_spec='${libname}${release}${shared_ext}$major'
17102 shlibpath_var=LIBRARY_PATH
17103 shlibpath_overrides_runpath=yes
17104 sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/beos/system/lib'
17105 hardcode_into_libs=yes
17108 hpux9* | hpux10* | hpux11*)
17109 # Give a soname corresponding to the major version so that dld.sl refuses to
17110 # link against other versions.
17111 version_type=sunos
17112 need_lib_prefix=no
17113 need_version=no
17114 case $host_cpu in
17115 ia64*)
17116 shrext_cmds='.so'
17117 hardcode_into_libs=yes
17118 dynamic_linker="$host_os dld.so"
17119 shlibpath_var=LD_LIBRARY_PATH
17120 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
17121 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17122 soname_spec='${libname}${release}${shared_ext}$major'
17123 if test "X$HPUX_IA64_MODE" = X32; then
17124 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
17125 else
17126 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
17128 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
17130 hppa*64*)
17131 shrext_cmds='.sl'
17132 hardcode_into_libs=yes
17133 dynamic_linker="$host_os dld.sl"
17134 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
17135 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
17136 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17137 soname_spec='${libname}${release}${shared_ext}$major'
17138 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
17139 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
17142 shrext_cmds='.sl'
17143 dynamic_linker="$host_os dld.sl"
17144 shlibpath_var=SHLIB_PATH
17145 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
17146 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17147 soname_spec='${libname}${release}${shared_ext}$major'
17149 esac
17150 # HP-UX runs *really* slowly unless shared libraries are mode 555, ...
17151 postinstall_cmds='chmod 555 $lib'
17152 # or fails outright, so override atomically:
17153 install_override_mode=555
17156 interix[3-9]*)
17157 version_type=linux
17158 need_lib_prefix=no
17159 need_version=no
17160 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
17161 soname_spec='${libname}${release}${shared_ext}$major'
17162 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
17163 shlibpath_var=LD_LIBRARY_PATH
17164 shlibpath_overrides_runpath=no
17165 hardcode_into_libs=yes
17168 irix5* | irix6* | nonstopux*)
17169 case $host_os in
17170 nonstopux*) version_type=nonstopux ;;
17172 if test "$lt_cv_prog_gnu_ld" = yes; then
17173 version_type=linux
17174 else
17175 version_type=irix
17176 fi ;;
17177 esac
17178 need_lib_prefix=no
17179 need_version=no
17180 soname_spec='${libname}${release}${shared_ext}$major'
17181 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
17182 case $host_os in
17183 irix5* | nonstopux*)
17184 libsuff= shlibsuff=
17187 case $LD in # libtool.m4 will add one of these switches to LD
17188 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
17189 libsuff= shlibsuff= libmagic=32-bit;;
17190 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
17191 libsuff=32 shlibsuff=N32 libmagic=N32;;
17192 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
17193 libsuff=64 shlibsuff=64 libmagic=64-bit;;
17194 *) libsuff= shlibsuff= libmagic=never-match;;
17195 esac
17197 esac
17198 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
17199 shlibpath_overrides_runpath=no
17200 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
17201 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
17202 hardcode_into_libs=yes
17205 # No shared lib support for Linux oldld, aout, or coff.
17206 linux*oldld* | linux*aout* | linux*coff*)
17207 dynamic_linker=no
17210 # This must be Linux ELF.
17211 linux* | k*bsd*-gnu | kopensolaris*-gnu)
17212 version_type=linux
17213 need_lib_prefix=no
17214 need_version=no
17215 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17216 soname_spec='${libname}${release}${shared_ext}$major'
17217 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
17218 shlibpath_var=LD_LIBRARY_PATH
17219 shlibpath_overrides_runpath=no
17221 # Some binutils ld are patched to set DT_RUNPATH
17222 if test "${lt_cv_shlibpath_overrides_runpath+set}" = set; then :
17223 $as_echo_n "(cached) " >&6
17224 else
17225 lt_cv_shlibpath_overrides_runpath=no
17226 save_LDFLAGS=$LDFLAGS
17227 save_libdir=$libdir
17228 eval "libdir=/foo; wl=\"$lt_prog_compiler_wl\"; \
17229 LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec\""
17230 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17231 /* end confdefs.h. */
17234 main ()
17238 return 0;
17240 _ACEOF
17241 if ac_fn_c_try_link "$LINENO"; then :
17242 if ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then :
17243 lt_cv_shlibpath_overrides_runpath=yes
17246 rm -f core conftest.err conftest.$ac_objext \
17247 conftest$ac_exeext conftest.$ac_ext
17248 LDFLAGS=$save_LDFLAGS
17249 libdir=$save_libdir
17253 shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath
17255 # This implies no fast_install, which is unacceptable.
17256 # Some rework will be needed to allow for fast_install
17257 # before this can be enabled.
17258 hardcode_into_libs=yes
17260 # Append ld.so.conf contents to the search path
17261 if test -f /etc/ld.so.conf; then
17262 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' ' '`
17263 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
17266 # We used to test for /lib/ld.so.1 and disable shared libraries on
17267 # powerpc, because MkLinux only supported shared libraries with the
17268 # GNU dynamic linker. Since this was broken with cross compilers,
17269 # most powerpc-linux boxes support dynamic linking these days and
17270 # people can always --disable-shared, the test was removed, and we
17271 # assume the GNU/Linux dynamic linker is in use.
17272 dynamic_linker='GNU/Linux ld.so'
17275 netbsd*)
17276 version_type=sunos
17277 need_lib_prefix=no
17278 need_version=no
17279 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
17280 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
17281 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
17282 dynamic_linker='NetBSD (a.out) ld.so'
17283 else
17284 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
17285 soname_spec='${libname}${release}${shared_ext}$major'
17286 dynamic_linker='NetBSD ld.elf_so'
17288 shlibpath_var=LD_LIBRARY_PATH
17289 shlibpath_overrides_runpath=yes
17290 hardcode_into_libs=yes
17293 newsos6)
17294 version_type=linux
17295 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17296 shlibpath_var=LD_LIBRARY_PATH
17297 shlibpath_overrides_runpath=yes
17300 *nto* | *qnx*)
17301 version_type=qnx
17302 need_lib_prefix=no
17303 need_version=no
17304 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17305 soname_spec='${libname}${release}${shared_ext}$major'
17306 shlibpath_var=LD_LIBRARY_PATH
17307 shlibpath_overrides_runpath=no
17308 hardcode_into_libs=yes
17309 dynamic_linker='ldqnx.so'
17312 openbsd*)
17313 version_type=sunos
17314 sys_lib_dlsearch_path_spec="/usr/lib"
17315 need_lib_prefix=no
17316 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
17317 case $host_os in
17318 openbsd3.3 | openbsd3.3.*) need_version=yes ;;
17319 *) need_version=no ;;
17320 esac
17321 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
17322 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
17323 shlibpath_var=LD_LIBRARY_PATH
17324 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
17325 case $host_os in
17326 openbsd2.[89] | openbsd2.[89].*)
17327 shlibpath_overrides_runpath=no
17330 shlibpath_overrides_runpath=yes
17332 esac
17333 else
17334 shlibpath_overrides_runpath=yes
17338 os2*)
17339 libname_spec='$name'
17340 shrext_cmds=".dll"
17341 need_lib_prefix=no
17342 library_names_spec='$libname${shared_ext} $libname.a'
17343 dynamic_linker='OS/2 ld.exe'
17344 shlibpath_var=LIBPATH
17347 osf3* | osf4* | osf5*)
17348 version_type=osf
17349 need_lib_prefix=no
17350 need_version=no
17351 soname_spec='${libname}${release}${shared_ext}$major'
17352 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17353 shlibpath_var=LD_LIBRARY_PATH
17354 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
17355 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
17358 rdos*)
17359 dynamic_linker=no
17362 solaris*)
17363 version_type=linux
17364 need_lib_prefix=no
17365 need_version=no
17366 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17367 soname_spec='${libname}${release}${shared_ext}$major'
17368 shlibpath_var=LD_LIBRARY_PATH
17369 shlibpath_overrides_runpath=yes
17370 hardcode_into_libs=yes
17371 # ldd complains unless libraries are executable
17372 postinstall_cmds='chmod +x $lib'
17375 sunos4*)
17376 version_type=sunos
17377 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
17378 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
17379 shlibpath_var=LD_LIBRARY_PATH
17380 shlibpath_overrides_runpath=yes
17381 if test "$with_gnu_ld" = yes; then
17382 need_lib_prefix=no
17384 need_version=yes
17387 sysv4 | sysv4.3*)
17388 version_type=linux
17389 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17390 soname_spec='${libname}${release}${shared_ext}$major'
17391 shlibpath_var=LD_LIBRARY_PATH
17392 case $host_vendor in
17393 sni)
17394 shlibpath_overrides_runpath=no
17395 need_lib_prefix=no
17396 runpath_var=LD_RUN_PATH
17398 siemens)
17399 need_lib_prefix=no
17401 motorola)
17402 need_lib_prefix=no
17403 need_version=no
17404 shlibpath_overrides_runpath=no
17405 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
17407 esac
17410 sysv4*MP*)
17411 if test -d /usr/nec ;then
17412 version_type=linux
17413 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
17414 soname_spec='$libname${shared_ext}.$major'
17415 shlibpath_var=LD_LIBRARY_PATH
17419 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
17420 version_type=freebsd-elf
17421 need_lib_prefix=no
17422 need_version=no
17423 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
17424 soname_spec='${libname}${release}${shared_ext}$major'
17425 shlibpath_var=LD_LIBRARY_PATH
17426 shlibpath_overrides_runpath=yes
17427 hardcode_into_libs=yes
17428 if test "$with_gnu_ld" = yes; then
17429 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
17430 else
17431 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
17432 case $host_os in
17433 sco3.2v5*)
17434 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
17436 esac
17438 sys_lib_dlsearch_path_spec='/usr/lib'
17441 tpf*)
17442 # TPF is a cross-target only. Preferred cross-host = GNU/Linux.
17443 version_type=linux
17444 need_lib_prefix=no
17445 need_version=no
17446 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17447 shlibpath_var=LD_LIBRARY_PATH
17448 shlibpath_overrides_runpath=no
17449 hardcode_into_libs=yes
17452 uts4*)
17453 version_type=linux
17454 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17455 soname_spec='${libname}${release}${shared_ext}$major'
17456 shlibpath_var=LD_LIBRARY_PATH
17460 dynamic_linker=no
17462 esac
17463 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
17464 $as_echo "$dynamic_linker" >&6; }
17465 test "$dynamic_linker" = no && can_build_shared=no
17467 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
17468 if test "$GCC" = yes; then
17469 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
17472 if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
17473 sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
17475 if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
17476 sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
17570 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
17571 $as_echo_n "checking how to hardcode library paths into programs... " >&6; }
17572 hardcode_action=
17573 if test -n "$hardcode_libdir_flag_spec" ||
17574 test -n "$runpath_var" ||
17575 test "X$hardcode_automatic" = "Xyes" ; then
17577 # We can hardcode non-existent directories.
17578 if test "$hardcode_direct" != no &&
17579 # If the only mechanism to avoid hardcoding is shlibpath_var, we
17580 # have to relink, otherwise we might link with an installed library
17581 # when we should be linking with a yet-to-be-installed one
17582 ## test "$_LT_TAGVAR(hardcode_shlibpath_var, )" != no &&
17583 test "$hardcode_minus_L" != no; then
17584 # Linking always hardcodes the temporary library directory.
17585 hardcode_action=relink
17586 else
17587 # We can link without hardcoding, and we can hardcode nonexisting dirs.
17588 hardcode_action=immediate
17590 else
17591 # We cannot hardcode anything, or else we can only hardcode existing
17592 # directories.
17593 hardcode_action=unsupported
17595 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action" >&5
17596 $as_echo "$hardcode_action" >&6; }
17598 if test "$hardcode_action" = relink ||
17599 test "$inherit_rpath" = yes; then
17600 # Fast installation is not supported
17601 enable_fast_install=no
17602 elif test "$shlibpath_overrides_runpath" = yes ||
17603 test "$enable_shared" = no; then
17604 # Fast installation is not necessary
17605 enable_fast_install=needless
17613 if test "x$enable_dlopen" != xyes; then
17614 enable_dlopen=unknown
17615 enable_dlopen_self=unknown
17616 enable_dlopen_self_static=unknown
17617 else
17618 lt_cv_dlopen=no
17619 lt_cv_dlopen_libs=
17621 case $host_os in
17622 beos*)
17623 lt_cv_dlopen="load_add_on"
17624 lt_cv_dlopen_libs=
17625 lt_cv_dlopen_self=yes
17628 mingw* | pw32* | cegcc*)
17629 lt_cv_dlopen="LoadLibrary"
17630 lt_cv_dlopen_libs=
17633 cygwin*)
17634 lt_cv_dlopen="dlopen"
17635 lt_cv_dlopen_libs=
17638 darwin*)
17639 # if libdl is installed we need to link against it
17640 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
17641 $as_echo_n "checking for dlopen in -ldl... " >&6; }
17642 if test "${ac_cv_lib_dl_dlopen+set}" = set; then :
17643 $as_echo_n "(cached) " >&6
17644 else
17645 ac_check_lib_save_LIBS=$LIBS
17646 LIBS="-ldl $LIBS"
17647 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17648 /* end confdefs.h. */
17650 /* Override any GCC internal prototype to avoid an error.
17651 Use char because int might match the return type of a GCC
17652 builtin and then its argument prototype would still apply. */
17653 #ifdef __cplusplus
17654 extern "C"
17655 #endif
17656 char dlopen ();
17658 main ()
17660 return dlopen ();
17662 return 0;
17664 _ACEOF
17665 if ac_fn_c_try_link "$LINENO"; then :
17666 ac_cv_lib_dl_dlopen=yes
17667 else
17668 ac_cv_lib_dl_dlopen=no
17670 rm -f core conftest.err conftest.$ac_objext \
17671 conftest$ac_exeext conftest.$ac_ext
17672 LIBS=$ac_check_lib_save_LIBS
17674 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
17675 $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
17676 if test "x$ac_cv_lib_dl_dlopen" = x""yes; then :
17677 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
17678 else
17680 lt_cv_dlopen="dyld"
17681 lt_cv_dlopen_libs=
17682 lt_cv_dlopen_self=yes
17689 ac_fn_c_check_func "$LINENO" "shl_load" "ac_cv_func_shl_load"
17690 if test "x$ac_cv_func_shl_load" = x""yes; then :
17691 lt_cv_dlopen="shl_load"
17692 else
17693 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shl_load in -ldld" >&5
17694 $as_echo_n "checking for shl_load in -ldld... " >&6; }
17695 if test "${ac_cv_lib_dld_shl_load+set}" = set; then :
17696 $as_echo_n "(cached) " >&6
17697 else
17698 ac_check_lib_save_LIBS=$LIBS
17699 LIBS="-ldld $LIBS"
17700 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17701 /* end confdefs.h. */
17703 /* Override any GCC internal prototype to avoid an error.
17704 Use char because int might match the return type of a GCC
17705 builtin and then its argument prototype would still apply. */
17706 #ifdef __cplusplus
17707 extern "C"
17708 #endif
17709 char shl_load ();
17711 main ()
17713 return shl_load ();
17715 return 0;
17717 _ACEOF
17718 if ac_fn_c_try_link "$LINENO"; then :
17719 ac_cv_lib_dld_shl_load=yes
17720 else
17721 ac_cv_lib_dld_shl_load=no
17723 rm -f core conftest.err conftest.$ac_objext \
17724 conftest$ac_exeext conftest.$ac_ext
17725 LIBS=$ac_check_lib_save_LIBS
17727 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_shl_load" >&5
17728 $as_echo "$ac_cv_lib_dld_shl_load" >&6; }
17729 if test "x$ac_cv_lib_dld_shl_load" = x""yes; then :
17730 lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-ldld"
17731 else
17732 ac_fn_c_check_func "$LINENO" "dlopen" "ac_cv_func_dlopen"
17733 if test "x$ac_cv_func_dlopen" = x""yes; then :
17734 lt_cv_dlopen="dlopen"
17735 else
17736 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
17737 $as_echo_n "checking for dlopen in -ldl... " >&6; }
17738 if test "${ac_cv_lib_dl_dlopen+set}" = set; then :
17739 $as_echo_n "(cached) " >&6
17740 else
17741 ac_check_lib_save_LIBS=$LIBS
17742 LIBS="-ldl $LIBS"
17743 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17744 /* end confdefs.h. */
17746 /* Override any GCC internal prototype to avoid an error.
17747 Use char because int might match the return type of a GCC
17748 builtin and then its argument prototype would still apply. */
17749 #ifdef __cplusplus
17750 extern "C"
17751 #endif
17752 char dlopen ();
17754 main ()
17756 return dlopen ();
17758 return 0;
17760 _ACEOF
17761 if ac_fn_c_try_link "$LINENO"; then :
17762 ac_cv_lib_dl_dlopen=yes
17763 else
17764 ac_cv_lib_dl_dlopen=no
17766 rm -f core conftest.err conftest.$ac_objext \
17767 conftest$ac_exeext conftest.$ac_ext
17768 LIBS=$ac_check_lib_save_LIBS
17770 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
17771 $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
17772 if test "x$ac_cv_lib_dl_dlopen" = x""yes; then :
17773 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
17774 else
17775 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -lsvld" >&5
17776 $as_echo_n "checking for dlopen in -lsvld... " >&6; }
17777 if test "${ac_cv_lib_svld_dlopen+set}" = set; then :
17778 $as_echo_n "(cached) " >&6
17779 else
17780 ac_check_lib_save_LIBS=$LIBS
17781 LIBS="-lsvld $LIBS"
17782 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17783 /* end confdefs.h. */
17785 /* Override any GCC internal prototype to avoid an error.
17786 Use char because int might match the return type of a GCC
17787 builtin and then its argument prototype would still apply. */
17788 #ifdef __cplusplus
17789 extern "C"
17790 #endif
17791 char dlopen ();
17793 main ()
17795 return dlopen ();
17797 return 0;
17799 _ACEOF
17800 if ac_fn_c_try_link "$LINENO"; then :
17801 ac_cv_lib_svld_dlopen=yes
17802 else
17803 ac_cv_lib_svld_dlopen=no
17805 rm -f core conftest.err conftest.$ac_objext \
17806 conftest$ac_exeext conftest.$ac_ext
17807 LIBS=$ac_check_lib_save_LIBS
17809 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_svld_dlopen" >&5
17810 $as_echo "$ac_cv_lib_svld_dlopen" >&6; }
17811 if test "x$ac_cv_lib_svld_dlopen" = x""yes; then :
17812 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
17813 else
17814 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dld_link in -ldld" >&5
17815 $as_echo_n "checking for dld_link in -ldld... " >&6; }
17816 if test "${ac_cv_lib_dld_dld_link+set}" = set; then :
17817 $as_echo_n "(cached) " >&6
17818 else
17819 ac_check_lib_save_LIBS=$LIBS
17820 LIBS="-ldld $LIBS"
17821 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17822 /* end confdefs.h. */
17824 /* Override any GCC internal prototype to avoid an error.
17825 Use char because int might match the return type of a GCC
17826 builtin and then its argument prototype would still apply. */
17827 #ifdef __cplusplus
17828 extern "C"
17829 #endif
17830 char dld_link ();
17832 main ()
17834 return dld_link ();
17836 return 0;
17838 _ACEOF
17839 if ac_fn_c_try_link "$LINENO"; then :
17840 ac_cv_lib_dld_dld_link=yes
17841 else
17842 ac_cv_lib_dld_dld_link=no
17844 rm -f core conftest.err conftest.$ac_objext \
17845 conftest$ac_exeext conftest.$ac_ext
17846 LIBS=$ac_check_lib_save_LIBS
17848 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_dld_link" >&5
17849 $as_echo "$ac_cv_lib_dld_dld_link" >&6; }
17850 if test "x$ac_cv_lib_dld_dld_link" = x""yes; then :
17851 lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-ldld"
17870 esac
17872 if test "x$lt_cv_dlopen" != xno; then
17873 enable_dlopen=yes
17874 else
17875 enable_dlopen=no
17878 case $lt_cv_dlopen in
17879 dlopen)
17880 save_CPPFLAGS="$CPPFLAGS"
17881 test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
17883 save_LDFLAGS="$LDFLAGS"
17884 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
17886 save_LIBS="$LIBS"
17887 LIBS="$lt_cv_dlopen_libs $LIBS"
17889 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a program can dlopen itself" >&5
17890 $as_echo_n "checking whether a program can dlopen itself... " >&6; }
17891 if test "${lt_cv_dlopen_self+set}" = set; then :
17892 $as_echo_n "(cached) " >&6
17893 else
17894 if test "$cross_compiling" = yes; then :
17895 lt_cv_dlopen_self=cross
17896 else
17897 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
17898 lt_status=$lt_dlunknown
17899 cat > conftest.$ac_ext <<_LT_EOF
17900 #line 17900 "configure"
17901 #include "confdefs.h"
17903 #if HAVE_DLFCN_H
17904 #include <dlfcn.h>
17905 #endif
17907 #include <stdio.h>
17909 #ifdef RTLD_GLOBAL
17910 # define LT_DLGLOBAL RTLD_GLOBAL
17911 #else
17912 # ifdef DL_GLOBAL
17913 # define LT_DLGLOBAL DL_GLOBAL
17914 # else
17915 # define LT_DLGLOBAL 0
17916 # endif
17917 #endif
17919 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
17920 find out it does not work in some platform. */
17921 #ifndef LT_DLLAZY_OR_NOW
17922 # ifdef RTLD_LAZY
17923 # define LT_DLLAZY_OR_NOW RTLD_LAZY
17924 # else
17925 # ifdef DL_LAZY
17926 # define LT_DLLAZY_OR_NOW DL_LAZY
17927 # else
17928 # ifdef RTLD_NOW
17929 # define LT_DLLAZY_OR_NOW RTLD_NOW
17930 # else
17931 # ifdef DL_NOW
17932 # define LT_DLLAZY_OR_NOW DL_NOW
17933 # else
17934 # define LT_DLLAZY_OR_NOW 0
17935 # endif
17936 # endif
17937 # endif
17938 # endif
17939 #endif
17941 /* When -fvisbility=hidden is used, assume the code has been annotated
17942 correspondingly for the symbols needed. */
17943 #if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
17944 void fnord () __attribute__((visibility("default")));
17945 #endif
17947 void fnord () { int i=42; }
17948 int main ()
17950 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
17951 int status = $lt_dlunknown;
17953 if (self)
17955 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
17956 else
17958 if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
17959 else puts (dlerror ());
17961 /* dlclose (self); */
17963 else
17964 puts (dlerror ());
17966 return status;
17968 _LT_EOF
17969 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
17970 (eval $ac_link) 2>&5
17971 ac_status=$?
17972 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
17973 test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
17974 (./conftest; exit; ) >&5 2>/dev/null
17975 lt_status=$?
17976 case x$lt_status in
17977 x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
17978 x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
17979 x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;;
17980 esac
17981 else :
17982 # compilation failed
17983 lt_cv_dlopen_self=no
17986 rm -fr conftest*
17990 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self" >&5
17991 $as_echo "$lt_cv_dlopen_self" >&6; }
17993 if test "x$lt_cv_dlopen_self" = xyes; then
17994 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
17995 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a statically linked program can dlopen itself" >&5
17996 $as_echo_n "checking whether a statically linked program can dlopen itself... " >&6; }
17997 if test "${lt_cv_dlopen_self_static+set}" = set; then :
17998 $as_echo_n "(cached) " >&6
17999 else
18000 if test "$cross_compiling" = yes; then :
18001 lt_cv_dlopen_self_static=cross
18002 else
18003 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
18004 lt_status=$lt_dlunknown
18005 cat > conftest.$ac_ext <<_LT_EOF
18006 #line 18006 "configure"
18007 #include "confdefs.h"
18009 #if HAVE_DLFCN_H
18010 #include <dlfcn.h>
18011 #endif
18013 #include <stdio.h>
18015 #ifdef RTLD_GLOBAL
18016 # define LT_DLGLOBAL RTLD_GLOBAL
18017 #else
18018 # ifdef DL_GLOBAL
18019 # define LT_DLGLOBAL DL_GLOBAL
18020 # else
18021 # define LT_DLGLOBAL 0
18022 # endif
18023 #endif
18025 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
18026 find out it does not work in some platform. */
18027 #ifndef LT_DLLAZY_OR_NOW
18028 # ifdef RTLD_LAZY
18029 # define LT_DLLAZY_OR_NOW RTLD_LAZY
18030 # else
18031 # ifdef DL_LAZY
18032 # define LT_DLLAZY_OR_NOW DL_LAZY
18033 # else
18034 # ifdef RTLD_NOW
18035 # define LT_DLLAZY_OR_NOW RTLD_NOW
18036 # else
18037 # ifdef DL_NOW
18038 # define LT_DLLAZY_OR_NOW DL_NOW
18039 # else
18040 # define LT_DLLAZY_OR_NOW 0
18041 # endif
18042 # endif
18043 # endif
18044 # endif
18045 #endif
18047 /* When -fvisbility=hidden is used, assume the code has been annotated
18048 correspondingly for the symbols needed. */
18049 #if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
18050 void fnord () __attribute__((visibility("default")));
18051 #endif
18053 void fnord () { int i=42; }
18054 int main ()
18056 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
18057 int status = $lt_dlunknown;
18059 if (self)
18061 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
18062 else
18064 if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
18065 else puts (dlerror ());
18067 /* dlclose (self); */
18069 else
18070 puts (dlerror ());
18072 return status;
18074 _LT_EOF
18075 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
18076 (eval $ac_link) 2>&5
18077 ac_status=$?
18078 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
18079 test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
18080 (./conftest; exit; ) >&5 2>/dev/null
18081 lt_status=$?
18082 case x$lt_status in
18083 x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
18084 x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
18085 x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;;
18086 esac
18087 else :
18088 # compilation failed
18089 lt_cv_dlopen_self_static=no
18092 rm -fr conftest*
18096 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self_static" >&5
18097 $as_echo "$lt_cv_dlopen_self_static" >&6; }
18100 CPPFLAGS="$save_CPPFLAGS"
18101 LDFLAGS="$save_LDFLAGS"
18102 LIBS="$save_LIBS"
18104 esac
18106 case $lt_cv_dlopen_self in
18107 yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
18108 *) enable_dlopen_self=unknown ;;
18109 esac
18111 case $lt_cv_dlopen_self_static in
18112 yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
18113 *) enable_dlopen_self_static=unknown ;;
18114 esac
18133 striplib=
18134 old_striplib=
18135 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stripping libraries is possible" >&5
18136 $as_echo_n "checking whether stripping libraries is possible... " >&6; }
18137 if test -n "$STRIP" && $STRIP -V 2>&1 | $GREP "GNU strip" >/dev/null; then
18138 test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
18139 test -z "$striplib" && striplib="$STRIP --strip-unneeded"
18140 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
18141 $as_echo "yes" >&6; }
18142 else
18143 # FIXME - insert some real tests, host_os isn't really good enough
18144 case $host_os in
18145 darwin*)
18146 if test -n "$STRIP" ; then
18147 striplib="$STRIP -x"
18148 old_striplib="$STRIP -S"
18149 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
18150 $as_echo "yes" >&6; }
18151 else
18152 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
18153 $as_echo "no" >&6; }
18157 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
18158 $as_echo "no" >&6; }
18160 esac
18174 # Report which library types will actually be built
18175 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if libtool supports shared libraries" >&5
18176 $as_echo_n "checking if libtool supports shared libraries... " >&6; }
18177 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $can_build_shared" >&5
18178 $as_echo "$can_build_shared" >&6; }
18180 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build shared libraries" >&5
18181 $as_echo_n "checking whether to build shared libraries... " >&6; }
18182 test "$can_build_shared" = "no" && enable_shared=no
18184 # On AIX, shared libraries and static libraries use the same namespace, and
18185 # are all built from PIC.
18186 case $host_os in
18187 aix3*)
18188 test "$enable_shared" = yes && enable_static=no
18189 if test -n "$RANLIB"; then
18190 archive_cmds="$archive_cmds~\$RANLIB \$lib"
18191 postinstall_cmds='$RANLIB $lib'
18195 aix[4-9]*)
18196 if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
18197 test "$enable_shared" = yes && enable_static=no
18200 esac
18201 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_shared" >&5
18202 $as_echo "$enable_shared" >&6; }
18204 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build static libraries" >&5
18205 $as_echo_n "checking whether to build static libraries... " >&6; }
18206 # Make sure either enable_shared or enable_static is yes.
18207 test "$enable_shared" = yes || enable_static=yes
18208 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_static" >&5
18209 $as_echo "$enable_static" >&6; }
18215 ac_ext=c
18216 ac_cpp='$CPP $CPPFLAGS'
18217 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18218 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18219 ac_compiler_gnu=$ac_cv_c_compiler_gnu
18221 CC="$lt_save_CC"
18223 if test -n "$CXX" && ( test "X$CXX" != "Xno" &&
18224 ( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) ||
18225 (test "X$CXX" != "Xg++"))) ; then
18226 ac_ext=cpp
18227 ac_cpp='$CXXCPP $CPPFLAGS'
18228 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18229 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18230 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
18231 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C++ preprocessor" >&5
18232 $as_echo_n "checking how to run the C++ preprocessor... " >&6; }
18233 if test -z "$CXXCPP"; then
18234 if test "${ac_cv_prog_CXXCPP+set}" = set; then :
18235 $as_echo_n "(cached) " >&6
18236 else
18237 # Double quotes because CXXCPP needs to be expanded
18238 for CXXCPP in "$CXX -E" "/lib/cpp"
18240 ac_preproc_ok=false
18241 for ac_cxx_preproc_warn_flag in '' yes
18243 # Use a header file that comes with gcc, so configuring glibc
18244 # with a fresh cross-compiler works.
18245 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
18246 # <limits.h> exists even on freestanding compilers.
18247 # On the NeXT, cc -E runs the code through the compiler's parser,
18248 # not just through cpp. "Syntax error" is here to catch this case.
18249 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18250 /* end confdefs.h. */
18251 #ifdef __STDC__
18252 # include <limits.h>
18253 #else
18254 # include <assert.h>
18255 #endif
18256 Syntax error
18257 _ACEOF
18258 if ac_fn_cxx_try_cpp "$LINENO"; then :
18260 else
18261 # Broken: fails on valid input.
18262 continue
18264 rm -f conftest.err conftest.$ac_ext
18266 # OK, works on sane cases. Now check whether nonexistent headers
18267 # can be detected and how.
18268 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18269 /* end confdefs.h. */
18270 #include <ac_nonexistent.h>
18271 _ACEOF
18272 if ac_fn_cxx_try_cpp "$LINENO"; then :
18273 # Broken: success on invalid input.
18274 continue
18275 else
18276 # Passes both tests.
18277 ac_preproc_ok=:
18278 break
18280 rm -f conftest.err conftest.$ac_ext
18282 done
18283 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
18284 rm -f conftest.err conftest.$ac_ext
18285 if $ac_preproc_ok; then :
18286 break
18289 done
18290 ac_cv_prog_CXXCPP=$CXXCPP
18293 CXXCPP=$ac_cv_prog_CXXCPP
18294 else
18295 ac_cv_prog_CXXCPP=$CXXCPP
18297 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXXCPP" >&5
18298 $as_echo "$CXXCPP" >&6; }
18299 ac_preproc_ok=false
18300 for ac_cxx_preproc_warn_flag in '' yes
18302 # Use a header file that comes with gcc, so configuring glibc
18303 # with a fresh cross-compiler works.
18304 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
18305 # <limits.h> exists even on freestanding compilers.
18306 # On the NeXT, cc -E runs the code through the compiler's parser,
18307 # not just through cpp. "Syntax error" is here to catch this case.
18308 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18309 /* end confdefs.h. */
18310 #ifdef __STDC__
18311 # include <limits.h>
18312 #else
18313 # include <assert.h>
18314 #endif
18315 Syntax error
18316 _ACEOF
18317 if ac_fn_cxx_try_cpp "$LINENO"; then :
18319 else
18320 # Broken: fails on valid input.
18321 continue
18323 rm -f conftest.err conftest.$ac_ext
18325 # OK, works on sane cases. Now check whether nonexistent headers
18326 # can be detected and how.
18327 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18328 /* end confdefs.h. */
18329 #include <ac_nonexistent.h>
18330 _ACEOF
18331 if ac_fn_cxx_try_cpp "$LINENO"; then :
18332 # Broken: success on invalid input.
18333 continue
18334 else
18335 # Passes both tests.
18336 ac_preproc_ok=:
18337 break
18339 rm -f conftest.err conftest.$ac_ext
18341 done
18342 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
18343 rm -f conftest.err conftest.$ac_ext
18344 if $ac_preproc_ok; then :
18346 else
18347 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
18348 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
18349 as_fn_error "C++ preprocessor \"$CXXCPP\" fails sanity check
18350 See \`config.log' for more details." "$LINENO" 5; }
18353 ac_ext=c
18354 ac_cpp='$CPP $CPPFLAGS'
18355 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18356 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18357 ac_compiler_gnu=$ac_cv_c_compiler_gnu
18359 else
18360 _lt_caught_CXX_error=yes
18363 ac_ext=cpp
18364 ac_cpp='$CXXCPP $CPPFLAGS'
18365 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18366 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18367 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
18369 archive_cmds_need_lc_CXX=no
18370 allow_undefined_flag_CXX=
18371 always_export_symbols_CXX=no
18372 archive_expsym_cmds_CXX=
18373 compiler_needs_object_CXX=no
18374 export_dynamic_flag_spec_CXX=
18375 hardcode_direct_CXX=no
18376 hardcode_direct_absolute_CXX=no
18377 hardcode_libdir_flag_spec_CXX=
18378 hardcode_libdir_flag_spec_ld_CXX=
18379 hardcode_libdir_separator_CXX=
18380 hardcode_minus_L_CXX=no
18381 hardcode_shlibpath_var_CXX=unsupported
18382 hardcode_automatic_CXX=no
18383 inherit_rpath_CXX=no
18384 module_cmds_CXX=
18385 module_expsym_cmds_CXX=
18386 link_all_deplibs_CXX=unknown
18387 old_archive_cmds_CXX=$old_archive_cmds
18388 reload_flag_CXX=$reload_flag
18389 reload_cmds_CXX=$reload_cmds
18390 no_undefined_flag_CXX=
18391 whole_archive_flag_spec_CXX=
18392 enable_shared_with_static_runtimes_CXX=no
18394 # Source file extension for C++ test sources.
18395 ac_ext=cpp
18397 # Object file extension for compiled C++ test sources.
18398 objext=o
18399 objext_CXX=$objext
18401 # No sense in running all these tests if we already determined that
18402 # the CXX compiler isn't working. Some variables (like enable_shared)
18403 # are currently assumed to apply to all compilers on this platform,
18404 # and will be corrupted by setting them based on a non-working compiler.
18405 if test "$_lt_caught_CXX_error" != yes; then
18406 # Code to be used in simple compile tests
18407 lt_simple_compile_test_code="int some_variable = 0;"
18409 # Code to be used in simple link tests
18410 lt_simple_link_test_code='int main(int, char *[]) { return(0); }'
18412 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
18419 # If no C compiler was specified, use CC.
18420 LTCC=${LTCC-"$CC"}
18422 # If no C compiler flags were specified, use CFLAGS.
18423 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
18425 # Allow CC to be a program name with arguments.
18426 compiler=$CC
18429 # save warnings/boilerplate of simple test code
18430 ac_outfile=conftest.$ac_objext
18431 echo "$lt_simple_compile_test_code" >conftest.$ac_ext
18432 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
18433 _lt_compiler_boilerplate=`cat conftest.err`
18434 $RM conftest*
18436 ac_outfile=conftest.$ac_objext
18437 echo "$lt_simple_link_test_code" >conftest.$ac_ext
18438 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
18439 _lt_linker_boilerplate=`cat conftest.err`
18440 $RM -r conftest*
18443 # Allow CC to be a program name with arguments.
18444 lt_save_CC=$CC
18445 lt_save_LD=$LD
18446 lt_save_GCC=$GCC
18447 GCC=$GXX
18448 lt_save_with_gnu_ld=$with_gnu_ld
18449 lt_save_path_LD=$lt_cv_path_LD
18450 if test -n "${lt_cv_prog_gnu_ldcxx+set}"; then
18451 lt_cv_prog_gnu_ld=$lt_cv_prog_gnu_ldcxx
18452 else
18453 $as_unset lt_cv_prog_gnu_ld
18455 if test -n "${lt_cv_path_LDCXX+set}"; then
18456 lt_cv_path_LD=$lt_cv_path_LDCXX
18457 else
18458 $as_unset lt_cv_path_LD
18460 test -z "${LDCXX+set}" || LD=$LDCXX
18461 CC=${CXX-"c++"}
18462 compiler=$CC
18463 compiler_CXX=$CC
18464 for cc_temp in $compiler""; do
18465 case $cc_temp in
18466 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
18467 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
18468 \-*) ;;
18469 *) break;;
18470 esac
18471 done
18472 cc_basename=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
18475 if test -n "$compiler"; then
18476 # We don't want -fno-exception when compiling C++ code, so set the
18477 # no_builtin_flag separately
18478 if test "$GXX" = yes; then
18479 lt_prog_compiler_no_builtin_flag_CXX=' -fno-builtin'
18480 else
18481 lt_prog_compiler_no_builtin_flag_CXX=
18484 if test "$GXX" = yes; then
18485 # Set up default GNU C++ configuration
18489 # Check whether --with-gnu-ld was given.
18490 if test "${with_gnu_ld+set}" = set; then :
18491 withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
18492 else
18493 with_gnu_ld=no
18496 ac_prog=ld
18497 if test "$GCC" = yes; then
18498 # Check if gcc -print-prog-name=ld gives a path.
18499 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
18500 $as_echo_n "checking for ld used by $CC... " >&6; }
18501 case $host in
18502 *-*-mingw*)
18503 # gcc leaves a trailing carriage return which upsets mingw
18504 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
18506 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
18507 esac
18508 case $ac_prog in
18509 # Accept absolute paths.
18510 [\\/]* | ?:[\\/]*)
18511 re_direlt='/[^/][^/]*/\.\./'
18512 # Canonicalize the pathname of ld
18513 ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
18514 while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
18515 ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
18516 done
18517 test -z "$LD" && LD="$ac_prog"
18520 # If it fails, then pretend we aren't using GCC.
18521 ac_prog=ld
18524 # If it is relative, then search for the first ld in PATH.
18525 with_gnu_ld=unknown
18527 esac
18528 elif test "$with_gnu_ld" = yes; then
18529 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
18530 $as_echo_n "checking for GNU ld... " >&6; }
18531 else
18532 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
18533 $as_echo_n "checking for non-GNU ld... " >&6; }
18535 if test "${lt_cv_path_LD+set}" = set; then :
18536 $as_echo_n "(cached) " >&6
18537 else
18538 if test -z "$LD"; then
18539 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
18540 for ac_dir in $PATH; do
18541 IFS="$lt_save_ifs"
18542 test -z "$ac_dir" && ac_dir=.
18543 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
18544 lt_cv_path_LD="$ac_dir/$ac_prog"
18545 # Check to see if the program is GNU ld. I'd rather use --version,
18546 # but apparently some variants of GNU ld only accept -v.
18547 # Break only if it was the GNU/non-GNU ld that we prefer.
18548 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
18549 *GNU* | *'with BFD'*)
18550 test "$with_gnu_ld" != no && break
18553 test "$with_gnu_ld" != yes && break
18555 esac
18557 done
18558 IFS="$lt_save_ifs"
18559 else
18560 lt_cv_path_LD="$LD" # Let the user override the test with a path.
18564 LD="$lt_cv_path_LD"
18565 if test -n "$LD"; then
18566 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
18567 $as_echo "$LD" >&6; }
18568 else
18569 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
18570 $as_echo "no" >&6; }
18572 test -z "$LD" && as_fn_error "no acceptable ld found in \$PATH" "$LINENO" 5
18573 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
18574 $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
18575 if test "${lt_cv_prog_gnu_ld+set}" = set; then :
18576 $as_echo_n "(cached) " >&6
18577 else
18578 # I'd rather use --version here, but apparently some GNU lds only accept -v.
18579 case `$LD -v 2>&1 </dev/null` in
18580 *GNU* | *'with BFD'*)
18581 lt_cv_prog_gnu_ld=yes
18584 lt_cv_prog_gnu_ld=no
18586 esac
18588 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
18589 $as_echo "$lt_cv_prog_gnu_ld" >&6; }
18590 with_gnu_ld=$lt_cv_prog_gnu_ld
18598 # Check if GNU C++ uses GNU ld as the underlying linker, since the
18599 # archiving commands below assume that GNU ld is being used.
18600 if test "$with_gnu_ld" = yes; then
18601 archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
18602 archive_expsym_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
18604 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
18605 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
18607 # If archive_cmds runs LD, not CC, wlarc should be empty
18608 # XXX I think wlarc can be eliminated in ltcf-cxx, but I need to
18609 # investigate it a little bit more. (MM)
18610 wlarc='${wl}'
18612 # ancient GNU ld didn't support --whole-archive et. al.
18613 if eval "`$CC -print-prog-name=ld` --help 2>&1" |
18614 $GREP 'no-whole-archive' > /dev/null; then
18615 whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
18616 else
18617 whole_archive_flag_spec_CXX=
18619 else
18620 with_gnu_ld=no
18621 wlarc=
18623 # A generic and very simple default shared library creation
18624 # command for GNU C++ for the case where it uses the native
18625 # linker, instead of GNU ld. If possible, this setting should
18626 # overridden to take advantage of the native linker features on
18627 # the platform it is being used on.
18628 archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
18631 # Commands to make compiler produce verbose output that lists
18632 # what "hidden" libraries, object files and flags are used when
18633 # linking a shared library.
18634 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
18636 else
18637 GXX=no
18638 with_gnu_ld=no
18639 wlarc=
18642 # PORTME: fill in a description of your system's C++ link characteristics
18643 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
18644 $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
18645 ld_shlibs_CXX=yes
18646 case $host_os in
18647 aix3*)
18648 # FIXME: insert proper C++ library support
18649 ld_shlibs_CXX=no
18651 aix[4-9]*)
18652 if test "$host_cpu" = ia64; then
18653 # On IA64, the linker does run time linking by default, so we don't
18654 # have to do anything special.
18655 aix_use_runtimelinking=no
18656 exp_sym_flag='-Bexport'
18657 no_entry_flag=""
18658 else
18659 aix_use_runtimelinking=no
18661 # Test if we are trying to use run time linking or normal
18662 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
18663 # need to do runtime linking.
18664 case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
18665 for ld_flag in $LDFLAGS; do
18666 case $ld_flag in
18667 *-brtl*)
18668 aix_use_runtimelinking=yes
18669 break
18671 esac
18672 done
18674 esac
18676 exp_sym_flag='-bexport'
18677 no_entry_flag='-bnoentry'
18680 # When large executables or shared objects are built, AIX ld can
18681 # have problems creating the table of contents. If linking a library
18682 # or program results in "error TOC overflow" add -mminimal-toc to
18683 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
18684 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
18686 archive_cmds_CXX=''
18687 hardcode_direct_CXX=yes
18688 hardcode_direct_absolute_CXX=yes
18689 hardcode_libdir_separator_CXX=':'
18690 link_all_deplibs_CXX=yes
18691 file_list_spec_CXX='${wl}-f,'
18693 if test "$GXX" = yes; then
18694 case $host_os in aix4.[012]|aix4.[012].*)
18695 # We only want to do this on AIX 4.2 and lower, the check
18696 # below for broken collect2 doesn't work under 4.3+
18697 collect2name=`${CC} -print-prog-name=collect2`
18698 if test -f "$collect2name" &&
18699 strings "$collect2name" | $GREP resolve_lib_name >/dev/null
18700 then
18701 # We have reworked collect2
18703 else
18704 # We have old collect2
18705 hardcode_direct_CXX=unsupported
18706 # It fails to find uninstalled libraries when the uninstalled
18707 # path is not listed in the libpath. Setting hardcode_minus_L
18708 # to unsupported forces relinking
18709 hardcode_minus_L_CXX=yes
18710 hardcode_libdir_flag_spec_CXX='-L$libdir'
18711 hardcode_libdir_separator_CXX=
18713 esac
18714 shared_flag='-shared'
18715 if test "$aix_use_runtimelinking" = yes; then
18716 shared_flag="$shared_flag "'${wl}-G'
18718 else
18719 # not using gcc
18720 if test "$host_cpu" = ia64; then
18721 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
18722 # chokes on -Wl,-G. The following line is correct:
18723 shared_flag='-G'
18724 else
18725 if test "$aix_use_runtimelinking" = yes; then
18726 shared_flag='${wl}-G'
18727 else
18728 shared_flag='${wl}-bM:SRE'
18733 export_dynamic_flag_spec_CXX='${wl}-bexpall'
18734 # It seems that -bexpall does not export symbols beginning with
18735 # underscore (_), so it is better to generate a list of symbols to
18736 # export.
18737 always_export_symbols_CXX=yes
18738 if test "$aix_use_runtimelinking" = yes; then
18739 # Warning - without using the other runtime loading flags (-brtl),
18740 # -berok will link without error, but may produce a broken library.
18741 allow_undefined_flag_CXX='-berok'
18742 # Determine the default libpath from the value encoded in an empty
18743 # executable.
18744 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18745 /* end confdefs.h. */
18748 main ()
18752 return 0;
18754 _ACEOF
18755 if ac_fn_cxx_try_link "$LINENO"; then :
18757 lt_aix_libpath_sed='
18758 /Import File Strings/,/^$/ {
18759 /^0/ {
18760 s/^0 *\(.*\)$/\1/
18764 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
18765 # Check for a 64-bit object if we didn't find anything.
18766 if test -z "$aix_libpath"; then
18767 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
18770 rm -f core conftest.err conftest.$ac_objext \
18771 conftest$ac_exeext conftest.$ac_ext
18772 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
18774 hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
18776 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"
18777 else
18778 if test "$host_cpu" = ia64; then
18779 hardcode_libdir_flag_spec_CXX='${wl}-R $libdir:/usr/lib:/lib'
18780 allow_undefined_flag_CXX="-z nodefs"
18781 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"
18782 else
18783 # Determine the default libpath from the value encoded in an
18784 # empty executable.
18785 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18786 /* end confdefs.h. */
18789 main ()
18793 return 0;
18795 _ACEOF
18796 if ac_fn_cxx_try_link "$LINENO"; then :
18798 lt_aix_libpath_sed='
18799 /Import File Strings/,/^$/ {
18800 /^0/ {
18801 s/^0 *\(.*\)$/\1/
18805 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
18806 # Check for a 64-bit object if we didn't find anything.
18807 if test -z "$aix_libpath"; then
18808 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
18811 rm -f core conftest.err conftest.$ac_objext \
18812 conftest$ac_exeext conftest.$ac_ext
18813 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
18815 hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
18816 # Warning - without using the other run time loading flags,
18817 # -berok will link without error, but may produce a broken library.
18818 no_undefined_flag_CXX=' ${wl}-bernotok'
18819 allow_undefined_flag_CXX=' ${wl}-berok'
18820 if test "$with_gnu_ld" = yes; then
18821 # We only use this code for GNU lds that support --whole-archive.
18822 whole_archive_flag_spec_CXX='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
18823 else
18824 # Exported symbols can be pulled into shared objects from archives
18825 whole_archive_flag_spec_CXX='$convenience'
18827 archive_cmds_need_lc_CXX=yes
18828 # This is similar to how AIX traditionally builds its shared
18829 # libraries.
18830 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'
18835 beos*)
18836 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
18837 allow_undefined_flag_CXX=unsupported
18838 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
18839 # support --undefined. This deserves some investigation. FIXME
18840 archive_cmds_CXX='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
18841 else
18842 ld_shlibs_CXX=no
18846 chorus*)
18847 case $cc_basename in
18849 # FIXME: insert proper C++ library support
18850 ld_shlibs_CXX=no
18852 esac
18855 cygwin* | mingw* | pw32* | cegcc*)
18856 # _LT_TAGVAR(hardcode_libdir_flag_spec, CXX) is actually meaningless,
18857 # as there is no search path for DLLs.
18858 hardcode_libdir_flag_spec_CXX='-L$libdir'
18859 export_dynamic_flag_spec_CXX='${wl}--export-all-symbols'
18860 allow_undefined_flag_CXX=unsupported
18861 always_export_symbols_CXX=no
18862 enable_shared_with_static_runtimes_CXX=yes
18864 if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
18865 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'
18866 # If the export-symbols file already is a .def file (1st line
18867 # is EXPORTS), use it as is; otherwise, prepend...
18868 archive_expsym_cmds_CXX='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
18869 cp $export_symbols $output_objdir/$soname.def;
18870 else
18871 echo EXPORTS > $output_objdir/$soname.def;
18872 cat $export_symbols >> $output_objdir/$soname.def;
18874 $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'
18875 else
18876 ld_shlibs_CXX=no
18879 darwin* | rhapsody*)
18882 archive_cmds_need_lc_CXX=no
18883 hardcode_direct_CXX=no
18884 hardcode_automatic_CXX=yes
18885 hardcode_shlibpath_var_CXX=unsupported
18886 if test "$lt_cv_ld_force_load" = "yes"; then
18887 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\"`'
18888 else
18889 whole_archive_flag_spec_CXX=''
18891 link_all_deplibs_CXX=yes
18892 allow_undefined_flag_CXX="$_lt_dar_allow_undefined"
18893 case $cc_basename in
18894 ifort*) _lt_dar_can_shared=yes ;;
18895 *) _lt_dar_can_shared=$GCC ;;
18896 esac
18897 if test "$_lt_dar_can_shared" = "yes"; then
18898 output_verbose_link_cmd=func_echo_all
18899 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}"
18900 module_cmds_CXX="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
18901 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}"
18902 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}"
18903 if test "$lt_cv_apple_cc_single_mod" != "yes"; then
18904 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}"
18905 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}"
18908 else
18909 ld_shlibs_CXX=no
18914 dgux*)
18915 case $cc_basename in
18916 ec++*)
18917 # FIXME: insert proper C++ library support
18918 ld_shlibs_CXX=no
18920 ghcx*)
18921 # Green Hills C++ Compiler
18922 # FIXME: insert proper C++ library support
18923 ld_shlibs_CXX=no
18926 # FIXME: insert proper C++ library support
18927 ld_shlibs_CXX=no
18929 esac
18932 freebsd2.*)
18933 # C++ shared libraries reported to be fairly broken before
18934 # switch to ELF
18935 ld_shlibs_CXX=no
18938 freebsd-elf*)
18939 archive_cmds_need_lc_CXX=no
18942 freebsd* | dragonfly*)
18943 # FreeBSD 3 and later use GNU C++ and GNU ld with standard ELF
18944 # conventions
18945 ld_shlibs_CXX=yes
18948 gnu*)
18951 haiku*)
18952 archive_cmds_CXX='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
18953 link_all_deplibs_CXX=yes
18956 hpux9*)
18957 hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
18958 hardcode_libdir_separator_CXX=:
18959 export_dynamic_flag_spec_CXX='${wl}-E'
18960 hardcode_direct_CXX=yes
18961 hardcode_minus_L_CXX=yes # Not in the search PATH,
18962 # but as the default
18963 # location of the library.
18965 case $cc_basename in
18966 CC*)
18967 # FIXME: insert proper C++ library support
18968 ld_shlibs_CXX=no
18970 aCC*)
18971 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'
18972 # Commands to make compiler produce verbose output that lists
18973 # what "hidden" libraries, object files and flags are used when
18974 # linking a shared library.
18976 # There doesn't appear to be a way to prevent this compiler from
18977 # explicitly linking system object files so we need to strip them
18978 # from the output so that they don't get included in the library
18979 # dependencies.
18980 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"'
18983 if test "$GXX" = yes; then
18984 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'
18985 else
18986 # FIXME: insert proper C++ library support
18987 ld_shlibs_CXX=no
18990 esac
18993 hpux10*|hpux11*)
18994 if test $with_gnu_ld = no; then
18995 hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
18996 hardcode_libdir_separator_CXX=:
18998 case $host_cpu in
18999 hppa*64*|ia64*)
19002 export_dynamic_flag_spec_CXX='${wl}-E'
19004 esac
19006 case $host_cpu in
19007 hppa*64*|ia64*)
19008 hardcode_direct_CXX=no
19009 hardcode_shlibpath_var_CXX=no
19012 hardcode_direct_CXX=yes
19013 hardcode_direct_absolute_CXX=yes
19014 hardcode_minus_L_CXX=yes # Not in the search PATH,
19015 # but as the default
19016 # location of the library.
19018 esac
19020 case $cc_basename in
19021 CC*)
19022 # FIXME: insert proper C++ library support
19023 ld_shlibs_CXX=no
19025 aCC*)
19026 case $host_cpu in
19027 hppa*64*)
19028 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
19030 ia64*)
19031 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
19034 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
19036 esac
19037 # Commands to make compiler produce verbose output that lists
19038 # what "hidden" libraries, object files and flags are used when
19039 # linking a shared library.
19041 # There doesn't appear to be a way to prevent this compiler from
19042 # explicitly linking system object files so we need to strip them
19043 # from the output so that they don't get included in the library
19044 # dependencies.
19045 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"'
19048 if test "$GXX" = yes; then
19049 if test $with_gnu_ld = no; then
19050 case $host_cpu in
19051 hppa*64*)
19052 archive_cmds_CXX='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
19054 ia64*)
19055 archive_cmds_CXX='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
19058 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'
19060 esac
19062 else
19063 # FIXME: insert proper C++ library support
19064 ld_shlibs_CXX=no
19067 esac
19070 interix[3-9]*)
19071 hardcode_direct_CXX=no
19072 hardcode_shlibpath_var_CXX=no
19073 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
19074 export_dynamic_flag_spec_CXX='${wl}-E'
19075 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
19076 # Instead, shared libraries are loaded at an image base (0x10000000 by
19077 # default) and relocated if they conflict, which is a slow very memory
19078 # consuming and fragmenting process. To avoid this, we pick a random,
19079 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
19080 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
19081 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'
19082 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'
19084 irix5* | irix6*)
19085 case $cc_basename in
19086 CC*)
19087 # SGI C++
19088 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'
19090 # Archives containing C++ object files must be created using
19091 # "CC -ar", where "CC" is the IRIX C++ compiler. This is
19092 # necessary to make sure instantiated templates are included
19093 # in the archive.
19094 old_archive_cmds_CXX='$CC -ar -WR,-u -o $oldlib $oldobjs'
19097 if test "$GXX" = yes; then
19098 if test "$with_gnu_ld" = no; then
19099 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'
19100 else
19101 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'
19104 link_all_deplibs_CXX=yes
19106 esac
19107 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
19108 hardcode_libdir_separator_CXX=:
19109 inherit_rpath_CXX=yes
19112 linux* | k*bsd*-gnu | kopensolaris*-gnu)
19113 case $cc_basename in
19114 KCC*)
19115 # Kuck and Associates, Inc. (KAI) C++ Compiler
19117 # KCC will only create a shared library if the output file
19118 # ends with ".so" (or ".sl" for HP-UX), so rename the library
19119 # to its proper name (with version) after linking.
19120 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'
19121 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'
19122 # Commands to make compiler produce verbose output that lists
19123 # what "hidden" libraries, object files and flags are used when
19124 # linking a shared library.
19126 # There doesn't appear to be a way to prevent this compiler from
19127 # explicitly linking system object files so we need to strip them
19128 # from the output so that they don't get included in the library
19129 # dependencies.
19130 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"'
19132 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
19133 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
19135 # Archives containing C++ object files must be created using
19136 # "CC -Bstatic", where "CC" is the KAI C++ compiler.
19137 old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs'
19139 icpc* | ecpc* )
19140 # Intel C++
19141 with_gnu_ld=yes
19142 # version 8.0 and above of icpc choke on multiply defined symbols
19143 # if we add $predep_objects and $postdep_objects, however 7.1 and
19144 # earlier do not add the objects themselves.
19145 case `$CC -V 2>&1` in
19146 *"Version 7."*)
19147 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
19148 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'
19150 *) # Version 8.0 or newer
19151 tmp_idyn=
19152 case $host_cpu in
19153 ia64*) tmp_idyn=' -i_dynamic';;
19154 esac
19155 archive_cmds_CXX='$CC -shared'"$tmp_idyn"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
19156 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'
19158 esac
19159 archive_cmds_need_lc_CXX=no
19160 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
19161 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
19162 whole_archive_flag_spec_CXX='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
19164 pgCC* | pgcpp*)
19165 # Portland Group C++ compiler
19166 case `$CC -V` in
19167 *pgCC\ [1-5].* | *pgcpp\ [1-5].*)
19168 prelink_cmds_CXX='tpldir=Template.dir~
19169 rm -rf $tpldir~
19170 $CC --prelink_objects --instantiation_dir $tpldir $objs $libobjs $compile_deplibs~
19171 compile_command="$compile_command `find $tpldir -name \*.o | $NL2SP`"'
19172 old_archive_cmds_CXX='tpldir=Template.dir~
19173 rm -rf $tpldir~
19174 $CC --prelink_objects --instantiation_dir $tpldir $oldobjs$old_deplibs~
19175 $AR $AR_FLAGS $oldlib$oldobjs$old_deplibs `find $tpldir -name \*.o | $NL2SP`~
19176 $RANLIB $oldlib'
19177 archive_cmds_CXX='tpldir=Template.dir~
19178 rm -rf $tpldir~
19179 $CC --prelink_objects --instantiation_dir $tpldir $predep_objects $libobjs $deplibs $convenience $postdep_objects~
19180 $CC -shared $pic_flag $predep_objects $libobjs $deplibs `find $tpldir -name \*.o | $NL2SP` $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname -o $lib'
19181 archive_expsym_cmds_CXX='tpldir=Template.dir~
19182 rm -rf $tpldir~
19183 $CC --prelink_objects --instantiation_dir $tpldir $predep_objects $libobjs $deplibs $convenience $postdep_objects~
19184 $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'
19186 *) # Version 6 and above use weak symbols
19187 archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname -o $lib'
19188 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'
19190 esac
19192 hardcode_libdir_flag_spec_CXX='${wl}--rpath ${wl}$libdir'
19193 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
19194 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'
19196 cxx*)
19197 # Compaq C++
19198 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
19199 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'
19201 runpath_var=LD_RUN_PATH
19202 hardcode_libdir_flag_spec_CXX='-rpath $libdir'
19203 hardcode_libdir_separator_CXX=:
19205 # Commands to make compiler produce verbose output that lists
19206 # what "hidden" libraries, object files and flags are used when
19207 # linking a shared library.
19209 # There doesn't appear to be a way to prevent this compiler from
19210 # explicitly linking system object files so we need to strip them
19211 # from the output so that they don't get included in the library
19212 # dependencies.
19213 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'
19215 xl* | mpixl* | bgxl*)
19216 # IBM XL 8.0 on PPC, with GNU ld
19217 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
19218 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
19219 archive_cmds_CXX='$CC -qmkshrobj $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
19220 if test "x$supports_anon_versioning" = xyes; then
19221 archive_expsym_cmds_CXX='echo "{ global:" > $output_objdir/$libname.ver~
19222 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
19223 echo "local: *; };" >> $output_objdir/$libname.ver~
19224 $CC -qmkshrobj $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
19228 case `$CC -V 2>&1 | sed 5q` in
19229 *Sun\ C*)
19230 # Sun C++ 5.9
19231 no_undefined_flag_CXX=' -zdefs'
19232 archive_cmds_CXX='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
19233 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'
19234 hardcode_libdir_flag_spec_CXX='-R$libdir'
19235 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'
19236 compiler_needs_object_CXX=yes
19238 # Not sure whether something based on
19239 # $CC $CFLAGS -v conftest.$objext -o libconftest$shared_ext 2>&1
19240 # would be better.
19241 output_verbose_link_cmd='func_echo_all'
19243 # Archives containing C++ object files must be created using
19244 # "CC -xar", where "CC" is the Sun C++ compiler. This is
19245 # necessary to make sure instantiated templates are included
19246 # in the archive.
19247 old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs'
19249 esac
19251 esac
19254 lynxos*)
19255 # FIXME: insert proper C++ library support
19256 ld_shlibs_CXX=no
19259 m88k*)
19260 # FIXME: insert proper C++ library support
19261 ld_shlibs_CXX=no
19264 mvs*)
19265 case $cc_basename in
19266 cxx*)
19267 # FIXME: insert proper C++ library support
19268 ld_shlibs_CXX=no
19271 # FIXME: insert proper C++ library support
19272 ld_shlibs_CXX=no
19274 esac
19277 netbsd*)
19278 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
19279 archive_cmds_CXX='$LD -Bshareable -o $lib $predep_objects $libobjs $deplibs $postdep_objects $linker_flags'
19280 wlarc=
19281 hardcode_libdir_flag_spec_CXX='-R$libdir'
19282 hardcode_direct_CXX=yes
19283 hardcode_shlibpath_var_CXX=no
19285 # Workaround some broken pre-1.5 toolchains
19286 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP conftest.$objext | $SED -e "s:-lgcc -lc -lgcc::"'
19289 *nto* | *qnx*)
19290 ld_shlibs_CXX=yes
19293 openbsd2*)
19294 # C++ shared libraries are fairly broken
19295 ld_shlibs_CXX=no
19298 openbsd*)
19299 if test -f /usr/libexec/ld.so; then
19300 hardcode_direct_CXX=yes
19301 hardcode_shlibpath_var_CXX=no
19302 hardcode_direct_absolute_CXX=yes
19303 archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
19304 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
19305 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
19306 archive_expsym_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-retain-symbols-file,$export_symbols -o $lib'
19307 export_dynamic_flag_spec_CXX='${wl}-E'
19308 whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
19310 output_verbose_link_cmd=func_echo_all
19311 else
19312 ld_shlibs_CXX=no
19316 osf3* | osf4* | osf5*)
19317 case $cc_basename in
19318 KCC*)
19319 # Kuck and Associates, Inc. (KAI) C++ Compiler
19321 # KCC will only create a shared library if the output file
19322 # ends with ".so" (or ".sl" for HP-UX), so rename the library
19323 # to its proper name (with version) after linking.
19324 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'
19326 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
19327 hardcode_libdir_separator_CXX=:
19329 # Archives containing C++ object files must be created using
19330 # the KAI C++ compiler.
19331 case $host in
19332 osf3*) old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs' ;;
19333 *) old_archive_cmds_CXX='$CC -o $oldlib $oldobjs' ;;
19334 esac
19336 RCC*)
19337 # Rational C++ 2.4.1
19338 # FIXME: insert proper C++ library support
19339 ld_shlibs_CXX=no
19341 cxx*)
19342 case $host in
19343 osf3*)
19344 allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
19345 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'
19346 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
19349 allow_undefined_flag_CXX=' -expect_unresolved \*'
19350 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'
19351 archive_expsym_cmds_CXX='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done~
19352 echo "-hidden">> $lib.exp~
19353 $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~
19354 $RM $lib.exp'
19355 hardcode_libdir_flag_spec_CXX='-rpath $libdir'
19357 esac
19359 hardcode_libdir_separator_CXX=:
19361 # Commands to make compiler produce verbose output that lists
19362 # what "hidden" libraries, object files and flags are used when
19363 # linking a shared library.
19365 # There doesn't appear to be a way to prevent this compiler from
19366 # explicitly linking system object files so we need to strip them
19367 # from the output so that they don't get included in the library
19368 # dependencies.
19369 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"'
19372 if test "$GXX" = yes && test "$with_gnu_ld" = no; then
19373 allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
19374 case $host in
19375 osf3*)
19376 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'
19379 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'
19381 esac
19383 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
19384 hardcode_libdir_separator_CXX=:
19386 # Commands to make compiler produce verbose output that lists
19387 # what "hidden" libraries, object files and flags are used when
19388 # linking a shared library.
19389 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
19391 else
19392 # FIXME: insert proper C++ library support
19393 ld_shlibs_CXX=no
19396 esac
19399 psos*)
19400 # FIXME: insert proper C++ library support
19401 ld_shlibs_CXX=no
19404 sunos4*)
19405 case $cc_basename in
19406 CC*)
19407 # Sun C++ 4.x
19408 # FIXME: insert proper C++ library support
19409 ld_shlibs_CXX=no
19411 lcc*)
19412 # Lucid
19413 # FIXME: insert proper C++ library support
19414 ld_shlibs_CXX=no
19417 # FIXME: insert proper C++ library support
19418 ld_shlibs_CXX=no
19420 esac
19423 solaris*)
19424 case $cc_basename in
19425 CC*)
19426 # Sun C++ 4.2, 5.x and Centerline C++
19427 archive_cmds_need_lc_CXX=yes
19428 no_undefined_flag_CXX=' -zdefs'
19429 archive_cmds_CXX='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
19430 archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
19431 $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'
19433 hardcode_libdir_flag_spec_CXX='-R$libdir'
19434 hardcode_shlibpath_var_CXX=no
19435 case $host_os in
19436 solaris2.[0-5] | solaris2.[0-5].*) ;;
19438 # The compiler driver will combine and reorder linker options,
19439 # but understands `-z linker_flag'.
19440 # Supported since Solaris 2.6 (maybe 2.5.1?)
19441 whole_archive_flag_spec_CXX='-z allextract$convenience -z defaultextract'
19443 esac
19444 link_all_deplibs_CXX=yes
19446 output_verbose_link_cmd='func_echo_all'
19448 # Archives containing C++ object files must be created using
19449 # "CC -xar", where "CC" is the Sun C++ compiler. This is
19450 # necessary to make sure instantiated templates are included
19451 # in the archive.
19452 old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs'
19454 gcx*)
19455 # Green Hills C++ Compiler
19456 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
19458 # The C++ compiler must be used to create the archive.
19459 old_archive_cmds_CXX='$CC $LDFLAGS -archive -o $oldlib $oldobjs'
19462 # GNU C++ compiler with Solaris linker
19463 if test "$GXX" = yes && test "$with_gnu_ld" = no; then
19464 no_undefined_flag_CXX=' ${wl}-z ${wl}defs'
19465 if $CC --version | $GREP -v '^2\.7' > /dev/null; then
19466 archive_cmds_CXX='$CC -shared -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
19467 archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
19468 $CC -shared -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$RM $lib.exp'
19470 # Commands to make compiler produce verbose output that lists
19471 # what "hidden" libraries, object files and flags are used when
19472 # linking a shared library.
19473 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
19474 else
19475 # g++ 2.7 appears to require `-G' NOT `-shared' on this
19476 # platform.
19477 archive_cmds_CXX='$CC -G -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
19478 archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
19479 $CC -G -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$RM $lib.exp'
19481 # Commands to make compiler produce verbose output that lists
19482 # what "hidden" libraries, object files and flags are used when
19483 # linking a shared library.
19484 output_verbose_link_cmd='$CC -G $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
19487 hardcode_libdir_flag_spec_CXX='${wl}-R $wl$libdir'
19488 case $host_os in
19489 solaris2.[0-5] | solaris2.[0-5].*) ;;
19491 whole_archive_flag_spec_CXX='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
19493 esac
19496 esac
19499 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
19500 no_undefined_flag_CXX='${wl}-z,text'
19501 archive_cmds_need_lc_CXX=no
19502 hardcode_shlibpath_var_CXX=no
19503 runpath_var='LD_RUN_PATH'
19505 case $cc_basename in
19506 CC*)
19507 archive_cmds_CXX='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
19508 archive_expsym_cmds_CXX='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
19511 archive_cmds_CXX='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
19512 archive_expsym_cmds_CXX='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
19514 esac
19517 sysv5* | sco3.2v5* | sco5v6*)
19518 # Note: We can NOT use -z defs as we might desire, because we do not
19519 # link with -lc, and that would cause any symbols used from libc to
19520 # always be unresolved, which means just about no library would
19521 # ever link correctly. If we're not using GNU ld we use -z text
19522 # though, which does catch some bad symbols but isn't as heavy-handed
19523 # as -z defs.
19524 no_undefined_flag_CXX='${wl}-z,text'
19525 allow_undefined_flag_CXX='${wl}-z,nodefs'
19526 archive_cmds_need_lc_CXX=no
19527 hardcode_shlibpath_var_CXX=no
19528 hardcode_libdir_flag_spec_CXX='${wl}-R,$libdir'
19529 hardcode_libdir_separator_CXX=':'
19530 link_all_deplibs_CXX=yes
19531 export_dynamic_flag_spec_CXX='${wl}-Bexport'
19532 runpath_var='LD_RUN_PATH'
19534 case $cc_basename in
19535 CC*)
19536 archive_cmds_CXX='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
19537 archive_expsym_cmds_CXX='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
19538 old_archive_cmds_CXX='$CC -Tprelink_objects $oldobjs~
19539 '"$old_archive_cmds_CXX"
19540 reload_cmds_CXX='$CC -Tprelink_objects $reload_objs~
19541 '"$reload_cmds_CXX"
19544 archive_cmds_CXX='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
19545 archive_expsym_cmds_CXX='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
19547 esac
19550 tandem*)
19551 case $cc_basename in
19552 NCC*)
19553 # NonStop-UX NCC 3.20
19554 # FIXME: insert proper C++ library support
19555 ld_shlibs_CXX=no
19558 # FIXME: insert proper C++ library support
19559 ld_shlibs_CXX=no
19561 esac
19564 vxworks*)
19565 # FIXME: insert proper C++ library support
19566 ld_shlibs_CXX=no
19570 # FIXME: insert proper C++ library support
19571 ld_shlibs_CXX=no
19573 esac
19575 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs_CXX" >&5
19576 $as_echo "$ld_shlibs_CXX" >&6; }
19577 test "$ld_shlibs_CXX" = no && can_build_shared=no
19579 GCC_CXX="$GXX"
19580 LD_CXX="$LD"
19582 ## CAVEAT EMPTOR:
19583 ## There is no encapsulation within the following macros, do not change
19584 ## the running order or otherwise move them around unless you know exactly
19585 ## what you are doing...
19586 # Dependencies to place before and after the object being linked:
19587 predep_objects_CXX=
19588 postdep_objects_CXX=
19589 predeps_CXX=
19590 postdeps_CXX=
19591 compiler_lib_search_path_CXX=
19593 cat > conftest.$ac_ext <<_LT_EOF
19594 class Foo
19596 public:
19597 Foo (void) { a = 0; }
19598 private:
19599 int a;
19601 _LT_EOF
19603 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
19604 (eval $ac_compile) 2>&5
19605 ac_status=$?
19606 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
19607 test $ac_status = 0; }; then
19608 # Parse the compiler output and extract the necessary
19609 # objects, libraries and library flags.
19611 # Sentinel used to keep track of whether or not we are before
19612 # the conftest object file.
19613 pre_test_object_deps_done=no
19615 for p in `eval "$output_verbose_link_cmd"`; do
19616 case $p in
19618 -L* | -R* | -l*)
19619 # Some compilers place space between "-{L,R}" and the path.
19620 # Remove the space.
19621 if test $p = "-L" ||
19622 test $p = "-R"; then
19623 prev=$p
19624 continue
19625 else
19626 prev=
19629 if test "$pre_test_object_deps_done" = no; then
19630 case $p in
19631 -L* | -R*)
19632 # Internal compiler library paths should come after those
19633 # provided the user. The postdeps already come after the
19634 # user supplied libs so there is no need to process them.
19635 if test -z "$compiler_lib_search_path_CXX"; then
19636 compiler_lib_search_path_CXX="${prev}${p}"
19637 else
19638 compiler_lib_search_path_CXX="${compiler_lib_search_path_CXX} ${prev}${p}"
19641 # The "-l" case would never come before the object being
19642 # linked, so don't bother handling this case.
19643 esac
19644 else
19645 if test -z "$postdeps_CXX"; then
19646 postdeps_CXX="${prev}${p}"
19647 else
19648 postdeps_CXX="${postdeps_CXX} ${prev}${p}"
19653 *.$objext)
19654 # This assumes that the test object file only shows up
19655 # once in the compiler output.
19656 if test "$p" = "conftest.$objext"; then
19657 pre_test_object_deps_done=yes
19658 continue
19661 if test "$pre_test_object_deps_done" = no; then
19662 if test -z "$predep_objects_CXX"; then
19663 predep_objects_CXX="$p"
19664 else
19665 predep_objects_CXX="$predep_objects_CXX $p"
19667 else
19668 if test -z "$postdep_objects_CXX"; then
19669 postdep_objects_CXX="$p"
19670 else
19671 postdep_objects_CXX="$postdep_objects_CXX $p"
19676 *) ;; # Ignore the rest.
19678 esac
19679 done
19681 # Clean up.
19682 rm -f a.out a.exe
19683 else
19684 echo "libtool.m4: error: problem compiling CXX test program"
19687 $RM -f confest.$objext
19689 # PORTME: override above test on systems where it is broken
19690 case $host_os in
19691 interix[3-9]*)
19692 # Interix 3.5 installs completely hosed .la files for C++, so rather than
19693 # hack all around it, let's just trust "g++" to DTRT.
19694 predep_objects_CXX=
19695 postdep_objects_CXX=
19696 postdeps_CXX=
19699 linux*)
19700 case `$CC -V 2>&1 | sed 5q` in
19701 *Sun\ C*)
19702 # Sun C++ 5.9
19704 # The more standards-conforming stlport4 library is
19705 # incompatible with the Cstd library. Avoid specifying
19706 # it if it's in CXXFLAGS. Ignore libCrun as
19707 # -library=stlport4 depends on it.
19708 case " $CXX $CXXFLAGS " in
19709 *" -library=stlport4 "*)
19710 solaris_use_stlport4=yes
19712 esac
19714 if test "$solaris_use_stlport4" != yes; then
19715 postdeps_CXX='-library=Cstd -library=Crun'
19718 esac
19721 solaris*)
19722 case $cc_basename in
19723 CC*)
19724 # The more standards-conforming stlport4 library is
19725 # incompatible with the Cstd library. Avoid specifying
19726 # it if it's in CXXFLAGS. Ignore libCrun as
19727 # -library=stlport4 depends on it.
19728 case " $CXX $CXXFLAGS " in
19729 *" -library=stlport4 "*)
19730 solaris_use_stlport4=yes
19732 esac
19734 # Adding this requires a known-good setup of shared libraries for
19735 # Sun compiler versions before 5.6, else PIC objects from an old
19736 # archive will be linked into the output, leading to subtle bugs.
19737 if test "$solaris_use_stlport4" != yes; then
19738 postdeps_CXX='-library=Cstd -library=Crun'
19741 esac
19743 esac
19746 case " $postdeps_CXX " in
19747 *" -lc "*) archive_cmds_need_lc_CXX=no ;;
19748 esac
19749 compiler_lib_search_dirs_CXX=
19750 if test -n "${compiler_lib_search_path_CXX}"; then
19751 compiler_lib_search_dirs_CXX=`echo " ${compiler_lib_search_path_CXX}" | ${SED} -e 's! -L! !g' -e 's!^ !!'`
19784 lt_prog_compiler_wl_CXX=
19785 lt_prog_compiler_pic_CXX=
19786 lt_prog_compiler_static_CXX=
19788 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
19789 $as_echo_n "checking for $compiler option to produce PIC... " >&6; }
19791 # C++ specific cases for pic, static, wl, etc.
19792 if test "$GXX" = yes; then
19793 lt_prog_compiler_wl_CXX='-Wl,'
19794 lt_prog_compiler_static_CXX='-static'
19796 case $host_os in
19797 aix*)
19798 # All AIX code is PIC.
19799 if test "$host_cpu" = ia64; then
19800 # AIX 5 now supports IA64 processor
19801 lt_prog_compiler_static_CXX='-Bstatic'
19803 lt_prog_compiler_pic_CXX='-fPIC'
19806 amigaos*)
19807 case $host_cpu in
19808 powerpc)
19809 # see comment about AmigaOS4 .so support
19810 lt_prog_compiler_pic_CXX='-fPIC'
19812 m68k)
19813 # FIXME: we need at least 68020 code to build shared libraries, but
19814 # adding the `-m68020' flag to GCC prevents building anything better,
19815 # like `-m68040'.
19816 lt_prog_compiler_pic_CXX='-m68020 -resident32 -malways-restore-a4'
19818 esac
19821 beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
19822 # PIC is the default for these OSes.
19824 mingw* | cygwin* | os2* | pw32* | cegcc*)
19825 # This hack is so that the source file can tell whether it is being
19826 # built for inclusion in a dll (and should export symbols for example).
19827 # Although the cygwin gcc ignores -fPIC, still need this for old-style
19828 # (--disable-auto-import) libraries
19829 lt_prog_compiler_pic_CXX='-DDLL_EXPORT'
19831 darwin* | rhapsody*)
19832 # PIC is the default on this platform
19833 # Common symbols not allowed in MH_DYLIB files
19834 lt_prog_compiler_pic_CXX='-fno-common'
19836 *djgpp*)
19837 # DJGPP does not support shared libraries at all
19838 lt_prog_compiler_pic_CXX=
19840 haiku*)
19841 # PIC is the default for Haiku.
19842 # The "-static" flag exists, but is broken.
19843 lt_prog_compiler_static_CXX=
19845 interix[3-9]*)
19846 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
19847 # Instead, we relocate shared libraries at runtime.
19849 sysv4*MP*)
19850 if test -d /usr/nec; then
19851 lt_prog_compiler_pic_CXX=-Kconform_pic
19854 hpux*)
19855 # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
19856 # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag
19857 # sets the default TLS model and affects inlining.
19858 case $host_cpu in
19859 hppa*64*)
19862 lt_prog_compiler_pic_CXX='-fPIC'
19864 esac
19866 *qnx* | *nto*)
19867 # QNX uses GNU C++, but need to define -shared option too, otherwise
19868 # it will coredump.
19869 lt_prog_compiler_pic_CXX='-fPIC -shared'
19872 lt_prog_compiler_pic_CXX='-fPIC'
19874 esac
19875 else
19876 case $host_os in
19877 aix[4-9]*)
19878 # All AIX code is PIC.
19879 if test "$host_cpu" = ia64; then
19880 # AIX 5 now supports IA64 processor
19881 lt_prog_compiler_static_CXX='-Bstatic'
19882 else
19883 lt_prog_compiler_static_CXX='-bnso -bI:/lib/syscalls.exp'
19886 chorus*)
19887 case $cc_basename in
19888 cxch68*)
19889 # Green Hills C++ Compiler
19890 # _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"
19892 esac
19894 dgux*)
19895 case $cc_basename in
19896 ec++*)
19897 lt_prog_compiler_pic_CXX='-KPIC'
19899 ghcx*)
19900 # Green Hills C++ Compiler
19901 lt_prog_compiler_pic_CXX='-pic'
19905 esac
19907 freebsd* | dragonfly*)
19908 # FreeBSD uses GNU C++
19910 hpux9* | hpux10* | hpux11*)
19911 case $cc_basename in
19912 CC*)
19913 lt_prog_compiler_wl_CXX='-Wl,'
19914 lt_prog_compiler_static_CXX='${wl}-a ${wl}archive'
19915 if test "$host_cpu" != ia64; then
19916 lt_prog_compiler_pic_CXX='+Z'
19919 aCC*)
19920 lt_prog_compiler_wl_CXX='-Wl,'
19921 lt_prog_compiler_static_CXX='${wl}-a ${wl}archive'
19922 case $host_cpu in
19923 hppa*64*|ia64*)
19924 # +Z the default
19927 lt_prog_compiler_pic_CXX='+Z'
19929 esac
19933 esac
19935 interix*)
19936 # This is c89, which is MS Visual C++ (no shared libs)
19937 # Anyone wants to do a port?
19939 irix5* | irix6* | nonstopux*)
19940 case $cc_basename in
19941 CC*)
19942 lt_prog_compiler_wl_CXX='-Wl,'
19943 lt_prog_compiler_static_CXX='-non_shared'
19944 # CC pic flag -KPIC is the default.
19948 esac
19950 linux* | k*bsd*-gnu | kopensolaris*-gnu)
19951 case $cc_basename in
19952 KCC*)
19953 # KAI C++ Compiler
19954 lt_prog_compiler_wl_CXX='--backend -Wl,'
19955 lt_prog_compiler_pic_CXX='-fPIC'
19957 ecpc* )
19958 # old Intel C++ for x86_64 which still supported -KPIC.
19959 lt_prog_compiler_wl_CXX='-Wl,'
19960 lt_prog_compiler_pic_CXX='-KPIC'
19961 lt_prog_compiler_static_CXX='-static'
19963 icpc* )
19964 # Intel C++, used to be incompatible with GCC.
19965 # ICC 10 doesn't accept -KPIC any more.
19966 lt_prog_compiler_wl_CXX='-Wl,'
19967 lt_prog_compiler_pic_CXX='-fPIC'
19968 lt_prog_compiler_static_CXX='-static'
19970 pgCC* | pgcpp*)
19971 # Portland Group C++ compiler
19972 lt_prog_compiler_wl_CXX='-Wl,'
19973 lt_prog_compiler_pic_CXX='-fpic'
19974 lt_prog_compiler_static_CXX='-Bstatic'
19976 cxx*)
19977 # Compaq C++
19978 # Make sure the PIC flag is empty. It appears that all Alpha
19979 # Linux and Compaq Tru64 Unix objects are PIC.
19980 lt_prog_compiler_pic_CXX=
19981 lt_prog_compiler_static_CXX='-non_shared'
19983 xlc* | xlC* | bgxl[cC]* | mpixl[cC]*)
19984 # IBM XL 8.0, 9.0 on PPC and BlueGene
19985 lt_prog_compiler_wl_CXX='-Wl,'
19986 lt_prog_compiler_pic_CXX='-qpic'
19987 lt_prog_compiler_static_CXX='-qstaticlink'
19990 case `$CC -V 2>&1 | sed 5q` in
19991 *Sun\ C*)
19992 # Sun C++ 5.9
19993 lt_prog_compiler_pic_CXX='-KPIC'
19994 lt_prog_compiler_static_CXX='-Bstatic'
19995 lt_prog_compiler_wl_CXX='-Qoption ld '
19997 esac
19999 esac
20001 lynxos*)
20003 m88k*)
20005 mvs*)
20006 case $cc_basename in
20007 cxx*)
20008 lt_prog_compiler_pic_CXX='-W c,exportall'
20012 esac
20014 netbsd*)
20016 *qnx* | *nto*)
20017 # QNX uses GNU C++, but need to define -shared option too, otherwise
20018 # it will coredump.
20019 lt_prog_compiler_pic_CXX='-fPIC -shared'
20021 osf3* | osf4* | osf5*)
20022 case $cc_basename in
20023 KCC*)
20024 lt_prog_compiler_wl_CXX='--backend -Wl,'
20026 RCC*)
20027 # Rational C++ 2.4.1
20028 lt_prog_compiler_pic_CXX='-pic'
20030 cxx*)
20031 # Digital/Compaq C++
20032 lt_prog_compiler_wl_CXX='-Wl,'
20033 # Make sure the PIC flag is empty. It appears that all Alpha
20034 # Linux and Compaq Tru64 Unix objects are PIC.
20035 lt_prog_compiler_pic_CXX=
20036 lt_prog_compiler_static_CXX='-non_shared'
20040 esac
20042 psos*)
20044 solaris*)
20045 case $cc_basename in
20046 CC*)
20047 # Sun C++ 4.2, 5.x and Centerline C++
20048 lt_prog_compiler_pic_CXX='-KPIC'
20049 lt_prog_compiler_static_CXX='-Bstatic'
20050 lt_prog_compiler_wl_CXX='-Qoption ld '
20052 gcx*)
20053 # Green Hills C++ Compiler
20054 lt_prog_compiler_pic_CXX='-PIC'
20058 esac
20060 sunos4*)
20061 case $cc_basename in
20062 CC*)
20063 # Sun C++ 4.x
20064 lt_prog_compiler_pic_CXX='-pic'
20065 lt_prog_compiler_static_CXX='-Bstatic'
20067 lcc*)
20068 # Lucid
20069 lt_prog_compiler_pic_CXX='-pic'
20073 esac
20075 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
20076 case $cc_basename in
20077 CC*)
20078 lt_prog_compiler_wl_CXX='-Wl,'
20079 lt_prog_compiler_pic_CXX='-KPIC'
20080 lt_prog_compiler_static_CXX='-Bstatic'
20082 esac
20084 tandem*)
20085 case $cc_basename in
20086 NCC*)
20087 # NonStop-UX NCC 3.20
20088 lt_prog_compiler_pic_CXX='-KPIC'
20092 esac
20094 vxworks*)
20097 lt_prog_compiler_can_build_shared_CXX=no
20099 esac
20102 case $host_os in
20103 # For platforms which do not support PIC, -DPIC is meaningless:
20104 *djgpp*)
20105 lt_prog_compiler_pic_CXX=
20108 lt_prog_compiler_pic_CXX="$lt_prog_compiler_pic_CXX -DPIC"
20110 esac
20111 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_prog_compiler_pic_CXX" >&5
20112 $as_echo "$lt_prog_compiler_pic_CXX" >&6; }
20117 # Check to make sure the PIC flag actually works.
20119 if test -n "$lt_prog_compiler_pic_CXX"; then
20120 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works" >&5
20121 $as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works... " >&6; }
20122 if test "${lt_cv_prog_compiler_pic_works_CXX+set}" = set; then :
20123 $as_echo_n "(cached) " >&6
20124 else
20125 lt_cv_prog_compiler_pic_works_CXX=no
20126 ac_outfile=conftest.$ac_objext
20127 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
20128 lt_compiler_flag="$lt_prog_compiler_pic_CXX -DPIC"
20129 # Insert the option either (1) after the last *FLAGS variable, or
20130 # (2) before a word containing "conftest.", or (3) at the end.
20131 # Note that $ac_compile itself does not contain backslashes and begins
20132 # with a dollar sign (not a hyphen), so the echo should work correctly.
20133 # The option is referenced via a variable to avoid confusing sed.
20134 lt_compile=`echo "$ac_compile" | $SED \
20135 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
20136 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
20137 -e 's:$: $lt_compiler_flag:'`
20138 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
20139 (eval "$lt_compile" 2>conftest.err)
20140 ac_status=$?
20141 cat conftest.err >&5
20142 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20143 if (exit $ac_status) && test -s "$ac_outfile"; then
20144 # The compiler can only warn and ignore the option if not recognized
20145 # So say no if there are warnings other than the usual output.
20146 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
20147 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
20148 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
20149 lt_cv_prog_compiler_pic_works_CXX=yes
20152 $RM conftest*
20155 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works_CXX" >&5
20156 $as_echo "$lt_cv_prog_compiler_pic_works_CXX" >&6; }
20158 if test x"$lt_cv_prog_compiler_pic_works_CXX" = xyes; then
20159 case $lt_prog_compiler_pic_CXX in
20160 "" | " "*) ;;
20161 *) lt_prog_compiler_pic_CXX=" $lt_prog_compiler_pic_CXX" ;;
20162 esac
20163 else
20164 lt_prog_compiler_pic_CXX=
20165 lt_prog_compiler_can_build_shared_CXX=no
20173 # Check to make sure the static flag actually works.
20175 wl=$lt_prog_compiler_wl_CXX eval lt_tmp_static_flag=\"$lt_prog_compiler_static_CXX\"
20176 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
20177 $as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
20178 if test "${lt_cv_prog_compiler_static_works_CXX+set}" = set; then :
20179 $as_echo_n "(cached) " >&6
20180 else
20181 lt_cv_prog_compiler_static_works_CXX=no
20182 save_LDFLAGS="$LDFLAGS"
20183 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
20184 echo "$lt_simple_link_test_code" > conftest.$ac_ext
20185 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
20186 # The linker can only warn and ignore the option if not recognized
20187 # So say no if there are warnings
20188 if test -s conftest.err; then
20189 # Append any errors to the config.log.
20190 cat conftest.err 1>&5
20191 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
20192 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
20193 if diff conftest.exp conftest.er2 >/dev/null; then
20194 lt_cv_prog_compiler_static_works_CXX=yes
20196 else
20197 lt_cv_prog_compiler_static_works_CXX=yes
20200 $RM -r conftest*
20201 LDFLAGS="$save_LDFLAGS"
20204 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works_CXX" >&5
20205 $as_echo "$lt_cv_prog_compiler_static_works_CXX" >&6; }
20207 if test x"$lt_cv_prog_compiler_static_works_CXX" = xyes; then
20209 else
20210 lt_prog_compiler_static_CXX=
20216 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
20217 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
20218 if test "${lt_cv_prog_compiler_c_o_CXX+set}" = set; then :
20219 $as_echo_n "(cached) " >&6
20220 else
20221 lt_cv_prog_compiler_c_o_CXX=no
20222 $RM -r conftest 2>/dev/null
20223 mkdir conftest
20224 cd conftest
20225 mkdir out
20226 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
20228 lt_compiler_flag="-o out/conftest2.$ac_objext"
20229 # Insert the option either (1) after the last *FLAGS variable, or
20230 # (2) before a word containing "conftest.", or (3) at the end.
20231 # Note that $ac_compile itself does not contain backslashes and begins
20232 # with a dollar sign (not a hyphen), so the echo should work correctly.
20233 lt_compile=`echo "$ac_compile" | $SED \
20234 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
20235 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
20236 -e 's:$: $lt_compiler_flag:'`
20237 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
20238 (eval "$lt_compile" 2>out/conftest.err)
20239 ac_status=$?
20240 cat out/conftest.err >&5
20241 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20242 if (exit $ac_status) && test -s out/conftest2.$ac_objext
20243 then
20244 # The compiler can only warn and ignore the option if not recognized
20245 # So say no if there are warnings
20246 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
20247 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
20248 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
20249 lt_cv_prog_compiler_c_o_CXX=yes
20252 chmod u+w . 2>&5
20253 $RM conftest*
20254 # SGI C++ compiler will create directory out/ii_files/ for
20255 # template instantiation
20256 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
20257 $RM out/* && rmdir out
20258 cd ..
20259 $RM -r conftest
20260 $RM conftest*
20263 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o_CXX" >&5
20264 $as_echo "$lt_cv_prog_compiler_c_o_CXX" >&6; }
20268 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
20269 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
20270 if test "${lt_cv_prog_compiler_c_o_CXX+set}" = set; then :
20271 $as_echo_n "(cached) " >&6
20272 else
20273 lt_cv_prog_compiler_c_o_CXX=no
20274 $RM -r conftest 2>/dev/null
20275 mkdir conftest
20276 cd conftest
20277 mkdir out
20278 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
20280 lt_compiler_flag="-o out/conftest2.$ac_objext"
20281 # Insert the option either (1) after the last *FLAGS variable, or
20282 # (2) before a word containing "conftest.", or (3) at the end.
20283 # Note that $ac_compile itself does not contain backslashes and begins
20284 # with a dollar sign (not a hyphen), so the echo should work correctly.
20285 lt_compile=`echo "$ac_compile" | $SED \
20286 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
20287 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
20288 -e 's:$: $lt_compiler_flag:'`
20289 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
20290 (eval "$lt_compile" 2>out/conftest.err)
20291 ac_status=$?
20292 cat out/conftest.err >&5
20293 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20294 if (exit $ac_status) && test -s out/conftest2.$ac_objext
20295 then
20296 # The compiler can only warn and ignore the option if not recognized
20297 # So say no if there are warnings
20298 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
20299 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
20300 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
20301 lt_cv_prog_compiler_c_o_CXX=yes
20304 chmod u+w . 2>&5
20305 $RM conftest*
20306 # SGI C++ compiler will create directory out/ii_files/ for
20307 # template instantiation
20308 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
20309 $RM out/* && rmdir out
20310 cd ..
20311 $RM -r conftest
20312 $RM conftest*
20315 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o_CXX" >&5
20316 $as_echo "$lt_cv_prog_compiler_c_o_CXX" >&6; }
20321 hard_links="nottested"
20322 if test "$lt_cv_prog_compiler_c_o_CXX" = no && test "$need_locks" != no; then
20323 # do not overwrite the value of need_locks provided by the user
20324 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
20325 $as_echo_n "checking if we can lock with hard links... " >&6; }
20326 hard_links=yes
20327 $RM conftest*
20328 ln conftest.a conftest.b 2>/dev/null && hard_links=no
20329 touch conftest.a
20330 ln conftest.a conftest.b 2>&5 || hard_links=no
20331 ln conftest.a conftest.b 2>/dev/null && hard_links=no
20332 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
20333 $as_echo "$hard_links" >&6; }
20334 if test "$hard_links" = no; then
20335 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
20336 $as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
20337 need_locks=warn
20339 else
20340 need_locks=no
20345 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
20346 $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
20348 export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
20349 case $host_os in
20350 aix[4-9]*)
20351 # If we're using GNU nm, then we don't want the "-C" option.
20352 # -C means demangle to AIX nm, but means don't demangle with GNU nm
20353 # Also, AIX nm treats weak defined symbols like other global defined
20354 # symbols, whereas GNU nm marks them as "W".
20355 if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
20356 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'
20357 else
20358 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'
20361 pw32*)
20362 export_symbols_cmds_CXX="$ltdll_cmds"
20364 cygwin* | mingw* | cegcc*)
20365 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'
20368 export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
20370 esac
20371 exclude_expsyms_CXX='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
20373 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs_CXX" >&5
20374 $as_echo "$ld_shlibs_CXX" >&6; }
20375 test "$ld_shlibs_CXX" = no && can_build_shared=no
20377 with_gnu_ld_CXX=$with_gnu_ld
20385 # Do we need to explicitly link libc?
20387 case "x$archive_cmds_need_lc_CXX" in
20388 x|xyes)
20389 # Assume -lc should be added
20390 archive_cmds_need_lc_CXX=yes
20392 if test "$enable_shared" = yes && test "$GCC" = yes; then
20393 case $archive_cmds_CXX in
20394 *'~'*)
20395 # FIXME: we may have to deal with multi-command sequences.
20397 '$CC '*)
20398 # Test whether the compiler implicitly links with -lc since on some
20399 # systems, -lgcc has to come before -lc. If gcc already passes -lc
20400 # to ld, don't add -lc before -lgcc.
20401 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
20402 $as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
20403 if test "${lt_cv_archive_cmds_need_lc_CXX+set}" = set; then :
20404 $as_echo_n "(cached) " >&6
20405 else
20406 $RM conftest*
20407 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
20409 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
20410 (eval $ac_compile) 2>&5
20411 ac_status=$?
20412 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
20413 test $ac_status = 0; } 2>conftest.err; then
20414 soname=conftest
20415 lib=conftest
20416 libobjs=conftest.$ac_objext
20417 deplibs=
20418 wl=$lt_prog_compiler_wl_CXX
20419 pic_flag=$lt_prog_compiler_pic_CXX
20420 compiler_flags=-v
20421 linker_flags=-v
20422 verstring=
20423 output_objdir=.
20424 libname=conftest
20425 lt_save_allow_undefined_flag=$allow_undefined_flag_CXX
20426 allow_undefined_flag_CXX=
20427 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds_CXX 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5
20428 (eval $archive_cmds_CXX 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
20429 ac_status=$?
20430 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
20431 test $ac_status = 0; }
20432 then
20433 lt_cv_archive_cmds_need_lc_CXX=no
20434 else
20435 lt_cv_archive_cmds_need_lc_CXX=yes
20437 allow_undefined_flag_CXX=$lt_save_allow_undefined_flag
20438 else
20439 cat conftest.err 1>&5
20441 $RM conftest*
20444 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc_CXX" >&5
20445 $as_echo "$lt_cv_archive_cmds_need_lc_CXX" >&6; }
20446 archive_cmds_need_lc_CXX=$lt_cv_archive_cmds_need_lc_CXX
20448 esac
20451 esac
20516 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
20517 $as_echo_n "checking dynamic linker characteristics... " >&6; }
20519 library_names_spec=
20520 libname_spec='lib$name'
20521 soname_spec=
20522 shrext_cmds=".so"
20523 postinstall_cmds=
20524 postuninstall_cmds=
20525 finish_cmds=
20526 finish_eval=
20527 shlibpath_var=
20528 shlibpath_overrides_runpath=unknown
20529 version_type=none
20530 dynamic_linker="$host_os ld.so"
20531 sys_lib_dlsearch_path_spec="/lib /usr/lib"
20532 need_lib_prefix=unknown
20533 hardcode_into_libs=no
20535 # when you set need_version to no, make sure it does not cause -set_version
20536 # flags to be left without arguments
20537 need_version=unknown
20539 case $host_os in
20540 aix3*)
20541 version_type=linux
20542 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
20543 shlibpath_var=LIBPATH
20545 # AIX 3 has no versioning support, so we append a major version to the name.
20546 soname_spec='${libname}${release}${shared_ext}$major'
20549 aix[4-9]*)
20550 version_type=linux
20551 need_lib_prefix=no
20552 need_version=no
20553 hardcode_into_libs=yes
20554 if test "$host_cpu" = ia64; then
20555 # AIX 5 supports IA64
20556 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
20557 shlibpath_var=LD_LIBRARY_PATH
20558 else
20559 # With GCC up to 2.95.x, collect2 would create an import file
20560 # for dependence libraries. The import file would start with
20561 # the line `#! .'. This would cause the generated library to
20562 # depend on `.', always an invalid library. This was fixed in
20563 # development snapshots of GCC prior to 3.0.
20564 case $host_os in
20565 aix4 | aix4.[01] | aix4.[01].*)
20566 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
20567 echo ' yes '
20568 echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then
20570 else
20571 can_build_shared=no
20574 esac
20575 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
20576 # soname into executable. Probably we can add versioning support to
20577 # collect2, so additional links can be useful in future.
20578 if test "$aix_use_runtimelinking" = yes; then
20579 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
20580 # instead of lib<name>.a to let people know that these are not
20581 # typical AIX shared libraries.
20582 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20583 else
20584 # We preserve .a as extension for shared libraries through AIX4.2
20585 # and later when we are not doing run time linking.
20586 library_names_spec='${libname}${release}.a $libname.a'
20587 soname_spec='${libname}${release}${shared_ext}$major'
20589 shlibpath_var=LIBPATH
20593 amigaos*)
20594 case $host_cpu in
20595 powerpc)
20596 # Since July 2007 AmigaOS4 officially supports .so libraries.
20597 # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
20598 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20600 m68k)
20601 library_names_spec='$libname.ixlibrary $libname.a'
20602 # Create ${libname}_ixlibrary.a entries in /sys/libs.
20603 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'
20605 esac
20608 beos*)
20609 library_names_spec='${libname}${shared_ext}'
20610 dynamic_linker="$host_os ld.so"
20611 shlibpath_var=LIBRARY_PATH
20614 bsdi[45]*)
20615 version_type=linux
20616 need_version=no
20617 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20618 soname_spec='${libname}${release}${shared_ext}$major'
20619 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
20620 shlibpath_var=LD_LIBRARY_PATH
20621 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
20622 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
20623 # the default ld.so.conf also contains /usr/contrib/lib and
20624 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
20625 # libtool to hard-code these into programs
20628 cygwin* | mingw* | pw32* | cegcc*)
20629 version_type=windows
20630 shrext_cmds=".dll"
20631 need_version=no
20632 need_lib_prefix=no
20634 case $GCC,$host_os in
20635 yes,cygwin* | yes,mingw* | yes,pw32* | yes,cegcc*)
20636 library_names_spec='$libname.dll.a'
20637 # DLL is installed to $(libdir)/../bin by postinstall_cmds
20638 postinstall_cmds='base_file=`basename \${file}`~
20639 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
20640 dldir=$destdir/`dirname \$dlpath`~
20641 test -d \$dldir || mkdir -p \$dldir~
20642 $install_prog $dir/$dlname \$dldir/$dlname~
20643 chmod a+x \$dldir/$dlname~
20644 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
20645 eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
20647 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
20648 dlpath=$dir/\$dldll~
20649 $RM \$dlpath'
20650 shlibpath_overrides_runpath=yes
20652 case $host_os in
20653 cygwin*)
20654 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
20655 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
20658 mingw* | cegcc*)
20659 # MinGW DLLs use traditional 'lib' prefix
20660 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
20662 pw32*)
20663 # pw32 DLLs use 'pw' prefix rather than 'lib'
20664 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
20666 esac
20670 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
20672 esac
20673 dynamic_linker='Win32 ld.exe'
20674 # FIXME: first we should search . and the directory the executable is in
20675 shlibpath_var=PATH
20678 darwin* | rhapsody*)
20679 dynamic_linker="$host_os dyld"
20680 version_type=darwin
20681 need_lib_prefix=no
20682 need_version=no
20683 library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext'
20684 soname_spec='${libname}${release}${major}$shared_ext'
20685 shlibpath_overrides_runpath=yes
20686 shlibpath_var=DYLD_LIBRARY_PATH
20687 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
20689 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
20692 dgux*)
20693 version_type=linux
20694 need_lib_prefix=no
20695 need_version=no
20696 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
20697 soname_spec='${libname}${release}${shared_ext}$major'
20698 shlibpath_var=LD_LIBRARY_PATH
20701 freebsd* | dragonfly*)
20702 # DragonFly does not have aout. When/if they implement a new
20703 # versioning mechanism, adjust this.
20704 if test -x /usr/bin/objformat; then
20705 objformat=`/usr/bin/objformat`
20706 else
20707 case $host_os in
20708 freebsd[23].*) objformat=aout ;;
20709 *) objformat=elf ;;
20710 esac
20712 version_type=freebsd-$objformat
20713 case $version_type in
20714 freebsd-elf*)
20715 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
20716 need_version=no
20717 need_lib_prefix=no
20719 freebsd-*)
20720 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
20721 need_version=yes
20723 esac
20724 shlibpath_var=LD_LIBRARY_PATH
20725 case $host_os in
20726 freebsd2.*)
20727 shlibpath_overrides_runpath=yes
20729 freebsd3.[01]* | freebsdelf3.[01]*)
20730 shlibpath_overrides_runpath=yes
20731 hardcode_into_libs=yes
20733 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
20734 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
20735 shlibpath_overrides_runpath=no
20736 hardcode_into_libs=yes
20738 *) # from 4.6 on, and DragonFly
20739 shlibpath_overrides_runpath=yes
20740 hardcode_into_libs=yes
20742 esac
20745 gnu*)
20746 version_type=linux
20747 need_lib_prefix=no
20748 need_version=no
20749 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
20750 soname_spec='${libname}${release}${shared_ext}$major'
20751 shlibpath_var=LD_LIBRARY_PATH
20752 hardcode_into_libs=yes
20755 haiku*)
20756 version_type=linux
20757 need_lib_prefix=no
20758 need_version=no
20759 dynamic_linker="$host_os runtime_loader"
20760 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
20761 soname_spec='${libname}${release}${shared_ext}$major'
20762 shlibpath_var=LIBRARY_PATH
20763 shlibpath_overrides_runpath=yes
20764 sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/beos/system/lib'
20765 hardcode_into_libs=yes
20768 hpux9* | hpux10* | hpux11*)
20769 # Give a soname corresponding to the major version so that dld.sl refuses to
20770 # link against other versions.
20771 version_type=sunos
20772 need_lib_prefix=no
20773 need_version=no
20774 case $host_cpu in
20775 ia64*)
20776 shrext_cmds='.so'
20777 hardcode_into_libs=yes
20778 dynamic_linker="$host_os dld.so"
20779 shlibpath_var=LD_LIBRARY_PATH
20780 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
20781 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20782 soname_spec='${libname}${release}${shared_ext}$major'
20783 if test "X$HPUX_IA64_MODE" = X32; then
20784 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
20785 else
20786 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
20788 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
20790 hppa*64*)
20791 shrext_cmds='.sl'
20792 hardcode_into_libs=yes
20793 dynamic_linker="$host_os dld.sl"
20794 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
20795 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
20796 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20797 soname_spec='${libname}${release}${shared_ext}$major'
20798 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
20799 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
20802 shrext_cmds='.sl'
20803 dynamic_linker="$host_os dld.sl"
20804 shlibpath_var=SHLIB_PATH
20805 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
20806 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20807 soname_spec='${libname}${release}${shared_ext}$major'
20809 esac
20810 # HP-UX runs *really* slowly unless shared libraries are mode 555, ...
20811 postinstall_cmds='chmod 555 $lib'
20812 # or fails outright, so override atomically:
20813 install_override_mode=555
20816 interix[3-9]*)
20817 version_type=linux
20818 need_lib_prefix=no
20819 need_version=no
20820 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
20821 soname_spec='${libname}${release}${shared_ext}$major'
20822 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
20823 shlibpath_var=LD_LIBRARY_PATH
20824 shlibpath_overrides_runpath=no
20825 hardcode_into_libs=yes
20828 irix5* | irix6* | nonstopux*)
20829 case $host_os in
20830 nonstopux*) version_type=nonstopux ;;
20832 if test "$lt_cv_prog_gnu_ld" = yes; then
20833 version_type=linux
20834 else
20835 version_type=irix
20836 fi ;;
20837 esac
20838 need_lib_prefix=no
20839 need_version=no
20840 soname_spec='${libname}${release}${shared_ext}$major'
20841 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
20842 case $host_os in
20843 irix5* | nonstopux*)
20844 libsuff= shlibsuff=
20847 case $LD in # libtool.m4 will add one of these switches to LD
20848 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
20849 libsuff= shlibsuff= libmagic=32-bit;;
20850 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
20851 libsuff=32 shlibsuff=N32 libmagic=N32;;
20852 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
20853 libsuff=64 shlibsuff=64 libmagic=64-bit;;
20854 *) libsuff= shlibsuff= libmagic=never-match;;
20855 esac
20857 esac
20858 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
20859 shlibpath_overrides_runpath=no
20860 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
20861 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
20862 hardcode_into_libs=yes
20865 # No shared lib support for Linux oldld, aout, or coff.
20866 linux*oldld* | linux*aout* | linux*coff*)
20867 dynamic_linker=no
20870 # This must be Linux ELF.
20871 linux* | k*bsd*-gnu | kopensolaris*-gnu)
20872 version_type=linux
20873 need_lib_prefix=no
20874 need_version=no
20875 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20876 soname_spec='${libname}${release}${shared_ext}$major'
20877 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
20878 shlibpath_var=LD_LIBRARY_PATH
20879 shlibpath_overrides_runpath=no
20881 # Some binutils ld are patched to set DT_RUNPATH
20882 if test "${lt_cv_shlibpath_overrides_runpath+set}" = set; then :
20883 $as_echo_n "(cached) " >&6
20884 else
20885 lt_cv_shlibpath_overrides_runpath=no
20886 save_LDFLAGS=$LDFLAGS
20887 save_libdir=$libdir
20888 eval "libdir=/foo; wl=\"$lt_prog_compiler_wl_CXX\"; \
20889 LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec_CXX\""
20890 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20891 /* end confdefs.h. */
20894 main ()
20898 return 0;
20900 _ACEOF
20901 if ac_fn_cxx_try_link "$LINENO"; then :
20902 if ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then :
20903 lt_cv_shlibpath_overrides_runpath=yes
20906 rm -f core conftest.err conftest.$ac_objext \
20907 conftest$ac_exeext conftest.$ac_ext
20908 LDFLAGS=$save_LDFLAGS
20909 libdir=$save_libdir
20913 shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath
20915 # This implies no fast_install, which is unacceptable.
20916 # Some rework will be needed to allow for fast_install
20917 # before this can be enabled.
20918 hardcode_into_libs=yes
20920 # Append ld.so.conf contents to the search path
20921 if test -f /etc/ld.so.conf; then
20922 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' ' '`
20923 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
20926 # We used to test for /lib/ld.so.1 and disable shared libraries on
20927 # powerpc, because MkLinux only supported shared libraries with the
20928 # GNU dynamic linker. Since this was broken with cross compilers,
20929 # most powerpc-linux boxes support dynamic linking these days and
20930 # people can always --disable-shared, the test was removed, and we
20931 # assume the GNU/Linux dynamic linker is in use.
20932 dynamic_linker='GNU/Linux ld.so'
20935 netbsd*)
20936 version_type=sunos
20937 need_lib_prefix=no
20938 need_version=no
20939 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
20940 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
20941 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
20942 dynamic_linker='NetBSD (a.out) ld.so'
20943 else
20944 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
20945 soname_spec='${libname}${release}${shared_ext}$major'
20946 dynamic_linker='NetBSD ld.elf_so'
20948 shlibpath_var=LD_LIBRARY_PATH
20949 shlibpath_overrides_runpath=yes
20950 hardcode_into_libs=yes
20953 newsos6)
20954 version_type=linux
20955 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20956 shlibpath_var=LD_LIBRARY_PATH
20957 shlibpath_overrides_runpath=yes
20960 *nto* | *qnx*)
20961 version_type=qnx
20962 need_lib_prefix=no
20963 need_version=no
20964 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20965 soname_spec='${libname}${release}${shared_ext}$major'
20966 shlibpath_var=LD_LIBRARY_PATH
20967 shlibpath_overrides_runpath=no
20968 hardcode_into_libs=yes
20969 dynamic_linker='ldqnx.so'
20972 openbsd*)
20973 version_type=sunos
20974 sys_lib_dlsearch_path_spec="/usr/lib"
20975 need_lib_prefix=no
20976 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
20977 case $host_os in
20978 openbsd3.3 | openbsd3.3.*) need_version=yes ;;
20979 *) need_version=no ;;
20980 esac
20981 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
20982 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
20983 shlibpath_var=LD_LIBRARY_PATH
20984 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
20985 case $host_os in
20986 openbsd2.[89] | openbsd2.[89].*)
20987 shlibpath_overrides_runpath=no
20990 shlibpath_overrides_runpath=yes
20992 esac
20993 else
20994 shlibpath_overrides_runpath=yes
20998 os2*)
20999 libname_spec='$name'
21000 shrext_cmds=".dll"
21001 need_lib_prefix=no
21002 library_names_spec='$libname${shared_ext} $libname.a'
21003 dynamic_linker='OS/2 ld.exe'
21004 shlibpath_var=LIBPATH
21007 osf3* | osf4* | osf5*)
21008 version_type=osf
21009 need_lib_prefix=no
21010 need_version=no
21011 soname_spec='${libname}${release}${shared_ext}$major'
21012 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
21013 shlibpath_var=LD_LIBRARY_PATH
21014 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
21015 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
21018 rdos*)
21019 dynamic_linker=no
21022 solaris*)
21023 version_type=linux
21024 need_lib_prefix=no
21025 need_version=no
21026 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
21027 soname_spec='${libname}${release}${shared_ext}$major'
21028 shlibpath_var=LD_LIBRARY_PATH
21029 shlibpath_overrides_runpath=yes
21030 hardcode_into_libs=yes
21031 # ldd complains unless libraries are executable
21032 postinstall_cmds='chmod +x $lib'
21035 sunos4*)
21036 version_type=sunos
21037 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
21038 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
21039 shlibpath_var=LD_LIBRARY_PATH
21040 shlibpath_overrides_runpath=yes
21041 if test "$with_gnu_ld" = yes; then
21042 need_lib_prefix=no
21044 need_version=yes
21047 sysv4 | sysv4.3*)
21048 version_type=linux
21049 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
21050 soname_spec='${libname}${release}${shared_ext}$major'
21051 shlibpath_var=LD_LIBRARY_PATH
21052 case $host_vendor in
21053 sni)
21054 shlibpath_overrides_runpath=no
21055 need_lib_prefix=no
21056 runpath_var=LD_RUN_PATH
21058 siemens)
21059 need_lib_prefix=no
21061 motorola)
21062 need_lib_prefix=no
21063 need_version=no
21064 shlibpath_overrides_runpath=no
21065 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
21067 esac
21070 sysv4*MP*)
21071 if test -d /usr/nec ;then
21072 version_type=linux
21073 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
21074 soname_spec='$libname${shared_ext}.$major'
21075 shlibpath_var=LD_LIBRARY_PATH
21079 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
21080 version_type=freebsd-elf
21081 need_lib_prefix=no
21082 need_version=no
21083 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
21084 soname_spec='${libname}${release}${shared_ext}$major'
21085 shlibpath_var=LD_LIBRARY_PATH
21086 shlibpath_overrides_runpath=yes
21087 hardcode_into_libs=yes
21088 if test "$with_gnu_ld" = yes; then
21089 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
21090 else
21091 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
21092 case $host_os in
21093 sco3.2v5*)
21094 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
21096 esac
21098 sys_lib_dlsearch_path_spec='/usr/lib'
21101 tpf*)
21102 # TPF is a cross-target only. Preferred cross-host = GNU/Linux.
21103 version_type=linux
21104 need_lib_prefix=no
21105 need_version=no
21106 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
21107 shlibpath_var=LD_LIBRARY_PATH
21108 shlibpath_overrides_runpath=no
21109 hardcode_into_libs=yes
21112 uts4*)
21113 version_type=linux
21114 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
21115 soname_spec='${libname}${release}${shared_ext}$major'
21116 shlibpath_var=LD_LIBRARY_PATH
21120 dynamic_linker=no
21122 esac
21123 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
21124 $as_echo "$dynamic_linker" >&6; }
21125 test "$dynamic_linker" = no && can_build_shared=no
21127 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
21128 if test "$GCC" = yes; then
21129 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
21132 if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
21133 sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
21135 if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
21136 sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
21176 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
21177 $as_echo_n "checking how to hardcode library paths into programs... " >&6; }
21178 hardcode_action_CXX=
21179 if test -n "$hardcode_libdir_flag_spec_CXX" ||
21180 test -n "$runpath_var_CXX" ||
21181 test "X$hardcode_automatic_CXX" = "Xyes" ; then
21183 # We can hardcode non-existent directories.
21184 if test "$hardcode_direct_CXX" != no &&
21185 # If the only mechanism to avoid hardcoding is shlibpath_var, we
21186 # have to relink, otherwise we might link with an installed library
21187 # when we should be linking with a yet-to-be-installed one
21188 ## test "$_LT_TAGVAR(hardcode_shlibpath_var, CXX)" != no &&
21189 test "$hardcode_minus_L_CXX" != no; then
21190 # Linking always hardcodes the temporary library directory.
21191 hardcode_action_CXX=relink
21192 else
21193 # We can link without hardcoding, and we can hardcode nonexisting dirs.
21194 hardcode_action_CXX=immediate
21196 else
21197 # We cannot hardcode anything, or else we can only hardcode existing
21198 # directories.
21199 hardcode_action_CXX=unsupported
21201 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action_CXX" >&5
21202 $as_echo "$hardcode_action_CXX" >&6; }
21204 if test "$hardcode_action_CXX" = relink ||
21205 test "$inherit_rpath_CXX" = yes; then
21206 # Fast installation is not supported
21207 enable_fast_install=no
21208 elif test "$shlibpath_overrides_runpath" = yes ||
21209 test "$enable_shared" = no; then
21210 # Fast installation is not necessary
21211 enable_fast_install=needless
21220 fi # test -n "$compiler"
21222 CC=$lt_save_CC
21223 LDCXX=$LD
21224 LD=$lt_save_LD
21225 GCC=$lt_save_GCC
21226 with_gnu_ld=$lt_save_with_gnu_ld
21227 lt_cv_path_LDCXX=$lt_cv_path_LD
21228 lt_cv_path_LD=$lt_save_path_LD
21229 lt_cv_prog_gnu_ldcxx=$lt_cv_prog_gnu_ld
21230 lt_cv_prog_gnu_ld=$lt_save_with_gnu_ld
21231 fi # test "$_lt_caught_CXX_error" != yes
21233 ac_ext=c
21234 ac_cpp='$CPP $CPPFLAGS'
21235 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
21236 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
21237 ac_compiler_gnu=$ac_cv_c_compiler_gnu
21254 # Only expand once:
21260 # Identify the assembler which will work hand-in-glove with the newly
21261 # built GCC, so that we can examine its features. This is the assembler
21262 # which will be driven by the driver program.
21264 # If build != host, and we aren't building gas in-tree, we identify a
21265 # build->target assembler and hope that it will have the same features
21266 # as the host->target assembler we'll be using.
21267 gcc_cv_gas_major_version=
21268 gcc_cv_gas_minor_version=
21269 gcc_cv_as_gas_srcdir=`echo $srcdir | sed -e 's,/gcc$,,'`/gas
21271 if test "${gcc_cv_as+set}" = set; then :
21273 else
21275 if test -x "$DEFAULT_ASSEMBLER"; then
21276 gcc_cv_as="$DEFAULT_ASSEMBLER"
21277 elif test -f $gcc_cv_as_gas_srcdir/configure.in \
21278 && test -f ../gas/Makefile \
21279 && test x$build = x$host; then
21280 gcc_cv_as=../gas/as-new$build_exeext
21281 elif test -x as$build_exeext; then
21282 # Build using assembler in the current directory.
21283 gcc_cv_as=./as$build_exeext
21284 elif ( set dummy $AS_FOR_TARGET; test -x $2 ); then
21285 gcc_cv_as="$AS_FOR_TARGET"
21286 else
21287 # Extract the first word of "$AS_FOR_TARGET", so it can be a program name with args.
21288 set dummy $AS_FOR_TARGET; ac_word=$2
21289 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
21290 $as_echo_n "checking for $ac_word... " >&6; }
21291 if test "${ac_cv_path_gcc_cv_as+set}" = set; then :
21292 $as_echo_n "(cached) " >&6
21293 else
21294 case $gcc_cv_as in
21295 [\\/]* | ?:[\\/]*)
21296 ac_cv_path_gcc_cv_as="$gcc_cv_as" # Let the user override the test with a path.
21299 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
21300 for as_dir in $PATH
21302 IFS=$as_save_IFS
21303 test -z "$as_dir" && as_dir=.
21304 for ac_exec_ext in '' $ac_executable_extensions; do
21305 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
21306 ac_cv_path_gcc_cv_as="$as_dir/$ac_word$ac_exec_ext"
21307 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
21308 break 2
21310 done
21311 done
21312 IFS=$as_save_IFS
21315 esac
21317 gcc_cv_as=$ac_cv_path_gcc_cv_as
21318 if test -n "$gcc_cv_as"; then
21319 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as" >&5
21320 $as_echo "$gcc_cv_as" >&6; }
21321 else
21322 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
21323 $as_echo "no" >&6; }
21330 ORIGINAL_AS_FOR_TARGET=$gcc_cv_as
21332 case "$ORIGINAL_AS_FOR_TARGET" in
21333 ./as | ./as$build_exeext) ;;
21334 *) ac_config_files="$ac_config_files as:exec-tool.in"
21336 esac
21338 { $as_echo "$as_me:${as_lineno-$LINENO}: checking what assembler to use" >&5
21339 $as_echo_n "checking what assembler to use... " >&6; }
21340 if test "$gcc_cv_as" = ../gas/as-new$build_exeext; then
21341 # Single tree build which includes gas. We want to prefer it
21342 # over whatever linker top-level may have detected, since
21343 # we'll use what we're building after installation anyway.
21344 { $as_echo "$as_me:${as_lineno-$LINENO}: result: newly built gas" >&5
21345 $as_echo "newly built gas" >&6; }
21346 in_tree_gas=yes
21347 gcc_cv_as_bfd_srcdir=`echo $srcdir | sed -e 's,/gcc$,,'`/bfd
21348 for f in $gcc_cv_as_bfd_srcdir/configure \
21349 $gcc_cv_as_gas_srcdir/configure \
21350 $gcc_cv_as_gas_srcdir/configure.in \
21351 $gcc_cv_as_gas_srcdir/Makefile.in ; do
21352 gcc_cv_gas_version=`sed -n -e 's/^[ ]*VERSION=[^0-9A-Za-z_]*\([0-9]*\.[0-9]*.*\)/VERSION=\1/p' < $f`
21353 if test x$gcc_cv_gas_version != x; then
21354 break
21356 done
21357 case $gcc_cv_gas_version in
21358 VERSION=[0-9]*) ;;
21359 *) as_fn_error "cannot find version of in-tree assembler" "$LINENO" 5;;
21360 esac
21361 gcc_cv_gas_major_version=`expr "$gcc_cv_gas_version" : "VERSION=\([0-9]*\)"`
21362 gcc_cv_gas_minor_version=`expr "$gcc_cv_gas_version" : "VERSION=[0-9]*\.\([0-9]*\)"`
21363 gcc_cv_gas_patch_version=`expr "$gcc_cv_gas_version" : "VERSION=[0-9]*\.[0-9]*\.\([0-9]*\)"`
21364 case $gcc_cv_gas_patch_version in
21365 "") gcc_cv_gas_patch_version="0" ;;
21366 esac
21367 gcc_cv_gas_vers=`expr \( \( $gcc_cv_gas_major_version \* 1000 \) \
21368 + $gcc_cv_gas_minor_version \) \* 1000 \
21369 + $gcc_cv_gas_patch_version`
21371 in_tree_gas_is_elf=no
21372 if grep 'obj_format = elf' ../gas/Makefile > /dev/null \
21373 || (grep 'obj_format = multi' ../gas/Makefile \
21374 && grep 'extra_objects =.* obj-elf' ../gas/Makefile) > /dev/null
21375 then
21376 in_tree_gas_is_elf=yes
21378 else
21379 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as" >&5
21380 $as_echo "$gcc_cv_as" >&6; }
21381 in_tree_gas=no
21384 # Identify the linker which will work hand-in-glove with the newly
21385 # built GCC, so that we can examine its features. This is the linker
21386 # which will be driven by the driver program.
21388 # If build != host, and we aren't building gas in-tree, we identify a
21389 # build->target linker and hope that it will have the same features
21390 # as the host->target linker we'll be using.
21391 gcc_cv_gld_major_version=
21392 gcc_cv_gld_minor_version=
21393 gcc_cv_ld_gld_srcdir=`echo $srcdir | sed -e 's,/gcc$,,'`/ld
21394 gcc_cv_ld_bfd_srcdir=`echo $srcdir | sed -e 's,/gcc$,,'`/bfd
21396 if test "${gcc_cv_ld+set}" = set; then :
21398 else
21400 if test -x "$DEFAULT_LINKER"; then
21401 gcc_cv_ld="$DEFAULT_LINKER"
21402 elif test -f $gcc_cv_ld_gld_srcdir/configure.in \
21403 && test -f ../ld/Makefile \
21404 && test x$build = x$host; then
21405 gcc_cv_ld=../ld/ld-new$build_exeext
21406 elif test -x collect-ld$build_exeext; then
21407 # Build using linker in the current directory.
21408 gcc_cv_ld=./collect-ld$build_exeext
21409 elif ( set dummy $LD_FOR_TARGET; test -x $2 ); then
21410 gcc_cv_ld="$LD_FOR_TARGET"
21411 else
21412 # Extract the first word of "$LD_FOR_TARGET", so it can be a program name with args.
21413 set dummy $LD_FOR_TARGET; ac_word=$2
21414 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
21415 $as_echo_n "checking for $ac_word... " >&6; }
21416 if test "${ac_cv_path_gcc_cv_ld+set}" = set; then :
21417 $as_echo_n "(cached) " >&6
21418 else
21419 case $gcc_cv_ld in
21420 [\\/]* | ?:[\\/]*)
21421 ac_cv_path_gcc_cv_ld="$gcc_cv_ld" # Let the user override the test with a path.
21424 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
21425 for as_dir in $PATH
21427 IFS=$as_save_IFS
21428 test -z "$as_dir" && as_dir=.
21429 for ac_exec_ext in '' $ac_executable_extensions; do
21430 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
21431 ac_cv_path_gcc_cv_ld="$as_dir/$ac_word$ac_exec_ext"
21432 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
21433 break 2
21435 done
21436 done
21437 IFS=$as_save_IFS
21440 esac
21442 gcc_cv_ld=$ac_cv_path_gcc_cv_ld
21443 if test -n "$gcc_cv_ld"; then
21444 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld" >&5
21445 $as_echo "$gcc_cv_ld" >&6; }
21446 else
21447 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
21448 $as_echo "no" >&6; }
21455 ORIGINAL_PLUGIN_LD_FOR_TARGET=$gcc_cv_ld
21456 PLUGIN_LD_SUFFIX=`basename $gcc_cv_ld | sed -e "s,$target_alias-,,"`
21457 # if the PLUGIN_LD is set ld-new, just have it as ld
21458 # as that is the installed named.
21459 if test x$PLUGIN_LD_SUFFIX = xld-new \
21460 || test x$PLUGIN_LD_SUFFIX = xcollect-ld ; then
21461 PLUGIN_LD_SUFFIX=ld
21464 # Check whether --with-plugin-ld was given.
21465 if test "${with_plugin_ld+set}" = set; then :
21466 withval=$with_plugin_ld; if test x"$withval" != x; then
21467 ORIGINAL_PLUGIN_LD_FOR_TARGET="$withval"
21468 PLUGIN_LD_SUFFIX=`echo $withval | sed -e "s,$target_alias-,,"`
21474 cat >>confdefs.h <<_ACEOF
21475 #define PLUGIN_LD_SUFFIX "$PLUGIN_LD_SUFFIX"
21476 _ACEOF
21479 # Check to see if we are using gold instead of ld
21480 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using gold" >&5
21481 $as_echo_n "checking whether we are using gold... " >&6; }
21482 ld_is_gold=no
21483 if test x$gcc_cv_ld != x; then
21484 if $gcc_cv_ld --version 2>/dev/null | sed 1q \
21485 | grep "GNU gold" > /dev/null; then
21486 ld_is_gold=yes
21489 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_is_gold" >&5
21490 $as_echo "$ld_is_gold" >&6; }
21492 ORIGINAL_LD_FOR_TARGET=$gcc_cv_ld
21494 case "$ORIGINAL_LD_FOR_TARGET" in
21495 ./collect-ld | ./collect-ld$build_exeext) ;;
21496 *) ac_config_files="$ac_config_files collect-ld:exec-tool.in"
21498 esac
21500 { $as_echo "$as_me:${as_lineno-$LINENO}: checking what linker to use" >&5
21501 $as_echo_n "checking what linker to use... " >&6; }
21502 if test "$gcc_cv_ld" = ../ld/ld-new$build_exeext \
21503 || test "$gcc_cv_ld" = ../gold/ld-new$build_exeext; then
21504 # Single tree build which includes ld. We want to prefer it
21505 # over whatever linker top-level may have detected, since
21506 # we'll use what we're building after installation anyway.
21507 { $as_echo "$as_me:${as_lineno-$LINENO}: result: newly built ld" >&5
21508 $as_echo "newly built ld" >&6; }
21509 in_tree_ld=yes
21510 in_tree_ld_is_elf=no
21511 if (grep 'EMUL = .*elf' ../ld/Makefile \
21512 || grep 'EMUL = .*linux' ../ld/Makefile \
21513 || grep 'EMUL = .*lynx' ../ld/Makefile) > /dev/null; then
21514 in_tree_ld_is_elf=yes
21515 elif test "$ld_is_gold" = yes; then
21516 in_tree_ld_is_elf=yes
21518 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
21520 gcc_cv_gld_version=`sed -n -e 's/^[ ]*VERSION=[^0-9A-Za-z_]*\([0-9]*\.[0-9]*.*\)/VERSION=\1/p' < $f`
21521 if test x$gcc_cv_gld_version != x; then
21522 break
21524 done
21525 case $gcc_cv_gld_version in
21526 VERSION=[0-9]*) ;;
21527 *) as_fn_error "cannot find version of in-tree linker" "$LINENO" 5 ;;
21528 esac
21529 gcc_cv_gld_major_version=`expr "$gcc_cv_gld_version" : "VERSION=\([0-9]*\)"`
21530 gcc_cv_gld_minor_version=`expr "$gcc_cv_gld_version" : "VERSION=[0-9]*\.\([0-9]*\)"`
21531 else
21532 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld" >&5
21533 $as_echo "$gcc_cv_ld" >&6; }
21534 in_tree_ld=no
21537 # Figure out what nm we will be using.
21538 gcc_cv_binutils_srcdir=`echo $srcdir | sed -e 's,/gcc$,,'`/binutils
21539 if test "${gcc_cv_nm+set}" = set; then :
21541 else
21543 if test -f $gcc_cv_binutils_srcdir/configure.in \
21544 && test -f ../binutils/Makefile \
21545 && test x$build = x$host; then
21546 gcc_cv_nm=../binutils/nm-new$build_exeext
21547 elif test -x nm$build_exeext; then
21548 gcc_cv_nm=./nm$build_exeext
21549 elif ( set dummy $NM_FOR_TARGET; test -x $2 ); then
21550 gcc_cv_nm="$NM_FOR_TARGET"
21551 else
21552 # Extract the first word of "$NM_FOR_TARGET", so it can be a program name with args.
21553 set dummy $NM_FOR_TARGET; ac_word=$2
21554 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
21555 $as_echo_n "checking for $ac_word... " >&6; }
21556 if test "${ac_cv_path_gcc_cv_nm+set}" = set; then :
21557 $as_echo_n "(cached) " >&6
21558 else
21559 case $gcc_cv_nm in
21560 [\\/]* | ?:[\\/]*)
21561 ac_cv_path_gcc_cv_nm="$gcc_cv_nm" # Let the user override the test with a path.
21564 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
21565 for as_dir in $PATH
21567 IFS=$as_save_IFS
21568 test -z "$as_dir" && as_dir=.
21569 for ac_exec_ext in '' $ac_executable_extensions; do
21570 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
21571 ac_cv_path_gcc_cv_nm="$as_dir/$ac_word$ac_exec_ext"
21572 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
21573 break 2
21575 done
21576 done
21577 IFS=$as_save_IFS
21580 esac
21582 gcc_cv_nm=$ac_cv_path_gcc_cv_nm
21583 if test -n "$gcc_cv_nm"; then
21584 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_nm" >&5
21585 $as_echo "$gcc_cv_nm" >&6; }
21586 else
21587 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
21588 $as_echo "no" >&6; }
21595 { $as_echo "$as_me:${as_lineno-$LINENO}: checking what nm to use" >&5
21596 $as_echo_n "checking what nm to use... " >&6; }
21597 if test "$gcc_cv_nm" = ../binutils/nm-new$build_exeext; then
21598 # Single tree build which includes binutils.
21599 { $as_echo "$as_me:${as_lineno-$LINENO}: result: newly built nm" >&5
21600 $as_echo "newly built nm" >&6; }
21601 in_tree_nm=yes
21602 else
21603 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_nm" >&5
21604 $as_echo "$gcc_cv_nm" >&6; }
21605 in_tree_nm=no
21608 ORIGINAL_NM_FOR_TARGET=$gcc_cv_nm
21610 case "$ORIGINAL_NM_FOR_TARGET" in
21611 ./nm | ./nm$build_exeext) ;;
21612 *) ac_config_files="$ac_config_files nm:exec-tool.in"
21614 esac
21617 # Figure out what objdump we will be using.
21618 if test "${gcc_cv_objdump+set}" = set; then :
21620 else
21622 if test -f $gcc_cv_binutils_srcdir/configure.in \
21623 && test -f ../binutils/Makefile \
21624 && test x$build = x$host; then
21625 # Single tree build which includes binutils.
21626 gcc_cv_objdump=../binutils/objdump$build_exeext
21627 elif test -x objdump$build_exeext; then
21628 gcc_cv_objdump=./objdump$build_exeext
21629 elif ( set dummy $OBJDUMP_FOR_TARGET; test -x $2 ); then
21630 gcc_cv_objdump="$OBJDUMP_FOR_TARGET"
21631 else
21632 # Extract the first word of "$OBJDUMP_FOR_TARGET", so it can be a program name with args.
21633 set dummy $OBJDUMP_FOR_TARGET; ac_word=$2
21634 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
21635 $as_echo_n "checking for $ac_word... " >&6; }
21636 if test "${ac_cv_path_gcc_cv_objdump+set}" = set; then :
21637 $as_echo_n "(cached) " >&6
21638 else
21639 case $gcc_cv_objdump in
21640 [\\/]* | ?:[\\/]*)
21641 ac_cv_path_gcc_cv_objdump="$gcc_cv_objdump" # Let the user override the test with a path.
21644 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
21645 for as_dir in $PATH
21647 IFS=$as_save_IFS
21648 test -z "$as_dir" && as_dir=.
21649 for ac_exec_ext in '' $ac_executable_extensions; do
21650 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
21651 ac_cv_path_gcc_cv_objdump="$as_dir/$ac_word$ac_exec_ext"
21652 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
21653 break 2
21655 done
21656 done
21657 IFS=$as_save_IFS
21660 esac
21662 gcc_cv_objdump=$ac_cv_path_gcc_cv_objdump
21663 if test -n "$gcc_cv_objdump"; then
21664 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_objdump" >&5
21665 $as_echo "$gcc_cv_objdump" >&6; }
21666 else
21667 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
21668 $as_echo "no" >&6; }
21675 { $as_echo "$as_me:${as_lineno-$LINENO}: checking what objdump to use" >&5
21676 $as_echo_n "checking what objdump to use... " >&6; }
21677 if test "$gcc_cv_objdump" = ../binutils/objdump$build_exeext; then
21678 # Single tree build which includes binutils.
21679 { $as_echo "$as_me:${as_lineno-$LINENO}: result: newly built objdump" >&5
21680 $as_echo "newly built objdump" >&6; }
21681 elif test x$gcc_cv_objdump = x; then
21682 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
21683 $as_echo "not found" >&6; }
21684 else
21685 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_objdump" >&5
21686 $as_echo "$gcc_cv_objdump" >&6; }
21689 # Figure out what readelf we will be using.
21690 if test "${gcc_cv_readelf+set}" = set; then :
21692 else
21694 if test -f $gcc_cv_binutils_srcdir/configure.in \
21695 && test -f ../binutils/Makefile \
21696 && test x$build = x$host; then
21697 # Single tree build which includes binutils.
21698 gcc_cv_readelf=../binutils/readelf$build_exeext
21699 elif test -x readelf$build_exeext; then
21700 gcc_cv_readelf=./readelf$build_exeext
21701 else
21702 # Extract the first word of "readelf", so it can be a program name with args.
21703 set dummy readelf; ac_word=$2
21704 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
21705 $as_echo_n "checking for $ac_word... " >&6; }
21706 if test "${ac_cv_path_gcc_cv_readelf+set}" = set; then :
21707 $as_echo_n "(cached) " >&6
21708 else
21709 case $gcc_cv_readelf in
21710 [\\/]* | ?:[\\/]*)
21711 ac_cv_path_gcc_cv_readelf="$gcc_cv_readelf" # Let the user override the test with a path.
21714 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
21715 for as_dir in $PATH
21717 IFS=$as_save_IFS
21718 test -z "$as_dir" && as_dir=.
21719 for ac_exec_ext in '' $ac_executable_extensions; do
21720 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
21721 ac_cv_path_gcc_cv_readelf="$as_dir/$ac_word$ac_exec_ext"
21722 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
21723 break 2
21725 done
21726 done
21727 IFS=$as_save_IFS
21730 esac
21732 gcc_cv_readelf=$ac_cv_path_gcc_cv_readelf
21733 if test -n "$gcc_cv_readelf"; then
21734 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_readelf" >&5
21735 $as_echo "$gcc_cv_readelf" >&6; }
21736 else
21737 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
21738 $as_echo "no" >&6; }
21745 { $as_echo "$as_me:${as_lineno-$LINENO}: checking what readelf to use" >&5
21746 $as_echo_n "checking what readelf to use... " >&6; }
21747 if test "$gcc_cv_readelf" = ../binutils/readelf$build_exeext; then
21748 # Single tree build which includes binutils.
21749 { $as_echo "$as_me:${as_lineno-$LINENO}: result: newly built readelf" >&5
21750 $as_echo "newly built readelf" >&6; }
21751 elif test x$gcc_cv_readelf = x; then
21752 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
21753 $as_echo "not found" >&6; }
21754 else
21755 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_readelf" >&5
21756 $as_echo "$gcc_cv_readelf" >&6; }
21759 # Figure out what assembler alignment features are present.
21760 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler flags" >&5
21761 $as_echo_n "checking assembler flags... " >&6; }
21762 if test "${gcc_cv_as_flags+set}" = set; then :
21763 $as_echo_n "(cached) " >&6
21764 else
21765 case "$target" in
21766 i[34567]86-*-linux*)
21767 gcc_cv_as_flags=--32
21769 x86_64-*-linux-gnux32)
21770 gcc_cv_as_flags=--x32
21772 x86_64-*-linux*)
21773 gcc_cv_as_flags=--64
21775 powerpc*-*-darwin*)
21776 gcc_cv_as_flags="-arch ppc"
21779 gcc_cv_as_flags=" "
21781 esac
21783 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_flags" >&5
21784 $as_echo "$gcc_cv_as_flags" >&6; }
21786 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .balign and .p2align" >&5
21787 $as_echo_n "checking assembler for .balign and .p2align... " >&6; }
21788 if test "${gcc_cv_as_balign_and_p2align+set}" = set; then :
21789 $as_echo_n "(cached) " >&6
21790 else
21791 gcc_cv_as_balign_and_p2align=no
21792 if test $in_tree_gas = yes; then
21793 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 6 \) \* 1000 + 0`
21794 then gcc_cv_as_balign_and_p2align=yes
21796 elif test x$gcc_cv_as != x; then
21797 $as_echo '.balign 4
21798 .p2align 2' > conftest.s
21799 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
21800 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
21801 (eval $ac_try) 2>&5
21802 ac_status=$?
21803 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
21804 test $ac_status = 0; }; }
21805 then
21806 gcc_cv_as_balign_and_p2align=yes
21807 else
21808 echo "configure: failed program was" >&5
21809 cat conftest.s >&5
21811 rm -f conftest.o conftest.s
21814 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_balign_and_p2align" >&5
21815 $as_echo "$gcc_cv_as_balign_and_p2align" >&6; }
21816 if test $gcc_cv_as_balign_and_p2align = yes; then
21818 $as_echo "#define HAVE_GAS_BALIGN_AND_P2ALIGN 1" >>confdefs.h
21822 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .p2align with maximum skip" >&5
21823 $as_echo_n "checking assembler for .p2align with maximum skip... " >&6; }
21824 if test "${gcc_cv_as_max_skip_p2align+set}" = set; then :
21825 $as_echo_n "(cached) " >&6
21826 else
21827 gcc_cv_as_max_skip_p2align=no
21828 if test $in_tree_gas = yes; then
21829 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 8 \) \* 1000 + 0`
21830 then gcc_cv_as_max_skip_p2align=yes
21832 elif test x$gcc_cv_as != x; then
21833 $as_echo '.p2align 4,,7' > conftest.s
21834 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
21835 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
21836 (eval $ac_try) 2>&5
21837 ac_status=$?
21838 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
21839 test $ac_status = 0; }; }
21840 then
21841 gcc_cv_as_max_skip_p2align=yes
21842 else
21843 echo "configure: failed program was" >&5
21844 cat conftest.s >&5
21846 rm -f conftest.o conftest.s
21849 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_max_skip_p2align" >&5
21850 $as_echo "$gcc_cv_as_max_skip_p2align" >&6; }
21851 if test $gcc_cv_as_max_skip_p2align = yes; then
21853 $as_echo "#define HAVE_GAS_MAX_SKIP_P2ALIGN 1" >>confdefs.h
21857 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .literal16" >&5
21858 $as_echo_n "checking assembler for .literal16... " >&6; }
21859 if test "${gcc_cv_as_literal16+set}" = set; then :
21860 $as_echo_n "(cached) " >&6
21861 else
21862 gcc_cv_as_literal16=no
21863 if test $in_tree_gas = yes; then
21864 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 8 \) \* 1000 + 0`
21865 then gcc_cv_as_literal16=yes
21867 elif test x$gcc_cv_as != x; then
21868 $as_echo '.literal16' > conftest.s
21869 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
21870 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
21871 (eval $ac_try) 2>&5
21872 ac_status=$?
21873 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
21874 test $ac_status = 0; }; }
21875 then
21876 gcc_cv_as_literal16=yes
21877 else
21878 echo "configure: failed program was" >&5
21879 cat conftest.s >&5
21881 rm -f conftest.o conftest.s
21884 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_literal16" >&5
21885 $as_echo "$gcc_cv_as_literal16" >&6; }
21886 if test $gcc_cv_as_literal16 = yes; then
21888 $as_echo "#define HAVE_GAS_LITERAL16 1" >>confdefs.h
21892 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for working .subsection -1" >&5
21893 $as_echo_n "checking assembler for working .subsection -1... " >&6; }
21894 if test "${gcc_cv_as_subsection_m1+set}" = set; then :
21895 $as_echo_n "(cached) " >&6
21896 else
21897 gcc_cv_as_subsection_m1=no
21898 if test $in_tree_gas = yes; then
21899 if test $in_tree_gas_is_elf = yes \
21900 && test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 9 \) \* 1000 + 0`
21901 then gcc_cv_as_subsection_m1=yes
21903 elif test x$gcc_cv_as != x; then
21904 $as_echo 'conftest_label1: .word 0
21905 .subsection -1
21906 conftest_label2: .word 0
21907 .previous' > conftest.s
21908 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
21909 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
21910 (eval $ac_try) 2>&5
21911 ac_status=$?
21912 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
21913 test $ac_status = 0; }; }
21914 then
21915 if test x$gcc_cv_nm != x; then
21916 $gcc_cv_nm conftest.o | grep conftest_label1 > conftest.nm1
21917 $gcc_cv_nm conftest.o | grep conftest_label2 | sed -e 's/label2/label1/' > conftest.nm2
21918 if cmp conftest.nm1 conftest.nm2 > /dev/null 2>&1
21919 then :
21920 else gcc_cv_as_subsection_m1=yes
21922 rm -f conftest.nm1 conftest.nm2
21924 else
21925 echo "configure: failed program was" >&5
21926 cat conftest.s >&5
21928 rm -f conftest.o conftest.s
21931 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_subsection_m1" >&5
21932 $as_echo "$gcc_cv_as_subsection_m1" >&6; }
21933 if test $gcc_cv_as_subsection_m1 = yes; then
21935 $as_echo "#define HAVE_GAS_SUBSECTION_ORDERING 1" >>confdefs.h
21939 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .weak" >&5
21940 $as_echo_n "checking assembler for .weak... " >&6; }
21941 if test "${gcc_cv_as_weak+set}" = set; then :
21942 $as_echo_n "(cached) " >&6
21943 else
21944 gcc_cv_as_weak=no
21945 if test $in_tree_gas = yes; then
21946 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 2 \) \* 1000 + 0`
21947 then gcc_cv_as_weak=yes
21949 elif test x$gcc_cv_as != x; then
21950 $as_echo ' .weak foobar' > conftest.s
21951 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
21952 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
21953 (eval $ac_try) 2>&5
21954 ac_status=$?
21955 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
21956 test $ac_status = 0; }; }
21957 then
21958 gcc_cv_as_weak=yes
21959 else
21960 echo "configure: failed program was" >&5
21961 cat conftest.s >&5
21963 rm -f conftest.o conftest.s
21966 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_weak" >&5
21967 $as_echo "$gcc_cv_as_weak" >&6; }
21968 if test $gcc_cv_as_weak = yes; then
21970 $as_echo "#define HAVE_GAS_WEAK 1" >>confdefs.h
21974 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .weakref" >&5
21975 $as_echo_n "checking assembler for .weakref... " >&6; }
21976 if test "${gcc_cv_as_weakref+set}" = set; then :
21977 $as_echo_n "(cached) " >&6
21978 else
21979 gcc_cv_as_weakref=no
21980 if test $in_tree_gas = yes; then
21981 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 17 \) \* 1000 + 0`
21982 then gcc_cv_as_weakref=yes
21984 elif test x$gcc_cv_as != x; then
21985 $as_echo ' .weakref foobar, barfnot' > conftest.s
21986 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
21987 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
21988 (eval $ac_try) 2>&5
21989 ac_status=$?
21990 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
21991 test $ac_status = 0; }; }
21992 then
21993 gcc_cv_as_weakref=yes
21994 else
21995 echo "configure: failed program was" >&5
21996 cat conftest.s >&5
21998 rm -f conftest.o conftest.s
22001 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_weakref" >&5
22002 $as_echo "$gcc_cv_as_weakref" >&6; }
22003 if test $gcc_cv_as_weakref = yes; then
22005 $as_echo "#define HAVE_GAS_WEAKREF 1" >>confdefs.h
22009 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .nsubspa comdat" >&5
22010 $as_echo_n "checking assembler for .nsubspa comdat... " >&6; }
22011 if test "${gcc_cv_as_nsubspa_comdat+set}" = set; then :
22012 $as_echo_n "(cached) " >&6
22013 else
22014 gcc_cv_as_nsubspa_comdat=no
22015 if test $in_tree_gas = yes; then
22016 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 15 \) \* 1000 + 91`
22017 then gcc_cv_as_nsubspa_comdat=yes
22019 elif test x$gcc_cv_as != x; then
22020 $as_echo ' .SPACE $TEXT$
22021 .NSUBSPA $CODE$,COMDAT' > conftest.s
22022 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
22023 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
22024 (eval $ac_try) 2>&5
22025 ac_status=$?
22026 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
22027 test $ac_status = 0; }; }
22028 then
22029 gcc_cv_as_nsubspa_comdat=yes
22030 else
22031 echo "configure: failed program was" >&5
22032 cat conftest.s >&5
22034 rm -f conftest.o conftest.s
22037 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_nsubspa_comdat" >&5
22038 $as_echo "$gcc_cv_as_nsubspa_comdat" >&6; }
22039 if test $gcc_cv_as_nsubspa_comdat = yes; then
22041 $as_echo "#define HAVE_GAS_NSUBSPA_COMDAT 1" >>confdefs.h
22045 # .hidden needs to be supported in both the assembler and the linker,
22046 # because GNU LD versions before 2.12.1 have buggy support for STV_HIDDEN.
22047 # This is irritatingly difficult to feature test for; we have to check the
22048 # date string after the version number. If we've got an in-tree
22049 # ld, we don't know its patchlevel version, so we set the baseline at 2.13
22050 # to be safe.
22051 # The gcc_GAS_CHECK_FEATURE call just sets a cache variable.
22052 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .hidden" >&5
22053 $as_echo_n "checking assembler for .hidden... " >&6; }
22054 if test "${gcc_cv_as_hidden+set}" = set; then :
22055 $as_echo_n "(cached) " >&6
22056 else
22057 gcc_cv_as_hidden=no
22058 if test $in_tree_gas = yes; then
22059 if test $in_tree_gas_is_elf = yes \
22060 && test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 13 \) \* 1000 + 0`
22061 then gcc_cv_as_hidden=yes
22063 elif test x$gcc_cv_as != x; then
22064 $as_echo ' .hidden foobar
22065 foobar:' > conftest.s
22066 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
22067 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
22068 (eval $ac_try) 2>&5
22069 ac_status=$?
22070 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
22071 test $ac_status = 0; }; }
22072 then
22074 # Solaris 9/x86 as incorrectly emits an alias for a hidden symbol with
22075 # STV_HIDDEN, so disable .hidden support if so.
22076 case "${target}" in
22077 i?86-*-solaris2* | x86_64-*-solaris2.1[0-9]*)
22078 if test x$gcc_cv_as != x && test x$gcc_cv_objdump != x; then
22079 cat > conftest.s <<EOF
22080 .globl hidden
22081 .hidden hidden
22082 hidden:
22083 .globl default
22084 .set default,hidden
22086 if $gcc_cv_as -o conftest.o conftest.s > /dev/null 2>&1 \
22087 && $gcc_cv_objdump -t conftest.o 2>/dev/null | \
22088 grep '\.hidden default' > /dev/null; then
22089 gcc_cv_as_hidden=no
22090 else
22091 gcc_cv_as_hidden=yes
22093 else
22094 # Assume bug is present if objdump is missing.
22095 gcc_cv_as_hidden=no
22099 gcc_cv_as_hidden=yes
22101 esac
22102 else
22103 echo "configure: failed program was" >&5
22104 cat conftest.s >&5
22106 rm -f conftest.o conftest.s
22109 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_hidden" >&5
22110 $as_echo "$gcc_cv_as_hidden" >&6; }
22112 case "${target}" in
22113 *-*-darwin*)
22114 # Darwin as has some visibility support, though with a different syntax.
22115 gcc_cv_as_hidden=yes
22117 esac
22119 # gnu_indirect_function type is an extension proposed at
22120 # http://groups.google/com/group/generic-abi/files. It allows dynamic runtime
22121 # selection of function implementation
22122 # Check whether --enable-gnu-indirect-function was given.
22123 if test "${enable_gnu_indirect_function+set}" = set; then :
22124 enableval=$enable_gnu_indirect_function; case $enable_gnu_indirect_function in
22125 yes | no) ;;
22126 *) as_fn_error "'$enable_gnu_indirect_function' is an invalid value for --enable-gnu-indirect-function.
22127 Valid choices are 'yes' and 'no'." "$LINENO" 5 ;;
22128 esac
22129 else
22130 enable_gnu_indirect_function="$default_gnu_indirect_function"
22134 gif=`if test x$enable_gnu_indirect_function = xyes; then echo 1; else echo 0; fi`
22136 cat >>confdefs.h <<_ACEOF
22137 #define HAVE_GNU_INDIRECT_FUNCTION $gif
22138 _ACEOF
22142 if test $in_tree_ld != yes ; then
22143 ld_ver=`$gcc_cv_ld --version 2>/dev/null | sed 1q`
22144 if echo "$ld_ver" | grep GNU > /dev/null; then
22145 if test x"$ld_is_gold" = xyes; then
22146 # GNU gold --version looks like this:
22148 # GNU gold (GNU Binutils 2.21.51.20110225) 1.11
22150 # We extract the binutils version which is more familiar and specific
22151 # than the gold version.
22152 ld_vers=`echo $ld_ver | sed -n \
22153 -e 's,^[^)]*[ ]\([0-9][0-9]*\.[0-9][0-9]*[^)]*\)) .*$,\1,p'`
22154 else
22155 # GNU ld --version looks like this:
22157 # GNU ld (GNU Binutils) 2.21.51.20110225
22158 ld_vers=`echo $ld_ver | sed -n \
22159 -e 's,^.*[ ]\([0-9][0-9]*\.[0-9][0-9]*.*\)$,\1,p'`
22161 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'`
22162 ld_vers_major=`expr "$ld_vers" : '\([0-9]*\)'`
22163 ld_vers_minor=`expr "$ld_vers" : '[0-9]*\.\([0-9]*\)'`
22164 ld_vers_patch=`expr "$ld_vers" : '[0-9]*\.[0-9]*\.\([0-9]*\)'`
22165 else
22166 case "${target}" in
22167 *-*-solaris2*)
22168 # See acinclude.m4 (gcc_SUN_LD_VERSION) for the version number
22169 # format.
22171 # Don't reuse gcc_gv_sun_ld_vers_* in case a linker other than
22172 # /usr/ccs/bin/ld has been configured.
22173 ld_ver=`$gcc_cv_ld -V 2>&1`
22174 if echo "$ld_ver" | grep 'Solaris Link Editors' > /dev/null; then
22175 ld_vers=`echo $ld_ver | sed -n \
22176 -e 's,^.*: 5\.[0-9][0-9]*-\([0-9]\.[0-9][0-9]*\).*$,\1,p'`
22177 ld_vers_major=`expr "$ld_vers" : '\([0-9]*\)'`
22178 ld_vers_minor=`expr "$ld_vers" : '[0-9]*\.\([0-9]*\)'`
22181 esac
22185 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker for .hidden support" >&5
22186 $as_echo_n "checking linker for .hidden support... " >&6; }
22187 if test "${gcc_cv_ld_hidden+set}" = set; then :
22188 $as_echo_n "(cached) " >&6
22189 else
22190 if test $in_tree_ld = yes ; then
22191 gcc_cv_ld_hidden=no
22192 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 \
22193 && test $in_tree_ld_is_elf = yes; then
22194 gcc_cv_ld_hidden=yes
22196 else
22197 gcc_cv_ld_hidden=yes
22198 if test x"$ld_is_gold" = xyes; then
22200 elif echo "$ld_ver" | grep GNU > /dev/null; then
22201 case "${target}" in
22202 mmix-knuth-mmixware)
22203 # The linker emits by default mmo, not ELF, so "no" is appropriate.
22204 gcc_cv_ld_hidden=no
22206 esac
22207 if test 0"$ld_date" -lt 20020404; then
22208 if test -n "$ld_date"; then
22209 # If there was date string, but was earlier than 2002-04-04, fail
22210 gcc_cv_ld_hidden=no
22211 elif test -z "$ld_vers"; then
22212 # If there was no date string nor ld version number, something is wrong
22213 gcc_cv_ld_hidden=no
22214 else
22215 test -z "$ld_vers_patch" && ld_vers_patch=0
22216 if test "$ld_vers_major" -lt 2; then
22217 gcc_cv_ld_hidden=no
22218 elif test "$ld_vers_major" -eq 2 -a "$ld_vers_minor" -lt 12; then
22219 gcc_cv_ld_hidden="no"
22220 elif test "$ld_vers_major" -eq 2 -a "$ld_vers_minor" -eq 12 -a "$ld_vers_patch" -eq 0; then
22221 gcc_cv_ld_hidden=no
22225 else
22226 case "${target}" in
22227 *-*-darwin*)
22228 # Darwin ld has some visibility support.
22229 gcc_cv_ld_hidden=yes
22231 hppa64*-*-hpux* | ia64*-*-hpux*)
22232 gcc_cv_ld_hidden=yes
22234 *-*-solaris2.9* | *-*-solaris2.1[0-9]*)
22235 # Support for .hidden in Sun ld appeared in Solaris 9 FCS, but
22236 # .symbolic was only added in Solaris 9 12/02.
22237 gcc_cv_ld_hidden=yes
22240 gcc_cv_ld_hidden=no
22242 esac
22246 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_hidden" >&5
22247 $as_echo "$gcc_cv_ld_hidden" >&6; }
22248 libgcc_visibility=no
22251 if test $gcc_cv_as_hidden = yes && test $gcc_cv_ld_hidden = yes; then
22252 libgcc_visibility=yes
22254 $as_echo "#define HAVE_GAS_HIDDEN 1" >>confdefs.h
22258 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker read-only and read-write section mixing" >&5
22259 $as_echo_n "checking linker read-only and read-write section mixing... " >&6; }
22260 gcc_cv_ld_ro_rw_mix=unknown
22261 if test $in_tree_ld = yes ; then
22262 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 \
22263 && test $in_tree_ld_is_elf = yes; then
22264 gcc_cv_ld_ro_rw_mix=read-write
22266 elif test x$gcc_cv_as != x -a x$gcc_cv_ld != x -a x$gcc_cv_objdump != x ; then
22267 echo '.section myfoosect, "a"' > conftest1.s
22268 echo '.section myfoosect, "aw"' > conftest2.s
22269 echo '.byte 1' >> conftest2.s
22270 echo '.section myfoosect, "a"' > conftest3.s
22271 echo '.byte 0' >> conftest3.s
22272 if $gcc_cv_as -o conftest1.o conftest1.s > /dev/null 2>&1 \
22273 && $gcc_cv_as -o conftest2.o conftest2.s > /dev/null 2>&1 \
22274 && $gcc_cv_as -o conftest3.o conftest3.s > /dev/null 2>&1 \
22275 && $gcc_cv_ld -shared -o conftest1.so conftest1.o \
22276 conftest2.o conftest3.o > /dev/null 2>&1; then
22277 gcc_cv_ld_ro_rw_mix=`$gcc_cv_objdump -h conftest1.so \
22278 | sed -e '/myfoosect/!d' -e N`
22279 if echo "$gcc_cv_ld_ro_rw_mix" | grep CONTENTS > /dev/null; then
22280 if echo "$gcc_cv_ld_ro_rw_mix" | grep READONLY > /dev/null; then
22281 gcc_cv_ld_ro_rw_mix=read-only
22282 else
22283 gcc_cv_ld_ro_rw_mix=read-write
22287 rm -f conftest.* conftest[123].*
22289 if test x$gcc_cv_ld_ro_rw_mix = xread-write; then
22291 $as_echo "#define HAVE_LD_RO_RW_SECTION_MIXING 1" >>confdefs.h
22294 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_ro_rw_mix" >&5
22295 $as_echo "$gcc_cv_ld_ro_rw_mix" >&6; }
22297 if test "x${build}" = "x${target}" && test "x${build}" = "x${host}"; then
22298 case "${target}" in
22299 *-*-solaris2*)
22301 # Solaris 2 ld -V output looks like this for a regular version:
22303 # ld: Software Generation Utilities - Solaris Link Editors: 5.11-1.1699
22305 # but test versions add stuff at the end:
22307 # ld: Software Generation Utilities - Solaris Link Editors: 5.11-1.1701:onnv-ab196087-6931056-03/25/10
22309 gcc_cv_sun_ld_ver=`/usr/ccs/bin/ld -V 2>&1`
22310 if echo "$gcc_cv_sun_ld_ver" | grep 'Solaris Link Editors' > /dev/null; then
22311 gcc_cv_sun_ld_vers=`echo $gcc_cv_sun_ld_ver | sed -n \
22312 -e 's,^.*: 5\.[0-9][0-9]*-\([0-9]\.[0-9][0-9]*\).*$,\1,p'`
22313 gcc_cv_sun_ld_vers_major=`expr "$gcc_cv_sun_ld_vers" : '\([0-9]*\)'`
22314 gcc_cv_sun_ld_vers_minor=`expr "$gcc_cv_sun_ld_vers" : '[0-9]*\.\([0-9]*\)'`
22317 esac
22320 # Check whether --enable-initfini-array was given.
22321 if test "${enable_initfini_array+set}" = set; then :
22322 enableval=$enable_initfini_array;
22323 else
22325 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for .preinit_array/.init_array/.fini_array support" >&5
22326 $as_echo_n "checking for .preinit_array/.init_array/.fini_array support... " >&6; }
22327 if test "${gcc_cv_initfini_array+set}" = set; then :
22328 $as_echo_n "(cached) " >&6
22329 else
22330 if test "x${build}" = "x${target}" && test "x${build}" = "x${host}"; then
22331 case "${target}" in
22332 ia64-*)
22333 if test "$cross_compiling" = yes; then :
22334 gcc_cv_initfini_array=no
22335 else
22336 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22337 /* end confdefs.h. */
22339 #ifndef __ELF__
22340 #error Not an ELF OS
22341 #endif
22342 /* We turn on .preinit_array/.init_array/.fini_array support for ia64
22343 if it can be used. */
22344 static int x = -1;
22345 int main (void) { return x; }
22346 int foo (void) { x = 0; }
22347 int (*fp) (void) __attribute__ ((section (".init_array"))) = foo;
22349 _ACEOF
22350 if ac_fn_c_try_run "$LINENO"; then :
22351 gcc_cv_initfini_array=yes
22352 else
22353 gcc_cv_initfini_array=no
22355 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
22356 conftest.$ac_objext conftest.beam conftest.$ac_ext
22360 gcc_cv_initfini_array=no
22361 if test $in_tree_ld = yes ; then
22362 if test "$gcc_cv_gld_major_version" -eq 2 \
22363 -a "$gcc_cv_gld_minor_version" -ge 22 \
22364 -o "$gcc_cv_gld_major_version" -gt 2 \
22365 && test $in_tree_ld_is_elf = yes; then
22366 gcc_cv_initfini_array=yes
22368 elif test x$gcc_cv_as != x -a x$gcc_cv_ld != x -a x$gcc_cv_objdump != x ; then
22369 cat > conftest.s <<\EOF
22370 .section .dtors,"a",%progbits
22371 .balign 4
22372 .byte 'A', 'A', 'A', 'A'
22373 .section .ctors,"a",%progbits
22374 .balign 4
22375 .byte 'B', 'B', 'B', 'B'
22376 .section .fini_array.65530,"a",%progbits
22377 .balign 4
22378 .byte 'C', 'C', 'C', 'C'
22379 .section .init_array.65530,"a",%progbits
22380 .balign 4
22381 .byte 'D', 'D', 'D', 'D'
22382 .section .dtors.64528,"a",%progbits
22383 .balign 4
22384 .byte 'E', 'E', 'E', 'E'
22385 .section .ctors.64528,"a",%progbits
22386 .balign 4
22387 .byte 'F', 'F', 'F', 'F'
22388 .section .fini_array.01005,"a",%progbits
22389 .balign 4
22390 .byte 'G', 'G', 'G', 'G'
22391 .section .init_array.01005,"a",%progbits
22392 .balign 4
22393 .byte 'H', 'H', 'H', 'H'
22394 .text
22395 .globl _start
22396 _start:
22398 if $gcc_cv_as -o conftest.o conftest.s > /dev/null 2>&1 \
22399 && $gcc_cv_ld -o conftest conftest.o > /dev/null 2>&1 \
22400 && $gcc_cv_objdump -s -j .init_array conftest \
22401 | grep HHHHFFFFDDDDBBBB > /dev/null 2>&1 \
22402 && $gcc_cv_objdump -s -j .fini_array conftest \
22403 | grep GGGGEEEECCCCAAAA > /dev/null 2>&1; then
22404 gcc_cv_initfini_array=yes
22406 rm -f conftest conftest.*
22408 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22409 /* end confdefs.h. */
22411 #ifndef __ELF__
22412 # error Not an ELF OS
22413 #endif
22414 #include <stdlib.h>
22415 #if defined __GLIBC_PREREQ
22416 # if __GLIBC_PREREQ (2, 4)
22417 # else
22418 # error GLIBC 2.4 required
22419 # endif
22420 #else
22421 # if defined __sun__ && defined __svr4__
22422 /* Solaris ld.so.1 supports .init_array/.fini_array since Solaris 8. */
22423 # else
22424 # error The C library not known to support .init_array/.fini_array
22425 # endif
22426 #endif
22428 _ACEOF
22429 if ac_fn_c_try_cpp "$LINENO"; then :
22431 else
22432 gcc_cv_initfini_array=no
22434 rm -f conftest.err conftest.$ac_ext;;
22435 esac
22436 else
22437 { $as_echo "$as_me:${as_lineno-$LINENO}: checking cross compile... guessing" >&5
22438 $as_echo_n "checking cross compile... guessing... " >&6; }
22439 gcc_cv_initfini_array=no
22442 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_initfini_array" >&5
22443 $as_echo "$gcc_cv_initfini_array" >&6; }
22444 enable_initfini_array=$gcc_cv_initfini_array
22448 if test $enable_initfini_array = yes; then
22450 $as_echo "#define HAVE_INITFINI_ARRAY_SUPPORT 1" >>confdefs.h
22454 # Check if we have .[us]leb128, and support symbol arithmetic with it.
22455 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .sleb128 and .uleb128" >&5
22456 $as_echo_n "checking assembler for .sleb128 and .uleb128... " >&6; }
22457 if test "${gcc_cv_as_leb128+set}" = set; then :
22458 $as_echo_n "(cached) " >&6
22459 else
22460 gcc_cv_as_leb128=no
22461 if test $in_tree_gas = yes; then
22462 if test $in_tree_gas_is_elf = yes \
22463 && test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 11 \) \* 1000 + 0`
22464 then gcc_cv_as_leb128=yes
22466 elif test x$gcc_cv_as != x; then
22467 $as_echo ' .data
22468 .uleb128 L2 - L1
22470 .uleb128 1280
22471 .sleb128 -1010
22472 L2:' > conftest.s
22473 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
22474 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
22475 (eval $ac_try) 2>&5
22476 ac_status=$?
22477 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
22478 test $ac_status = 0; }; }
22479 then
22480 # GAS versions before 2.11 do not support uleb128,
22481 # despite appearing to.
22482 # ??? There exists an elf-specific test that will crash
22483 # the assembler. Perhaps it's better to figure out whether
22484 # arbitrary sections are supported and try the test.
22485 as_ver=`$gcc_cv_as --version 2>/dev/null | sed 1q`
22486 if echo "$as_ver" | grep GNU > /dev/null; then
22487 as_vers=`echo $as_ver | sed -n \
22488 -e 's,^.*[ ]\([0-9][0-9]*\.[0-9][0-9]*.*\)$,\1,p'`
22489 as_major=`expr "$as_vers" : '\([0-9]*\)'`
22490 as_minor=`expr "$as_vers" : '[0-9]*\.\([0-9]*\)'`
22491 if test $as_major -eq 2 && test $as_minor -lt 11
22492 then :
22493 else gcc_cv_as_leb128=yes
22496 else
22497 echo "configure: failed program was" >&5
22498 cat conftest.s >&5
22500 rm -f conftest.o conftest.s
22503 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_leb128" >&5
22504 $as_echo "$gcc_cv_as_leb128" >&6; }
22505 if test $gcc_cv_as_leb128 = yes; then
22507 $as_echo "#define HAVE_AS_LEB128 1" >>confdefs.h
22511 # Check if we have assembler support for unwind directives.
22512 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for cfi directives" >&5
22513 $as_echo_n "checking assembler for cfi directives... " >&6; }
22514 if test "${gcc_cv_as_cfi_directive+set}" = set; then :
22515 $as_echo_n "(cached) " >&6
22516 else
22517 gcc_cv_as_cfi_directive=no
22518 if test x$gcc_cv_as != x; then
22519 $as_echo ' .text
22520 .cfi_startproc
22521 .cfi_offset 0, 0
22522 .cfi_same_value 1
22523 .cfi_def_cfa 1, 2
22524 .cfi_escape 1, 2, 3, 4, 5
22525 .cfi_endproc' > conftest.s
22526 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
22527 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
22528 (eval $ac_try) 2>&5
22529 ac_status=$?
22530 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
22531 test $ac_status = 0; }; }
22532 then
22533 case "$target" in
22534 *-*-solaris*)
22535 # If the linker used on Solaris (like Sun ld) isn't capable of merging
22536 # read-only and read-write sections, we need to make sure that the
22537 # assembler used emits read-write .eh_frame sections.
22538 if test "x$gcc_cv_ld_ro_rw_mix" != xread-write; then
22539 if test "x$gcc_cv_objdump" != x; then
22540 if $gcc_cv_objdump -h conftest.o 2>/dev/null | \
22541 sed -e /.eh_frame/!d -e N | grep READONLY > /dev/null; then
22542 gcc_cv_as_cfi_directive=no
22543 else
22544 case "$target" in
22545 i?86-*-solaris2.1[0-9]* | x86_64-*-solaris2.1[0-9]*)
22546 # On Solaris/x86, make sure that GCC and gas agree on using
22547 # read-only .eh_frame sections for 64-bit.
22548 if $gcc_cv_as --64 -o conftest.o conftest.s > /dev/null 2>&1 && \
22549 $gcc_cv_objdump -h conftest.o 2>/dev/null | \
22550 sed -e /.eh_frame/!d -e N | \
22551 grep READONLY > /dev/null; then
22552 gcc_cv_as_cfi_directive=yes
22553 else
22554 gcc_cv_as_cfi_directive=no
22558 gcc_cv_as_cfi_directive=yes
22560 esac
22562 else
22563 # no objdump, err on the side of caution
22564 gcc_cv_as_cfi_directive=no
22566 else
22567 gcc_cv_as_cfi_directive=yes
22570 *-*-*)
22571 gcc_cv_as_cfi_directive=yes
22573 esac
22574 else
22575 echo "configure: failed program was" >&5
22576 cat conftest.s >&5
22578 rm -f conftest.o conftest.s
22581 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_cfi_directive" >&5
22582 $as_echo "$gcc_cv_as_cfi_directive" >&6; }
22584 if test $gcc_cv_as_cfi_directive = yes && test x$gcc_cv_objdump != x; then
22585 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for working cfi advance" >&5
22586 $as_echo_n "checking assembler for working cfi advance... " >&6; }
22587 if test "${gcc_cv_as_cfi_advance_working+set}" = set; then :
22588 $as_echo_n "(cached) " >&6
22589 else
22590 gcc_cv_as_cfi_advance_working=no
22591 if test x$gcc_cv_as != x; then
22592 $as_echo ' .text
22593 .cfi_startproc
22594 .cfi_adjust_cfa_offset 64
22595 .skip 75040, 0
22596 .cfi_adjust_cfa_offset 128
22597 .cfi_endproc' > conftest.s
22598 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
22599 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
22600 (eval $ac_try) 2>&5
22601 ac_status=$?
22602 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
22603 test $ac_status = 0; }; }
22604 then
22606 if $gcc_cv_objdump -Wf conftest.o 2>/dev/null \
22607 | grep 'DW_CFA_advance_loc[24]:[ ][ ]*75040[ ]' >/dev/null; then
22608 gcc_cv_as_cfi_advance_working=yes
22611 else
22612 echo "configure: failed program was" >&5
22613 cat conftest.s >&5
22615 rm -f conftest.o conftest.s
22618 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_cfi_advance_working" >&5
22619 $as_echo "$gcc_cv_as_cfi_advance_working" >&6; }
22621 else
22622 # no objdump, err on the side of caution
22623 gcc_cv_as_cfi_advance_working=no
22627 cat >>confdefs.h <<_ACEOF
22628 #define HAVE_GAS_CFI_DIRECTIVE `if test $gcc_cv_as_cfi_directive = yes \
22629 && test $gcc_cv_as_cfi_advance_working = yes; then echo 1; else echo 0; fi`
22630 _ACEOF
22634 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for cfi personality directive" >&5
22635 $as_echo_n "checking assembler for cfi personality directive... " >&6; }
22636 if test "${gcc_cv_as_cfi_personality_directive+set}" = set; then :
22637 $as_echo_n "(cached) " >&6
22638 else
22639 gcc_cv_as_cfi_personality_directive=no
22640 if test x$gcc_cv_as != x; then
22641 $as_echo ' .text
22642 .cfi_startproc
22643 .cfi_personality 0, symbol
22644 .cfi_endproc' > conftest.s
22645 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
22646 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
22647 (eval $ac_try) 2>&5
22648 ac_status=$?
22649 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
22650 test $ac_status = 0; }; }
22651 then
22652 gcc_cv_as_cfi_personality_directive=yes
22653 else
22654 echo "configure: failed program was" >&5
22655 cat conftest.s >&5
22657 rm -f conftest.o conftest.s
22660 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_cfi_personality_directive" >&5
22661 $as_echo "$gcc_cv_as_cfi_personality_directive" >&6; }
22664 cat >>confdefs.h <<_ACEOF
22665 #define HAVE_GAS_CFI_PERSONALITY_DIRECTIVE `if test $gcc_cv_as_cfi_personality_directive = yes;
22666 then echo 1; else echo 0; fi`
22667 _ACEOF
22670 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for cfi sections directive" >&5
22671 $as_echo_n "checking assembler for cfi sections directive... " >&6; }
22672 if test "${gcc_cv_as_cfi_sections_directive+set}" = set; then :
22673 $as_echo_n "(cached) " >&6
22674 else
22675 gcc_cv_as_cfi_sections_directive=no
22676 if test x$gcc_cv_as != x; then
22677 $as_echo ' .text
22678 .cfi_sections .debug_frame, .eh_frame
22679 .cfi_startproc
22680 .cfi_endproc' > conftest.s
22681 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
22682 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
22683 (eval $ac_try) 2>&5
22684 ac_status=$?
22685 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
22686 test $ac_status = 0; }; }
22687 then
22688 case $target_os in
22689 win32 | pe | cygwin* | mingw32* | uwin*)
22690 # Need to check that we generated the correct relocation for the
22691 # .debug_frame section. This was fixed for binutils 2.21.
22692 gcc_cv_as_cfi_sections_directive=no
22693 if test "x$gcc_cv_objdump" != x; then
22694 if $gcc_cv_objdump -j .debug_frame -r conftest.o 2>/dev/null | \
22695 grep secrel > /dev/null; then
22696 gcc_cv_as_cfi_sections_directive=yes
22701 gcc_cv_as_cfi_sections_directive=yes
22703 esac
22704 else
22705 echo "configure: failed program was" >&5
22706 cat conftest.s >&5
22708 rm -f conftest.o conftest.s
22711 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_cfi_sections_directive" >&5
22712 $as_echo "$gcc_cv_as_cfi_sections_directive" >&6; }
22716 cat >>confdefs.h <<_ACEOF
22717 #define HAVE_GAS_CFI_SECTIONS_DIRECTIVE `if test $gcc_cv_as_cfi_sections_directive = yes;
22718 then echo 1; else echo 0; fi`
22719 _ACEOF
22722 # GAS versions up to and including 2.11.0 may mis-optimize
22723 # .eh_frame data.
22724 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for eh_frame optimization" >&5
22725 $as_echo_n "checking assembler for eh_frame optimization... " >&6; }
22726 if test "${gcc_cv_as_eh_frame+set}" = set; then :
22727 $as_echo_n "(cached) " >&6
22728 else
22729 gcc_cv_as_eh_frame=no
22730 if test $in_tree_gas = yes; then
22731 if test $in_tree_gas_is_elf = yes \
22732 && test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 12 \) \* 1000 + 0`
22733 then gcc_cv_as_eh_frame=yes
22735 elif test x$gcc_cv_as != x; then
22736 $as_echo ' .text
22737 .LFB1:
22738 .4byte 0
22739 .L1:
22740 .4byte 0
22741 .LFE1:
22742 .section .eh_frame,"aw",@progbits
22743 __FRAME_BEGIN__:
22744 .4byte .LECIE1-.LSCIE1
22745 .LSCIE1:
22746 .4byte 0x0
22747 .byte 0x1
22748 .ascii "z\0"
22749 .byte 0x1
22750 .byte 0x78
22751 .byte 0x1a
22752 .byte 0x0
22753 .byte 0x4
22754 .4byte 1
22755 .p2align 1
22756 .LECIE1:
22757 .LSFDE1:
22758 .4byte .LEFDE1-.LASFDE1
22759 .LASFDE1:
22760 .4byte .LASFDE1-__FRAME_BEGIN__
22761 .4byte .LFB1
22762 .4byte .LFE1-.LFB1
22763 .byte 0x4
22764 .4byte .LFE1-.LFB1
22765 .byte 0x4
22766 .4byte .L1-.LFB1
22767 .LEFDE1:' > conftest.s
22768 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
22769 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
22770 (eval $ac_try) 2>&5
22771 ac_status=$?
22772 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
22773 test $ac_status = 0; }; }
22774 then
22775 cat > conftest.lit <<EOF
22776 0000 10000000 00000000 017a0001 781a0004 .........z..x...
22777 0010 01000000 12000000 18000000 00000000 ................
22778 0020 08000000 04080000 0044 .........D
22780 cat > conftest.big <<EOF
22781 0000 00000010 00000000 017a0001 781a0004 .........z..x...
22782 0010 00000001 00000012 00000018 00000000 ................
22783 0020 00000008 04000000 0844 .........D
22785 # If the assembler didn't choke, and we can objdump,
22786 # and we got the correct data, then succeed.
22787 # The text in the here-document typically retains its unix-style line
22788 # endings, while the output of objdump will use host line endings.
22789 # Therefore, use diff -b for the comparisons.
22790 if test x$gcc_cv_objdump != x \
22791 && $gcc_cv_objdump -s -j .eh_frame conftest.o 2>/dev/null \
22792 | tail -3 > conftest.got \
22793 && { diff -b conftest.lit conftest.got > /dev/null 2>&1 \
22794 || diff -b conftest.big conftest.got > /dev/null 2>&1; }
22795 then
22796 gcc_cv_as_eh_frame=yes
22797 elif { ac_try='$gcc_cv_as -o conftest.o --traditional-format /dev/null'
22798 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
22799 (eval $ac_try) 2>&5
22800 ac_status=$?
22801 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
22802 test $ac_status = 0; }; }; then
22803 gcc_cv_as_eh_frame=buggy
22804 else
22805 # Uh oh, what do we do now?
22806 gcc_cv_as_eh_frame=no
22808 else
22809 echo "configure: failed program was" >&5
22810 cat conftest.s >&5
22812 rm -f conftest.o conftest.s
22815 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_eh_frame" >&5
22816 $as_echo "$gcc_cv_as_eh_frame" >&6; }
22819 if test $gcc_cv_as_eh_frame = buggy; then
22821 $as_echo "#define USE_AS_TRADITIONAL_FORMAT 1" >>confdefs.h
22825 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for section merging support" >&5
22826 $as_echo_n "checking assembler for section merging support... " >&6; }
22827 if test "${gcc_cv_as_shf_merge+set}" = set; then :
22828 $as_echo_n "(cached) " >&6
22829 else
22830 gcc_cv_as_shf_merge=no
22831 if test $in_tree_gas = yes; then
22832 if test $in_tree_gas_is_elf = yes \
22833 && test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 12 \) \* 1000 + 0`
22834 then gcc_cv_as_shf_merge=yes
22836 elif test x$gcc_cv_as != x; then
22837 $as_echo '.section .rodata.str, "aMS", @progbits, 1' > conftest.s
22838 if { ac_try='$gcc_cv_as $gcc_cv_as_flags --fatal-warnings -o conftest.o conftest.s >&5'
22839 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
22840 (eval $ac_try) 2>&5
22841 ac_status=$?
22842 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
22843 test $ac_status = 0; }; }
22844 then
22845 gcc_cv_as_shf_merge=yes
22846 else
22847 echo "configure: failed program was" >&5
22848 cat conftest.s >&5
22850 rm -f conftest.o conftest.s
22853 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_shf_merge" >&5
22854 $as_echo "$gcc_cv_as_shf_merge" >&6; }
22856 if test $gcc_cv_as_shf_merge = no; then
22857 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for section merging support" >&5
22858 $as_echo_n "checking assembler for section merging support... " >&6; }
22859 if test "${gcc_cv_as_shf_merge+set}" = set; then :
22860 $as_echo_n "(cached) " >&6
22861 else
22862 gcc_cv_as_shf_merge=no
22863 if test $in_tree_gas = yes; then
22864 if test $in_tree_gas_is_elf = yes \
22865 && test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 12 \) \* 1000 + 0`
22866 then gcc_cv_as_shf_merge=yes
22868 elif test x$gcc_cv_as != x; then
22869 $as_echo '.section .rodata.str, "aMS", %progbits, 1' > conftest.s
22870 if { ac_try='$gcc_cv_as $gcc_cv_as_flags --fatal-warnings -o conftest.o conftest.s >&5'
22871 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
22872 (eval $ac_try) 2>&5
22873 ac_status=$?
22874 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
22875 test $ac_status = 0; }; }
22876 then
22877 gcc_cv_as_shf_merge=yes
22878 else
22879 echo "configure: failed program was" >&5
22880 cat conftest.s >&5
22882 rm -f conftest.o conftest.s
22885 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_shf_merge" >&5
22886 $as_echo "$gcc_cv_as_shf_merge" >&6; }
22890 cat >>confdefs.h <<_ACEOF
22891 #define HAVE_GAS_SHF_MERGE `if test $gcc_cv_as_shf_merge = yes; then echo 1; else echo 0; fi`
22892 _ACEOF
22895 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for COMDAT group support (GNU as)" >&5
22896 $as_echo_n "checking assembler for COMDAT group support (GNU as)... " >&6; }
22897 if test "${gcc_cv_as_comdat_group+set}" = set; then :
22898 $as_echo_n "(cached) " >&6
22899 else
22900 gcc_cv_as_comdat_group=no
22901 if test $in_tree_gas = yes; then
22902 if test $in_tree_gas_is_elf = yes \
22903 && test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 16 \) \* 1000 + 0`
22904 then gcc_cv_as_comdat_group=yes
22906 elif test x$gcc_cv_as != x; then
22907 $as_echo '.section .text,"axG",@progbits,.foo,comdat' > conftest.s
22908 if { ac_try='$gcc_cv_as $gcc_cv_as_flags --fatal-warnings -o conftest.o conftest.s >&5'
22909 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
22910 (eval $ac_try) 2>&5
22911 ac_status=$?
22912 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
22913 test $ac_status = 0; }; }
22914 then
22915 gcc_cv_as_comdat_group=yes
22916 else
22917 echo "configure: failed program was" >&5
22918 cat conftest.s >&5
22920 rm -f conftest.o conftest.s
22923 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_comdat_group" >&5
22924 $as_echo "$gcc_cv_as_comdat_group" >&6; }
22926 if test $gcc_cv_as_comdat_group = yes; then
22927 gcc_cv_as_comdat_group_percent=no
22928 gcc_cv_as_comdat_group_group=no
22929 else
22930 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for COMDAT group support (GNU as, %type)" >&5
22931 $as_echo_n "checking assembler for COMDAT group support (GNU as, %type)... " >&6; }
22932 if test "${gcc_cv_as_comdat_group_percent+set}" = set; then :
22933 $as_echo_n "(cached) " >&6
22934 else
22935 gcc_cv_as_comdat_group_percent=no
22936 if test $in_tree_gas = yes; then
22937 if test $in_tree_gas_is_elf = yes \
22938 && test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 16 \) \* 1000 + 0`
22939 then gcc_cv_as_comdat_group_percent=yes
22941 elif test x$gcc_cv_as != x; then
22942 $as_echo '.section .text,"axG",%progbits,.foo,comdat' > conftest.s
22943 if { ac_try='$gcc_cv_as $gcc_cv_as_flags --fatal-warnings -o conftest.o conftest.s >&5'
22944 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
22945 (eval $ac_try) 2>&5
22946 ac_status=$?
22947 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
22948 test $ac_status = 0; }; }
22949 then
22950 gcc_cv_as_comdat_group_percent=yes
22951 else
22952 echo "configure: failed program was" >&5
22953 cat conftest.s >&5
22955 rm -f conftest.o conftest.s
22958 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_comdat_group_percent" >&5
22959 $as_echo "$gcc_cv_as_comdat_group_percent" >&6; }
22961 if test $gcc_cv_as_comdat_group_percent = yes; then
22962 gcc_cv_as_comdat_group_group=no
22963 else
22964 if test -z "${gcc_cv_as_comdat_group_group+set}"; then
22965 gcc_cv_as_comdat_group_group=no
22967 case "${target}" in
22968 # Sun as uses a completely different syntax.
22969 *-*-solaris2*)
22970 case "${target}" in
22971 sparc*-*-solaris2*)
22972 conftest_s='
22973 .group foo,".text%foo",#comdat
22974 .section ".text%foo", #alloc,#execinstr,#progbits
22975 .globl foo
22976 foo:
22979 i?86-*-solaris2* | x86_64-*-solaris2.1[0-9]*)
22980 conftest_s='
22981 .group foo,.text%foo,#comdat
22982 .section .text%foo, "ax", @progbits
22983 .globl foo
22984 foo:
22987 esac
22988 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for COMDAT group support (Sun as, .group)" >&5
22989 $as_echo_n "checking assembler for COMDAT group support (Sun as, .group)... " >&6; }
22990 if test "${gcc_cv_as_comdat_group_group+set}" = set; then :
22991 $as_echo_n "(cached) " >&6
22992 else
22993 gcc_cv_as_comdat_group_group=no
22994 if test x$gcc_cv_as != x; then
22995 $as_echo "$conftest_s" > conftest.s
22996 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
22997 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
22998 (eval $ac_try) 2>&5
22999 ac_status=$?
23000 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
23001 test $ac_status = 0; }; }
23002 then
23003 gcc_cv_as_comdat_group_group=yes
23004 else
23005 echo "configure: failed program was" >&5
23006 cat conftest.s >&5
23008 rm -f conftest.o conftest.s
23011 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_comdat_group_group" >&5
23012 $as_echo "$gcc_cv_as_comdat_group_group" >&6; }
23015 esac
23018 if test x"$ld_is_gold" = xyes; then
23019 comdat_group=yes
23020 elif test $in_tree_ld = yes ; then
23021 comdat_group=no
23022 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 \
23023 && test $in_tree_ld_is_elf = yes; then
23024 comdat_group=yes
23026 elif echo "$ld_ver" | grep GNU > /dev/null; then
23027 comdat_group=yes
23028 if test 0"$ld_date" -lt 20050308; then
23029 if test -n "$ld_date"; then
23030 # If there was date string, but was earlier than 2005-03-08, fail
23031 comdat_group=no
23032 elif test "$ld_vers_major" -lt 2; then
23033 comdat_group=no
23034 elif test "$ld_vers_major" -eq 2 -a "$ld_vers_minor" -lt 16; then
23035 comdat_group=no
23038 else
23039 case "${target}" in
23040 *-*-solaris2.1[1-9]*)
23041 comdat_group=no
23042 # Sun ld has COMDAT group support since Solaris 9, but it doesn't
23043 # interoperate with GNU as until Solaris 11 build 130, i.e. ld
23044 # version 1.688.
23046 # If using Sun as for COMDAT group as emitted by GCC, one needs at
23047 # least ld version 1.2267.
23048 if test "$ld_vers_major" -gt 1; then
23049 comdat_group=yes
23050 elif test "x$gas_flag" = xyes && test "$ld_vers_minor" -ge 1688; then
23051 comdat_group=yes
23052 elif test "$ld_vers_minor" -ge 2267; then
23053 comdat_group=yes
23057 # Assume linkers other than GNU ld don't support COMDAT group.
23058 comdat_group=no
23060 esac
23062 # Allow overriding the automatic COMDAT group tests above.
23063 # Check whether --enable-comdat was given.
23064 if test "${enable_comdat+set}" = set; then :
23065 enableval=$enable_comdat; comdat_group="$enable_comdat"
23068 if test $comdat_group = no; then
23069 gcc_cv_as_comdat_group=no
23070 gcc_cv_as_comdat_group_percent=no
23071 gcc_cv_as_comdat_group_group=no
23074 cat >>confdefs.h <<_ACEOF
23075 #define HAVE_COMDAT_GROUP `if test $gcc_cv_as_comdat_group = yes \
23076 || test $gcc_cv_as_comdat_group_percent = yes \
23077 || test $gcc_cv_as_comdat_group_group = yes; then echo 1; else echo 0; fi`
23078 _ACEOF
23081 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for line table discriminator support" >&5
23082 $as_echo_n "checking assembler for line table discriminator support... " >&6; }
23083 if test "${gcc_cv_as_discriminator+set}" = set; then :
23084 $as_echo_n "(cached) " >&6
23085 else
23086 gcc_cv_as_discriminator=no
23087 if test $in_tree_gas = yes; then
23088 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 19 \) \* 1000 + 51`
23089 then gcc_cv_as_discriminator=yes
23091 elif test x$gcc_cv_as != x; then
23092 $as_echo ' .text
23093 .file 1 "conf.c"
23094 .loc 1 1 0 discriminator 1' > conftest.s
23095 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
23096 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
23097 (eval $ac_try) 2>&5
23098 ac_status=$?
23099 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
23100 test $ac_status = 0; }; }
23101 then
23102 gcc_cv_as_discriminator=yes
23103 else
23104 echo "configure: failed program was" >&5
23105 cat conftest.s >&5
23107 rm -f conftest.o conftest.s
23110 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_discriminator" >&5
23111 $as_echo "$gcc_cv_as_discriminator" >&6; }
23112 if test $gcc_cv_as_discriminator = yes; then
23114 $as_echo "#define HAVE_GAS_DISCRIMINATOR 1" >>confdefs.h
23118 # Thread-local storage - the check is heavily parameterized.
23119 conftest_s=
23120 tls_first_major=
23121 tls_first_minor=
23122 tls_as_opt=
23123 case "$target" in
23124 alpha*-*-*)
23125 conftest_s='
23126 .section ".tdata","awT",@progbits
23127 foo: .long 25
23128 .text
23129 ldq $27,__tls_get_addr($29) !literal!1
23130 lda $16,foo($29) !tlsgd!1
23131 jsr $26,($27),__tls_get_addr !lituse_tlsgd!1
23132 ldq $27,__tls_get_addr($29) !literal!2
23133 lda $16,foo($29) !tlsldm!2
23134 jsr $26,($27),__tls_get_addr !lituse_tlsldm!2
23135 ldq $1,foo($29) !gotdtprel
23136 ldah $2,foo($29) !dtprelhi
23137 lda $3,foo($2) !dtprello
23138 lda $4,foo($29) !dtprel
23139 ldq $1,foo($29) !gottprel
23140 ldah $2,foo($29) !tprelhi
23141 lda $3,foo($2) !tprello
23142 lda $4,foo($29) !tprel'
23143 tls_first_major=2
23144 tls_first_minor=13
23145 tls_as_opt=--fatal-warnings
23147 cris-*-*|crisv32-*-*)
23148 conftest_s='
23149 .section ".tdata","awT",@progbits
23150 x: .long 25
23151 .text
23152 move.d x:IE,$r10
23153 nop'
23154 tls_first_major=2
23155 tls_first_minor=20
23156 tls_as_opt=--fatal-warnings
23158 frv*-*-*)
23159 conftest_s='
23160 .section ".tdata","awT",@progbits
23161 x: .long 25
23162 .text
23163 call #gettlsoff(x)'
23164 tls_first_major=2
23165 tls_first_minor=14
23167 hppa*-*-linux*)
23168 conftest_s='
23169 t1: .reg %r20
23170 t2: .reg %r21
23171 gp: .reg %r19
23172 .section ".tdata","awT",@progbits
23173 foo: .long 25
23174 .text
23175 .align 4
23176 addil LT%foo-$tls_gdidx$,gp
23177 ldo RT%foo-$tls_gdidx$(%r1),%arg0
23178 b __tls_get_addr
23180 addil LT%foo-$tls_ldidx$,gp
23181 b __tls_get_addr
23182 ldo RT%foo-$tls_ldidx$(%r1),%arg0
23183 addil LR%foo-$tls_dtpoff$,%ret0
23184 ldo RR%foo-$tls_dtpoff$(%r1),%t1
23185 mfctl %cr27,%t1
23186 addil LT%foo-$tls_ieoff$,gp
23187 ldw RT%foo-$tls_ieoff$(%r1),%t2
23188 add %t1,%t2,%t3
23189 mfctl %cr27,%t1
23190 addil LR%foo-$tls_leoff$,%t1
23191 ldo RR%foo-$tls_leoff$(%r1),%t2'
23192 tls_first_major=2
23193 tls_first_minor=15
23194 tls_as_opt=--fatal-warnings
23196 arm*-*-*)
23197 conftest_s='
23198 .section ".tdata","awT",%progbits
23199 foo: .long 25
23200 .text
23201 .word foo(gottpoff)
23202 .word foo(tpoff)
23203 .word foo(tlsgd)
23204 .word foo(tlsldm)
23205 .word foo(tlsldo)'
23206 tls_first_major=2
23207 tls_first_minor=17
23209 i[34567]86-*-* | x86_64-*-solaris2.1[0-9]*)
23210 case "$target" in
23211 i[34567]86-*-solaris2.*)
23212 on_solaris=yes
23213 tga_func=___tls_get_addr
23215 x86_64-*-solaris2.1[0-9]*)
23216 on_solaris=yes
23217 tga_func=__tls_get_addr
23220 on_solaris=no
23222 esac
23223 if test x$on_solaris = xyes && test x$gas_flag = xno; then
23224 conftest_s='
23225 .section .tdata,"awt",@progbits'
23226 tls_first_major=0
23227 tls_first_minor=0
23229 $as_echo "#define TLS_SECTION_ASM_FLAG 't'" >>confdefs.h
23231 else
23232 conftest_s='
23233 .section ".tdata","awT",@progbits'
23234 tls_first_major=2
23235 tls_first_minor=14
23236 tls_as_opt="--fatal-warnings"
23238 conftest_s="$conftest_s
23239 foo: .long 25
23240 .text
23241 movl %gs:0, %eax
23242 leal foo@tlsgd(,%ebx,1), %eax
23243 leal foo@tlsldm(%ebx), %eax
23244 leal foo@dtpoff(%eax), %edx
23245 movl foo@gottpoff(%ebx), %eax
23246 subl foo@gottpoff(%ebx), %eax
23247 addl foo@gotntpoff(%ebx), %eax
23248 movl foo@indntpoff, %eax
23249 movl \$foo@tpoff, %eax
23250 subl \$foo@tpoff, %eax
23251 leal foo@ntpoff(%ecx), %eax"
23253 x86_64-*-*)
23254 conftest_s='
23255 .section ".tdata","awT",@progbits
23256 foo: .long 25
23257 .text
23258 movq %fs:0, %rax
23259 leaq foo@TLSGD(%rip), %rdi
23260 leaq foo@TLSLD(%rip), %rdi
23261 leaq foo@DTPOFF(%rax), %rdx
23262 movq foo@GOTTPOFF(%rip), %rax
23263 movq $foo@TPOFF, %rax'
23264 tls_first_major=2
23265 tls_first_minor=14
23266 tls_as_opt=--fatal-warnings
23268 ia64-*-*)
23269 conftest_s='
23270 .section ".tdata","awT",@progbits
23271 foo: data8 25
23272 .text
23273 addl r16 = @ltoff(@dtpmod(foo#)), gp
23274 addl r17 = @ltoff(@dtprel(foo#)), gp
23275 addl r18 = @ltoff(@tprel(foo#)), gp
23276 addl r19 = @dtprel(foo#), gp
23277 adds r21 = @dtprel(foo#), r13
23278 movl r23 = @dtprel(foo#)
23279 addl r20 = @tprel(foo#), gp
23280 adds r22 = @tprel(foo#), r13
23281 movl r24 = @tprel(foo#)'
23282 tls_first_major=2
23283 tls_first_minor=13
23284 tls_as_opt=--fatal-warnings
23286 microblaze*-*-*)
23287 conftest_s='
23288 .section .tdata,"awT",@progbits
23290 .word 2
23291 .text
23292 addik r5,r20,x@TLSGD
23293 addik r5,r20,x@TLSLDM'
23294 tls_first_major=2
23295 tls_first_minor=20
23296 tls_as_opt='--fatal-warnings'
23298 mips*-*-*)
23299 conftest_s='
23300 .section .tdata,"awT",@progbits
23302 .word 2
23303 .text
23304 addiu $4, $28, %tlsgd(x)
23305 addiu $4, $28, %tlsldm(x)
23306 lui $4, %dtprel_hi(x)
23307 addiu $4, $4, %dtprel_lo(x)
23308 lw $4, %gottprel(x)($28)
23309 lui $4, %tprel_hi(x)
23310 addiu $4, $4, %tprel_lo(x)'
23311 tls_first_major=2
23312 tls_first_minor=16
23313 tls_as_opt='-32 --fatal-warnings'
23315 m68k-*-*)
23316 conftest_s='
23317 .section .tdata,"awT",@progbits
23319 .word 2
23320 .text
23321 foo:
23322 move.l x@TLSGD(%a5),%a0
23323 move.l x@TLSLDM(%a5),%a0
23324 move.l x@TLSLDO(%a5),%a0
23325 move.l x@TLSIE(%a5),%a0
23326 move.l x@TLSLE(%a5),%a0'
23327 tls_first_major=2
23328 tls_first_minor=19
23329 tls_as_opt='--fatal-warnings'
23331 aarch64*-*-*)
23332 conftest_s='
23333 .section ".tdata","awT",%progbits
23334 foo: .long 25
23335 .text
23336 adrp x0, :tlsgd:x
23337 add x0, x0, #:tlsgd_lo12:x
23338 bl __tls_get_addr
23339 nop'
23340 tls_first_major=2
23341 tls_first_minor=20
23342 tls_as_opt='--fatal-warnings'
23344 powerpc-ibm-aix*)
23345 conftest_s='
23346 .extern __get_tpointer
23347 .toc
23348 LC..1:
23349 .tc a[TC],a[TL]@le
23350 .csect .text[PR]
23351 .tlstest:
23352 lwz 9,LC..1(2)
23353 bla __get_tpointer
23354 lwzx 3,9,3
23355 .globl a
23356 .csect a[TL],4
23358 .space 4'
23359 tls_first_major=0
23360 tls_first_minor=0
23362 powerpc64*-*-*)
23363 conftest_s='
23364 .section ".tdata","awT",@progbits
23365 .align 3
23366 ld0: .space 8
23367 ld1: .space 8
23368 x1: .space 8
23369 x2: .space 8
23370 x3: .space 8
23371 .text
23372 addi 3,2,ld0@got@tlsgd
23373 bl .__tls_get_addr
23375 addi 3,2,ld1@toc
23376 bl .__tls_get_addr
23378 addi 3,2,x1@got@tlsld
23379 bl .__tls_get_addr
23381 addi 9,3,x1@dtprel
23382 bl .__tls_get_addr
23384 addis 9,3,x2@dtprel@ha
23385 addi 9,9,x2@dtprel@l
23386 bl .__tls_get_addr
23388 ld 9,x3@got@dtprel(2)
23389 add 9,9,3
23390 bl .__tls_get_addr
23391 nop'
23392 tls_first_major=2
23393 tls_first_minor=14
23394 tls_as_opt="-a64 --fatal-warnings"
23396 powerpc*-*-*)
23397 conftest_s='
23398 .section ".tdata","awT",@progbits
23399 .align 2
23400 ld0: .space 4
23401 ld1: .space 4
23402 x1: .space 4
23403 x2: .space 4
23404 x3: .space 4
23405 .text
23406 addi 3,31,ld0@got@tlsgd
23407 bl __tls_get_addr
23408 addi 3,31,x1@got@tlsld
23409 bl __tls_get_addr
23410 addi 9,3,x1@dtprel
23411 addis 9,3,x2@dtprel@ha
23412 addi 9,9,x2@dtprel@l
23413 lwz 9,x3@got@tprel(31)
23414 add 9,9,x@tls
23415 addi 9,2,x1@tprel
23416 addis 9,2,x2@tprel@ha
23417 addi 9,9,x2@tprel@l'
23418 tls_first_major=2
23419 tls_first_minor=14
23420 tls_as_opt="-a32 --fatal-warnings"
23422 s390-*-*)
23423 conftest_s='
23424 .section ".tdata","awT",@progbits
23425 foo: .long 25
23426 .text
23427 .long foo@TLSGD
23428 .long foo@TLSLDM
23429 .long foo@DTPOFF
23430 .long foo@NTPOFF
23431 .long foo@GOTNTPOFF
23432 .long foo@INDNTPOFF
23433 l %r1,foo@GOTNTPOFF(%r12)
23434 l %r1,0(%r1):tls_load:foo
23435 bas %r14,0(%r1,%r13):tls_gdcall:foo
23436 bas %r14,0(%r1,%r13):tls_ldcall:foo'
23437 tls_first_major=2
23438 tls_first_minor=14
23439 tls_as_opt="-m31 --fatal-warnings"
23441 s390x-*-*)
23442 conftest_s='
23443 .section ".tdata","awT",@progbits
23444 foo: .long 25
23445 .text
23446 .quad foo@TLSGD
23447 .quad foo@TLSLDM
23448 .quad foo@DTPOFF
23449 .quad foo@NTPOFF
23450 .quad foo@GOTNTPOFF
23451 lg %r1,foo@GOTNTPOFF(%r12)
23452 larl %r1,foo@INDNTPOFF
23453 brasl %r14,__tls_get_offset@PLT:tls_gdcall:foo
23454 brasl %r14,__tls_get_offset@PLT:tls_ldcall:foo'
23455 tls_first_major=2
23456 tls_first_minor=14
23457 tls_as_opt="-m64 -Aesame --fatal-warnings"
23459 sh-*-* | sh[34]-*-*)
23460 conftest_s='
23461 .section ".tdata","awT",@progbits
23462 foo: .long 25
23463 .text
23464 .long foo@TLSGD
23465 .long foo@TLSLDM
23466 .long foo@DTPOFF
23467 .long foo@GOTTPOFF
23468 .long foo@TPOFF'
23469 tls_first_major=2
23470 tls_first_minor=13
23471 tls_as_opt=--fatal-warnings
23473 sparc*-*-*)
23474 case "$target" in
23475 sparc*-sun-solaris2.*)
23476 on_solaris=yes
23477 tga_func=__tls_get_addr
23480 on_solaris=no
23482 esac
23483 if test x$on_solaris = xyes && test x$gas_flag = xno; then
23484 conftest_s='
23485 .section ".tdata",#alloc,#write,#tls'
23486 tls_first_major=0
23487 tls_first_minor=0
23488 else
23489 conftest_s='
23490 .section ".tdata","awT",@progbits'
23491 tls_first_major=2
23492 tls_first_minor=14
23493 tls_as_opt="-32 --fatal-warnings"
23495 conftest_s="$conftest_s
23496 foo: .long 25
23497 .text
23498 sethi %tgd_hi22(foo), %o0
23499 add %o0, %tgd_lo10(foo), %o1
23500 add %l7, %o1, %o0, %tgd_add(foo)
23501 call __tls_get_addr, %tgd_call(foo)
23502 sethi %tldm_hi22(foo), %l1
23503 add %l1, %tldm_lo10(foo), %l2
23504 add %l7, %l2, %o0, %tldm_add(foo)
23505 call __tls_get_addr, %tldm_call(foo)
23506 sethi %tldo_hix22(foo), %l3
23507 xor %l3, %tldo_lox10(foo), %l4
23508 add %o0, %l4, %l5, %tldo_add(foo)
23509 sethi %tie_hi22(foo), %o3
23510 add %o3, %tie_lo10(foo), %o3
23511 ld [%l7 + %o3], %o2, %tie_ld(foo)
23512 add %g7, %o2, %o4, %tie_add(foo)
23513 sethi %tle_hix22(foo), %l1
23514 xor %l1, %tle_lox10(foo), %o5
23515 ld [%g7 + %o5], %o1"
23517 tilepro*-*-*)
23518 conftest_s='
23519 .section ".tdata","awT",@progbits
23520 foo: .long 25
23521 .text
23522 addli r0, zero, tls_gd(foo)
23523 auli r0, zero, tls_gd_ha16(foo)
23524 addli r0, r0, tls_gd_lo16(foo)
23525 jal __tls_get_addr
23526 addli r0, zero, tls_ie(foo)
23527 auli r0, r0, tls_ie_ha16(foo)
23528 addli r0, r0, tls_ie_lo16(foo)'
23529 tls_first_major=2
23530 tls_first_minor=22
23531 tls_as_opt="--fatal-warnings"
23533 tilegx*-*-*)
23534 conftest_s='
23535 .section ".tdata","awT",@progbits
23536 foo: .long 25
23537 .text
23538 shl16insli r0, zero, hw0_last_tls_gd(foo)
23539 shl16insli r0, zero, hw1_last_tls_gd(foo)
23540 shl16insli r0, r0, hw0_tls_gd(foo)
23541 jal __tls_get_addr
23542 shl16insli r0, zero, hw1_last_tls_ie(foo)
23543 shl16insli r0, r0, hw0_tls_ie(foo)'
23544 tls_first_major=2
23545 tls_first_minor=22
23546 tls_as_opt="--fatal-warnings"
23548 xtensa*-*-*)
23549 conftest_s='
23550 .section ".tdata","awT",@progbits
23551 foo: .long 25
23552 .text
23553 movi a8, foo@TLSFUNC
23554 movi a10, foo@TLSARG
23555 callx8.tls a8, foo@TLSCALL'
23556 tls_first_major=2
23557 tls_first_minor=19
23559 esac
23560 set_have_as_tls=no
23561 if test "x$enable_tls" = xno ; then
23562 : # TLS explicitly disabled.
23563 elif test "x$enable_tls" = xyes ; then
23564 set_have_as_tls=yes # TLS explicitly enabled.
23565 elif test -z "$tls_first_major"; then
23566 : # If we don't have a check, assume no support.
23567 else
23568 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for thread-local storage support" >&5
23569 $as_echo_n "checking assembler for thread-local storage support... " >&6; }
23570 if test "${gcc_cv_as_tls+set}" = set; then :
23571 $as_echo_n "(cached) " >&6
23572 else
23573 gcc_cv_as_tls=no
23574 if test $in_tree_gas = yes; then
23575 if test $gcc_cv_gas_vers -ge `expr \( \( $tls_first_major \* 1000 \) + $tls_first_minor \) \* 1000 + 0`
23576 then gcc_cv_as_tls=yes
23578 elif test x$gcc_cv_as != x; then
23579 $as_echo "$conftest_s" > conftest.s
23580 if { ac_try='$gcc_cv_as $gcc_cv_as_flags $tls_as_opt -o conftest.o conftest.s >&5'
23581 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
23582 (eval $ac_try) 2>&5
23583 ac_status=$?
23584 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
23585 test $ac_status = 0; }; }
23586 then
23587 gcc_cv_as_tls=yes
23588 else
23589 echo "configure: failed program was" >&5
23590 cat conftest.s >&5
23592 rm -f conftest.o conftest.s
23595 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_tls" >&5
23596 $as_echo "$gcc_cv_as_tls" >&6; }
23597 if test $gcc_cv_as_tls = yes; then
23598 set_have_as_tls=yes
23601 case "$target" in
23602 # TLS was introduced in the Solaris 9 FCS release. Support for GNU-style
23603 # TLS on x86 was only introduced in Solaris 9 4/04, replacing the earlier
23604 # Sun style that Sun ld and GCC don't support any longer.
23605 *-*-solaris2.*)
23606 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker and ld.so.1 TLS support" >&5
23607 $as_echo_n "checking linker and ld.so.1 TLS support... " >&6; }
23608 ld_tls_support=no
23609 # Check ld and ld.so.1 TLS support.
23610 if echo "$ld_ver" | grep GNU > /dev/null; then
23611 # Assume all interesting versions of GNU ld have TLS support.
23612 # FIXME: still need ld.so.1 support, i.e. ld version checks below.
23613 ld_tls_support=yes
23614 else
23615 case "$target" in
23616 # Solaris 9/x86 ld has GNU style TLS support since version 1.374.
23617 i?86-*-solaris2.9)
23618 min_tls_ld_vers_minor=374
23620 # Solaris 9/SPARC and Solaris 10+ ld have TLS support since FCS.
23621 sparc*-*-solaris2.9 | *-*-solaris2.1[0-9]*)
23622 min_tls_ld_vers_minor=343
23624 esac
23625 if test "$ld_vers_major" -gt 1 || \
23626 test "$ld_vers_minor" -ge "$min_tls_ld_vers_minor"; then
23627 ld_tls_support=yes
23628 else
23629 set_have_as_tls=no
23632 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_tls_support" >&5
23633 $as_echo "$ld_tls_support" >&6; }
23635 save_LIBS="$LIBS"
23636 save_LDFLAGS="$LDFLAGS"
23637 LIBS=
23638 LDFLAGS=
23640 { $as_echo "$as_me:${as_lineno-$LINENO}: checking library containing $tga_func" >&5
23641 $as_echo_n "checking library containing $tga_func... " >&6; }
23642 # Before Solaris 10, __tls_get_addr (SPARC/x64) resp. ___tls_get_addr
23643 # (32-bit x86) only lived in libthread, so check for that. Keep
23644 # set_have_as_tls if found, disable if not.
23645 as_ac_Search=`$as_echo "ac_cv_search_$tga_func" | $as_tr_sh`
23646 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing $tga_func" >&5
23647 $as_echo_n "checking for library containing $tga_func... " >&6; }
23648 if { as_var=$as_ac_Search; eval "test \"\${$as_var+set}\" = set"; }; then :
23649 $as_echo_n "(cached) " >&6
23650 else
23651 ac_func_search_save_LIBS=$LIBS
23652 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23653 /* end confdefs.h. */
23655 /* Override any GCC internal prototype to avoid an error.
23656 Use char because int might match the return type of a GCC
23657 builtin and then its argument prototype would still apply. */
23658 #ifdef __cplusplus
23659 extern "C"
23660 #endif
23661 char $tga_func ();
23663 main ()
23665 return $tga_func ();
23667 return 0;
23669 _ACEOF
23670 for ac_lib in '' thread; do
23671 if test -z "$ac_lib"; then
23672 ac_res="none required"
23673 else
23674 ac_res=-l$ac_lib
23675 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
23677 if ac_fn_c_try_link "$LINENO"; then :
23678 eval "$as_ac_Search=\$ac_res"
23680 rm -f core conftest.err conftest.$ac_objext \
23681 conftest$ac_exeext
23682 if { as_var=$as_ac_Search; eval "test \"\${$as_var+set}\" = set"; }; then :
23683 break
23685 done
23686 if { as_var=$as_ac_Search; eval "test \"\${$as_var+set}\" = set"; }; then :
23688 else
23689 eval "$as_ac_Search=no"
23691 rm conftest.$ac_ext
23692 LIBS=$ac_func_search_save_LIBS
23694 eval ac_res=\$$as_ac_Search
23695 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
23696 $as_echo "$ac_res" >&6; }
23697 eval ac_res=\$$as_ac_Search
23698 if test "$ac_res" != no; then :
23699 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
23701 else
23702 set_have_as_tls=no
23705 # Clear LIBS if we cannot support TLS.
23706 if test $set_have_as_tls = no; then
23707 LIBS=
23709 # Always define LIB_TLS_SPEC, even without TLS support.
23711 cat >>confdefs.h <<_ACEOF
23712 #define LIB_TLS_SPEC "$LIBS"
23713 _ACEOF
23715 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIBS" >&5
23716 $as_echo "$LIBS" >&6; }
23718 LIBS="$save_LIBS"
23719 LDFLAGS="$save_LDFLAGS"
23721 esac
23722 if test $set_have_as_tls = yes ; then
23724 $as_echo "#define HAVE_AS_TLS 1" >>confdefs.h
23728 # Target-specific assembler checks.
23730 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker -Bstatic/-Bdynamic option" >&5
23731 $as_echo_n "checking linker -Bstatic/-Bdynamic option... " >&6; }
23732 gcc_cv_ld_static_dynamic=no
23733 gcc_cv_ld_static_option='-Bstatic'
23734 gcc_cv_ld_dynamic_option='-Bdynamic'
23735 if test $in_tree_ld = yes ; then
23736 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
23737 gcc_cv_ld_static_dynamic=yes
23739 elif test x$gcc_cv_ld != x; then
23740 # Check if linker supports -Bstatic/-Bdynamic option
23741 if $gcc_cv_ld --help 2>/dev/null | grep -- -Bstatic > /dev/null \
23742 && $gcc_cv_ld --help 2>/dev/null | grep -- -Bdynamic > /dev/null; then
23743 gcc_cv_ld_static_dynamic=yes
23744 else
23745 case "$target" in
23746 # AIX ld uses -b flags
23747 *-*-aix4.[23]* | *-*-aix[5-9]*)
23748 gcc_cv_ld_static_dynamic=yes
23749 gcc_cv_ld_static_option="-bstatic"
23750 gcc_cv_ld_dynamic_option="-bdynamic"
23752 # HP-UX ld uses -a flags to select between shared and archive.
23753 *-*-hpux*)
23754 if test x"$gnu_ld" = xno; then
23755 gcc_cv_ld_static_dynamic=yes
23756 gcc_cv_ld_static_option="-aarchive_shared"
23757 gcc_cv_ld_dynamic_option="-adefault"
23760 # Solaris 2 ld always supports -Bstatic/-Bdynamic.
23761 *-*-solaris2*)
23762 gcc_cv_ld_static_dynamic=yes
23764 esac
23767 if test x"$gcc_cv_ld_static_dynamic" = xyes; then
23769 $as_echo "#define HAVE_LD_STATIC_DYNAMIC 1" >>confdefs.h
23772 cat >>confdefs.h <<_ACEOF
23773 #define LD_STATIC_OPTION "$gcc_cv_ld_static_option"
23774 _ACEOF
23777 cat >>confdefs.h <<_ACEOF
23778 #define LD_DYNAMIC_OPTION "$gcc_cv_ld_dynamic_option"
23779 _ACEOF
23782 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_static_dynamic" >&5
23783 $as_echo "$gcc_cv_ld_static_dynamic" >&6; }
23785 if test x"$demangler_in_ld" = xyes; then
23786 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker --demangle support" >&5
23787 $as_echo_n "checking linker --demangle support... " >&6; }
23788 gcc_cv_ld_demangle=no
23789 if test $in_tree_ld = yes; then
23790 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 \
23791 gcc_cv_ld_demangle=yes
23793 elif test x$gcc_cv_ld != x -a x"$gnu_ld" = xyes; then
23794 # Check if the GNU linker supports --demangle option
23795 if $gcc_cv_ld --help 2>/dev/null | grep no-demangle > /dev/null; then
23796 gcc_cv_ld_demangle=yes
23799 if test x"$gcc_cv_ld_demangle" = xyes; then
23801 $as_echo "#define HAVE_LD_DEMANGLE 1" >>confdefs.h
23804 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_demangle" >&5
23805 $as_echo "$gcc_cv_ld_demangle" >&6; }
23808 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker plugin support" >&5
23809 $as_echo_n "checking linker plugin support... " >&6; }
23810 gcc_cv_lto_plugin=0
23811 if test -f liblto_plugin.la; then
23812 save_ld_ver="$ld_ver"
23813 save_ld_vers_major="$ld_vers_major"
23814 save_ld_vers_minor="$ld_vers_minor"
23815 save_ld_is_gold="$ld_is_gold"
23817 ld_is_gold=no
23819 if test $in_tree_ld = yes -a x"$ORIGINAL_PLUGIN_LD_FOR_TARGET" = x"$gcc_cv_ld"; then
23820 ld_ver="GNU ld"
23821 # FIXME: ld_is_gold?
23822 ld_vers_major="$gcc_cv_gld_major_version"
23823 ld_vers_minor="$gcc_cv_gld_minor_version"
23824 else
23825 # Determine plugin linker version.
23826 # FIXME: Partial duplicate from above, generalize.
23827 ld_ver=`$ORIGINAL_PLUGIN_LD_FOR_TARGET --version 2>/dev/null | sed 1q`
23828 if echo "$ld_ver" | grep GNU > /dev/null; then
23829 if echo "$ld_ver" | grep "GNU gold" > /dev/null; then
23830 ld_is_gold=yes
23831 ld_vers=`echo $ld_ver | sed -n \
23832 -e 's,^[^)]*[ ]\([0-9][0-9]*\.[0-9][0-9]*[^)]*\)) .*$,\1,p'`
23833 else
23834 ld_vers=`echo $ld_ver | sed -n \
23835 -e 's,^.*[ ]\([0-9][0-9]*\.[0-9][0-9]*.*\)$,\1,p'`
23837 ld_vers_major=`expr "$ld_vers" : '\([0-9]*\)'`
23838 ld_vers_minor=`expr "$ld_vers" : '[0-9]*\.\([0-9]*\)'`
23842 # Determine plugin support.
23843 if echo "$ld_ver" | grep GNU > /dev/null; then
23844 # Require GNU ld or gold 2.21+ for plugin support by default.
23845 if test "$ld_vers_major" -eq 2 -a "$ld_vers_minor" -ge 21; then
23846 gcc_cv_lto_plugin=2
23847 # Allow -fuse-linker-plugin to enable plugin support in GNU gold 2.20.
23848 elif test "$ld_is_gold" = yes -a "$ld_vers_major" -eq 2 -a "$ld_vers_minor" -eq 20; then
23849 gcc_cv_lto_plugin=1
23853 ld_ver="$save_ld_ver"
23854 ld_vers_major="$save_ld_vers_major"
23855 ld_vers_minor="$save_ld_vers_minor"
23856 ld_is_gold="$save_ld_is_gold"
23859 cat >>confdefs.h <<_ACEOF
23860 #define HAVE_LTO_PLUGIN $gcc_cv_lto_plugin
23861 _ACEOF
23863 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_lto_plugin" >&5
23864 $as_echo "$gcc_cv_lto_plugin" >&6; }
23866 case "$target" in
23867 # All TARGET_ABI_OSF targets.
23868 alpha*-*-linux* | alpha*-*-*bsd*)
23869 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for explicit relocation support" >&5
23870 $as_echo_n "checking assembler for explicit relocation support... " >&6; }
23871 if test "${gcc_cv_as_alpha_explicit_relocs+set}" = set; then :
23872 $as_echo_n "(cached) " >&6
23873 else
23874 gcc_cv_as_alpha_explicit_relocs=no
23875 if test $in_tree_gas = yes; then
23876 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 12 \) \* 1000 + 0`
23877 then gcc_cv_as_alpha_explicit_relocs=yes
23879 elif test x$gcc_cv_as != x; then
23880 $as_echo ' .set nomacro
23881 .text
23882 extbl $3, $2, $3 !lituse_bytoff!1
23883 ldq $2, a($29) !literal!1
23884 ldq $4, b($29) !literal!2
23885 ldq_u $3, 0($2) !lituse_base!1
23886 ldq $27, f($29) !literal!5
23887 jsr $26, ($27), f !lituse_jsr!5
23888 ldah $29, 0($26) !gpdisp!3
23889 lda $0, c($29) !gprel
23890 ldah $1, d($29) !gprelhigh
23891 lda $1, d($1) !gprellow
23892 lda $29, 0($29) !gpdisp!3' > conftest.s
23893 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
23894 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
23895 (eval $ac_try) 2>&5
23896 ac_status=$?
23897 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
23898 test $ac_status = 0; }; }
23899 then
23900 gcc_cv_as_alpha_explicit_relocs=yes
23901 else
23902 echo "configure: failed program was" >&5
23903 cat conftest.s >&5
23905 rm -f conftest.o conftest.s
23908 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_alpha_explicit_relocs" >&5
23909 $as_echo "$gcc_cv_as_alpha_explicit_relocs" >&6; }
23910 if test $gcc_cv_as_alpha_explicit_relocs = yes; then
23912 $as_echo "#define HAVE_AS_EXPLICIT_RELOCS 1" >>confdefs.h
23915 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for jsrdirect relocation support" >&5
23916 $as_echo_n "checking assembler for jsrdirect relocation support... " >&6; }
23917 if test "${gcc_cv_as_alpha_jsrdirect_relocs+set}" = set; then :
23918 $as_echo_n "(cached) " >&6
23919 else
23920 gcc_cv_as_alpha_jsrdirect_relocs=no
23921 if test $in_tree_gas = yes; then
23922 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 16 \) \* 1000 + 90`
23923 then gcc_cv_as_alpha_jsrdirect_relocs=yes
23925 elif test x$gcc_cv_as != x; then
23926 $as_echo ' .set nomacro
23927 .text
23928 ldq $27, a($29) !literal!1
23929 jsr $26, ($27), a !lituse_jsrdirect!1' > conftest.s
23930 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
23931 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
23932 (eval $ac_try) 2>&5
23933 ac_status=$?
23934 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
23935 test $ac_status = 0; }; }
23936 then
23937 gcc_cv_as_alpha_jsrdirect_relocs=yes
23938 else
23939 echo "configure: failed program was" >&5
23940 cat conftest.s >&5
23942 rm -f conftest.o conftest.s
23945 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_alpha_jsrdirect_relocs" >&5
23946 $as_echo "$gcc_cv_as_alpha_jsrdirect_relocs" >&6; }
23947 if test $gcc_cv_as_alpha_jsrdirect_relocs = yes; then
23949 $as_echo "#define HAVE_AS_JSRDIRECT_RELOCS 1" >>confdefs.h
23954 cris-*-*)
23955 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for -no-mul-bug-abort option" >&5
23956 $as_echo_n "checking assembler for -no-mul-bug-abort option... " >&6; }
23957 if test "${gcc_cv_as_cris_no_mul_bug+set}" = set; then :
23958 $as_echo_n "(cached) " >&6
23959 else
23960 gcc_cv_as_cris_no_mul_bug=no
23961 if test $in_tree_gas = yes; then
23962 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 15 \) \* 1000 + 91`
23963 then gcc_cv_as_cris_no_mul_bug=yes
23965 elif test x$gcc_cv_as != x; then
23966 $as_echo '.text' > conftest.s
23967 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -no-mul-bug-abort -o conftest.o conftest.s >&5'
23968 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
23969 (eval $ac_try) 2>&5
23970 ac_status=$?
23971 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
23972 test $ac_status = 0; }; }
23973 then
23974 gcc_cv_as_cris_no_mul_bug=yes
23975 else
23976 echo "configure: failed program was" >&5
23977 cat conftest.s >&5
23979 rm -f conftest.o conftest.s
23982 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_cris_no_mul_bug" >&5
23983 $as_echo "$gcc_cv_as_cris_no_mul_bug" >&6; }
23984 if test $gcc_cv_as_cris_no_mul_bug = yes; then
23986 $as_echo "#define HAVE_AS_NO_MUL_BUG_ABORT_OPTION 1" >>confdefs.h
23991 sparc*-*-*)
23992 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .register" >&5
23993 $as_echo_n "checking assembler for .register... " >&6; }
23994 if test "${gcc_cv_as_sparc_register_op+set}" = set; then :
23995 $as_echo_n "(cached) " >&6
23996 else
23997 gcc_cv_as_sparc_register_op=no
23998 if test x$gcc_cv_as != x; then
23999 $as_echo '.register %g2, #scratch' > conftest.s
24000 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
24001 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
24002 (eval $ac_try) 2>&5
24003 ac_status=$?
24004 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24005 test $ac_status = 0; }; }
24006 then
24007 gcc_cv_as_sparc_register_op=yes
24008 else
24009 echo "configure: failed program was" >&5
24010 cat conftest.s >&5
24012 rm -f conftest.o conftest.s
24015 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_sparc_register_op" >&5
24016 $as_echo "$gcc_cv_as_sparc_register_op" >&6; }
24017 if test $gcc_cv_as_sparc_register_op = yes; then
24019 $as_echo "#define HAVE_AS_REGISTER_PSEUDO_OP 1" >>confdefs.h
24023 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for #nobits" >&5
24024 $as_echo_n "checking assembler for #nobits... " >&6; }
24025 if test "${gcc_cv_as_sparc_nobits+set}" = set; then :
24026 $as_echo_n "(cached) " >&6
24027 else
24028 gcc_cv_as_sparc_nobits=no
24029 if test x$gcc_cv_as != x; then
24030 $as_echo '.section "nobits",#alloc,#write,#nobits
24031 .section "progbits",#alloc,#write,#progbits' > conftest.s
24032 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
24033 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
24034 (eval $ac_try) 2>&5
24035 ac_status=$?
24036 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24037 test $ac_status = 0; }; }
24038 then
24039 gcc_cv_as_sparc_nobits=yes
24040 else
24041 echo "configure: failed program was" >&5
24042 cat conftest.s >&5
24044 rm -f conftest.o conftest.s
24047 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_sparc_nobits" >&5
24048 $as_echo "$gcc_cv_as_sparc_nobits" >&6; }
24051 cat >>confdefs.h <<_ACEOF
24052 #define HAVE_AS_SPARC_NOBITS `if test $gcc_cv_as_sparc_nobits = yes; then echo 1; else echo 0; fi`
24053 _ACEOF
24056 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for -relax option" >&5
24057 $as_echo_n "checking assembler for -relax option... " >&6; }
24058 if test "${gcc_cv_as_sparc_relax+set}" = set; then :
24059 $as_echo_n "(cached) " >&6
24060 else
24061 gcc_cv_as_sparc_relax=no
24062 if test x$gcc_cv_as != x; then
24063 $as_echo '.text' > conftest.s
24064 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -relax -o conftest.o conftest.s >&5'
24065 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
24066 (eval $ac_try) 2>&5
24067 ac_status=$?
24068 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24069 test $ac_status = 0; }; }
24070 then
24071 gcc_cv_as_sparc_relax=yes
24072 else
24073 echo "configure: failed program was" >&5
24074 cat conftest.s >&5
24076 rm -f conftest.o conftest.s
24079 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_sparc_relax" >&5
24080 $as_echo "$gcc_cv_as_sparc_relax" >&6; }
24081 if test $gcc_cv_as_sparc_relax = yes; then
24083 $as_echo "#define HAVE_AS_RELAX_OPTION 1" >>confdefs.h
24087 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for GOTDATA_OP relocs" >&5
24088 $as_echo_n "checking assembler for GOTDATA_OP relocs... " >&6; }
24089 if test "${gcc_cv_as_sparc_gotdata_op+set}" = set; then :
24090 $as_echo_n "(cached) " >&6
24091 else
24092 gcc_cv_as_sparc_gotdata_op=no
24093 if test x$gcc_cv_as != x; then
24094 $as_echo '.text
24095 .align 4
24096 foo:
24098 bar:
24099 sethi %gdop_hix22(foo), %g1
24100 xor %g1, %gdop_lox10(foo), %g1
24101 ld [%l7 + %g1], %g2, %gdop(foo)' > conftest.s
24102 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -K PIC -o conftest.o conftest.s >&5'
24103 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
24104 (eval $ac_try) 2>&5
24105 ac_status=$?
24106 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24107 test $ac_status = 0; }; }
24108 then
24109 if test x$gcc_cv_ld != x \
24110 && $gcc_cv_ld -o conftest conftest.o -G > /dev/null 2>&1; then
24111 if test x$gcc_cv_objdump != x; then
24112 if $gcc_cv_objdump -s -j .text conftest 2> /dev/null \
24113 | grep ' 03000004 82186004 c405c001'> /dev/null 2>&1; then
24114 gcc_cv_as_sparc_gotdata_op=no
24115 else
24116 gcc_cv_as_sparc_gotdata_op=yes
24120 rm -f conftest
24121 else
24122 echo "configure: failed program was" >&5
24123 cat conftest.s >&5
24125 rm -f conftest.o conftest.s
24128 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_sparc_gotdata_op" >&5
24129 $as_echo "$gcc_cv_as_sparc_gotdata_op" >&6; }
24130 if test $gcc_cv_as_sparc_gotdata_op = yes; then
24132 $as_echo "#define HAVE_AS_SPARC_GOTDATA_OP 1" >>confdefs.h
24136 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for unaligned pcrel relocs" >&5
24137 $as_echo_n "checking assembler for unaligned pcrel relocs... " >&6; }
24138 if test "${gcc_cv_as_sparc_ua_pcrel+set}" = set; then :
24139 $as_echo_n "(cached) " >&6
24140 else
24141 gcc_cv_as_sparc_ua_pcrel=no
24142 if test x$gcc_cv_as != x; then
24143 $as_echo '.text
24144 foo:
24146 .data
24147 .align 4
24148 .byte 0
24149 .uaword %r_disp32(foo)' > conftest.s
24150 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -K PIC -o conftest.o conftest.s >&5'
24151 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
24152 (eval $ac_try) 2>&5
24153 ac_status=$?
24154 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24155 test $ac_status = 0; }; }
24156 then
24157 if test x$gcc_cv_ld != x \
24158 && $gcc_cv_ld -o conftest conftest.o -G > /dev/null 2>&1; then
24159 gcc_cv_as_sparc_ua_pcrel=yes
24161 rm -f conftest
24162 else
24163 echo "configure: failed program was" >&5
24164 cat conftest.s >&5
24166 rm -f conftest.o conftest.s
24169 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_sparc_ua_pcrel" >&5
24170 $as_echo "$gcc_cv_as_sparc_ua_pcrel" >&6; }
24171 if test $gcc_cv_as_sparc_ua_pcrel = yes; then
24173 $as_echo "#define HAVE_AS_SPARC_UA_PCREL 1" >>confdefs.h
24176 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for unaligned pcrel relocs against hidden symbols" >&5
24177 $as_echo_n "checking assembler for unaligned pcrel relocs against hidden symbols... " >&6; }
24178 if test "${gcc_cv_as_sparc_ua_pcrel_hidden+set}" = set; then :
24179 $as_echo_n "(cached) " >&6
24180 else
24181 gcc_cv_as_sparc_ua_pcrel_hidden=no
24182 if test x$gcc_cv_as != x; then
24183 $as_echo '.data
24184 .align 4
24185 .byte 0x31
24186 .uaword %r_disp32(foo)
24187 .byte 0x32, 0x33, 0x34
24188 .global foo
24189 .hidden foo
24190 foo:
24191 .skip 4' > conftest.s
24192 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -K PIC -o conftest.o conftest.s >&5'
24193 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
24194 (eval $ac_try) 2>&5
24195 ac_status=$?
24196 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24197 test $ac_status = 0; }; }
24198 then
24199 if test x$gcc_cv_ld != x && test x$gcc_cv_objdump != x \
24200 && $gcc_cv_ld -o conftest conftest.o -G > /dev/null 2>&1 \
24201 && $gcc_cv_objdump -s -j .data conftest 2> /dev/null \
24202 | grep ' 31000000 07323334' > /dev/null 2>&1; then
24203 if $gcc_cv_objdump -R conftest 2> /dev/null \
24204 | grep 'DISP32' > /dev/null 2>&1; then
24206 else
24207 gcc_cv_as_sparc_ua_pcrel_hidden=yes
24210 rm -f conftest
24211 else
24212 echo "configure: failed program was" >&5
24213 cat conftest.s >&5
24215 rm -f conftest.o conftest.s
24218 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_sparc_ua_pcrel_hidden" >&5
24219 $as_echo "$gcc_cv_as_sparc_ua_pcrel_hidden" >&6; }
24220 if test $gcc_cv_as_sparc_ua_pcrel_hidden = yes; then
24222 $as_echo "#define HAVE_AS_SPARC_UA_PCREL_HIDDEN 1" >>confdefs.h
24226 fi # unaligned pcrel relocs
24228 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for offsetable %lo()" >&5
24229 $as_echo_n "checking assembler for offsetable %lo()... " >&6; }
24230 if test "${gcc_cv_as_sparc_offsetable_lo10+set}" = set; then :
24231 $as_echo_n "(cached) " >&6
24232 else
24233 gcc_cv_as_sparc_offsetable_lo10=no
24234 if test x$gcc_cv_as != x; then
24235 $as_echo '.text
24236 or %g1, %lo(ab) + 12, %g1
24237 or %g1, %lo(ab + 12), %g1' > conftest.s
24238 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -xarch=v9 -o conftest.o conftest.s >&5'
24239 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
24240 (eval $ac_try) 2>&5
24241 ac_status=$?
24242 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24243 test $ac_status = 0; }; }
24244 then
24245 if test x$gcc_cv_objdump != x \
24246 && $gcc_cv_objdump -s -j .text conftest.o 2> /dev/null \
24247 | grep ' 82106000 82106000' > /dev/null 2>&1; then
24248 gcc_cv_as_sparc_offsetable_lo10=yes
24250 else
24251 echo "configure: failed program was" >&5
24252 cat conftest.s >&5
24254 rm -f conftest.o conftest.s
24257 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_sparc_offsetable_lo10" >&5
24258 $as_echo "$gcc_cv_as_sparc_offsetable_lo10" >&6; }
24259 if test $gcc_cv_as_sparc_offsetable_lo10 = yes; then
24261 $as_echo "#define HAVE_AS_OFFSETABLE_LO10 1" >>confdefs.h
24265 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for FMAF, HPC, and VIS 3.0 instructions" >&5
24266 $as_echo_n "checking assembler for FMAF, HPC, and VIS 3.0 instructions... " >&6; }
24267 if test "${gcc_cv_as_sparc_fmaf+set}" = set; then :
24268 $as_echo_n "(cached) " >&6
24269 else
24270 gcc_cv_as_sparc_fmaf=no
24271 if test x$gcc_cv_as != x; then
24272 $as_echo '.text
24273 .register %g2, #scratch
24274 .register %g3, #scratch
24275 .align 4
24276 fmaddd %f0, %f2, %f4, %f6
24277 addxccc %g1, %g2, %g3
24278 fsrl32 %f2, %f4, %f8
24279 fnaddd %f10, %f12, %f14' > conftest.s
24280 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -xarch=v9d -o conftest.o conftest.s >&5'
24281 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
24282 (eval $ac_try) 2>&5
24283 ac_status=$?
24284 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24285 test $ac_status = 0; }; }
24286 then
24287 gcc_cv_as_sparc_fmaf=yes
24288 else
24289 echo "configure: failed program was" >&5
24290 cat conftest.s >&5
24292 rm -f conftest.o conftest.s
24295 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_sparc_fmaf" >&5
24296 $as_echo "$gcc_cv_as_sparc_fmaf" >&6; }
24297 if test $gcc_cv_as_sparc_fmaf = yes; then
24299 $as_echo "#define HAVE_AS_FMAF_HPC_VIS3 1" >>confdefs.h
24303 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for SPARC4 instructions" >&5
24304 $as_echo_n "checking assembler for SPARC4 instructions... " >&6; }
24305 if test "${gcc_cv_as_sparc_sparc4+set}" = set; then :
24306 $as_echo_n "(cached) " >&6
24307 else
24308 gcc_cv_as_sparc_sparc4=no
24309 if test x$gcc_cv_as != x; then
24310 $as_echo '.text
24311 .register %g2, #scratch
24312 .register %g3, #scratch
24313 .align 4
24314 cxbe %g2, %g3, 1f
24315 1: cwbneg %g2, %g3, 1f
24316 1: sha1
24318 aes_kexpand0 %f4, %f6, %f8
24319 des_round %f38, %f40, %f42, %f44
24320 camellia_f %f54, %f56, %f58, %f60
24321 kasumi_fi_xor %f46, %f48, %f50, %f52' > conftest.s
24322 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -xarch=sparc4 -o conftest.o conftest.s >&5'
24323 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
24324 (eval $ac_try) 2>&5
24325 ac_status=$?
24326 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24327 test $ac_status = 0; }; }
24328 then
24329 gcc_cv_as_sparc_sparc4=yes
24330 else
24331 echo "configure: failed program was" >&5
24332 cat conftest.s >&5
24334 rm -f conftest.o conftest.s
24337 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_sparc_sparc4" >&5
24338 $as_echo "$gcc_cv_as_sparc_sparc4" >&6; }
24339 if test $gcc_cv_as_sparc_sparc4 = yes; then
24341 $as_echo "#define HAVE_AS_SPARC4 1" >>confdefs.h
24345 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for LEON instructions" >&5
24346 $as_echo_n "checking assembler for LEON instructions... " >&6; }
24347 if test "${gcc_cv_as_sparc_leon+set}" = set; then :
24348 $as_echo_n "(cached) " >&6
24349 else
24350 gcc_cv_as_sparc_leon=no
24351 if test x$gcc_cv_as != x; then
24352 $as_echo '.text
24353 .register %g2, #scratch
24354 .register %g3, #scratch
24355 .align 4
24356 smac %g2, %g3, %g1
24357 umac %g2, %g3, %g1
24358 cas [%g2], %g3, %g1' > conftest.s
24359 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -Aleon -o conftest.o conftest.s >&5'
24360 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
24361 (eval $ac_try) 2>&5
24362 ac_status=$?
24363 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24364 test $ac_status = 0; }; }
24365 then
24366 gcc_cv_as_sparc_leon=yes
24367 else
24368 echo "configure: failed program was" >&5
24369 cat conftest.s >&5
24371 rm -f conftest.o conftest.s
24374 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_sparc_leon" >&5
24375 $as_echo "$gcc_cv_as_sparc_leon" >&6; }
24376 if test $gcc_cv_as_sparc_leon = yes; then
24378 $as_echo "#define HAVE_AS_LEON 1" >>confdefs.h
24383 i[34567]86-*-* | x86_64-*-*)
24384 case $target_os in
24385 cygwin*)
24386 # Full C++ conformance when using a shared libstdc++-v3 requires some
24387 # support from the Cygwin DLL, which in more recent versions exports
24388 # wrappers to aid in interposing and redirecting operators new, delete,
24389 # etc., as per n2800 #17.6.4.6 [replacement.functions]. Check if we
24390 # are configuring for a version of Cygwin that exports the wrappers.
24391 if test x$host = x$target && test x$host_cpu = xi686; then
24392 ac_fn_c_check_func "$LINENO" "__wrap__Znaj" "ac_cv_func___wrap__Znaj"
24393 if test "x$ac_cv_func___wrap__Znaj" = x""yes; then :
24394 gcc_ac_cygwin_dll_wrappers=yes
24395 else
24396 gcc_ac_cygwin_dll_wrappers=no
24399 else
24400 # Can't check presence of libc functions during cross-compile, so
24401 # we just have to assume we're building for an up-to-date target.
24402 gcc_ac_cygwin_dll_wrappers=yes
24405 cat >>confdefs.h <<_ACEOF
24406 #define USE_CYGWIN_LIBSTDCXX_WRAPPERS `if test $gcc_ac_cygwin_dll_wrappers = yes; then echo 1; else echo 0; fi`
24407 _ACEOF
24409 esac
24410 case $target_os in
24411 cygwin* | pe | mingw32* | interix*)
24412 # Recent binutils allows the three-operand form of ".comm" on PE. This
24413 # definition is used unconditionally to initialise the default state of
24414 # the target option variable that governs usage of the feature.
24415 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .comm with alignment" >&5
24416 $as_echo_n "checking assembler for .comm with alignment... " >&6; }
24417 if test "${gcc_cv_as_comm_has_align+set}" = set; then :
24418 $as_echo_n "(cached) " >&6
24419 else
24420 gcc_cv_as_comm_has_align=no
24421 if test $in_tree_gas = yes; then
24422 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 19 \) \* 1000 + 52`
24423 then gcc_cv_as_comm_has_align=yes
24425 elif test x$gcc_cv_as != x; then
24426 $as_echo '.comm foo,1,32' > conftest.s
24427 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
24428 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
24429 (eval $ac_try) 2>&5
24430 ac_status=$?
24431 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24432 test $ac_status = 0; }; }
24433 then
24434 gcc_cv_as_comm_has_align=yes
24435 else
24436 echo "configure: failed program was" >&5
24437 cat conftest.s >&5
24439 rm -f conftest.o conftest.s
24442 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_comm_has_align" >&5
24443 $as_echo "$gcc_cv_as_comm_has_align" >&6; }
24446 cat >>confdefs.h <<_ACEOF
24447 #define HAVE_GAS_ALIGNED_COMM `if test $gcc_cv_as_comm_has_align = yes; then echo 1; else echo 0; fi`
24448 _ACEOF
24450 # Used for DWARF 2 in PE
24451 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .secrel32 relocs" >&5
24452 $as_echo_n "checking assembler for .secrel32 relocs... " >&6; }
24453 if test "${gcc_cv_as_ix86_pe_secrel32+set}" = set; then :
24454 $as_echo_n "(cached) " >&6
24455 else
24456 gcc_cv_as_ix86_pe_secrel32=no
24457 if test $in_tree_gas = yes; then
24458 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 15 \) \* 1000 + 91`
24459 then gcc_cv_as_ix86_pe_secrel32=yes
24461 elif test x$gcc_cv_as != x; then
24462 $as_echo '.text
24463 foo: nop
24464 .data
24465 .secrel32 foo' > conftest.s
24466 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
24467 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
24468 (eval $ac_try) 2>&5
24469 ac_status=$?
24470 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24471 test $ac_status = 0; }; }
24472 then
24473 if test x$gcc_cv_ld != x \
24474 && $gcc_cv_ld -o conftest conftest.o > /dev/null 2>&1; then
24475 gcc_cv_as_ix86_pe_secrel32=yes
24477 rm -f conftest
24478 else
24479 echo "configure: failed program was" >&5
24480 cat conftest.s >&5
24482 rm -f conftest.o conftest.s
24485 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_ix86_pe_secrel32" >&5
24486 $as_echo "$gcc_cv_as_ix86_pe_secrel32" >&6; }
24487 if test $gcc_cv_as_ix86_pe_secrel32 = yes; then
24489 $as_echo "#define HAVE_GAS_PE_SECREL32_RELOC 1" >>confdefs.h
24492 # Test if the assembler supports the extended form of the .section
24493 # directive that specifies section alignment. LTO support uses this,
24494 # but normally only after installation, so we warn but don't fail the
24495 # configure if LTO is enabled but the assembler does not support it.
24496 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .section with alignment" >&5
24497 $as_echo_n "checking assembler for .section with alignment... " >&6; }
24498 if test "${gcc_cv_as_section_has_align+set}" = set; then :
24499 $as_echo_n "(cached) " >&6
24500 else
24501 gcc_cv_as_section_has_align=no
24502 if test $in_tree_gas = yes; then
24503 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 20 \) \* 1000 + 1`
24504 then gcc_cv_as_section_has_align=yes
24506 elif test x$gcc_cv_as != x; then
24507 $as_echo '.section lto_test,"dr0"' > conftest.s
24508 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -fatal-warnings -o conftest.o conftest.s >&5'
24509 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
24510 (eval $ac_try) 2>&5
24511 ac_status=$?
24512 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24513 test $ac_status = 0; }; }
24514 then
24515 gcc_cv_as_section_has_align=yes
24516 else
24517 echo "configure: failed program was" >&5
24518 cat conftest.s >&5
24520 rm -f conftest.o conftest.s
24523 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_section_has_align" >&5
24524 $as_echo "$gcc_cv_as_section_has_align" >&6; }
24526 if test x$gcc_cv_as_section_has_align != xyes; then
24527 case ",$enable_languages," in
24528 *,lto,*)
24529 { $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
24530 $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;}
24532 esac
24534 # Test if the assembler supports the section flag 'e' for specifying
24535 # an excluded section.
24536 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .section with e" >&5
24537 $as_echo_n "checking assembler for .section with e... " >&6; }
24538 if test "${gcc_cv_as_section_has_e+set}" = set; then :
24539 $as_echo_n "(cached) " >&6
24540 else
24541 gcc_cv_as_section_has_e=no
24542 if test $in_tree_gas = yes; then
24543 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 22 \) \* 1000 + 51`
24544 then gcc_cv_as_section_has_e=yes
24546 elif test x$gcc_cv_as != x; then
24547 $as_echo '.section foo1,"e"
24548 .byte 0,0,0,0' > conftest.s
24549 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
24550 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
24551 (eval $ac_try) 2>&5
24552 ac_status=$?
24553 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24554 test $ac_status = 0; }; }
24555 then
24556 gcc_cv_as_section_has_e=yes
24557 else
24558 echo "configure: failed program was" >&5
24559 cat conftest.s >&5
24561 rm -f conftest.o conftest.s
24564 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_section_has_e" >&5
24565 $as_echo "$gcc_cv_as_section_has_e" >&6; }
24568 cat >>confdefs.h <<_ACEOF
24569 #define HAVE_GAS_SECTION_EXCLUDE `if test $gcc_cv_as_section_has_e = yes; then echo 1; else echo 0; fi`
24570 _ACEOF
24573 esac
24575 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for filds and fists mnemonics" >&5
24576 $as_echo_n "checking assembler for filds and fists mnemonics... " >&6; }
24577 if test "${gcc_cv_as_ix86_filds+set}" = set; then :
24578 $as_echo_n "(cached) " >&6
24579 else
24580 gcc_cv_as_ix86_filds=no
24581 if test x$gcc_cv_as != x; then
24582 $as_echo 'filds mem; fists mem' > conftest.s
24583 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
24584 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
24585 (eval $ac_try) 2>&5
24586 ac_status=$?
24587 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24588 test $ac_status = 0; }; }
24589 then
24590 gcc_cv_as_ix86_filds=yes
24591 else
24592 echo "configure: failed program was" >&5
24593 cat conftest.s >&5
24595 rm -f conftest.o conftest.s
24598 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_ix86_filds" >&5
24599 $as_echo "$gcc_cv_as_ix86_filds" >&6; }
24600 if test $gcc_cv_as_ix86_filds = yes; then
24602 $as_echo "#define HAVE_AS_IX86_FILDS 1" >>confdefs.h
24606 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for fildq and fistpq mnemonics" >&5
24607 $as_echo_n "checking assembler for fildq and fistpq mnemonics... " >&6; }
24608 if test "${gcc_cv_as_ix86_fildq+set}" = set; then :
24609 $as_echo_n "(cached) " >&6
24610 else
24611 gcc_cv_as_ix86_fildq=no
24612 if test x$gcc_cv_as != x; then
24613 $as_echo 'fildq mem; fistpq mem' > conftest.s
24614 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
24615 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
24616 (eval $ac_try) 2>&5
24617 ac_status=$?
24618 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24619 test $ac_status = 0; }; }
24620 then
24621 gcc_cv_as_ix86_fildq=yes
24622 else
24623 echo "configure: failed program was" >&5
24624 cat conftest.s >&5
24626 rm -f conftest.o conftest.s
24629 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_ix86_fildq" >&5
24630 $as_echo "$gcc_cv_as_ix86_fildq" >&6; }
24631 if test $gcc_cv_as_ix86_fildq = yes; then
24633 $as_echo "#define HAVE_AS_IX86_FILDQ 1" >>confdefs.h
24637 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for cmov syntax" >&5
24638 $as_echo_n "checking assembler for cmov syntax... " >&6; }
24639 if test "${gcc_cv_as_ix86_cmov_sun_syntax+set}" = set; then :
24640 $as_echo_n "(cached) " >&6
24641 else
24642 gcc_cv_as_ix86_cmov_sun_syntax=no
24643 if test x$gcc_cv_as != x; then
24644 $as_echo 'cmovl.l %edx, %eax' > conftest.s
24645 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
24646 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
24647 (eval $ac_try) 2>&5
24648 ac_status=$?
24649 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24650 test $ac_status = 0; }; }
24651 then
24652 gcc_cv_as_ix86_cmov_sun_syntax=yes
24653 else
24654 echo "configure: failed program was" >&5
24655 cat conftest.s >&5
24657 rm -f conftest.o conftest.s
24660 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_ix86_cmov_sun_syntax" >&5
24661 $as_echo "$gcc_cv_as_ix86_cmov_sun_syntax" >&6; }
24662 if test $gcc_cv_as_ix86_cmov_sun_syntax = yes; then
24664 $as_echo "#define HAVE_AS_IX86_CMOV_SUN_SYNTAX 1" >>confdefs.h
24668 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for ffreep mnemonic" >&5
24669 $as_echo_n "checking assembler for ffreep mnemonic... " >&6; }
24670 if test "${gcc_cv_as_ix86_ffreep+set}" = set; then :
24671 $as_echo_n "(cached) " >&6
24672 else
24673 gcc_cv_as_ix86_ffreep=no
24674 if test x$gcc_cv_as != x; then
24675 $as_echo 'ffreep %st(1)' > conftest.s
24676 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
24677 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
24678 (eval $ac_try) 2>&5
24679 ac_status=$?
24680 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24681 test $ac_status = 0; }; }
24682 then
24683 gcc_cv_as_ix86_ffreep=yes
24684 else
24685 echo "configure: failed program was" >&5
24686 cat conftest.s >&5
24688 rm -f conftest.o conftest.s
24691 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_ix86_ffreep" >&5
24692 $as_echo "$gcc_cv_as_ix86_ffreep" >&6; }
24693 if test $gcc_cv_as_ix86_ffreep = yes; then
24695 $as_echo "#define HAVE_AS_IX86_FFREEP 1" >>confdefs.h
24699 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .quad directive" >&5
24700 $as_echo_n "checking assembler for .quad directive... " >&6; }
24701 if test "${gcc_cv_as_ix86_quad+set}" = set; then :
24702 $as_echo_n "(cached) " >&6
24703 else
24704 gcc_cv_as_ix86_quad=no
24705 if test x$gcc_cv_as != x; then
24706 $as_echo '.quad 0' > conftest.s
24707 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
24708 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
24709 (eval $ac_try) 2>&5
24710 ac_status=$?
24711 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24712 test $ac_status = 0; }; }
24713 then
24714 gcc_cv_as_ix86_quad=yes
24715 else
24716 echo "configure: failed program was" >&5
24717 cat conftest.s >&5
24719 rm -f conftest.o conftest.s
24722 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_ix86_quad" >&5
24723 $as_echo "$gcc_cv_as_ix86_quad" >&6; }
24724 if test $gcc_cv_as_ix86_quad = yes; then
24726 $as_echo "#define HAVE_AS_IX86_QUAD 1" >>confdefs.h
24730 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for sahf mnemonic" >&5
24731 $as_echo_n "checking assembler for sahf mnemonic... " >&6; }
24732 if test "${gcc_cv_as_ix86_sahf+set}" = set; then :
24733 $as_echo_n "(cached) " >&6
24734 else
24735 gcc_cv_as_ix86_sahf=no
24736 if test x$gcc_cv_as != x; then
24737 $as_echo '.code64
24738 sahf' > conftest.s
24739 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
24740 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
24741 (eval $ac_try) 2>&5
24742 ac_status=$?
24743 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24744 test $ac_status = 0; }; }
24745 then
24746 gcc_cv_as_ix86_sahf=yes
24747 else
24748 echo "configure: failed program was" >&5
24749 cat conftest.s >&5
24751 rm -f conftest.o conftest.s
24754 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_ix86_sahf" >&5
24755 $as_echo "$gcc_cv_as_ix86_sahf" >&6; }
24756 if test $gcc_cv_as_ix86_sahf = yes; then
24758 $as_echo "#define HAVE_AS_IX86_SAHF 1" >>confdefs.h
24762 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for interunit movq mnemonic" >&5
24763 $as_echo_n "checking assembler for interunit movq mnemonic... " >&6; }
24764 if test "${gcc_cv_as_ix86_interunit_movq+set}" = set; then :
24765 $as_echo_n "(cached) " >&6
24766 else
24767 gcc_cv_as_ix86_interunit_movq=no
24768 if test x$gcc_cv_as != x; then
24769 $as_echo '.code64
24770 movq %mm0, %rax
24771 movq %rax, %xmm0' > conftest.s
24772 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
24773 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
24774 (eval $ac_try) 2>&5
24775 ac_status=$?
24776 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24777 test $ac_status = 0; }; }
24778 then
24779 gcc_cv_as_ix86_interunit_movq=yes
24780 else
24781 echo "configure: failed program was" >&5
24782 cat conftest.s >&5
24784 rm -f conftest.o conftest.s
24787 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_ix86_interunit_movq" >&5
24788 $as_echo "$gcc_cv_as_ix86_interunit_movq" >&6; }
24789 if test $gcc_cv_as_ix86_interunit_movq = yes; then
24791 $as_echo "#define HAVE_AS_IX86_INTERUNIT_MOVQ 1" >>confdefs.h
24795 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for hle prefixes" >&5
24796 $as_echo_n "checking assembler for hle prefixes... " >&6; }
24797 if test "${gcc_cv_as_ix86_hle+set}" = set; then :
24798 $as_echo_n "(cached) " >&6
24799 else
24800 gcc_cv_as_ix86_hle=no
24801 if test x$gcc_cv_as != x; then
24802 $as_echo 'lock xacquire cmpxchg %esi, (%ecx)' > conftest.s
24803 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
24804 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
24805 (eval $ac_try) 2>&5
24806 ac_status=$?
24807 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24808 test $ac_status = 0; }; }
24809 then
24810 gcc_cv_as_ix86_hle=yes
24811 else
24812 echo "configure: failed program was" >&5
24813 cat conftest.s >&5
24815 rm -f conftest.o conftest.s
24818 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_ix86_hle" >&5
24819 $as_echo "$gcc_cv_as_ix86_hle" >&6; }
24820 if test $gcc_cv_as_ix86_hle = yes; then
24822 $as_echo "#define HAVE_AS_IX86_HLE 1" >>confdefs.h
24826 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for swap suffix" >&5
24827 $as_echo_n "checking assembler for swap suffix... " >&6; }
24828 if test "${gcc_cv_as_ix86_swap+set}" = set; then :
24829 $as_echo_n "(cached) " >&6
24830 else
24831 gcc_cv_as_ix86_swap=no
24832 if test x$gcc_cv_as != x; then
24833 $as_echo 'movl.s %esp, %ebp' > conftest.s
24834 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
24835 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
24836 (eval $ac_try) 2>&5
24837 ac_status=$?
24838 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24839 test $ac_status = 0; }; }
24840 then
24841 gcc_cv_as_ix86_swap=yes
24842 else
24843 echo "configure: failed program was" >&5
24844 cat conftest.s >&5
24846 rm -f conftest.o conftest.s
24849 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_ix86_swap" >&5
24850 $as_echo "$gcc_cv_as_ix86_swap" >&6; }
24851 if test $gcc_cv_as_ix86_swap = yes; then
24853 $as_echo "#define HAVE_AS_IX86_SWAP 1" >>confdefs.h
24857 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for different section symbol subtraction" >&5
24858 $as_echo_n "checking assembler for different section symbol subtraction... " >&6; }
24859 if test "${gcc_cv_as_ix86_diff_sect_delta+set}" = set; then :
24860 $as_echo_n "(cached) " >&6
24861 else
24862 gcc_cv_as_ix86_diff_sect_delta=no
24863 if test x$gcc_cv_as != x; then
24864 $as_echo '.section .rodata
24865 .L1:
24866 .long .L2-.L1
24867 .long .L3-.L1
24868 .text
24869 .L3: nop
24870 .L2: nop' > conftest.s
24871 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
24872 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
24873 (eval $ac_try) 2>&5
24874 ac_status=$?
24875 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24876 test $ac_status = 0; }; }
24877 then
24878 gcc_cv_as_ix86_diff_sect_delta=yes
24879 else
24880 echo "configure: failed program was" >&5
24881 cat conftest.s >&5
24883 rm -f conftest.o conftest.s
24886 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_ix86_diff_sect_delta" >&5
24887 $as_echo "$gcc_cv_as_ix86_diff_sect_delta" >&6; }
24888 if test $gcc_cv_as_ix86_diff_sect_delta = yes; then
24890 $as_echo "#define HAVE_AS_IX86_DIFF_SECT_DELTA 1" >>confdefs.h
24894 # These two are used unconditionally by i386.[ch]; it is to be defined
24895 # to 1 if the feature is present, 0 otherwise.
24896 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for GOTOFF in data" >&5
24897 $as_echo_n "checking assembler for GOTOFF in data... " >&6; }
24898 if test "${gcc_cv_as_ix86_gotoff_in_data+set}" = set; then :
24899 $as_echo_n "(cached) " >&6
24900 else
24901 gcc_cv_as_ix86_gotoff_in_data=no
24902 if test $in_tree_gas = yes; then
24903 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 11 \) \* 1000 + 0`
24904 then gcc_cv_as_ix86_gotoff_in_data=yes
24906 elif test x$gcc_cv_as != x; then
24907 $as_echo ' .text
24908 .L0:
24910 .data
24911 .long .L0@GOTOFF' > conftest.s
24912 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
24913 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
24914 (eval $ac_try) 2>&5
24915 ac_status=$?
24916 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24917 test $ac_status = 0; }; }
24918 then
24919 gcc_cv_as_ix86_gotoff_in_data=yes
24920 else
24921 echo "configure: failed program was" >&5
24922 cat conftest.s >&5
24924 rm -f conftest.o conftest.s
24927 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_ix86_gotoff_in_data" >&5
24928 $as_echo "$gcc_cv_as_ix86_gotoff_in_data" >&6; }
24931 cat >>confdefs.h <<_ACEOF
24932 #define HAVE_AS_GOTOFF_IN_DATA `if test $gcc_cv_as_ix86_gotoff_in_data = yes; then echo 1; else echo 0; fi`
24933 _ACEOF
24936 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for rep and lock prefix" >&5
24937 $as_echo_n "checking assembler for rep and lock prefix... " >&6; }
24938 if test "${gcc_cv_as_ix86_rep_lock_prefix+set}" = set; then :
24939 $as_echo_n "(cached) " >&6
24940 else
24941 gcc_cv_as_ix86_rep_lock_prefix=no
24942 if test x$gcc_cv_as != x; then
24943 $as_echo 'rep movsl
24944 rep ret
24945 rep nop
24946 rep bsf %ecx, %eax
24947 rep bsr %ecx, %eax
24948 lock addl %edi, (%eax,%esi)
24949 lock orl $0, (%esp)' > conftest.s
24950 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
24951 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
24952 (eval $ac_try) 2>&5
24953 ac_status=$?
24954 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24955 test $ac_status = 0; }; }
24956 then
24957 gcc_cv_as_ix86_rep_lock_prefix=yes
24958 else
24959 echo "configure: failed program was" >&5
24960 cat conftest.s >&5
24962 rm -f conftest.o conftest.s
24965 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_ix86_rep_lock_prefix" >&5
24966 $as_echo "$gcc_cv_as_ix86_rep_lock_prefix" >&6; }
24967 if test $gcc_cv_as_ix86_rep_lock_prefix = yes; then
24969 $as_echo "#define HAVE_AS_IX86_REP_LOCK_PREFIX 1" >>confdefs.h
24973 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for R_386_TLS_GD_PLT reloc" >&5
24974 $as_echo_n "checking assembler for R_386_TLS_GD_PLT reloc... " >&6; }
24975 if test "${gcc_cv_as_ix86_tlsgdplt+set}" = set; then :
24976 $as_echo_n "(cached) " >&6
24977 else
24978 gcc_cv_as_ix86_tlsgdplt=no
24979 if test x$gcc_cv_as != x; then
24980 $as_echo 'call tls_gd@tlsgdplt' > conftest.s
24981 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
24982 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
24983 (eval $ac_try) 2>&5
24984 ac_status=$?
24985 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24986 test $ac_status = 0; }; }
24987 then
24988 if test x$gcc_cv_ld != x \
24989 && $gcc_cv_ld -o conftest conftest.o -G > /dev/null 2>&1; then
24990 gcc_cv_as_ix86_tlsgdplt=yes
24992 rm -f conftest
24993 else
24994 echo "configure: failed program was" >&5
24995 cat conftest.s >&5
24997 rm -f conftest.o conftest.s
25000 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_ix86_tlsgdplt" >&5
25001 $as_echo "$gcc_cv_as_ix86_tlsgdplt" >&6; }
25002 if test $gcc_cv_as_ix86_tlsgdplt = yes; then
25004 $as_echo "#define HAVE_AS_IX86_TLSGDPLT 1" >>confdefs.h
25008 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for R_386_TLS_LDM_PLT reloc" >&5
25009 $as_echo_n "checking assembler for R_386_TLS_LDM_PLT reloc... " >&6; }
25010 if test "${gcc_cv_as_ix86_tlsldmplt+set}" = set; then :
25011 $as_echo_n "(cached) " >&6
25012 else
25013 gcc_cv_as_ix86_tlsldmplt=no
25014 if test x$gcc_cv_as != x; then
25015 $as_echo 'tls_ld:
25016 call tls_ld@tlsldmplt' > conftest.s
25017 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
25018 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
25019 (eval $ac_try) 2>&5
25020 ac_status=$?
25021 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25022 test $ac_status = 0; }; }
25023 then
25024 if test x$gcc_cv_ld != x \
25025 && $gcc_cv_ld -o conftest conftest.o -G > /dev/null 2>&1; then
25026 gcc_cv_as_ix86_tlsldmplt=yes
25028 rm -f conftest
25029 else
25030 echo "configure: failed program was" >&5
25031 cat conftest.s >&5
25033 rm -f conftest.o conftest.s
25036 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_ix86_tlsldmplt" >&5
25037 $as_echo "$gcc_cv_as_ix86_tlsldmplt" >&6; }
25038 if test $gcc_cv_as_ix86_tlsldmplt = yes; then
25040 $as_echo "#define HAVE_AS_IX86_TLSLDMPLT 1" >>confdefs.h
25046 ia64*-*-*)
25047 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for ltoffx and ldxmov relocs" >&5
25048 $as_echo_n "checking assembler for ltoffx and ldxmov relocs... " >&6; }
25049 if test "${gcc_cv_as_ia64_ltoffx_ldxmov_relocs+set}" = set; then :
25050 $as_echo_n "(cached) " >&6
25051 else
25052 gcc_cv_as_ia64_ltoffx_ldxmov_relocs=no
25053 if test $in_tree_gas = yes; then
25054 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 14 \) \* 1000 + 0`
25055 then gcc_cv_as_ia64_ltoffx_ldxmov_relocs=yes
25057 elif test x$gcc_cv_as != x; then
25058 $as_echo ' .text
25059 addl r15 = @ltoffx(x#), gp
25061 ld8.mov r16 = [r15], x#' > conftest.s
25062 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
25063 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
25064 (eval $ac_try) 2>&5
25065 ac_status=$?
25066 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25067 test $ac_status = 0; }; }
25068 then
25069 gcc_cv_as_ia64_ltoffx_ldxmov_relocs=yes
25070 else
25071 echo "configure: failed program was" >&5
25072 cat conftest.s >&5
25074 rm -f conftest.o conftest.s
25077 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_ia64_ltoffx_ldxmov_relocs" >&5
25078 $as_echo "$gcc_cv_as_ia64_ltoffx_ldxmov_relocs" >&6; }
25079 if test $gcc_cv_as_ia64_ltoffx_ldxmov_relocs = yes; then
25081 $as_echo "#define HAVE_AS_LTOFFX_LDXMOV_RELOCS 1" >>confdefs.h
25087 powerpc*-*-*)
25088 case $target in
25089 *-*-aix*) conftest_s=' .machine "pwr5"
25090 .csect .text[PR]
25091 mfcr 3,128';;
25092 *-*-darwin*)
25093 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .machine directive support" >&5
25094 $as_echo_n "checking assembler for .machine directive support... " >&6; }
25095 if test "${gcc_cv_as_machine_directive+set}" = set; then :
25096 $as_echo_n "(cached) " >&6
25097 else
25098 gcc_cv_as_machine_directive=no
25099 if test x$gcc_cv_as != x; then
25100 $as_echo ' .machine ppc7400' > conftest.s
25101 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
25102 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
25103 (eval $ac_try) 2>&5
25104 ac_status=$?
25105 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25106 test $ac_status = 0; }; }
25107 then
25108 gcc_cv_as_machine_directive=yes
25109 else
25110 echo "configure: failed program was" >&5
25111 cat conftest.s >&5
25113 rm -f conftest.o conftest.s
25116 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_machine_directive" >&5
25117 $as_echo "$gcc_cv_as_machine_directive" >&6; }
25119 if test x$gcc_cv_as_machine_directive != xyes; then
25120 echo "*** This target requires an assembler supporting \".machine\"" >&2
25121 echo you can get it from: ftp://gcc.gnu.org/pub/gcc/infrastructure/cctools-528.5.dmg >&2
25122 test x$build = x$target && exit 1
25124 conftest_s=' .text
25125 mfcr r3,128';;
25126 *) conftest_s=' .machine power4
25127 .text
25128 mfcr 3,128';;
25129 esac
25131 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for mfcr field support" >&5
25132 $as_echo_n "checking assembler for mfcr field support... " >&6; }
25133 if test "${gcc_cv_as_powerpc_mfcrf+set}" = set; then :
25134 $as_echo_n "(cached) " >&6
25135 else
25136 gcc_cv_as_powerpc_mfcrf=no
25137 if test $in_tree_gas = yes; then
25138 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 14 \) \* 1000 + 0`
25139 then gcc_cv_as_powerpc_mfcrf=yes
25141 elif test x$gcc_cv_as != x; then
25142 $as_echo "$conftest_s" > conftest.s
25143 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
25144 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
25145 (eval $ac_try) 2>&5
25146 ac_status=$?
25147 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25148 test $ac_status = 0; }; }
25149 then
25150 gcc_cv_as_powerpc_mfcrf=yes
25151 else
25152 echo "configure: failed program was" >&5
25153 cat conftest.s >&5
25155 rm -f conftest.o conftest.s
25158 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_powerpc_mfcrf" >&5
25159 $as_echo "$gcc_cv_as_powerpc_mfcrf" >&6; }
25160 if test $gcc_cv_as_powerpc_mfcrf = yes; then
25162 $as_echo "#define HAVE_AS_MFCRF 1" >>confdefs.h
25166 case $target in
25167 *-*-aix*) conftest_s=' .machine "pwr5"
25168 .csect .text[PR]
25169 popcntb 3,3';;
25170 *) conftest_s=' .machine power5
25171 .text
25172 popcntb 3,3';;
25173 esac
25175 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for popcntb support" >&5
25176 $as_echo_n "checking assembler for popcntb support... " >&6; }
25177 if test "${gcc_cv_as_powerpc_popcntb+set}" = set; then :
25178 $as_echo_n "(cached) " >&6
25179 else
25180 gcc_cv_as_powerpc_popcntb=no
25181 if test $in_tree_gas = yes; then
25182 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 17 \) \* 1000 + 0`
25183 then gcc_cv_as_powerpc_popcntb=yes
25185 elif test x$gcc_cv_as != x; then
25186 $as_echo "$conftest_s" > conftest.s
25187 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
25188 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
25189 (eval $ac_try) 2>&5
25190 ac_status=$?
25191 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25192 test $ac_status = 0; }; }
25193 then
25194 gcc_cv_as_powerpc_popcntb=yes
25195 else
25196 echo "configure: failed program was" >&5
25197 cat conftest.s >&5
25199 rm -f conftest.o conftest.s
25202 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_powerpc_popcntb" >&5
25203 $as_echo "$gcc_cv_as_powerpc_popcntb" >&6; }
25204 if test $gcc_cv_as_powerpc_popcntb = yes; then
25206 $as_echo "#define HAVE_AS_POPCNTB 1" >>confdefs.h
25210 case $target in
25211 *-*-aix*) conftest_s=' .machine "pwr5x"
25212 .csect .text[PR]
25213 frin 1,1';;
25214 *) conftest_s=' .machine power5
25215 .text
25216 frin 1,1';;
25217 esac
25219 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for fp round support" >&5
25220 $as_echo_n "checking assembler for fp round support... " >&6; }
25221 if test "${gcc_cv_as_powerpc_fprnd+set}" = set; then :
25222 $as_echo_n "(cached) " >&6
25223 else
25224 gcc_cv_as_powerpc_fprnd=no
25225 if test $in_tree_gas = yes; then
25226 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 17 \) \* 1000 + 0`
25227 then gcc_cv_as_powerpc_fprnd=yes
25229 elif test x$gcc_cv_as != x; then
25230 $as_echo "$conftest_s" > conftest.s
25231 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
25232 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
25233 (eval $ac_try) 2>&5
25234 ac_status=$?
25235 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25236 test $ac_status = 0; }; }
25237 then
25238 gcc_cv_as_powerpc_fprnd=yes
25239 else
25240 echo "configure: failed program was" >&5
25241 cat conftest.s >&5
25243 rm -f conftest.o conftest.s
25246 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_powerpc_fprnd" >&5
25247 $as_echo "$gcc_cv_as_powerpc_fprnd" >&6; }
25248 if test $gcc_cv_as_powerpc_fprnd = yes; then
25250 $as_echo "#define HAVE_AS_FPRND 1" >>confdefs.h
25254 case $target in
25255 *-*-aix*) conftest_s=' .machine "pwr6"
25256 .csect .text[PR]
25257 mffgpr 1,3';;
25258 *) conftest_s=' .machine power6
25259 .text
25260 mffgpr 1,3';;
25261 esac
25263 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for move fp gpr support" >&5
25264 $as_echo_n "checking assembler for move fp gpr support... " >&6; }
25265 if test "${gcc_cv_as_powerpc_mfpgpr+set}" = set; then :
25266 $as_echo_n "(cached) " >&6
25267 else
25268 gcc_cv_as_powerpc_mfpgpr=no
25269 if test $in_tree_gas = yes; then
25270 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 19 \) \* 1000 + 2`
25271 then gcc_cv_as_powerpc_mfpgpr=yes
25273 elif test x$gcc_cv_as != x; then
25274 $as_echo "$conftest_s" > conftest.s
25275 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
25276 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
25277 (eval $ac_try) 2>&5
25278 ac_status=$?
25279 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25280 test $ac_status = 0; }; }
25281 then
25282 gcc_cv_as_powerpc_mfpgpr=yes
25283 else
25284 echo "configure: failed program was" >&5
25285 cat conftest.s >&5
25287 rm -f conftest.o conftest.s
25290 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_powerpc_mfpgpr" >&5
25291 $as_echo "$gcc_cv_as_powerpc_mfpgpr" >&6; }
25292 if test $gcc_cv_as_powerpc_mfpgpr = yes; then
25294 $as_echo "#define HAVE_AS_MFPGPR 1" >>confdefs.h
25298 case $target in
25299 *-*-aix*) conftest_s=' .csect .text[PR]
25300 LCF..0:
25301 addis 11,30,_GLOBAL_OFFSET_TABLE_-LCF..0@ha';;
25302 *-*-darwin*)
25303 conftest_s=' .text
25304 LCF0:
25305 addis r11,r30,_GLOBAL_OFFSET_TABLE_-LCF0@ha';;
25306 *) conftest_s=' .text
25307 .LCF0:
25308 addis 11,30,_GLOBAL_OFFSET_TABLE_-.LCF0@ha';;
25309 esac
25311 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for rel16 relocs" >&5
25312 $as_echo_n "checking assembler for rel16 relocs... " >&6; }
25313 if test "${gcc_cv_as_powerpc_rel16+set}" = set; then :
25314 $as_echo_n "(cached) " >&6
25315 else
25316 gcc_cv_as_powerpc_rel16=no
25317 if test $in_tree_gas = yes; then
25318 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 17 \) \* 1000 + 0`
25319 then gcc_cv_as_powerpc_rel16=yes
25321 elif test x$gcc_cv_as != x; then
25322 $as_echo "$conftest_s" > conftest.s
25323 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -a32 -o conftest.o conftest.s >&5'
25324 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
25325 (eval $ac_try) 2>&5
25326 ac_status=$?
25327 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25328 test $ac_status = 0; }; }
25329 then
25330 gcc_cv_as_powerpc_rel16=yes
25331 else
25332 echo "configure: failed program was" >&5
25333 cat conftest.s >&5
25335 rm -f conftest.o conftest.s
25338 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_powerpc_rel16" >&5
25339 $as_echo "$gcc_cv_as_powerpc_rel16" >&6; }
25340 if test $gcc_cv_as_powerpc_rel16 = yes; then
25342 $as_echo "#define HAVE_AS_REL16 1" >>confdefs.h
25346 case $target in
25347 *-*-aix*) conftest_s=' .machine "pwr6"
25348 .csect .text[PR]
25349 cmpb 3,4,5';;
25350 *) conftest_s=' .machine power6
25351 .text
25352 cmpb 3,4,5';;
25353 esac
25355 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for compare bytes support" >&5
25356 $as_echo_n "checking assembler for compare bytes support... " >&6; }
25357 if test "${gcc_cv_as_powerpc_cmpb+set}" = set; then :
25358 $as_echo_n "(cached) " >&6
25359 else
25360 gcc_cv_as_powerpc_cmpb=no
25361 if test $in_tree_gas = yes; then
25362 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 19 \) \* 1000 + 2`
25363 then gcc_cv_as_powerpc_cmpb=yes
25365 elif test x$gcc_cv_as != x; then
25366 $as_echo "$conftest_s" > conftest.s
25367 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -a32 -o conftest.o conftest.s >&5'
25368 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
25369 (eval $ac_try) 2>&5
25370 ac_status=$?
25371 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25372 test $ac_status = 0; }; }
25373 then
25374 gcc_cv_as_powerpc_cmpb=yes
25375 else
25376 echo "configure: failed program was" >&5
25377 cat conftest.s >&5
25379 rm -f conftest.o conftest.s
25382 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_powerpc_cmpb" >&5
25383 $as_echo "$gcc_cv_as_powerpc_cmpb" >&6; }
25384 if test $gcc_cv_as_powerpc_cmpb = yes; then
25386 $as_echo "#define HAVE_AS_CMPB 1" >>confdefs.h
25390 case $target in
25391 *-*-aix*) conftest_s=' .machine "pwr6"
25392 .csect .text[PR]
25393 dadd 1,2,3';;
25394 *) conftest_s=' .machine power6
25395 .text
25396 dadd 1,2,3';;
25397 esac
25399 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for decimal float support" >&5
25400 $as_echo_n "checking assembler for decimal float support... " >&6; }
25401 if test "${gcc_cv_as_powerpc_dfp+set}" = set; then :
25402 $as_echo_n "(cached) " >&6
25403 else
25404 gcc_cv_as_powerpc_dfp=no
25405 if test $in_tree_gas = yes; then
25406 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 19 \) \* 1000 + 2`
25407 then gcc_cv_as_powerpc_dfp=yes
25409 elif test x$gcc_cv_as != x; then
25410 $as_echo "$conftest_s" > conftest.s
25411 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -a32 -o conftest.o conftest.s >&5'
25412 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
25413 (eval $ac_try) 2>&5
25414 ac_status=$?
25415 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25416 test $ac_status = 0; }; }
25417 then
25418 gcc_cv_as_powerpc_dfp=yes
25419 else
25420 echo "configure: failed program was" >&5
25421 cat conftest.s >&5
25423 rm -f conftest.o conftest.s
25426 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_powerpc_dfp" >&5
25427 $as_echo "$gcc_cv_as_powerpc_dfp" >&6; }
25428 if test $gcc_cv_as_powerpc_dfp = yes; then
25430 $as_echo "#define HAVE_AS_DFP 1" >>confdefs.h
25434 case $target in
25435 *-*-aix*) conftest_s=' .machine "pwr7"
25436 .csect .text[PR]
25437 lxvd2x 1,2,3';;
25438 *) conftest_s=' .machine power7
25439 .text
25440 lxvd2x 1,2,3';;
25441 esac
25443 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for vector-scalar support" >&5
25444 $as_echo_n "checking assembler for vector-scalar support... " >&6; }
25445 if test "${gcc_cv_as_powerpc_vsx+set}" = set; then :
25446 $as_echo_n "(cached) " >&6
25447 else
25448 gcc_cv_as_powerpc_vsx=no
25449 if test $in_tree_gas = yes; then
25450 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 19 \) \* 1000 + 2`
25451 then gcc_cv_as_powerpc_vsx=yes
25453 elif test x$gcc_cv_as != x; then
25454 $as_echo "$conftest_s" > conftest.s
25455 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -a32 -o conftest.o conftest.s >&5'
25456 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
25457 (eval $ac_try) 2>&5
25458 ac_status=$?
25459 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25460 test $ac_status = 0; }; }
25461 then
25462 gcc_cv_as_powerpc_vsx=yes
25463 else
25464 echo "configure: failed program was" >&5
25465 cat conftest.s >&5
25467 rm -f conftest.o conftest.s
25470 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_powerpc_vsx" >&5
25471 $as_echo "$gcc_cv_as_powerpc_vsx" >&6; }
25472 if test $gcc_cv_as_powerpc_vsx = yes; then
25474 $as_echo "#define HAVE_AS_VSX 1" >>confdefs.h
25478 case $target in
25479 *-*-aix*) conftest_s=' .machine "pwr7"
25480 .csect .text[PR]
25481 popcntd 3,3';;
25482 *) conftest_s=' .machine power7
25483 .text
25484 popcntd 3,3';;
25485 esac
25487 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for popcntd support" >&5
25488 $as_echo_n "checking assembler for popcntd support... " >&6; }
25489 if test "${gcc_cv_as_powerpc_popcntd+set}" = set; then :
25490 $as_echo_n "(cached) " >&6
25491 else
25492 gcc_cv_as_powerpc_popcntd=no
25493 if test $in_tree_gas = yes; then
25494 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 19 \) \* 1000 + 2`
25495 then gcc_cv_as_powerpc_popcntd=yes
25497 elif test x$gcc_cv_as != x; then
25498 $as_echo "$conftest_s" > conftest.s
25499 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -a32 -o conftest.o conftest.s >&5'
25500 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
25501 (eval $ac_try) 2>&5
25502 ac_status=$?
25503 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25504 test $ac_status = 0; }; }
25505 then
25506 gcc_cv_as_powerpc_popcntd=yes
25507 else
25508 echo "configure: failed program was" >&5
25509 cat conftest.s >&5
25511 rm -f conftest.o conftest.s
25514 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_powerpc_popcntd" >&5
25515 $as_echo "$gcc_cv_as_powerpc_popcntd" >&6; }
25516 if test $gcc_cv_as_powerpc_popcntd = yes; then
25518 $as_echo "#define HAVE_AS_POPCNTD 1" >>confdefs.h
25522 case $target in
25523 *-*-aix*) conftest_s=' .machine "pwr8"
25524 .csect .text[PR]';;
25525 *) conftest_s=' .machine power8
25526 .text';;
25527 esac
25529 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for power8 support" >&5
25530 $as_echo_n "checking assembler for power8 support... " >&6; }
25531 if test "${gcc_cv_as_powerpc_power8+set}" = set; then :
25532 $as_echo_n "(cached) " >&6
25533 else
25534 gcc_cv_as_powerpc_power8=no
25535 if test $in_tree_gas = yes; then
25536 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 19 \) \* 1000 + 2`
25537 then gcc_cv_as_powerpc_power8=yes
25539 elif test x$gcc_cv_as != x; then
25540 $as_echo "$conftest_s" > conftest.s
25541 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -a32 -o conftest.o conftest.s >&5'
25542 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
25543 (eval $ac_try) 2>&5
25544 ac_status=$?
25545 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25546 test $ac_status = 0; }; }
25547 then
25548 gcc_cv_as_powerpc_power8=yes
25549 else
25550 echo "configure: failed program was" >&5
25551 cat conftest.s >&5
25553 rm -f conftest.o conftest.s
25556 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_powerpc_power8" >&5
25557 $as_echo "$gcc_cv_as_powerpc_power8" >&6; }
25558 if test $gcc_cv_as_powerpc_power8 = yes; then
25560 $as_echo "#define HAVE_AS_POWER8 1" >>confdefs.h
25564 case $target in
25565 *-*-aix*) conftest_s=' .csect .text[PR]
25566 lwsync';;
25567 *) conftest_s=' .text
25568 lwsync';;
25569 esac
25571 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for lwsync support" >&5
25572 $as_echo_n "checking assembler for lwsync support... " >&6; }
25573 if test "${gcc_cv_as_powerpc_lwsync+set}" = set; then :
25574 $as_echo_n "(cached) " >&6
25575 else
25576 gcc_cv_as_powerpc_lwsync=no
25577 if test $in_tree_gas = yes; then
25578 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 19 \) \* 1000 + 2`
25579 then gcc_cv_as_powerpc_lwsync=yes
25581 elif test x$gcc_cv_as != x; then
25582 $as_echo "$conftest_s" > conftest.s
25583 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -a32 -o conftest.o conftest.s >&5'
25584 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
25585 (eval $ac_try) 2>&5
25586 ac_status=$?
25587 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25588 test $ac_status = 0; }; }
25589 then
25590 gcc_cv_as_powerpc_lwsync=yes
25591 else
25592 echo "configure: failed program was" >&5
25593 cat conftest.s >&5
25595 rm -f conftest.o conftest.s
25598 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_powerpc_lwsync" >&5
25599 $as_echo "$gcc_cv_as_powerpc_lwsync" >&6; }
25600 if test $gcc_cv_as_powerpc_lwsync = yes; then
25602 $as_echo "#define HAVE_AS_LWSYNC 1" >>confdefs.h
25606 case $target in
25607 *-*-aix*) conftest_s=' .machine "476"
25608 .csect .text[PR]
25609 dci 0';;
25610 *) conftest_s=' .machine "476"
25611 .text
25612 dci 0';;
25613 esac
25615 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for data cache invalidate support" >&5
25616 $as_echo_n "checking assembler for data cache invalidate support... " >&6; }
25617 if test "${gcc_cv_as_powerpc_dci+set}" = set; then :
25618 $as_echo_n "(cached) " >&6
25619 else
25620 gcc_cv_as_powerpc_dci=no
25621 if test $in_tree_gas = yes; then
25622 if test $gcc_cv_gas_vers -ge `expr \( \( 9 \* 1000 \) + 99 \) \* 1000 + 0`
25623 then gcc_cv_as_powerpc_dci=yes
25625 elif test x$gcc_cv_as != x; then
25626 $as_echo "$conftest_s" > conftest.s
25627 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -a32 -o conftest.o conftest.s >&5'
25628 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
25629 (eval $ac_try) 2>&5
25630 ac_status=$?
25631 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25632 test $ac_status = 0; }; }
25633 then
25634 gcc_cv_as_powerpc_dci=yes
25635 else
25636 echo "configure: failed program was" >&5
25637 cat conftest.s >&5
25639 rm -f conftest.o conftest.s
25642 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_powerpc_dci" >&5
25643 $as_echo "$gcc_cv_as_powerpc_dci" >&6; }
25644 if test $gcc_cv_as_powerpc_dci = yes; then
25646 $as_echo "#define HAVE_AS_DCI 1" >>confdefs.h
25650 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .gnu_attribute support" >&5
25651 $as_echo_n "checking assembler for .gnu_attribute support... " >&6; }
25652 if test "${gcc_cv_as_powerpc_gnu_attribute+set}" = set; then :
25653 $as_echo_n "(cached) " >&6
25654 else
25655 gcc_cv_as_powerpc_gnu_attribute=no
25656 if test $in_tree_gas = yes; then
25657 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 18 \) \* 1000 + 0`
25658 then gcc_cv_as_powerpc_gnu_attribute=yes
25660 elif test x$gcc_cv_as != x; then
25661 $as_echo '.gnu_attribute 4,1' > conftest.s
25662 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
25663 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
25664 (eval $ac_try) 2>&5
25665 ac_status=$?
25666 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25667 test $ac_status = 0; }; }
25668 then
25669 gcc_cv_as_powerpc_gnu_attribute=yes
25670 else
25671 echo "configure: failed program was" >&5
25672 cat conftest.s >&5
25674 rm -f conftest.o conftest.s
25677 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_powerpc_gnu_attribute" >&5
25678 $as_echo "$gcc_cv_as_powerpc_gnu_attribute" >&6; }
25679 if test $gcc_cv_as_powerpc_gnu_attribute = yes; then
25681 $as_echo "#define HAVE_AS_GNU_ATTRIBUTE 1" >>confdefs.h
25685 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for tls marker support" >&5
25686 $as_echo_n "checking assembler for tls marker support... " >&6; }
25687 if test "${gcc_cv_as_powerpc_tls_markers+set}" = set; then :
25688 $as_echo_n "(cached) " >&6
25689 else
25690 gcc_cv_as_powerpc_tls_markers=no
25691 if test $in_tree_gas = yes; then
25692 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 20 \) \* 1000 + 0`
25693 then gcc_cv_as_powerpc_tls_markers=yes
25695 elif test x$gcc_cv_as != x; then
25696 $as_echo ' bl __tls_get_addr(x@tlsgd)' > conftest.s
25697 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
25698 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
25699 (eval $ac_try) 2>&5
25700 ac_status=$?
25701 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25702 test $ac_status = 0; }; }
25703 then
25704 gcc_cv_as_powerpc_tls_markers=yes
25705 else
25706 echo "configure: failed program was" >&5
25707 cat conftest.s >&5
25709 rm -f conftest.o conftest.s
25712 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_powerpc_tls_markers" >&5
25713 $as_echo "$gcc_cv_as_powerpc_tls_markers" >&6; }
25714 if test $gcc_cv_as_powerpc_tls_markers = yes; then
25716 $as_echo "#define HAVE_AS_TLS_MARKERS 1" >>confdefs.h
25720 case $target in
25721 *-*-aix*)
25722 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .ref support" >&5
25723 $as_echo_n "checking assembler for .ref support... " >&6; }
25724 if test "${gcc_cv_as_aix_ref+set}" = set; then :
25725 $as_echo_n "(cached) " >&6
25726 else
25727 gcc_cv_as_aix_ref=no
25728 if test $in_tree_gas = yes; then
25729 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 21 \) \* 1000 + 0`
25730 then gcc_cv_as_aix_ref=yes
25732 elif test x$gcc_cv_as != x; then
25733 $as_echo ' .csect stuff[rw]
25734 stuff:
25735 .long 1
25736 .extern sym
25737 .ref sym
25738 ' > conftest.s
25739 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
25740 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
25741 (eval $ac_try) 2>&5
25742 ac_status=$?
25743 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25744 test $ac_status = 0; }; }
25745 then
25746 gcc_cv_as_aix_ref=yes
25747 else
25748 echo "configure: failed program was" >&5
25749 cat conftest.s >&5
25751 rm -f conftest.o conftest.s
25754 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_aix_ref" >&5
25755 $as_echo "$gcc_cv_as_aix_ref" >&6; }
25756 if test $gcc_cv_as_aix_ref = yes; then
25758 $as_echo "#define HAVE_AS_REF 1" >>confdefs.h
25762 esac
25765 mips*-*-*)
25766 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for explicit relocation support" >&5
25767 $as_echo_n "checking assembler for explicit relocation support... " >&6; }
25768 if test "${gcc_cv_as_mips_explicit_relocs+set}" = set; then :
25769 $as_echo_n "(cached) " >&6
25770 else
25771 gcc_cv_as_mips_explicit_relocs=no
25772 if test $in_tree_gas = yes; then
25773 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 14 \) \* 1000 + 0`
25774 then gcc_cv_as_mips_explicit_relocs=yes
25776 elif test x$gcc_cv_as != x; then
25777 $as_echo ' lw $4,%gp_rel(foo)($4)' > conftest.s
25778 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
25779 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
25780 (eval $ac_try) 2>&5
25781 ac_status=$?
25782 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25783 test $ac_status = 0; }; }
25784 then
25785 gcc_cv_as_mips_explicit_relocs=yes
25786 else
25787 echo "configure: failed program was" >&5
25788 cat conftest.s >&5
25790 rm -f conftest.o conftest.s
25793 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_mips_explicit_relocs" >&5
25794 $as_echo "$gcc_cv_as_mips_explicit_relocs" >&6; }
25795 if test $gcc_cv_as_mips_explicit_relocs = yes; then
25796 if test x$target_cpu_default = x
25797 then target_cpu_default=MASK_EXPLICIT_RELOCS
25798 else target_cpu_default="($target_cpu_default)|MASK_EXPLICIT_RELOCS"
25801 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for -mno-shared support" >&5
25802 $as_echo_n "checking assembler for -mno-shared support... " >&6; }
25803 if test "${gcc_cv_as_mips_no_shared+set}" = set; then :
25804 $as_echo_n "(cached) " >&6
25805 else
25806 gcc_cv_as_mips_no_shared=no
25807 if test $in_tree_gas = yes; then
25808 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 16 \) \* 1000 + 0`
25809 then gcc_cv_as_mips_no_shared=yes
25811 elif test x$gcc_cv_as != x; then
25812 $as_echo 'nop' > conftest.s
25813 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -mno-shared -o conftest.o conftest.s >&5'
25814 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
25815 (eval $ac_try) 2>&5
25816 ac_status=$?
25817 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25818 test $ac_status = 0; }; }
25819 then
25820 gcc_cv_as_mips_no_shared=yes
25821 else
25822 echo "configure: failed program was" >&5
25823 cat conftest.s >&5
25825 rm -f conftest.o conftest.s
25828 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_mips_no_shared" >&5
25829 $as_echo "$gcc_cv_as_mips_no_shared" >&6; }
25830 if test $gcc_cv_as_mips_no_shared = yes; then
25832 $as_echo "#define HAVE_AS_NO_SHARED 1" >>confdefs.h
25836 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .gnu_attribute support" >&5
25837 $as_echo_n "checking assembler for .gnu_attribute support... " >&6; }
25838 if test "${gcc_cv_as_mips_gnu_attribute+set}" = set; then :
25839 $as_echo_n "(cached) " >&6
25840 else
25841 gcc_cv_as_mips_gnu_attribute=no
25842 if test $in_tree_gas = yes; then
25843 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 18 \) \* 1000 + 0`
25844 then gcc_cv_as_mips_gnu_attribute=yes
25846 elif test x$gcc_cv_as != x; then
25847 $as_echo '.gnu_attribute 4,1' > conftest.s
25848 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
25849 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
25850 (eval $ac_try) 2>&5
25851 ac_status=$?
25852 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25853 test $ac_status = 0; }; }
25854 then
25855 gcc_cv_as_mips_gnu_attribute=yes
25856 else
25857 echo "configure: failed program was" >&5
25858 cat conftest.s >&5
25860 rm -f conftest.o conftest.s
25863 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_mips_gnu_attribute" >&5
25864 $as_echo "$gcc_cv_as_mips_gnu_attribute" >&6; }
25865 if test $gcc_cv_as_mips_gnu_attribute = yes; then
25867 $as_echo "#define HAVE_AS_GNU_ATTRIBUTE 1" >>confdefs.h
25871 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .micromips support" >&5
25872 $as_echo_n "checking assembler for .micromips support... " >&6; }
25873 if test "${gcc_cv_as_micromips_support+set}" = set; then :
25874 $as_echo_n "(cached) " >&6
25875 else
25876 gcc_cv_as_micromips_support=no
25877 if test x$gcc_cv_as != x; then
25878 $as_echo '.set micromips' > conftest.s
25879 if { ac_try='$gcc_cv_as $gcc_cv_as_flags --fatal-warnings -o conftest.o conftest.s >&5'
25880 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
25881 (eval $ac_try) 2>&5
25882 ac_status=$?
25883 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25884 test $ac_status = 0; }; }
25885 then
25886 gcc_cv_as_micromips_support=yes
25887 else
25888 echo "configure: failed program was" >&5
25889 cat conftest.s >&5
25891 rm -f conftest.o conftest.s
25894 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_micromips_support" >&5
25895 $as_echo "$gcc_cv_as_micromips_support" >&6; }
25896 if test $gcc_cv_as_micromips_support = yes; then
25898 $as_echo "#define HAVE_GAS_MICROMIPS 1" >>confdefs.h
25902 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .dtprelword support" >&5
25903 $as_echo_n "checking assembler for .dtprelword support... " >&6; }
25904 if test "${gcc_cv_as_mips_dtprelword+set}" = set; then :
25905 $as_echo_n "(cached) " >&6
25906 else
25907 gcc_cv_as_mips_dtprelword=no
25908 if test $in_tree_gas = yes; then
25909 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 18 \) \* 1000 + 0`
25910 then gcc_cv_as_mips_dtprelword=yes
25912 elif test x$gcc_cv_as != x; then
25913 $as_echo '.section .tdata,"awT",@progbits
25915 .word 2
25916 .text
25917 .dtprelword x+0x8000' > conftest.s
25918 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
25919 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
25920 (eval $ac_try) 2>&5
25921 ac_status=$?
25922 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25923 test $ac_status = 0; }; }
25924 then
25925 gcc_cv_as_mips_dtprelword=yes
25926 else
25927 echo "configure: failed program was" >&5
25928 cat conftest.s >&5
25930 rm -f conftest.o conftest.s
25933 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_mips_dtprelword" >&5
25934 $as_echo "$gcc_cv_as_mips_dtprelword" >&6; }
25935 if test $gcc_cv_as_mips_dtprelword = yes; then
25937 $as_echo "#define HAVE_AS_DTPRELWORD 1" >>confdefs.h
25941 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for DSPR1 mult with four accumulators support" >&5
25942 $as_echo_n "checking assembler for DSPR1 mult with four accumulators support... " >&6; }
25943 if test "${gcc_cv_as_mips_dspr1_mult+set}" = set; then :
25944 $as_echo_n "(cached) " >&6
25945 else
25946 gcc_cv_as_mips_dspr1_mult=no
25947 if test x$gcc_cv_as != x; then
25948 $as_echo ' .set mips32r2
25949 .set nodspr2
25950 .set dsp
25951 madd $ac3,$4,$5
25952 maddu $ac3,$4,$5
25953 msub $ac3,$4,$5
25954 msubu $ac3,$4,$5
25955 mult $ac3,$4,$5
25956 multu $ac3,$4,$5' > conftest.s
25957 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
25958 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
25959 (eval $ac_try) 2>&5
25960 ac_status=$?
25961 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25962 test $ac_status = 0; }; }
25963 then
25964 gcc_cv_as_mips_dspr1_mult=yes
25965 else
25966 echo "configure: failed program was" >&5
25967 cat conftest.s >&5
25969 rm -f conftest.o conftest.s
25972 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_mips_dspr1_mult" >&5
25973 $as_echo "$gcc_cv_as_mips_dspr1_mult" >&6; }
25974 if test $gcc_cv_as_mips_dspr1_mult = yes; then
25976 $as_echo "#define HAVE_AS_DSPR1_MULT 1" >>confdefs.h
25980 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler and linker for explicit JALR relocation" >&5
25981 $as_echo_n "checking assembler and linker for explicit JALR relocation... " >&6; }
25982 gcc_cv_as_ld_jalr_reloc=no
25983 if test $gcc_cv_as_mips_explicit_relocs = yes; then
25984 if test $in_tree_ld = yes ; then
25985 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 \
25986 && test $in_tree_ld_is_elf = yes; then
25987 gcc_cv_as_ld_jalr_reloc=yes
25989 elif test x$gcc_cv_as != x -a x$gcc_cv_ld != x -a x$gcc_cv_objdump != x; then
25990 echo ' .ent x' > conftest.s
25991 echo 'x: ld $2,%got_disp(y)($3)' >> conftest.s
25992 echo ' ld $25,%call16(y)($28)' >> conftest.s
25993 echo ' .reloc 1f,R_MIPS_JALR,y' >> conftest.s
25994 echo '1: jalr $25' >> conftest.s
25995 echo ' .reloc 1f,R_MIPS_JALR,x' >> conftest.s
25996 echo '1: jalr $25' >> conftest.s
25997 echo ' .end x' >> conftest.s
25998 if $gcc_cv_as -o conftest.o conftest.s >/dev/null 2>&5 \
25999 && $gcc_cv_ld -shared -o conftest.so conftest.o >/dev/null 2>&5; then
26000 if $gcc_cv_objdump -d conftest.so | grep jalr >/dev/null 2>&1 \
26001 && $gcc_cv_objdump -d conftest.so | grep "bal.*<x>" >/dev/null 2>&1; then
26002 gcc_cv_as_ld_jalr_reloc=yes
26005 rm -f conftest.*
26008 if test $gcc_cv_as_ld_jalr_reloc = yes; then
26009 if test x$target_cpu_default = x; then
26010 target_cpu_default=MASK_RELAX_PIC_CALLS
26011 else
26012 target_cpu_default="($target_cpu_default)|MASK_RELAX_PIC_CALLS"
26015 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_ld_jalr_reloc" >&5
26016 $as_echo "$gcc_cv_as_ld_jalr_reloc" >&6; }
26018 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker for .eh_frame personality relaxation" >&5
26019 $as_echo_n "checking linker for .eh_frame personality relaxation... " >&6; }
26020 if test "${gcc_cv_ld_mips_personality_relaxation+set}" = set; then :
26021 $as_echo_n "(cached) " >&6
26022 else
26023 gcc_cv_ld_mips_personality_relaxation=no
26024 if test $in_tree_ld = yes ; then
26025 if test "$gcc_cv_gld_major_version" -eq 2 \
26026 -a "$gcc_cv_gld_minor_version" -ge 21 \
26027 -o "$gcc_cv_gld_major_version" -gt 2; then
26028 gcc_cv_ld_mips_personality_relaxation=yes
26030 elif test x$gcc_cv_as != x \
26031 -a x$gcc_cv_ld != x \
26032 -a x$gcc_cv_readelf != x ; then
26033 cat > conftest.s <<EOF
26034 .cfi_startproc
26035 .cfi_personality 0x80,indirect_ptr
26036 .ent test
26037 test:
26039 .end test
26040 .cfi_endproc
26042 .section .data,"aw",@progbits
26043 indirect_ptr:
26044 .dc.a personality
26046 if $gcc_cv_as -KPIC -o conftest.o conftest.s > /dev/null 2>&1 \
26047 && $gcc_cv_ld -o conftest conftest.o -shared > /dev/null 2>&1; then
26048 if $gcc_cv_readelf -d conftest 2>&1 \
26049 | grep TEXTREL > /dev/null 2>&1; then
26051 elif $gcc_cv_readelf --relocs conftest 2>&1 \
26052 | grep 'R_MIPS_REL32 *$' > /dev/null 2>&1; then
26054 else
26055 gcc_cv_ld_mips_personality_relaxation=yes
26059 rm -f conftest.s conftest.o conftest
26061 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_mips_personality_relaxation" >&5
26062 $as_echo "$gcc_cv_ld_mips_personality_relaxation" >&6; }
26063 if test x$gcc_cv_ld_mips_personality_relaxation = xyes; then
26065 $as_echo "#define HAVE_LD_PERSONALITY_RELAXATION 1" >>confdefs.h
26069 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for -mnan= support" >&5
26070 $as_echo_n "checking assembler for -mnan= support... " >&6; }
26071 if test "${gcc_cv_as_mips_nan+set}" = set; then :
26072 $as_echo_n "(cached) " >&6
26073 else
26074 gcc_cv_as_mips_nan=no
26075 if test x$gcc_cv_as != x; then
26076 $as_echo '' > conftest.s
26077 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -mnan=2008 -o conftest.o conftest.s >&5'
26078 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
26079 (eval $ac_try) 2>&5
26080 ac_status=$?
26081 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
26082 test $ac_status = 0; }; }
26083 then
26084 gcc_cv_as_mips_nan=yes
26085 else
26086 echo "configure: failed program was" >&5
26087 cat conftest.s >&5
26089 rm -f conftest.o conftest.s
26092 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_mips_nan" >&5
26093 $as_echo "$gcc_cv_as_mips_nan" >&6; }
26094 if test $gcc_cv_as_mips_nan = yes; then
26096 $as_echo "#define HAVE_AS_NAN 1" >>confdefs.h
26099 if test x$gcc_cv_as_mips_nan = xno \
26100 && test x$with_nan != x; then
26101 as_fn_error "Requesting --with-nan= requires assembler support for -mnan=" "$LINENO" 5
26104 esac
26106 # Mips and HP-UX need the GNU assembler.
26107 # Linux on IA64 might be able to use the Intel assembler.
26109 case "$target" in
26110 mips*-*-* | *-*-hpux* )
26111 if test x$gas_flag = xyes \
26112 || test x"$host" != x"$build" \
26113 || test ! -x "$gcc_cv_as" \
26114 || "$gcc_cv_as" -v < /dev/null 2>&1 | grep GNU > /dev/null; then
26116 else
26117 echo "*** This configuration requires the GNU assembler" >&2
26118 exit 1
26121 esac
26123 # ??? Not all targets support dwarf2 debug_line, even within a version
26124 # of gas. Moreover, we need to emit a valid instruction to trigger any
26125 # info to the output file. So, as supported targets are added to gas 2.11,
26126 # add some instruction here to (also) show we expect this might work.
26127 # ??? Once 2.11 is released, probably need to add first known working
26128 # version to the per-target configury.
26129 case "$cpu_type" in
26130 aarch64 | alpha | arm | avr | bfin | cris | i386 | m32c | m68k | microblaze \
26131 | mips | pa | rs6000 | score | sparc | spu | tilegx | tilepro | xstormy16 \
26132 | xtensa)
26133 insn="nop"
26135 ia64 | s390)
26136 insn="nop 0"
26138 mmix)
26139 insn="swym 0"
26141 esac
26142 if test x"$insn" != x; then
26143 conftest_s="\
26144 .file 1 \"conftest.s\"
26145 .loc 1 3 0
26146 $insn"
26147 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for dwarf2 debug_line support" >&5
26148 $as_echo_n "checking assembler for dwarf2 debug_line support... " >&6; }
26149 if test "${gcc_cv_as_dwarf2_debug_line+set}" = set; then :
26150 $as_echo_n "(cached) " >&6
26151 else
26152 gcc_cv_as_dwarf2_debug_line=no
26153 if test $in_tree_gas = yes; then
26154 if test $in_tree_gas_is_elf = yes \
26155 && test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 11 \) \* 1000 + 0`
26156 then gcc_cv_as_dwarf2_debug_line=yes
26158 elif test x$gcc_cv_as != x; then
26159 $as_echo "$conftest_s" > conftest.s
26160 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
26161 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
26162 (eval $ac_try) 2>&5
26163 ac_status=$?
26164 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
26165 test $ac_status = 0; }; }
26166 then
26167 if test x$gcc_cv_objdump != x \
26168 && $gcc_cv_objdump -h conftest.o 2> /dev/null \
26169 | grep debug_line > /dev/null 2>&1; then
26170 gcc_cv_as_dwarf2_debug_line=yes
26172 else
26173 echo "configure: failed program was" >&5
26174 cat conftest.s >&5
26176 rm -f conftest.o conftest.s
26179 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_dwarf2_debug_line" >&5
26180 $as_echo "$gcc_cv_as_dwarf2_debug_line" >&6; }
26183 # The .debug_line file table must be in the exact order that
26184 # we specified the files, since these indices are also used
26185 # by DW_AT_decl_file. Approximate this test by testing if
26186 # the assembler bitches if the same index is assigned twice.
26187 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for buggy dwarf2 .file directive" >&5
26188 $as_echo_n "checking assembler for buggy dwarf2 .file directive... " >&6; }
26189 if test "${gcc_cv_as_dwarf2_file_buggy+set}" = set; then :
26190 $as_echo_n "(cached) " >&6
26191 else
26192 gcc_cv_as_dwarf2_file_buggy=no
26193 if test x$gcc_cv_as != x; then
26194 $as_echo ' .file 1 "foo.s"
26195 .file 1 "bar.s"' > conftest.s
26196 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
26197 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
26198 (eval $ac_try) 2>&5
26199 ac_status=$?
26200 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
26201 test $ac_status = 0; }; }
26202 then
26203 gcc_cv_as_dwarf2_file_buggy=yes
26204 else
26205 echo "configure: failed program was" >&5
26206 cat conftest.s >&5
26208 rm -f conftest.o conftest.s
26211 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_dwarf2_file_buggy" >&5
26212 $as_echo "$gcc_cv_as_dwarf2_file_buggy" >&6; }
26215 if test $gcc_cv_as_dwarf2_debug_line = yes \
26216 && test $gcc_cv_as_dwarf2_file_buggy = no; then
26218 $as_echo "#define HAVE_AS_DWARF2_DEBUG_LINE 1" >>confdefs.h
26222 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for --gdwarf2 option" >&5
26223 $as_echo_n "checking assembler for --gdwarf2 option... " >&6; }
26224 if test "${gcc_cv_as_gdwarf2_flag+set}" = set; then :
26225 $as_echo_n "(cached) " >&6
26226 else
26227 gcc_cv_as_gdwarf2_flag=no
26228 if test $in_tree_gas = yes; then
26229 if test $in_tree_gas_is_elf = yes \
26230 && test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 11 \) \* 1000 + 0`
26231 then gcc_cv_as_gdwarf2_flag=yes
26233 elif test x$gcc_cv_as != x; then
26234 $as_echo "$insn" > conftest.s
26235 if { ac_try='$gcc_cv_as $gcc_cv_as_flags --gdwarf2 -o conftest.o conftest.s >&5'
26236 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
26237 (eval $ac_try) 2>&5
26238 ac_status=$?
26239 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
26240 test $ac_status = 0; }; }
26241 then
26242 gcc_cv_as_gdwarf2_flag=yes
26243 else
26244 echo "configure: failed program was" >&5
26245 cat conftest.s >&5
26247 rm -f conftest.o conftest.s
26250 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_gdwarf2_flag" >&5
26251 $as_echo "$gcc_cv_as_gdwarf2_flag" >&6; }
26252 if test $gcc_cv_as_gdwarf2_flag = yes; then
26254 $as_echo "#define HAVE_AS_GDWARF2_DEBUG_FLAG 1" >>confdefs.h
26258 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for --gstabs option" >&5
26259 $as_echo_n "checking assembler for --gstabs option... " >&6; }
26260 if test "${gcc_cv_as_gstabs_flag+set}" = set; then :
26261 $as_echo_n "(cached) " >&6
26262 else
26263 gcc_cv_as_gstabs_flag=no
26264 if test $in_tree_gas = yes; then
26265 if test $in_tree_gas_is_elf = yes \
26266 && test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 11 \) \* 1000 + 0`
26267 then gcc_cv_as_gstabs_flag=yes
26269 elif test x$gcc_cv_as != x; then
26270 $as_echo "$insn" > conftest.s
26271 if { ac_try='$gcc_cv_as $gcc_cv_as_flags --gstabs -o conftest.o conftest.s >&5'
26272 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
26273 (eval $ac_try) 2>&5
26274 ac_status=$?
26275 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
26276 test $ac_status = 0; }; }
26277 then
26278 # The native Solaris 9/Intel assembler doesn't understand --gstabs
26279 # and warns about it, but still exits successfully. So check for
26280 # this.
26281 if { ac_try='$gcc_cv_as --gstabs -o conftest.o conftest.s 2>&1 | grep -i warning > /dev/null'
26282 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
26283 (eval $ac_try) 2>&5
26284 ac_status=$?
26285 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
26286 test $ac_status = 0; }; }
26287 then :
26288 else gcc_cv_as_gstabs_flag=yes
26290 else
26291 echo "configure: failed program was" >&5
26292 cat conftest.s >&5
26294 rm -f conftest.o conftest.s
26297 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_gstabs_flag" >&5
26298 $as_echo "$gcc_cv_as_gstabs_flag" >&6; }
26299 if test $gcc_cv_as_gstabs_flag = yes; then
26301 $as_echo "#define HAVE_AS_GSTABS_DEBUG_FLAG 1" >>confdefs.h
26305 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for --debug-prefix-map option" >&5
26306 $as_echo_n "checking assembler for --debug-prefix-map option... " >&6; }
26307 if test "${gcc_cv_as_debug_prefix_map_flag+set}" = set; then :
26308 $as_echo_n "(cached) " >&6
26309 else
26310 gcc_cv_as_debug_prefix_map_flag=no
26311 if test $in_tree_gas = yes; then
26312 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 18 \) \* 1000 + 0`
26313 then gcc_cv_as_debug_prefix_map_flag=yes
26315 elif test x$gcc_cv_as != x; then
26316 $as_echo "$insn" > conftest.s
26317 if { ac_try='$gcc_cv_as $gcc_cv_as_flags --debug-prefix-map /a=/b -o conftest.o conftest.s >&5'
26318 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
26319 (eval $ac_try) 2>&5
26320 ac_status=$?
26321 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
26322 test $ac_status = 0; }; }
26323 then
26324 gcc_cv_as_debug_prefix_map_flag=yes
26325 else
26326 echo "configure: failed program was" >&5
26327 cat conftest.s >&5
26329 rm -f conftest.o conftest.s
26332 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_debug_prefix_map_flag" >&5
26333 $as_echo "$gcc_cv_as_debug_prefix_map_flag" >&6; }
26334 if test $gcc_cv_as_debug_prefix_map_flag = yes; then
26336 $as_echo "#define HAVE_AS_DEBUG_PREFIX_MAP 1" >>confdefs.h
26341 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .lcomm with alignment" >&5
26342 $as_echo_n "checking assembler for .lcomm with alignment... " >&6; }
26343 if test "${gcc_cv_as_lcomm_with_alignment+set}" = set; then :
26344 $as_echo_n "(cached) " >&6
26345 else
26346 gcc_cv_as_lcomm_with_alignment=no
26347 if test x$gcc_cv_as != x; then
26348 $as_echo '.lcomm bar,4,16' > conftest.s
26349 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
26350 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
26351 (eval $ac_try) 2>&5
26352 ac_status=$?
26353 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
26354 test $ac_status = 0; }; }
26355 then
26356 gcc_cv_as_lcomm_with_alignment=yes
26357 else
26358 echo "configure: failed program was" >&5
26359 cat conftest.s >&5
26361 rm -f conftest.o conftest.s
26364 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_lcomm_with_alignment" >&5
26365 $as_echo "$gcc_cv_as_lcomm_with_alignment" >&6; }
26366 if test $gcc_cv_as_lcomm_with_alignment = yes; then
26368 $as_echo "#define HAVE_GAS_LCOMM_WITH_ALIGNMENT 1" >>confdefs.h
26372 # Check whether --enable-gnu-unique-object was given.
26373 if test "${enable_gnu_unique_object+set}" = set; then :
26374 enableval=$enable_gnu_unique_object; case $enable_gnu_unique_object in
26375 yes | no) ;;
26376 *) as_fn_error "'$enable_gnu_unique_object' is an invalid value for --enable-gnu-unique-object.
26377 Valid choices are 'yes' and 'no'." "$LINENO" 5 ;;
26378 esac
26379 else
26380 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for gnu_unique_object" >&5
26381 $as_echo_n "checking assembler for gnu_unique_object... " >&6; }
26382 if test "${gcc_cv_as_gnu_unique_object+set}" = set; then :
26383 $as_echo_n "(cached) " >&6
26384 else
26385 gcc_cv_as_gnu_unique_object=no
26386 if test $in_tree_gas = yes; then
26387 if test $in_tree_gas_is_elf = yes \
26388 && test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 19 \) \* 1000 + 52`
26389 then gcc_cv_as_gnu_unique_object=yes
26391 elif test x$gcc_cv_as != x; then
26392 $as_echo '.type foo, '$target_type_format_char'gnu_unique_object' > conftest.s
26393 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
26394 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
26395 (eval $ac_try) 2>&5
26396 ac_status=$?
26397 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
26398 test $ac_status = 0; }; }
26399 then
26400 gcc_cv_as_gnu_unique_object=yes
26401 else
26402 echo "configure: failed program was" >&5
26403 cat conftest.s >&5
26405 rm -f conftest.o conftest.s
26408 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_gnu_unique_object" >&5
26409 $as_echo "$gcc_cv_as_gnu_unique_object" >&6; }
26410 if test $gcc_cv_as_gnu_unique_object = yes; then
26411 # We need to unquote above to to use the definition from config.gcc.
26412 # Also check for ld.so support, i.e. glibc 2.11 or higher.
26413 if test x$host = x$build -a x$host = x$target &&
26414 ldd --version 2>/dev/null &&
26415 glibcver=`ldd --version 2>/dev/null | sed 's/.* //;q'`; then
26416 glibcmajor=`expr "$glibcver" : "\([0-9]*\)"`
26417 glibcminor=`expr "$glibcver" : "[2-9]*\.\([0-9]*\)"`
26418 glibcnum=`expr $glibcmajor \* 1000 + $glibcminor`
26419 if test "$glibcnum" -ge 2011 ; then
26420 enable_gnu_unique_object=yes
26426 if test x$enable_gnu_unique_object = xyes; then
26428 $as_echo "#define HAVE_GAS_GNU_UNIQUE_OBJECT 1" >>confdefs.h
26432 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for tolerance to line number 0" >&5
26433 $as_echo_n "checking assembler for tolerance to line number 0... " >&6; }
26434 if test "${gcc_cv_as_line_zero+set}" = set; then :
26435 $as_echo_n "(cached) " >&6
26436 else
26437 gcc_cv_as_line_zero=no
26438 if test $in_tree_gas = yes; then
26439 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 16 \) \* 1000 + 91`
26440 then gcc_cv_as_line_zero=yes
26442 elif test "x$gcc_cv_as" != x; then
26443 { echo '# 1 "test.s" 1'; echo '# 0 "" 2'; } > conftest.s
26444 if { ac_try='$gcc_cv_as -o conftest.o conftest.s >&5 2>conftest.out'
26445 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
26446 (eval $ac_try) 2>&5
26447 ac_status=$?
26448 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
26449 test $ac_status = 0; }; } &&
26450 test "x`cat conftest.out`" = x
26451 then
26452 gcc_cv_as_line_zero=yes
26453 else
26454 echo "configure: failed program was" >&5
26455 cat conftest.s >&5
26456 echo "configure: error output was" >&5
26457 cat conftest.out >&5
26459 rm -f conftest.o conftest.s conftest.out
26462 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_line_zero" >&5
26463 $as_echo "$gcc_cv_as_line_zero" >&6; }
26464 if test "x$gcc_cv_as_line_zero" = xyes; then
26466 $as_echo "#define HAVE_AS_LINE_ZERO 1" >>confdefs.h
26470 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker PT_GNU_EH_FRAME support" >&5
26471 $as_echo_n "checking linker PT_GNU_EH_FRAME support... " >&6; }
26472 gcc_cv_ld_eh_frame_hdr=no
26473 if test $in_tree_ld = yes ; then
26474 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 \
26475 && test $in_tree_ld_is_elf = yes; then
26476 gcc_cv_ld_eh_frame_hdr=yes
26478 elif test x$gcc_cv_ld != x; then
26479 if echo "$ld_ver" | grep GNU > /dev/null; then
26480 # Check if linker supports --eh-frame-hdr option
26481 if $gcc_cv_ld --help 2>/dev/null | grep eh-frame-hdr > /dev/null; then
26482 gcc_cv_ld_eh_frame_hdr=yes
26484 else
26485 case "$target" in
26486 *-*-solaris2*)
26487 # Sun ld has various bugs in .eh_frame_hdr support before version 1.2251.
26488 if test "$ld_vers_major" -gt 1 || test "$ld_vers_minor" -ge 2251; then
26489 gcc_cv_ld_eh_frame_hdr=yes
26492 esac
26496 if test x"$gcc_cv_ld_eh_frame_hdr" = xyes; then
26498 $as_echo "#define HAVE_LD_EH_FRAME_HDR 1" >>confdefs.h
26501 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_eh_frame_hdr" >&5
26502 $as_echo "$gcc_cv_ld_eh_frame_hdr" >&6; }
26504 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker CIEv3 in .eh_frame support" >&5
26505 $as_echo_n "checking linker CIEv3 in .eh_frame support... " >&6; }
26506 gcc_cv_ld_eh_frame_ciev3=no
26507 if test $in_tree_ld = yes ; then
26508 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 \
26509 && test $in_tree_ld_is_elf = yes; then
26510 gcc_cv_ld_eh_frame_ciev3=yes
26512 elif test x$gcc_cv_ld != x; then
26513 if echo "$ld_ver" | grep GNU > /dev/null; then
26514 gcc_cv_ld_eh_frame_ciev3=yes
26515 if test 0"$ld_date" -lt 20040513; then
26516 if test -n "$ld_date"; then
26517 # If there was date string, but was earlier than 2004-05-13, fail
26518 gcc_cv_ld_eh_frame_ciev3=no
26519 elif test "$ld_vers_major" -lt 2; then
26520 gcc_cv_ld_eh_frame_ciev3=no
26521 elif test "$ld_vers_major" -eq 2 -a "$ld_vers_minor" -lt 16; then
26522 gcc_cv_ld_eh_frame_ciev3=no
26525 else
26526 case "$target" in
26527 *-*-solaris2*)
26528 # Sun ld added support for CIE v3 in .eh_frame in Solaris 11.1.
26529 if test "$ld_vers_major" -gt 1 || test "$ld_vers_minor" -ge 2324; then
26530 gcc_cv_ld_eh_frame_ciev3=yes
26533 esac
26537 cat >>confdefs.h <<_ACEOF
26538 #define HAVE_LD_EH_FRAME_CIEV3 `if test x"$gcc_cv_ld_eh_frame_ciev3" = xyes; then echo 1; else echo 0; fi`
26539 _ACEOF
26541 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_eh_frame_ciev3" >&5
26542 $as_echo "$gcc_cv_ld_eh_frame_ciev3" >&6; }
26544 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker position independent executable support" >&5
26545 $as_echo_n "checking linker position independent executable support... " >&6; }
26546 gcc_cv_ld_pie=no
26547 if test $in_tree_ld = yes ; then
26548 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 \
26549 && test $in_tree_ld_is_elf = yes; then
26550 gcc_cv_ld_pie=yes
26552 elif test x$gcc_cv_ld != x; then
26553 # Check if linker supports -pie option
26554 if $gcc_cv_ld --help 2>/dev/null | grep -- -pie > /dev/null; then
26555 gcc_cv_ld_pie=yes
26558 if test x"$gcc_cv_ld_pie" = xyes; then
26560 $as_echo "#define HAVE_LD_PIE 1" >>confdefs.h
26563 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_pie" >&5
26564 $as_echo "$gcc_cv_ld_pie" >&6; }
26566 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker EH-compatible garbage collection of sections" >&5
26567 $as_echo_n "checking linker EH-compatible garbage collection of sections... " >&6; }
26568 gcc_cv_ld_eh_gc_sections=no
26569 if test $in_tree_ld = yes ; then
26570 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 \
26571 && test $in_tree_ld_is_elf = yes; then
26572 gcc_cv_ld_eh_gc_sections=yes
26574 elif test x$gcc_cv_as != x -a x$gcc_cv_ld != x -a x$gcc_cv_objdump != x ; then
26575 cat > conftest.s <<EOF
26576 .section .text
26577 .globl _start
26578 .type _start, @function
26579 _start:
26580 .long foo
26581 .size _start, .-_start
26582 .section .text.foo,"ax",@progbits
26583 .type foo, @function
26584 foo:
26585 .long 0
26586 .size foo, .-foo
26587 .section .gcc_except_table.foo,"a",@progbits
26588 .L0:
26589 .long 0
26590 .section .eh_frame,"a",@progbits
26591 .long .L0
26593 if $gcc_cv_as -o conftest.o conftest.s > /dev/null 2>&1; then
26594 if $gcc_cv_ld -o conftest conftest.o --entry=_start --gc-sections 2>&1 \
26595 | grep "gc-sections option ignored" > /dev/null; then
26596 gcc_cv_ld_eh_gc_sections=no
26597 elif $gcc_cv_objdump -h conftest 2> /dev/null \
26598 | grep gcc_except_table > /dev/null; then
26599 gcc_cv_ld_eh_gc_sections=yes
26600 # If no COMDAT groups, the compiler will emit .gnu.linkonce.t. sections.
26601 if test x$gcc_cv_as_comdat_group != xyes; then
26602 gcc_cv_ld_eh_gc_sections=no
26603 cat > conftest.s <<EOF
26604 .section .text
26605 .globl _start
26606 .type _start, @function
26607 _start:
26608 .long foo
26609 .size _start, .-_start
26610 .section .gnu.linkonce.t.foo,"ax",@progbits
26611 .type foo, @function
26612 foo:
26613 .long 0
26614 .size foo, .-foo
26615 .section .gcc_except_table.foo,"a",@progbits
26616 .L0:
26617 .long 0
26618 .section .eh_frame,"a",@progbits
26619 .long .L0
26621 if $gcc_cv_as -o conftest.o conftest.s > /dev/null 2>&1; then
26622 if $gcc_cv_ld -o conftest conftest.o --entry=_start --gc-sections 2>&1 \
26623 | grep "gc-sections option ignored" > /dev/null; then
26624 gcc_cv_ld_eh_gc_sections=no
26625 elif $gcc_cv_objdump -h conftest 2> /dev/null \
26626 | grep gcc_except_table > /dev/null; then
26627 gcc_cv_ld_eh_gc_sections=yes
26633 rm -f conftest.s conftest.o conftest
26635 case "$target" in
26636 hppa*-*-linux*)
26637 # ??? This apparently exposes a binutils bug with PC-relative relocations.
26638 gcc_cv_ld_eh_gc_sections=no
26640 esac
26641 if test x$gcc_cv_ld_eh_gc_sections = xyes; then
26643 $as_echo "#define HAVE_LD_EH_GC_SECTIONS 1" >>confdefs.h
26646 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_eh_gc_sections" >&5
26647 $as_echo "$gcc_cv_ld_eh_gc_sections" >&6; }
26649 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker EH garbage collection of sections bug" >&5
26650 $as_echo_n "checking linker EH garbage collection of sections bug... " >&6; }
26651 gcc_cv_ld_eh_gc_sections_bug=no
26652 if test $in_tree_ld = yes ; then
26653 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 \
26654 && test $in_tree_ld_is_elf = yes; then
26655 gcc_cv_ld_eh_gc_sections_bug=yes
26657 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
26658 gcc_cv_ld_eh_gc_sections_bug=yes
26659 cat > conftest.s <<EOF
26660 .section .text
26661 .globl _start
26662 .type _start, @function
26663 _start:
26664 .long foo
26665 .size _start, .-_start
26666 .section .text.startup.foo,"ax",@progbits
26667 .type foo, @function
26668 foo:
26669 .long 0
26670 .size foo, .-foo
26671 .section .gcc_except_table.foo,"a",@progbits
26672 .L0:
26673 .long 0
26674 .section .eh_frame,"a",@progbits
26675 .long .L0
26677 if $gcc_cv_as -o conftest.o conftest.s > /dev/null 2>&1; then
26678 if $gcc_cv_ld -o conftest conftest.o --entry=_start --gc-sections 2>&1 \
26679 | grep "gc-sections option ignored" > /dev/null; then
26681 elif $gcc_cv_objdump -h conftest 2> /dev/null \
26682 | grep gcc_except_table > /dev/null; then
26683 gcc_cv_ld_eh_gc_sections_bug=no
26686 rm -f conftest.s conftest.o conftest
26688 if test x$gcc_cv_ld_eh_gc_sections_bug = xyes; then
26690 $as_echo "#define HAVE_LD_EH_GC_SECTIONS_BUG 1" >>confdefs.h
26693 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_eh_gc_sections_bug" >&5
26694 $as_echo "$gcc_cv_ld_eh_gc_sections_bug" >&6; }
26696 # --------
26697 # UNSORTED
26698 # --------
26700 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker --as-needed support" >&5
26701 $as_echo_n "checking linker --as-needed support... " >&6; }
26702 if test "${gcc_cv_ld_as_needed+set}" = set; then :
26703 $as_echo_n "(cached) " >&6
26704 else
26705 gcc_cv_ld_as_needed=no
26706 gcc_cv_ld_as_needed_option='--as-needed'
26707 gcc_cv_ld_no_as_needed_option='--no-as-needed'
26708 if test $in_tree_ld = yes ; then
26709 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 \
26710 && test $in_tree_ld_is_elf = yes; then
26711 gcc_cv_ld_as_needed=yes
26713 elif test x$gcc_cv_ld != x; then
26714 # Check if linker supports --as-needed and --no-as-needed options
26715 if $gcc_cv_ld --help 2>/dev/null | grep as-needed > /dev/null; then
26716 gcc_cv_ld_as_needed=yes
26717 else
26718 case "$target" in
26719 # Solaris 2 ld always supports -z ignore/-z record.
26720 *-*-solaris2*)
26721 gcc_cv_ld_as_needed=yes
26722 gcc_cv_ld_as_needed_option="-z ignore"
26723 gcc_cv_ld_no_as_needed_option="-z record"
26725 esac
26728 # --as-needed/-z ignore can only be used if libgcc_s.so.1 uses
26729 # dl_iterate_phdr, i.e. since Solaris 11.
26730 case "$target" in
26731 *-*-solaris2.1[1-9]*)
26732 case "$target" in
26733 i?86-*-* | x86_64-*-*)
26734 if echo "$ld_ver" | grep GNU > /dev/null; then
26735 # Doesn't work with gld on Solaris/x86 due to PR ld/12320.
26736 gcc_cv_ld_as_needed=no
26739 esac
26741 *-*-solaris2*)
26742 gcc_cv_ld_as_needed=no
26744 esac
26747 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_as_needed" >&5
26748 $as_echo "$gcc_cv_ld_as_needed" >&6; }
26749 if test x"$gcc_cv_ld_as_needed" = xyes; then
26751 $as_echo "#define HAVE_LD_AS_NEEDED 1" >>confdefs.h
26754 cat >>confdefs.h <<_ACEOF
26755 #define LD_AS_NEEDED_OPTION "$gcc_cv_ld_as_needed_option"
26756 _ACEOF
26759 cat >>confdefs.h <<_ACEOF
26760 #define LD_NO_AS_NEEDED_OPTION "$gcc_cv_ld_no_as_needed_option"
26761 _ACEOF
26765 case "$target:$tm_file" in
26766 powerpc64-*-freebsd* | powerpc64*-*-linux* | powerpc*-*-linux*rs6000/biarch64.h*)
26767 case "$target" in
26768 *le-*-linux*)
26769 emul_name="-melf64lppc"
26771 *-*-linux*)
26772 emul_name="-melf64ppc"
26774 *-*-freebsd*)
26775 emul_name="-melf64ppc_fbsd"
26777 esac
26778 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker support for omitting dot symbols" >&5
26779 $as_echo_n "checking linker support for omitting dot symbols... " >&6; }
26780 if test "${gcc_cv_ld_no_dot_syms+set}" = set; then :
26781 $as_echo_n "(cached) " >&6
26782 else
26783 gcc_cv_ld_no_dot_syms=no
26784 if test x"$ld_is_gold" = xyes; then
26785 gcc_cv_ld_no_dot_syms=yes
26786 elif test $in_tree_ld = yes ; then
26787 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
26788 gcc_cv_ld_no_dot_syms=yes
26790 elif test x$gcc_cv_as != x -a x$gcc_cv_ld != x ; then
26791 cat > conftest1.s <<EOF
26792 .text
26793 bl .foo
26795 cat > conftest2.s <<EOF
26796 .section ".opd","aw"
26797 .align 3
26798 .globl foo
26799 .type foo,@function
26800 foo:
26801 .quad .LEfoo,.TOC.@tocbase,0
26802 .text
26803 .LEfoo:
26805 .size foo,.-.LEfoo
26807 if $gcc_cv_as -a64 -o conftest1.o conftest1.s > /dev/null 2>&1 \
26808 && $gcc_cv_as -a64 -o conftest2.o conftest2.s > /dev/null 2>&1 \
26809 && $gcc_cv_ld $emul_name -o conftest conftest1.o conftest2.o > /dev/null 2>&1; then
26810 gcc_cv_ld_no_dot_syms=yes
26812 rm -f conftest conftest1.o conftest2.o conftest1.s conftest2.s
26816 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_no_dot_syms" >&5
26817 $as_echo "$gcc_cv_ld_no_dot_syms" >&6; }
26818 if test x"$gcc_cv_ld_no_dot_syms" = xyes; then
26820 $as_echo "#define HAVE_LD_NO_DOT_SYMS 1" >>confdefs.h
26824 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker large toc support" >&5
26825 $as_echo_n "checking linker large toc support... " >&6; }
26826 if test "${gcc_cv_ld_large_toc+set}" = set; then :
26827 $as_echo_n "(cached) " >&6
26828 else
26829 gcc_cv_ld_large_toc=no
26830 if test x"$ld_is_gold" = xyes; then
26831 gcc_cv_ld_large_toc=yes
26832 elif test $in_tree_ld = yes ; then
26833 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
26834 gcc_cv_ld_large_toc=yes
26836 elif test x$gcc_cv_as != x -a x$gcc_cv_ld != x ; then
26837 cat > conftest.s <<EOF
26838 .section ".tbss","awT",@nobits
26839 .align 3
26840 ie0: .space 8
26841 .global _start
26842 .text
26843 _start:
26844 addis 9,13,ie0@got@tprel@ha
26845 ld 9,ie0@got@tprel@l(9)
26847 if $gcc_cv_as -a64 -o conftest.o conftest.s > /dev/null 2>&1 \
26848 && $gcc_cv_ld $emul_name --no-toc-sort -o conftest conftest.o > /dev/null 2>&1; then
26849 gcc_cv_ld_large_toc=yes
26851 rm -f conftest conftest.o conftest.s
26855 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_large_toc" >&5
26856 $as_echo "$gcc_cv_ld_large_toc" >&6; }
26857 if test x"$gcc_cv_ld_large_toc" = xyes; then
26859 $as_echo "#define HAVE_LD_LARGE_TOC 1" >>confdefs.h
26863 esac
26865 case "$target" in
26866 *-*-aix*)
26867 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker large toc support" >&5
26868 $as_echo_n "checking linker large toc support... " >&6; }
26869 if test "${gcc_cv_ld_large_toc+set}" = set; then :
26870 $as_echo_n "(cached) " >&6
26871 else
26872 gcc_cv_ld_large_toc=no
26873 if test x$gcc_cv_as != x ; then
26874 cat > conftest.s <<EOF
26875 .toc
26876 LC..1:
26877 .tc a[TC],a[RW]
26878 .extern a[RW]
26879 .csect .text[PR]
26880 .largetoctest:
26881 addis 9,LC..1@u(2)
26882 ld 3,LC..1@l(9)
26884 if $gcc_cv_as -a64 -o conftest.o conftest.s > /dev/null 2>&1; then
26885 gcc_cv_ld_large_toc=yes
26887 rm -f conftest conftest.o conftest.s
26891 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_large_toc" >&5
26892 $as_echo "$gcc_cv_ld_large_toc" >&6; }
26893 if test x"$gcc_cv_ld_large_toc" = xyes; then
26895 $as_echo "#define HAVE_LD_LARGE_TOC 1" >>confdefs.h
26899 esac
26901 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker --build-id support" >&5
26902 $as_echo_n "checking linker --build-id support... " >&6; }
26903 if test "${gcc_cv_ld_buildid+set}" = set; then :
26904 $as_echo_n "(cached) " >&6
26905 else
26906 gcc_cv_ld_buildid=no
26907 if test $in_tree_ld = yes ; then
26908 if test "$gcc_cv_gld_major_version" -eq 2 -a \
26909 "$gcc_cv_gld_minor_version" -ge 18 -o \
26910 "$gcc_cv_gld_major_version" -gt 2 \
26911 && test $in_tree_ld_is_elf = yes; then
26912 gcc_cv_ld_buildid=yes
26914 elif test x$gcc_cv_ld != x; then
26915 if $gcc_cv_ld --help 2>/dev/null | grep build-id > /dev/null; then
26916 gcc_cv_ld_buildid=yes
26920 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_buildid" >&5
26921 $as_echo "$gcc_cv_ld_buildid" >&6; }
26922 if test x"$gcc_cv_ld_buildid" = xyes; then
26924 $as_echo "#define HAVE_LD_BUILDID 1" >>confdefs.h
26928 # Check whether --enable-linker-build-id was given.
26929 if test "${enable_linker_build_id+set}" = set; then :
26930 enableval=$enable_linker_build_id;
26931 else
26932 enable_linker_build_id=no
26936 if test x"$enable_linker_build_id" = xyes; then
26937 if test x"$gcc_cv_ld_buildid" = xyes; then
26939 $as_echo "#define ENABLE_LD_BUILDID 1" >>confdefs.h
26941 else
26942 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: --build-id is not supported by your linker; --enable-linker-build-id ignored" >&5
26943 $as_echo "$as_me: WARNING: --build-id is not supported by your linker; --enable-linker-build-id ignored" >&2;}
26947 # In binutils 2.21, GNU ld gained support for new emulations fully
26948 # supporting the Solaris 2 ABI. Detect their presence in the linker used.
26949 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker *_sol2 emulation support" >&5
26950 $as_echo_n "checking linker *_sol2 emulation support... " >&6; }
26951 if test "${gcc_cv_ld_sol2_emulation+set}" = set; then :
26952 $as_echo_n "(cached) " >&6
26953 else
26954 gcc_cv_ld_sol2_emulation=no
26955 if test $in_tree_ld = yes ; then
26956 if test "$gcc_cv_gld_major_version" -eq 2 -a \
26957 "$gcc_cv_gld_minor_version" -ge 21 -o \
26958 "$gcc_cv_gld_major_version" -gt 2 \
26959 && test $in_tree_ld_is_elf = yes; then
26960 gcc_cv_ld_sol2_emulation=yes
26962 elif test x$gcc_cv_ld != x; then
26963 if $gcc_cv_ld -V 2>/dev/null | sed -e '1,/Supported emulations/d;q' | \
26964 grep _sol2 > /dev/null; then
26965 gcc_cv_ld_sol2_emulation=yes
26969 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_sol2_emulation" >&5
26970 $as_echo "$gcc_cv_ld_sol2_emulation" >&6; }
26971 if test x"$gcc_cv_ld_sol2_emulation" = xyes; then
26973 $as_echo "#define HAVE_LD_SOL2_EMULATION 1" >>confdefs.h
26977 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker --sysroot support" >&5
26978 $as_echo_n "checking linker --sysroot support... " >&6; }
26979 if test "${gcc_cv_ld_sysroot+set}" = set; then :
26980 $as_echo_n "(cached) " >&6
26981 else
26982 gcc_cv_ld_sysroot=no
26983 if test $in_tree_ld = yes ; then
26984 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
26985 gcc_cv_ld_sysroot=yes
26987 elif test x$gcc_cv_ld != x; then
26988 if $gcc_cv_ld --help 2>/dev/null | grep sysroot > /dev/null; then
26989 gcc_cv_ld_sysroot=yes
26993 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_sysroot" >&5
26994 $as_echo "$gcc_cv_ld_sysroot" >&6; }
26995 if test x"$gcc_cv_ld_sysroot" = xyes; then
26997 $as_echo "#define HAVE_LD_SYSROOT 1" >>confdefs.h
27001 if test x$with_sysroot = x && test x$host = x$target \
27002 && test "$prefix" != "/usr" && test "x$prefix" != "x$local_prefix" \
27003 && test "$prefix" != "NONE"; then
27005 cat >>confdefs.h <<_ACEOF
27006 #define PREFIX_INCLUDE_DIR "$prefix/include"
27007 _ACEOF
27011 if test x$host != x$target || test "x$TARGET_SYSTEM_ROOT" != x; then
27012 if test "x$with_headers" != x; then
27013 target_header_dir=$with_headers
27014 elif test "x$with_sysroot" = x; then
27015 target_header_dir="${test_exec_prefix}/${target_noncanonical}/sys-include"
27016 elif test "x$with_build_sysroot" != "x"; then
27017 target_header_dir="${with_build_sysroot}${native_system_header_dir}"
27018 elif test "x$with_sysroot" = xyes; then
27019 target_header_dir="${test_exec_prefix}/${target_noncanonical}/sys-root${native_system_header_dir}"
27020 else
27021 target_header_dir="${with_sysroot}${native_system_header_dir}"
27023 else
27024 target_header_dir=${native_system_header_dir}
27027 # Test for stack protector support in target C library.
27028 { $as_echo "$as_me:${as_lineno-$LINENO}: checking __stack_chk_fail in target C library" >&5
27029 $as_echo_n "checking __stack_chk_fail in target C library... " >&6; }
27030 if test "${gcc_cv_libc_provides_ssp+set}" = set; then :
27031 $as_echo_n "(cached) " >&6
27032 else
27033 gcc_cv_libc_provides_ssp=no
27034 case "$target" in
27035 *-*-linux* | *-*-kfreebsd*-gnu | *-*-knetbsd*-gnu)
27036 # glibc 2.4 and later provides __stack_chk_fail and
27037 # either __stack_chk_guard, or TLS access to stack guard canary.
27038 if test -f $target_header_dir/features.h \
27039 && $EGREP '^[ ]*#[ ]*define[ ]+__GNU_LIBRARY__[ ]+([1-9][0-9]|[6-9])' \
27040 $target_header_dir/features.h > /dev/null; then
27041 if $EGREP '^[ ]*#[ ]*define[ ]+__GLIBC__[ ]+([1-9][0-9]|[3-9])' \
27042 $target_header_dir/features.h > /dev/null; then
27043 gcc_cv_libc_provides_ssp=yes
27044 elif $EGREP '^[ ]*#[ ]*define[ ]+__GLIBC__[ ]+2' \
27045 $target_header_dir/features.h > /dev/null \
27046 && $EGREP '^[ ]*#[ ]*define[ ]+__GLIBC_MINOR__[ ]+([1-9][0-9]|[4-9])' \
27047 $target_header_dir/features.h > /dev/null; then
27048 gcc_cv_libc_provides_ssp=yes
27049 elif $EGREP '^[ ]*#[ ]*define[ ]+__UCLIBC__[ ]+1' \
27050 $target_header_dir/features.h > /dev/null && \
27051 test -f $target_header_dir/bits/uClibc_config.h && \
27052 $EGREP '^[ ]*#[ ]*define[ ]+__UCLIBC_HAS_SSP__[ ]+1' \
27053 $target_header_dir/bits/uClibc_config.h > /dev/null; then
27054 gcc_cv_libc_provides_ssp=yes
27056 # all versions of Bionic support stack protector
27057 elif test -f $target_header_dir/sys/cdefs.h \
27058 && $EGREP '^[ ]*#[ ]*define[ ]+__BIONIC__[ ]+1' \
27059 $target_header_dir/sys/cdefs.h > /dev/null; then
27060 gcc_cv_libc_provides_ssp=yes
27063 *-*-gnu*)
27064 # Avoid complicated tests (see
27065 # <http://gcc.gnu.org/ml/gcc/2008-10/msg00130.html>) and for now
27066 # simply assert that glibc does provide this, which is true for all
27067 # realistically usable GNU/Hurd configurations.
27068 gcc_cv_libc_provides_ssp=yes;;
27069 *-*-darwin* | *-*-freebsd*)
27070 ac_fn_c_check_func "$LINENO" "__stack_chk_fail" "ac_cv_func___stack_chk_fail"
27071 if test "x$ac_cv_func___stack_chk_fail" = x""yes; then :
27072 gcc_cv_libc_provides_ssp=yes
27073 else
27074 echo "no __stack_chk_fail on this target"
27078 *) gcc_cv_libc_provides_ssp=no ;;
27079 esac
27081 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_libc_provides_ssp" >&5
27082 $as_echo "$gcc_cv_libc_provides_ssp" >&6; }
27084 if test x$gcc_cv_libc_provides_ssp = xyes; then
27086 $as_echo "#define TARGET_LIBC_PROVIDES_SSP 1" >>confdefs.h
27090 # Test for <sys/sdt.h> on the target.
27092 { $as_echo "$as_me:${as_lineno-$LINENO}: checking sys/sdt.h in the target C library" >&5
27093 $as_echo_n "checking sys/sdt.h in the target C library... " >&6; }
27094 have_sys_sdt_h=no
27095 if test -f $target_header_dir/sys/sdt.h; then
27096 have_sys_sdt_h=yes
27098 $as_echo "#define HAVE_SYS_SDT_H 1" >>confdefs.h
27101 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_sys_sdt_h" >&5
27102 $as_echo "$have_sys_sdt_h" >&6; }
27104 # Check if TFmode long double should be used by default or not.
27105 # Some glibc targets used DFmode long double, but with glibc 2.4
27106 # and later they can use TFmode.
27107 case "$target" in
27108 powerpc*-*-linux* | \
27109 sparc*-*-linux* | \
27110 s390*-*-linux* | \
27111 alpha*-*-linux*)
27113 # Check whether --with-long-double-128 was given.
27114 if test "${with_long_double_128+set}" = set; then :
27115 withval=$with_long_double_128; gcc_cv_target_ldbl128="$with_long_double_128"
27116 else
27117 gcc_cv_target_ldbl128=no
27118 grep '^[ ]*#[ ]*define[ ][ ]*__LONG_DOUBLE_MATH_OPTIONAL' \
27119 $target_header_dir/bits/wordsize.h > /dev/null 2>&1 \
27120 && gcc_cv_target_ldbl128=yes
27125 esac
27126 if test x$gcc_cv_target_ldbl128 = xyes; then
27128 $as_echo "#define TARGET_DEFAULT_LONG_DOUBLE_128 1" >>confdefs.h
27132 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dl_iterate_phdr in target C library" >&5
27133 $as_echo_n "checking dl_iterate_phdr in target C library... " >&6; }
27134 gcc_cv_target_dl_iterate_phdr=unknown
27135 case "$target" in
27136 # Restrict to Solaris 11+. While most of the Solaris 11 linker changes
27137 # were backported to Solaris 10 Update 10, dl_iterate_phdr only lives in
27138 # libdl there, both complicating its use and breaking compatibility
27139 # between Solaris 10 updates.
27140 *-*-solaris2.1[1-9]*)
27141 # <link.h> needs both a dl_iterate_phdr declaration and support for
27142 # compilation with largefile support.
27143 if grep dl_iterate_phdr $target_header_dir/link.h > /dev/null 2>&1 \
27144 && grep 'large file capable' $target_header_dir/link.h > /dev/null 2>&1; then
27145 gcc_cv_target_dl_iterate_phdr=yes
27146 else
27147 gcc_cv_target_dl_iterate_phdr=no
27150 esac
27152 if test x$gcc_cv_target_dl_iterate_phdr = xyes; then
27154 $as_echo "#define TARGET_DL_ITERATE_PHDR 1" >>confdefs.h
27157 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_target_dl_iterate_phdr" >&5
27158 $as_echo "$gcc_cv_target_dl_iterate_phdr" >&6; }
27160 # We no longer support different GC mechanisms. Emit an error if
27161 # the user configures with --with-gc.
27163 # Check whether --with-gc was given.
27164 if test "${with_gc+set}" = set; then :
27165 withval=$with_gc; as_fn_error "Configure option --with-gc is only supported up to GCC 4.7.x" "$LINENO" 5
27169 # Libraries to use on the host. This will normally be set by the top
27170 # level Makefile. Here we simply capture the value for our Makefile.
27171 if test -z "${HOST_LIBS+set}"; then
27172 HOST_LIBS=
27176 # Use the system's zlib library.
27177 zlibdir=-L../zlib
27178 zlibinc="-I\$(srcdir)/../zlib"
27180 # Check whether --with-system-zlib was given.
27181 if test "${with_system_zlib+set}" = set; then :
27182 withval=$with_system_zlib; zlibdir=
27183 zlibinc=
27191 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable maintainer-specific portions of Makefiles" >&5
27192 $as_echo_n "checking whether to enable maintainer-specific portions of Makefiles... " >&6; }
27193 # Check whether --enable-maintainer-mode was given.
27194 if test "${enable_maintainer_mode+set}" = set; then :
27195 enableval=$enable_maintainer_mode; maintainer_mode=$enableval
27196 else
27197 maintainer_mode=no
27201 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $maintainer_mode" >&5
27202 $as_echo "$maintainer_mode" >&6; }
27204 if test "$maintainer_mode" = "yes"; then
27205 MAINT=''
27206 else
27207 MAINT='#'
27211 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to avoid linking multiple front-ends at once" >&5
27212 $as_echo_n "checking whether to avoid linking multiple front-ends at once... " >&6; }
27213 # Check whether --enable-link-mutex was given.
27214 if test "${enable_link_mutex+set}" = set; then :
27215 enableval=$enable_link_mutex; do_link_mutex=$enableval
27216 else
27217 do_link_mutex=no
27220 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $do_link_mutex" >&5
27221 $as_echo "$do_link_mutex" >&6; }
27223 if test "$do_link_mutex" = "yes"; then
27224 DO_LINK_MUTEX=true
27225 else
27226 DO_LINK_MUTEX=false
27230 # --------------
27231 # Language hooks
27232 # --------------
27234 # Make empty files to contain the specs and options for each language.
27235 # Then add #include lines to for a compiler that has specs and/or options.
27237 subdirs=
27238 lang_opt_files=
27239 lang_specs_files=
27240 lang_tree_files=
27241 # These (without "all_") are set in each config-lang.in.
27242 # `language' must be a single word so is spelled singularly.
27243 all_languages=
27244 all_compilers=
27245 all_outputs='Makefile'
27246 # List of language makefile fragments.
27247 all_lang_makefrags=
27248 # Additional files for gengtype
27249 all_gtfiles="$target_gtfiles"
27251 # These are the languages that are set in --enable-languages,
27252 # and are available in the GCC tree.
27253 all_selected_languages=
27255 # Add the language fragments.
27256 # Languages are added via two mechanisms. Some information must be
27257 # recorded in makefile variables, these are defined in config-lang.in.
27258 # We accumulate them and plug them into the main Makefile.
27259 # The other mechanism is a set of hooks for each of the main targets
27260 # like `clean', `install', etc.
27262 language_hooks="Make-hooks"
27264 for lang in ${srcdir}/*/config-lang.in
27266 test "$lang" = "${srcdir}/*/config-lang.in" && continue
27268 lang_alias=`sed -n -e 's,^language=['"'"'"'"]\(.*\)["'"'"'"'].*$,\1,p' -e 's,^language=\([^ ]*\).*$,\1,p' $lang`
27269 if test "x$lang_alias" = x
27270 then
27271 echo "$lang doesn't set \$language." 1>&2
27272 exit 1
27274 subdir="`echo $lang | sed -e 's,^.*/\([^/]*\)/config-lang.in$,\1,'`"
27275 subdirs="$subdirs $subdir"
27277 # $gcc_subdir is where the gcc integration files are to be found
27278 # for a language, both for internal compiler purposes (compiler
27279 # sources implementing front-end to GCC tree converters), and for
27280 # build infrastructure purposes (Make-lang.in, etc.)
27282 # This will be <subdir> (relative to $srcdir) if a line like
27283 # gcc_subdir="<subdir>" or gcc_subdir=<subdir>
27284 # is found in <langdir>/config-lang.in, and will remain <langdir>
27285 # otherwise.
27287 # Except for the language alias (fetched above), the regular
27288 # "config-lang.in" contents are always retrieved from $gcc_subdir,
27289 # so a <langdir>/config-lang.in setting gcc_subdir typically sets
27290 # only this and the language alias.
27292 gcc_subdir=`sed -n -e 's,^gcc_subdir=['"'"'"'"]\(.*\)["'"'"'"'].*$,\1,p' -e 's,^gcc_subdir=\([^ ]*\).*$,\1,p' $lang`
27293 if [ "$gcc_subdir" = "" ]; then
27294 gcc_subdir="$subdir"
27297 case ",$enable_languages," in
27298 *,$lang_alias,*)
27299 all_selected_languages="$all_selected_languages $lang_alias"
27300 if test -f $srcdir/$gcc_subdir/lang-specs.h; then
27301 lang_specs_files="$lang_specs_files $srcdir/$gcc_subdir/lang-specs.h"
27304 esac
27306 language=
27307 boot_language=
27308 compilers=
27309 outputs=
27310 gtfiles=
27311 subdir_requires=
27312 . ${srcdir}/$gcc_subdir/config-lang.in
27313 if test "x$language" = x
27314 then
27315 echo "${srcdir}/$gcc_subdir/config-lang.in doesn't set \$language." 1>&2
27316 exit 1
27319 ok=:
27320 case ",$enable_languages," in
27321 *,$lang_alias,*) ;;
27323 for i in $subdir_requires; do
27324 test -f "${srcdir}/$i/config-lang.in" && continue
27325 ok=false
27326 break
27327 done
27329 esac
27330 $ok || continue
27332 all_lang_makefrags="$all_lang_makefrags \$(srcdir)/$gcc_subdir/Make-lang.in"
27333 if test -f $srcdir/$gcc_subdir/lang.opt; then
27334 lang_opt_files="$lang_opt_files $srcdir/$gcc_subdir/lang.opt"
27335 all_opt_files="$all_opt_files $srcdir/$gcc_subdir/lang.opt"
27337 if test -f $srcdir/$gcc_subdir/$subdir-tree.def; then
27338 lang_tree_files="$lang_tree_files $srcdir/$gcc_subdir/$subdir-tree.def"
27340 all_languages="$all_languages $language"
27341 all_compilers="$all_compilers $compilers"
27342 all_outputs="$all_outputs $outputs"
27343 all_gtfiles="$all_gtfiles [$subdir] $gtfiles"
27344 case ",$enable_languages," in
27345 *,lto,*)
27347 $as_echo "#define ENABLE_LTO 1" >>confdefs.h
27349 enable_lto=yes
27352 *) ;;
27353 esac
27354 done
27356 check_languages=
27357 for language in $all_selected_languages
27359 check_languages="$check_languages check-$language"
27360 done
27362 # We link each language in with a set of hooks, reached indirectly via
27363 # lang.${target}. Only do so for selected languages.
27365 rm -f Make-hooks
27366 touch Make-hooks
27367 target_list="all.cross start.encap rest.encap tags \
27368 install-common install-man install-info install-pdf install-html dvi \
27369 pdf html uninstall info man srcextra srcman srcinfo \
27370 mostlyclean clean distclean maintainer-clean install-plugin"
27372 for t in $target_list
27375 for lang in $all_selected_languages
27377 x="$x $lang.$t"
27378 done
27379 echo "lang.$t: $x" >> Make-hooks
27380 done
27382 # --------
27383 # Option include files
27384 # --------
27386 ${AWK} -f $srcdir/opt-include.awk $all_opt_files > option-includes.mk
27387 option_includes="option-includes.mk"
27390 # --------
27391 # UNSORTED
27392 # --------
27394 # Create .gdbinit.
27396 echo "dir ." > .gdbinit
27397 echo "dir ${srcdir}" >> .gdbinit
27398 if test x$gdb_needs_out_file_path = xyes
27399 then
27400 echo "dir ${srcdir}/config/"`dirname ${out_file}` >> .gdbinit
27402 if test "x$subdirs" != x; then
27403 for s in $subdirs
27405 echo "dir ${srcdir}/$s" >> .gdbinit
27406 done
27408 echo "source ${srcdir}/gdbinit.in" >> .gdbinit
27409 echo "python import sys; sys.path.append('${srcdir}'); import gdbhooks" >> .gdbinit
27411 gcc_tooldir='$(libsubdir)/$(libsubdir_to_prefix)$(target_noncanonical)'
27415 # Find a directory in which to install a shared libgcc.
27417 # Check whether --enable-version-specific-runtime-libs was given.
27418 if test "${enable_version_specific_runtime_libs+set}" = set; then :
27419 enableval=$enable_version_specific_runtime_libs;
27423 # Substitute configuration variables
27486 # Echo link setup.
27487 if test x${build} = x${host} ; then
27488 if test x${host} = x${target} ; then
27489 echo "Links are now set up to build a native compiler for ${target}." 1>&2
27490 else
27491 echo "Links are now set up to build a cross-compiler" 1>&2
27492 echo " from ${host} to ${target}." 1>&2
27494 else
27495 if test x${host} = x${target} ; then
27496 echo "Links are now set up to build (on ${build}) a native compiler" 1>&2
27497 echo " for ${target}." 1>&2
27498 else
27499 echo "Links are now set up to build (on ${build}) a cross-compiler" 1>&2
27500 echo " from ${host} to ${target}." 1>&2
27512 if test "x${CLOOGLIBS}" != "x" ; then
27514 $as_echo "#define HAVE_cloog 1" >>confdefs.h
27518 # Check for plugin support
27519 # Check whether --enable-plugin was given.
27520 if test "${enable_plugin+set}" = set; then :
27521 enableval=$enable_plugin; enable_plugin=$enableval
27522 else
27523 enable_plugin=yes; default_plugin=yes
27527 pluginlibs=
27529 case "${host}" in
27530 *-*-darwin*)
27531 if test x$build = x$host; then
27532 export_sym_check="nm${exeext} -g"
27533 elif test x$host = x$target; then
27534 export_sym_check="$gcc_cv_nm -g"
27535 else
27536 export_sym_check=
27540 if test x$build = x$host; then
27541 export_sym_check="objdump${exeext} -T"
27542 elif test x$host = x$target; then
27543 export_sym_check="$gcc_cv_objdump -T"
27544 else
27545 export_sym_check=
27548 esac
27550 if test x"$enable_plugin" = x"yes"; then
27552 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for exported symbols" >&5
27553 $as_echo_n "checking for exported symbols... " >&6; }
27554 if test "x$export_sym_check" != x; then
27555 echo "int main() {return 0;} int foobar() {return 0;}" > conftest.c
27556 ${CC} ${CFLAGS} ${LDFLAGS} conftest.c -o conftest > /dev/null 2>&1
27557 if $export_sym_check conftest | grep foobar > /dev/null; then
27558 : # No need to use a flag
27559 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
27560 $as_echo "yes" >&6; }
27561 else
27562 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
27563 $as_echo "yes" >&6; }
27564 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -rdynamic" >&5
27565 $as_echo_n "checking for -rdynamic... " >&6; }
27566 ${CC} ${CFLAGS} ${LDFLAGS} -rdynamic conftest.c -o conftest > /dev/null 2>&1
27567 if $export_sym_check conftest | grep foobar > /dev/null; then
27568 plugin_rdynamic=yes
27569 pluginlibs="-rdynamic"
27570 else
27571 plugin_rdynamic=no
27572 enable_plugin=no
27574 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $plugin_rdynamic" >&5
27575 $as_echo "$plugin_rdynamic" >&6; }
27577 else
27578 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unable to check" >&5
27579 $as_echo "unable to check" >&6; }
27582 # Check -ldl
27583 saved_LIBS="$LIBS"
27584 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing dlopen" >&5
27585 $as_echo_n "checking for library containing dlopen... " >&6; }
27586 if test "${ac_cv_search_dlopen+set}" = set; then :
27587 $as_echo_n "(cached) " >&6
27588 else
27589 ac_func_search_save_LIBS=$LIBS
27590 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
27591 /* end confdefs.h. */
27593 /* Override any GCC internal prototype to avoid an error.
27594 Use char because int might match the return type of a GCC
27595 builtin and then its argument prototype would still apply. */
27596 #ifdef __cplusplus
27597 extern "C"
27598 #endif
27599 char dlopen ();
27601 main ()
27603 return dlopen ();
27605 return 0;
27607 _ACEOF
27608 for ac_lib in '' dl; do
27609 if test -z "$ac_lib"; then
27610 ac_res="none required"
27611 else
27612 ac_res=-l$ac_lib
27613 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
27615 if ac_fn_c_try_link "$LINENO"; then :
27616 ac_cv_search_dlopen=$ac_res
27618 rm -f core conftest.err conftest.$ac_objext \
27619 conftest$ac_exeext
27620 if test "${ac_cv_search_dlopen+set}" = set; then :
27621 break
27623 done
27624 if test "${ac_cv_search_dlopen+set}" = set; then :
27626 else
27627 ac_cv_search_dlopen=no
27629 rm conftest.$ac_ext
27630 LIBS=$ac_func_search_save_LIBS
27632 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_dlopen" >&5
27633 $as_echo "$ac_cv_search_dlopen" >&6; }
27634 ac_res=$ac_cv_search_dlopen
27635 if test "$ac_res" != no; then :
27636 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
27640 if test x"$ac_cv_search_dlopen" = x"-ldl"; then
27641 pluginlibs="$pluginlibs -ldl"
27643 LIBS="$saved_LIBS"
27645 # Check that we can build shared objects with -fPIC -shared
27646 saved_LDFLAGS="$LDFLAGS"
27647 saved_CFLAGS="$CFLAGS"
27648 case "${host}" in
27649 *-*-darwin*)
27650 CFLAGS=`echo $CFLAGS | sed s/-mdynamic-no-pic//g`
27651 CFLAGS="$CFLAGS -fPIC"
27652 LDFLAGS="$LDFLAGS -shared -undefined dynamic_lookup"
27655 CFLAGS="$CFLAGS -fPIC"
27656 LDFLAGS="$LDFLAGS -fPIC -shared"
27658 esac
27659 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -fPIC -shared" >&5
27660 $as_echo_n "checking for -fPIC -shared... " >&6; }
27661 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
27662 /* end confdefs.h. */
27663 extern int X;
27665 main ()
27667 return X == 0;
27669 return 0;
27671 _ACEOF
27672 if ac_fn_c_try_link "$LINENO"; then :
27673 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
27674 $as_echo "yes" >&6; }; have_pic_shared=yes
27675 else
27676 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
27677 $as_echo "no" >&6; }; have_pic_shared=no
27679 rm -f core conftest.err conftest.$ac_objext \
27680 conftest$ac_exeext conftest.$ac_ext
27681 if test x"$have_pic_shared" != x"yes" -o x"$ac_cv_search_dlopen" = x"no"; then
27682 pluginlibs=
27683 enable_plugin=no
27685 LDFLAGS="$saved_LDFLAGS"
27686 CFLAGS="$saved_CFLAGS"
27688 # If plugin support had been requested but not available, fail.
27689 if test x"$enable_plugin" = x"no" ; then
27690 if test x"$default_plugin" != x"yes"; then
27691 as_fn_error "
27692 Building GCC with plugin support requires a host that supports
27693 -fPIC, -shared, -ldl and -rdynamic." "$LINENO" 5
27700 if test x"$enable_plugin" = x"yes"; then
27702 $as_echo "#define ENABLE_PLUGIN 1" >>confdefs.h
27707 # Enable --enable-host-shared
27708 # Check whether --enable-host-shared was given.
27709 if test "${enable_host_shared+set}" = set; then :
27710 enableval=$enable_host_shared; PICFLAG=-fPIC
27711 else
27712 PICFLAG=
27719 # Check whether --enable-libquadmath-support was given.
27720 if test "${enable_libquadmath_support+set}" = set; then :
27721 enableval=$enable_libquadmath_support; ENABLE_LIBQUADMATH_SUPPORT=$enableval
27722 else
27723 ENABLE_LIBQUADMATH_SUPPORT=yes
27726 if test "${ENABLE_LIBQUADMATH_SUPPORT}" != "no" ; then
27728 $as_echo "#define ENABLE_LIBQUADMATH_SUPPORT 1" >>confdefs.h
27733 # Specify what hash style to use by default.
27735 # Check whether --with-linker-hash-style was given.
27736 if test "${with_linker_hash_style+set}" = set; then :
27737 withval=$with_linker_hash_style; case x"$withval" in
27738 xsysv)
27739 LINKER_HASH_STYLE=sysv
27741 xgnu)
27742 LINKER_HASH_STYLE=gnu
27744 xboth)
27745 LINKER_HASH_STYLE=both
27748 as_fn_error "$withval is an invalid option to --with-linker-hash-style" "$LINENO" 5
27750 esac
27751 else
27752 LINKER_HASH_STYLE=''
27755 if test x"${LINKER_HASH_STYLE}" != x; then
27757 cat >>confdefs.h <<_ACEOF
27758 #define LINKER_HASH_STYLE "$LINKER_HASH_STYLE"
27759 _ACEOF
27763 # Configure the subdirectories
27764 # AC_CONFIG_SUBDIRS($subdirs)
27766 # Create the Makefile
27767 # and configure language subdirectories
27768 ac_config_files="$ac_config_files $all_outputs"
27771 ac_config_commands="$ac_config_commands default"
27773 cat >confcache <<\_ACEOF
27774 # This file is a shell script that caches the results of configure
27775 # tests run on this system so they can be shared between configure
27776 # scripts and configure runs, see configure's option --config-cache.
27777 # It is not useful on other systems. If it contains results you don't
27778 # want to keep, you may remove or edit it.
27780 # config.status only pays attention to the cache file if you give it
27781 # the --recheck option to rerun configure.
27783 # `ac_cv_env_foo' variables (set or unset) will be overridden when
27784 # loading this file, other *unset* `ac_cv_foo' will be assigned the
27785 # following values.
27787 _ACEOF
27789 # The following way of writing the cache mishandles newlines in values,
27790 # but we know of no workaround that is simple, portable, and efficient.
27791 # So, we kill variables containing newlines.
27792 # Ultrix sh set writes to stderr and can't be redirected directly,
27793 # and sets the high bit in the cache file unless we assign to the vars.
27795 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
27796 eval ac_val=\$$ac_var
27797 case $ac_val in #(
27798 *${as_nl}*)
27799 case $ac_var in #(
27800 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
27801 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
27802 esac
27803 case $ac_var in #(
27804 _ | IFS | as_nl) ;; #(
27805 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
27806 *) { eval $ac_var=; unset $ac_var;} ;;
27807 esac ;;
27808 esac
27809 done
27811 (set) 2>&1 |
27812 case $as_nl`(ac_space=' '; set) 2>&1` in #(
27813 *${as_nl}ac_space=\ *)
27814 # `set' does not quote correctly, so add quotes: double-quote
27815 # substitution turns \\\\ into \\, and sed turns \\ into \.
27816 sed -n \
27817 "s/'/'\\\\''/g;
27818 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
27819 ;; #(
27821 # `set' quotes correctly as required by POSIX, so do not add quotes.
27822 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
27824 esac |
27825 sort
27827 sed '
27828 /^ac_cv_env_/b end
27829 t clear
27830 :clear
27831 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
27832 t end
27833 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
27834 :end' >>confcache
27835 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
27836 if test -w "$cache_file"; then
27837 test "x$cache_file" != "x/dev/null" &&
27838 { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
27839 $as_echo "$as_me: updating cache $cache_file" >&6;}
27840 cat confcache >$cache_file
27841 else
27842 { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
27843 $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
27846 rm -f confcache
27848 test "x$prefix" = xNONE && prefix=$ac_default_prefix
27849 # Let make expand exec_prefix.
27850 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
27852 DEFS=-DHAVE_CONFIG_H
27854 ac_libobjs=
27855 ac_ltlibobjs=
27856 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
27857 # 1. Remove the extension, and $U if already installed.
27858 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
27859 ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
27860 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
27861 # will be set to the directory where LIBOBJS objects are built.
27862 as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
27863 as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
27864 done
27865 LIBOBJS=$ac_libobjs
27867 LTLIBOBJS=$ac_ltlibobjs
27872 : ${CONFIG_STATUS=./config.status}
27873 ac_write_fail=0
27874 ac_clean_files_save=$ac_clean_files
27875 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
27876 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
27877 $as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
27878 as_write_fail=0
27879 cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
27880 #! $SHELL
27881 # Generated by $as_me.
27882 # Run this file to recreate the current configuration.
27883 # Compiler output produced by configure, useful for debugging
27884 # configure, is in config.log if it exists.
27886 debug=false
27887 ac_cs_recheck=false
27888 ac_cs_silent=false
27890 SHELL=\${CONFIG_SHELL-$SHELL}
27891 export SHELL
27892 _ASEOF
27893 cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
27894 ## -------------------- ##
27895 ## M4sh Initialization. ##
27896 ## -------------------- ##
27898 # Be more Bourne compatible
27899 DUALCASE=1; export DUALCASE # for MKS sh
27900 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
27901 emulate sh
27902 NULLCMD=:
27903 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
27904 # is contrary to our usage. Disable this feature.
27905 alias -g '${1+"$@"}'='"$@"'
27906 setopt NO_GLOB_SUBST
27907 else
27908 case `(set -o) 2>/dev/null` in #(
27909 *posix*) :
27910 set -o posix ;; #(
27911 *) :
27913 esac
27917 as_nl='
27919 export as_nl
27920 # Printing a long string crashes Solaris 7 /usr/bin/printf.
27921 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
27922 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
27923 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
27924 # Prefer a ksh shell builtin over an external printf program on Solaris,
27925 # but without wasting forks for bash or zsh.
27926 if test -z "$BASH_VERSION$ZSH_VERSION" \
27927 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
27928 as_echo='print -r --'
27929 as_echo_n='print -rn --'
27930 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
27931 as_echo='printf %s\n'
27932 as_echo_n='printf %s'
27933 else
27934 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
27935 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
27936 as_echo_n='/usr/ucb/echo -n'
27937 else
27938 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
27939 as_echo_n_body='eval
27940 arg=$1;
27941 case $arg in #(
27942 *"$as_nl"*)
27943 expr "X$arg" : "X\\(.*\\)$as_nl";
27944 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
27945 esac;
27946 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
27948 export as_echo_n_body
27949 as_echo_n='sh -c $as_echo_n_body as_echo'
27951 export as_echo_body
27952 as_echo='sh -c $as_echo_body as_echo'
27955 # The user is always right.
27956 if test "${PATH_SEPARATOR+set}" != set; then
27957 PATH_SEPARATOR=:
27958 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
27959 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
27960 PATH_SEPARATOR=';'
27965 # IFS
27966 # We need space, tab and new line, in precisely that order. Quoting is
27967 # there to prevent editors from complaining about space-tab.
27968 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
27969 # splitting by setting IFS to empty value.)
27970 IFS=" "" $as_nl"
27972 # Find who we are. Look in the path if we contain no directory separator.
27973 case $0 in #((
27974 *[\\/]* ) as_myself=$0 ;;
27975 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
27976 for as_dir in $PATH
27978 IFS=$as_save_IFS
27979 test -z "$as_dir" && as_dir=.
27980 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
27981 done
27982 IFS=$as_save_IFS
27985 esac
27986 # We did not find ourselves, most probably we were run as `sh COMMAND'
27987 # in which case we are not to be found in the path.
27988 if test "x$as_myself" = x; then
27989 as_myself=$0
27991 if test ! -f "$as_myself"; then
27992 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
27993 exit 1
27996 # Unset variables that we do not need and which cause bugs (e.g. in
27997 # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
27998 # suppresses any "Segmentation fault" message there. '((' could
27999 # trigger a bug in pdksh 5.2.14.
28000 for as_var in BASH_ENV ENV MAIL MAILPATH
28001 do eval test x\${$as_var+set} = xset \
28002 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
28003 done
28004 PS1='$ '
28005 PS2='> '
28006 PS4='+ '
28008 # NLS nuisances.
28009 LC_ALL=C
28010 export LC_ALL
28011 LANGUAGE=C
28012 export LANGUAGE
28014 # CDPATH.
28015 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
28018 # as_fn_error ERROR [LINENO LOG_FD]
28019 # ---------------------------------
28020 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
28021 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
28022 # script with status $?, using 1 if that was 0.
28023 as_fn_error ()
28025 as_status=$?; test $as_status -eq 0 && as_status=1
28026 if test "$3"; then
28027 as_lineno=${as_lineno-"$2"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
28028 $as_echo "$as_me:${as_lineno-$LINENO}: error: $1" >&$3
28030 $as_echo "$as_me: error: $1" >&2
28031 as_fn_exit $as_status
28032 } # as_fn_error
28035 # as_fn_set_status STATUS
28036 # -----------------------
28037 # Set $? to STATUS, without forking.
28038 as_fn_set_status ()
28040 return $1
28041 } # as_fn_set_status
28043 # as_fn_exit STATUS
28044 # -----------------
28045 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
28046 as_fn_exit ()
28048 set +e
28049 as_fn_set_status $1
28050 exit $1
28051 } # as_fn_exit
28053 # as_fn_unset VAR
28054 # ---------------
28055 # Portably unset VAR.
28056 as_fn_unset ()
28058 { eval $1=; unset $1;}
28060 as_unset=as_fn_unset
28061 # as_fn_append VAR VALUE
28062 # ----------------------
28063 # Append the text in VALUE to the end of the definition contained in VAR. Take
28064 # advantage of any shell optimizations that allow amortized linear growth over
28065 # repeated appends, instead of the typical quadratic growth present in naive
28066 # implementations.
28067 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
28068 eval 'as_fn_append ()
28070 eval $1+=\$2
28072 else
28073 as_fn_append ()
28075 eval $1=\$$1\$2
28077 fi # as_fn_append
28079 # as_fn_arith ARG...
28080 # ------------------
28081 # Perform arithmetic evaluation on the ARGs, and store the result in the
28082 # global $as_val. Take advantage of shells that can avoid forks. The arguments
28083 # must be portable across $(()) and expr.
28084 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
28085 eval 'as_fn_arith ()
28087 as_val=$(( $* ))
28089 else
28090 as_fn_arith ()
28092 as_val=`expr "$@" || test $? -eq 1`
28094 fi # as_fn_arith
28097 if expr a : '\(a\)' >/dev/null 2>&1 &&
28098 test "X`expr 00001 : '.*\(...\)'`" = X001; then
28099 as_expr=expr
28100 else
28101 as_expr=false
28104 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
28105 as_basename=basename
28106 else
28107 as_basename=false
28110 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
28111 as_dirname=dirname
28112 else
28113 as_dirname=false
28116 as_me=`$as_basename -- "$0" ||
28117 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
28118 X"$0" : 'X\(//\)$' \| \
28119 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
28120 $as_echo X/"$0" |
28121 sed '/^.*\/\([^/][^/]*\)\/*$/{
28122 s//\1/
28125 /^X\/\(\/\/\)$/{
28126 s//\1/
28129 /^X\/\(\/\).*/{
28130 s//\1/
28133 s/.*/./; q'`
28135 # Avoid depending upon Character Ranges.
28136 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
28137 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
28138 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
28139 as_cr_digits='0123456789'
28140 as_cr_alnum=$as_cr_Letters$as_cr_digits
28142 ECHO_C= ECHO_N= ECHO_T=
28143 case `echo -n x` in #(((((
28144 -n*)
28145 case `echo 'xy\c'` in
28146 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
28147 xy) ECHO_C='\c';;
28148 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
28149 ECHO_T=' ';;
28150 esac;;
28152 ECHO_N='-n';;
28153 esac
28155 rm -f conf$$ conf$$.exe conf$$.file
28156 if test -d conf$$.dir; then
28157 rm -f conf$$.dir/conf$$.file
28158 else
28159 rm -f conf$$.dir
28160 mkdir conf$$.dir 2>/dev/null
28162 if (echo >conf$$.file) 2>/dev/null; then
28163 if ln -s conf$$.file conf$$ 2>/dev/null; then
28164 as_ln_s='ln -s'
28165 # ... but there are two gotchas:
28166 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
28167 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
28168 # In both cases, we have to default to `cp -p'.
28169 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
28170 as_ln_s='cp -p'
28171 elif ln conf$$.file conf$$ 2>/dev/null; then
28172 as_ln_s=ln
28173 else
28174 as_ln_s='cp -p'
28176 else
28177 as_ln_s='cp -p'
28179 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
28180 rmdir conf$$.dir 2>/dev/null
28183 # as_fn_mkdir_p
28184 # -------------
28185 # Create "$as_dir" as a directory, including parents if necessary.
28186 as_fn_mkdir_p ()
28189 case $as_dir in #(
28190 -*) as_dir=./$as_dir;;
28191 esac
28192 test -d "$as_dir" || eval $as_mkdir_p || {
28193 as_dirs=
28194 while :; do
28195 case $as_dir in #(
28196 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
28197 *) as_qdir=$as_dir;;
28198 esac
28199 as_dirs="'$as_qdir' $as_dirs"
28200 as_dir=`$as_dirname -- "$as_dir" ||
28201 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
28202 X"$as_dir" : 'X\(//\)[^/]' \| \
28203 X"$as_dir" : 'X\(//\)$' \| \
28204 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
28205 $as_echo X"$as_dir" |
28206 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
28207 s//\1/
28210 /^X\(\/\/\)[^/].*/{
28211 s//\1/
28214 /^X\(\/\/\)$/{
28215 s//\1/
28218 /^X\(\/\).*/{
28219 s//\1/
28222 s/.*/./; q'`
28223 test -d "$as_dir" && break
28224 done
28225 test -z "$as_dirs" || eval "mkdir $as_dirs"
28226 } || test -d "$as_dir" || as_fn_error "cannot create directory $as_dir"
28229 } # as_fn_mkdir_p
28230 if mkdir -p . 2>/dev/null; then
28231 as_mkdir_p='mkdir -p "$as_dir"'
28232 else
28233 test -d ./-p && rmdir ./-p
28234 as_mkdir_p=false
28237 if test -x / >/dev/null 2>&1; then
28238 as_test_x='test -x'
28239 else
28240 if ls -dL / >/dev/null 2>&1; then
28241 as_ls_L_option=L
28242 else
28243 as_ls_L_option=
28245 as_test_x='
28246 eval sh -c '\''
28247 if test -d "$1"; then
28248 test -d "$1/.";
28249 else
28250 case $1 in #(
28251 -*)set "./$1";;
28252 esac;
28253 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in #((
28254 ???[sx]*):;;*)false;;esac;fi
28255 '\'' sh
28258 as_executable_p=$as_test_x
28260 # Sed expression to map a string onto a valid CPP name.
28261 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
28263 # Sed expression to map a string onto a valid variable name.
28264 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
28267 exec 6>&1
28268 ## ----------------------------------- ##
28269 ## Main body of $CONFIG_STATUS script. ##
28270 ## ----------------------------------- ##
28271 _ASEOF
28272 test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
28274 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
28275 # Save the log message, to keep $0 and so on meaningful, and to
28276 # report actual input values of CONFIG_FILES etc. instead of their
28277 # values after options handling.
28278 ac_log="
28279 This file was extended by $as_me, which was
28280 generated by GNU Autoconf 2.64. Invocation command line was
28282 CONFIG_FILES = $CONFIG_FILES
28283 CONFIG_HEADERS = $CONFIG_HEADERS
28284 CONFIG_LINKS = $CONFIG_LINKS
28285 CONFIG_COMMANDS = $CONFIG_COMMANDS
28286 $ $0 $@
28288 on `(hostname || uname -n) 2>/dev/null | sed 1q`
28291 _ACEOF
28293 case $ac_config_files in *"
28294 "*) set x $ac_config_files; shift; ac_config_files=$*;;
28295 esac
28297 case $ac_config_headers in *"
28298 "*) set x $ac_config_headers; shift; ac_config_headers=$*;;
28299 esac
28302 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
28303 # Files that config.status was made for.
28304 config_files="$ac_config_files"
28305 config_headers="$ac_config_headers"
28306 config_commands="$ac_config_commands"
28308 _ACEOF
28310 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
28311 ac_cs_usage="\
28312 \`$as_me' instantiates files and other configuration actions
28313 from templates according to the current configuration. Unless the files
28314 and actions are specified as TAGs, all are instantiated by default.
28316 Usage: $0 [OPTION]... [TAG]...
28318 -h, --help print this help, then exit
28319 -V, --version print version number and configuration settings, then exit
28320 -q, --quiet, --silent
28321 do not print progress messages
28322 -d, --debug don't remove temporary files
28323 --recheck update $as_me by reconfiguring in the same conditions
28324 --file=FILE[:TEMPLATE]
28325 instantiate the configuration file FILE
28326 --header=FILE[:TEMPLATE]
28327 instantiate the configuration header FILE
28329 Configuration files:
28330 $config_files
28332 Configuration headers:
28333 $config_headers
28335 Configuration commands:
28336 $config_commands
28338 Report bugs to the package provider."
28340 _ACEOF
28341 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
28342 ac_cs_version="\\
28343 config.status
28344 configured by $0, generated by GNU Autoconf 2.64,
28345 with options \\"`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`\\"
28347 Copyright (C) 2009 Free Software Foundation, Inc.
28348 This config.status script is free software; the Free Software Foundation
28349 gives unlimited permission to copy, distribute and modify it."
28351 ac_pwd='$ac_pwd'
28352 srcdir='$srcdir'
28353 AWK='$AWK'
28354 test -n "\$AWK" || AWK=awk
28355 _ACEOF
28357 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
28358 # The default lists apply if the user does not specify any file.
28359 ac_need_defaults=:
28360 while test $# != 0
28362 case $1 in
28363 --*=*)
28364 ac_option=`expr "X$1" : 'X\([^=]*\)='`
28365 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
28366 ac_shift=:
28369 ac_option=$1
28370 ac_optarg=$2
28371 ac_shift=shift
28373 esac
28375 case $ac_option in
28376 # Handling of the options.
28377 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
28378 ac_cs_recheck=: ;;
28379 --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
28380 $as_echo "$ac_cs_version"; exit ;;
28381 --debug | --debu | --deb | --de | --d | -d )
28382 debug=: ;;
28383 --file | --fil | --fi | --f )
28384 $ac_shift
28385 case $ac_optarg in
28386 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
28387 esac
28388 as_fn_append CONFIG_FILES " '$ac_optarg'"
28389 ac_need_defaults=false;;
28390 --header | --heade | --head | --hea )
28391 $ac_shift
28392 case $ac_optarg in
28393 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
28394 esac
28395 as_fn_append CONFIG_HEADERS " '$ac_optarg'"
28396 ac_need_defaults=false;;
28397 --he | --h)
28398 # Conflict between --help and --header
28399 as_fn_error "ambiguous option: \`$1'
28400 Try \`$0 --help' for more information.";;
28401 --help | --hel | -h )
28402 $as_echo "$ac_cs_usage"; exit ;;
28403 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
28404 | -silent | --silent | --silen | --sile | --sil | --si | --s)
28405 ac_cs_silent=: ;;
28407 # This is an error.
28408 -*) as_fn_error "unrecognized option: \`$1'
28409 Try \`$0 --help' for more information." ;;
28411 *) as_fn_append ac_config_targets " $1"
28412 ac_need_defaults=false ;;
28414 esac
28415 shift
28416 done
28418 ac_configure_extra_args=
28420 if $ac_cs_silent; then
28421 exec 6>/dev/null
28422 ac_configure_extra_args="$ac_configure_extra_args --silent"
28425 _ACEOF
28426 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
28427 if \$ac_cs_recheck; then
28428 set X '$SHELL' '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
28429 shift
28430 \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
28431 CONFIG_SHELL='$SHELL'
28432 export CONFIG_SHELL
28433 exec "\$@"
28436 _ACEOF
28437 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
28438 exec 5>>config.log
28440 echo
28441 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
28442 ## Running $as_me. ##
28443 _ASBOX
28444 $as_echo "$ac_log"
28445 } >&5
28447 _ACEOF
28448 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
28450 # INIT-COMMANDS
28452 ac_aux_dir=$ac_aux_dir DEPDIR=$DEPDIR
28453 subdirs="$subdirs" ac_aux_dir=$ac_aux_dir DEPDIR=$DEPDIR
28454 subdirs='$subdirs'
28456 _ACEOF
28458 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
28460 # Handling of arguments.
28461 for ac_config_target in $ac_config_targets
28463 case $ac_config_target in
28464 "auto-host.h") CONFIG_HEADERS="$CONFIG_HEADERS auto-host.h:config.in" ;;
28465 "depdir") CONFIG_COMMANDS="$CONFIG_COMMANDS depdir" ;;
28466 "gccdepdir") CONFIG_COMMANDS="$CONFIG_COMMANDS gccdepdir" ;;
28467 "as") CONFIG_FILES="$CONFIG_FILES as:exec-tool.in" ;;
28468 "collect-ld") CONFIG_FILES="$CONFIG_FILES collect-ld:exec-tool.in" ;;
28469 "nm") CONFIG_FILES="$CONFIG_FILES nm:exec-tool.in" ;;
28470 "$all_outputs") CONFIG_FILES="$CONFIG_FILES $all_outputs" ;;
28471 "default") CONFIG_COMMANDS="$CONFIG_COMMANDS default" ;;
28473 *) as_fn_error "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
28474 esac
28475 done
28478 # If the user did not use the arguments to specify the items to instantiate,
28479 # then the envvar interface is used. Set only those that are not.
28480 # We use the long form for the default assignment because of an extremely
28481 # bizarre bug on SunOS 4.1.3.
28482 if $ac_need_defaults; then
28483 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
28484 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
28485 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
28488 # Have a temporary directory for convenience. Make it in the build tree
28489 # simply because there is no reason against having it here, and in addition,
28490 # creating and moving files from /tmp can sometimes cause problems.
28491 # Hook for its removal unless debugging.
28492 # Note that there is a small window in which the directory will not be cleaned:
28493 # after its creation but before its name has been assigned to `$tmp'.
28494 $debug ||
28496 tmp=
28497 trap 'exit_status=$?
28498 { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status
28500 trap 'as_fn_exit 1' 1 2 13 15
28502 # Create a (secure) tmp directory for tmp files.
28505 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
28506 test -n "$tmp" && test -d "$tmp"
28507 } ||
28509 tmp=./conf$$-$RANDOM
28510 (umask 077 && mkdir "$tmp")
28511 } || as_fn_error "cannot create a temporary directory in ." "$LINENO" 5
28513 # Set up the scripts for CONFIG_FILES section.
28514 # No need to generate them if there are no CONFIG_FILES.
28515 # This happens for instance with `./config.status config.h'.
28516 if test -n "$CONFIG_FILES"; then
28518 if $AWK 'BEGIN { getline <"/dev/null" }' </dev/null 2>/dev/null; then
28519 ac_cs_awk_getline=:
28520 ac_cs_awk_pipe_init=
28521 ac_cs_awk_read_file='
28522 while ((getline aline < (F[key])) > 0)
28523 print(aline)
28524 close(F[key])'
28525 ac_cs_awk_pipe_fini=
28526 else
28527 ac_cs_awk_getline=false
28528 ac_cs_awk_pipe_init="print \"cat <<'|#_!!_#|' &&\""
28529 ac_cs_awk_read_file='
28530 print "|#_!!_#|"
28531 print "cat " F[key] " &&"
28532 '$ac_cs_awk_pipe_init
28533 # The final `:' finishes the AND list.
28534 ac_cs_awk_pipe_fini='END { print "|#_!!_#|"; print ":" }'
28536 ac_cr=`echo X | tr X '\015'`
28537 # On cygwin, bash can eat \r inside `` if the user requested igncr.
28538 # But we know of no other shell where ac_cr would be empty at this
28539 # point, so we can use a bashism as a fallback.
28540 if test "x$ac_cr" = x; then
28541 eval ac_cr=\$\'\\r\'
28543 ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
28544 if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
28545 ac_cs_awk_cr='\r'
28546 else
28547 ac_cs_awk_cr=$ac_cr
28550 echo 'BEGIN {' >"$tmp/subs1.awk" &&
28551 _ACEOF
28553 # Create commands to substitute file output variables.
28555 echo "cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1" &&
28556 echo 'cat >>"\$tmp/subs1.awk" <<\\_ACAWK &&' &&
28557 echo "$ac_subst_files" | sed 's/.*/F["&"]="$&"/' &&
28558 echo "_ACAWK" &&
28559 echo "_ACEOF"
28560 } >conf$$files.sh &&
28561 . ./conf$$files.sh ||
28562 as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5
28563 rm -f conf$$files.sh
28566 echo "cat >conf$$subs.awk <<_ACEOF" &&
28567 echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
28568 echo "_ACEOF"
28569 } >conf$$subs.sh ||
28570 as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5
28571 ac_delim_num=`echo "$ac_subst_vars" | grep -c '$'`
28572 ac_delim='%!_!# '
28573 for ac_last_try in false false false false false :; do
28574 . ./conf$$subs.sh ||
28575 as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5
28577 ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
28578 if test $ac_delim_n = $ac_delim_num; then
28579 break
28580 elif $ac_last_try; then
28581 as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5
28582 else
28583 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
28585 done
28586 rm -f conf$$subs.sh
28588 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
28589 cat >>"\$tmp/subs1.awk" <<\\_ACAWK &&
28590 _ACEOF
28591 sed -n '
28593 s/^/S["/; s/!.*/"]=/
28596 s/^[^!]*!//
28597 :repl
28598 t repl
28599 s/'"$ac_delim"'$//
28600 t delim
28603 s/\(.\{148\}\).*/\1/
28604 t more1
28605 s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
28608 b repl
28609 :more1
28610 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
28613 s/.\{148\}//
28614 t nl
28615 :delim
28617 s/\(.\{148\}\).*/\1/
28618 t more2
28619 s/["\\]/\\&/g; s/^/"/; s/$/"/
28622 :more2
28623 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
28626 s/.\{148\}//
28627 t delim
28628 ' <conf$$subs.awk | sed '
28629 /^[^""]/{
28631 s/\n//
28633 ' >>$CONFIG_STATUS || ac_write_fail=1
28634 rm -f conf$$subs.awk
28635 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
28636 _ACAWK
28637 cat >>"\$tmp/subs1.awk" <<_ACAWK &&
28638 for (key in S) S_is_set[key] = 1
28639 FS = "\a"
28640 \$ac_cs_awk_pipe_init
28643 line = $ 0
28644 nfields = split(line, field, "@")
28645 substed = 0
28646 len = length(field[1])
28647 for (i = 2; i < nfields; i++) {
28648 key = field[i]
28649 keylen = length(key)
28650 if (S_is_set[key]) {
28651 value = S[key]
28652 line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
28653 len += length(value) + length(field[++i])
28654 substed = 1
28655 } else
28656 len += 1 + keylen
28658 if (nfields == 3 && !substed) {
28659 key = field[2]
28660 if (F[key] != "" && line ~ /^[ ]*@.*@[ ]*$/) {
28661 \$ac_cs_awk_read_file
28662 next
28665 print line
28667 \$ac_cs_awk_pipe_fini
28668 _ACAWK
28669 _ACEOF
28670 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
28671 if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
28672 sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
28673 else
28675 fi < "$tmp/subs1.awk" > "$tmp/subs.awk" \
28676 || as_fn_error "could not setup config files machinery" "$LINENO" 5
28677 _ACEOF
28679 # VPATH may cause trouble with some makes, so we remove $(srcdir),
28680 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
28681 # trailing colons and then remove the whole line if VPATH becomes empty
28682 # (actually we leave an empty line to preserve line numbers).
28683 if test "x$srcdir" = x.; then
28684 ac_vpsub='/^[ ]*VPATH[ ]*=/{
28685 s/:*\$(srcdir):*/:/
28686 s/:*\${srcdir}:*/:/
28687 s/:*@srcdir@:*/:/
28688 s/^\([^=]*=[ ]*\):*/\1/
28689 s/:*$//
28690 s/^[^=]*=[ ]*$//
28694 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
28695 fi # test -n "$CONFIG_FILES"
28697 # Set up the scripts for CONFIG_HEADERS section.
28698 # No need to generate them if there are no CONFIG_HEADERS.
28699 # This happens for instance with `./config.status Makefile'.
28700 if test -n "$CONFIG_HEADERS"; then
28701 cat >"$tmp/defines.awk" <<\_ACAWK ||
28702 BEGIN {
28703 _ACEOF
28705 # Transform confdefs.h into an awk script `defines.awk', embedded as
28706 # here-document in config.status, that substitutes the proper values into
28707 # config.h.in to produce config.h.
28709 # Create a delimiter string that does not exist in confdefs.h, to ease
28710 # handling of long lines.
28711 ac_delim='%!_!# '
28712 for ac_last_try in false false :; do
28713 ac_t=`sed -n "/$ac_delim/p" confdefs.h`
28714 if test -z "$ac_t"; then
28715 break
28716 elif $ac_last_try; then
28717 as_fn_error "could not make $CONFIG_HEADERS" "$LINENO" 5
28718 else
28719 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
28721 done
28723 # For the awk script, D is an array of macro values keyed by name,
28724 # likewise P contains macro parameters if any. Preserve backslash
28725 # newline sequences.
28727 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
28728 sed -n '
28729 s/.\{148\}/&'"$ac_delim"'/g
28730 t rset
28731 :rset
28732 s/^[ ]*#[ ]*define[ ][ ]*/ /
28733 t def
28735 :def
28736 s/\\$//
28737 t bsnl
28738 s/["\\]/\\&/g
28739 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
28740 D["\1"]=" \3"/p
28741 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2"/p
28743 :bsnl
28744 s/["\\]/\\&/g
28745 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
28746 D["\1"]=" \3\\\\\\n"\\/p
28747 t cont
28748 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
28749 t cont
28751 :cont
28753 s/.\{148\}/&'"$ac_delim"'/g
28754 t clear
28755 :clear
28756 s/\\$//
28757 t bsnlc
28758 s/["\\]/\\&/g; s/^/"/; s/$/"/p
28760 :bsnlc
28761 s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
28762 b cont
28763 ' <confdefs.h | sed '
28764 s/'"$ac_delim"'/"\\\
28765 "/g' >>$CONFIG_STATUS || ac_write_fail=1
28767 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
28768 for (key in D) D_is_set[key] = 1
28769 FS = "\a"
28771 /^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
28772 line = \$ 0
28773 split(line, arg, " ")
28774 if (arg[1] == "#") {
28775 defundef = arg[2]
28776 mac1 = arg[3]
28777 } else {
28778 defundef = substr(arg[1], 2)
28779 mac1 = arg[2]
28781 split(mac1, mac2, "(") #)
28782 macro = mac2[1]
28783 prefix = substr(line, 1, index(line, defundef) - 1)
28784 if (D_is_set[macro]) {
28785 # Preserve the white space surrounding the "#".
28786 print prefix "define", macro P[macro] D[macro]
28787 next
28788 } else {
28789 # Replace #undef with comments. This is necessary, for example,
28790 # in the case of _POSIX_SOURCE, which is predefined and required
28791 # on some systems where configure will not decide to define it.
28792 if (defundef == "undef") {
28793 print "/*", prefix defundef, macro, "*/"
28794 next
28798 { print }
28799 _ACAWK
28800 _ACEOF
28801 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
28802 as_fn_error "could not setup config headers machinery" "$LINENO" 5
28803 fi # test -n "$CONFIG_HEADERS"
28806 eval set X " :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS"
28807 shift
28808 for ac_tag
28810 case $ac_tag in
28811 :[FHLC]) ac_mode=$ac_tag; continue;;
28812 esac
28813 case $ac_mode$ac_tag in
28814 :[FHL]*:*);;
28815 :L* | :C*:*) as_fn_error "invalid tag \`$ac_tag'" "$LINENO" 5;;
28816 :[FH]-) ac_tag=-:-;;
28817 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
28818 esac
28819 ac_save_IFS=$IFS
28820 IFS=:
28821 set x $ac_tag
28822 IFS=$ac_save_IFS
28823 shift
28824 ac_file=$1
28825 shift
28827 case $ac_mode in
28828 :L) ac_source=$1;;
28829 :[FH])
28830 ac_file_inputs=
28831 for ac_f
28833 case $ac_f in
28834 -) ac_f="$tmp/stdin";;
28835 *) # Look for the file first in the build tree, then in the source tree
28836 # (if the path is not absolute). The absolute path cannot be DOS-style,
28837 # because $ac_f cannot contain `:'.
28838 test -f "$ac_f" ||
28839 case $ac_f in
28840 [\\/$]*) false;;
28841 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
28842 esac ||
28843 as_fn_error "cannot find input file: \`$ac_f'" "$LINENO" 5;;
28844 esac
28845 case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
28846 as_fn_append ac_file_inputs " '$ac_f'"
28847 done
28849 # Let's still pretend it is `configure' which instantiates (i.e., don't
28850 # use $as_me), people would be surprised to read:
28851 # /* config.h. Generated by config.status. */
28852 configure_input='Generated from '`
28853 $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
28854 `' by configure.'
28855 if test x"$ac_file" != x-; then
28856 configure_input="$ac_file. $configure_input"
28857 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
28858 $as_echo "$as_me: creating $ac_file" >&6;}
28860 # Neutralize special characters interpreted by sed in replacement strings.
28861 case $configure_input in #(
28862 *\&* | *\|* | *\\* )
28863 ac_sed_conf_input=`$as_echo "$configure_input" |
28864 sed 's/[\\\\&|]/\\\\&/g'`;; #(
28865 *) ac_sed_conf_input=$configure_input;;
28866 esac
28868 case $ac_tag in
28869 *:-:* | *:-) cat >"$tmp/stdin" \
28870 || as_fn_error "could not create $ac_file" "$LINENO" 5 ;;
28871 esac
28873 esac
28875 ac_dir=`$as_dirname -- "$ac_file" ||
28876 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
28877 X"$ac_file" : 'X\(//\)[^/]' \| \
28878 X"$ac_file" : 'X\(//\)$' \| \
28879 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
28880 $as_echo X"$ac_file" |
28881 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
28882 s//\1/
28885 /^X\(\/\/\)[^/].*/{
28886 s//\1/
28889 /^X\(\/\/\)$/{
28890 s//\1/
28893 /^X\(\/\).*/{
28894 s//\1/
28897 s/.*/./; q'`
28898 as_dir="$ac_dir"; as_fn_mkdir_p
28899 ac_builddir=.
28901 case "$ac_dir" in
28902 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
28904 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
28905 # A ".." for each directory in $ac_dir_suffix.
28906 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
28907 case $ac_top_builddir_sub in
28908 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
28909 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
28910 esac ;;
28911 esac
28912 ac_abs_top_builddir=$ac_pwd
28913 ac_abs_builddir=$ac_pwd$ac_dir_suffix
28914 # for backward compatibility:
28915 ac_top_builddir=$ac_top_build_prefix
28917 case $srcdir in
28918 .) # We are building in place.
28919 ac_srcdir=.
28920 ac_top_srcdir=$ac_top_builddir_sub
28921 ac_abs_top_srcdir=$ac_pwd ;;
28922 [\\/]* | ?:[\\/]* ) # Absolute name.
28923 ac_srcdir=$srcdir$ac_dir_suffix;
28924 ac_top_srcdir=$srcdir
28925 ac_abs_top_srcdir=$srcdir ;;
28926 *) # Relative name.
28927 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
28928 ac_top_srcdir=$ac_top_build_prefix$srcdir
28929 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
28930 esac
28931 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
28934 case $ac_mode in
28937 # CONFIG_FILE
28940 _ACEOF
28942 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
28943 # If the template does not know about datarootdir, expand it.
28944 # FIXME: This hack should be removed a few years after 2.60.
28945 ac_datarootdir_hack=; ac_datarootdir_seen=
28946 ac_sed_dataroot='
28947 /datarootdir/ {
28951 /@datadir@/p
28952 /@docdir@/p
28953 /@infodir@/p
28954 /@localedir@/p
28955 /@mandir@/p'
28956 case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
28957 *datarootdir*) ac_datarootdir_seen=yes;;
28958 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
28959 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
28960 $as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
28961 _ACEOF
28962 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
28963 ac_datarootdir_hack='
28964 s&@datadir@&$datadir&g
28965 s&@docdir@&$docdir&g
28966 s&@infodir@&$infodir&g
28967 s&@localedir@&$localedir&g
28968 s&@mandir@&$mandir&g
28969 s&\\\${datarootdir}&$datarootdir&g' ;;
28970 esac
28971 _ACEOF
28973 # Neutralize VPATH when `$srcdir' = `.'.
28974 # Shell code in configure.ac might set extrasub.
28975 # FIXME: do we really want to maintain this feature?
28976 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
28977 ac_sed_extra="$ac_vpsub
28978 $extrasub
28979 _ACEOF
28980 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
28982 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
28983 s|@configure_input@|$ac_sed_conf_input|;t t
28984 s&@top_builddir@&$ac_top_builddir_sub&;t t
28985 s&@top_build_prefix@&$ac_top_build_prefix&;t t
28986 s&@srcdir@&$ac_srcdir&;t t
28987 s&@abs_srcdir@&$ac_abs_srcdir&;t t
28988 s&@top_srcdir@&$ac_top_srcdir&;t t
28989 s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
28990 s&@builddir@&$ac_builddir&;t t
28991 s&@abs_builddir@&$ac_abs_builddir&;t t
28992 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
28993 $ac_datarootdir_hack
28995 eval sed \"\$ac_sed_extra\" "$ac_file_inputs" |
28996 if $ac_cs_awk_getline; then
28997 $AWK -f "$tmp/subs.awk"
28998 else
28999 $AWK -f "$tmp/subs.awk" | $SHELL
29000 fi >$tmp/out \
29001 || as_fn_error "could not create $ac_file" "$LINENO" 5
29003 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
29004 { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out"`; test -n "$ac_out"; } &&
29005 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' "$tmp/out"`; test -z "$ac_out"; } &&
29006 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
29007 which seems to be undefined. Please make sure it is defined." >&5
29008 $as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
29009 which seems to be undefined. Please make sure it is defined." >&2;}
29011 rm -f "$tmp/stdin"
29012 case $ac_file in
29013 -) cat "$tmp/out" && rm -f "$tmp/out";;
29014 *) rm -f "$ac_file" && mv "$tmp/out" "$ac_file";;
29015 esac \
29016 || as_fn_error "could not create $ac_file" "$LINENO" 5
29020 # CONFIG_HEADER
29022 if test x"$ac_file" != x-; then
29024 $as_echo "/* $configure_input */" \
29025 && eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs"
29026 } >"$tmp/config.h" \
29027 || as_fn_error "could not create $ac_file" "$LINENO" 5
29028 if diff "$ac_file" "$tmp/config.h" >/dev/null 2>&1; then
29029 { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
29030 $as_echo "$as_me: $ac_file is unchanged" >&6;}
29031 else
29032 rm -f "$ac_file"
29033 mv "$tmp/config.h" "$ac_file" \
29034 || as_fn_error "could not create $ac_file" "$LINENO" 5
29036 else
29037 $as_echo "/* $configure_input */" \
29038 && eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs" \
29039 || as_fn_error "could not create -" "$LINENO" 5
29043 :C) { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
29044 $as_echo "$as_me: executing $ac_file commands" >&6;}
29046 esac
29049 case $ac_file$ac_mode in
29050 "depdir":C) $SHELL $ac_aux_dir/mkinstalldirs $DEPDIR ;;
29051 "gccdepdir":C)
29052 ${CONFIG_SHELL-/bin/sh} $ac_aux_dir/mkinstalldirs build/$DEPDIR
29053 for lang in $subdirs c-family common
29055 ${CONFIG_SHELL-/bin/sh} $ac_aux_dir/mkinstalldirs $lang/$DEPDIR
29056 done ;;
29057 "as":F) chmod +x as ;;
29058 "collect-ld":F) chmod +x collect-ld ;;
29059 "nm":F) chmod +x nm ;;
29060 "default":C)
29061 case ${CONFIG_HEADERS} in
29062 *auto-host.h:config.in*)
29063 echo > cstamp-h ;;
29064 esac
29065 # Make sure all the subdirs exist.
29066 for d in $subdirs doc build common c-family
29068 test -d $d || mkdir $d
29069 done
29072 esac
29073 done # for ac_tag
29076 as_fn_exit 0
29077 _ACEOF
29078 ac_clean_files=$ac_clean_files_save
29080 test $ac_write_fail = 0 ||
29081 as_fn_error "write failure creating $CONFIG_STATUS" "$LINENO" 5
29084 # configure is writing to config.log, and then calls config.status.
29085 # config.status does its own redirection, appending to config.log.
29086 # Unfortunately, on DOS this fails, as config.log is still kept open
29087 # by configure, so config.status won't be able to write to it; its
29088 # output is simply discarded. So we exec the FD to /dev/null,
29089 # effectively closing config.log, so it can be properly (re)opened and
29090 # appended to by config.status. When coming back to configure, we
29091 # need to make the FD available again.
29092 if test "$no_create" != yes; then
29093 ac_cs_success=:
29094 ac_config_status_args=
29095 test "$silent" = yes &&
29096 ac_config_status_args="$ac_config_status_args --quiet"
29097 exec 5>/dev/null
29098 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
29099 exec 5>>config.log
29100 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
29101 # would make configure fail if this is the last instruction.
29102 $ac_cs_success || as_fn_exit $?
29104 if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
29105 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
29106 $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}