Merge aosp-toolchain/gcc/gcc-4_9 changes.
[official-gcc.git] / gcc-4_9 / gcc / configure
blobcb1d3004f404267c50ee019d20af5c7189b86cac
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_GOLD_FOR_TARGET
686 ORIGINAL_LD_BFD_FOR_TARGET
687 ORIGINAL_LD_FOR_TARGET
688 ORIGINAL_PLUGIN_LD_FOR_TARGET
689 gcc_cv_ld
690 ORIGINAL_AS_FOR_TARGET
691 gcc_cv_as
692 enable_fast_install
693 objdir
694 OTOOL64
695 OTOOL
696 LIPO
697 NMEDIT
698 DSYMUTIL
699 STRIP
700 OBJDUMP
701 ac_ct_DUMPBIN
702 DUMPBIN
704 FGREP
706 LIBTOOL
707 collect2
708 STMP_FIXINC
709 BUILD_LDFLAGS
710 BUILD_CXXFLAGS
711 BUILD_CFLAGS
712 CXX_FOR_BUILD
713 CC_FOR_BUILD
714 inhibit_libc
715 SYSTEM_HEADER_DIR
717 CROSS
718 CATOBJEXT
719 GENCAT
720 INSTOBJEXT
721 DATADIRNAME
722 CATALOGS
723 POSUB
724 GMSGFMT
725 XGETTEXT
726 INCINTL
727 LIBINTL_DEP
728 LIBINTL
729 USE_NLS
730 extra_opt_files
731 extra_modes_file
732 NATIVE_SYSTEM_HEADER_DIR
733 objext
734 manext
735 LIBICONV_DEP
736 LTLIBICONV
737 LIBICONV
738 LDEXP_LIB
739 EXTRA_GCC_LIBS
740 GNAT_LIBEXC
741 COLLECT2_LIBS
742 CXXDEPMODE
743 DEPDIR
744 am__leading_dot
745 CXXCPP
748 BISON
749 FLEX
750 GENERATED_MANPAGES
751 BUILD_INFO
752 MAKEINFO
753 have_mktemp_command
754 make_compare_target
755 INSTALL_DATA
756 INSTALL_PROGRAM
757 INSTALL
758 ranlib_flags
759 RANLIB
761 LN_S
763 SET_MAKE
764 REPORT_BUGS_TEXI
765 REPORT_BUGS_TO
766 PKGVERSION
767 CONFIGURE_SPECS
768 CROSS_SYSTEM_HEADER_DIR
769 TARGET_SYSTEM_ROOT_DEFINE
770 TARGET_SYSTEM_ROOT
771 RUNTIME_ROOT_PREFIX_DEFINE
772 SYSROOT_CFLAGS_FOR_TARGET
773 enable_shared
774 enable_fixed_point
775 enable_decimal_float
776 with_float
777 with_cpu
778 enable_multiarch
779 enable_multilib
780 coverage_flags
781 valgrind_command
782 valgrind_path_defines
783 valgrind_path
784 TREECHECKING
785 TREEBROWSER
786 nocommon_flag
787 noexception_flags
788 warn_cxxflags
789 warn_cflags
790 c_strict_warn
791 strict_warn
792 c_loose_warn
793 loose_warn
794 EGREP
795 GREP
797 PICFLAG_FOR_TARGET
798 GNATMAKE
799 GNATBIND
800 ac_ct_CXX
801 CXXFLAGS
803 OBJEXT
804 EXEEXT
805 ac_ct_CC
806 CPPFLAGS
807 LDFLAGS
808 CFLAGS
810 GENINSRC
811 target_subdir
812 host_subdir
813 build_subdir
814 build_libsubdir
815 target_noncanonical
816 target_os
817 target_vendor
818 target_cpu
819 target
820 host_os
821 host_vendor
822 host_cpu
823 host
824 build_os
825 build_vendor
826 build_cpu
827 build
828 target_alias
829 host_alias
830 build_alias
831 LIBS
832 ECHO_T
833 ECHO_N
834 ECHO_C
835 DEFS
836 mandir
837 localedir
838 libdir
839 psdir
840 pdfdir
841 dvidir
842 htmldir
843 infodir
844 docdir
845 oldincludedir
846 includedir
847 localstatedir
848 sharedstatedir
849 sysconfdir
850 datadir
851 datarootdir
852 libexecdir
853 sbindir
854 bindir
855 program_transform_name
856 prefix
857 exec_prefix
858 PACKAGE_URL
859 PACKAGE_BUGREPORT
860 PACKAGE_STRING
861 PACKAGE_VERSION
862 PACKAGE_TARNAME
863 PACKAGE_NAME
864 PATH_SEPARATOR
865 SHELL'
866 ac_subst_files='option_includes
867 language_hooks'
868 ac_user_opts='
869 enable_option_checking
870 with_build_libsubdir
871 with_local_prefix
872 with_gxx_include_dir
873 with_cpp_install_dir
874 enable_generated_files_in_srcdir
875 with_gnu_ld
876 with_ld
877 with_demangler_in_ld
878 with_gnu_as
879 with_as
880 enable_largefile
881 enable_build_format_warnings
882 enable_werror_always
883 enable_checking
884 enable_coverage
885 enable_gather_detailed_mem_stats
886 with_stabs
887 enable_multilib
888 enable_multiarch
889 enable___cxa_atexit
890 enable_decimal_float
891 enable_fixed_point
892 enable_threads
893 enable_tls
894 enable_objc_gc
895 with_dwarf2
896 enable_shared
897 with_native_system_header_dir
898 with_build_sysroot
899 with_runtime_root_prefix
900 with_sysroot
901 with_specs
902 with_pkgversion
903 with_bugurl
904 enable_languages
905 with_multilib_list
906 enable_rpath
907 with_libiconv_prefix
908 enable_sjlj_exceptions
909 enable_secureplt
910 enable_leading_mingw64_underscores
911 enable_cld
912 enable_frame_pointer
913 enable_win32_registry
914 enable_static
915 with_pic
916 enable_fast_install
917 enable_libtool_lock
918 enable_ld
919 enable_gold
920 with_plugin_ld
921 enable_gnu_indirect_function
922 enable_initfini_array
923 enable_comdat
924 enable_fix_cortex_a53_835769
925 with_glibc_version
926 enable_gnu_unique_object
927 enable_eh_frame_hdr_for_static
928 enable_linker_build_id
929 with_long_double_128
930 with_gc
931 with_system_zlib
932 enable_maintainer_mode
933 enable_link_mutex
934 enable_version_specific_runtime_libs
935 enable_canonical_prefixes
936 enable_plugin
937 enable_host_shared
938 enable_libquadmath_support
939 with_warn_frame_larger_than_extra_text
940 with_linker_hash_style
942 ac_precious_vars='build_alias
943 host_alias
944 target_alias
946 CFLAGS
947 LDFLAGS
948 LIBS
949 CPPFLAGS
951 CXXFLAGS
954 CXXCPP
955 GMPLIBS
956 GMPINC
957 ISLLIBS
958 ISLINC
959 CLOOGLIBS
960 CLOOGINC'
963 # Initialize some variables set by options.
964 ac_init_help=
965 ac_init_version=false
966 ac_unrecognized_opts=
967 ac_unrecognized_sep=
968 # The variables have the same names as the options, with
969 # dashes changed to underlines.
970 cache_file=/dev/null
971 exec_prefix=NONE
972 no_create=
973 no_recursion=
974 prefix=NONE
975 program_prefix=NONE
976 program_suffix=NONE
977 program_transform_name=s,x,x,
978 silent=
979 site=
980 srcdir=
981 verbose=
982 x_includes=NONE
983 x_libraries=NONE
985 # Installation directory options.
986 # These are left unexpanded so users can "make install exec_prefix=/foo"
987 # and all the variables that are supposed to be based on exec_prefix
988 # by default will actually change.
989 # Use braces instead of parens because sh, perl, etc. also accept them.
990 # (The list follows the same order as the GNU Coding Standards.)
991 bindir='${exec_prefix}/bin'
992 sbindir='${exec_prefix}/sbin'
993 libexecdir='${exec_prefix}/libexec'
994 datarootdir='${prefix}/share'
995 datadir='${datarootdir}'
996 sysconfdir='${prefix}/etc'
997 sharedstatedir='${prefix}/com'
998 localstatedir='${prefix}/var'
999 includedir='${prefix}/include'
1000 oldincludedir='/usr/include'
1001 docdir='${datarootdir}/doc/${PACKAGE}'
1002 infodir='${datarootdir}/info'
1003 htmldir='${docdir}'
1004 dvidir='${docdir}'
1005 pdfdir='${docdir}'
1006 psdir='${docdir}'
1007 libdir='${exec_prefix}/lib'
1008 localedir='${datarootdir}/locale'
1009 mandir='${datarootdir}/man'
1011 ac_prev=
1012 ac_dashdash=
1013 for ac_option
1015 # If the previous option needs an argument, assign it.
1016 if test -n "$ac_prev"; then
1017 eval $ac_prev=\$ac_option
1018 ac_prev=
1019 continue
1022 case $ac_option in
1023 *=*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
1024 *) ac_optarg=yes ;;
1025 esac
1027 # Accept the important Cygnus configure options, so we can diagnose typos.
1029 case $ac_dashdash$ac_option in
1031 ac_dashdash=yes ;;
1033 -bindir | --bindir | --bindi | --bind | --bin | --bi)
1034 ac_prev=bindir ;;
1035 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
1036 bindir=$ac_optarg ;;
1038 -build | --build | --buil | --bui | --bu)
1039 ac_prev=build_alias ;;
1040 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
1041 build_alias=$ac_optarg ;;
1043 -cache-file | --cache-file | --cache-fil | --cache-fi \
1044 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
1045 ac_prev=cache_file ;;
1046 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
1047 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
1048 cache_file=$ac_optarg ;;
1050 --config-cache | -C)
1051 cache_file=config.cache ;;
1053 -datadir | --datadir | --datadi | --datad)
1054 ac_prev=datadir ;;
1055 -datadir=* | --datadir=* | --datadi=* | --datad=*)
1056 datadir=$ac_optarg ;;
1058 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
1059 | --dataroo | --dataro | --datar)
1060 ac_prev=datarootdir ;;
1061 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
1062 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
1063 datarootdir=$ac_optarg ;;
1065 -disable-* | --disable-*)
1066 ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
1067 # Reject names that are not valid shell variable names.
1068 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1069 as_fn_error "invalid feature name: $ac_useropt"
1070 ac_useropt_orig=$ac_useropt
1071 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1072 case $ac_user_opts in
1074 "enable_$ac_useropt"
1075 "*) ;;
1076 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
1077 ac_unrecognized_sep=', ';;
1078 esac
1079 eval enable_$ac_useropt=no ;;
1081 -docdir | --docdir | --docdi | --doc | --do)
1082 ac_prev=docdir ;;
1083 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
1084 docdir=$ac_optarg ;;
1086 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
1087 ac_prev=dvidir ;;
1088 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
1089 dvidir=$ac_optarg ;;
1091 -enable-* | --enable-*)
1092 ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
1093 # Reject names that are not valid shell variable names.
1094 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1095 as_fn_error "invalid feature name: $ac_useropt"
1096 ac_useropt_orig=$ac_useropt
1097 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1098 case $ac_user_opts in
1100 "enable_$ac_useropt"
1101 "*) ;;
1102 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
1103 ac_unrecognized_sep=', ';;
1104 esac
1105 eval enable_$ac_useropt=\$ac_optarg ;;
1107 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
1108 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
1109 | --exec | --exe | --ex)
1110 ac_prev=exec_prefix ;;
1111 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
1112 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
1113 | --exec=* | --exe=* | --ex=*)
1114 exec_prefix=$ac_optarg ;;
1116 -gas | --gas | --ga | --g)
1117 # Obsolete; use --with-gas.
1118 with_gas=yes ;;
1120 -help | --help | --hel | --he | -h)
1121 ac_init_help=long ;;
1122 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
1123 ac_init_help=recursive ;;
1124 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
1125 ac_init_help=short ;;
1127 -host | --host | --hos | --ho)
1128 ac_prev=host_alias ;;
1129 -host=* | --host=* | --hos=* | --ho=*)
1130 host_alias=$ac_optarg ;;
1132 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
1133 ac_prev=htmldir ;;
1134 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
1135 | --ht=*)
1136 htmldir=$ac_optarg ;;
1138 -includedir | --includedir | --includedi | --included | --include \
1139 | --includ | --inclu | --incl | --inc)
1140 ac_prev=includedir ;;
1141 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
1142 | --includ=* | --inclu=* | --incl=* | --inc=*)
1143 includedir=$ac_optarg ;;
1145 -infodir | --infodir | --infodi | --infod | --info | --inf)
1146 ac_prev=infodir ;;
1147 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
1148 infodir=$ac_optarg ;;
1150 -libdir | --libdir | --libdi | --libd)
1151 ac_prev=libdir ;;
1152 -libdir=* | --libdir=* | --libdi=* | --libd=*)
1153 libdir=$ac_optarg ;;
1155 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
1156 | --libexe | --libex | --libe)
1157 ac_prev=libexecdir ;;
1158 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
1159 | --libexe=* | --libex=* | --libe=*)
1160 libexecdir=$ac_optarg ;;
1162 -localedir | --localedir | --localedi | --localed | --locale)
1163 ac_prev=localedir ;;
1164 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
1165 localedir=$ac_optarg ;;
1167 -localstatedir | --localstatedir | --localstatedi | --localstated \
1168 | --localstate | --localstat | --localsta | --localst | --locals)
1169 ac_prev=localstatedir ;;
1170 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
1171 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
1172 localstatedir=$ac_optarg ;;
1174 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1175 ac_prev=mandir ;;
1176 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1177 mandir=$ac_optarg ;;
1179 -nfp | --nfp | --nf)
1180 # Obsolete; use --without-fp.
1181 with_fp=no ;;
1183 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1184 | --no-cr | --no-c | -n)
1185 no_create=yes ;;
1187 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1188 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1189 no_recursion=yes ;;
1191 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1192 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1193 | --oldin | --oldi | --old | --ol | --o)
1194 ac_prev=oldincludedir ;;
1195 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1196 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1197 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1198 oldincludedir=$ac_optarg ;;
1200 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1201 ac_prev=prefix ;;
1202 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1203 prefix=$ac_optarg ;;
1205 -program-prefix | --program-prefix | --program-prefi | --program-pref \
1206 | --program-pre | --program-pr | --program-p)
1207 ac_prev=program_prefix ;;
1208 -program-prefix=* | --program-prefix=* | --program-prefi=* \
1209 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1210 program_prefix=$ac_optarg ;;
1212 -program-suffix | --program-suffix | --program-suffi | --program-suff \
1213 | --program-suf | --program-su | --program-s)
1214 ac_prev=program_suffix ;;
1215 -program-suffix=* | --program-suffix=* | --program-suffi=* \
1216 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1217 program_suffix=$ac_optarg ;;
1219 -program-transform-name | --program-transform-name \
1220 | --program-transform-nam | --program-transform-na \
1221 | --program-transform-n | --program-transform- \
1222 | --program-transform | --program-transfor \
1223 | --program-transfo | --program-transf \
1224 | --program-trans | --program-tran \
1225 | --progr-tra | --program-tr | --program-t)
1226 ac_prev=program_transform_name ;;
1227 -program-transform-name=* | --program-transform-name=* \
1228 | --program-transform-nam=* | --program-transform-na=* \
1229 | --program-transform-n=* | --program-transform-=* \
1230 | --program-transform=* | --program-transfor=* \
1231 | --program-transfo=* | --program-transf=* \
1232 | --program-trans=* | --program-tran=* \
1233 | --progr-tra=* | --program-tr=* | --program-t=*)
1234 program_transform_name=$ac_optarg ;;
1236 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1237 ac_prev=pdfdir ;;
1238 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1239 pdfdir=$ac_optarg ;;
1241 -psdir | --psdir | --psdi | --psd | --ps)
1242 ac_prev=psdir ;;
1243 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1244 psdir=$ac_optarg ;;
1246 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1247 | -silent | --silent | --silen | --sile | --sil)
1248 silent=yes ;;
1250 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1251 ac_prev=sbindir ;;
1252 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1253 | --sbi=* | --sb=*)
1254 sbindir=$ac_optarg ;;
1256 -sharedstatedir | --sharedstatedir | --sharedstatedi \
1257 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1258 | --sharedst | --shareds | --shared | --share | --shar \
1259 | --sha | --sh)
1260 ac_prev=sharedstatedir ;;
1261 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1262 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1263 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1264 | --sha=* | --sh=*)
1265 sharedstatedir=$ac_optarg ;;
1267 -site | --site | --sit)
1268 ac_prev=site ;;
1269 -site=* | --site=* | --sit=*)
1270 site=$ac_optarg ;;
1272 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1273 ac_prev=srcdir ;;
1274 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1275 srcdir=$ac_optarg ;;
1277 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1278 | --syscon | --sysco | --sysc | --sys | --sy)
1279 ac_prev=sysconfdir ;;
1280 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1281 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1282 sysconfdir=$ac_optarg ;;
1284 -target | --target | --targe | --targ | --tar | --ta | --t)
1285 ac_prev=target_alias ;;
1286 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1287 target_alias=$ac_optarg ;;
1289 -v | -verbose | --verbose | --verbos | --verbo | --verb)
1290 verbose=yes ;;
1292 -version | --version | --versio | --versi | --vers | -V)
1293 ac_init_version=: ;;
1295 -with-* | --with-*)
1296 ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1297 # Reject names that are not valid shell variable names.
1298 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1299 as_fn_error "invalid package name: $ac_useropt"
1300 ac_useropt_orig=$ac_useropt
1301 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1302 case $ac_user_opts in
1304 "with_$ac_useropt"
1305 "*) ;;
1306 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1307 ac_unrecognized_sep=', ';;
1308 esac
1309 eval with_$ac_useropt=\$ac_optarg ;;
1311 -without-* | --without-*)
1312 ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1313 # Reject names that are not valid shell variable names.
1314 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1315 as_fn_error "invalid package name: $ac_useropt"
1316 ac_useropt_orig=$ac_useropt
1317 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1318 case $ac_user_opts in
1320 "with_$ac_useropt"
1321 "*) ;;
1322 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1323 ac_unrecognized_sep=', ';;
1324 esac
1325 eval with_$ac_useropt=no ;;
1327 --x)
1328 # Obsolete; use --with-x.
1329 with_x=yes ;;
1331 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1332 | --x-incl | --x-inc | --x-in | --x-i)
1333 ac_prev=x_includes ;;
1334 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1335 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1336 x_includes=$ac_optarg ;;
1338 -x-libraries | --x-libraries | --x-librarie | --x-librari \
1339 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1340 ac_prev=x_libraries ;;
1341 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1342 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1343 x_libraries=$ac_optarg ;;
1345 -*) as_fn_error "unrecognized option: \`$ac_option'
1346 Try \`$0 --help' for more information."
1349 *=*)
1350 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1351 # Reject names that are not valid shell variable names.
1352 case $ac_envvar in #(
1353 '' | [0-9]* | *[!_$as_cr_alnum]* )
1354 as_fn_error "invalid variable name: \`$ac_envvar'" ;;
1355 esac
1356 eval $ac_envvar=\$ac_optarg
1357 export $ac_envvar ;;
1360 # FIXME: should be removed in autoconf 3.0.
1361 $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1362 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1363 $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1364 : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
1367 esac
1368 done
1370 if test -n "$ac_prev"; then
1371 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1372 as_fn_error "missing argument to $ac_option"
1375 if test -n "$ac_unrecognized_opts"; then
1376 case $enable_option_checking in
1377 no) ;;
1378 fatal) as_fn_error "unrecognized options: $ac_unrecognized_opts" ;;
1379 *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1380 esac
1383 # Check all directory arguments for consistency.
1384 for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1385 datadir sysconfdir sharedstatedir localstatedir includedir \
1386 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1387 libdir localedir mandir
1389 eval ac_val=\$$ac_var
1390 # Remove trailing slashes.
1391 case $ac_val in
1392 */ )
1393 ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1394 eval $ac_var=\$ac_val;;
1395 esac
1396 # Be sure to have absolute directory names.
1397 case $ac_val in
1398 [\\/$]* | ?:[\\/]* ) continue;;
1399 NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1400 esac
1401 as_fn_error "expected an absolute directory name for --$ac_var: $ac_val"
1402 done
1404 # There might be people who depend on the old broken behavior: `$host'
1405 # used to hold the argument of --host etc.
1406 # FIXME: To remove some day.
1407 build=$build_alias
1408 host=$host_alias
1409 target=$target_alias
1411 # FIXME: To remove some day.
1412 if test "x$host_alias" != x; then
1413 if test "x$build_alias" = x; then
1414 cross_compiling=maybe
1415 $as_echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
1416 If a cross compiler is detected then cross compile mode will be used." >&2
1417 elif test "x$build_alias" != "x$host_alias"; then
1418 cross_compiling=yes
1422 ac_tool_prefix=
1423 test -n "$host_alias" && ac_tool_prefix=$host_alias-
1425 test "$silent" = yes && exec 6>/dev/null
1428 ac_pwd=`pwd` && test -n "$ac_pwd" &&
1429 ac_ls_di=`ls -di .` &&
1430 ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1431 as_fn_error "working directory cannot be determined"
1432 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1433 as_fn_error "pwd does not report name of working directory"
1436 # Find the source files, if location was not specified.
1437 if test -z "$srcdir"; then
1438 ac_srcdir_defaulted=yes
1439 # Try the directory containing this script, then the parent directory.
1440 ac_confdir=`$as_dirname -- "$as_myself" ||
1441 $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1442 X"$as_myself" : 'X\(//\)[^/]' \| \
1443 X"$as_myself" : 'X\(//\)$' \| \
1444 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1445 $as_echo X"$as_myself" |
1446 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1447 s//\1/
1450 /^X\(\/\/\)[^/].*/{
1451 s//\1/
1454 /^X\(\/\/\)$/{
1455 s//\1/
1458 /^X\(\/\).*/{
1459 s//\1/
1462 s/.*/./; q'`
1463 srcdir=$ac_confdir
1464 if test ! -r "$srcdir/$ac_unique_file"; then
1465 srcdir=..
1467 else
1468 ac_srcdir_defaulted=no
1470 if test ! -r "$srcdir/$ac_unique_file"; then
1471 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1472 as_fn_error "cannot find sources ($ac_unique_file) in $srcdir"
1474 ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1475 ac_abs_confdir=`(
1476 cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error "$ac_msg"
1477 pwd)`
1478 # When building in place, set srcdir=.
1479 if test "$ac_abs_confdir" = "$ac_pwd"; then
1480 srcdir=.
1482 # Remove unnecessary trailing slashes from srcdir.
1483 # Double slashes in file names in object file debugging info
1484 # mess up M-x gdb in Emacs.
1485 case $srcdir in
1486 */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1487 esac
1488 for ac_var in $ac_precious_vars; do
1489 eval ac_env_${ac_var}_set=\${${ac_var}+set}
1490 eval ac_env_${ac_var}_value=\$${ac_var}
1491 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1492 eval ac_cv_env_${ac_var}_value=\$${ac_var}
1493 done
1496 # Report the --help message.
1498 if test "$ac_init_help" = "long"; then
1499 # Omit some internal or obsolete options to make the list less imposing.
1500 # This message is too long to be a string in the A/UX 3.1 sh.
1501 cat <<_ACEOF
1502 \`configure' configures this package to adapt to many kinds of systems.
1504 Usage: $0 [OPTION]... [VAR=VALUE]...
1506 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1507 VAR=VALUE. See below for descriptions of some of the useful variables.
1509 Defaults for the options are specified in brackets.
1511 Configuration:
1512 -h, --help display this help and exit
1513 --help=short display options specific to this package
1514 --help=recursive display the short help of all the included packages
1515 -V, --version display version information and exit
1516 -q, --quiet, --silent do not print \`checking...' messages
1517 --cache-file=FILE cache test results in FILE [disabled]
1518 -C, --config-cache alias for \`--cache-file=config.cache'
1519 -n, --no-create do not create output files
1520 --srcdir=DIR find the sources in DIR [configure dir or \`..']
1522 Installation directories:
1523 --prefix=PREFIX install architecture-independent files in PREFIX
1524 [$ac_default_prefix]
1525 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
1526 [PREFIX]
1528 By default, \`make install' will install all the files in
1529 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1530 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1531 for instance \`--prefix=\$HOME'.
1533 For better control, use the options below.
1535 Fine tuning of the installation directories:
1536 --bindir=DIR user executables [EPREFIX/bin]
1537 --sbindir=DIR system admin executables [EPREFIX/sbin]
1538 --libexecdir=DIR program executables [EPREFIX/libexec]
1539 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1540 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1541 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1542 --libdir=DIR object code libraries [EPREFIX/lib]
1543 --includedir=DIR C header files [PREFIX/include]
1544 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1545 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1546 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1547 --infodir=DIR info documentation [DATAROOTDIR/info]
1548 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1549 --mandir=DIR man documentation [DATAROOTDIR/man]
1550 --docdir=DIR documentation root [DATAROOTDIR/doc/PACKAGE]
1551 --htmldir=DIR html documentation [DOCDIR]
1552 --dvidir=DIR dvi documentation [DOCDIR]
1553 --pdfdir=DIR pdf documentation [DOCDIR]
1554 --psdir=DIR ps documentation [DOCDIR]
1555 _ACEOF
1557 cat <<\_ACEOF
1559 Program names:
1560 --program-prefix=PREFIX prepend PREFIX to installed program names
1561 --program-suffix=SUFFIX append SUFFIX to installed program names
1562 --program-transform-name=PROGRAM run sed PROGRAM on installed program names
1564 System types:
1565 --build=BUILD configure for building on BUILD [guessed]
1566 --host=HOST cross-compile to build programs to run on HOST [BUILD]
1567 --target=TARGET configure for building compilers for TARGET [HOST]
1568 _ACEOF
1571 if test -n "$ac_init_help"; then
1573 cat <<\_ACEOF
1575 Optional Features:
1576 --disable-option-checking ignore unrecognized --enable/--with options
1577 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
1578 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
1579 --enable-generated-files-in-srcdir
1580 put copies of generated files in source dir intended
1581 for creating source tarballs for users without
1582 texinfo bison or flex
1583 --disable-largefile omit support for large files
1584 --disable-build-format-warnings
1585 don't use -Wformat while building GCC
1586 --enable-werror-always enable -Werror despite compiler version
1587 --enable-checking[=LIST]
1588 enable expensive run-time checks. With LIST, enable
1589 only specific categories of checks. Categories are:
1590 yes,no,all,none,release. Flags are:
1591 assert,df,fold,gc,gcac,gimple,misc,
1592 rtlflag,rtl,runtime,tree,valgrind,types
1593 --enable-coverage[=LEVEL]
1594 enable compiler's code coverage collection. Use to
1595 measure compiler performance and locate unused parts
1596 of the compiler. With LEVEL, specify optimization.
1597 Values are opt, noopt, default is noopt
1598 --enable-gather-detailed-mem-stats
1599 enable detailed memory allocation stats gathering
1600 --enable-multilib enable library support for multiple ABIs
1601 --enable-multiarch enable support for multiarch paths
1602 --enable-__cxa_atexit enable __cxa_atexit for C++
1603 --enable-decimal-float={no,yes,bid,dpd}
1604 enable decimal float extension to C. Selecting 'bid'
1605 or 'dpd' choses which decimal floating point format
1606 to use
1607 --enable-fixed-point enable fixed-point arithmetic extension to C
1608 --enable-threads[=LIB] enable thread usage for target GCC, using LIB thread
1609 package
1610 --enable-tls enable or disable generation of tls code overriding
1611 the assembler check for tls support
1612 --enable-objc-gc enable the use of Boehm's garbage collector with the
1613 GNU Objective-C runtime
1614 --disable-shared don't provide a shared libgcc
1615 --enable-languages=LIST specify which front-ends to build
1616 --disable-rpath do not hardcode runtime library paths
1617 --enable-sjlj-exceptions
1618 arrange to use setjmp/longjmp exception handling
1619 --enable-secureplt enable -msecure-plt by default for PowerPC
1620 --enable-leading-mingw64-underscores
1621 enable leading underscores on 64 bit mingw targets
1622 --enable-cld enable -mcld by default for 32bit x86
1623 --enable-frame-pointer enable -fno-omit-frame-pointer by default for 32bit
1625 --disable-win32-registry
1626 disable lookup of installation paths in the Registry
1627 on Windows hosts
1628 --enable-win32-registry enable registry lookup (default)
1629 --enable-win32-registry=KEY
1630 use KEY instead of GCC version as the last portion
1631 of the registry key
1632 --enable-shared[=PKGS] build shared libraries [default=yes]
1633 --enable-static[=PKGS] build static libraries [default=yes]
1634 --enable-fast-install[=PKGS]
1635 optimize for fast installation [default=yes]
1636 --disable-libtool-lock avoid locking (might break parallel builds)
1637 --enable-ld[=ARG] build ld [ARG={default,yes,no}]
1638 --enable-gold[=ARG] build gold [ARG={default,yes,no}]
1639 --enable-gnu-indirect-function
1640 enable the use of the @gnu_indirect_function to
1641 glibc systems
1642 --enable-initfini-array use .init_array/.fini_array sections
1643 --enable-comdat enable COMDAT group support
1645 --enable-fix-cortex-a53-835769
1646 enable workaround for AArch64 Cortex-A53 erratum
1647 835769 by default
1648 --disable-fix-cortex-a53-835769
1649 disable workaround for AArch64 Cortex-A53 erratum
1650 835769 by default
1652 --enable-gnu-unique-object
1653 enable the use of the @gnu_unique_object ELF
1654 extension on glibc systems
1655 --enable-eh-frame-hdr-for-static
1656 enable linker PT_GNU_EH_FRAME support for static
1657 executable
1658 --enable-linker-build-id
1659 compiler will always pass --build-id to linker
1660 --enable-maintainer-mode
1661 enable make rules and dependencies not useful (and
1662 sometimes confusing) to the casual installer
1663 --enable-link-mutex avoid linking multiple front-ends at once to avoid
1664 thrashing on the build machine
1665 --enable-version-specific-runtime-libs
1666 specify that runtime libraries should be installed
1667 in a compiler-specific directory
1668 --enable-canonical-prefixes
1669 enable or disable prefix canonicalization
1670 --enable-plugin enable plugin support
1671 --enable-host-shared build host code as shared libraries
1672 --disable-libquadmath-support
1673 disable libquadmath support for Fortran
1675 Optional Packages:
1676 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1677 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
1678 --with-build-libsubdir=DIR Directory where to find libraries for build system
1679 --with-local-prefix=DIR specifies directory to put local include
1680 --with-gxx-include-dir=DIR
1681 specifies directory to put g++ header files
1682 --with-cpp-install-dir=DIR
1683 install the user visible C preprocessor in DIR
1684 (relative to PREFIX) as well as PREFIX/bin
1685 --with-gnu-ld arrange to work with GNU ld
1686 --with-ld arrange to use the specified ld (full pathname)
1687 --with-demangler-in-ld try to use demangler in GNU ld
1688 --with-gnu-as arrange to work with GNU as
1689 --with-as arrange to use the specified as (full pathname)
1690 --with-stabs arrange to use stabs instead of host debug format
1691 --with-dwarf2 force the default debug format to be DWARF 2
1692 --with-native-system-header-dir=dir
1693 use dir as the directory to look for standard
1694 system header files in. Defaults to /usr/include.
1695 --with-build-sysroot=sysroot
1696 use sysroot as the system root during the build
1697 --with-runtime-root-prefix=prefix
1698 prepend prefix to paths used by the compiler to
1699 name the dynamic linker and other files used at
1700 runtime. Defaults to empty (no prefix).
1701 --with-sysroot[=DIR] search for usr/lib, usr/include, et al, within DIR
1702 --with-specs=SPECS add SPECS to driver command-line processing
1703 --with-pkgversion=PKG Use PKG in the version string in place of "GCC"
1704 --with-bugurl=URL Direct users to URL to report a bug
1705 --with-multilib-list select multilibs (AArch64, SH and x86-64 only)
1706 --with-gnu-ld assume the C compiler uses GNU ld default=no
1707 --with-libiconv-prefix[=DIR] search for libiconv in DIR/include and DIR/lib
1708 --without-libiconv-prefix don't search for libiconv in includedir and libdir
1709 --with-pic try to use only PIC/non-PIC objects [default=use
1710 both]
1711 --with-gnu-ld assume the C compiler uses GNU ld [default=no]
1712 --with-plugin-ld=[ARG] specify the plugin linker
1713 --with-glibc-version=M.N
1714 assume GCC used with glibc version M.N or later
1715 --with-long-double-128 use 128-bit long double by default
1716 --with-gc={page,zone} this option is not supported anymore. It used to
1717 choose the garbage collection mechanism to use with
1718 the compiler
1719 --with-system-zlib use installed libz
1720 --with-warn-frame-larger-than-extra-text=TEXT
1721 specifies extra text for frame size warnings
1722 --with-linker-hash-style={sysv,gnu,both}
1723 specify the linker hash style
1725 Some influential environment variables:
1726 CC C compiler command
1727 CFLAGS C compiler flags
1728 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1729 nonstandard directory <lib dir>
1730 LIBS libraries to pass to the linker, e.g. -l<library>
1731 CPPFLAGS C/C++/Objective C preprocessor flags, e.g. -I<include dir> if
1732 you have headers in a nonstandard directory <include dir>
1733 CXX C++ compiler command
1734 CXXFLAGS C++ compiler flags
1735 CPP C preprocessor
1736 CXXCPP C++ preprocessor
1737 GMPLIBS How to link GMP
1738 GMPINC How to find GMP include files
1739 ISLLIBS How to link ISL
1740 ISLINC How to find ISL include files
1741 CLOOGLIBS How to link CLOOG
1742 CLOOGINC How to find CLOOG include files
1744 Use these variables to override the choices made by `configure' or to help
1745 it to find libraries and programs with nonstandard names/locations.
1747 Report bugs to the package provider.
1748 _ACEOF
1749 ac_status=$?
1752 if test "$ac_init_help" = "recursive"; then
1753 # If there are subdirs, report their specific --help.
1754 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1755 test -d "$ac_dir" ||
1756 { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1757 continue
1758 ac_builddir=.
1760 case "$ac_dir" in
1761 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1763 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
1764 # A ".." for each directory in $ac_dir_suffix.
1765 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
1766 case $ac_top_builddir_sub in
1767 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1768 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1769 esac ;;
1770 esac
1771 ac_abs_top_builddir=$ac_pwd
1772 ac_abs_builddir=$ac_pwd$ac_dir_suffix
1773 # for backward compatibility:
1774 ac_top_builddir=$ac_top_build_prefix
1776 case $srcdir in
1777 .) # We are building in place.
1778 ac_srcdir=.
1779 ac_top_srcdir=$ac_top_builddir_sub
1780 ac_abs_top_srcdir=$ac_pwd ;;
1781 [\\/]* | ?:[\\/]* ) # Absolute name.
1782 ac_srcdir=$srcdir$ac_dir_suffix;
1783 ac_top_srcdir=$srcdir
1784 ac_abs_top_srcdir=$srcdir ;;
1785 *) # Relative name.
1786 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1787 ac_top_srcdir=$ac_top_build_prefix$srcdir
1788 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1789 esac
1790 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1792 cd "$ac_dir" || { ac_status=$?; continue; }
1793 # Check for guested configure.
1794 if test -f "$ac_srcdir/configure.gnu"; then
1795 echo &&
1796 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1797 elif test -f "$ac_srcdir/configure"; then
1798 echo &&
1799 $SHELL "$ac_srcdir/configure" --help=recursive
1800 else
1801 $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1802 fi || ac_status=$?
1803 cd "$ac_pwd" || { ac_status=$?; break; }
1804 done
1807 test -n "$ac_init_help" && exit $ac_status
1808 if $ac_init_version; then
1809 cat <<\_ACEOF
1810 configure
1811 generated by GNU Autoconf 2.64
1813 Copyright (C) 2009 Free Software Foundation, Inc.
1814 This configure script is free software; the Free Software Foundation
1815 gives unlimited permission to copy, distribute and modify it.
1816 _ACEOF
1817 exit
1820 ## ------------------------ ##
1821 ## Autoconf initialization. ##
1822 ## ------------------------ ##
1824 # ac_fn_c_try_compile LINENO
1825 # --------------------------
1826 # Try to compile conftest.$ac_ext, and return whether this succeeded.
1827 ac_fn_c_try_compile ()
1829 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1830 rm -f conftest.$ac_objext
1831 if { { ac_try="$ac_compile"
1832 case "(($ac_try" in
1833 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1834 *) ac_try_echo=$ac_try;;
1835 esac
1836 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1837 $as_echo "$ac_try_echo"; } >&5
1838 (eval "$ac_compile") 2>conftest.err
1839 ac_status=$?
1840 if test -s conftest.err; then
1841 grep -v '^ *+' conftest.err >conftest.er1
1842 cat conftest.er1 >&5
1843 mv -f conftest.er1 conftest.err
1845 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1846 test $ac_status = 0; } && {
1847 test -z "$ac_c_werror_flag" ||
1848 test ! -s conftest.err
1849 } && test -s conftest.$ac_objext; then :
1850 ac_retval=0
1851 else
1852 $as_echo "$as_me: failed program was:" >&5
1853 sed 's/^/| /' conftest.$ac_ext >&5
1855 ac_retval=1
1857 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1858 return $ac_retval
1860 } # ac_fn_c_try_compile
1862 # ac_fn_cxx_try_compile LINENO
1863 # ----------------------------
1864 # Try to compile conftest.$ac_ext, and return whether this succeeded.
1865 ac_fn_cxx_try_compile ()
1867 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1868 rm -f conftest.$ac_objext
1869 if { { ac_try="$ac_compile"
1870 case "(($ac_try" in
1871 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1872 *) ac_try_echo=$ac_try;;
1873 esac
1874 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1875 $as_echo "$ac_try_echo"; } >&5
1876 (eval "$ac_compile") 2>conftest.err
1877 ac_status=$?
1878 if test -s conftest.err; then
1879 grep -v '^ *+' conftest.err >conftest.er1
1880 cat conftest.er1 >&5
1881 mv -f conftest.er1 conftest.err
1883 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1884 test $ac_status = 0; } && {
1885 test -z "$ac_cxx_werror_flag" ||
1886 test ! -s conftest.err
1887 } && test -s conftest.$ac_objext; then :
1888 ac_retval=0
1889 else
1890 $as_echo "$as_me: failed program was:" >&5
1891 sed 's/^/| /' conftest.$ac_ext >&5
1893 ac_retval=1
1895 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1896 return $ac_retval
1898 } # ac_fn_cxx_try_compile
1900 # ac_fn_c_try_cpp LINENO
1901 # ----------------------
1902 # Try to preprocess conftest.$ac_ext, and return whether this succeeded.
1903 ac_fn_c_try_cpp ()
1905 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1906 if { { ac_try="$ac_cpp conftest.$ac_ext"
1907 case "(($ac_try" in
1908 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1909 *) ac_try_echo=$ac_try;;
1910 esac
1911 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1912 $as_echo "$ac_try_echo"; } >&5
1913 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
1914 ac_status=$?
1915 if test -s conftest.err; then
1916 grep -v '^ *+' conftest.err >conftest.er1
1917 cat conftest.er1 >&5
1918 mv -f conftest.er1 conftest.err
1920 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1921 test $ac_status = 0; } >/dev/null && {
1922 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
1923 test ! -s conftest.err
1924 }; then :
1925 ac_retval=0
1926 else
1927 $as_echo "$as_me: failed program was:" >&5
1928 sed 's/^/| /' conftest.$ac_ext >&5
1930 ac_retval=1
1932 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1933 return $ac_retval
1935 } # ac_fn_c_try_cpp
1937 # ac_fn_c_check_header_mongrel LINENO HEADER VAR INCLUDES
1938 # -------------------------------------------------------
1939 # Tests whether HEADER exists, giving a warning if it cannot be compiled using
1940 # the include files in INCLUDES and setting the cache variable VAR
1941 # accordingly.
1942 ac_fn_c_check_header_mongrel ()
1944 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1945 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
1946 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1947 $as_echo_n "checking for $2... " >&6; }
1948 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
1949 $as_echo_n "(cached) " >&6
1951 eval ac_res=\$$3
1952 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1953 $as_echo "$ac_res" >&6; }
1954 else
1955 # Is the header compilable?
1956 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5
1957 $as_echo_n "checking $2 usability... " >&6; }
1958 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1959 /* end confdefs.h. */
1961 #include <$2>
1962 _ACEOF
1963 if ac_fn_c_try_compile "$LINENO"; then :
1964 ac_header_compiler=yes
1965 else
1966 ac_header_compiler=no
1968 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1969 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5
1970 $as_echo "$ac_header_compiler" >&6; }
1972 # Is the header present?
1973 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5
1974 $as_echo_n "checking $2 presence... " >&6; }
1975 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1976 /* end confdefs.h. */
1977 #include <$2>
1978 _ACEOF
1979 if ac_fn_c_try_cpp "$LINENO"; then :
1980 ac_header_preproc=yes
1981 else
1982 ac_header_preproc=no
1984 rm -f conftest.err conftest.$ac_ext
1985 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5
1986 $as_echo "$ac_header_preproc" >&6; }
1988 # So? What about this header?
1989 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in #((
1990 yes:no: )
1991 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5
1992 $as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;}
1993 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
1994 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
1996 no:yes:* )
1997 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5
1998 $as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;}
1999 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: check for missing prerequisite headers?" >&5
2000 $as_echo "$as_me: WARNING: $2: check for missing prerequisite headers?" >&2;}
2001 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5
2002 $as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;}
2003 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&5
2004 $as_echo "$as_me: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&2;}
2005 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
2006 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
2008 esac
2009 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2010 $as_echo_n "checking for $2... " >&6; }
2011 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
2012 $as_echo_n "(cached) " >&6
2013 else
2014 eval "$3=\$ac_header_compiler"
2016 eval ac_res=\$$3
2017 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2018 $as_echo "$ac_res" >&6; }
2020 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2022 } # ac_fn_c_check_header_mongrel
2024 # ac_fn_c_try_run LINENO
2025 # ----------------------
2026 # Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
2027 # that executables *can* be run.
2028 ac_fn_c_try_run ()
2030 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2031 if { { ac_try="$ac_link"
2032 case "(($ac_try" in
2033 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2034 *) ac_try_echo=$ac_try;;
2035 esac
2036 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2037 $as_echo "$ac_try_echo"; } >&5
2038 (eval "$ac_link") 2>&5
2039 ac_status=$?
2040 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2041 test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
2042 { { case "(($ac_try" in
2043 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2044 *) ac_try_echo=$ac_try;;
2045 esac
2046 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2047 $as_echo "$ac_try_echo"; } >&5
2048 (eval "$ac_try") 2>&5
2049 ac_status=$?
2050 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2051 test $ac_status = 0; }; }; then :
2052 ac_retval=0
2053 else
2054 $as_echo "$as_me: program exited with status $ac_status" >&5
2055 $as_echo "$as_me: failed program was:" >&5
2056 sed 's/^/| /' conftest.$ac_ext >&5
2058 ac_retval=$ac_status
2060 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
2061 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2062 return $ac_retval
2064 } # ac_fn_c_try_run
2066 # ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
2067 # -------------------------------------------------------
2068 # Tests whether HEADER exists and can be compiled using the include files in
2069 # INCLUDES, setting the cache variable VAR accordingly.
2070 ac_fn_c_check_header_compile ()
2072 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2073 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2074 $as_echo_n "checking for $2... " >&6; }
2075 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
2076 $as_echo_n "(cached) " >&6
2077 else
2078 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2079 /* end confdefs.h. */
2081 #include <$2>
2082 _ACEOF
2083 if ac_fn_c_try_compile "$LINENO"; then :
2084 eval "$3=yes"
2085 else
2086 eval "$3=no"
2088 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2090 eval ac_res=\$$3
2091 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2092 $as_echo "$ac_res" >&6; }
2093 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2095 } # ac_fn_c_check_header_compile
2097 # ac_fn_c_compute_int LINENO EXPR VAR INCLUDES
2098 # --------------------------------------------
2099 # Tries to find the compile-time value of EXPR in a program that includes
2100 # INCLUDES, setting VAR accordingly. Returns whether the value could be
2101 # computed
2102 ac_fn_c_compute_int ()
2104 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2105 if test "$cross_compiling" = yes; then
2106 # Depending upon the size, compute the lo and hi bounds.
2107 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2108 /* end confdefs.h. */
2111 main ()
2113 static int test_array [1 - 2 * !(($2) >= 0)];
2114 test_array [0] = 0
2117 return 0;
2119 _ACEOF
2120 if ac_fn_c_try_compile "$LINENO"; then :
2121 ac_lo=0 ac_mid=0
2122 while :; do
2123 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2124 /* end confdefs.h. */
2127 main ()
2129 static int test_array [1 - 2 * !(($2) <= $ac_mid)];
2130 test_array [0] = 0
2133 return 0;
2135 _ACEOF
2136 if ac_fn_c_try_compile "$LINENO"; then :
2137 ac_hi=$ac_mid; break
2138 else
2139 as_fn_arith $ac_mid + 1 && ac_lo=$as_val
2140 if test $ac_lo -le $ac_mid; then
2141 ac_lo= ac_hi=
2142 break
2144 as_fn_arith 2 '*' $ac_mid + 1 && ac_mid=$as_val
2146 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2147 done
2148 else
2149 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2150 /* end confdefs.h. */
2153 main ()
2155 static int test_array [1 - 2 * !(($2) < 0)];
2156 test_array [0] = 0
2159 return 0;
2161 _ACEOF
2162 if ac_fn_c_try_compile "$LINENO"; then :
2163 ac_hi=-1 ac_mid=-1
2164 while :; do
2165 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2166 /* end confdefs.h. */
2169 main ()
2171 static int test_array [1 - 2 * !(($2) >= $ac_mid)];
2172 test_array [0] = 0
2175 return 0;
2177 _ACEOF
2178 if ac_fn_c_try_compile "$LINENO"; then :
2179 ac_lo=$ac_mid; break
2180 else
2181 as_fn_arith '(' $ac_mid ')' - 1 && ac_hi=$as_val
2182 if test $ac_mid -le $ac_hi; then
2183 ac_lo= ac_hi=
2184 break
2186 as_fn_arith 2 '*' $ac_mid && ac_mid=$as_val
2188 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2189 done
2190 else
2191 ac_lo= ac_hi=
2193 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2195 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2196 # Binary search between lo and hi bounds.
2197 while test "x$ac_lo" != "x$ac_hi"; do
2198 as_fn_arith '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo && ac_mid=$as_val
2199 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2200 /* end confdefs.h. */
2203 main ()
2205 static int test_array [1 - 2 * !(($2) <= $ac_mid)];
2206 test_array [0] = 0
2209 return 0;
2211 _ACEOF
2212 if ac_fn_c_try_compile "$LINENO"; then :
2213 ac_hi=$ac_mid
2214 else
2215 as_fn_arith '(' $ac_mid ')' + 1 && ac_lo=$as_val
2217 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2218 done
2219 case $ac_lo in #((
2220 ?*) eval "$3=\$ac_lo"; ac_retval=0 ;;
2221 '') ac_retval=1 ;;
2222 esac
2223 else
2224 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2225 /* end confdefs.h. */
2227 static long int longval () { return $2; }
2228 static unsigned long int ulongval () { return $2; }
2229 #include <stdio.h>
2230 #include <stdlib.h>
2232 main ()
2235 FILE *f = fopen ("conftest.val", "w");
2236 if (! f)
2237 return 1;
2238 if (($2) < 0)
2240 long int i = longval ();
2241 if (i != ($2))
2242 return 1;
2243 fprintf (f, "%ld", i);
2245 else
2247 unsigned long int i = ulongval ();
2248 if (i != ($2))
2249 return 1;
2250 fprintf (f, "%lu", i);
2252 /* Do not output a trailing newline, as this causes \r\n confusion
2253 on some platforms. */
2254 return ferror (f) || fclose (f) != 0;
2257 return 0;
2259 _ACEOF
2260 if ac_fn_c_try_run "$LINENO"; then :
2261 echo >>conftest.val; read $3 <conftest.val; ac_retval=0
2262 else
2263 ac_retval=1
2265 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
2266 conftest.$ac_objext conftest.beam conftest.$ac_ext
2267 rm -f conftest.val
2270 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2271 return $ac_retval
2273 } # ac_fn_c_compute_int
2275 # ac_fn_c_check_type LINENO TYPE VAR INCLUDES
2276 # -------------------------------------------
2277 # Tests whether TYPE exists after having included INCLUDES, setting cache
2278 # variable VAR accordingly.
2279 ac_fn_c_check_type ()
2281 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2282 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2283 $as_echo_n "checking for $2... " >&6; }
2284 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
2285 $as_echo_n "(cached) " >&6
2286 else
2287 eval "$3=no"
2288 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2289 /* end confdefs.h. */
2292 main ()
2294 if (sizeof ($2))
2295 return 0;
2297 return 0;
2299 _ACEOF
2300 if ac_fn_c_try_compile "$LINENO"; then :
2301 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2302 /* end confdefs.h. */
2305 main ()
2307 if (sizeof (($2)))
2308 return 0;
2310 return 0;
2312 _ACEOF
2313 if ac_fn_c_try_compile "$LINENO"; then :
2315 else
2316 eval "$3=yes"
2318 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2320 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2322 eval ac_res=\$$3
2323 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2324 $as_echo "$ac_res" >&6; }
2325 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2327 } # ac_fn_c_check_type
2329 # ac_fn_c_find_intX_t LINENO BITS VAR
2330 # -----------------------------------
2331 # Finds a signed integer type with width BITS, setting cache variable VAR
2332 # accordingly.
2333 ac_fn_c_find_intX_t ()
2335 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2336 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for int$2_t" >&5
2337 $as_echo_n "checking for int$2_t... " >&6; }
2338 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
2339 $as_echo_n "(cached) " >&6
2340 else
2341 eval "$3=no"
2342 for ac_type in int$2_t 'int' 'long int' \
2343 'long long int' 'short int' 'signed char'; do
2344 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2345 /* end confdefs.h. */
2346 $ac_includes_default
2348 main ()
2350 static int test_array [1 - 2 * !(0 < ($ac_type) (((($ac_type) 1 << ($2 - 2)) - 1) * 2 + 1))];
2351 test_array [0] = 0
2354 return 0;
2356 _ACEOF
2357 if ac_fn_c_try_compile "$LINENO"; then :
2358 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2359 /* end confdefs.h. */
2360 $ac_includes_default
2362 main ()
2364 static int test_array [1 - 2 * !(($ac_type) (((($ac_type) 1 << ($2 - 2)) - 1) * 2 + 1)
2365 < ($ac_type) (((($ac_type) 1 << ($2 - 2)) - 1) * 2 + 2))];
2366 test_array [0] = 0
2369 return 0;
2371 _ACEOF
2372 if ac_fn_c_try_compile "$LINENO"; then :
2374 else
2375 case $ac_type in #(
2376 int$2_t) :
2377 eval "$3=yes" ;; #(
2378 *) :
2379 eval "$3=\$ac_type" ;;
2380 esac
2382 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2384 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2385 eval as_val=\$$3
2386 if test "x$as_val" = x""no; then :
2388 else
2389 break
2391 done
2393 eval ac_res=\$$3
2394 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2395 $as_echo "$ac_res" >&6; }
2396 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2398 } # ac_fn_c_find_intX_t
2400 # ac_fn_c_try_link LINENO
2401 # -----------------------
2402 # Try to link conftest.$ac_ext, and return whether this succeeded.
2403 ac_fn_c_try_link ()
2405 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2406 rm -f conftest.$ac_objext conftest$ac_exeext
2407 if { { ac_try="$ac_link"
2408 case "(($ac_try" in
2409 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2410 *) ac_try_echo=$ac_try;;
2411 esac
2412 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2413 $as_echo "$ac_try_echo"; } >&5
2414 (eval "$ac_link") 2>conftest.err
2415 ac_status=$?
2416 if test -s conftest.err; then
2417 grep -v '^ *+' conftest.err >conftest.er1
2418 cat conftest.er1 >&5
2419 mv -f conftest.er1 conftest.err
2421 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2422 test $ac_status = 0; } && {
2423 test -z "$ac_c_werror_flag" ||
2424 test ! -s conftest.err
2425 } && test -s conftest$ac_exeext && {
2426 test "$cross_compiling" = yes ||
2427 $as_test_x conftest$ac_exeext
2428 }; then :
2429 ac_retval=0
2430 else
2431 $as_echo "$as_me: failed program was:" >&5
2432 sed 's/^/| /' conftest.$ac_ext >&5
2434 ac_retval=1
2436 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
2437 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
2438 # interfere with the next link command; also delete a directory that is
2439 # left behind by Apple's compiler. We do this before executing the actions.
2440 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
2441 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2442 return $ac_retval
2444 } # ac_fn_c_try_link
2446 # ac_fn_c_find_uintX_t LINENO BITS VAR
2447 # ------------------------------------
2448 # Finds an unsigned integer type with width BITS, setting cache variable VAR
2449 # accordingly.
2450 ac_fn_c_find_uintX_t ()
2452 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2453 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for uint$2_t" >&5
2454 $as_echo_n "checking for uint$2_t... " >&6; }
2455 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
2456 $as_echo_n "(cached) " >&6
2457 else
2458 eval "$3=no"
2459 for ac_type in uint$2_t 'unsigned int' 'unsigned long int' \
2460 'unsigned long long int' 'unsigned short int' 'unsigned char'; do
2461 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2462 /* end confdefs.h. */
2463 $ac_includes_default
2465 main ()
2467 static int test_array [1 - 2 * !(($ac_type) -1 >> ($2 - 1) == 1)];
2468 test_array [0] = 0
2471 return 0;
2473 _ACEOF
2474 if ac_fn_c_try_compile "$LINENO"; then :
2475 case $ac_type in #(
2476 uint$2_t) :
2477 eval "$3=yes" ;; #(
2478 *) :
2479 eval "$3=\$ac_type" ;;
2480 esac
2482 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2483 eval as_val=\$$3
2484 if test "x$as_val" = x""no; then :
2486 else
2487 break
2489 done
2491 eval ac_res=\$$3
2492 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2493 $as_echo "$ac_res" >&6; }
2494 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2496 } # ac_fn_c_find_uintX_t
2498 # ac_fn_c_check_header_preproc LINENO HEADER VAR
2499 # ----------------------------------------------
2500 # Tests whether HEADER is present, setting the cache variable VAR accordingly.
2501 ac_fn_c_check_header_preproc ()
2503 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2504 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2505 $as_echo_n "checking for $2... " >&6; }
2506 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
2507 $as_echo_n "(cached) " >&6
2508 else
2509 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2510 /* end confdefs.h. */
2511 #include <$2>
2512 _ACEOF
2513 if ac_fn_c_try_cpp "$LINENO"; then :
2514 eval "$3=yes"
2515 else
2516 eval "$3=no"
2518 rm -f conftest.err conftest.$ac_ext
2520 eval ac_res=\$$3
2521 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2522 $as_echo "$ac_res" >&6; }
2523 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2525 } # ac_fn_c_check_header_preproc
2527 # ac_fn_cxx_try_cpp LINENO
2528 # ------------------------
2529 # Try to preprocess conftest.$ac_ext, and return whether this succeeded.
2530 ac_fn_cxx_try_cpp ()
2532 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2533 if { { ac_try="$ac_cpp conftest.$ac_ext"
2534 case "(($ac_try" in
2535 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2536 *) ac_try_echo=$ac_try;;
2537 esac
2538 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2539 $as_echo "$ac_try_echo"; } >&5
2540 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
2541 ac_status=$?
2542 if test -s conftest.err; then
2543 grep -v '^ *+' conftest.err >conftest.er1
2544 cat conftest.er1 >&5
2545 mv -f conftest.er1 conftest.err
2547 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2548 test $ac_status = 0; } >/dev/null && {
2549 test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
2550 test ! -s conftest.err
2551 }; then :
2552 ac_retval=0
2553 else
2554 $as_echo "$as_me: failed program was:" >&5
2555 sed 's/^/| /' conftest.$ac_ext >&5
2557 ac_retval=1
2559 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2560 return $ac_retval
2562 } # ac_fn_cxx_try_cpp
2564 # ac_fn_cxx_check_header_preproc LINENO HEADER VAR
2565 # ------------------------------------------------
2566 # Tests whether HEADER is present, setting the cache variable VAR accordingly.
2567 ac_fn_cxx_check_header_preproc ()
2569 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2570 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2571 $as_echo_n "checking for $2... " >&6; }
2572 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
2573 $as_echo_n "(cached) " >&6
2574 else
2575 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2576 /* end confdefs.h. */
2577 #include <$2>
2578 _ACEOF
2579 if ac_fn_cxx_try_cpp "$LINENO"; then :
2580 eval "$3=yes"
2581 else
2582 eval "$3=no"
2584 rm -f conftest.err conftest.$ac_ext
2586 eval ac_res=\$$3
2587 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2588 $as_echo "$ac_res" >&6; }
2589 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2591 } # ac_fn_cxx_check_header_preproc
2593 # ac_fn_c_check_func LINENO FUNC VAR
2594 # ----------------------------------
2595 # Tests whether FUNC exists, setting the cache variable VAR accordingly
2596 ac_fn_c_check_func ()
2598 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2599 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2600 $as_echo_n "checking for $2... " >&6; }
2601 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
2602 $as_echo_n "(cached) " >&6
2603 else
2604 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2605 /* end confdefs.h. */
2606 /* Define $2 to an innocuous variant, in case <limits.h> declares $2.
2607 For example, HP-UX 11i <limits.h> declares gettimeofday. */
2608 #define $2 innocuous_$2
2610 /* System header to define __stub macros and hopefully few prototypes,
2611 which can conflict with char $2 (); below.
2612 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
2613 <limits.h> exists even on freestanding compilers. */
2615 #ifdef __STDC__
2616 # include <limits.h>
2617 #else
2618 # include <assert.h>
2619 #endif
2621 #undef $2
2623 /* Override any GCC internal prototype to avoid an error.
2624 Use char because int might match the return type of a GCC
2625 builtin and then its argument prototype would still apply. */
2626 #ifdef __cplusplus
2627 extern "C"
2628 #endif
2629 char $2 ();
2630 /* The GNU C library defines this for functions which it implements
2631 to always fail with ENOSYS. Some functions are actually named
2632 something starting with __ and the normal name is an alias. */
2633 #if defined __stub_$2 || defined __stub___$2
2634 choke me
2635 #endif
2638 main ()
2640 return $2 ();
2642 return 0;
2644 _ACEOF
2645 if ac_fn_c_try_link "$LINENO"; then :
2646 eval "$3=yes"
2647 else
2648 eval "$3=no"
2650 rm -f core conftest.err conftest.$ac_objext \
2651 conftest$ac_exeext conftest.$ac_ext
2653 eval ac_res=\$$3
2654 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2655 $as_echo "$ac_res" >&6; }
2656 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2658 } # ac_fn_c_check_func
2660 # ac_fn_cxx_try_link LINENO
2661 # -------------------------
2662 # Try to link conftest.$ac_ext, and return whether this succeeded.
2663 ac_fn_cxx_try_link ()
2665 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2666 rm -f conftest.$ac_objext conftest$ac_exeext
2667 if { { ac_try="$ac_link"
2668 case "(($ac_try" in
2669 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2670 *) ac_try_echo=$ac_try;;
2671 esac
2672 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2673 $as_echo "$ac_try_echo"; } >&5
2674 (eval "$ac_link") 2>conftest.err
2675 ac_status=$?
2676 if test -s conftest.err; then
2677 grep -v '^ *+' conftest.err >conftest.er1
2678 cat conftest.er1 >&5
2679 mv -f conftest.er1 conftest.err
2681 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2682 test $ac_status = 0; } && {
2683 test -z "$ac_cxx_werror_flag" ||
2684 test ! -s conftest.err
2685 } && test -s conftest$ac_exeext && {
2686 test "$cross_compiling" = yes ||
2687 $as_test_x conftest$ac_exeext
2688 }; then :
2689 ac_retval=0
2690 else
2691 $as_echo "$as_me: failed program was:" >&5
2692 sed 's/^/| /' conftest.$ac_ext >&5
2694 ac_retval=1
2696 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
2697 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
2698 # interfere with the next link command; also delete a directory that is
2699 # left behind by Apple's compiler. We do this before executing the actions.
2700 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
2701 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2702 return $ac_retval
2704 } # ac_fn_cxx_try_link
2705 cat >config.log <<_ACEOF
2706 This file contains any messages produced by compilers while
2707 running configure, to aid debugging if configure makes a mistake.
2709 It was created by $as_me, which was
2710 generated by GNU Autoconf 2.64. Invocation command line was
2712 $ $0 $@
2714 _ACEOF
2715 exec 5>>config.log
2717 cat <<_ASUNAME
2718 ## --------- ##
2719 ## Platform. ##
2720 ## --------- ##
2722 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
2723 uname -m = `(uname -m) 2>/dev/null || echo unknown`
2724 uname -r = `(uname -r) 2>/dev/null || echo unknown`
2725 uname -s = `(uname -s) 2>/dev/null || echo unknown`
2726 uname -v = `(uname -v) 2>/dev/null || echo unknown`
2728 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
2729 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
2731 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
2732 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
2733 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
2734 /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
2735 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
2736 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
2737 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
2739 _ASUNAME
2741 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2742 for as_dir in $PATH
2744 IFS=$as_save_IFS
2745 test -z "$as_dir" && as_dir=.
2746 $as_echo "PATH: $as_dir"
2747 done
2748 IFS=$as_save_IFS
2750 } >&5
2752 cat >&5 <<_ACEOF
2755 ## ----------- ##
2756 ## Core tests. ##
2757 ## ----------- ##
2759 _ACEOF
2762 # Keep a trace of the command line.
2763 # Strip out --no-create and --no-recursion so they do not pile up.
2764 # Strip out --silent because we don't want to record it for future runs.
2765 # Also quote any args containing shell meta-characters.
2766 # Make two passes to allow for proper duplicate-argument suppression.
2767 ac_configure_args=
2768 ac_configure_args0=
2769 ac_configure_args1=
2770 ac_must_keep_next=false
2771 for ac_pass in 1 2
2773 for ac_arg
2775 case $ac_arg in
2776 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
2777 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
2778 | -silent | --silent | --silen | --sile | --sil)
2779 continue ;;
2780 *\'*)
2781 ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
2782 esac
2783 case $ac_pass in
2784 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
2786 as_fn_append ac_configure_args1 " '$ac_arg'"
2787 if test $ac_must_keep_next = true; then
2788 ac_must_keep_next=false # Got value, back to normal.
2789 else
2790 case $ac_arg in
2791 *=* | --config-cache | -C | -disable-* | --disable-* \
2792 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
2793 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
2794 | -with-* | --with-* | -without-* | --without-* | --x)
2795 case "$ac_configure_args0 " in
2796 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
2797 esac
2799 -* ) ac_must_keep_next=true ;;
2800 esac
2802 as_fn_append ac_configure_args " '$ac_arg'"
2804 esac
2805 done
2806 done
2807 { ac_configure_args0=; unset ac_configure_args0;}
2808 { ac_configure_args1=; unset ac_configure_args1;}
2810 # When interrupted or exit'd, cleanup temporary files, and complete
2811 # config.log. We remove comments because anyway the quotes in there
2812 # would cause problems or look ugly.
2813 # WARNING: Use '\'' to represent an apostrophe within the trap.
2814 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
2815 trap 'exit_status=$?
2816 # Save into config.log some information that might help in debugging.
2818 echo
2820 cat <<\_ASBOX
2821 ## ---------------- ##
2822 ## Cache variables. ##
2823 ## ---------------- ##
2824 _ASBOX
2825 echo
2826 # The following way of writing the cache mishandles newlines in values,
2828 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
2829 eval ac_val=\$$ac_var
2830 case $ac_val in #(
2831 *${as_nl}*)
2832 case $ac_var in #(
2833 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
2834 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
2835 esac
2836 case $ac_var in #(
2837 _ | IFS | as_nl) ;; #(
2838 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
2839 *) { eval $ac_var=; unset $ac_var;} ;;
2840 esac ;;
2841 esac
2842 done
2843 (set) 2>&1 |
2844 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
2845 *${as_nl}ac_space=\ *)
2846 sed -n \
2847 "s/'\''/'\''\\\\'\'''\''/g;
2848 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
2849 ;; #(
2851 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
2853 esac |
2854 sort
2856 echo
2858 cat <<\_ASBOX
2859 ## ----------------- ##
2860 ## Output variables. ##
2861 ## ----------------- ##
2862 _ASBOX
2863 echo
2864 for ac_var in $ac_subst_vars
2866 eval ac_val=\$$ac_var
2867 case $ac_val in
2868 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2869 esac
2870 $as_echo "$ac_var='\''$ac_val'\''"
2871 done | sort
2872 echo
2874 if test -n "$ac_subst_files"; then
2875 cat <<\_ASBOX
2876 ## ------------------- ##
2877 ## File substitutions. ##
2878 ## ------------------- ##
2879 _ASBOX
2880 echo
2881 for ac_var in $ac_subst_files
2883 eval ac_val=\$$ac_var
2884 case $ac_val in
2885 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2886 esac
2887 $as_echo "$ac_var='\''$ac_val'\''"
2888 done | sort
2889 echo
2892 if test -s confdefs.h; then
2893 cat <<\_ASBOX
2894 ## ----------- ##
2895 ## confdefs.h. ##
2896 ## ----------- ##
2897 _ASBOX
2898 echo
2899 cat confdefs.h
2900 echo
2902 test "$ac_signal" != 0 &&
2903 $as_echo "$as_me: caught signal $ac_signal"
2904 $as_echo "$as_me: exit $exit_status"
2905 } >&5
2906 rm -f core *.core core.conftest.* &&
2907 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
2908 exit $exit_status
2910 for ac_signal in 1 2 13 15; do
2911 trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
2912 done
2913 ac_signal=0
2915 # confdefs.h avoids OS command line length limits that DEFS can exceed.
2916 rm -f -r conftest* confdefs.h
2918 $as_echo "/* confdefs.h */" > confdefs.h
2920 # Predefined preprocessor variables.
2922 cat >>confdefs.h <<_ACEOF
2923 #define PACKAGE_NAME "$PACKAGE_NAME"
2924 _ACEOF
2926 cat >>confdefs.h <<_ACEOF
2927 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
2928 _ACEOF
2930 cat >>confdefs.h <<_ACEOF
2931 #define PACKAGE_VERSION "$PACKAGE_VERSION"
2932 _ACEOF
2934 cat >>confdefs.h <<_ACEOF
2935 #define PACKAGE_STRING "$PACKAGE_STRING"
2936 _ACEOF
2938 cat >>confdefs.h <<_ACEOF
2939 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
2940 _ACEOF
2942 cat >>confdefs.h <<_ACEOF
2943 #define PACKAGE_URL "$PACKAGE_URL"
2944 _ACEOF
2947 # Let the site file select an alternate cache file if it wants to.
2948 # Prefer an explicitly selected file to automatically selected ones.
2949 ac_site_file1=NONE
2950 ac_site_file2=NONE
2951 if test -n "$CONFIG_SITE"; then
2952 ac_site_file1=$CONFIG_SITE
2953 elif test "x$prefix" != xNONE; then
2954 ac_site_file1=$prefix/share/config.site
2955 ac_site_file2=$prefix/etc/config.site
2956 else
2957 ac_site_file1=$ac_default_prefix/share/config.site
2958 ac_site_file2=$ac_default_prefix/etc/config.site
2960 for ac_site_file in "$ac_site_file1" "$ac_site_file2"
2962 test "x$ac_site_file" = xNONE && continue
2963 if test -r "$ac_site_file"; then
2964 { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
2965 $as_echo "$as_me: loading site script $ac_site_file" >&6;}
2966 sed 's/^/| /' "$ac_site_file" >&5
2967 . "$ac_site_file"
2969 done
2971 if test -r "$cache_file"; then
2972 # Some versions of bash will fail to source /dev/null (special
2973 # files actually), so we avoid doing that.
2974 if test -f "$cache_file"; then
2975 { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
2976 $as_echo "$as_me: loading cache $cache_file" >&6;}
2977 case $cache_file in
2978 [\\/]* | ?:[\\/]* ) . "$cache_file";;
2979 *) . "./$cache_file";;
2980 esac
2982 else
2983 { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
2984 $as_echo "$as_me: creating cache $cache_file" >&6;}
2985 >$cache_file
2988 # Check that the precious variables saved in the cache have kept the same
2989 # value.
2990 ac_cache_corrupted=false
2991 for ac_var in $ac_precious_vars; do
2992 eval ac_old_set=\$ac_cv_env_${ac_var}_set
2993 eval ac_new_set=\$ac_env_${ac_var}_set
2994 eval ac_old_val=\$ac_cv_env_${ac_var}_value
2995 eval ac_new_val=\$ac_env_${ac_var}_value
2996 case $ac_old_set,$ac_new_set in
2997 set,)
2998 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
2999 $as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
3000 ac_cache_corrupted=: ;;
3001 ,set)
3002 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
3003 $as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
3004 ac_cache_corrupted=: ;;
3005 ,);;
3007 if test "x$ac_old_val" != "x$ac_new_val"; then
3008 # differences in whitespace do not lead to failure.
3009 ac_old_val_w=`echo x $ac_old_val`
3010 ac_new_val_w=`echo x $ac_new_val`
3011 if test "$ac_old_val_w" != "$ac_new_val_w"; then
3012 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
3013 $as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
3014 ac_cache_corrupted=:
3015 else
3016 { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
3017 $as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
3018 eval $ac_var=\$ac_old_val
3020 { $as_echo "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5
3021 $as_echo "$as_me: former value: \`$ac_old_val'" >&2;}
3022 { $as_echo "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5
3023 $as_echo "$as_me: current value: \`$ac_new_val'" >&2;}
3024 fi;;
3025 esac
3026 # Pass precious variables to config.status.
3027 if test "$ac_new_set" = set; then
3028 case $ac_new_val in
3029 *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
3030 *) ac_arg=$ac_var=$ac_new_val ;;
3031 esac
3032 case " $ac_configure_args " in
3033 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
3034 *) as_fn_append ac_configure_args " '$ac_arg'" ;;
3035 esac
3037 done
3038 if $ac_cache_corrupted; then
3039 { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3040 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3041 { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
3042 $as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
3043 as_fn_error "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
3045 ## -------------------- ##
3046 ## Main body of script. ##
3047 ## -------------------- ##
3049 ac_ext=c
3050 ac_cpp='$CPP $CPPFLAGS'
3051 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3052 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3053 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3060 ac_config_headers="$ac_config_headers auto-host.h:config.in"
3063 gcc_version=`cat $srcdir/BASE-VER`
3065 # Determine the host, build, and target systems
3066 ac_aux_dir=
3067 for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do
3068 for ac_t in install-sh install.sh shtool; do
3069 if test -f "$ac_dir/$ac_t"; then
3070 ac_aux_dir=$ac_dir
3071 ac_install_sh="$ac_aux_dir/$ac_t -c"
3072 break 2
3074 done
3075 done
3076 if test -z "$ac_aux_dir"; then
3077 as_fn_error "cannot find install-sh, install.sh, or shtool in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" "$LINENO" 5
3080 # These three variables are undocumented and unsupported,
3081 # and are intended to be withdrawn in a future Autoconf release.
3082 # They can cause serious problems if a builder's source tree is in a directory
3083 # whose full name contains unusual characters.
3084 ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
3085 ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
3086 ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
3089 # Make sure we can run config.sub.
3090 $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
3091 as_fn_error "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
3093 { $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
3094 $as_echo_n "checking build system type... " >&6; }
3095 if test "${ac_cv_build+set}" = set; then :
3096 $as_echo_n "(cached) " >&6
3097 else
3098 ac_build_alias=$build_alias
3099 test "x$ac_build_alias" = x &&
3100 ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
3101 test "x$ac_build_alias" = x &&
3102 as_fn_error "cannot guess build type; you must specify one" "$LINENO" 5
3103 ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
3104 as_fn_error "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
3107 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
3108 $as_echo "$ac_cv_build" >&6; }
3109 case $ac_cv_build in
3110 *-*-*) ;;
3111 *) as_fn_error "invalid value of canonical build" "$LINENO" 5;;
3112 esac
3113 build=$ac_cv_build
3114 ac_save_IFS=$IFS; IFS='-'
3115 set x $ac_cv_build
3116 shift
3117 build_cpu=$1
3118 build_vendor=$2
3119 shift; shift
3120 # Remember, the first character of IFS is used to create $*,
3121 # except with old shells:
3122 build_os=$*
3123 IFS=$ac_save_IFS
3124 case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
3127 { $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
3128 $as_echo_n "checking host system type... " >&6; }
3129 if test "${ac_cv_host+set}" = set; then :
3130 $as_echo_n "(cached) " >&6
3131 else
3132 if test "x$host_alias" = x; then
3133 ac_cv_host=$ac_cv_build
3134 else
3135 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
3136 as_fn_error "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
3140 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
3141 $as_echo "$ac_cv_host" >&6; }
3142 case $ac_cv_host in
3143 *-*-*) ;;
3144 *) as_fn_error "invalid value of canonical host" "$LINENO" 5;;
3145 esac
3146 host=$ac_cv_host
3147 ac_save_IFS=$IFS; IFS='-'
3148 set x $ac_cv_host
3149 shift
3150 host_cpu=$1
3151 host_vendor=$2
3152 shift; shift
3153 # Remember, the first character of IFS is used to create $*,
3154 # except with old shells:
3155 host_os=$*
3156 IFS=$ac_save_IFS
3157 case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
3160 { $as_echo "$as_me:${as_lineno-$LINENO}: checking target system type" >&5
3161 $as_echo_n "checking target system type... " >&6; }
3162 if test "${ac_cv_target+set}" = set; then :
3163 $as_echo_n "(cached) " >&6
3164 else
3165 if test "x$target_alias" = x; then
3166 ac_cv_target=$ac_cv_host
3167 else
3168 ac_cv_target=`$SHELL "$ac_aux_dir/config.sub" $target_alias` ||
3169 as_fn_error "$SHELL $ac_aux_dir/config.sub $target_alias failed" "$LINENO" 5
3173 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_target" >&5
3174 $as_echo "$ac_cv_target" >&6; }
3175 case $ac_cv_target in
3176 *-*-*) ;;
3177 *) as_fn_error "invalid value of canonical target" "$LINENO" 5;;
3178 esac
3179 target=$ac_cv_target
3180 ac_save_IFS=$IFS; IFS='-'
3181 set x $ac_cv_target
3182 shift
3183 target_cpu=$1
3184 target_vendor=$2
3185 shift; shift
3186 # Remember, the first character of IFS is used to create $*,
3187 # except with old shells:
3188 target_os=$*
3189 IFS=$ac_save_IFS
3190 case $target_os in *\ *) target_os=`echo "$target_os" | sed 's/ /-/g'`;; esac
3193 # The aliases save the names the user supplied, while $host etc.
3194 # will get canonicalized.
3195 test -n "$target_alias" &&
3196 test "$program_prefix$program_suffix$program_transform_name" = \
3197 NONENONEs,x,x, &&
3198 program_prefix=${target_alias}-
3200 # Determine the noncanonical target name, for directory use.
3201 case ${build_alias} in
3202 "") build_noncanonical=${build} ;;
3203 *) build_noncanonical=${build_alias} ;;
3204 esac
3206 case ${host_alias} in
3207 "") host_noncanonical=${build_noncanonical} ;;
3208 *) host_noncanonical=${host_alias} ;;
3209 esac
3211 case ${target_alias} in
3212 "") target_noncanonical=${host_noncanonical} ;;
3213 *) target_noncanonical=${target_alias} ;;
3214 esac
3219 # Determine the target- and build-specific subdirectories
3221 # post-stage1 host modules use a different CC_FOR_BUILD so, in order to
3222 # have matching libraries, they should use host libraries: Makefile.tpl
3223 # arranges to pass --with-build-libsubdir=$(HOST_SUBDIR).
3224 # However, they still use the build modules, because the corresponding
3225 # host modules (e.g. bison) are only built for the host when bootstrap
3226 # finishes. So:
3227 # - build_subdir is where we find build modules, and never changes.
3228 # - build_libsubdir is where we find build libraries, and can be overridden.
3230 # Prefix 'build-' so this never conflicts with target_subdir.
3231 build_subdir="build-${build_noncanonical}"
3233 # Check whether --with-build-libsubdir was given.
3234 if test "${with_build_libsubdir+set}" = set; then :
3235 withval=$with_build_libsubdir; build_libsubdir="$withval"
3236 else
3237 build_libsubdir="$build_subdir"
3240 # --srcdir=. covers the toplevel, while "test -d" covers the subdirectories
3241 if ( test $srcdir = . && test -d gcc ) \
3242 || test -d $srcdir/../host-${host_noncanonical}; then
3243 host_subdir="host-${host_noncanonical}"
3244 else
3245 host_subdir=.
3247 # No prefix.
3248 target_subdir=${target_noncanonical}
3251 # Set program_transform_name
3252 test "$program_prefix" != NONE &&
3253 program_transform_name="s&^&$program_prefix&;$program_transform_name"
3254 # Use a double $ so make ignores it.
3255 test "$program_suffix" != NONE &&
3256 program_transform_name="s&\$&$program_suffix&;$program_transform_name"
3257 # Double any \ or $.
3258 # By default was `s,x,x', remove it if useless.
3259 ac_script='s/[\\$]/&&/g;s/;s,x,x,$//'
3260 program_transform_name=`$as_echo "$program_transform_name" | sed "$ac_script"`
3263 # Check for bogus environment variables.
3264 # Test if LIBRARY_PATH contains the notation for the current directory
3265 # since this would lead to problems installing/building glibc.
3266 # LIBRARY_PATH contains the current directory if one of the following
3267 # is true:
3268 # - one of the terminals (":" and ";") is the first or last sign
3269 # - two terminals occur directly after each other
3270 # - the path contains an element with a dot in it
3271 { $as_echo "$as_me:${as_lineno-$LINENO}: checking LIBRARY_PATH variable" >&5
3272 $as_echo_n "checking LIBRARY_PATH variable... " >&6; }
3273 case ${LIBRARY_PATH} in
3274 [:\;]* | *[:\;] | *[:\;][:\;]* | *[:\;]. | .[:\;]*| . | *[:\;].[:\;]* )
3275 library_path_setting="contains current directory"
3278 library_path_setting="ok"
3280 esac
3281 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $library_path_setting" >&5
3282 $as_echo "$library_path_setting" >&6; }
3283 if test "$library_path_setting" != "ok"; then
3284 as_fn_error "
3285 *** LIBRARY_PATH shouldn't contain the current directory when
3286 *** building gcc. Please change the environment variable
3287 *** and run configure again." "$LINENO" 5
3290 # Test if GCC_EXEC_PREFIX contains the notation for the current directory
3291 # since this would lead to problems installing/building glibc.
3292 # GCC_EXEC_PREFIX contains the current directory if one of the following
3293 # is true:
3294 # - one of the terminals (":" and ";") is the first or last sign
3295 # - two terminals occur directly after each other
3296 # - the path contains an element with a dot in it
3297 { $as_echo "$as_me:${as_lineno-$LINENO}: checking GCC_EXEC_PREFIX variable" >&5
3298 $as_echo_n "checking GCC_EXEC_PREFIX variable... " >&6; }
3299 case ${GCC_EXEC_PREFIX} in
3300 [:\;]* | *[:\;] | *[:\;][:\;]* | *[:\;]. | .[:\;]*| . | *[:\;].[:\;]* )
3301 gcc_exec_prefix_setting="contains current directory"
3304 gcc_exec_prefix_setting="ok"
3306 esac
3307 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_exec_prefix_setting" >&5
3308 $as_echo "$gcc_exec_prefix_setting" >&6; }
3309 if test "$gcc_exec_prefix_setting" != "ok"; then
3310 as_fn_error "
3311 *** GCC_EXEC_PREFIX shouldn't contain the current directory when
3312 *** building gcc. Please change the environment variable
3313 *** and run configure again." "$LINENO" 5
3316 # -----------
3317 # Directories
3318 # -----------
3320 # Specify the local prefix
3321 local_prefix=
3323 # Check whether --with-local-prefix was given.
3324 if test "${with_local_prefix+set}" = set; then :
3325 withval=$with_local_prefix; case "${withval}" in
3326 yes) as_fn_error "bad value ${withval} given for local include directory prefix" "$LINENO" 5 ;;
3327 no) ;;
3328 *) local_prefix=$with_local_prefix ;;
3329 esac
3333 # Default local prefix if it is empty
3334 if test x$local_prefix = x; then
3335 local_prefix=/usr/local
3338 # Don't set gcc_gxx_include_dir to gxx_include_dir since that's only
3339 # passed in by the toplevel make and thus we'd get different behavior
3340 # depending on where we built the sources.
3341 gcc_gxx_include_dir=
3342 # Specify the g++ header file directory
3344 # Check whether --with-gxx-include-dir was given.
3345 if test "${with_gxx_include_dir+set}" = set; then :
3346 withval=$with_gxx_include_dir; case "${withval}" in
3347 yes) as_fn_error "bad value ${withval} given for g++ include directory" "$LINENO" 5 ;;
3348 no) ;;
3349 *) gcc_gxx_include_dir=$with_gxx_include_dir ;;
3350 esac
3354 # This logic must match libstdc++-v3/acinclude.m4:GLIBCXX_EXPORT_INSTALL_INFO.
3355 if test x${gcc_gxx_include_dir} = x; then
3356 if test x${enable_version_specific_runtime_libs} = xyes; then
3357 gcc_gxx_include_dir='${libsubdir}/include/c++'
3358 else
3359 libstdcxx_incdir='include/c++/$(version)'
3360 if test x$host != x$target; then
3361 libstdcxx_incdir="$target_alias/$libstdcxx_incdir"
3363 gcc_gxx_include_dir="\$(libsubdir)/\$(libsubdir_to_prefix)$libstdcxx_incdir"
3367 gcc_gxx_include_dir_add_sysroot=0
3368 if test "${with_sysroot+set}" = set; then
3369 gcc_gxx_without_sysroot=`expr "${gcc_gxx_include_dir}" : "${with_sysroot}"'\(.*\)'`
3370 if test "${gcc_gxx_without_sysroot}"; then
3371 gcc_gxx_include_dir="${gcc_gxx_without_sysroot}"
3372 gcc_gxx_include_dir_add_sysroot=1
3377 # Check whether --with-cpp_install_dir was given.
3378 if test "${with_cpp_install_dir+set}" = set; then :
3379 withval=$with_cpp_install_dir; if test x$withval = xyes; then
3380 as_fn_error "option --with-cpp-install-dir requires an argument" "$LINENO" 5
3381 elif test x$withval != xno; then
3382 cpp_install_dir=$withval
3387 # We would like to our source tree to be readonly. However when releases or
3388 # pre-releases are generated, the flex/bison generated files as well as the
3389 # various formats of manuals need to be included along with the rest of the
3390 # sources. Therefore we have --enable-generated-files-in-srcdir to do
3391 # just that.
3393 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to place generated files in the source directory" >&5
3394 $as_echo_n "checking whether to place generated files in the source directory... " >&6; }
3395 # Check whether --enable-generated-files-in-srcdir was given.
3396 if test "${enable_generated_files_in_srcdir+set}" = set; then :
3397 enableval=$enable_generated_files_in_srcdir; generated_files_in_srcdir=$enableval
3398 else
3399 generated_files_in_srcdir=no
3403 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $generated_files_in_srcdir" >&5
3404 $as_echo "$generated_files_in_srcdir" >&6; }
3406 if test "$generated_files_in_srcdir" = "yes"; then
3407 GENINSRC=''
3408 else
3409 GENINSRC='#'
3413 # -------------------
3414 # Find default linker
3415 # -------------------
3417 # With GNU ld
3419 # Check whether --with-gnu-ld was given.
3420 if test "${with_gnu_ld+set}" = set; then :
3421 withval=$with_gnu_ld; gnu_ld_flag="$with_gnu_ld"
3422 else
3423 gnu_ld_flag=no
3427 # With pre-defined ld
3429 # Check whether --with-ld was given.
3430 if test "${with_ld+set}" = set; then :
3431 withval=$with_ld; DEFAULT_LINKER="$with_ld"
3434 if test x"${DEFAULT_LINKER+set}" = x"set"; then
3435 if test ! -x "$DEFAULT_LINKER"; then
3436 as_fn_error "cannot execute: $DEFAULT_LINKER: check --with-ld or env. var. DEFAULT_LINKER" "$LINENO" 5
3437 elif $DEFAULT_LINKER -v < /dev/null 2>&1 | grep GNU > /dev/null; then
3438 gnu_ld_flag=yes
3441 cat >>confdefs.h <<_ACEOF
3442 #define DEFAULT_LINKER "$DEFAULT_LINKER"
3443 _ACEOF
3447 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a default linker was specified" >&5
3448 $as_echo_n "checking whether a default linker was specified... " >&6; }
3449 if test x"${DEFAULT_LINKER+set}" = x"set"; then
3450 if test x"$gnu_ld_flag" = x"no"; then
3451 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes ($DEFAULT_LINKER)" >&5
3452 $as_echo "yes ($DEFAULT_LINKER)" >&6; }
3453 else
3454 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes ($DEFAULT_LINKER - GNU ld)" >&5
3455 $as_echo "yes ($DEFAULT_LINKER - GNU ld)" >&6; }
3457 else
3458 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3459 $as_echo "no" >&6; }
3462 # With demangler in GNU ld
3464 # Check whether --with-demangler-in-ld was given.
3465 if test "${with_demangler_in_ld+set}" = set; then :
3466 withval=$with_demangler_in_ld; demangler_in_ld="$with_demangler_in_ld"
3467 else
3468 demangler_in_ld=yes
3472 # ----------------------
3473 # Find default assembler
3474 # ----------------------
3476 # With GNU as
3478 # Check whether --with-gnu-as was given.
3479 if test "${with_gnu_as+set}" = set; then :
3480 withval=$with_gnu_as; gas_flag="$with_gnu_as"
3481 else
3482 gas_flag=no
3487 # Check whether --with-as was given.
3488 if test "${with_as+set}" = set; then :
3489 withval=$with_as; DEFAULT_ASSEMBLER="$with_as"
3492 if test x"${DEFAULT_ASSEMBLER+set}" = x"set"; then
3493 if test ! -x "$DEFAULT_ASSEMBLER"; then
3494 as_fn_error "cannot execute: $DEFAULT_ASSEMBLER: check --with-as or env. var. DEFAULT_ASSEMBLER" "$LINENO" 5
3495 elif $DEFAULT_ASSEMBLER -v < /dev/null 2>&1 | grep GNU > /dev/null; then
3496 gas_flag=yes
3499 cat >>confdefs.h <<_ACEOF
3500 #define DEFAULT_ASSEMBLER "$DEFAULT_ASSEMBLER"
3501 _ACEOF
3505 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a default assembler was specified" >&5
3506 $as_echo_n "checking whether a default assembler was specified... " >&6; }
3507 if test x"${DEFAULT_ASSEMBLER+set}" = x"set"; then
3508 if test x"$gas_flag" = x"no"; then
3509 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes ($DEFAULT_ASSEMBLER)" >&5
3510 $as_echo "yes ($DEFAULT_ASSEMBLER)" >&6; }
3511 else
3512 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes ($DEFAULT_ASSEMBLER - GNU as)" >&5
3513 $as_echo "yes ($DEFAULT_ASSEMBLER - GNU as)" >&6; }
3515 else
3516 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3517 $as_echo "no" >&6; }
3520 # ---------------
3521 # Find C compiler
3522 # ---------------
3524 # If a non-executable a.out is present (e.g. created by GNU as above even if
3525 # invoked with -v only), the IRIX 6 native ld just overwrites the existing
3526 # file, even when creating an executable, so an execution test fails.
3527 # Remove possible default executable files to avoid this.
3529 # FIXME: This really belongs into AC_PROG_CC and can be removed once
3530 # Autoconf includes it.
3531 rm -f a.out a.exe b.out
3533 # Find the native compiler
3534 ac_ext=c
3535 ac_cpp='$CPP $CPPFLAGS'
3536 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3537 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3538 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3539 if test -n "$ac_tool_prefix"; then
3540 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
3541 set dummy ${ac_tool_prefix}gcc; ac_word=$2
3542 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3543 $as_echo_n "checking for $ac_word... " >&6; }
3544 if test "${ac_cv_prog_CC+set}" = set; then :
3545 $as_echo_n "(cached) " >&6
3546 else
3547 if test -n "$CC"; then
3548 ac_cv_prog_CC="$CC" # Let the user override the test.
3549 else
3550 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3551 for as_dir in $PATH
3553 IFS=$as_save_IFS
3554 test -z "$as_dir" && as_dir=.
3555 for ac_exec_ext in '' $ac_executable_extensions; do
3556 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3557 ac_cv_prog_CC="${ac_tool_prefix}gcc"
3558 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3559 break 2
3561 done
3562 done
3563 IFS=$as_save_IFS
3567 CC=$ac_cv_prog_CC
3568 if test -n "$CC"; then
3569 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3570 $as_echo "$CC" >&6; }
3571 else
3572 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3573 $as_echo "no" >&6; }
3578 if test -z "$ac_cv_prog_CC"; then
3579 ac_ct_CC=$CC
3580 # Extract the first word of "gcc", so it can be a program name with args.
3581 set dummy gcc; ac_word=$2
3582 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3583 $as_echo_n "checking for $ac_word... " >&6; }
3584 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then :
3585 $as_echo_n "(cached) " >&6
3586 else
3587 if test -n "$ac_ct_CC"; then
3588 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3589 else
3590 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3591 for as_dir in $PATH
3593 IFS=$as_save_IFS
3594 test -z "$as_dir" && as_dir=.
3595 for ac_exec_ext in '' $ac_executable_extensions; do
3596 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3597 ac_cv_prog_ac_ct_CC="gcc"
3598 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3599 break 2
3601 done
3602 done
3603 IFS=$as_save_IFS
3607 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3608 if test -n "$ac_ct_CC"; then
3609 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3610 $as_echo "$ac_ct_CC" >&6; }
3611 else
3612 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3613 $as_echo "no" >&6; }
3616 if test "x$ac_ct_CC" = x; then
3617 CC=""
3618 else
3619 case $cross_compiling:$ac_tool_warned in
3620 yes:)
3621 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3622 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3623 ac_tool_warned=yes ;;
3624 esac
3625 CC=$ac_ct_CC
3627 else
3628 CC="$ac_cv_prog_CC"
3631 if test -z "$CC"; then
3632 if test -n "$ac_tool_prefix"; then
3633 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
3634 set dummy ${ac_tool_prefix}cc; ac_word=$2
3635 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3636 $as_echo_n "checking for $ac_word... " >&6; }
3637 if test "${ac_cv_prog_CC+set}" = set; then :
3638 $as_echo_n "(cached) " >&6
3639 else
3640 if test -n "$CC"; then
3641 ac_cv_prog_CC="$CC" # Let the user override the test.
3642 else
3643 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3644 for as_dir in $PATH
3646 IFS=$as_save_IFS
3647 test -z "$as_dir" && as_dir=.
3648 for ac_exec_ext in '' $ac_executable_extensions; do
3649 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3650 ac_cv_prog_CC="${ac_tool_prefix}cc"
3651 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3652 break 2
3654 done
3655 done
3656 IFS=$as_save_IFS
3660 CC=$ac_cv_prog_CC
3661 if test -n "$CC"; then
3662 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3663 $as_echo "$CC" >&6; }
3664 else
3665 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3666 $as_echo "no" >&6; }
3672 if test -z "$CC"; then
3673 # Extract the first word of "cc", so it can be a program name with args.
3674 set dummy cc; ac_word=$2
3675 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3676 $as_echo_n "checking for $ac_word... " >&6; }
3677 if test "${ac_cv_prog_CC+set}" = set; then :
3678 $as_echo_n "(cached) " >&6
3679 else
3680 if test -n "$CC"; then
3681 ac_cv_prog_CC="$CC" # Let the user override the test.
3682 else
3683 ac_prog_rejected=no
3684 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3685 for as_dir in $PATH
3687 IFS=$as_save_IFS
3688 test -z "$as_dir" && as_dir=.
3689 for ac_exec_ext in '' $ac_executable_extensions; do
3690 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3691 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
3692 ac_prog_rejected=yes
3693 continue
3695 ac_cv_prog_CC="cc"
3696 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3697 break 2
3699 done
3700 done
3701 IFS=$as_save_IFS
3703 if test $ac_prog_rejected = yes; then
3704 # We found a bogon in the path, so make sure we never use it.
3705 set dummy $ac_cv_prog_CC
3706 shift
3707 if test $# != 0; then
3708 # We chose a different compiler from the bogus one.
3709 # However, it has the same basename, so the bogon will be chosen
3710 # first if we set CC to just the basename; use the full file name.
3711 shift
3712 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
3717 CC=$ac_cv_prog_CC
3718 if test -n "$CC"; then
3719 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3720 $as_echo "$CC" >&6; }
3721 else
3722 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3723 $as_echo "no" >&6; }
3728 if test -z "$CC"; then
3729 if test -n "$ac_tool_prefix"; then
3730 for ac_prog in cl.exe
3732 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3733 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
3734 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3735 $as_echo_n "checking for $ac_word... " >&6; }
3736 if test "${ac_cv_prog_CC+set}" = set; then :
3737 $as_echo_n "(cached) " >&6
3738 else
3739 if test -n "$CC"; then
3740 ac_cv_prog_CC="$CC" # Let the user override the test.
3741 else
3742 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3743 for as_dir in $PATH
3745 IFS=$as_save_IFS
3746 test -z "$as_dir" && as_dir=.
3747 for ac_exec_ext in '' $ac_executable_extensions; do
3748 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3749 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
3750 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3751 break 2
3753 done
3754 done
3755 IFS=$as_save_IFS
3759 CC=$ac_cv_prog_CC
3760 if test -n "$CC"; then
3761 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3762 $as_echo "$CC" >&6; }
3763 else
3764 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3765 $as_echo "no" >&6; }
3769 test -n "$CC" && break
3770 done
3772 if test -z "$CC"; then
3773 ac_ct_CC=$CC
3774 for ac_prog in cl.exe
3776 # Extract the first word of "$ac_prog", so it can be a program name with args.
3777 set dummy $ac_prog; ac_word=$2
3778 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3779 $as_echo_n "checking for $ac_word... " >&6; }
3780 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then :
3781 $as_echo_n "(cached) " >&6
3782 else
3783 if test -n "$ac_ct_CC"; then
3784 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3785 else
3786 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3787 for as_dir in $PATH
3789 IFS=$as_save_IFS
3790 test -z "$as_dir" && as_dir=.
3791 for ac_exec_ext in '' $ac_executable_extensions; do
3792 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3793 ac_cv_prog_ac_ct_CC="$ac_prog"
3794 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3795 break 2
3797 done
3798 done
3799 IFS=$as_save_IFS
3803 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3804 if test -n "$ac_ct_CC"; then
3805 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3806 $as_echo "$ac_ct_CC" >&6; }
3807 else
3808 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3809 $as_echo "no" >&6; }
3813 test -n "$ac_ct_CC" && break
3814 done
3816 if test "x$ac_ct_CC" = x; then
3817 CC=""
3818 else
3819 case $cross_compiling:$ac_tool_warned in
3820 yes:)
3821 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3822 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3823 ac_tool_warned=yes ;;
3824 esac
3825 CC=$ac_ct_CC
3832 test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3833 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3834 as_fn_error "no acceptable C compiler found in \$PATH
3835 See \`config.log' for more details." "$LINENO" 5; }
3837 # Provide some information about the compiler.
3838 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
3839 set X $ac_compile
3840 ac_compiler=$2
3841 for ac_option in --version -v -V -qversion; do
3842 { { ac_try="$ac_compiler $ac_option >&5"
3843 case "(($ac_try" in
3844 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3845 *) ac_try_echo=$ac_try;;
3846 esac
3847 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3848 $as_echo "$ac_try_echo"; } >&5
3849 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
3850 ac_status=$?
3851 if test -s conftest.err; then
3852 sed '10a\
3853 ... rest of stderr output deleted ...
3854 10q' conftest.err >conftest.er1
3855 cat conftest.er1 >&5
3856 rm -f conftest.er1 conftest.err
3858 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3859 test $ac_status = 0; }
3860 done
3862 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3863 /* end confdefs.h. */
3866 main ()
3870 return 0;
3872 _ACEOF
3873 ac_clean_files_save=$ac_clean_files
3874 ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out conftest.out"
3875 # Try to create an executable without -o first, disregard a.out.
3876 # It will help us diagnose broken compilers, and finding out an intuition
3877 # of exeext.
3878 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
3879 $as_echo_n "checking for C compiler default output file name... " >&6; }
3880 ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
3882 # The possible output files:
3883 ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
3885 ac_rmfiles=
3886 for ac_file in $ac_files
3888 case $ac_file in
3889 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3890 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
3891 esac
3892 done
3893 rm -f $ac_rmfiles
3895 if { { ac_try="$ac_link_default"
3896 case "(($ac_try" in
3897 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3898 *) ac_try_echo=$ac_try;;
3899 esac
3900 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3901 $as_echo "$ac_try_echo"; } >&5
3902 (eval "$ac_link_default") 2>&5
3903 ac_status=$?
3904 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3905 test $ac_status = 0; }; then :
3906 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
3907 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
3908 # in a Makefile. We should not override ac_cv_exeext if it was cached,
3909 # so that the user can short-circuit this test for compilers unknown to
3910 # Autoconf.
3911 for ac_file in $ac_files ''
3913 test -f "$ac_file" || continue
3914 case $ac_file in
3915 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
3917 [ab].out )
3918 # We found the default executable, but exeext='' is most
3919 # certainly right.
3920 break;;
3921 *.* )
3922 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
3923 then :; else
3924 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3926 # We set ac_cv_exeext here because the later test for it is not
3927 # safe: cross compilers may not add the suffix if given an `-o'
3928 # argument, so we may need to know it at that point already.
3929 # Even if this section looks crufty: it has the advantage of
3930 # actually working.
3931 break;;
3933 break;;
3934 esac
3935 done
3936 test "$ac_cv_exeext" = no && ac_cv_exeext=
3938 else
3939 ac_file=''
3941 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
3942 $as_echo "$ac_file" >&6; }
3943 if test -z "$ac_file"; then :
3944 $as_echo "$as_me: failed program was:" >&5
3945 sed 's/^/| /' conftest.$ac_ext >&5
3947 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3948 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3949 { as_fn_set_status 77
3950 as_fn_error "C compiler cannot create executables
3951 See \`config.log' for more details." "$LINENO" 5; }; }
3953 ac_exeext=$ac_cv_exeext
3955 # Check that the compiler produces executables we can run. If not, either
3956 # the compiler is broken, or we cross compile.
3957 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
3958 $as_echo_n "checking whether the C compiler works... " >&6; }
3959 # If not cross compiling, check that we can run a simple program.
3960 if test "$cross_compiling" != yes; then
3961 if { ac_try='./$ac_file'
3962 { { case "(($ac_try" in
3963 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3964 *) ac_try_echo=$ac_try;;
3965 esac
3966 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3967 $as_echo "$ac_try_echo"; } >&5
3968 (eval "$ac_try") 2>&5
3969 ac_status=$?
3970 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3971 test $ac_status = 0; }; }; then
3972 cross_compiling=no
3973 else
3974 if test "$cross_compiling" = maybe; then
3975 cross_compiling=yes
3976 else
3977 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3978 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3979 as_fn_error "cannot run C compiled programs.
3980 If you meant to cross compile, use \`--host'.
3981 See \`config.log' for more details." "$LINENO" 5; }
3985 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3986 $as_echo "yes" >&6; }
3988 rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out conftest.out
3989 ac_clean_files=$ac_clean_files_save
3990 # Check that the compiler produces executables we can run. If not, either
3991 # the compiler is broken, or we cross compile.
3992 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
3993 $as_echo_n "checking whether we are cross compiling... " >&6; }
3994 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
3995 $as_echo "$cross_compiling" >&6; }
3997 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
3998 $as_echo_n "checking for suffix of executables... " >&6; }
3999 if { { ac_try="$ac_link"
4000 case "(($ac_try" in
4001 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4002 *) ac_try_echo=$ac_try;;
4003 esac
4004 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4005 $as_echo "$ac_try_echo"; } >&5
4006 (eval "$ac_link") 2>&5
4007 ac_status=$?
4008 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4009 test $ac_status = 0; }; then :
4010 # If both `conftest.exe' and `conftest' are `present' (well, observable)
4011 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
4012 # work properly (i.e., refer to `conftest.exe'), while it won't with
4013 # `rm'.
4014 for ac_file in conftest.exe conftest conftest.*; do
4015 test -f "$ac_file" || continue
4016 case $ac_file in
4017 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
4018 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
4019 break;;
4020 * ) break;;
4021 esac
4022 done
4023 else
4024 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4025 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4026 as_fn_error "cannot compute suffix of executables: cannot compile and link
4027 See \`config.log' for more details." "$LINENO" 5; }
4029 rm -f conftest$ac_cv_exeext
4030 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
4031 $as_echo "$ac_cv_exeext" >&6; }
4033 rm -f conftest.$ac_ext
4034 EXEEXT=$ac_cv_exeext
4035 ac_exeext=$EXEEXT
4036 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
4037 $as_echo_n "checking for suffix of object files... " >&6; }
4038 if test "${ac_cv_objext+set}" = set; then :
4039 $as_echo_n "(cached) " >&6
4040 else
4041 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4042 /* end confdefs.h. */
4045 main ()
4049 return 0;
4051 _ACEOF
4052 rm -f conftest.o conftest.obj
4053 if { { ac_try="$ac_compile"
4054 case "(($ac_try" in
4055 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4056 *) ac_try_echo=$ac_try;;
4057 esac
4058 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4059 $as_echo "$ac_try_echo"; } >&5
4060 (eval "$ac_compile") 2>&5
4061 ac_status=$?
4062 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4063 test $ac_status = 0; }; then :
4064 for ac_file in conftest.o conftest.obj conftest.*; do
4065 test -f "$ac_file" || continue;
4066 case $ac_file in
4067 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
4068 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
4069 break;;
4070 esac
4071 done
4072 else
4073 $as_echo "$as_me: failed program was:" >&5
4074 sed 's/^/| /' conftest.$ac_ext >&5
4076 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4077 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4078 as_fn_error "cannot compute suffix of object files: cannot compile
4079 See \`config.log' for more details." "$LINENO" 5; }
4081 rm -f conftest.$ac_cv_objext conftest.$ac_ext
4083 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
4084 $as_echo "$ac_cv_objext" >&6; }
4085 OBJEXT=$ac_cv_objext
4086 ac_objext=$OBJEXT
4087 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
4088 $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
4089 if test "${ac_cv_c_compiler_gnu+set}" = set; then :
4090 $as_echo_n "(cached) " >&6
4091 else
4092 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4093 /* end confdefs.h. */
4096 main ()
4098 #ifndef __GNUC__
4099 choke me
4100 #endif
4103 return 0;
4105 _ACEOF
4106 if ac_fn_c_try_compile "$LINENO"; then :
4107 ac_compiler_gnu=yes
4108 else
4109 ac_compiler_gnu=no
4111 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4112 ac_cv_c_compiler_gnu=$ac_compiler_gnu
4115 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
4116 $as_echo "$ac_cv_c_compiler_gnu" >&6; }
4117 if test $ac_compiler_gnu = yes; then
4118 GCC=yes
4119 else
4120 GCC=
4122 ac_test_CFLAGS=${CFLAGS+set}
4123 ac_save_CFLAGS=$CFLAGS
4124 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
4125 $as_echo_n "checking whether $CC accepts -g... " >&6; }
4126 if test "${ac_cv_prog_cc_g+set}" = set; then :
4127 $as_echo_n "(cached) " >&6
4128 else
4129 ac_save_c_werror_flag=$ac_c_werror_flag
4130 ac_c_werror_flag=yes
4131 ac_cv_prog_cc_g=no
4132 CFLAGS="-g"
4133 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4134 /* end confdefs.h. */
4137 main ()
4141 return 0;
4143 _ACEOF
4144 if ac_fn_c_try_compile "$LINENO"; then :
4145 ac_cv_prog_cc_g=yes
4146 else
4147 CFLAGS=""
4148 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4149 /* end confdefs.h. */
4152 main ()
4156 return 0;
4158 _ACEOF
4159 if ac_fn_c_try_compile "$LINENO"; then :
4161 else
4162 ac_c_werror_flag=$ac_save_c_werror_flag
4163 CFLAGS="-g"
4164 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4165 /* end confdefs.h. */
4168 main ()
4172 return 0;
4174 _ACEOF
4175 if ac_fn_c_try_compile "$LINENO"; then :
4176 ac_cv_prog_cc_g=yes
4178 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4180 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4182 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4183 ac_c_werror_flag=$ac_save_c_werror_flag
4185 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
4186 $as_echo "$ac_cv_prog_cc_g" >&6; }
4187 if test "$ac_test_CFLAGS" = set; then
4188 CFLAGS=$ac_save_CFLAGS
4189 elif test $ac_cv_prog_cc_g = yes; then
4190 if test "$GCC" = yes; then
4191 CFLAGS="-g -O2"
4192 else
4193 CFLAGS="-g"
4195 else
4196 if test "$GCC" = yes; then
4197 CFLAGS="-O2"
4198 else
4199 CFLAGS=
4202 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
4203 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
4204 if test "${ac_cv_prog_cc_c89+set}" = set; then :
4205 $as_echo_n "(cached) " >&6
4206 else
4207 ac_cv_prog_cc_c89=no
4208 ac_save_CC=$CC
4209 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4210 /* end confdefs.h. */
4211 #include <stdarg.h>
4212 #include <stdio.h>
4213 #include <sys/types.h>
4214 #include <sys/stat.h>
4215 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
4216 struct buf { int x; };
4217 FILE * (*rcsopen) (struct buf *, struct stat *, int);
4218 static char *e (p, i)
4219 char **p;
4220 int i;
4222 return p[i];
4224 static char *f (char * (*g) (char **, int), char **p, ...)
4226 char *s;
4227 va_list v;
4228 va_start (v,p);
4229 s = g (p, va_arg (v,int));
4230 va_end (v);
4231 return s;
4234 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
4235 function prototypes and stuff, but not '\xHH' hex character constants.
4236 These don't provoke an error unfortunately, instead are silently treated
4237 as 'x'. The following induces an error, until -std is added to get
4238 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
4239 array size at least. It's necessary to write '\x00'==0 to get something
4240 that's true only with -std. */
4241 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
4243 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
4244 inside strings and character constants. */
4245 #define FOO(x) 'x'
4246 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
4248 int test (int i, double x);
4249 struct s1 {int (*f) (int a);};
4250 struct s2 {int (*f) (double a);};
4251 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
4252 int argc;
4253 char **argv;
4255 main ()
4257 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
4259 return 0;
4261 _ACEOF
4262 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
4263 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
4265 CC="$ac_save_CC $ac_arg"
4266 if ac_fn_c_try_compile "$LINENO"; then :
4267 ac_cv_prog_cc_c89=$ac_arg
4269 rm -f core conftest.err conftest.$ac_objext
4270 test "x$ac_cv_prog_cc_c89" != "xno" && break
4271 done
4272 rm -f conftest.$ac_ext
4273 CC=$ac_save_CC
4276 # AC_CACHE_VAL
4277 case "x$ac_cv_prog_cc_c89" in
4279 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
4280 $as_echo "none needed" >&6; } ;;
4281 xno)
4282 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
4283 $as_echo "unsupported" >&6; } ;;
4285 CC="$CC $ac_cv_prog_cc_c89"
4286 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
4287 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
4288 esac
4289 if test "x$ac_cv_prog_cc_c89" != xno; then :
4293 ac_ext=c
4294 ac_cpp='$CPP $CPPFLAGS'
4295 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4296 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4297 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4299 ac_ext=cpp
4300 ac_cpp='$CXXCPP $CPPFLAGS'
4301 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4302 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4303 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
4304 if test -z "$CXX"; then
4305 if test -n "$CCC"; then
4306 CXX=$CCC
4307 else
4308 if test -n "$ac_tool_prefix"; then
4309 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
4311 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
4312 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
4313 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4314 $as_echo_n "checking for $ac_word... " >&6; }
4315 if test "${ac_cv_prog_CXX+set}" = set; then :
4316 $as_echo_n "(cached) " >&6
4317 else
4318 if test -n "$CXX"; then
4319 ac_cv_prog_CXX="$CXX" # Let the user override the test.
4320 else
4321 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4322 for as_dir in $PATH
4324 IFS=$as_save_IFS
4325 test -z "$as_dir" && as_dir=.
4326 for ac_exec_ext in '' $ac_executable_extensions; do
4327 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4328 ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
4329 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4330 break 2
4332 done
4333 done
4334 IFS=$as_save_IFS
4338 CXX=$ac_cv_prog_CXX
4339 if test -n "$CXX"; then
4340 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXX" >&5
4341 $as_echo "$CXX" >&6; }
4342 else
4343 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4344 $as_echo "no" >&6; }
4348 test -n "$CXX" && break
4349 done
4351 if test -z "$CXX"; then
4352 ac_ct_CXX=$CXX
4353 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
4355 # Extract the first word of "$ac_prog", so it can be a program name with args.
4356 set dummy $ac_prog; ac_word=$2
4357 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4358 $as_echo_n "checking for $ac_word... " >&6; }
4359 if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then :
4360 $as_echo_n "(cached) " >&6
4361 else
4362 if test -n "$ac_ct_CXX"; then
4363 ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
4364 else
4365 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4366 for as_dir in $PATH
4368 IFS=$as_save_IFS
4369 test -z "$as_dir" && as_dir=.
4370 for ac_exec_ext in '' $ac_executable_extensions; do
4371 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4372 ac_cv_prog_ac_ct_CXX="$ac_prog"
4373 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4374 break 2
4376 done
4377 done
4378 IFS=$as_save_IFS
4382 ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
4383 if test -n "$ac_ct_CXX"; then
4384 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CXX" >&5
4385 $as_echo "$ac_ct_CXX" >&6; }
4386 else
4387 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4388 $as_echo "no" >&6; }
4392 test -n "$ac_ct_CXX" && break
4393 done
4395 if test "x$ac_ct_CXX" = x; then
4396 CXX="g++"
4397 else
4398 case $cross_compiling:$ac_tool_warned in
4399 yes:)
4400 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4401 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4402 ac_tool_warned=yes ;;
4403 esac
4404 CXX=$ac_ct_CXX
4410 # Provide some information about the compiler.
4411 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C++ compiler version" >&5
4412 set X $ac_compile
4413 ac_compiler=$2
4414 for ac_option in --version -v -V -qversion; do
4415 { { ac_try="$ac_compiler $ac_option >&5"
4416 case "(($ac_try" in
4417 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4418 *) ac_try_echo=$ac_try;;
4419 esac
4420 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4421 $as_echo "$ac_try_echo"; } >&5
4422 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
4423 ac_status=$?
4424 if test -s conftest.err; then
4425 sed '10a\
4426 ... rest of stderr output deleted ...
4427 10q' conftest.err >conftest.er1
4428 cat conftest.er1 >&5
4429 rm -f conftest.er1 conftest.err
4431 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4432 test $ac_status = 0; }
4433 done
4435 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C++ compiler" >&5
4436 $as_echo_n "checking whether we are using the GNU C++ compiler... " >&6; }
4437 if test "${ac_cv_cxx_compiler_gnu+set}" = set; then :
4438 $as_echo_n "(cached) " >&6
4439 else
4440 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4441 /* end confdefs.h. */
4444 main ()
4446 #ifndef __GNUC__
4447 choke me
4448 #endif
4451 return 0;
4453 _ACEOF
4454 if ac_fn_cxx_try_compile "$LINENO"; then :
4455 ac_compiler_gnu=yes
4456 else
4457 ac_compiler_gnu=no
4459 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4460 ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
4463 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cxx_compiler_gnu" >&5
4464 $as_echo "$ac_cv_cxx_compiler_gnu" >&6; }
4465 if test $ac_compiler_gnu = yes; then
4466 GXX=yes
4467 else
4468 GXX=
4470 ac_test_CXXFLAGS=${CXXFLAGS+set}
4471 ac_save_CXXFLAGS=$CXXFLAGS
4472 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CXX accepts -g" >&5
4473 $as_echo_n "checking whether $CXX accepts -g... " >&6; }
4474 if test "${ac_cv_prog_cxx_g+set}" = set; then :
4475 $as_echo_n "(cached) " >&6
4476 else
4477 ac_save_cxx_werror_flag=$ac_cxx_werror_flag
4478 ac_cxx_werror_flag=yes
4479 ac_cv_prog_cxx_g=no
4480 CXXFLAGS="-g"
4481 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4482 /* end confdefs.h. */
4485 main ()
4489 return 0;
4491 _ACEOF
4492 if ac_fn_cxx_try_compile "$LINENO"; then :
4493 ac_cv_prog_cxx_g=yes
4494 else
4495 CXXFLAGS=""
4496 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4497 /* end confdefs.h. */
4500 main ()
4504 return 0;
4506 _ACEOF
4507 if ac_fn_cxx_try_compile "$LINENO"; then :
4509 else
4510 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
4511 CXXFLAGS="-g"
4512 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4513 /* end confdefs.h. */
4516 main ()
4520 return 0;
4522 _ACEOF
4523 if ac_fn_cxx_try_compile "$LINENO"; then :
4524 ac_cv_prog_cxx_g=yes
4526 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4528 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4530 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4531 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
4533 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cxx_g" >&5
4534 $as_echo "$ac_cv_prog_cxx_g" >&6; }
4535 if test "$ac_test_CXXFLAGS" = set; then
4536 CXXFLAGS=$ac_save_CXXFLAGS
4537 elif test $ac_cv_prog_cxx_g = yes; then
4538 if test "$GXX" = yes; then
4539 CXXFLAGS="-g -O2"
4540 else
4541 CXXFLAGS="-g"
4543 else
4544 if test "$GXX" = yes; then
4545 CXXFLAGS="-O2"
4546 else
4547 CXXFLAGS=
4550 ac_ext=c
4551 ac_cpp='$CPP $CPPFLAGS'
4552 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4553 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4554 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4559 if test -n "$ac_tool_prefix"; then
4560 # Extract the first word of "${ac_tool_prefix}gnatbind", so it can be a program name with args.
4561 set dummy ${ac_tool_prefix}gnatbind; ac_word=$2
4562 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4563 $as_echo_n "checking for $ac_word... " >&6; }
4564 if test "${ac_cv_prog_GNATBIND+set}" = set; then :
4565 $as_echo_n "(cached) " >&6
4566 else
4567 if test -n "$GNATBIND"; then
4568 ac_cv_prog_GNATBIND="$GNATBIND" # Let the user override the test.
4569 else
4570 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4571 for as_dir in $PATH
4573 IFS=$as_save_IFS
4574 test -z "$as_dir" && as_dir=.
4575 for ac_exec_ext in '' $ac_executable_extensions; do
4576 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4577 ac_cv_prog_GNATBIND="${ac_tool_prefix}gnatbind"
4578 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4579 break 2
4581 done
4582 done
4583 IFS=$as_save_IFS
4587 GNATBIND=$ac_cv_prog_GNATBIND
4588 if test -n "$GNATBIND"; then
4589 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GNATBIND" >&5
4590 $as_echo "$GNATBIND" >&6; }
4591 else
4592 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4593 $as_echo "no" >&6; }
4598 if test -z "$ac_cv_prog_GNATBIND"; then
4599 ac_ct_GNATBIND=$GNATBIND
4600 # Extract the first word of "gnatbind", so it can be a program name with args.
4601 set dummy gnatbind; ac_word=$2
4602 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4603 $as_echo_n "checking for $ac_word... " >&6; }
4604 if test "${ac_cv_prog_ac_ct_GNATBIND+set}" = set; then :
4605 $as_echo_n "(cached) " >&6
4606 else
4607 if test -n "$ac_ct_GNATBIND"; then
4608 ac_cv_prog_ac_ct_GNATBIND="$ac_ct_GNATBIND" # Let the user override the test.
4609 else
4610 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4611 for as_dir in $PATH
4613 IFS=$as_save_IFS
4614 test -z "$as_dir" && as_dir=.
4615 for ac_exec_ext in '' $ac_executable_extensions; do
4616 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4617 ac_cv_prog_ac_ct_GNATBIND="gnatbind"
4618 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4619 break 2
4621 done
4622 done
4623 IFS=$as_save_IFS
4627 ac_ct_GNATBIND=$ac_cv_prog_ac_ct_GNATBIND
4628 if test -n "$ac_ct_GNATBIND"; then
4629 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_GNATBIND" >&5
4630 $as_echo "$ac_ct_GNATBIND" >&6; }
4631 else
4632 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4633 $as_echo "no" >&6; }
4636 if test "x$ac_ct_GNATBIND" = x; then
4637 GNATBIND="no"
4638 else
4639 case $cross_compiling:$ac_tool_warned in
4640 yes:)
4641 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4642 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4643 ac_tool_warned=yes ;;
4644 esac
4645 GNATBIND=$ac_ct_GNATBIND
4647 else
4648 GNATBIND="$ac_cv_prog_GNATBIND"
4651 if test -n "$ac_tool_prefix"; then
4652 # Extract the first word of "${ac_tool_prefix}gnatmake", so it can be a program name with args.
4653 set dummy ${ac_tool_prefix}gnatmake; ac_word=$2
4654 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4655 $as_echo_n "checking for $ac_word... " >&6; }
4656 if test "${ac_cv_prog_GNATMAKE+set}" = set; then :
4657 $as_echo_n "(cached) " >&6
4658 else
4659 if test -n "$GNATMAKE"; then
4660 ac_cv_prog_GNATMAKE="$GNATMAKE" # Let the user override the test.
4661 else
4662 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4663 for as_dir in $PATH
4665 IFS=$as_save_IFS
4666 test -z "$as_dir" && as_dir=.
4667 for ac_exec_ext in '' $ac_executable_extensions; do
4668 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4669 ac_cv_prog_GNATMAKE="${ac_tool_prefix}gnatmake"
4670 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4671 break 2
4673 done
4674 done
4675 IFS=$as_save_IFS
4679 GNATMAKE=$ac_cv_prog_GNATMAKE
4680 if test -n "$GNATMAKE"; then
4681 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GNATMAKE" >&5
4682 $as_echo "$GNATMAKE" >&6; }
4683 else
4684 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4685 $as_echo "no" >&6; }
4690 if test -z "$ac_cv_prog_GNATMAKE"; then
4691 ac_ct_GNATMAKE=$GNATMAKE
4692 # Extract the first word of "gnatmake", so it can be a program name with args.
4693 set dummy gnatmake; ac_word=$2
4694 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4695 $as_echo_n "checking for $ac_word... " >&6; }
4696 if test "${ac_cv_prog_ac_ct_GNATMAKE+set}" = set; then :
4697 $as_echo_n "(cached) " >&6
4698 else
4699 if test -n "$ac_ct_GNATMAKE"; then
4700 ac_cv_prog_ac_ct_GNATMAKE="$ac_ct_GNATMAKE" # Let the user override the test.
4701 else
4702 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4703 for as_dir in $PATH
4705 IFS=$as_save_IFS
4706 test -z "$as_dir" && as_dir=.
4707 for ac_exec_ext in '' $ac_executable_extensions; do
4708 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4709 ac_cv_prog_ac_ct_GNATMAKE="gnatmake"
4710 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4711 break 2
4713 done
4714 done
4715 IFS=$as_save_IFS
4719 ac_ct_GNATMAKE=$ac_cv_prog_ac_ct_GNATMAKE
4720 if test -n "$ac_ct_GNATMAKE"; then
4721 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_GNATMAKE" >&5
4722 $as_echo "$ac_ct_GNATMAKE" >&6; }
4723 else
4724 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4725 $as_echo "no" >&6; }
4728 if test "x$ac_ct_GNATMAKE" = x; then
4729 GNATMAKE="no"
4730 else
4731 case $cross_compiling:$ac_tool_warned in
4732 yes:)
4733 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4734 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4735 ac_tool_warned=yes ;;
4736 esac
4737 GNATMAKE=$ac_ct_GNATMAKE
4739 else
4740 GNATMAKE="$ac_cv_prog_GNATMAKE"
4743 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether compiler driver understands Ada" >&5
4744 $as_echo_n "checking whether compiler driver understands Ada... " >&6; }
4745 if test "${acx_cv_cc_gcc_supports_ada+set}" = set; then :
4746 $as_echo_n "(cached) " >&6
4747 else
4748 cat >conftest.adb <<EOF
4749 procedure conftest is begin null; end conftest;
4751 acx_cv_cc_gcc_supports_ada=no
4752 # There is a bug in old released versions of GCC which causes the
4753 # driver to exit successfully when the appropriate language module
4754 # has not been installed. This is fixed in 2.95.4, 3.0.2, and 3.1.
4755 # Therefore we must check for the error message as well as an
4756 # unsuccessful exit.
4757 # Other compilers, like HP Tru64 UNIX cc, exit successfully when
4758 # given a .adb file, but produce no object file. So we must check
4759 # if an object file was really produced to guard against this.
4760 errors=`(${CC} -I"$srcdir"/ada -c conftest.adb) 2>&1 || echo failure`
4761 if test x"$errors" = x && test -f conftest.$ac_objext; then
4762 acx_cv_cc_gcc_supports_ada=yes
4764 rm -f conftest.*
4766 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $acx_cv_cc_gcc_supports_ada" >&5
4767 $as_echo "$acx_cv_cc_gcc_supports_ada" >&6; }
4769 if test "x$GNATBIND" != xno && test "x$GNATMAKE" != xno && test x$acx_cv_cc_gcc_supports_ada != xno; then
4770 have_gnat=yes
4771 else
4772 have_gnat=no
4776 # Remove the -O2: for historical reasons, unless bootstrapping we prefer
4777 # optimizations to be activated explicitly by the toplevel.
4778 case "$CC" in
4779 */prev-gcc/xgcc*) ;;
4780 *) CFLAGS=`echo "$CFLAGS " | sed -e "s/-Ofast[ ]//" -e "s/-O[gs][ ]//" -e "s/-O[0-9]*[ ]//" `
4781 CXXFLAGS=`echo "$CXXFLAGS " | sed -e "s/-Ofast[ ]//" -e "s/-O[gs][ ]//" -e "s/-O[0-9]*[ ]//" ` ;;
4782 esac
4786 # Determine PICFLAG for target gnatlib.
4791 case "${target}" in
4792 # PIC is the default on some targets or must not be used.
4793 *-*-darwin*)
4794 # PIC is the default on this platform
4795 # Common symbols not allowed in MH_DYLIB files
4796 PICFLAG_FOR_TARGET=-fno-common
4798 alpha*-dec-osf5*)
4799 # PIC is the default.
4801 hppa*64*-*-hpux*)
4802 # PIC is the default for 64-bit PA HP-UX.
4804 i[34567]86-*-cygwin* | x86_64-*-cygwin*)
4806 i[34567]86-*-mingw* | x86_64-*-mingw*)
4808 i[34567]86-*-interix[3-9]*)
4809 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
4810 # Instead, we relocate shared libraries at runtime.
4812 i[34567]86-*-nto-qnx*)
4813 # QNX uses GNU C++, but need to define -shared option too, otherwise
4814 # it will coredump.
4815 PICFLAG_FOR_TARGET='-fPIC -shared'
4817 i[34567]86-pc-msdosdjgpp*)
4818 # DJGPP does not support shared libraries at all.
4820 ia64*-*-hpux*)
4821 # On IA64 HP-UX, PIC is the default but the pic flag
4822 # sets the default TLS model and affects inlining.
4823 PICFLAG_FOR_TARGET=-fPIC
4825 mips-sgi-irix6*)
4826 # PIC is the default.
4828 rs6000-ibm-aix* | powerpc-ibm-aix*)
4829 # All AIX code is PIC.
4832 # Some targets support both -fPIC and -fpic, but prefer the latter.
4833 # FIXME: Why?
4834 i[34567]86-*-* | x86_64-*-*)
4835 PICFLAG_FOR_TARGET=-fpic
4837 # FIXME: Override -fPIC default in libgcc only?
4838 sh-*-linux* | sh[2346lbe]*-*-linux*)
4839 PICFLAG_FOR_TARGET=-fpic
4841 # FIXME: Simplify to sh*-*-netbsd*?
4842 sh-*-netbsdelf* | shl*-*-netbsdelf* | sh5-*-netbsd* | sh5l*-*-netbsd* | \
4843 sh64-*-netbsd* | sh64l*-*-netbsd*)
4844 PICFLAG_FOR_TARGET=-fpic
4846 # Default to -fPIC unless specified otherwise.
4848 PICFLAG_FOR_TARGET=-fPIC
4850 esac
4852 # If the user explicitly uses -fpic/-fPIC, keep that.
4853 case "${CFLAGS_FOR_TARGET}" in
4854 *-fpic*)
4855 PICFLAG_FOR_TARGET=-fpic
4857 *-fPIC*)
4858 PICFLAG_FOR_TARGET=-fPIC
4860 esac
4864 # -------------------------
4865 # Check C compiler features
4866 # -------------------------
4869 ac_ext=c
4870 ac_cpp='$CPP $CPPFLAGS'
4871 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4872 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4873 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4874 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
4875 $as_echo_n "checking how to run the C preprocessor... " >&6; }
4876 # On Suns, sometimes $CPP names a directory.
4877 if test -n "$CPP" && test -d "$CPP"; then
4878 CPP=
4880 if test -z "$CPP"; then
4881 if test "${ac_cv_prog_CPP+set}" = set; then :
4882 $as_echo_n "(cached) " >&6
4883 else
4884 # Double quotes because CPP needs to be expanded
4885 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
4887 ac_preproc_ok=false
4888 for ac_c_preproc_warn_flag in '' yes
4890 # Use a header file that comes with gcc, so configuring glibc
4891 # with a fresh cross-compiler works.
4892 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4893 # <limits.h> exists even on freestanding compilers.
4894 # On the NeXT, cc -E runs the code through the compiler's parser,
4895 # not just through cpp. "Syntax error" is here to catch this case.
4896 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4897 /* end confdefs.h. */
4898 #ifdef __STDC__
4899 # include <limits.h>
4900 #else
4901 # include <assert.h>
4902 #endif
4903 Syntax error
4904 _ACEOF
4905 if ac_fn_c_try_cpp "$LINENO"; then :
4907 else
4908 # Broken: fails on valid input.
4909 continue
4911 rm -f conftest.err conftest.$ac_ext
4913 # OK, works on sane cases. Now check whether nonexistent headers
4914 # can be detected and how.
4915 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4916 /* end confdefs.h. */
4917 #include <ac_nonexistent.h>
4918 _ACEOF
4919 if ac_fn_c_try_cpp "$LINENO"; then :
4920 # Broken: success on invalid input.
4921 continue
4922 else
4923 # Passes both tests.
4924 ac_preproc_ok=:
4925 break
4927 rm -f conftest.err conftest.$ac_ext
4929 done
4930 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4931 rm -f conftest.err conftest.$ac_ext
4932 if $ac_preproc_ok; then :
4933 break
4936 done
4937 ac_cv_prog_CPP=$CPP
4940 CPP=$ac_cv_prog_CPP
4941 else
4942 ac_cv_prog_CPP=$CPP
4944 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
4945 $as_echo "$CPP" >&6; }
4946 ac_preproc_ok=false
4947 for ac_c_preproc_warn_flag in '' yes
4949 # Use a header file that comes with gcc, so configuring glibc
4950 # with a fresh cross-compiler works.
4951 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4952 # <limits.h> exists even on freestanding compilers.
4953 # On the NeXT, cc -E runs the code through the compiler's parser,
4954 # not just through cpp. "Syntax error" is here to catch this case.
4955 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4956 /* end confdefs.h. */
4957 #ifdef __STDC__
4958 # include <limits.h>
4959 #else
4960 # include <assert.h>
4961 #endif
4962 Syntax error
4963 _ACEOF
4964 if ac_fn_c_try_cpp "$LINENO"; then :
4966 else
4967 # Broken: fails on valid input.
4968 continue
4970 rm -f conftest.err conftest.$ac_ext
4972 # OK, works on sane cases. Now check whether nonexistent headers
4973 # can be detected and how.
4974 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4975 /* end confdefs.h. */
4976 #include <ac_nonexistent.h>
4977 _ACEOF
4978 if ac_fn_c_try_cpp "$LINENO"; then :
4979 # Broken: success on invalid input.
4980 continue
4981 else
4982 # Passes both tests.
4983 ac_preproc_ok=:
4984 break
4986 rm -f conftest.err conftest.$ac_ext
4988 done
4989 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4990 rm -f conftest.err conftest.$ac_ext
4991 if $ac_preproc_ok; then :
4993 else
4994 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4995 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4996 as_fn_error "C preprocessor \"$CPP\" fails sanity check
4997 See \`config.log' for more details." "$LINENO" 5; }
5000 ac_ext=c
5001 ac_cpp='$CPP $CPPFLAGS'
5002 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5003 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5004 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5007 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
5008 $as_echo_n "checking for grep that handles long lines and -e... " >&6; }
5009 if test "${ac_cv_path_GREP+set}" = set; then :
5010 $as_echo_n "(cached) " >&6
5011 else
5012 if test -z "$GREP"; then
5013 ac_path_GREP_found=false
5014 # Loop through the user's path and test for each of PROGNAME-LIST
5015 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5016 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
5018 IFS=$as_save_IFS
5019 test -z "$as_dir" && as_dir=.
5020 for ac_prog in grep ggrep; do
5021 for ac_exec_ext in '' $ac_executable_extensions; do
5022 ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
5023 { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } || continue
5024 # Check for GNU ac_path_GREP and select it if it is found.
5025 # Check for GNU $ac_path_GREP
5026 case `"$ac_path_GREP" --version 2>&1` in
5027 *GNU*)
5028 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
5030 ac_count=0
5031 $as_echo_n 0123456789 >"conftest.in"
5032 while :
5034 cat "conftest.in" "conftest.in" >"conftest.tmp"
5035 mv "conftest.tmp" "conftest.in"
5036 cp "conftest.in" "conftest.nl"
5037 $as_echo 'GREP' >> "conftest.nl"
5038 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
5039 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
5040 as_fn_arith $ac_count + 1 && ac_count=$as_val
5041 if test $ac_count -gt ${ac_path_GREP_max-0}; then
5042 # Best one so far, save it but keep looking for a better one
5043 ac_cv_path_GREP="$ac_path_GREP"
5044 ac_path_GREP_max=$ac_count
5046 # 10*(2^10) chars as input seems more than enough
5047 test $ac_count -gt 10 && break
5048 done
5049 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
5050 esac
5052 $ac_path_GREP_found && break 3
5053 done
5054 done
5055 done
5056 IFS=$as_save_IFS
5057 if test -z "$ac_cv_path_GREP"; then
5058 as_fn_error "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
5060 else
5061 ac_cv_path_GREP=$GREP
5065 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
5066 $as_echo "$ac_cv_path_GREP" >&6; }
5067 GREP="$ac_cv_path_GREP"
5070 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
5071 $as_echo_n "checking for egrep... " >&6; }
5072 if test "${ac_cv_path_EGREP+set}" = set; then :
5073 $as_echo_n "(cached) " >&6
5074 else
5075 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
5076 then ac_cv_path_EGREP="$GREP -E"
5077 else
5078 if test -z "$EGREP"; then
5079 ac_path_EGREP_found=false
5080 # Loop through the user's path and test for each of PROGNAME-LIST
5081 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5082 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
5084 IFS=$as_save_IFS
5085 test -z "$as_dir" && as_dir=.
5086 for ac_prog in egrep; do
5087 for ac_exec_ext in '' $ac_executable_extensions; do
5088 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
5089 { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } || continue
5090 # Check for GNU ac_path_EGREP and select it if it is found.
5091 # Check for GNU $ac_path_EGREP
5092 case `"$ac_path_EGREP" --version 2>&1` in
5093 *GNU*)
5094 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
5096 ac_count=0
5097 $as_echo_n 0123456789 >"conftest.in"
5098 while :
5100 cat "conftest.in" "conftest.in" >"conftest.tmp"
5101 mv "conftest.tmp" "conftest.in"
5102 cp "conftest.in" "conftest.nl"
5103 $as_echo 'EGREP' >> "conftest.nl"
5104 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
5105 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
5106 as_fn_arith $ac_count + 1 && ac_count=$as_val
5107 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
5108 # Best one so far, save it but keep looking for a better one
5109 ac_cv_path_EGREP="$ac_path_EGREP"
5110 ac_path_EGREP_max=$ac_count
5112 # 10*(2^10) chars as input seems more than enough
5113 test $ac_count -gt 10 && break
5114 done
5115 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
5116 esac
5118 $ac_path_EGREP_found && break 3
5119 done
5120 done
5121 done
5122 IFS=$as_save_IFS
5123 if test -z "$ac_cv_path_EGREP"; then
5124 as_fn_error "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
5126 else
5127 ac_cv_path_EGREP=$EGREP
5132 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
5133 $as_echo "$ac_cv_path_EGREP" >&6; }
5134 EGREP="$ac_cv_path_EGREP"
5137 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
5138 $as_echo_n "checking for ANSI C header files... " >&6; }
5139 if test "${ac_cv_header_stdc+set}" = set; then :
5140 $as_echo_n "(cached) " >&6
5141 else
5142 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5143 /* end confdefs.h. */
5144 #include <stdlib.h>
5145 #include <stdarg.h>
5146 #include <string.h>
5147 #include <float.h>
5150 main ()
5154 return 0;
5156 _ACEOF
5157 if ac_fn_c_try_compile "$LINENO"; then :
5158 ac_cv_header_stdc=yes
5159 else
5160 ac_cv_header_stdc=no
5162 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5164 if test $ac_cv_header_stdc = yes; then
5165 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
5166 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5167 /* end confdefs.h. */
5168 #include <string.h>
5170 _ACEOF
5171 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5172 $EGREP "memchr" >/dev/null 2>&1; then :
5174 else
5175 ac_cv_header_stdc=no
5177 rm -f conftest*
5181 if test $ac_cv_header_stdc = yes; then
5182 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
5183 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5184 /* end confdefs.h. */
5185 #include <stdlib.h>
5187 _ACEOF
5188 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5189 $EGREP "free" >/dev/null 2>&1; then :
5191 else
5192 ac_cv_header_stdc=no
5194 rm -f conftest*
5198 if test $ac_cv_header_stdc = yes; then
5199 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
5200 if test "$cross_compiling" = yes; then :
5202 else
5203 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5204 /* end confdefs.h. */
5205 #include <ctype.h>
5206 #include <stdlib.h>
5207 #if ((' ' & 0x0FF) == 0x020)
5208 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
5209 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
5210 #else
5211 # define ISLOWER(c) \
5212 (('a' <= (c) && (c) <= 'i') \
5213 || ('j' <= (c) && (c) <= 'r') \
5214 || ('s' <= (c) && (c) <= 'z'))
5215 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
5216 #endif
5218 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
5220 main ()
5222 int i;
5223 for (i = 0; i < 256; i++)
5224 if (XOR (islower (i), ISLOWER (i))
5225 || toupper (i) != TOUPPER (i))
5226 return 2;
5227 return 0;
5229 _ACEOF
5230 if ac_fn_c_try_run "$LINENO"; then :
5232 else
5233 ac_cv_header_stdc=no
5235 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
5236 conftest.$ac_objext conftest.beam conftest.$ac_ext
5241 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
5242 $as_echo "$ac_cv_header_stdc" >&6; }
5243 if test $ac_cv_header_stdc = yes; then
5245 $as_echo "#define STDC_HEADERS 1" >>confdefs.h
5249 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
5250 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
5251 inttypes.h stdint.h unistd.h
5252 do :
5253 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
5254 ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
5256 eval as_val=\$$as_ac_Header
5257 if test "x$as_val" = x""yes; then :
5258 cat >>confdefs.h <<_ACEOF
5259 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
5260 _ACEOF
5264 done
5268 ac_fn_c_check_header_mongrel "$LINENO" "minix/config.h" "ac_cv_header_minix_config_h" "$ac_includes_default"
5269 if test "x$ac_cv_header_minix_config_h" = x""yes; then :
5270 MINIX=yes
5271 else
5272 MINIX=
5276 if test "$MINIX" = yes; then
5278 $as_echo "#define _POSIX_SOURCE 1" >>confdefs.h
5281 $as_echo "#define _POSIX_1_SOURCE 2" >>confdefs.h
5284 $as_echo "#define _MINIX 1" >>confdefs.h
5289 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether it is safe to define __EXTENSIONS__" >&5
5290 $as_echo_n "checking whether it is safe to define __EXTENSIONS__... " >&6; }
5291 if test "${ac_cv_safe_to_define___extensions__+set}" = set; then :
5292 $as_echo_n "(cached) " >&6
5293 else
5294 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5295 /* end confdefs.h. */
5297 # define __EXTENSIONS__ 1
5298 $ac_includes_default
5300 main ()
5304 return 0;
5306 _ACEOF
5307 if ac_fn_c_try_compile "$LINENO"; then :
5308 ac_cv_safe_to_define___extensions__=yes
5309 else
5310 ac_cv_safe_to_define___extensions__=no
5312 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5314 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_safe_to_define___extensions__" >&5
5315 $as_echo "$ac_cv_safe_to_define___extensions__" >&6; }
5316 test $ac_cv_safe_to_define___extensions__ = yes &&
5317 $as_echo "#define __EXTENSIONS__ 1" >>confdefs.h
5319 $as_echo "#define _ALL_SOURCE 1" >>confdefs.h
5321 $as_echo "#define _GNU_SOURCE 1" >>confdefs.h
5323 $as_echo "#define _POSIX_PTHREAD_SEMANTICS 1" >>confdefs.h
5325 $as_echo "#define _TANDEM_SOURCE 1" >>confdefs.h
5328 ac_ext=c
5329 ac_cpp='$CPP $CPPFLAGS'
5330 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5331 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5332 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5333 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
5334 $as_echo_n "checking how to run the C preprocessor... " >&6; }
5335 # On Suns, sometimes $CPP names a directory.
5336 if test -n "$CPP" && test -d "$CPP"; then
5337 CPP=
5339 if test -z "$CPP"; then
5340 if test "${ac_cv_prog_CPP+set}" = set; then :
5341 $as_echo_n "(cached) " >&6
5342 else
5343 # Double quotes because CPP needs to be expanded
5344 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
5346 ac_preproc_ok=false
5347 for ac_c_preproc_warn_flag in '' yes
5349 # Use a header file that comes with gcc, so configuring glibc
5350 # with a fresh cross-compiler works.
5351 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5352 # <limits.h> exists even on freestanding compilers.
5353 # On the NeXT, cc -E runs the code through the compiler's parser,
5354 # not just through cpp. "Syntax error" is here to catch this case.
5355 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5356 /* end confdefs.h. */
5357 #ifdef __STDC__
5358 # include <limits.h>
5359 #else
5360 # include <assert.h>
5361 #endif
5362 Syntax error
5363 _ACEOF
5364 if ac_fn_c_try_cpp "$LINENO"; then :
5366 else
5367 # Broken: fails on valid input.
5368 continue
5370 rm -f conftest.err conftest.$ac_ext
5372 # OK, works on sane cases. Now check whether nonexistent headers
5373 # can be detected and how.
5374 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5375 /* end confdefs.h. */
5376 #include <ac_nonexistent.h>
5377 _ACEOF
5378 if ac_fn_c_try_cpp "$LINENO"; then :
5379 # Broken: success on invalid input.
5380 continue
5381 else
5382 # Passes both tests.
5383 ac_preproc_ok=:
5384 break
5386 rm -f conftest.err conftest.$ac_ext
5388 done
5389 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5390 rm -f conftest.err conftest.$ac_ext
5391 if $ac_preproc_ok; then :
5392 break
5395 done
5396 ac_cv_prog_CPP=$CPP
5399 CPP=$ac_cv_prog_CPP
5400 else
5401 ac_cv_prog_CPP=$CPP
5403 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
5404 $as_echo "$CPP" >&6; }
5405 ac_preproc_ok=false
5406 for ac_c_preproc_warn_flag in '' yes
5408 # Use a header file that comes with gcc, so configuring glibc
5409 # with a fresh cross-compiler works.
5410 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5411 # <limits.h> exists even on freestanding compilers.
5412 # On the NeXT, cc -E runs the code through the compiler's parser,
5413 # not just through cpp. "Syntax error" is here to catch this case.
5414 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5415 /* end confdefs.h. */
5416 #ifdef __STDC__
5417 # include <limits.h>
5418 #else
5419 # include <assert.h>
5420 #endif
5421 Syntax error
5422 _ACEOF
5423 if ac_fn_c_try_cpp "$LINENO"; then :
5425 else
5426 # Broken: fails on valid input.
5427 continue
5429 rm -f conftest.err conftest.$ac_ext
5431 # OK, works on sane cases. Now check whether nonexistent headers
5432 # can be detected and how.
5433 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5434 /* end confdefs.h. */
5435 #include <ac_nonexistent.h>
5436 _ACEOF
5437 if ac_fn_c_try_cpp "$LINENO"; then :
5438 # Broken: success on invalid input.
5439 continue
5440 else
5441 # Passes both tests.
5442 ac_preproc_ok=:
5443 break
5445 rm -f conftest.err conftest.$ac_ext
5447 done
5448 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5449 rm -f conftest.err conftest.$ac_ext
5450 if $ac_preproc_ok; then :
5452 else
5453 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
5454 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
5455 as_fn_error "C preprocessor \"$CPP\" fails sanity check
5456 See \`config.log' for more details." "$LINENO" 5; }
5459 ac_ext=c
5460 ac_cpp='$CPP $CPPFLAGS'
5461 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5462 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5463 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5465 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for inline" >&5
5466 $as_echo_n "checking for inline... " >&6; }
5467 if test "${ac_cv_c_inline+set}" = set; then :
5468 $as_echo_n "(cached) " >&6
5469 else
5470 ac_cv_c_inline=no
5471 for ac_kw in inline __inline__ __inline; do
5472 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5473 /* end confdefs.h. */
5474 #ifndef __cplusplus
5475 typedef int foo_t;
5476 static $ac_kw foo_t static_foo () {return 0; }
5477 $ac_kw foo_t foo () {return 0; }
5478 #endif
5480 _ACEOF
5481 if ac_fn_c_try_compile "$LINENO"; then :
5482 ac_cv_c_inline=$ac_kw
5484 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5485 test "$ac_cv_c_inline" != no && break
5486 done
5489 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_inline" >&5
5490 $as_echo "$ac_cv_c_inline" >&6; }
5492 case $ac_cv_c_inline in
5493 inline | yes) ;;
5495 case $ac_cv_c_inline in
5496 no) ac_val=;;
5497 *) ac_val=$ac_cv_c_inline;;
5498 esac
5499 cat >>confdefs.h <<_ACEOF
5500 #ifndef __cplusplus
5501 #define inline $ac_val
5502 #endif
5503 _ACEOF
5505 esac
5508 # Check whether --enable-largefile was given.
5509 if test "${enable_largefile+set}" = set; then :
5510 enableval=$enable_largefile;
5513 if test "$enable_largefile" != no; then
5515 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for special C compiler options needed for large files" >&5
5516 $as_echo_n "checking for special C compiler options needed for large files... " >&6; }
5517 if test "${ac_cv_sys_largefile_CC+set}" = set; then :
5518 $as_echo_n "(cached) " >&6
5519 else
5520 ac_cv_sys_largefile_CC=no
5521 if test "$GCC" != yes; then
5522 ac_save_CC=$CC
5523 while :; do
5524 # IRIX 6.2 and later do not support large files by default,
5525 # so use the C compiler's -n32 option if that helps.
5526 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5527 /* end confdefs.h. */
5528 #include <sys/types.h>
5529 /* Check that off_t can represent 2**63 - 1 correctly.
5530 We can't simply define LARGE_OFF_T to be 9223372036854775807,
5531 since some C++ compilers masquerading as C compilers
5532 incorrectly reject 9223372036854775807. */
5533 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
5534 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
5535 && LARGE_OFF_T % 2147483647 == 1)
5536 ? 1 : -1];
5538 main ()
5542 return 0;
5544 _ACEOF
5545 if ac_fn_c_try_compile "$LINENO"; then :
5546 break
5548 rm -f core conftest.err conftest.$ac_objext
5549 CC="$CC -n32"
5550 if ac_fn_c_try_compile "$LINENO"; then :
5551 ac_cv_sys_largefile_CC=' -n32'; break
5553 rm -f core conftest.err conftest.$ac_objext
5554 break
5555 done
5556 CC=$ac_save_CC
5557 rm -f conftest.$ac_ext
5560 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_largefile_CC" >&5
5561 $as_echo "$ac_cv_sys_largefile_CC" >&6; }
5562 if test "$ac_cv_sys_largefile_CC" != no; then
5563 CC=$CC$ac_cv_sys_largefile_CC
5566 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _FILE_OFFSET_BITS value needed for large files" >&5
5567 $as_echo_n "checking for _FILE_OFFSET_BITS value needed for large files... " >&6; }
5568 if test "${ac_cv_sys_file_offset_bits+set}" = set; then :
5569 $as_echo_n "(cached) " >&6
5570 else
5571 while :; do
5572 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5573 /* end confdefs.h. */
5574 #include <sys/types.h>
5575 /* Check that off_t can represent 2**63 - 1 correctly.
5576 We can't simply define LARGE_OFF_T to be 9223372036854775807,
5577 since some C++ compilers masquerading as C compilers
5578 incorrectly reject 9223372036854775807. */
5579 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
5580 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
5581 && LARGE_OFF_T % 2147483647 == 1)
5582 ? 1 : -1];
5584 main ()
5588 return 0;
5590 _ACEOF
5591 if ac_fn_c_try_compile "$LINENO"; then :
5592 ac_cv_sys_file_offset_bits=no; break
5594 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5595 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5596 /* end confdefs.h. */
5597 #define _FILE_OFFSET_BITS 64
5598 #include <sys/types.h>
5599 /* Check that off_t can represent 2**63 - 1 correctly.
5600 We can't simply define LARGE_OFF_T to be 9223372036854775807,
5601 since some C++ compilers masquerading as C compilers
5602 incorrectly reject 9223372036854775807. */
5603 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
5604 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
5605 && LARGE_OFF_T % 2147483647 == 1)
5606 ? 1 : -1];
5608 main ()
5612 return 0;
5614 _ACEOF
5615 if ac_fn_c_try_compile "$LINENO"; then :
5616 ac_cv_sys_file_offset_bits=64; break
5618 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5619 ac_cv_sys_file_offset_bits=unknown
5620 break
5621 done
5623 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_file_offset_bits" >&5
5624 $as_echo "$ac_cv_sys_file_offset_bits" >&6; }
5625 case $ac_cv_sys_file_offset_bits in #(
5626 no | unknown) ;;
5628 cat >>confdefs.h <<_ACEOF
5629 #define _FILE_OFFSET_BITS $ac_cv_sys_file_offset_bits
5630 _ACEOF
5632 esac
5633 rm -rf conftest*
5634 if test $ac_cv_sys_file_offset_bits = unknown; then
5635 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _LARGE_FILES value needed for large files" >&5
5636 $as_echo_n "checking for _LARGE_FILES value needed for large files... " >&6; }
5637 if test "${ac_cv_sys_large_files+set}" = set; then :
5638 $as_echo_n "(cached) " >&6
5639 else
5640 while :; do
5641 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5642 /* end confdefs.h. */
5643 #include <sys/types.h>
5644 /* Check that off_t can represent 2**63 - 1 correctly.
5645 We can't simply define LARGE_OFF_T to be 9223372036854775807,
5646 since some C++ compilers masquerading as C compilers
5647 incorrectly reject 9223372036854775807. */
5648 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
5649 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
5650 && LARGE_OFF_T % 2147483647 == 1)
5651 ? 1 : -1];
5653 main ()
5657 return 0;
5659 _ACEOF
5660 if ac_fn_c_try_compile "$LINENO"; then :
5661 ac_cv_sys_large_files=no; break
5663 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5664 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5665 /* end confdefs.h. */
5666 #define _LARGE_FILES 1
5667 #include <sys/types.h>
5668 /* Check that off_t can represent 2**63 - 1 correctly.
5669 We can't simply define LARGE_OFF_T to be 9223372036854775807,
5670 since some C++ compilers masquerading as C compilers
5671 incorrectly reject 9223372036854775807. */
5672 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
5673 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
5674 && LARGE_OFF_T % 2147483647 == 1)
5675 ? 1 : -1];
5677 main ()
5681 return 0;
5683 _ACEOF
5684 if ac_fn_c_try_compile "$LINENO"; then :
5685 ac_cv_sys_large_files=1; break
5687 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5688 ac_cv_sys_large_files=unknown
5689 break
5690 done
5692 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_large_files" >&5
5693 $as_echo "$ac_cv_sys_large_files" >&6; }
5694 case $ac_cv_sys_large_files in #(
5695 no | unknown) ;;
5697 cat >>confdefs.h <<_ACEOF
5698 #define _LARGE_FILES $ac_cv_sys_large_files
5699 _ACEOF
5701 esac
5702 rm -rf conftest*
5707 # sizeof(char) is 1 by definition.
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 void *" >&5
5713 $as_echo_n "checking size of void *... " >&6; }
5714 if test "${ac_cv_sizeof_void_p+set}" = set; then :
5715 $as_echo_n "(cached) " >&6
5716 else
5717 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (void *))" "ac_cv_sizeof_void_p" "$ac_includes_default"; then :
5719 else
5720 if test "$ac_cv_type_void_p" = 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 (void *)
5725 See \`config.log' for more details." "$LINENO" 5; }; }
5726 else
5727 ac_cv_sizeof_void_p=0
5732 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_void_p" >&5
5733 $as_echo "$ac_cv_sizeof_void_p" >&6; }
5737 cat >>confdefs.h <<_ACEOF
5738 #define SIZEOF_VOID_P $ac_cv_sizeof_void_p
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 short" >&5
5747 $as_echo_n "checking size of short... " >&6; }
5748 if test "${ac_cv_sizeof_short+set}" = set; then :
5749 $as_echo_n "(cached) " >&6
5750 else
5751 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (short))" "ac_cv_sizeof_short" "$ac_includes_default"; then :
5753 else
5754 if test "$ac_cv_type_short" = 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 (short)
5759 See \`config.log' for more details." "$LINENO" 5; }; }
5760 else
5761 ac_cv_sizeof_short=0
5766 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_short" >&5
5767 $as_echo "$ac_cv_sizeof_short" >&6; }
5771 cat >>confdefs.h <<_ACEOF
5772 #define SIZEOF_SHORT $ac_cv_sizeof_short
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 int" >&5
5781 $as_echo_n "checking size of int... " >&6; }
5782 if test "${ac_cv_sizeof_int+set}" = set; then :
5783 $as_echo_n "(cached) " >&6
5784 else
5785 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (int))" "ac_cv_sizeof_int" "$ac_includes_default"; then :
5787 else
5788 if test "$ac_cv_type_int" = 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 (int)
5793 See \`config.log' for more details." "$LINENO" 5; }; }
5794 else
5795 ac_cv_sizeof_int=0
5800 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_int" >&5
5801 $as_echo "$ac_cv_sizeof_int" >&6; }
5805 cat >>confdefs.h <<_ACEOF
5806 #define SIZEOF_INT $ac_cv_sizeof_int
5807 _ACEOF
5810 # The cast to long int works around a bug in the HP C Compiler
5811 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
5812 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
5813 # This bug is HP SR number 8606223364.
5814 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of long" >&5
5815 $as_echo_n "checking size of long... " >&6; }
5816 if test "${ac_cv_sizeof_long+set}" = set; then :
5817 $as_echo_n "(cached) " >&6
5818 else
5819 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (long))" "ac_cv_sizeof_long" "$ac_includes_default"; then :
5821 else
5822 if test "$ac_cv_type_long" = yes; then
5823 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
5824 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
5825 { as_fn_set_status 77
5826 as_fn_error "cannot compute sizeof (long)
5827 See \`config.log' for more details." "$LINENO" 5; }; }
5828 else
5829 ac_cv_sizeof_long=0
5834 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_long" >&5
5835 $as_echo "$ac_cv_sizeof_long" >&6; }
5839 cat >>confdefs.h <<_ACEOF
5840 #define SIZEOF_LONG $ac_cv_sizeof_long
5841 _ACEOF
5844 ac_fn_c_check_type "$LINENO" "long long" "ac_cv_type_long_long" "$ac_includes_default"
5845 if test "x$ac_cv_type_long_long" = x""yes; then :
5847 cat >>confdefs.h <<_ACEOF
5848 #define HAVE_LONG_LONG 1
5849 _ACEOF
5851 # The cast to long int works around a bug in the HP C Compiler
5852 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
5853 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
5854 # This bug is HP SR number 8606223364.
5855 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of long long" >&5
5856 $as_echo_n "checking size of long long... " >&6; }
5857 if test "${ac_cv_sizeof_long_long+set}" = set; then :
5858 $as_echo_n "(cached) " >&6
5859 else
5860 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (long long))" "ac_cv_sizeof_long_long" "$ac_includes_default"; then :
5862 else
5863 if test "$ac_cv_type_long_long" = yes; then
5864 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
5865 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
5866 { as_fn_set_status 77
5867 as_fn_error "cannot compute sizeof (long long)
5868 See \`config.log' for more details." "$LINENO" 5; }; }
5869 else
5870 ac_cv_sizeof_long_long=0
5875 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_long_long" >&5
5876 $as_echo "$ac_cv_sizeof_long_long" >&6; }
5880 cat >>confdefs.h <<_ACEOF
5881 #define SIZEOF_LONG_LONG $ac_cv_sizeof_long_long
5882 _ACEOF
5887 ac_fn_c_check_type "$LINENO" "__int64" "ac_cv_type___int64" "$ac_includes_default"
5888 if test "x$ac_cv_type___int64" = x""yes; then :
5890 cat >>confdefs.h <<_ACEOF
5891 #define HAVE___INT64 1
5892 _ACEOF
5894 # The cast to long int works around a bug in the HP C Compiler
5895 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
5896 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
5897 # This bug is HP SR number 8606223364.
5898 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of __int64" >&5
5899 $as_echo_n "checking size of __int64... " >&6; }
5900 if test "${ac_cv_sizeof___int64+set}" = set; then :
5901 $as_echo_n "(cached) " >&6
5902 else
5903 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (__int64))" "ac_cv_sizeof___int64" "$ac_includes_default"; then :
5905 else
5906 if test "$ac_cv_type___int64" = yes; then
5907 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
5908 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
5909 { as_fn_set_status 77
5910 as_fn_error "cannot compute sizeof (__int64)
5911 See \`config.log' for more details." "$LINENO" 5; }; }
5912 else
5913 ac_cv_sizeof___int64=0
5918 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof___int64" >&5
5919 $as_echo "$ac_cv_sizeof___int64" >&6; }
5923 cat >>confdefs.h <<_ACEOF
5924 #define SIZEOF___INT64 $ac_cv_sizeof___int64
5925 _ACEOF
5930 ac_fn_c_find_intX_t "$LINENO" "8" "ac_cv_c_int8_t"
5931 case $ac_cv_c_int8_t in #(
5932 no|yes) ;; #(
5935 cat >>confdefs.h <<_ACEOF
5936 #define int8_t $ac_cv_c_int8_t
5937 _ACEOF
5939 esac
5941 ac_fn_c_find_intX_t "$LINENO" "16" "ac_cv_c_int16_t"
5942 case $ac_cv_c_int16_t in #(
5943 no|yes) ;; #(
5946 cat >>confdefs.h <<_ACEOF
5947 #define int16_t $ac_cv_c_int16_t
5948 _ACEOF
5950 esac
5952 ac_fn_c_find_intX_t "$LINENO" "32" "ac_cv_c_int32_t"
5953 case $ac_cv_c_int32_t in #(
5954 no|yes) ;; #(
5957 cat >>confdefs.h <<_ACEOF
5958 #define int32_t $ac_cv_c_int32_t
5959 _ACEOF
5961 esac
5963 ac_fn_c_find_intX_t "$LINENO" "64" "ac_cv_c_int64_t"
5964 case $ac_cv_c_int64_t in #(
5965 no|yes) ;; #(
5968 cat >>confdefs.h <<_ACEOF
5969 #define int64_t $ac_cv_c_int64_t
5970 _ACEOF
5972 esac
5975 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for long long int" >&5
5976 $as_echo_n "checking for long long int... " >&6; }
5977 if test "${ac_cv_type_long_long_int+set}" = set; then :
5978 $as_echo_n "(cached) " >&6
5979 else
5980 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5981 /* end confdefs.h. */
5983 /* For now, do not test the preprocessor; as of 2007 there are too many
5984 implementations with broken preprocessors. Perhaps this can
5985 be revisited in 2012. In the meantime, code should not expect
5986 #if to work with literals wider than 32 bits. */
5987 /* Test literals. */
5988 long long int ll = 9223372036854775807ll;
5989 long long int nll = -9223372036854775807LL;
5990 unsigned long long int ull = 18446744073709551615ULL;
5991 /* Test constant expressions. */
5992 typedef int a[((-9223372036854775807LL < 0 && 0 < 9223372036854775807ll)
5993 ? 1 : -1)];
5994 typedef int b[(18446744073709551615ULL <= (unsigned long long int) -1
5995 ? 1 : -1)];
5996 int i = 63;
5998 main ()
6000 /* Test availability of runtime routines for shift and division. */
6001 long long int llmax = 9223372036854775807ll;
6002 unsigned long long int ullmax = 18446744073709551615ull;
6003 return ((ll << 63) | (ll >> 63) | (ll < i) | (ll > i)
6004 | (llmax / ll) | (llmax % ll)
6005 | (ull << 63) | (ull >> 63) | (ull << i) | (ull >> i)
6006 | (ullmax / ull) | (ullmax % ull));
6008 return 0;
6011 _ACEOF
6012 if ac_fn_c_try_link "$LINENO"; then :
6013 if test "$cross_compiling" = yes; then :
6014 ac_cv_type_long_long_int=yes
6015 else
6016 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6017 /* end confdefs.h. */
6018 #include <limits.h>
6019 #ifndef LLONG_MAX
6020 # define HALF \
6021 (1LL << (sizeof (long long int) * CHAR_BIT - 2))
6022 # define LLONG_MAX (HALF - 1 + HALF)
6023 #endif
6025 main ()
6027 long long int n = 1;
6028 int i;
6029 for (i = 0; ; i++)
6031 long long int m = n << i;
6032 if (m >> i != n)
6033 return 1;
6034 if (LLONG_MAX / 2 < m)
6035 break;
6037 return 0;
6039 return 0;
6041 _ACEOF
6042 if ac_fn_c_try_run "$LINENO"; then :
6043 ac_cv_type_long_long_int=yes
6044 else
6045 ac_cv_type_long_long_int=no
6047 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
6048 conftest.$ac_objext conftest.beam conftest.$ac_ext
6051 else
6052 ac_cv_type_long_long_int=no
6054 rm -f core conftest.err conftest.$ac_objext \
6055 conftest$ac_exeext conftest.$ac_ext
6057 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_long_long_int" >&5
6058 $as_echo "$ac_cv_type_long_long_int" >&6; }
6059 if test $ac_cv_type_long_long_int = yes; then
6061 $as_echo "#define HAVE_LONG_LONG_INT 1" >>confdefs.h
6067 ac_fn_c_check_type "$LINENO" "intmax_t" "ac_cv_type_intmax_t" "$ac_includes_default"
6068 if test "x$ac_cv_type_intmax_t" = x""yes; then :
6070 $as_echo "#define HAVE_INTMAX_T 1" >>confdefs.h
6072 else
6073 test $ac_cv_type_long_long_int = yes \
6074 && ac_type='long long int' \
6075 || ac_type='long int'
6077 cat >>confdefs.h <<_ACEOF
6078 #define intmax_t $ac_type
6079 _ACEOF
6085 ac_fn_c_check_type "$LINENO" "intptr_t" "ac_cv_type_intptr_t" "$ac_includes_default"
6086 if test "x$ac_cv_type_intptr_t" = x""yes; then :
6088 $as_echo "#define HAVE_INTPTR_T 1" >>confdefs.h
6090 else
6091 for ac_type in 'int' 'long int' 'long long int'; do
6092 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6093 /* end confdefs.h. */
6094 $ac_includes_default
6096 main ()
6098 static int test_array [1 - 2 * !(sizeof (void *) <= sizeof ($ac_type))];
6099 test_array [0] = 0
6102 return 0;
6104 _ACEOF
6105 if ac_fn_c_try_compile "$LINENO"; then :
6107 cat >>confdefs.h <<_ACEOF
6108 #define intptr_t $ac_type
6109 _ACEOF
6111 ac_type=
6113 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6114 test -z "$ac_type" && break
6115 done
6119 ac_fn_c_find_uintX_t "$LINENO" "8" "ac_cv_c_uint8_t"
6120 case $ac_cv_c_uint8_t in #(
6121 no|yes) ;; #(
6124 $as_echo "#define _UINT8_T 1" >>confdefs.h
6127 cat >>confdefs.h <<_ACEOF
6128 #define uint8_t $ac_cv_c_uint8_t
6129 _ACEOF
6131 esac
6133 ac_fn_c_find_uintX_t "$LINENO" "16" "ac_cv_c_uint16_t"
6134 case $ac_cv_c_uint16_t in #(
6135 no|yes) ;; #(
6139 cat >>confdefs.h <<_ACEOF
6140 #define uint16_t $ac_cv_c_uint16_t
6141 _ACEOF
6143 esac
6145 ac_fn_c_find_uintX_t "$LINENO" "32" "ac_cv_c_uint32_t"
6146 case $ac_cv_c_uint32_t in #(
6147 no|yes) ;; #(
6150 $as_echo "#define _UINT32_T 1" >>confdefs.h
6153 cat >>confdefs.h <<_ACEOF
6154 #define uint32_t $ac_cv_c_uint32_t
6155 _ACEOF
6157 esac
6159 ac_fn_c_find_uintX_t "$LINENO" "64" "ac_cv_c_uint64_t"
6160 case $ac_cv_c_uint64_t in #(
6161 no|yes) ;; #(
6164 $as_echo "#define _UINT64_T 1" >>confdefs.h
6167 cat >>confdefs.h <<_ACEOF
6168 #define uint64_t $ac_cv_c_uint64_t
6169 _ACEOF
6171 esac
6174 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for unsigned long long int" >&5
6175 $as_echo_n "checking for unsigned long long int... " >&6; }
6176 if test "${ac_cv_type_unsigned_long_long_int+set}" = set; then :
6177 $as_echo_n "(cached) " >&6
6178 else
6179 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6180 /* end confdefs.h. */
6182 /* For now, do not test the preprocessor; as of 2007 there are too many
6183 implementations with broken preprocessors. Perhaps this can
6184 be revisited in 2012. In the meantime, code should not expect
6185 #if to work with literals wider than 32 bits. */
6186 /* Test literals. */
6187 long long int ll = 9223372036854775807ll;
6188 long long int nll = -9223372036854775807LL;
6189 unsigned long long int ull = 18446744073709551615ULL;
6190 /* Test constant expressions. */
6191 typedef int a[((-9223372036854775807LL < 0 && 0 < 9223372036854775807ll)
6192 ? 1 : -1)];
6193 typedef int b[(18446744073709551615ULL <= (unsigned long long int) -1
6194 ? 1 : -1)];
6195 int i = 63;
6197 main ()
6199 /* Test availability of runtime routines for shift and division. */
6200 long long int llmax = 9223372036854775807ll;
6201 unsigned long long int ullmax = 18446744073709551615ull;
6202 return ((ll << 63) | (ll >> 63) | (ll < i) | (ll > i)
6203 | (llmax / ll) | (llmax % ll)
6204 | (ull << 63) | (ull >> 63) | (ull << i) | (ull >> i)
6205 | (ullmax / ull) | (ullmax % ull));
6207 return 0;
6210 _ACEOF
6211 if ac_fn_c_try_link "$LINENO"; then :
6212 ac_cv_type_unsigned_long_long_int=yes
6213 else
6214 ac_cv_type_unsigned_long_long_int=no
6216 rm -f core conftest.err conftest.$ac_objext \
6217 conftest$ac_exeext conftest.$ac_ext
6219 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_unsigned_long_long_int" >&5
6220 $as_echo "$ac_cv_type_unsigned_long_long_int" >&6; }
6221 if test $ac_cv_type_unsigned_long_long_int = yes; then
6223 $as_echo "#define HAVE_UNSIGNED_LONG_LONG_INT 1" >>confdefs.h
6229 ac_fn_c_check_type "$LINENO" "uintmax_t" "ac_cv_type_uintmax_t" "$ac_includes_default"
6230 if test "x$ac_cv_type_uintmax_t" = x""yes; then :
6232 $as_echo "#define HAVE_UINTMAX_T 1" >>confdefs.h
6234 else
6235 test $ac_cv_type_unsigned_long_long_int = yes \
6236 && ac_type='unsigned long long int' \
6237 || ac_type='unsigned long int'
6239 cat >>confdefs.h <<_ACEOF
6240 #define uintmax_t $ac_type
6241 _ACEOF
6247 ac_fn_c_check_type "$LINENO" "uintptr_t" "ac_cv_type_uintptr_t" "$ac_includes_default"
6248 if test "x$ac_cv_type_uintptr_t" = x""yes; then :
6250 $as_echo "#define HAVE_UINTPTR_T 1" >>confdefs.h
6252 else
6253 for ac_type in 'unsigned int' 'unsigned long int' \
6254 'unsigned long long int'; do
6255 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6256 /* end confdefs.h. */
6257 $ac_includes_default
6259 main ()
6261 static int test_array [1 - 2 * !(sizeof (void *) <= sizeof ($ac_type))];
6262 test_array [0] = 0
6265 return 0;
6267 _ACEOF
6268 if ac_fn_c_try_compile "$LINENO"; then :
6270 cat >>confdefs.h <<_ACEOF
6271 #define uintptr_t $ac_type
6272 _ACEOF
6274 ac_type=
6276 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6277 test -z "$ac_type" && break
6278 done
6295 # ---------------------
6296 # Warnings and checking
6297 # ---------------------
6299 # Check $CC warning features (if it's GCC).
6300 # We want to use -pedantic, but we don't want warnings about
6301 # * 'long long'
6302 # * variadic macros
6303 # * overlong strings
6304 # * C++11 narrowing conversions in { }
6305 # So, we only use -pedantic if we can disable those warnings.
6307 # In stage 1, disable -Wformat warnings from old GCCs about new % codes
6308 # Check whether --enable-build-format-warnings was given.
6309 if test "${enable_build_format_warnings+set}" = set; then :
6310 enableval=$enable_build_format_warnings;
6311 else
6312 enable_build_format_warnings=yes
6315 if test $enable_build_format_warnings = no; then :
6316 wf_opt=-Wno-format
6317 else
6318 wf_opt=
6320 loose_warn=
6321 save_CFLAGS="$CFLAGS"
6322 for real_option in -W -Wall -Wno-narrowing -Wwrite-strings -Wcast-qual $wf_opt; do
6323 # Do the check with the no- prefix removed since gcc silently
6324 # accepts any -Wno-* option on purpose
6325 case $real_option in
6326 -Wno-*) option=-W`expr x$real_option : 'x-Wno-\(.*\)'` ;;
6327 *) option=$real_option ;;
6328 esac
6329 as_acx_Woption=`$as_echo "acx_cv_prog_cc_warning_$option" | $as_tr_sh`
6331 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC supports $option" >&5
6332 $as_echo_n "checking whether $CC supports $option... " >&6; }
6333 if { as_var=$as_acx_Woption; eval "test \"\${$as_var+set}\" = set"; }; then :
6334 $as_echo_n "(cached) " >&6
6335 else
6336 CFLAGS="$option"
6337 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6338 /* end confdefs.h. */
6341 main ()
6345 return 0;
6347 _ACEOF
6348 if ac_fn_c_try_compile "$LINENO"; then :
6349 eval "$as_acx_Woption=yes"
6350 else
6351 eval "$as_acx_Woption=no"
6353 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6356 eval ac_res=\$$as_acx_Woption
6357 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
6358 $as_echo "$ac_res" >&6; }
6359 if test `eval 'as_val=${'$as_acx_Woption'};$as_echo "$as_val"'` = yes; then :
6360 loose_warn="$loose_warn${loose_warn:+ }$real_option"
6362 done
6363 CFLAGS="$save_CFLAGS"
6365 c_loose_warn=
6366 save_CFLAGS="$CFLAGS"
6367 for real_option in -Wstrict-prototypes -Wmissing-prototypes; do
6368 # Do the check with the no- prefix removed since gcc silently
6369 # accepts any -Wno-* option on purpose
6370 case $real_option in
6371 -Wno-*) option=-W`expr x$real_option : 'x-Wno-\(.*\)'` ;;
6372 *) option=$real_option ;;
6373 esac
6374 as_acx_Woption=`$as_echo "acx_cv_prog_cc_warning_$option" | $as_tr_sh`
6376 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC supports $option" >&5
6377 $as_echo_n "checking whether $CC supports $option... " >&6; }
6378 if { as_var=$as_acx_Woption; eval "test \"\${$as_var+set}\" = set"; }; then :
6379 $as_echo_n "(cached) " >&6
6380 else
6381 CFLAGS="$option"
6382 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6383 /* end confdefs.h. */
6386 main ()
6390 return 0;
6392 _ACEOF
6393 if ac_fn_c_try_compile "$LINENO"; then :
6394 eval "$as_acx_Woption=yes"
6395 else
6396 eval "$as_acx_Woption=no"
6398 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6401 eval ac_res=\$$as_acx_Woption
6402 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
6403 $as_echo "$ac_res" >&6; }
6404 if test `eval 'as_val=${'$as_acx_Woption'};$as_echo "$as_val"'` = yes; then :
6405 c_loose_warn="$c_loose_warn${c_loose_warn:+ }$real_option"
6407 done
6408 CFLAGS="$save_CFLAGS"
6410 strict_warn=
6411 save_CFLAGS="$CFLAGS"
6412 for real_option in -Wmissing-format-attribute; do
6413 # Do the check with the no- prefix removed since gcc silently
6414 # accepts any -Wno-* option on purpose
6415 case $real_option in
6416 -Wno-*) option=-W`expr x$real_option : 'x-Wno-\(.*\)'` ;;
6417 *) option=$real_option ;;
6418 esac
6419 as_acx_Woption=`$as_echo "acx_cv_prog_cc_warning_$option" | $as_tr_sh`
6421 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC supports $option" >&5
6422 $as_echo_n "checking whether $CC supports $option... " >&6; }
6423 if { as_var=$as_acx_Woption; eval "test \"\${$as_var+set}\" = set"; }; then :
6424 $as_echo_n "(cached) " >&6
6425 else
6426 CFLAGS="$option"
6427 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6428 /* end confdefs.h. */
6431 main ()
6435 return 0;
6437 _ACEOF
6438 if ac_fn_c_try_compile "$LINENO"; then :
6439 eval "$as_acx_Woption=yes"
6440 else
6441 eval "$as_acx_Woption=no"
6443 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6446 eval ac_res=\$$as_acx_Woption
6447 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
6448 $as_echo "$ac_res" >&6; }
6449 if test `eval 'as_val=${'$as_acx_Woption'};$as_echo "$as_val"'` = yes; then :
6450 strict_warn="$strict_warn${strict_warn:+ }$real_option"
6452 done
6453 CFLAGS="$save_CFLAGS"
6455 c_strict_warn=
6456 save_CFLAGS="$CFLAGS"
6457 for real_option in -Wold-style-definition -Wc++-compat; do
6458 # Do the check with the no- prefix removed since gcc silently
6459 # accepts any -Wno-* option on purpose
6460 case $real_option in
6461 -Wno-*) option=-W`expr x$real_option : 'x-Wno-\(.*\)'` ;;
6462 *) option=$real_option ;;
6463 esac
6464 as_acx_Woption=`$as_echo "acx_cv_prog_cc_warning_$option" | $as_tr_sh`
6466 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC supports $option" >&5
6467 $as_echo_n "checking whether $CC supports $option... " >&6; }
6468 if { as_var=$as_acx_Woption; eval "test \"\${$as_var+set}\" = set"; }; then :
6469 $as_echo_n "(cached) " >&6
6470 else
6471 CFLAGS="$option"
6472 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6473 /* end confdefs.h. */
6476 main ()
6480 return 0;
6482 _ACEOF
6483 if ac_fn_c_try_compile "$LINENO"; then :
6484 eval "$as_acx_Woption=yes"
6485 else
6486 eval "$as_acx_Woption=no"
6488 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6491 eval ac_res=\$$as_acx_Woption
6492 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
6493 $as_echo "$ac_res" >&6; }
6494 if test `eval 'as_val=${'$as_acx_Woption'};$as_echo "$as_val"'` = yes; then :
6495 c_strict_warn="$c_strict_warn${c_strict_warn:+ }$real_option"
6497 done
6498 CFLAGS="$save_CFLAGS"
6500 # Do the check with the no- prefix removed from the warning options
6501 # since gcc silently accepts any -Wno-* option on purpose
6502 if test "$GCC" = yes; then :
6503 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC supports -pedantic -Wlong-long -Wvariadic-macros -Woverlength-strings" >&5
6504 $as_echo_n "checking whether $CC supports -pedantic -Wlong-long -Wvariadic-macros -Woverlength-strings... " >&6; }
6505 if test "${acx_cv_prog_cc_pedantic__Wlong_long__Wvariadic_macros__Woverlength_strings+set}" = set; then :
6506 $as_echo_n "(cached) " >&6
6507 else
6508 save_CFLAGS="$CFLAGS"
6509 CFLAGS="-pedantic -Wlong-long -Wvariadic-macros -Woverlength-strings"
6510 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6511 /* end confdefs.h. */
6514 main ()
6518 return 0;
6520 _ACEOF
6521 if ac_fn_c_try_compile "$LINENO"; then :
6522 acx_cv_prog_cc_pedantic__Wlong_long__Wvariadic_macros__Woverlength_strings=yes
6523 else
6524 acx_cv_prog_cc_pedantic__Wlong_long__Wvariadic_macros__Woverlength_strings=no
6526 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6527 CFLAGS="$save_CFLAGS"
6529 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $acx_cv_prog_cc_pedantic__Wlong_long__Wvariadic_macros__Woverlength_strings" >&5
6530 $as_echo "$acx_cv_prog_cc_pedantic__Wlong_long__Wvariadic_macros__Woverlength_strings" >&6; }
6531 if test $acx_cv_prog_cc_pedantic__Wlong_long__Wvariadic_macros__Woverlength_strings = yes; then :
6532 strict_warn="$strict_warn${strict_warn:+ }-pedantic -Wno-long-long -Wno-variadic-macros -Wno-overlength-strings"
6537 # Check whether --enable-werror-always was given.
6538 if test "${enable_werror_always+set}" = set; then :
6539 enableval=$enable_werror_always;
6540 else
6541 enable_werror_always=no
6544 if test $enable_werror_always = yes; then :
6545 strict_warn="$strict_warn${strict_warn:+ }-Werror"
6550 # The above macros do nothing if the compiler is not GCC. However, the
6551 # Makefile has more goo to add other flags, so these variables are used
6552 # to enable warnings only for GCC.
6553 warn_cflags=
6554 warn_cxxflags=
6555 if test "x$GCC" = "xyes"; then
6556 warn_cflags='$(GCC_WARN_CFLAGS)'
6557 warn_cxxflags='$(GCC_WARN_CXXFLAGS)'
6562 # Disable exceptions and RTTI if building with g++
6563 noexception_flags=
6564 save_CFLAGS="$CFLAGS"
6565 for real_option in -fno-exceptions -fno-rtti -fasynchronous-unwind-tables; do
6566 # Do the check with the no- prefix removed since gcc silently
6567 # accepts any -Wno-* option on purpose
6568 case $real_option in
6569 -Wno-*) option=-W`expr x$real_option : 'x-Wno-\(.*\)'` ;;
6570 *) option=$real_option ;;
6571 esac
6572 as_acx_Woption=`$as_echo "acx_cv_prog_cc_warning_$option" | $as_tr_sh`
6574 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC supports $option" >&5
6575 $as_echo_n "checking whether $CC supports $option... " >&6; }
6576 if { as_var=$as_acx_Woption; eval "test \"\${$as_var+set}\" = set"; }; then :
6577 $as_echo_n "(cached) " >&6
6578 else
6579 CFLAGS="$option"
6580 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6581 /* end confdefs.h. */
6584 main ()
6588 return 0;
6590 _ACEOF
6591 if ac_fn_c_try_compile "$LINENO"; then :
6592 eval "$as_acx_Woption=yes"
6593 else
6594 eval "$as_acx_Woption=no"
6596 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6599 eval ac_res=\$$as_acx_Woption
6600 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
6601 $as_echo "$ac_res" >&6; }
6602 if test `eval 'as_val=${'$as_acx_Woption'};$as_echo "$as_val"'` = yes; then :
6603 noexception_flags="$noexception_flags${noexception_flags:+ }$real_option"
6605 done
6606 CFLAGS="$save_CFLAGS"
6609 # Enable expensive internal checks
6610 is_release=
6611 if test x"`cat $srcdir/DEV-PHASE`" != xexperimental; then
6612 is_release=yes
6615 # Check whether --enable-checking was given.
6616 if test "${enable_checking+set}" = set; then :
6617 enableval=$enable_checking; ac_checking_flags="${enableval}"
6618 else
6620 # Determine the default checks.
6621 if test x$is_release = x ; then
6622 ac_checking_flags=yes
6623 else
6624 ac_checking_flags=release
6628 IFS="${IFS= }"; ac_save_IFS="$IFS"; IFS="$IFS,"
6629 for check in release $ac_checking_flags
6631 case $check in
6632 # these set all the flags to specific states
6633 yes) ac_assert_checking=1 ; ac_checking=1 ; ac_df_checking= ;
6634 ac_fold_checking= ; ac_gc_checking=1 ;
6635 ac_gc_always_collect= ; ac_gimple_checking=1 ; ac_rtl_checking= ;
6636 ac_rtlflag_checking=1 ; ac_runtime_checking=1 ;
6637 ac_tree_checking=1 ; ac_valgrind_checking= ;
6638 ac_types_checking=1 ;;
6639 no|none) ac_assert_checking= ; ac_checking= ; ac_df_checking= ;
6640 ac_fold_checking= ; ac_gc_checking= ;
6641 ac_gc_always_collect= ; ac_gimple_checking= ; ac_rtl_checking= ;
6642 ac_rtlflag_checking= ; ac_runtime_checking= ;
6643 ac_tree_checking= ; ac_valgrind_checking= ;
6644 ac_types_checking= ;;
6645 all) ac_assert_checking=1 ; ac_checking=1 ; ac_df_checking=1 ;
6646 ac_fold_checking=1 ; ac_gc_checking=1 ;
6647 ac_gc_always_collect=1 ; ac_gimple_checking=1 ; ac_rtl_checking=1 ;
6648 ac_rtlflag_checking=1 ; ac_runtime_checking=1 ;
6649 ac_tree_checking=1 ; ac_valgrind_checking= ;
6650 ac_types_checking=1 ;;
6651 release) ac_assert_checking=1 ; ac_checking= ; ac_df_checking= ;
6652 ac_fold_checking= ; ac_gc_checking= ;
6653 ac_gc_always_collect= ; ac_gimple_checking= ; ac_rtl_checking= ;
6654 ac_rtlflag_checking= ; ac_runtime_checking=1 ;
6655 ac_tree_checking= ; ac_valgrind_checking= ;
6656 ac_types_checking= ;;
6657 # these enable particular checks
6658 assert) ac_assert_checking=1 ;;
6659 df) ac_df_checking=1 ;;
6660 fold) ac_fold_checking=1 ;;
6661 gc) ac_gc_checking=1 ;;
6662 gcac) ac_gc_always_collect=1 ;;
6663 gimple) ac_gimple_checking=1 ;;
6664 misc) ac_checking=1 ;;
6665 rtl) ac_rtl_checking=1 ;;
6666 rtlflag) ac_rtlflag_checking=1 ;;
6667 runtime) ac_runtime_checking=1 ;;
6668 tree) ac_tree_checking=1 ;;
6669 types) ac_types_checking=1 ;;
6670 valgrind) ac_valgrind_checking=1 ;;
6671 *) as_fn_error "unknown check category $check" "$LINENO" 5 ;;
6672 esac
6673 done
6674 IFS="$ac_save_IFS"
6676 nocommon_flag=""
6677 if test x$ac_checking != x ; then
6679 $as_echo "#define ENABLE_CHECKING 1" >>confdefs.h
6681 nocommon_flag=-fno-common
6684 if test x$ac_df_checking != x ; then
6686 $as_echo "#define ENABLE_DF_CHECKING 1" >>confdefs.h
6689 if test x$ac_assert_checking != x ; then
6691 $as_echo "#define ENABLE_ASSERT_CHECKING 1" >>confdefs.h
6694 if test x$ac_gimple_checking != x ; then
6696 $as_echo "#define ENABLE_GIMPLE_CHECKING 1" >>confdefs.h
6700 if test x$ac_runtime_checking != x ; then
6702 $as_echo "#define ENABLE_RUNTIME_CHECKING 1" >>confdefs.h
6705 if test x$ac_tree_checking != x ; then
6707 $as_echo "#define ENABLE_TREE_CHECKING 1" >>confdefs.h
6709 TREEBROWSER=tree-browser.o
6710 TREECHECKING=yes
6712 if test x$ac_types_checking != x ; then
6714 $as_echo "#define ENABLE_TYPES_CHECKING 1" >>confdefs.h
6719 if test x$ac_rtl_checking != x ; then
6721 $as_echo "#define ENABLE_RTL_CHECKING 1" >>confdefs.h
6724 if test x$ac_rtlflag_checking != x ; then
6726 $as_echo "#define ENABLE_RTL_FLAG_CHECKING 1" >>confdefs.h
6729 if test x$ac_gc_checking != x ; then
6731 $as_echo "#define ENABLE_GC_CHECKING 1" >>confdefs.h
6734 if test x$ac_gc_always_collect != x ; then
6736 $as_echo "#define ENABLE_GC_ALWAYS_COLLECT 1" >>confdefs.h
6739 if test x$ac_fold_checking != x ; then
6741 $as_echo "#define ENABLE_FOLD_CHECKING 1" >>confdefs.h
6744 valgrind_path_defines=
6745 valgrind_command=
6747 ac_fn_c_check_header_mongrel "$LINENO" "valgrind.h" "ac_cv_header_valgrind_h" "$ac_includes_default"
6748 if test "x$ac_cv_header_valgrind_h" = x""yes; then :
6749 have_valgrind_h=yes
6750 else
6751 have_valgrind_h=no
6756 if test x$ac_valgrind_checking != x ; then
6757 # It is certainly possible that there's valgrind but no valgrind.h.
6758 # GCC relies on making annotations so we must have both.
6759 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for VALGRIND_DISCARD in <valgrind/memcheck.h>" >&5
6760 $as_echo_n "checking for VALGRIND_DISCARD in <valgrind/memcheck.h>... " >&6; }
6761 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6762 /* end confdefs.h. */
6763 #include <valgrind/memcheck.h>
6764 #ifndef VALGRIND_DISCARD
6765 #error VALGRIND_DISCARD not defined
6766 #endif
6767 _ACEOF
6768 if ac_fn_c_try_cpp "$LINENO"; then :
6769 gcc_cv_header_valgrind_memcheck_h=yes
6770 else
6771 gcc_cv_header_valgrind_memcheck_h=no
6773 rm -f conftest.err conftest.$ac_ext
6774 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_header_valgrind_memcheck_h" >&5
6775 $as_echo "$gcc_cv_header_valgrind_memcheck_h" >&6; }
6776 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for VALGRIND_DISCARD in <memcheck.h>" >&5
6777 $as_echo_n "checking for VALGRIND_DISCARD in <memcheck.h>... " >&6; }
6778 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6779 /* end confdefs.h. */
6780 #include <memcheck.h>
6781 #ifndef VALGRIND_DISCARD
6782 #error VALGRIND_DISCARD not defined
6783 #endif
6784 _ACEOF
6785 if ac_fn_c_try_cpp "$LINENO"; then :
6786 gcc_cv_header_memcheck_h=yes
6787 else
6788 gcc_cv_header_memcheck_h=no
6790 rm -f conftest.err conftest.$ac_ext
6791 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_header_memcheck_h" >&5
6792 $as_echo "$gcc_cv_header_memcheck_h" >&6; }
6794 # Prepare PATH_SEPARATOR.
6795 # The user is always right.
6796 if test "${PATH_SEPARATOR+set}" != set; then
6797 echo "#! /bin/sh" >conf$$.sh
6798 echo "exit 0" >>conf$$.sh
6799 chmod +x conf$$.sh
6800 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
6801 PATH_SEPARATOR=';'
6802 else
6803 PATH_SEPARATOR=:
6805 rm -f conf$$.sh
6808 # Find out how to test for executable files. Don't use a zero-byte file,
6809 # as systems may use methods other than mode bits to determine executability.
6810 cat >conf$$.file <<_ASEOF
6811 #! /bin/sh
6812 exit 0
6813 _ASEOF
6814 chmod +x conf$$.file
6815 if test -x conf$$.file >/dev/null 2>&1; then
6816 ac_executable_p="test -x"
6817 else
6818 ac_executable_p="test -f"
6820 rm -f conf$$.file
6822 # Extract the first word of "valgrind", so it can be a program name with args.
6823 set dummy valgrind; ac_word=$2
6824 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6825 $as_echo_n "checking for $ac_word... " >&6; }
6826 if test "${ac_cv_path_valgrind_path+set}" = set; then :
6827 $as_echo_n "(cached) " >&6
6828 else
6829 case "$valgrind_path" in
6830 [\\/]* | ?:[\\/]*)
6831 ac_cv_path_valgrind_path="$valgrind_path" # Let the user override the test with a path.
6834 ac_save_IFS="$IFS"; IFS=$PATH_SEPARATOR
6835 for ac_dir in $PATH; do
6836 IFS="$ac_save_IFS"
6837 test -z "$ac_dir" && ac_dir=.
6838 for ac_exec_ext in '' $ac_executable_extensions; do
6839 if $ac_executable_p "$ac_dir/$ac_word$ac_exec_ext"; then
6840 if $ac_dir/$ac_word --version | grep valgrind- >/dev/null 2>&1; then
6841 ac_cv_path_valgrind_path="$ac_dir/$ac_word$ac_exec_ext"
6842 break 2
6845 done
6846 done
6847 IFS="$ac_save_IFS"
6849 esac
6851 valgrind_path="$ac_cv_path_valgrind_path"
6852 if test -n "$valgrind_path"; then
6853 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $valgrind_path" >&5
6854 $as_echo "$valgrind_path" >&6; }
6855 else
6856 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6857 $as_echo "no" >&6; }
6860 if test "x$valgrind_path" = "x" \
6861 || (test $have_valgrind_h = no \
6862 && test $gcc_cv_header_memcheck_h = no \
6863 && test $gcc_cv_header_valgrind_memcheck_h = no); then
6864 as_fn_error "*** Can't find both valgrind and valgrind/memcheck.h, memcheck.h or valgrind.h" "$LINENO" 5
6866 valgrind_path_defines=-DVALGRIND_PATH='\"'$valgrind_path'\"'
6867 valgrind_command="$valgrind_path -q"
6869 $as_echo "#define ENABLE_VALGRIND_CHECKING 1" >>confdefs.h
6871 if test $gcc_cv_header_valgrind_memcheck_h = yes; then
6873 $as_echo "#define HAVE_VALGRIND_MEMCHECK_H 1" >>confdefs.h
6876 if test $gcc_cv_header_memcheck_h = yes; then
6878 $as_echo "#define HAVE_MEMCHECK_H 1" >>confdefs.h
6885 # Enable code coverage collection
6886 # Check whether --enable-coverage was given.
6887 if test "${enable_coverage+set}" = set; then :
6888 enableval=$enable_coverage; case "${enableval}" in
6889 yes|noopt)
6890 coverage_flags="-fprofile-arcs -ftest-coverage -frandom-seed=\$@ -O0"
6892 opt)
6893 coverage_flags="-fprofile-arcs -ftest-coverage -frandom-seed=\$@ -O2"
6896 # a.k.a. --disable-coverage
6897 coverage_flags=""
6900 as_fn_error "unknown coverage setting $enableval" "$LINENO" 5
6902 esac
6903 else
6904 coverage_flags=""
6909 # Check whether --enable-gather-detailed-mem-stats was given.
6910 if test "${enable_gather_detailed_mem_stats+set}" = set; then :
6911 enableval=$enable_gather_detailed_mem_stats;
6912 else
6913 enable_gather_detailed_mem_stats=no
6916 gather_stats=`if test $enable_gather_detailed_mem_stats != no; then echo 1; else echo 0; fi`
6918 cat >>confdefs.h <<_ACEOF
6919 #define GATHER_STATISTICS $gather_stats
6920 _ACEOF
6923 # -------------------------------
6924 # Miscenalleous configure options
6925 # -------------------------------
6927 # With stabs
6929 # Check whether --with-stabs was given.
6930 if test "${with_stabs+set}" = set; then :
6931 withval=$with_stabs; stabs="$with_stabs"
6932 else
6933 stabs=no
6937 # Determine whether or not multilibs are enabled.
6938 # Check whether --enable-multilib was given.
6939 if test "${enable_multilib+set}" = set; then :
6940 enableval=$enable_multilib;
6941 else
6942 enable_multilib=yes
6947 # Determine whether or not multiarch is enabled.
6948 # Check whether --enable-multiarch was given.
6949 if test "${enable_multiarch+set}" = set; then :
6950 enableval=$enable_multiarch; case "${enableval}" in
6951 yes|no|auto) enable_multiarch=$enableval;;
6952 *) as_fn_error "bad value ${enableval} given for --enable-multiarch option" "$LINENO" 5 ;;
6953 esac
6954 else
6955 enable_multiarch=auto
6958 if test x${enable_multiarch} = xauto; then
6959 if test x${with_native_system_header_dir} != x; then
6960 ma_msg_suffix=", disabled auto check (configured with --native-system-header-dir)"
6961 enable_multiarch=no
6963 if test x$host != x$target && test "x$with_sysroot" = x; then
6964 ma_msg_suffix=", disabled auto check (cross build configured without --with-sysroot)"
6965 enable_multiarch=no
6968 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for multiarch configuration" >&5
6969 $as_echo_n "checking for multiarch configuration... " >&6; }
6971 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_multiarch$ma_msg_suffix" >&5
6972 $as_echo "$enable_multiarch$ma_msg_suffix" >&6; }
6974 # needed for setting the multiarch name for soft-float/hard-float ABIs
6978 # Enable __cxa_atexit for C++.
6979 # Check whether --enable-__cxa_atexit was given.
6980 if test "${enable___cxa_atexit+set}" = set; then :
6981 enableval=$enable___cxa_atexit;
6985 # Enable C extension for decimal float if target supports it.
6987 # Check whether --enable-decimal-float was given.
6988 if test "${enable_decimal_float+set}" = set; then :
6989 enableval=$enable_decimal_float;
6990 case $enable_decimal_float in
6991 yes | no | bid | dpd) default_decimal_float=$enable_decimal_float ;;
6992 *) as_fn_error "'$enable_decimal_float' is an invalid value for --enable-decimal-float.
6993 Valid choices are 'yes', 'bid', 'dpd', and 'no'." "$LINENO" 5 ;;
6994 esac
6996 else
6998 case $target in
6999 powerpc*-*-linux* | i?86*-*-linux* | x86_64*-*-linux* | s390*-*-linux* | \
7000 i?86*-*-gnu* | \
7001 i?86*-*-mingw* | x86_64*-*-mingw* | \
7002 i?86*-*-cygwin* | x86_64*-*-cygwin*)
7003 enable_decimal_float=yes
7006 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: decimal float is not supported for this target, ignored" >&5
7007 $as_echo "$as_me: WARNING: decimal float is not supported for this target, ignored" >&2;}
7008 enable_decimal_float=no
7010 esac
7015 # x86's use BID format instead of DPD
7016 case x$enable_decimal_float in
7017 xyes)
7018 case $target in
7019 i?86*-*-* | x86_64*-*-*)
7020 enable_decimal_float=bid
7023 enable_decimal_float=dpd
7025 esac
7026 default_decimal_float=$enable_decimal_float
7028 xno)
7029 # ENABLE_DECIMAL_FLOAT is set to 0. But we have to have proper
7030 # dependency on libdecnumber.
7031 default_decimal_float=dpd
7033 esac
7038 dfp=`if test $enable_decimal_float != no; then echo 1; else echo 0; fi`
7040 cat >>confdefs.h <<_ACEOF
7041 #define ENABLE_DECIMAL_FLOAT $dfp
7042 _ACEOF
7045 # Use default_decimal_float for dependency.
7046 enable_decimal_float=$default_decimal_float
7048 bid=`if test $enable_decimal_float = bid; then echo 1; else echo 0; fi`
7050 cat >>confdefs.h <<_ACEOF
7051 #define ENABLE_DECIMAL_BID_FORMAT $bid
7052 _ACEOF
7055 # Enable C extension for fixed-point arithmetic.
7056 # Check whether --enable-fixed-point was given.
7057 if test "${enable_fixed_point+set}" = set; then :
7058 enableval=$enable_fixed_point;
7059 else
7061 case $target in
7062 arm*)
7063 enable_fixed_point=yes
7066 mips*-*-*)
7067 enable_fixed_point=yes
7070 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: fixed-point is not supported for this target, ignored" >&5
7071 $as_echo "$as_me: WARNING: fixed-point is not supported for this target, ignored" >&2;}
7072 enable_fixed_point=no
7074 esac
7080 fixedpoint=`if test $enable_fixed_point = yes; then echo 1; else echo 0; fi`
7082 cat >>confdefs.h <<_ACEOF
7083 #define ENABLE_FIXED_POINT $fixedpoint
7084 _ACEOF
7087 # Enable threads
7088 # Pass with no value to take the default
7089 # Pass with a value to specify a thread package
7090 # Check whether --enable-threads was given.
7091 if test "${enable_threads+set}" = set; then :
7092 enableval=$enable_threads;
7093 else
7094 enable_threads=''
7098 # Check whether --enable-tls was given.
7099 if test "${enable_tls+set}" = set; then :
7100 enableval=$enable_tls;
7101 case $enable_tls in
7102 yes | no) ;;
7103 *) as_fn_error "'$enable_tls' is an invalid value for --enable-tls.
7104 Valid choices are 'yes' and 'no'." "$LINENO" 5 ;;
7105 esac
7107 else
7108 enable_tls=''
7112 # Check whether --enable-objc-gc was given.
7113 if test "${enable_objc_gc+set}" = set; then :
7114 enableval=$enable_objc_gc; if test x$enable_objc_gc = xno; then
7115 objc_boehm_gc=''
7116 else
7117 objc_boehm_gc=1
7119 else
7120 objc_boehm_gc=''
7125 # Check whether --with-dwarf2 was given.
7126 if test "${with_dwarf2+set}" = set; then :
7127 withval=$with_dwarf2; dwarf2="$with_dwarf2"
7128 else
7129 dwarf2=no
7133 # Check whether --enable-shared was given.
7134 if test "${enable_shared+set}" = set; then :
7135 enableval=$enable_shared;
7136 case $enable_shared in
7137 yes | no) ;;
7139 enable_shared=no
7140 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:,"
7141 for pkg in $enableval; do
7142 if test "X$pkg" = "Xgcc" || test "X$pkg" = "Xlibgcc"; then
7143 enable_shared=yes
7145 done
7146 IFS="$ac_save_ifs"
7148 esac
7150 else
7151 enable_shared=yes
7157 # Check whether --with-native-system-header-dir was given.
7158 if test "${with_native_system_header_dir+set}" = set; then :
7159 withval=$with_native_system_header_dir;
7160 case ${with_native_system_header_dir} in
7161 yes|no) as_fn_error "bad value ${withval} given for --with-native-system-header-dir" "$LINENO" 5 ;;
7162 /* | [A-Za-z]:[\\/]*) ;;
7163 *) as_fn_error "--with-native-system-header-dir argument ${withval} must be an absolute directory" "$LINENO" 5 ;;
7164 esac
7165 configured_native_system_header_dir="${withval}"
7167 else
7168 configured_native_system_header_dir=
7173 # Check whether --with-build-sysroot was given.
7174 if test "${with_build_sysroot+set}" = set; then :
7175 withval=$with_build_sysroot; if test x"$withval" != x ; then
7176 SYSROOT_CFLAGS_FOR_TARGET="--sysroot=$withval"
7178 else
7179 SYSROOT_CFLAGS_FOR_TARGET=
7185 # Check whether --with-runtime-root-prefix was given.
7186 if test "${with_runtime_root_prefix+set}" = set; then :
7187 withval=$with_runtime_root_prefix;
7188 case ${with_runtime_root_prefix} in
7189 yes|no) as_fn_error "bad value ${withval} given for runtime root prefix" "$LINENO" 5 ;;
7190 /*) ;;
7191 *) as_fn_error "${withval} should be an absolute directory" "$LINENO" 5 ;;
7192 esac
7193 RUNTIME_ROOT_PREFIX_DEFINE="-DRUNTIME_ROOT_PREFIX=\\\"${withval}\\\""
7195 else
7196 RUNTIME_ROOT_PREFIX_DEFINE=""
7201 if test "x$prefix" = xNONE; then
7202 test_prefix=/usr/local
7203 else
7204 test_prefix=$prefix
7206 if test "x$exec_prefix" = xNONE; then
7207 test_exec_prefix=$test_prefix
7208 else
7209 test_exec_prefix=$exec_prefix
7213 # Check whether --with-sysroot was given.
7214 if test "${with_sysroot+set}" = set; then :
7215 withval=$with_sysroot;
7216 case ${with_sysroot} in
7217 yes) TARGET_SYSTEM_ROOT='${exec_prefix}/${target_noncanonical}/sys-root' ;;
7218 *) TARGET_SYSTEM_ROOT=$with_sysroot ;;
7219 esac
7221 TARGET_SYSTEM_ROOT_DEFINE='-DTARGET_SYSTEM_ROOT=\"$(TARGET_SYSTEM_ROOT)\"'
7222 CROSS_SYSTEM_HEADER_DIR='$(TARGET_SYSTEM_ROOT)$${sysroot_headers_suffix}$(NATIVE_SYSTEM_HEADER_DIR)'
7224 case ${TARGET_SYSTEM_ROOT} in
7225 "${test_prefix}"|"${test_prefix}/"*|\
7226 "${test_exec_prefix}"|"${test_exec_prefix}/"*|\
7227 '${prefix}'|'${prefix}/'*|\
7228 '${exec_prefix}'|'${exec_prefix}/'*)
7229 t="$TARGET_SYSTEM_ROOT_DEFINE -DTARGET_SYSTEM_ROOT_RELOCATABLE"
7230 TARGET_SYSTEM_ROOT_DEFINE="$t"
7232 esac
7234 else
7236 TARGET_SYSTEM_ROOT=
7237 TARGET_SYSTEM_ROOT_DEFINE=
7238 CROSS_SYSTEM_HEADER_DIR='$(gcc_tooldir)/sys-include'
7247 # Check whether --with-specs was given.
7248 if test "${with_specs+set}" = set; then :
7249 withval=$with_specs; CONFIGURE_SPECS=$withval
7250 else
7251 CONFIGURE_SPECS=
7259 # Check whether --with-pkgversion was given.
7260 if test "${with_pkgversion+set}" = set; then :
7261 withval=$with_pkgversion; case "$withval" in
7262 yes) as_fn_error "package version not specified" "$LINENO" 5 ;;
7263 no) PKGVERSION= ;;
7264 *) PKGVERSION="($withval) " ;;
7265 esac
7266 else
7267 PKGVERSION="(GCC) "
7275 # Check whether --with-bugurl was given.
7276 if test "${with_bugurl+set}" = set; then :
7277 withval=$with_bugurl; case "$withval" in
7278 yes) as_fn_error "bug URL not specified" "$LINENO" 5 ;;
7279 no) BUGURL=
7281 *) BUGURL="$withval"
7283 esac
7284 else
7285 BUGURL="http://gcc.gnu.org/bugs.html"
7289 case ${BUGURL} in
7291 REPORT_BUGS_TO=
7292 REPORT_BUGS_TEXI=
7295 REPORT_BUGS_TO="<$BUGURL>"
7296 REPORT_BUGS_TEXI=@uref{`echo "$BUGURL" | sed 's/@/@@/g'`}
7298 esac;
7303 # Sanity check enable_languages in case someone does not run the toplevel
7304 # configure # script.
7305 # Check whether --enable-languages was given.
7306 if test "${enable_languages+set}" = set; then :
7307 enableval=$enable_languages; case ,${enable_languages}, in
7308 ,,|,yes,)
7309 # go safe -- we cannot be much sure without the toplevel
7310 # configure's
7311 # analysis of which target libs are present and usable
7312 enable_languages=c
7314 *,all,*)
7315 as_fn_error "only the toplevel supports --enable-languages=all" "$LINENO" 5
7317 *,c,*)
7320 enable_languages=c,${enable_languages}
7322 esac
7323 else
7324 enable_languages=c
7329 # Check whether --with-multilib-list was given.
7330 if test "${with_multilib_list+set}" = set; then :
7331 withval=$with_multilib_list; :
7332 else
7333 with_multilib_list=default
7337 # -------------------------
7338 # Checks for other programs
7339 # -------------------------
7341 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
7342 $as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
7343 set x ${MAKE-make}
7344 ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
7345 if { as_var=ac_cv_prog_make_${ac_make}_set; eval "test \"\${$as_var+set}\" = set"; }; then :
7346 $as_echo_n "(cached) " >&6
7347 else
7348 cat >conftest.make <<\_ACEOF
7349 SHELL = /bin/sh
7350 all:
7351 @echo '@@@%%%=$(MAKE)=@@@%%%'
7352 _ACEOF
7353 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
7354 case `${MAKE-make} -f conftest.make 2>/dev/null` in
7355 *@@@%%%=?*=@@@%%%*)
7356 eval ac_cv_prog_make_${ac_make}_set=yes;;
7358 eval ac_cv_prog_make_${ac_make}_set=no;;
7359 esac
7360 rm -f conftest.make
7362 if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
7363 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
7364 $as_echo "yes" >&6; }
7365 SET_MAKE=
7366 else
7367 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7368 $as_echo "no" >&6; }
7369 SET_MAKE="MAKE=${MAKE-make}"
7373 # Find some useful tools
7374 for ac_prog in gawk mawk nawk awk
7376 # Extract the first word of "$ac_prog", so it can be a program name with args.
7377 set dummy $ac_prog; ac_word=$2
7378 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7379 $as_echo_n "checking for $ac_word... " >&6; }
7380 if test "${ac_cv_prog_AWK+set}" = set; then :
7381 $as_echo_n "(cached) " >&6
7382 else
7383 if test -n "$AWK"; then
7384 ac_cv_prog_AWK="$AWK" # Let the user override the test.
7385 else
7386 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7387 for as_dir in $PATH
7389 IFS=$as_save_IFS
7390 test -z "$as_dir" && as_dir=.
7391 for ac_exec_ext in '' $ac_executable_extensions; do
7392 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7393 ac_cv_prog_AWK="$ac_prog"
7394 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7395 break 2
7397 done
7398 done
7399 IFS=$as_save_IFS
7403 AWK=$ac_cv_prog_AWK
7404 if test -n "$AWK"; then
7405 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
7406 $as_echo "$AWK" >&6; }
7407 else
7408 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7409 $as_echo "no" >&6; }
7413 test -n "$AWK" && break
7414 done
7416 # We need awk to create options.c and options.h.
7417 # Bail out if it's missing.
7418 case ${AWK} in
7419 "") as_fn_error "can't build without awk, bailing out" "$LINENO" 5 ;;
7420 esac
7422 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5
7423 $as_echo_n "checking whether ln -s works... " >&6; }
7424 if test "${gcc_cv_prog_LN_S+set}" = set; then :
7425 $as_echo_n "(cached) " >&6
7426 else
7427 rm -f conftestdata_t
7428 echo >conftestdata_f
7429 if ln -s conftestdata_f conftestdata_t 2>/dev/null
7430 then
7431 gcc_cv_prog_LN_S="ln -s"
7432 else
7433 if ln conftestdata_f conftestdata_t 2>/dev/null
7434 then
7435 gcc_cv_prog_LN_S=ln
7436 else
7437 if cp -p conftestdata_f conftestdata_t 2>/dev/null
7438 then
7439 gcc_cv_prog_LN_S="cp -p"
7440 else
7441 gcc_cv_prog_LN_S=cp
7445 rm -f conftestdata_f conftestdata_t
7448 LN_S="$gcc_cv_prog_LN_S"
7449 if test "$gcc_cv_prog_LN_S" = "ln -s"; then
7450 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
7451 $as_echo "yes" >&6; }
7452 else
7453 if test "$gcc_cv_prog_LN_S" = "ln"; then
7454 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using ln" >&5
7455 $as_echo "no, using ln" >&6; }
7456 else
7457 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, and neither does ln, so using $gcc_cv_prog_LN_S" >&5
7458 $as_echo "no, and neither does ln, so using $gcc_cv_prog_LN_S" >&6; }
7462 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln works" >&5
7463 $as_echo_n "checking whether ln works... " >&6; }
7464 if test "${acx_cv_prog_LN+set}" = set; then :
7465 $as_echo_n "(cached) " >&6
7466 else
7467 rm -f conftestdata_t
7468 echo >conftestdata_f
7469 if ln conftestdata_f conftestdata_t 2>/dev/null
7470 then
7471 acx_cv_prog_LN=ln
7472 else
7473 acx_cv_prog_LN=no
7475 rm -f conftestdata_f conftestdata_t
7478 if test $acx_cv_prog_LN = no; then
7479 LN="$LN_S"
7480 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN" >&5
7481 $as_echo "no, using $LN" >&6; }
7482 else
7483 LN="$acx_cv_prog_LN"
7484 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
7485 $as_echo "yes" >&6; }
7488 if test -n "$ac_tool_prefix"; then
7489 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
7490 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
7491 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7492 $as_echo_n "checking for $ac_word... " >&6; }
7493 if test "${ac_cv_prog_RANLIB+set}" = set; then :
7494 $as_echo_n "(cached) " >&6
7495 else
7496 if test -n "$RANLIB"; then
7497 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
7498 else
7499 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7500 for as_dir in $PATH
7502 IFS=$as_save_IFS
7503 test -z "$as_dir" && as_dir=.
7504 for ac_exec_ext in '' $ac_executable_extensions; do
7505 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7506 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
7507 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7508 break 2
7510 done
7511 done
7512 IFS=$as_save_IFS
7516 RANLIB=$ac_cv_prog_RANLIB
7517 if test -n "$RANLIB"; then
7518 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
7519 $as_echo "$RANLIB" >&6; }
7520 else
7521 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7522 $as_echo "no" >&6; }
7527 if test -z "$ac_cv_prog_RANLIB"; then
7528 ac_ct_RANLIB=$RANLIB
7529 # Extract the first word of "ranlib", so it can be a program name with args.
7530 set dummy ranlib; ac_word=$2
7531 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7532 $as_echo_n "checking for $ac_word... " >&6; }
7533 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then :
7534 $as_echo_n "(cached) " >&6
7535 else
7536 if test -n "$ac_ct_RANLIB"; then
7537 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
7538 else
7539 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7540 for as_dir in $PATH
7542 IFS=$as_save_IFS
7543 test -z "$as_dir" && as_dir=.
7544 for ac_exec_ext in '' $ac_executable_extensions; do
7545 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7546 ac_cv_prog_ac_ct_RANLIB="ranlib"
7547 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7548 break 2
7550 done
7551 done
7552 IFS=$as_save_IFS
7556 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
7557 if test -n "$ac_ct_RANLIB"; then
7558 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
7559 $as_echo "$ac_ct_RANLIB" >&6; }
7560 else
7561 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7562 $as_echo "no" >&6; }
7565 if test "x$ac_ct_RANLIB" = x; then
7566 RANLIB=":"
7567 else
7568 case $cross_compiling:$ac_tool_warned in
7569 yes:)
7570 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7571 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7572 ac_tool_warned=yes ;;
7573 esac
7574 RANLIB=$ac_ct_RANLIB
7576 else
7577 RANLIB="$ac_cv_prog_RANLIB"
7580 ranlib_flags=""
7583 # Find a good install program. We prefer a C program (faster),
7584 # so one script is as good as another. But avoid the broken or
7585 # incompatible versions:
7586 # SysV /etc/install, /usr/sbin/install
7587 # SunOS /usr/etc/install
7588 # IRIX /sbin/install
7589 # AIX /bin/install
7590 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
7591 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
7592 # ./install, which can be erroneously created by make from ./install.sh.
7593 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD compatible install" >&5
7594 $as_echo_n "checking for a BSD compatible install... " >&6; }
7595 if test -z "$INSTALL"; then
7596 if test "${ac_cv_path_install+set}" = set; then :
7597 $as_echo_n "(cached) " >&6
7598 else
7599 IFS="${IFS= }"; ac_save_IFS="$IFS"; IFS="${IFS}:"
7600 for ac_dir in $PATH; do
7601 # Account for people who put trailing slashes in PATH elements.
7602 case "$ac_dir/" in
7603 /|./|.//|/etc/*|/usr/sbin/*|/usr/etc/*|/sbin/*|/usr/afsws/bin/*|/usr/ucb/*) ;;
7605 # OSF1 and SCO ODT 3.0 have their own names for install.
7606 for ac_prog in ginstall scoinst install; do
7607 if test -f $ac_dir/$ac_prog; then
7608 if test $ac_prog = install &&
7609 grep dspmsg $ac_dir/$ac_prog >/dev/null 2>&1; then
7610 # AIX install. It has an incompatible calling convention.
7611 # OSF/1 installbsd also uses dspmsg, but is usable.
7613 else
7614 ac_cv_path_install="$ac_dir/$ac_prog -c"
7615 break 2
7618 done
7620 esac
7621 done
7622 IFS="$ac_save_IFS"
7625 if test "${ac_cv_path_install+set}" = set; then
7626 INSTALL="$ac_cv_path_install"
7627 else
7628 # As a last resort, use the slow shell script. We don't cache a
7629 # path for INSTALL within a source directory, because that will
7630 # break other packages using the cache if that directory is
7631 # removed, or if the path is relative.
7632 INSTALL="$ac_install_sh"
7635 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
7636 $as_echo "$INSTALL" >&6; }
7638 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
7639 # It thinks the first close brace ends the variable substitution.
7640 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
7642 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
7645 # See if cmp has --ignore-initial.
7646 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for cmp's capabilities" >&5
7647 $as_echo_n "checking for cmp's capabilities... " >&6; }
7648 if test "${gcc_cv_prog_cmp_skip+set}" = set; then :
7649 $as_echo_n "(cached) " >&6
7650 else
7651 echo abfoo >t1
7652 echo cdfoo >t2
7653 gcc_cv_prog_cmp_skip=slowcompare
7654 if cmp --ignore-initial=2 t1 t2 > /dev/null 2>&1; then
7655 if cmp --ignore-initial=1 t1 t2 > /dev/null 2>&1; then
7657 else
7658 gcc_cv_prog_cmp_skip=gnucompare
7661 if test $gcc_cv_prog_cmp_skip = slowcompare ; then
7662 if cmp t1 t2 2 2 > /dev/null 2>&1; then
7663 if cmp t1 t2 1 1 > /dev/null 2>&1; then
7665 else
7666 gcc_cv_prog_cmp_skip=fastcompare
7670 rm t1 t2
7673 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_prog_cmp_skip" >&5
7674 $as_echo "$gcc_cv_prog_cmp_skip" >&6; }
7675 make_compare_target=$gcc_cv_prog_cmp_skip
7679 # See if we have the mktemp command.
7680 # Extract the first word of "mktemp", so it can be a program name with args.
7681 set dummy mktemp; ac_word=$2
7682 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7683 $as_echo_n "checking for $ac_word... " >&6; }
7684 if test "${ac_cv_prog_have_mktemp_command+set}" = set; then :
7685 $as_echo_n "(cached) " >&6
7686 else
7687 if test -n "$have_mktemp_command"; then
7688 ac_cv_prog_have_mktemp_command="$have_mktemp_command" # Let the user override the test.
7689 else
7690 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7691 for as_dir in $PATH
7693 IFS=$as_save_IFS
7694 test -z "$as_dir" && as_dir=.
7695 for ac_exec_ext in '' $ac_executable_extensions; do
7696 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7697 ac_cv_prog_have_mktemp_command="yes"
7698 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7699 break 2
7701 done
7702 done
7703 IFS=$as_save_IFS
7705 test -z "$ac_cv_prog_have_mktemp_command" && ac_cv_prog_have_mktemp_command="no"
7708 have_mktemp_command=$ac_cv_prog_have_mktemp_command
7709 if test -n "$have_mktemp_command"; then
7710 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_mktemp_command" >&5
7711 $as_echo "$have_mktemp_command" >&6; }
7712 else
7713 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7714 $as_echo "no" >&6; }
7719 # See if makeinfo has been installed and is modern enough
7720 # that we can use it.
7722 # Extract the first word of "makeinfo", so it can be a program name with args.
7723 set dummy makeinfo; ac_word=$2
7724 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7725 $as_echo_n "checking for $ac_word... " >&6; }
7726 if test "${ac_cv_prog_MAKEINFO+set}" = set; then :
7727 $as_echo_n "(cached) " >&6
7728 else
7729 if test -n "$MAKEINFO"; then
7730 ac_cv_prog_MAKEINFO="$MAKEINFO" # Let the user override the test.
7731 else
7732 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7733 for as_dir in $PATH
7735 IFS=$as_save_IFS
7736 test -z "$as_dir" && as_dir=.
7737 for ac_exec_ext in '' $ac_executable_extensions; do
7738 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7739 ac_cv_prog_MAKEINFO="makeinfo"
7740 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7741 break 2
7743 done
7744 done
7745 IFS=$as_save_IFS
7749 MAKEINFO=$ac_cv_prog_MAKEINFO
7750 if test -n "$MAKEINFO"; then
7751 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAKEINFO" >&5
7752 $as_echo "$MAKEINFO" >&6; }
7753 else
7754 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7755 $as_echo "no" >&6; }
7759 if test -n "$MAKEINFO"; then
7760 # Found it, now check the version.
7761 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for modern makeinfo" >&5
7762 $as_echo_n "checking for modern makeinfo... " >&6; }
7763 if test "${gcc_cv_prog_makeinfo_modern+set}" = set; then :
7764 $as_echo_n "(cached) " >&6
7765 else
7766 ac_prog_version=`eval $MAKEINFO --version 2>&1 |
7767 sed -n 's/^.*GNU texinfo.* \([0-9][0-9.]*\).*$/\1/p'`
7769 case $ac_prog_version in
7770 '') gcc_cv_prog_makeinfo_modern=no;;
7771 4.[7-9]*|4.[1-9][0-9]*|[5-9]*|[1-9][0-9]*) gcc_cv_prog_makeinfo_modern=yes;;
7772 *) gcc_cv_prog_makeinfo_modern=no;;
7773 esac
7776 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_prog_makeinfo_modern" >&5
7777 $as_echo "$gcc_cv_prog_makeinfo_modern" >&6; }
7778 else
7779 gcc_cv_prog_makeinfo_modern=no
7781 if test $gcc_cv_prog_makeinfo_modern = no; then
7782 MAKEINFO="${CONFIG_SHELL-/bin/sh} $ac_aux_dir/missing makeinfo"
7785 if test $gcc_cv_prog_makeinfo_modern = no; then
7786 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING:
7787 *** Makeinfo is missing or too old.
7788 *** Info documentation will not be built." >&5
7789 $as_echo "$as_me: WARNING:
7790 *** Makeinfo is missing or too old.
7791 *** Info documentation will not be built." >&2;}
7792 BUILD_INFO=
7793 else
7794 BUILD_INFO=info
7798 # Is pod2man recent enough to regenerate manpages?
7799 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for recent Pod::Man" >&5
7800 $as_echo_n "checking for recent Pod::Man... " >&6; }
7801 if (perl -e 'use 1.10 Pod::Man') >/dev/null 2>&1; then
7802 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
7803 $as_echo "yes" >&6; }
7804 GENERATED_MANPAGES=generated-manpages
7805 else
7806 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7807 $as_echo "no" >&6; }
7808 GENERATED_MANPAGES=
7812 MISSING="${CONFIG_SHELL-/bin/sh} $ac_aux_dir/missing"
7814 # How about lex?
7815 for ac_prog in flex
7817 # Extract the first word of "$ac_prog", so it can be a program name with args.
7818 set dummy $ac_prog; ac_word=$2
7819 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7820 $as_echo_n "checking for $ac_word... " >&6; }
7821 if test "${ac_cv_prog_FLEX+set}" = set; then :
7822 $as_echo_n "(cached) " >&6
7823 else
7824 if test -n "$FLEX"; then
7825 ac_cv_prog_FLEX="$FLEX" # Let the user override the test.
7826 else
7827 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7828 for as_dir in $PATH
7830 IFS=$as_save_IFS
7831 test -z "$as_dir" && as_dir=.
7832 for ac_exec_ext in '' $ac_executable_extensions; do
7833 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7834 ac_cv_prog_FLEX="$ac_prog"
7835 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7836 break 2
7838 done
7839 done
7840 IFS=$as_save_IFS
7844 FLEX=$ac_cv_prog_FLEX
7845 if test -n "$FLEX"; then
7846 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $FLEX" >&5
7847 $as_echo "$FLEX" >&6; }
7848 else
7849 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7850 $as_echo "no" >&6; }
7854 test -n "$FLEX" && break
7855 done
7856 test -n "$FLEX" || FLEX="$MISSING flex"
7859 # Bison?
7860 for ac_prog in bison
7862 # Extract the first word of "$ac_prog", so it can be a program name with args.
7863 set dummy $ac_prog; ac_word=$2
7864 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7865 $as_echo_n "checking for $ac_word... " >&6; }
7866 if test "${ac_cv_prog_BISON+set}" = set; then :
7867 $as_echo_n "(cached) " >&6
7868 else
7869 if test -n "$BISON"; then
7870 ac_cv_prog_BISON="$BISON" # Let the user override the test.
7871 else
7872 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7873 for as_dir in $PATH
7875 IFS=$as_save_IFS
7876 test -z "$as_dir" && as_dir=.
7877 for ac_exec_ext in '' $ac_executable_extensions; do
7878 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7879 ac_cv_prog_BISON="$ac_prog"
7880 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7881 break 2
7883 done
7884 done
7885 IFS=$as_save_IFS
7889 BISON=$ac_cv_prog_BISON
7890 if test -n "$BISON"; then
7891 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BISON" >&5
7892 $as_echo "$BISON" >&6; }
7893 else
7894 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7895 $as_echo "no" >&6; }
7899 test -n "$BISON" && break
7900 done
7901 test -n "$BISON" || BISON="$MISSING bison"
7904 # Binutils are not build modules, unlike bison/flex/makeinfo. So we
7905 # check for build == host before using them.
7907 # NM
7908 if test x${build} = x${host} && test -f $srcdir/../binutils/nm.c \
7909 && test -d ../binutils ; then
7910 NM='${objdir}/../binutils/nm-new'
7911 else
7912 # Extract the first word of "nm", so it can be a program name with args.
7913 set dummy nm; ac_word=$2
7914 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7915 $as_echo_n "checking for $ac_word... " >&6; }
7916 if test "${ac_cv_prog_NM+set}" = set; then :
7917 $as_echo_n "(cached) " >&6
7918 else
7919 if test -n "$NM"; then
7920 ac_cv_prog_NM="$NM" # Let the user override the test.
7921 else
7922 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7923 for as_dir in $PATH
7925 IFS=$as_save_IFS
7926 test -z "$as_dir" && as_dir=.
7927 for ac_exec_ext in '' $ac_executable_extensions; do
7928 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7929 ac_cv_prog_NM="nm"
7930 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7931 break 2
7933 done
7934 done
7935 IFS=$as_save_IFS
7937 test -z "$ac_cv_prog_NM" && ac_cv_prog_NM="${CONFIG_SHELL-/bin/sh} ${srcdir}/../missing nm"
7940 NM=$ac_cv_prog_NM
7941 if test -n "$NM"; then
7942 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NM" >&5
7943 $as_echo "$NM" >&6; }
7944 else
7945 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7946 $as_echo "no" >&6; }
7952 # AR
7953 if test x${build} = x${host} && test -f $srcdir/../binutils/ar.c \
7954 && test -d ../binutils ; then
7955 AR='${objdir}/../binutils/ar'
7956 else
7957 # Extract the first word of "ar", so it can be a program name with args.
7958 set dummy ar; ac_word=$2
7959 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7960 $as_echo_n "checking for $ac_word... " >&6; }
7961 if test "${ac_cv_prog_AR+set}" = set; then :
7962 $as_echo_n "(cached) " >&6
7963 else
7964 if test -n "$AR"; then
7965 ac_cv_prog_AR="$AR" # Let the user override the test.
7966 else
7967 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7968 for as_dir in $PATH
7970 IFS=$as_save_IFS
7971 test -z "$as_dir" && as_dir=.
7972 for ac_exec_ext in '' $ac_executable_extensions; do
7973 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7974 ac_cv_prog_AR="ar"
7975 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7976 break 2
7978 done
7979 done
7980 IFS=$as_save_IFS
7982 test -z "$ac_cv_prog_AR" && ac_cv_prog_AR="${CONFIG_SHELL-/bin/sh} ${srcdir}/../missing ar"
7985 AR=$ac_cv_prog_AR
7986 if test -n "$AR"; then
7987 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
7988 $as_echo "$AR" >&6; }
7989 else
7990 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7991 $as_echo "no" >&6; }
7998 # --------------------
7999 # Checks for C headers
8000 # --------------------
8002 # Need to reject headers which give warnings, so that the -Werror bootstrap
8003 # works later. *sigh* This needs to come before all header checks.
8005 ac_c_preproc_warn_flag=yes
8007 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
8008 $as_echo_n "checking for ANSI C header files... " >&6; }
8009 if test "${ac_cv_header_stdc+set}" = set; then :
8010 $as_echo_n "(cached) " >&6
8011 else
8012 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8013 /* end confdefs.h. */
8014 #include <stdlib.h>
8015 #include <stdarg.h>
8016 #include <string.h>
8017 #include <float.h>
8020 main ()
8024 return 0;
8026 _ACEOF
8027 if ac_fn_c_try_compile "$LINENO"; then :
8028 ac_cv_header_stdc=yes
8029 else
8030 ac_cv_header_stdc=no
8032 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8034 if test $ac_cv_header_stdc = yes; then
8035 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
8036 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8037 /* end confdefs.h. */
8038 #include <string.h>
8040 _ACEOF
8041 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
8042 $EGREP "memchr" >/dev/null 2>&1; then :
8044 else
8045 ac_cv_header_stdc=no
8047 rm -f conftest*
8051 if test $ac_cv_header_stdc = yes; then
8052 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
8053 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8054 /* end confdefs.h. */
8055 #include <stdlib.h>
8057 _ACEOF
8058 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
8059 $EGREP "free" >/dev/null 2>&1; then :
8061 else
8062 ac_cv_header_stdc=no
8064 rm -f conftest*
8068 if test $ac_cv_header_stdc = yes; then
8069 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
8070 if test "$cross_compiling" = yes; then :
8072 else
8073 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8074 /* end confdefs.h. */
8075 #include <ctype.h>
8076 #include <stdlib.h>
8077 #if ((' ' & 0x0FF) == 0x020)
8078 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
8079 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
8080 #else
8081 # define ISLOWER(c) \
8082 (('a' <= (c) && (c) <= 'i') \
8083 || ('j' <= (c) && (c) <= 'r') \
8084 || ('s' <= (c) && (c) <= 'z'))
8085 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
8086 #endif
8088 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
8090 main ()
8092 int i;
8093 for (i = 0; i < 256; i++)
8094 if (XOR (islower (i), ISLOWER (i))
8095 || toupper (i) != TOUPPER (i))
8096 return 2;
8097 return 0;
8099 _ACEOF
8100 if ac_fn_c_try_run "$LINENO"; then :
8102 else
8103 ac_cv_header_stdc=no
8105 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
8106 conftest.$ac_objext conftest.beam conftest.$ac_ext
8111 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
8112 $as_echo "$ac_cv_header_stdc" >&6; }
8113 if test $ac_cv_header_stdc = yes; then
8115 $as_echo "#define STDC_HEADERS 1" >>confdefs.h
8119 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether time.h and sys/time.h may both be included" >&5
8120 $as_echo_n "checking whether time.h and sys/time.h may both be included... " >&6; }
8121 if test "${ac_cv_header_time+set}" = set; then :
8122 $as_echo_n "(cached) " >&6
8123 else
8124 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8125 /* end confdefs.h. */
8126 #include <sys/types.h>
8127 #include <sys/time.h>
8128 #include <time.h>
8131 main ()
8133 if ((struct tm *) 0)
8134 return 0;
8136 return 0;
8138 _ACEOF
8139 if ac_fn_c_try_compile "$LINENO"; then :
8140 ac_cv_header_time=yes
8141 else
8142 ac_cv_header_time=no
8144 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8146 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_time" >&5
8147 $as_echo "$ac_cv_header_time" >&6; }
8148 if test $ac_cv_header_time = yes; then
8150 $as_echo "#define TIME_WITH_SYS_TIME 1" >>confdefs.h
8154 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether string.h and strings.h may both be included" >&5
8155 $as_echo_n "checking whether string.h and strings.h may both be included... " >&6; }
8156 if test "${gcc_cv_header_string+set}" = set; then :
8157 $as_echo_n "(cached) " >&6
8158 else
8159 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8160 /* end confdefs.h. */
8161 #include <string.h>
8162 #include <strings.h>
8164 main ()
8168 return 0;
8170 _ACEOF
8171 if ac_fn_c_try_compile "$LINENO"; then :
8172 gcc_cv_header_string=yes
8173 else
8174 gcc_cv_header_string=no
8176 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8178 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_header_string" >&5
8179 $as_echo "$gcc_cv_header_string" >&6; }
8180 if test $gcc_cv_header_string = yes; then
8182 $as_echo "#define STRING_WITH_STRINGS 1" >>confdefs.h
8186 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sys/wait.h that is POSIX.1 compatible" >&5
8187 $as_echo_n "checking for sys/wait.h that is POSIX.1 compatible... " >&6; }
8188 if test "${ac_cv_header_sys_wait_h+set}" = set; then :
8189 $as_echo_n "(cached) " >&6
8190 else
8191 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8192 /* end confdefs.h. */
8193 #include <sys/types.h>
8194 #include <sys/wait.h>
8195 #ifndef WEXITSTATUS
8196 # define WEXITSTATUS(stat_val) ((unsigned int) (stat_val) >> 8)
8197 #endif
8198 #ifndef WIFEXITED
8199 # define WIFEXITED(stat_val) (((stat_val) & 255) == 0)
8200 #endif
8203 main ()
8205 int s;
8206 wait (&s);
8207 s = WIFEXITED (s) ? WEXITSTATUS (s) : 1;
8209 return 0;
8211 _ACEOF
8212 if ac_fn_c_try_compile "$LINENO"; then :
8213 ac_cv_header_sys_wait_h=yes
8214 else
8215 ac_cv_header_sys_wait_h=no
8217 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8219 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_sys_wait_h" >&5
8220 $as_echo "$ac_cv_header_sys_wait_h" >&6; }
8221 if test $ac_cv_header_sys_wait_h = yes; then
8223 $as_echo "#define HAVE_SYS_WAIT_H 1" >>confdefs.h
8227 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether termios.h defines TIOCGWINSZ" >&5
8228 $as_echo_n "checking whether termios.h defines TIOCGWINSZ... " >&6; }
8229 if test "${ac_cv_sys_tiocgwinsz_in_termios_h+set}" = set; then :
8230 $as_echo_n "(cached) " >&6
8231 else
8232 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8233 /* end confdefs.h. */
8234 #include <sys/types.h>
8235 #include <termios.h>
8236 #ifdef TIOCGWINSZ
8238 #endif
8240 _ACEOF
8241 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
8242 $EGREP "yes" >/dev/null 2>&1; then :
8243 ac_cv_sys_tiocgwinsz_in_termios_h=yes
8244 else
8245 ac_cv_sys_tiocgwinsz_in_termios_h=no
8247 rm -f conftest*
8250 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_tiocgwinsz_in_termios_h" >&5
8251 $as_echo "$ac_cv_sys_tiocgwinsz_in_termios_h" >&6; }
8253 if test $ac_cv_sys_tiocgwinsz_in_termios_h != yes; then
8254 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether sys/ioctl.h defines TIOCGWINSZ" >&5
8255 $as_echo_n "checking whether sys/ioctl.h defines TIOCGWINSZ... " >&6; }
8256 if test "${ac_cv_sys_tiocgwinsz_in_sys_ioctl_h+set}" = set; then :
8257 $as_echo_n "(cached) " >&6
8258 else
8259 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8260 /* end confdefs.h. */
8261 #include <sys/types.h>
8262 #include <sys/ioctl.h>
8263 #ifdef TIOCGWINSZ
8265 #endif
8267 _ACEOF
8268 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
8269 $EGREP "yes" >/dev/null 2>&1; then :
8270 ac_cv_sys_tiocgwinsz_in_sys_ioctl_h=yes
8271 else
8272 ac_cv_sys_tiocgwinsz_in_sys_ioctl_h=no
8274 rm -f conftest*
8277 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_tiocgwinsz_in_sys_ioctl_h" >&5
8278 $as_echo "$ac_cv_sys_tiocgwinsz_in_sys_ioctl_h" >&6; }
8280 if test $ac_cv_sys_tiocgwinsz_in_sys_ioctl_h = yes; then
8282 $as_echo "#define GWINSZ_IN_SYS_IOCTL 1" >>confdefs.h
8287 for ac_header in limits.h stddef.h string.h strings.h stdlib.h time.h iconv.h \
8288 fcntl.h unistd.h sys/file.h sys/time.h sys/mman.h \
8289 sys/resource.h sys/param.h sys/times.h sys/stat.h \
8290 direct.h malloc.h langinfo.h ldfcn.h locale.h wchar.h
8291 do :
8292 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
8293 ac_fn_c_check_header_preproc "$LINENO" "$ac_header" "$as_ac_Header"
8294 eval as_val=\$$as_ac_Header
8295 if test "x$as_val" = x""yes; then :
8296 cat >>confdefs.h <<_ACEOF
8297 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
8298 _ACEOF
8301 done
8304 # Check for thread headers.
8305 ac_fn_c_check_header_preproc "$LINENO" "thread.h" "ac_cv_header_thread_h"
8306 if test "x$ac_cv_header_thread_h" = x""yes; then :
8307 have_thread_h=yes
8308 else
8309 have_thread_h=
8312 ac_fn_c_check_header_preproc "$LINENO" "pthread.h" "ac_cv_header_pthread_h"
8313 if test "x$ac_cv_header_pthread_h" = x""yes; then :
8314 have_pthread_h=yes
8315 else
8316 have_pthread_h=
8320 # These tests can't be done till we know if we have limits.h.
8321 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for CHAR_BIT" >&5
8322 $as_echo_n "checking for CHAR_BIT... " >&6; }
8323 if test "${gcc_cv_decl_char_bit+set}" = set; then :
8324 $as_echo_n "(cached) " >&6
8325 else
8326 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8327 /* end confdefs.h. */
8328 #ifdef HAVE_LIMITS_H
8329 #include <limits.h>
8330 #endif
8331 #ifdef CHAR_BIT
8332 found
8333 #endif
8334 _ACEOF
8335 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
8336 $EGREP "found" >/dev/null 2>&1; then :
8337 gcc_cv_decl_char_bit=yes
8338 else
8339 gcc_cv_decl_char_bit=no
8341 rm -f conftest*
8345 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_decl_char_bit" >&5
8346 $as_echo "$gcc_cv_decl_char_bit" >&6; }
8347 if test $gcc_cv_decl_char_bit = no; then
8348 { $as_echo "$as_me:${as_lineno-$LINENO}: checking number of bits in a byte" >&5
8349 $as_echo_n "checking number of bits in a byte... " >&6; }
8350 if test "${gcc_cv_c_nbby+set}" = set; then :
8351 $as_echo_n "(cached) " >&6
8352 else
8354 gcc_cv_c_nbby=
8355 while test $i -lt 65; do
8356 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8357 /* end confdefs.h. */
8360 main ()
8362 switch(0) {
8363 case (unsigned char)((unsigned long)1 << $i) == ((unsigned long)1 << $i):
8364 case (unsigned char)((unsigned long)1<<($i-1)) == ((unsigned long)1<<($i-1)):
8367 return 0;
8369 _ACEOF
8370 if ac_fn_c_try_compile "$LINENO"; then :
8371 gcc_cv_c_nbby=$i; break
8373 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8374 i=`expr $i + 1`
8375 done
8376 test -z "$gcc_cv_c_nbby" && gcc_cv_c_nbby=failed
8379 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_c_nbby" >&5
8380 $as_echo "$gcc_cv_c_nbby" >&6; }
8381 if test $gcc_cv_c_nbby = failed; then
8382 as_fn_error "cannot determine number of bits in a byte" "$LINENO" 5
8383 else
8385 cat >>confdefs.h <<_ACEOF
8386 #define CHAR_BIT $gcc_cv_c_nbby
8387 _ACEOF
8391 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether byte ordering is bigendian" >&5
8392 $as_echo_n "checking whether byte ordering is bigendian... " >&6; }
8393 if test "${ac_cv_c_bigendian+set}" = set; then :
8394 $as_echo_n "(cached) " >&6
8395 else
8396 ac_cv_c_bigendian=unknown
8397 # See if we're dealing with a universal compiler.
8398 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8399 /* end confdefs.h. */
8400 #ifndef __APPLE_CC__
8401 not a universal capable compiler
8402 #endif
8403 typedef int dummy;
8405 _ACEOF
8406 if ac_fn_c_try_compile "$LINENO"; then :
8408 # Check for potential -arch flags. It is not universal unless
8409 # there are at least two -arch flags with different values.
8410 ac_arch=
8411 ac_prev=
8412 for ac_word in $CC $CFLAGS $CPPFLAGS $LDFLAGS; do
8413 if test -n "$ac_prev"; then
8414 case $ac_word in
8415 i?86 | x86_64 | ppc | ppc64)
8416 if test -z "$ac_arch" || test "$ac_arch" = "$ac_word"; then
8417 ac_arch=$ac_word
8418 else
8419 ac_cv_c_bigendian=universal
8420 break
8423 esac
8424 ac_prev=
8425 elif test "x$ac_word" = "x-arch"; then
8426 ac_prev=arch
8428 done
8430 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8431 if test $ac_cv_c_bigendian = unknown; then
8432 # See if sys/param.h defines the BYTE_ORDER macro.
8433 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8434 /* end confdefs.h. */
8435 #include <sys/types.h>
8436 #include <sys/param.h>
8439 main ()
8441 #if ! (defined BYTE_ORDER && defined BIG_ENDIAN \
8442 && defined LITTLE_ENDIAN && BYTE_ORDER && BIG_ENDIAN \
8443 && LITTLE_ENDIAN)
8444 bogus endian macros
8445 #endif
8448 return 0;
8450 _ACEOF
8451 if ac_fn_c_try_compile "$LINENO"; then :
8452 # It does; now see whether it defined to BIG_ENDIAN or not.
8453 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8454 /* end confdefs.h. */
8455 #include <sys/types.h>
8456 #include <sys/param.h>
8459 main ()
8461 #if BYTE_ORDER != BIG_ENDIAN
8462 not big endian
8463 #endif
8466 return 0;
8468 _ACEOF
8469 if ac_fn_c_try_compile "$LINENO"; then :
8470 ac_cv_c_bigendian=yes
8471 else
8472 ac_cv_c_bigendian=no
8474 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8476 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8478 if test $ac_cv_c_bigendian = unknown; then
8479 # See if <limits.h> defines _LITTLE_ENDIAN or _BIG_ENDIAN (e.g., Solaris).
8480 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8481 /* end confdefs.h. */
8482 #include <limits.h>
8485 main ()
8487 #if ! (defined _LITTLE_ENDIAN || defined _BIG_ENDIAN)
8488 bogus endian macros
8489 #endif
8492 return 0;
8494 _ACEOF
8495 if ac_fn_c_try_compile "$LINENO"; then :
8496 # It does; now see whether it defined to _BIG_ENDIAN or not.
8497 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8498 /* end confdefs.h. */
8499 #include <limits.h>
8502 main ()
8504 #ifndef _BIG_ENDIAN
8505 not big endian
8506 #endif
8509 return 0;
8511 _ACEOF
8512 if ac_fn_c_try_compile "$LINENO"; then :
8513 ac_cv_c_bigendian=yes
8514 else
8515 ac_cv_c_bigendian=no
8517 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8519 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8521 if test $ac_cv_c_bigendian = unknown; then
8522 # Compile a test program.
8523 if test "$cross_compiling" = yes; then :
8524 # Try to guess by grepping values from an object file.
8525 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8526 /* end confdefs.h. */
8527 short int ascii_mm[] =
8528 { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 };
8529 short int ascii_ii[] =
8530 { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 };
8531 int use_ascii (int i) {
8532 return ascii_mm[i] + ascii_ii[i];
8534 short int ebcdic_ii[] =
8535 { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 };
8536 short int ebcdic_mm[] =
8537 { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 };
8538 int use_ebcdic (int i) {
8539 return ebcdic_mm[i] + ebcdic_ii[i];
8541 extern int foo;
8544 main ()
8546 return use_ascii (foo) == use_ebcdic (foo);
8548 return 0;
8550 _ACEOF
8551 if ac_fn_c_try_compile "$LINENO"; then :
8552 if grep BIGenDianSyS conftest.$ac_objext >/dev/null; then
8553 ac_cv_c_bigendian=yes
8555 if grep LiTTleEnDian conftest.$ac_objext >/dev/null ; then
8556 if test "$ac_cv_c_bigendian" = unknown; then
8557 ac_cv_c_bigendian=no
8558 else
8559 # finding both strings is unlikely to happen, but who knows?
8560 ac_cv_c_bigendian=unknown
8564 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8565 else
8566 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8567 /* end confdefs.h. */
8568 $ac_includes_default
8570 main ()
8573 /* Are we little or big endian? From Harbison&Steele. */
8574 union
8576 long int l;
8577 char c[sizeof (long int)];
8578 } u;
8579 u.l = 1;
8580 return u.c[sizeof (long int) - 1] == 1;
8583 return 0;
8585 _ACEOF
8586 if ac_fn_c_try_run "$LINENO"; then :
8587 ac_cv_c_bigendian=no
8588 else
8589 ac_cv_c_bigendian=yes
8591 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
8592 conftest.$ac_objext conftest.beam conftest.$ac_ext
8597 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_bigendian" >&5
8598 $as_echo "$ac_cv_c_bigendian" >&6; }
8599 case $ac_cv_c_bigendian in #(
8600 yes)
8601 $as_echo "#define WORDS_BIGENDIAN 1" >>confdefs.h
8602 ;; #(
8604 ;; #(
8605 universal)
8607 $as_echo "#define AC_APPLE_UNIVERSAL_BUILD 1" >>confdefs.h
8609 ;; #(
8611 as_fn_error "unknown endianness
8612 presetting ac_cv_c_bigendian=no (or yes) will help" "$LINENO" 5 ;;
8613 esac
8616 # ----------------------
8617 # Checks for C++ headers
8618 # ----------------------
8620 ac_ext=cpp
8621 ac_cpp='$CXXCPP $CPPFLAGS'
8622 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8623 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8624 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
8625 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C++ preprocessor" >&5
8626 $as_echo_n "checking how to run the C++ preprocessor... " >&6; }
8627 if test -z "$CXXCPP"; then
8628 if test "${ac_cv_prog_CXXCPP+set}" = set; then :
8629 $as_echo_n "(cached) " >&6
8630 else
8631 # Double quotes because CXXCPP needs to be expanded
8632 for CXXCPP in "$CXX -E" "/lib/cpp"
8634 ac_preproc_ok=false
8635 for ac_cxx_preproc_warn_flag in '' yes
8637 # Use a header file that comes with gcc, so configuring glibc
8638 # with a fresh cross-compiler works.
8639 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
8640 # <limits.h> exists even on freestanding compilers.
8641 # On the NeXT, cc -E runs the code through the compiler's parser,
8642 # not just through cpp. "Syntax error" is here to catch this case.
8643 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8644 /* end confdefs.h. */
8645 #ifdef __STDC__
8646 # include <limits.h>
8647 #else
8648 # include <assert.h>
8649 #endif
8650 Syntax error
8651 _ACEOF
8652 if ac_fn_cxx_try_cpp "$LINENO"; then :
8654 else
8655 # Broken: fails on valid input.
8656 continue
8658 rm -f conftest.err conftest.$ac_ext
8660 # OK, works on sane cases. Now check whether nonexistent headers
8661 # can be detected and how.
8662 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8663 /* end confdefs.h. */
8664 #include <ac_nonexistent.h>
8665 _ACEOF
8666 if ac_fn_cxx_try_cpp "$LINENO"; then :
8667 # Broken: success on invalid input.
8668 continue
8669 else
8670 # Passes both tests.
8671 ac_preproc_ok=:
8672 break
8674 rm -f conftest.err conftest.$ac_ext
8676 done
8677 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
8678 rm -f conftest.err conftest.$ac_ext
8679 if $ac_preproc_ok; then :
8680 break
8683 done
8684 ac_cv_prog_CXXCPP=$CXXCPP
8687 CXXCPP=$ac_cv_prog_CXXCPP
8688 else
8689 ac_cv_prog_CXXCPP=$CXXCPP
8691 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXXCPP" >&5
8692 $as_echo "$CXXCPP" >&6; }
8693 ac_preproc_ok=false
8694 for ac_cxx_preproc_warn_flag in '' yes
8696 # Use a header file that comes with gcc, so configuring glibc
8697 # with a fresh cross-compiler works.
8698 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
8699 # <limits.h> exists even on freestanding compilers.
8700 # On the NeXT, cc -E runs the code through the compiler's parser,
8701 # not just through cpp. "Syntax error" is here to catch this case.
8702 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8703 /* end confdefs.h. */
8704 #ifdef __STDC__
8705 # include <limits.h>
8706 #else
8707 # include <assert.h>
8708 #endif
8709 Syntax error
8710 _ACEOF
8711 if ac_fn_cxx_try_cpp "$LINENO"; then :
8713 else
8714 # Broken: fails on valid input.
8715 continue
8717 rm -f conftest.err conftest.$ac_ext
8719 # OK, works on sane cases. Now check whether nonexistent headers
8720 # can be detected and how.
8721 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8722 /* end confdefs.h. */
8723 #include <ac_nonexistent.h>
8724 _ACEOF
8725 if ac_fn_cxx_try_cpp "$LINENO"; then :
8726 # Broken: success on invalid input.
8727 continue
8728 else
8729 # Passes both tests.
8730 ac_preproc_ok=:
8731 break
8733 rm -f conftest.err conftest.$ac_ext
8735 done
8736 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
8737 rm -f conftest.err conftest.$ac_ext
8738 if $ac_preproc_ok; then :
8740 else
8741 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
8742 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
8743 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: C++ preprocessor \"$CXXCPP\" fails sanity check
8744 See \`config.log' for more details." >&5
8745 $as_echo "$as_me: WARNING: C++ preprocessor \"$CXXCPP\" fails sanity check
8746 See \`config.log' for more details." >&2;}; }
8749 ac_ext=c
8750 ac_cpp='$CPP $CPPFLAGS'
8751 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8752 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8753 ac_compiler_gnu=$ac_cv_c_compiler_gnu
8756 ac_ext=cpp
8757 ac_cpp='$CXXCPP $CPPFLAGS'
8758 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8759 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8760 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
8765 for ac_header in unordered_map
8766 do :
8767 ac_fn_cxx_check_header_preproc "$LINENO" "unordered_map" "ac_cv_header_unordered_map"
8768 if test "x$ac_cv_header_unordered_map" = x""yes; then :
8769 cat >>confdefs.h <<_ACEOF
8770 #define HAVE_UNORDERED_MAP 1
8771 _ACEOF
8774 done
8776 for ac_header in tr1/unordered_map
8777 do :
8778 ac_fn_cxx_check_header_preproc "$LINENO" "tr1/unordered_map" "ac_cv_header_tr1_unordered_map"
8779 if test "x$ac_cv_header_tr1_unordered_map" = x""yes; then :
8780 cat >>confdefs.h <<_ACEOF
8781 #define HAVE_TR1_UNORDERED_MAP 1
8782 _ACEOF
8785 done
8787 for ac_header in ext/hash_map
8788 do :
8789 ac_fn_cxx_check_header_preproc "$LINENO" "ext/hash_map" "ac_cv_header_ext_hash_map"
8790 if test "x$ac_cv_header_ext_hash_map" = x""yes; then :
8791 cat >>confdefs.h <<_ACEOF
8792 #define HAVE_EXT_HASH_MAP 1
8793 _ACEOF
8796 done
8799 ac_ext=c
8800 ac_cpp='$CPP $CPPFLAGS'
8801 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8802 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8803 ac_compiler_gnu=$ac_cv_c_compiler_gnu
8806 # --------
8807 # Dependency checking.
8808 # --------
8810 ac_ext=cpp
8811 ac_cpp='$CXXCPP $CPPFLAGS'
8812 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8813 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8814 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
8816 rm -rf .tst 2>/dev/null
8817 mkdir .tst 2>/dev/null
8818 if test -d .tst; then
8819 am__leading_dot=.
8820 else
8821 am__leading_dot=_
8823 rmdir .tst 2>/dev/null
8825 DEPDIR="${am__leading_dot}deps"
8827 ac_config_commands="$ac_config_commands depdir"
8830 ac_config_commands="$ac_config_commands gccdepdir"
8833 depcc="$CXX" am_compiler_list=
8835 am_depcomp=$ac_aux_dir/depcomp
8836 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
8837 $as_echo_n "checking dependency style of $depcc... " >&6; }
8838 if test "${am_cv_CXX_dependencies_compiler_type+set}" = set; then :
8839 $as_echo_n "(cached) " >&6
8840 else
8841 if test -f "$am_depcomp"; then
8842 # We make a subdir and do the tests there. Otherwise we can end up
8843 # making bogus files that we don't know about and never remove. For
8844 # instance it was reported that on HP-UX the gcc test will end up
8845 # making a dummy file named `D' -- because `-MD' means `put the output
8846 # in D'.
8847 mkdir conftest.dir
8848 # Copy depcomp to subdir because otherwise we won't find it if we're
8849 # using a relative directory.
8850 cp "$am_depcomp" conftest.dir
8851 cd conftest.dir
8852 # We will build objects and dependencies in a subdirectory because
8853 # it helps to detect inapplicable dependency modes. For instance
8854 # both Tru64's cc and ICC support -MD to output dependencies as a
8855 # side effect of compilation, but ICC will put the dependencies in
8856 # the current directory while Tru64 will put them in the object
8857 # directory.
8858 mkdir sub
8860 am_cv_CXX_dependencies_compiler_type=none
8861 if test "$am_compiler_list" = ""; then
8862 am_compiler_list=`sed -n 's/^\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
8864 for depmode in $am_compiler_list; do
8865 if test $depmode = none; then break; fi
8867 $as_echo "$as_me:$LINENO: trying $depmode" >&5
8868 # Setup a source with many dependencies, because some compilers
8869 # like to wrap large dependency lists on column 80 (with \), and
8870 # we should not choose a depcomp mode which is confused by this.
8872 # We need to recreate these files for each test, as the compiler may
8873 # overwrite some of them when testing with obscure command lines.
8874 # This happens at least with the AIX C compiler.
8875 : > sub/conftest.c
8876 for i in 1 2 3 4 5 6; do
8877 echo '#include "conftst'$i'.h"' >> sub/conftest.c
8878 # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
8879 # Solaris 8's {/usr,}/bin/sh.
8880 touch sub/conftst$i.h
8881 done
8882 echo "include sub/conftest.Po" > confmf
8884 # We check with `-c' and `-o' for the sake of the "dashmstdout"
8885 # mode. It turns out that the SunPro C++ compiler does not properly
8886 # handle `-M -o', and we need to detect this.
8887 depcmd="depmode=$depmode \
8888 source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \
8889 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
8890 $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c"
8891 echo "| $depcmd" | sed -e 's/ */ /g' >&5
8892 if env $depcmd > conftest.err 2>&1 &&
8893 grep sub/conftst6.h sub/conftest.Po >>conftest.err 2>&1 &&
8894 grep sub/conftest.${OBJEXT-o} sub/conftest.Po >>conftest.err 2>&1 &&
8895 ${MAKE-make} -s -f confmf >>conftest.err 2>&1; then
8896 # icc doesn't choke on unknown options, it will just issue warnings
8897 # or remarks (even with -Werror). So we grep stderr for any message
8898 # that says an option was ignored or not supported.
8899 # When given -MP, icc 7.0 and 7.1 complain thusly:
8900 # icc: Command line warning: ignoring option '-M'; no argument required
8901 # The diagnosis changed in icc 8.0:
8902 # icc: Command line remark: option '-MP' not supported
8903 if (grep 'ignoring option' conftest.err ||
8904 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
8905 am_cv_CXX_dependencies_compiler_type=$depmode
8906 $as_echo "$as_me:$LINENO: success" >&5
8907 break
8910 $as_echo "$as_me:$LINENO: failure, diagnostics are:" >&5
8911 sed -e 's/^/| /' < conftest.err >&5
8912 done
8914 cd ..
8915 rm -rf conftest.dir
8916 else
8917 am_cv_CXX_dependencies_compiler_type=none
8921 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CXX_dependencies_compiler_type" >&5
8922 $as_echo "$am_cv_CXX_dependencies_compiler_type" >&6; }
8923 if test x${am_cv_CXX_dependencies_compiler_type-none} = xnone
8924 then as_fn_error "no usable dependency style found" "$LINENO" 5
8925 else CXXDEPMODE=depmode=$am_cv_CXX_dependencies_compiler_type
8929 ac_ext=c
8930 ac_cpp='$CPP $CPPFLAGS'
8931 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8932 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8933 ac_compiler_gnu=$ac_cv_c_compiler_gnu
8936 # --------
8937 # UNSORTED
8938 # --------
8941 # These libraries may be used by collect2.
8942 # We may need a special search path to get them linked.
8943 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for collect2 libraries" >&5
8944 $as_echo_n "checking for collect2 libraries... " >&6; }
8945 if test "${gcc_cv_collect2_libs+set}" = set; then :
8946 $as_echo_n "(cached) " >&6
8947 else
8948 save_LIBS="$LIBS"
8949 for libs in '' -lld -lmld \
8950 '-L/usr/lib/cmplrs/cc2.11 -lmld' \
8951 '-L/usr/lib/cmplrs/cc3.11 -lmld'
8953 LIBS="$libs"
8954 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8955 /* end confdefs.h. */
8957 /* Override any GCC internal prototype to avoid an error.
8958 Use char because int might match the return type of a GCC
8959 builtin and then its argument prototype would still apply. */
8960 #ifdef __cplusplus
8961 extern "C"
8962 #endif
8963 char ldopen ();
8965 main ()
8967 return ldopen ();
8969 return 0;
8971 _ACEOF
8972 if ac_fn_c_try_link "$LINENO"; then :
8973 gcc_cv_collect2_libs="$libs"; break
8975 rm -f core conftest.err conftest.$ac_objext \
8976 conftest$ac_exeext conftest.$ac_ext
8977 done
8978 LIBS="$save_LIBS"
8979 test -z "$gcc_cv_collect2_libs" && gcc_cv_collect2_libs='none required'
8981 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_collect2_libs" >&5
8982 $as_echo "$gcc_cv_collect2_libs" >&6; }
8983 case $gcc_cv_collect2_libs in
8984 "none required") ;;
8985 *) COLLECT2_LIBS=$gcc_cv_collect2_libs ;;
8986 esac
8989 # When building Ada code on Alpha, we need exc_resume which is usually in
8990 # -lexc. So test for it.
8991 save_LIBS="$LIBS"
8992 LIBS=
8993 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing exc_resume" >&5
8994 $as_echo_n "checking for library containing exc_resume... " >&6; }
8995 if test "${ac_cv_search_exc_resume+set}" = set; then :
8996 $as_echo_n "(cached) " >&6
8997 else
8998 ac_func_search_save_LIBS=$LIBS
8999 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9000 /* end confdefs.h. */
9002 /* Override any GCC internal prototype to avoid an error.
9003 Use char because int might match the return type of a GCC
9004 builtin and then its argument prototype would still apply. */
9005 #ifdef __cplusplus
9006 extern "C"
9007 #endif
9008 char exc_resume ();
9010 main ()
9012 return exc_resume ();
9014 return 0;
9016 _ACEOF
9017 for ac_lib in '' exc; do
9018 if test -z "$ac_lib"; then
9019 ac_res="none required"
9020 else
9021 ac_res=-l$ac_lib
9022 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
9024 if ac_fn_c_try_link "$LINENO"; then :
9025 ac_cv_search_exc_resume=$ac_res
9027 rm -f core conftest.err conftest.$ac_objext \
9028 conftest$ac_exeext
9029 if test "${ac_cv_search_exc_resume+set}" = set; then :
9030 break
9032 done
9033 if test "${ac_cv_search_exc_resume+set}" = set; then :
9035 else
9036 ac_cv_search_exc_resume=no
9038 rm conftest.$ac_ext
9039 LIBS=$ac_func_search_save_LIBS
9041 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_exc_resume" >&5
9042 $as_echo "$ac_cv_search_exc_resume" >&6; }
9043 ac_res=$ac_cv_search_exc_resume
9044 if test "$ac_res" != no; then :
9045 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
9049 GNAT_LIBEXC="$LIBS"
9050 LIBS="$save_LIBS"
9053 # To support -mcpu=native on Solaris/SPARC, we need libkstat.
9054 save_LIBS="$LIBS"
9055 LIBS=
9056 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing kstat_open" >&5
9057 $as_echo_n "checking for library containing kstat_open... " >&6; }
9058 if test "${ac_cv_search_kstat_open+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 kstat_open ();
9073 main ()
9075 return kstat_open ();
9077 return 0;
9079 _ACEOF
9080 for ac_lib in '' kstat; 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_kstat_open=$ac_res
9090 rm -f core conftest.err conftest.$ac_objext \
9091 conftest$ac_exeext
9092 if test "${ac_cv_search_kstat_open+set}" = set; then :
9093 break
9095 done
9096 if test "${ac_cv_search_kstat_open+set}" = set; then :
9098 else
9099 ac_cv_search_kstat_open=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_kstat_open" >&5
9105 $as_echo "$ac_cv_search_kstat_open" >&6; }
9106 ac_res=$ac_cv_search_kstat_open
9107 if test "$ac_res" != no; then :
9108 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
9112 EXTRA_GCC_LIBS="$LIBS"
9113 LIBS="$save_LIBS"
9116 # Some systems put ldexp and frexp in libm instead of libc; assume
9117 # they're both in the same place. jcf-dump needs them.
9118 save_LIBS="$LIBS"
9119 LIBS=
9120 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing ldexp" >&5
9121 $as_echo_n "checking for library containing ldexp... " >&6; }
9122 if test "${ac_cv_search_ldexp+set}" = set; then :
9123 $as_echo_n "(cached) " >&6
9124 else
9125 ac_func_search_save_LIBS=$LIBS
9126 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9127 /* end confdefs.h. */
9129 /* Override any GCC internal prototype to avoid an error.
9130 Use char because int might match the return type of a GCC
9131 builtin and then its argument prototype would still apply. */
9132 #ifdef __cplusplus
9133 extern "C"
9134 #endif
9135 char ldexp ();
9137 main ()
9139 return ldexp ();
9141 return 0;
9143 _ACEOF
9144 for ac_lib in '' m; do
9145 if test -z "$ac_lib"; then
9146 ac_res="none required"
9147 else
9148 ac_res=-l$ac_lib
9149 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
9151 if ac_fn_c_try_link "$LINENO"; then :
9152 ac_cv_search_ldexp=$ac_res
9154 rm -f core conftest.err conftest.$ac_objext \
9155 conftest$ac_exeext
9156 if test "${ac_cv_search_ldexp+set}" = set; then :
9157 break
9159 done
9160 if test "${ac_cv_search_ldexp+set}" = set; then :
9162 else
9163 ac_cv_search_ldexp=no
9165 rm conftest.$ac_ext
9166 LIBS=$ac_func_search_save_LIBS
9168 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_ldexp" >&5
9169 $as_echo "$ac_cv_search_ldexp" >&6; }
9170 ac_res=$ac_cv_search_ldexp
9171 if test "$ac_res" != no; then :
9172 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
9176 LDEXP_LIB="$LIBS"
9177 LIBS="$save_LIBS"
9180 # Use <inttypes.h> only if it exists,
9181 # doesn't clash with <sys/types.h>, and declares intmax_t.
9182 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for inttypes.h" >&5
9183 $as_echo_n "checking for inttypes.h... " >&6; }
9184 if test "${gcc_cv_header_inttypes_h+set}" = set; then :
9185 $as_echo_n "(cached) " >&6
9186 else
9187 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9188 /* end confdefs.h. */
9189 #include <sys/types.h>
9190 #include <inttypes.h>
9192 main ()
9194 intmax_t i = -1;
9196 return 0;
9198 _ACEOF
9199 if ac_fn_c_try_compile "$LINENO"; then :
9200 gcc_cv_header_inttypes_h=yes
9201 else
9202 gcc_cv_header_inttypes_h=no
9204 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9207 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_header_inttypes_h" >&5
9208 $as_echo "$gcc_cv_header_inttypes_h" >&6; }
9209 if test $gcc_cv_header_inttypes_h = yes; then
9211 $as_echo "#define HAVE_INTTYPES_H 1" >>confdefs.h
9217 for ac_func in times clock kill getrlimit setrlimit atoll atoq \
9218 sysconf strsignal getrusage nl_langinfo \
9219 gettimeofday mbstowcs wcswidth mmap setlocale \
9220 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
9221 do :
9222 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
9223 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
9224 eval as_val=\$$as_ac_var
9225 if test "x$as_val" = x""yes; then :
9226 cat >>confdefs.h <<_ACEOF
9227 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
9228 _ACEOF
9231 done
9234 if test x$ac_cv_func_mbstowcs = xyes; then
9235 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether mbstowcs works" >&5
9236 $as_echo_n "checking whether mbstowcs works... " >&6; }
9237 if test "${gcc_cv_func_mbstowcs_works+set}" = set; then :
9238 $as_echo_n "(cached) " >&6
9239 else
9240 if test "$cross_compiling" = yes; then :
9241 gcc_cv_func_mbstowcs_works=yes
9242 else
9243 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9244 /* end confdefs.h. */
9245 #include <stdlib.h>
9246 int main()
9248 mbstowcs(0, "", 0);
9249 return 0;
9251 _ACEOF
9252 if ac_fn_c_try_run "$LINENO"; then :
9253 gcc_cv_func_mbstowcs_works=yes
9254 else
9255 gcc_cv_func_mbstowcs_works=no
9257 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
9258 conftest.$ac_objext conftest.beam conftest.$ac_ext
9262 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_func_mbstowcs_works" >&5
9263 $as_echo "$gcc_cv_func_mbstowcs_works" >&6; }
9264 if test x$gcc_cv_func_mbstowcs_works = xyes; then
9266 $as_echo "#define HAVE_WORKING_MBSTOWCS 1" >>confdefs.h
9271 ac_fn_c_check_type "$LINENO" "ssize_t" "ac_cv_type_ssize_t" "$ac_includes_default"
9272 if test "x$ac_cv_type_ssize_t" = x""yes; then :
9274 else
9276 cat >>confdefs.h <<_ACEOF
9277 #define ssize_t int
9278 _ACEOF
9282 ac_fn_c_check_type "$LINENO" "caddr_t" "ac_cv_type_caddr_t" "$ac_includes_default"
9283 if test "x$ac_cv_type_caddr_t" = x""yes; then :
9285 else
9287 cat >>confdefs.h <<_ACEOF
9288 #define caddr_t char *
9289 _ACEOF
9295 ac_fn_c_check_header_preproc "$LINENO" "sys/mman.h" "ac_cv_header_sys_mman_h"
9296 if test "x$ac_cv_header_sys_mman_h" = x""yes; then :
9297 gcc_header_sys_mman_h=yes
9298 else
9299 gcc_header_sys_mman_h=no
9302 ac_fn_c_check_func "$LINENO" "mmap" "ac_cv_func_mmap"
9303 if test "x$ac_cv_func_mmap" = x""yes; then :
9304 gcc_func_mmap=yes
9305 else
9306 gcc_func_mmap=no
9309 if test "$gcc_header_sys_mman_h" != yes \
9310 || test "$gcc_func_mmap" != yes; then
9311 gcc_cv_func_mmap_file=no
9312 gcc_cv_func_mmap_dev_zero=no
9313 gcc_cv_func_mmap_anon=no
9314 else
9315 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether read-only mmap of a plain file works" >&5
9316 $as_echo_n "checking whether read-only mmap of a plain file works... " >&6; }
9317 if test "${gcc_cv_func_mmap_file+set}" = set; then :
9318 $as_echo_n "(cached) " >&6
9319 else
9320 # Add a system to this blacklist if
9321 # mmap(0, stat_size, PROT_READ, MAP_PRIVATE, fd, 0) doesn't return a
9322 # memory area containing the same data that you'd get if you applied
9323 # read() to the same fd. The only system known to have a problem here
9324 # is VMS, where text files have record structure.
9325 case "$host_os" in
9326 *vms* | ultrix*)
9327 gcc_cv_func_mmap_file=no ;;
9329 gcc_cv_func_mmap_file=yes;;
9330 esac
9332 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_func_mmap_file" >&5
9333 $as_echo "$gcc_cv_func_mmap_file" >&6; }
9334 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether mmap from /dev/zero works" >&5
9335 $as_echo_n "checking whether mmap from /dev/zero works... " >&6; }
9336 if test "${gcc_cv_func_mmap_dev_zero+set}" = set; then :
9337 $as_echo_n "(cached) " >&6
9338 else
9339 # Add a system to this blacklist if it has mmap() but /dev/zero
9340 # does not exist, or if mmapping /dev/zero does not give anonymous
9341 # zeroed pages with both the following properties:
9342 # 1. If you map N consecutive pages in with one call, and then
9343 # unmap any subset of those pages, the pages that were not
9344 # explicitly unmapped remain accessible.
9345 # 2. If you map two adjacent blocks of memory and then unmap them
9346 # both at once, they must both go away.
9347 # Systems known to be in this category are Windows (all variants),
9348 # VMS, and Darwin.
9349 case "$host_os" in
9350 *vms* | cygwin* | pe | mingw* | darwin* | ultrix* | hpux10* | hpux11.00)
9351 gcc_cv_func_mmap_dev_zero=no ;;
9353 gcc_cv_func_mmap_dev_zero=yes;;
9354 esac
9356 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_func_mmap_dev_zero" >&5
9357 $as_echo "$gcc_cv_func_mmap_dev_zero" >&6; }
9359 # Unlike /dev/zero, the MAP_ANON(YMOUS) defines can be probed for.
9360 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for MAP_ANON(YMOUS)" >&5
9361 $as_echo_n "checking for MAP_ANON(YMOUS)... " >&6; }
9362 if test "${gcc_cv_decl_map_anon+set}" = set; then :
9363 $as_echo_n "(cached) " >&6
9364 else
9365 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9366 /* end confdefs.h. */
9367 #include <sys/types.h>
9368 #include <sys/mman.h>
9369 #include <unistd.h>
9371 #ifndef MAP_ANONYMOUS
9372 #define MAP_ANONYMOUS MAP_ANON
9373 #endif
9376 main ()
9378 int n = MAP_ANONYMOUS;
9380 return 0;
9382 _ACEOF
9383 if ac_fn_c_try_compile "$LINENO"; then :
9384 gcc_cv_decl_map_anon=yes
9385 else
9386 gcc_cv_decl_map_anon=no
9388 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9390 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_decl_map_anon" >&5
9391 $as_echo "$gcc_cv_decl_map_anon" >&6; }
9393 if test $gcc_cv_decl_map_anon = no; then
9394 gcc_cv_func_mmap_anon=no
9395 else
9396 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether mmap with MAP_ANON(YMOUS) works" >&5
9397 $as_echo_n "checking whether mmap with MAP_ANON(YMOUS) works... " >&6; }
9398 if test "${gcc_cv_func_mmap_anon+set}" = set; then :
9399 $as_echo_n "(cached) " >&6
9400 else
9401 # Add a system to this blacklist if it has mmap() and MAP_ANON or
9402 # MAP_ANONYMOUS, but using mmap(..., MAP_PRIVATE|MAP_ANONYMOUS, -1, 0)
9403 # doesn't give anonymous zeroed pages with the same properties listed
9404 # above for use of /dev/zero.
9405 # Systems known to be in this category are Windows, VMS, and SCO Unix.
9406 case "$host_os" in
9407 *vms* | cygwin* | pe | mingw* | sco* | udk* )
9408 gcc_cv_func_mmap_anon=no ;;
9410 gcc_cv_func_mmap_anon=yes;;
9411 esac
9413 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_func_mmap_anon" >&5
9414 $as_echo "$gcc_cv_func_mmap_anon" >&6; }
9418 if test $gcc_cv_func_mmap_file = yes; then
9420 $as_echo "#define HAVE_MMAP_FILE 1" >>confdefs.h
9423 if test $gcc_cv_func_mmap_dev_zero = yes; then
9425 $as_echo "#define HAVE_MMAP_DEV_ZERO 1" >>confdefs.h
9428 if test $gcc_cv_func_mmap_anon = yes; then
9430 $as_echo "#define HAVE_MMAP_ANON 1" >>confdefs.h
9435 case "${host}" in
9436 *-*-*vms*)
9437 # Under VMS, vfork works very differently than on Unix. The standard test
9438 # won't work, and it isn't easily adaptable. It makes more sense to
9439 # just force it.
9440 ac_cv_func_vfork_works=yes
9442 esac
9443 ac_fn_c_check_type "$LINENO" "pid_t" "ac_cv_type_pid_t" "$ac_includes_default"
9444 if test "x$ac_cv_type_pid_t" = x""yes; then :
9446 else
9448 cat >>confdefs.h <<_ACEOF
9449 #define pid_t int
9450 _ACEOF
9454 for ac_header in vfork.h
9455 do :
9456 ac_fn_c_check_header_preproc "$LINENO" "vfork.h" "ac_cv_header_vfork_h"
9457 if test "x$ac_cv_header_vfork_h" = x""yes; then :
9458 cat >>confdefs.h <<_ACEOF
9459 #define HAVE_VFORK_H 1
9460 _ACEOF
9463 done
9465 for ac_func in fork vfork
9466 do :
9467 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
9468 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
9469 eval as_val=\$$as_ac_var
9470 if test "x$as_val" = x""yes; then :
9471 cat >>confdefs.h <<_ACEOF
9472 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
9473 _ACEOF
9476 done
9478 if test "x$ac_cv_func_fork" = xyes; then
9479 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working fork" >&5
9480 $as_echo_n "checking for working fork... " >&6; }
9481 if test "${ac_cv_func_fork_works+set}" = set; then :
9482 $as_echo_n "(cached) " >&6
9483 else
9484 if test "$cross_compiling" = yes; then :
9485 ac_cv_func_fork_works=cross
9486 else
9487 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9488 /* end confdefs.h. */
9489 $ac_includes_default
9491 main ()
9494 /* By Ruediger Kuhlmann. */
9495 return fork () < 0;
9498 return 0;
9500 _ACEOF
9501 if ac_fn_c_try_run "$LINENO"; then :
9502 ac_cv_func_fork_works=yes
9503 else
9504 ac_cv_func_fork_works=no
9506 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
9507 conftest.$ac_objext conftest.beam conftest.$ac_ext
9511 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_fork_works" >&5
9512 $as_echo "$ac_cv_func_fork_works" >&6; }
9514 else
9515 ac_cv_func_fork_works=$ac_cv_func_fork
9517 if test "x$ac_cv_func_fork_works" = xcross; then
9518 case $host in
9519 *-*-amigaos* | *-*-msdosdjgpp*)
9520 # Override, as these systems have only a dummy fork() stub
9521 ac_cv_func_fork_works=no
9524 ac_cv_func_fork_works=yes
9526 esac
9527 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: result $ac_cv_func_fork_works guessed because of cross compilation" >&5
9528 $as_echo "$as_me: WARNING: result $ac_cv_func_fork_works guessed because of cross compilation" >&2;}
9530 ac_cv_func_vfork_works=$ac_cv_func_vfork
9531 if test "x$ac_cv_func_vfork" = xyes; then
9532 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working vfork" >&5
9533 $as_echo_n "checking for working vfork... " >&6; }
9534 if test "${ac_cv_func_vfork_works+set}" = set; then :
9535 $as_echo_n "(cached) " >&6
9536 else
9537 if test "$cross_compiling" = yes; then :
9538 ac_cv_func_vfork_works=cross
9539 else
9540 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9541 /* end confdefs.h. */
9542 /* Thanks to Paul Eggert for this test. */
9543 $ac_includes_default
9544 #include <sys/wait.h>
9545 #ifdef HAVE_VFORK_H
9546 # include <vfork.h>
9547 #endif
9548 /* On some sparc systems, changes by the child to local and incoming
9549 argument registers are propagated back to the parent. The compiler
9550 is told about this with #include <vfork.h>, but some compilers
9551 (e.g. gcc -O) don't grok <vfork.h>. Test for this by using a
9552 static variable whose address is put into a register that is
9553 clobbered by the vfork. */
9554 static void
9555 #ifdef __cplusplus
9556 sparc_address_test (int arg)
9557 # else
9558 sparc_address_test (arg) int arg;
9559 #endif
9561 static pid_t child;
9562 if (!child) {
9563 child = vfork ();
9564 if (child < 0) {
9565 perror ("vfork");
9566 _exit(2);
9568 if (!child) {
9569 arg = getpid();
9570 write(-1, "", 0);
9571 _exit (arg);
9577 main ()
9579 pid_t parent = getpid ();
9580 pid_t child;
9582 sparc_address_test (0);
9584 child = vfork ();
9586 if (child == 0) {
9587 /* Here is another test for sparc vfork register problems. This
9588 test uses lots of local variables, at least as many local
9589 variables as main has allocated so far including compiler
9590 temporaries. 4 locals are enough for gcc 1.40.3 on a Solaris
9591 4.1.3 sparc, but we use 8 to be safe. A buggy compiler should
9592 reuse the register of parent for one of the local variables,
9593 since it will think that parent can't possibly be used any more
9594 in this routine. Assigning to the local variable will thus
9595 munge parent in the parent process. */
9596 pid_t
9597 p = getpid(), p1 = getpid(), p2 = getpid(), p3 = getpid(),
9598 p4 = getpid(), p5 = getpid(), p6 = getpid(), p7 = getpid();
9599 /* Convince the compiler that p..p7 are live; otherwise, it might
9600 use the same hardware register for all 8 local variables. */
9601 if (p != p1 || p != p2 || p != p3 || p != p4
9602 || p != p5 || p != p6 || p != p7)
9603 _exit(1);
9605 /* On some systems (e.g. IRIX 3.3), vfork doesn't separate parent
9606 from child file descriptors. If the child closes a descriptor
9607 before it execs or exits, this munges the parent's descriptor
9608 as well. Test for this by closing stdout in the child. */
9609 _exit(close(fileno(stdout)) != 0);
9610 } else {
9611 int status;
9612 struct stat st;
9614 while (wait(&status) != child)
9616 return (
9617 /* Was there some problem with vforking? */
9618 child < 0
9620 /* Did the child fail? (This shouldn't happen.) */
9621 || status
9623 /* Did the vfork/compiler bug occur? */
9624 || parent != getpid()
9626 /* Did the file descriptor bug occur? */
9627 || fstat(fileno(stdout), &st) != 0
9631 _ACEOF
9632 if ac_fn_c_try_run "$LINENO"; then :
9633 ac_cv_func_vfork_works=yes
9634 else
9635 ac_cv_func_vfork_works=no
9637 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
9638 conftest.$ac_objext conftest.beam conftest.$ac_ext
9642 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_vfork_works" >&5
9643 $as_echo "$ac_cv_func_vfork_works" >&6; }
9646 if test "x$ac_cv_func_fork_works" = xcross; then
9647 ac_cv_func_vfork_works=$ac_cv_func_vfork
9648 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: result $ac_cv_func_vfork_works guessed because of cross compilation" >&5
9649 $as_echo "$as_me: WARNING: result $ac_cv_func_vfork_works guessed because of cross compilation" >&2;}
9652 if test "x$ac_cv_func_vfork_works" = xyes; then
9654 $as_echo "#define HAVE_WORKING_VFORK 1" >>confdefs.h
9656 else
9658 $as_echo "#define vfork fork" >>confdefs.h
9661 if test "x$ac_cv_func_fork_works" = xyes; then
9663 $as_echo "#define HAVE_WORKING_FORK 1" >>confdefs.h
9668 # g++ on Solaris 10+ defines _XOPEN_SOURCE=600, which exposes a different
9669 # iconv() prototype.
9670 ac_ext=cpp
9671 ac_cpp='$CXXCPP $CPPFLAGS'
9672 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
9673 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
9674 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
9677 if test "X$prefix" = "XNONE"; then
9678 acl_final_prefix="$ac_default_prefix"
9679 else
9680 acl_final_prefix="$prefix"
9682 if test "X$exec_prefix" = "XNONE"; then
9683 acl_final_exec_prefix='${prefix}'
9684 else
9685 acl_final_exec_prefix="$exec_prefix"
9687 acl_save_prefix="$prefix"
9688 prefix="$acl_final_prefix"
9689 eval acl_final_exec_prefix=\"$acl_final_exec_prefix\"
9690 prefix="$acl_save_prefix"
9693 # Check whether --with-gnu-ld was given.
9694 if test "${with_gnu_ld+set}" = set; then :
9695 withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
9696 else
9697 with_gnu_ld=no
9700 # Prepare PATH_SEPARATOR.
9701 # The user is always right.
9702 if test "${PATH_SEPARATOR+set}" != set; then
9703 echo "#! /bin/sh" >conf$$.sh
9704 echo "exit 0" >>conf$$.sh
9705 chmod +x conf$$.sh
9706 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
9707 PATH_SEPARATOR=';'
9708 else
9709 PATH_SEPARATOR=:
9711 rm -f conf$$.sh
9713 ac_prog=ld
9714 if test "$GCC" = yes; then
9715 # Check if gcc -print-prog-name=ld gives a path.
9716 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by GCC" >&5
9717 $as_echo_n "checking for ld used by GCC... " >&6; }
9718 case $host in
9719 *-*-mingw*)
9720 # gcc leaves a trailing carriage return which upsets mingw
9721 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
9723 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
9724 esac
9725 case $ac_prog in
9726 # Accept absolute paths.
9727 [\\/]* | [A-Za-z]:[\\/]*)
9728 re_direlt='/[^/][^/]*/\.\./'
9729 # Canonicalize the path of ld
9730 ac_prog=`echo $ac_prog| sed 's%\\\\%/%g'`
9731 while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
9732 ac_prog=`echo $ac_prog| sed "s%$re_direlt%/%"`
9733 done
9734 test -z "$LD" && LD="$ac_prog"
9737 # If it fails, then pretend we aren't using GCC.
9738 ac_prog=ld
9741 # If it is relative, then search for the first ld in PATH.
9742 with_gnu_ld=unknown
9744 esac
9745 elif test "$with_gnu_ld" = yes; then
9746 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
9747 $as_echo_n "checking for GNU ld... " >&6; }
9748 else
9749 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
9750 $as_echo_n "checking for non-GNU ld... " >&6; }
9752 if test "${acl_cv_path_LD+set}" = set; then :
9753 $as_echo_n "(cached) " >&6
9754 else
9755 if test -z "$LD"; then
9756 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}${PATH_SEPARATOR-:}"
9757 for ac_dir in $PATH; do
9758 test -z "$ac_dir" && ac_dir=.
9759 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
9760 acl_cv_path_LD="$ac_dir/$ac_prog"
9761 # Check to see if the program is GNU ld. I'd rather use --version,
9762 # but apparently some GNU ld's only accept -v.
9763 # Break only if it was the GNU/non-GNU ld that we prefer.
9764 if "$acl_cv_path_LD" -v 2>&1 < /dev/null | egrep '(GNU|with BFD)' > /dev/null; then
9765 test "$with_gnu_ld" != no && break
9766 else
9767 test "$with_gnu_ld" != yes && break
9770 done
9771 IFS="$ac_save_ifs"
9772 else
9773 acl_cv_path_LD="$LD" # Let the user override the test with a path.
9777 LD="$acl_cv_path_LD"
9778 if test -n "$LD"; then
9779 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
9780 $as_echo "$LD" >&6; }
9781 else
9782 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9783 $as_echo "no" >&6; }
9785 test -z "$LD" && as_fn_error "no acceptable ld found in \$PATH" "$LINENO" 5
9786 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
9787 $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
9788 if test "${acl_cv_prog_gnu_ld+set}" = set; then :
9789 $as_echo_n "(cached) " >&6
9790 else
9791 # I'd rather use --version here, but apparently some GNU ld's only accept -v.
9792 if $LD -v 2>&1 </dev/null | egrep '(GNU|with BFD)' 1>&5; then
9793 acl_cv_prog_gnu_ld=yes
9794 else
9795 acl_cv_prog_gnu_ld=no
9798 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $acl_cv_prog_gnu_ld" >&5
9799 $as_echo "$acl_cv_prog_gnu_ld" >&6; }
9800 with_gnu_ld=$acl_cv_prog_gnu_ld
9804 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shared library run path origin" >&5
9805 $as_echo_n "checking for shared library run path origin... " >&6; }
9806 if test "${acl_cv_rpath+set}" = set; then :
9807 $as_echo_n "(cached) " >&6
9808 else
9810 CC="$CC" GCC="$GCC" LDFLAGS="$LDFLAGS" LD="$LD" with_gnu_ld="$with_gnu_ld" \
9811 ${CONFIG_SHELL-/bin/sh} "$ac_aux_dir/config.rpath" "$host" > conftest.sh
9812 . ./conftest.sh
9813 rm -f ./conftest.sh
9814 acl_cv_rpath=done
9817 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $acl_cv_rpath" >&5
9818 $as_echo "$acl_cv_rpath" >&6; }
9819 wl="$acl_cv_wl"
9820 libext="$acl_cv_libext"
9821 shlibext="$acl_cv_shlibext"
9822 hardcode_libdir_flag_spec="$acl_cv_hardcode_libdir_flag_spec"
9823 hardcode_libdir_separator="$acl_cv_hardcode_libdir_separator"
9824 hardcode_direct="$acl_cv_hardcode_direct"
9825 hardcode_minus_L="$acl_cv_hardcode_minus_L"
9826 # Check whether --enable-rpath was given.
9827 if test "${enable_rpath+set}" = set; then :
9828 enableval=$enable_rpath; :
9829 else
9830 enable_rpath=yes
9840 use_additional=yes
9842 acl_save_prefix="$prefix"
9843 prefix="$acl_final_prefix"
9844 acl_save_exec_prefix="$exec_prefix"
9845 exec_prefix="$acl_final_exec_prefix"
9847 eval additional_includedir=\"$includedir\"
9848 eval additional_libdir=\"$libdir\"
9850 exec_prefix="$acl_save_exec_prefix"
9851 prefix="$acl_save_prefix"
9854 # Check whether --with-libiconv-prefix was given.
9855 if test "${with_libiconv_prefix+set}" = set; then :
9856 withval=$with_libiconv_prefix;
9857 if test "X$withval" = "Xno"; then
9858 use_additional=no
9859 else
9860 if test "X$withval" = "X"; then
9862 acl_save_prefix="$prefix"
9863 prefix="$acl_final_prefix"
9864 acl_save_exec_prefix="$exec_prefix"
9865 exec_prefix="$acl_final_exec_prefix"
9867 eval additional_includedir=\"$includedir\"
9868 eval additional_libdir=\"$libdir\"
9870 exec_prefix="$acl_save_exec_prefix"
9871 prefix="$acl_save_prefix"
9873 else
9874 additional_includedir="$withval/include"
9875 additional_libdir="$withval/lib"
9881 LIBICONV=
9882 LTLIBICONV=
9883 INCICONV=
9884 rpathdirs=
9885 ltrpathdirs=
9886 names_already_handled=
9887 names_next_round='iconv '
9888 while test -n "$names_next_round"; do
9889 names_this_round="$names_next_round"
9890 names_next_round=
9891 for name in $names_this_round; do
9892 already_handled=
9893 for n in $names_already_handled; do
9894 if test "$n" = "$name"; then
9895 already_handled=yes
9896 break
9898 done
9899 if test -z "$already_handled"; then
9900 names_already_handled="$names_already_handled $name"
9901 uppername=`echo "$name" | sed -e 'y|abcdefghijklmnopqrstuvwxyz./-|ABCDEFGHIJKLMNOPQRSTUVWXYZ___|'`
9902 eval value=\"\$HAVE_LIB$uppername\"
9903 if test -n "$value"; then
9904 if test "$value" = yes; then
9905 eval value=\"\$LIB$uppername\"
9906 test -z "$value" || LIBICONV="${LIBICONV}${LIBICONV:+ }$value"
9907 eval value=\"\$LTLIB$uppername\"
9908 test -z "$value" || LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }$value"
9909 else
9912 else
9913 found_dir=
9914 found_la=
9915 found_so=
9916 found_a=
9917 if test $use_additional = yes; then
9918 if test -n "$shlibext" && test -f "$additional_libdir/lib$name.$shlibext"; then
9919 found_dir="$additional_libdir"
9920 found_so="$additional_libdir/lib$name.$shlibext"
9921 if test -f "$additional_libdir/lib$name.la"; then
9922 found_la="$additional_libdir/lib$name.la"
9924 else
9925 if test -f "$additional_libdir/lib$name.$libext"; then
9926 found_dir="$additional_libdir"
9927 found_a="$additional_libdir/lib$name.$libext"
9928 if test -f "$additional_libdir/lib$name.la"; then
9929 found_la="$additional_libdir/lib$name.la"
9934 if test "X$found_dir" = "X"; then
9935 for x in $LDFLAGS $LTLIBICONV; do
9937 acl_save_prefix="$prefix"
9938 prefix="$acl_final_prefix"
9939 acl_save_exec_prefix="$exec_prefix"
9940 exec_prefix="$acl_final_exec_prefix"
9941 eval x=\"$x\"
9942 exec_prefix="$acl_save_exec_prefix"
9943 prefix="$acl_save_prefix"
9945 case "$x" in
9946 -L*)
9947 dir=`echo "X$x" | sed -e 's/^X-L//'`
9948 if test -n "$shlibext" && test -f "$dir/lib$name.$shlibext"; then
9949 found_dir="$dir"
9950 found_so="$dir/lib$name.$shlibext"
9951 if test -f "$dir/lib$name.la"; then
9952 found_la="$dir/lib$name.la"
9954 else
9955 if test -f "$dir/lib$name.$libext"; then
9956 found_dir="$dir"
9957 found_a="$dir/lib$name.$libext"
9958 if test -f "$dir/lib$name.la"; then
9959 found_la="$dir/lib$name.la"
9964 esac
9965 if test "X$found_dir" != "X"; then
9966 break
9968 done
9970 if test "X$found_dir" != "X"; then
9971 LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-L$found_dir -l$name"
9972 if test "X$found_so" != "X"; then
9973 if test "$enable_rpath" = no || test "X$found_dir" = "X/usr/lib"; then
9974 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
9975 else
9976 haveit=
9977 for x in $ltrpathdirs; do
9978 if test "X$x" = "X$found_dir"; then
9979 haveit=yes
9980 break
9982 done
9983 if test -z "$haveit"; then
9984 ltrpathdirs="$ltrpathdirs $found_dir"
9986 if test "$hardcode_direct" = yes; then
9987 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
9988 else
9989 if test -n "$hardcode_libdir_flag_spec" && test "$hardcode_minus_L" = no; then
9990 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
9991 haveit=
9992 for x in $rpathdirs; do
9993 if test "X$x" = "X$found_dir"; then
9994 haveit=yes
9995 break
9997 done
9998 if test -z "$haveit"; then
9999 rpathdirs="$rpathdirs $found_dir"
10001 else
10002 haveit=
10003 for x in $LDFLAGS $LIBICONV; do
10005 acl_save_prefix="$prefix"
10006 prefix="$acl_final_prefix"
10007 acl_save_exec_prefix="$exec_prefix"
10008 exec_prefix="$acl_final_exec_prefix"
10009 eval x=\"$x\"
10010 exec_prefix="$acl_save_exec_prefix"
10011 prefix="$acl_save_prefix"
10013 if test "X$x" = "X-L$found_dir"; then
10014 haveit=yes
10015 break
10017 done
10018 if test -z "$haveit"; then
10019 LIBICONV="${LIBICONV}${LIBICONV:+ }-L$found_dir"
10021 if test "$hardcode_minus_L" != no; then
10022 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
10023 else
10024 LIBICONV="${LIBICONV}${LIBICONV:+ }-l$name"
10029 else
10030 if test "X$found_a" != "X"; then
10031 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_a"
10032 else
10033 LIBICONV="${LIBICONV}${LIBICONV:+ }-L$found_dir -l$name"
10036 additional_includedir=
10037 case "$found_dir" in
10038 */lib | */lib/)
10039 basedir=`echo "X$found_dir" | sed -e 's,^X,,' -e 's,/lib/*$,,'`
10040 additional_includedir="$basedir/include"
10042 esac
10043 if test "X$additional_includedir" != "X"; then
10044 if test "X$additional_includedir" != "X/usr/include"; then
10045 haveit=
10046 if test "X$additional_includedir" = "X/usr/local/include"; then
10047 if test -n "$GCC"; then
10048 case $host_os in
10049 linux*) haveit=yes;;
10050 esac
10053 if test -z "$haveit"; then
10054 for x in $CPPFLAGS $INCICONV; do
10056 acl_save_prefix="$prefix"
10057 prefix="$acl_final_prefix"
10058 acl_save_exec_prefix="$exec_prefix"
10059 exec_prefix="$acl_final_exec_prefix"
10060 eval x=\"$x\"
10061 exec_prefix="$acl_save_exec_prefix"
10062 prefix="$acl_save_prefix"
10064 if test "X$x" = "X-I$additional_includedir"; then
10065 haveit=yes
10066 break
10068 done
10069 if test -z "$haveit"; then
10070 if test -d "$additional_includedir"; then
10071 INCICONV="${INCICONV}${INCICONV:+ }-I$additional_includedir"
10077 if test -n "$found_la"; then
10078 save_libdir="$libdir"
10079 case "$found_la" in
10080 */* | *\\*) . "$found_la" ;;
10081 *) . "./$found_la" ;;
10082 esac
10083 libdir="$save_libdir"
10084 for dep in $dependency_libs; do
10085 case "$dep" in
10086 -L*)
10087 additional_libdir=`echo "X$dep" | sed -e 's/^X-L//'`
10088 if test "X$additional_libdir" != "X/usr/lib"; then
10089 haveit=
10090 if test "X$additional_libdir" = "X/usr/local/lib"; then
10091 if test -n "$GCC"; then
10092 case $host_os in
10093 linux*) haveit=yes;;
10094 esac
10097 if test -z "$haveit"; then
10098 haveit=
10099 for x in $LDFLAGS $LIBICONV; do
10101 acl_save_prefix="$prefix"
10102 prefix="$acl_final_prefix"
10103 acl_save_exec_prefix="$exec_prefix"
10104 exec_prefix="$acl_final_exec_prefix"
10105 eval x=\"$x\"
10106 exec_prefix="$acl_save_exec_prefix"
10107 prefix="$acl_save_prefix"
10109 if test "X$x" = "X-L$additional_libdir"; then
10110 haveit=yes
10111 break
10113 done
10114 if test -z "$haveit"; then
10115 if test -d "$additional_libdir"; then
10116 LIBICONV="${LIBICONV}${LIBICONV:+ }-L$additional_libdir"
10119 haveit=
10120 for x in $LDFLAGS $LTLIBICONV; do
10122 acl_save_prefix="$prefix"
10123 prefix="$acl_final_prefix"
10124 acl_save_exec_prefix="$exec_prefix"
10125 exec_prefix="$acl_final_exec_prefix"
10126 eval x=\"$x\"
10127 exec_prefix="$acl_save_exec_prefix"
10128 prefix="$acl_save_prefix"
10130 if test "X$x" = "X-L$additional_libdir"; then
10131 haveit=yes
10132 break
10134 done
10135 if test -z "$haveit"; then
10136 if test -d "$additional_libdir"; then
10137 LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-L$additional_libdir"
10143 -R*)
10144 dir=`echo "X$dep" | sed -e 's/^X-R//'`
10145 if test "$enable_rpath" != no; then
10146 haveit=
10147 for x in $rpathdirs; do
10148 if test "X$x" = "X$dir"; then
10149 haveit=yes
10150 break
10152 done
10153 if test -z "$haveit"; then
10154 rpathdirs="$rpathdirs $dir"
10156 haveit=
10157 for x in $ltrpathdirs; do
10158 if test "X$x" = "X$dir"; then
10159 haveit=yes
10160 break
10162 done
10163 if test -z "$haveit"; then
10164 ltrpathdirs="$ltrpathdirs $dir"
10168 -l*)
10169 names_next_round="$names_next_round "`echo "X$dep" | sed -e 's/^X-l//'`
10171 *.la)
10172 names_next_round="$names_next_round "`echo "X$dep" | sed -e 's,^X.*/,,' -e 's,^lib,,' -e 's,\.la$,,'`
10175 LIBICONV="${LIBICONV}${LIBICONV:+ }$dep"
10176 LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }$dep"
10178 esac
10179 done
10181 else
10182 LIBICONV="${LIBICONV}${LIBICONV:+ }-l$name"
10183 LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-l$name"
10187 done
10188 done
10189 if test "X$rpathdirs" != "X"; then
10190 if test -n "$hardcode_libdir_separator"; then
10191 alldirs=
10192 for found_dir in $rpathdirs; do
10193 alldirs="${alldirs}${alldirs:+$hardcode_libdir_separator}$found_dir"
10194 done
10195 acl_save_libdir="$libdir"
10196 libdir="$alldirs"
10197 eval flag=\"$hardcode_libdir_flag_spec\"
10198 libdir="$acl_save_libdir"
10199 LIBICONV="${LIBICONV}${LIBICONV:+ }$flag"
10200 else
10201 for found_dir in $rpathdirs; do
10202 acl_save_libdir="$libdir"
10203 libdir="$found_dir"
10204 eval flag=\"$hardcode_libdir_flag_spec\"
10205 libdir="$acl_save_libdir"
10206 LIBICONV="${LIBICONV}${LIBICONV:+ }$flag"
10207 done
10210 if test "X$ltrpathdirs" != "X"; then
10211 for found_dir in $ltrpathdirs; do
10212 LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-R$found_dir"
10213 done
10222 am_save_CPPFLAGS="$CPPFLAGS"
10224 for element in $INCICONV; do
10225 haveit=
10226 for x in $CPPFLAGS; do
10228 acl_save_prefix="$prefix"
10229 prefix="$acl_final_prefix"
10230 acl_save_exec_prefix="$exec_prefix"
10231 exec_prefix="$acl_final_exec_prefix"
10232 eval x=\"$x\"
10233 exec_prefix="$acl_save_exec_prefix"
10234 prefix="$acl_save_prefix"
10236 if test "X$x" = "X$element"; then
10237 haveit=yes
10238 break
10240 done
10241 if test -z "$haveit"; then
10242 CPPFLAGS="${CPPFLAGS}${CPPFLAGS:+ }$element"
10244 done
10247 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for iconv" >&5
10248 $as_echo_n "checking for iconv... " >&6; }
10249 if test "${am_cv_func_iconv+set}" = set; then :
10250 $as_echo_n "(cached) " >&6
10251 else
10253 am_cv_func_iconv="no, consider installing GNU libiconv"
10254 am_cv_lib_iconv=no
10255 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10256 /* end confdefs.h. */
10257 #include <stdlib.h>
10258 #include <iconv.h>
10260 main ()
10262 iconv_t cd = iconv_open("","");
10263 iconv(cd,NULL,NULL,NULL,NULL);
10264 iconv_close(cd);
10266 return 0;
10268 _ACEOF
10269 if ac_fn_cxx_try_link "$LINENO"; then :
10270 am_cv_func_iconv=yes
10272 rm -f core conftest.err conftest.$ac_objext \
10273 conftest$ac_exeext conftest.$ac_ext
10274 if test "$am_cv_func_iconv" != yes; then
10275 am_save_LIBS="$LIBS"
10276 LIBS="$LIBS $LIBICONV"
10277 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10278 /* end confdefs.h. */
10279 #include <stdlib.h>
10280 #include <iconv.h>
10282 main ()
10284 iconv_t cd = iconv_open("","");
10285 iconv(cd,NULL,NULL,NULL,NULL);
10286 iconv_close(cd);
10288 return 0;
10290 _ACEOF
10291 if ac_fn_cxx_try_link "$LINENO"; then :
10292 am_cv_lib_iconv=yes
10293 am_cv_func_iconv=yes
10295 rm -f core conftest.err conftest.$ac_objext \
10296 conftest$ac_exeext conftest.$ac_ext
10297 LIBS="$am_save_LIBS"
10301 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_func_iconv" >&5
10302 $as_echo "$am_cv_func_iconv" >&6; }
10303 if test "$am_cv_func_iconv" = yes; then
10305 $as_echo "#define HAVE_ICONV 1" >>confdefs.h
10308 if test "$am_cv_lib_iconv" = yes; then
10309 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to link with libiconv" >&5
10310 $as_echo_n "checking how to link with libiconv... " >&6; }
10311 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIBICONV" >&5
10312 $as_echo "$LIBICONV" >&6; }
10313 else
10314 CPPFLAGS="$am_save_CPPFLAGS"
10315 LIBICONV=
10316 LTLIBICONV=
10321 if test "$am_cv_func_iconv" = yes; then
10322 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for iconv declaration" >&5
10323 $as_echo_n "checking for iconv declaration... " >&6; }
10324 if test "${am_cv_proto_iconv+set}" = set; then :
10325 $as_echo_n "(cached) " >&6
10326 else
10328 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10329 /* end confdefs.h. */
10331 #include <stdlib.h>
10332 #include <iconv.h>
10333 extern
10334 #ifdef __cplusplus
10336 #endif
10337 #if defined(__STDC__) || defined(__cplusplus)
10338 size_t iconv (iconv_t cd, char * *inbuf, size_t *inbytesleft, char * *outbuf, size_t *outbytesleft);
10339 #else
10340 size_t iconv();
10341 #endif
10344 main ()
10348 return 0;
10350 _ACEOF
10351 if ac_fn_cxx_try_compile "$LINENO"; then :
10352 am_cv_proto_iconv_arg1=""
10353 else
10354 am_cv_proto_iconv_arg1="const"
10356 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10357 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);"
10360 am_cv_proto_iconv=`echo "$am_cv_proto_iconv" | tr -s ' ' | sed -e 's/( /(/'`
10361 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${ac_t:-
10362 }$am_cv_proto_iconv" >&5
10363 $as_echo "${ac_t:-
10364 }$am_cv_proto_iconv" >&6; }
10366 cat >>confdefs.h <<_ACEOF
10367 #define ICONV_CONST $am_cv_proto_iconv_arg1
10368 _ACEOF
10372 ac_ext=c
10373 ac_cpp='$CPP $CPPFLAGS'
10374 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
10375 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
10376 ac_compiler_gnu=$ac_cv_c_compiler_gnu
10379 # Until we have in-tree GNU iconv:
10380 LIBICONV_DEP=
10384 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for LC_MESSAGES" >&5
10385 $as_echo_n "checking for LC_MESSAGES... " >&6; }
10386 if test "${am_cv_val_LC_MESSAGES+set}" = set; then :
10387 $as_echo_n "(cached) " >&6
10388 else
10389 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10390 /* end confdefs.h. */
10391 #include <locale.h>
10393 main ()
10395 return LC_MESSAGES
10397 return 0;
10399 _ACEOF
10400 if ac_fn_c_try_link "$LINENO"; then :
10401 am_cv_val_LC_MESSAGES=yes
10402 else
10403 am_cv_val_LC_MESSAGES=no
10405 rm -f core conftest.err conftest.$ac_objext \
10406 conftest$ac_exeext conftest.$ac_ext
10408 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_val_LC_MESSAGES" >&5
10409 $as_echo "$am_cv_val_LC_MESSAGES" >&6; }
10410 if test $am_cv_val_LC_MESSAGES = yes; then
10412 $as_echo "#define HAVE_LC_MESSAGES 1" >>confdefs.h
10418 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for nl_langinfo and CODESET" >&5
10419 $as_echo_n "checking for nl_langinfo and CODESET... " >&6; }
10420 if test "${am_cv_langinfo_codeset+set}" = set; then :
10421 $as_echo_n "(cached) " >&6
10422 else
10423 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10424 /* end confdefs.h. */
10425 #include <langinfo.h>
10427 main ()
10429 char* cs = nl_langinfo(CODESET);
10431 return 0;
10433 _ACEOF
10434 if ac_fn_c_try_link "$LINENO"; then :
10435 am_cv_langinfo_codeset=yes
10436 else
10437 am_cv_langinfo_codeset=no
10439 rm -f core conftest.err conftest.$ac_objext \
10440 conftest$ac_exeext conftest.$ac_ext
10443 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_langinfo_codeset" >&5
10444 $as_echo "$am_cv_langinfo_codeset" >&6; }
10445 if test $am_cv_langinfo_codeset = yes; then
10447 $as_echo "#define HAVE_LANGINFO_CODESET 1" >>confdefs.h
10452 # We will need to find libiberty.h and ansidecl.h
10453 saved_CFLAGS="$CFLAGS"
10454 CFLAGS="$CFLAGS -I${srcdir} -I${srcdir}/../include $GMPINC"
10455 saved_CXXFLAGS="$CXXFLAGS"
10456 CXXFLAGS="$CXXFLAGS -I${srcdir} -I${srcdir}/../include $GMPINC"
10457 for ac_func in getenv atol asprintf sbrk abort atof getcwd getwd \
10458 strsignal strstr stpcpy strverscmp \
10459 errno snprintf vsnprintf vasprintf malloc realloc calloc \
10460 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
10462 ac_tr_decl=`$as_echo "HAVE_DECL_$ac_func" | $as_tr_cpp`
10463 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $ac_func is declared" >&5
10464 $as_echo_n "checking whether $ac_func is declared... " >&6; }
10465 if { as_var=gcc_cv_have_decl_$ac_func; eval "test \"\${$as_var+set}\" = set"; }; then :
10466 $as_echo_n "(cached) " >&6
10467 else
10468 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10469 /* end confdefs.h. */
10470 #undef $ac_tr_decl
10471 #define $ac_tr_decl 1
10473 #include "ansidecl.h"
10474 #include "system.h"
10477 main ()
10479 #ifndef $ac_func
10480 char *(*pfn) = (char *(*)) $ac_func ;
10481 #endif
10483 return 0;
10485 _ACEOF
10486 if ac_fn_c_try_compile "$LINENO"; then :
10487 eval "gcc_cv_have_decl_$ac_func=yes"
10488 else
10489 eval "gcc_cv_have_decl_$ac_func=no"
10491 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10494 if eval "test \"`echo '$gcc_cv_have_decl_'$ac_func`\" = yes"; then
10495 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
10496 $as_echo "yes" >&6; } ; cat >>confdefs.h <<_ACEOF
10497 #define $ac_tr_decl 1
10498 _ACEOF
10500 else
10501 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10502 $as_echo "no" >&6; } ; cat >>confdefs.h <<_ACEOF
10503 #define $ac_tr_decl 0
10504 _ACEOF
10508 done
10511 for ac_func in getrlimit setrlimit getrusage
10513 ac_tr_decl=`$as_echo "HAVE_DECL_$ac_func" | $as_tr_cpp`
10514 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $ac_func is declared" >&5
10515 $as_echo_n "checking whether $ac_func is declared... " >&6; }
10516 if { as_var=gcc_cv_have_decl_$ac_func; eval "test \"\${$as_var+set}\" = set"; }; then :
10517 $as_echo_n "(cached) " >&6
10518 else
10519 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10520 /* end confdefs.h. */
10521 #undef $ac_tr_decl
10522 #define $ac_tr_decl 1
10524 #include "ansidecl.h"
10525 #include "system.h"
10526 #ifdef HAVE_SYS_RESOURCE_H
10527 #include <sys/resource.h>
10528 #endif
10532 main ()
10534 #ifndef $ac_func
10535 char *(*pfn) = (char *(*)) $ac_func ;
10536 #endif
10538 return 0;
10540 _ACEOF
10541 if ac_fn_c_try_compile "$LINENO"; then :
10542 eval "gcc_cv_have_decl_$ac_func=yes"
10543 else
10544 eval "gcc_cv_have_decl_$ac_func=no"
10546 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10549 if eval "test \"`echo '$gcc_cv_have_decl_'$ac_func`\" = yes"; then
10550 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
10551 $as_echo "yes" >&6; } ; cat >>confdefs.h <<_ACEOF
10552 #define $ac_tr_decl 1
10553 _ACEOF
10555 else
10556 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10557 $as_echo "no" >&6; } ; cat >>confdefs.h <<_ACEOF
10558 #define $ac_tr_decl 0
10559 _ACEOF
10563 done
10566 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10567 /* end confdefs.h. */
10569 #include "ansidecl.h"
10570 #include "system.h"
10571 #ifdef HAVE_SYS_RESOURCE_H
10572 #include <sys/resource.h>
10573 #endif
10576 main ()
10578 rlim_t l = 0;
10580 return 0;
10582 _ACEOF
10583 if ac_fn_c_try_compile "$LINENO"; then :
10585 else
10587 $as_echo "#define rlim_t long" >>confdefs.h
10590 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10592 # On AIX 5.2, <ldfcn.h> conflicts with <fcntl.h>, as both define incompatible
10593 # FREAD and FWRITE macros. Fortunately, for GCC's single usage of ldgetname
10594 # in collect2.c, <fcntl.h> isn't visible, but the configure test below needs
10595 # to undef these macros to get the correct value for HAVE_DECL_LDGETNAME.
10596 for ac_func in ldgetname
10598 ac_tr_decl=`$as_echo "HAVE_DECL_$ac_func" | $as_tr_cpp`
10599 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $ac_func is declared" >&5
10600 $as_echo_n "checking whether $ac_func is declared... " >&6; }
10601 if { as_var=gcc_cv_have_decl_$ac_func; eval "test \"\${$as_var+set}\" = set"; }; then :
10602 $as_echo_n "(cached) " >&6
10603 else
10604 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10605 /* end confdefs.h. */
10606 #undef $ac_tr_decl
10607 #define $ac_tr_decl 1
10609 #include "ansidecl.h"
10610 #include "system.h"
10611 #ifdef HAVE_LDFCN_H
10612 #undef FREAD
10613 #undef FWRITE
10614 #include <ldfcn.h>
10615 #endif
10619 main ()
10621 #ifndef $ac_func
10622 char *(*pfn) = (char *(*)) $ac_func ;
10623 #endif
10625 return 0;
10627 _ACEOF
10628 if ac_fn_c_try_compile "$LINENO"; then :
10629 eval "gcc_cv_have_decl_$ac_func=yes"
10630 else
10631 eval "gcc_cv_have_decl_$ac_func=no"
10633 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10636 if eval "test \"`echo '$gcc_cv_have_decl_'$ac_func`\" = yes"; then
10637 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
10638 $as_echo "yes" >&6; } ; cat >>confdefs.h <<_ACEOF
10639 #define $ac_tr_decl 1
10640 _ACEOF
10642 else
10643 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10644 $as_echo "no" >&6; } ; cat >>confdefs.h <<_ACEOF
10645 #define $ac_tr_decl 0
10646 _ACEOF
10650 done
10653 for ac_func in times
10655 ac_tr_decl=`$as_echo "HAVE_DECL_$ac_func" | $as_tr_cpp`
10656 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $ac_func is declared" >&5
10657 $as_echo_n "checking whether $ac_func is declared... " >&6; }
10658 if { as_var=gcc_cv_have_decl_$ac_func; eval "test \"\${$as_var+set}\" = set"; }; then :
10659 $as_echo_n "(cached) " >&6
10660 else
10661 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10662 /* end confdefs.h. */
10663 #undef $ac_tr_decl
10664 #define $ac_tr_decl 1
10666 #include "ansidecl.h"
10667 #include "system.h"
10668 #ifdef HAVE_SYS_TIMES_H
10669 #include <sys/times.h>
10670 #endif
10674 main ()
10676 #ifndef $ac_func
10677 char *(*pfn) = (char *(*)) $ac_func ;
10678 #endif
10680 return 0;
10682 _ACEOF
10683 if ac_fn_c_try_compile "$LINENO"; then :
10684 eval "gcc_cv_have_decl_$ac_func=yes"
10685 else
10686 eval "gcc_cv_have_decl_$ac_func=no"
10688 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10691 if eval "test \"`echo '$gcc_cv_have_decl_'$ac_func`\" = yes"; then
10692 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
10693 $as_echo "yes" >&6; } ; cat >>confdefs.h <<_ACEOF
10694 #define $ac_tr_decl 1
10695 _ACEOF
10697 else
10698 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10699 $as_echo "no" >&6; } ; cat >>confdefs.h <<_ACEOF
10700 #define $ac_tr_decl 0
10701 _ACEOF
10705 done
10708 for ac_func in sigaltstack
10710 ac_tr_decl=`$as_echo "HAVE_DECL_$ac_func" | $as_tr_cpp`
10711 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $ac_func is declared" >&5
10712 $as_echo_n "checking whether $ac_func is declared... " >&6; }
10713 if { as_var=gcc_cv_have_decl_$ac_func; eval "test \"\${$as_var+set}\" = set"; }; then :
10714 $as_echo_n "(cached) " >&6
10715 else
10716 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10717 /* end confdefs.h. */
10718 #undef $ac_tr_decl
10719 #define $ac_tr_decl 1
10721 #include "ansidecl.h"
10722 #include "system.h"
10723 #include <signal.h>
10727 main ()
10729 #ifndef $ac_func
10730 char *(*pfn) = (char *(*)) $ac_func ;
10731 #endif
10733 return 0;
10735 _ACEOF
10736 if ac_fn_c_try_compile "$LINENO"; then :
10737 eval "gcc_cv_have_decl_$ac_func=yes"
10738 else
10739 eval "gcc_cv_have_decl_$ac_func=no"
10741 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10744 if eval "test \"`echo '$gcc_cv_have_decl_'$ac_func`\" = yes"; then
10745 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
10746 $as_echo "yes" >&6; } ; cat >>confdefs.h <<_ACEOF
10747 #define $ac_tr_decl 1
10748 _ACEOF
10750 else
10751 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10752 $as_echo "no" >&6; } ; cat >>confdefs.h <<_ACEOF
10753 #define $ac_tr_decl 0
10754 _ACEOF
10758 done
10761 # g++ on Solaris 10+ defines _XOPEN_SOURCE=600, which hides the madvise()
10762 # prototype.
10763 ac_ext=cpp
10764 ac_cpp='$CXXCPP $CPPFLAGS'
10765 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
10766 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
10767 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
10769 for ac_func in madvise
10771 ac_tr_decl=`$as_echo "HAVE_DECL_$ac_func" | $as_tr_cpp`
10772 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $ac_func is declared" >&5
10773 $as_echo_n "checking whether $ac_func is declared... " >&6; }
10774 if { as_var=gcc_cv_have_decl_$ac_func; eval "test \"\${$as_var+set}\" = set"; }; then :
10775 $as_echo_n "(cached) " >&6
10776 else
10777 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10778 /* end confdefs.h. */
10779 #undef $ac_tr_decl
10780 #define $ac_tr_decl 1
10782 #include "ansidecl.h"
10783 #include "system.h"
10787 main ()
10789 #ifndef $ac_func
10790 char *(*pfn) = (char *(*)) $ac_func ;
10791 #endif
10793 return 0;
10795 _ACEOF
10796 if ac_fn_cxx_try_compile "$LINENO"; then :
10797 eval "gcc_cv_have_decl_$ac_func=yes"
10798 else
10799 eval "gcc_cv_have_decl_$ac_func=no"
10801 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10804 if eval "test \"`echo '$gcc_cv_have_decl_'$ac_func`\" = yes"; then
10805 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
10806 $as_echo "yes" >&6; } ; cat >>confdefs.h <<_ACEOF
10807 #define $ac_tr_decl 1
10808 _ACEOF
10810 else
10811 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10812 $as_echo "no" >&6; } ; cat >>confdefs.h <<_ACEOF
10813 #define $ac_tr_decl 0
10814 _ACEOF
10818 done
10820 ac_ext=c
10821 ac_cpp='$CPP $CPPFLAGS'
10822 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
10823 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
10824 ac_compiler_gnu=$ac_cv_c_compiler_gnu
10827 # More time-related stuff.
10828 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for struct tms" >&5
10829 $as_echo_n "checking for struct tms... " >&6; }
10830 if test "${ac_cv_struct_tms+set}" = set; then :
10831 $as_echo_n "(cached) " >&6
10832 else
10834 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10835 /* end confdefs.h. */
10837 #include "ansidecl.h"
10838 #include "system.h"
10839 #ifdef HAVE_SYS_TIMES_H
10840 #include <sys/times.h>
10841 #endif
10844 main ()
10846 struct tms tms;
10848 return 0;
10850 _ACEOF
10851 if ac_fn_c_try_compile "$LINENO"; then :
10852 ac_cv_struct_tms=yes
10853 else
10854 ac_cv_struct_tms=no
10856 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10858 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_struct_tms" >&5
10859 $as_echo "$ac_cv_struct_tms" >&6; }
10860 if test $ac_cv_struct_tms = yes; then
10862 $as_echo "#define HAVE_STRUCT_TMS 1" >>confdefs.h
10866 # use gcc_cv_* here because this doesn't match the behavior of AC_CHECK_TYPE.
10867 # revisit after autoconf 2.50.
10868 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for clock_t" >&5
10869 $as_echo_n "checking for clock_t... " >&6; }
10870 if test "${gcc_cv_type_clock_t+set}" = set; then :
10871 $as_echo_n "(cached) " >&6
10872 else
10874 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10875 /* end confdefs.h. */
10877 #include "ansidecl.h"
10878 #include "system.h"
10881 main ()
10883 clock_t x;
10885 return 0;
10887 _ACEOF
10888 if ac_fn_c_try_compile "$LINENO"; then :
10889 gcc_cv_type_clock_t=yes
10890 else
10891 gcc_cv_type_clock_t=no
10893 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10895 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_type_clock_t" >&5
10896 $as_echo "$gcc_cv_type_clock_t" >&6; }
10897 if test $gcc_cv_type_clock_t = yes; then
10899 $as_echo "#define HAVE_CLOCK_T 1" >>confdefs.h
10903 # Check if F_SETLKW is supported by fcntl.
10904 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for F_SETLKW" >&5
10905 $as_echo_n "checking for F_SETLKW... " >&6; }
10906 if test "${ac_cv_f_setlkw+set}" = set; then :
10907 $as_echo_n "(cached) " >&6
10908 else
10910 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10911 /* end confdefs.h. */
10913 #include <fcntl.h>
10915 main ()
10918 struct flock fl;
10919 fl.l_whence = 0;
10920 fl.l_start = 0;
10921 fl.l_len = 0;
10922 fl.l_pid = 0;
10923 return fcntl (1, F_SETLKW, &fl);
10925 return 0;
10927 _ACEOF
10928 if ac_fn_c_try_compile "$LINENO"; then :
10929 ac_cv_f_setlkw=yes
10930 else
10931 ac_cv_f_setlkw=no
10933 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10935 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_f_setlkw" >&5
10936 $as_echo "$ac_cv_f_setlkw" >&6; }
10937 if test $ac_cv_f_setlkw = yes; then
10939 $as_echo "#define HOST_HAS_F_SETLKW 1" >>confdefs.h
10943 # Restore CFLAGS, CXXFLAGS from before the gcc_AC_NEED_DECLARATIONS tests.
10944 CFLAGS="$saved_CFLAGS"
10945 CXXFLAGS="$saved_CXXFLAGS"
10947 # mkdir takes a single argument on some systems.
10948 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if mkdir takes one argument" >&5
10949 $as_echo_n "checking if mkdir takes one argument... " >&6; }
10950 if test "${gcc_cv_mkdir_takes_one_arg+set}" = set; then :
10951 $as_echo_n "(cached) " >&6
10952 else
10953 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10954 /* end confdefs.h. */
10956 #include <sys/types.h>
10957 #ifdef HAVE_SYS_STAT_H
10958 # include <sys/stat.h>
10959 #endif
10960 #ifdef HAVE_UNISTD_H
10961 # include <unistd.h>
10962 #endif
10963 #ifdef HAVE_DIRECT_H
10964 # include <direct.h>
10965 #endif
10967 main ()
10969 mkdir ("foo", 0);
10971 return 0;
10973 _ACEOF
10974 if ac_fn_c_try_compile "$LINENO"; then :
10975 gcc_cv_mkdir_takes_one_arg=no
10976 else
10977 gcc_cv_mkdir_takes_one_arg=yes
10979 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10981 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_mkdir_takes_one_arg" >&5
10982 $as_echo "$gcc_cv_mkdir_takes_one_arg" >&6; }
10983 if test $gcc_cv_mkdir_takes_one_arg = yes ; then
10985 $as_echo "#define MKDIR_TAKES_ONE_ARG 1" >>confdefs.h
10990 # File extensions
10991 manext='.1'
10992 objext='.o'
10996 # With Setjmp/Longjmp based exception handling.
10997 # Check whether --enable-sjlj-exceptions was given.
10998 if test "${enable_sjlj_exceptions+set}" = set; then :
10999 enableval=$enable_sjlj_exceptions; case $target in
11000 *-*-hpux10*)
11001 if test $enableval != yes; then
11002 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: dwarf2 exceptions not supported, sjlj exceptions forced" >&5
11003 $as_echo "$as_me: WARNING: dwarf2 exceptions not supported, sjlj exceptions forced" >&2;}
11004 enableval=yes
11007 esac
11008 force_sjlj_exceptions=yes
11009 else
11010 case $target in
11011 *-*-hpux10*)
11012 force_sjlj_exceptions=yes
11013 enableval=yes
11015 lm32*-*-*)
11016 force_sjlj_exceptions=yes
11017 enableval=yes
11020 force_sjlj_exceptions=no
11022 esac
11025 if test $force_sjlj_exceptions = yes; then
11026 sjlj=`if test $enableval = yes; then echo 1; else echo 0; fi`
11028 cat >>confdefs.h <<_ACEOF
11029 #define CONFIG_SJLJ_EXCEPTIONS $sjlj
11030 _ACEOF
11034 # --------------------------------------------------------
11035 # Build, host, and target specific configuration fragments
11036 # --------------------------------------------------------
11038 # Collect build-machine-specific information.
11039 . ${srcdir}/config.build
11041 # Collect host-machine-specific information.
11042 . ${srcdir}/config.host
11044 target_gtfiles=
11046 # Collect target-machine-specific information.
11047 . ${srcdir}/config.gcc
11049 extra_objs="${host_extra_objs} ${extra_objs}"
11050 extra_gcc_objs="${host_extra_gcc_objs} ${extra_gcc_objs}"
11052 # Default the target-machine variables that were not explicitly set.
11053 if test x"$tm_file" = x
11054 then tm_file=$cpu_type/$cpu_type.h; fi
11056 if test x"$extra_headers" = x
11057 then extra_headers=; fi
11059 if test x$md_file = x
11060 then md_file=$cpu_type/$cpu_type.md; fi
11062 if test x$out_file = x
11063 then out_file=$cpu_type/$cpu_type.c; fi
11065 if test x"$tmake_file" = x
11066 then tmake_file=$cpu_type/t-$cpu_type
11069 # Support --enable-initfini-array.
11070 if test x$enable_initfini_array != xno; then
11071 tm_file="${tm_file} initfini-array.h"
11074 if test x"$dwarf2" = xyes
11075 then tm_file="$tm_file tm-dwarf2.h"
11078 # Say what files are being used for the output code and MD file.
11079 echo "Using \`$srcdir/config/$out_file' for machine-specific logic."
11080 echo "Using \`$srcdir/config/$md_file' as machine description file."
11082 # If any of the xm_file variables contain nonexistent files, warn
11083 # about them and drop them.
11086 for x in $build_xm_file; do
11087 if test -f $srcdir/config/$x
11088 then bx="$bx $x"
11089 else { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $srcdir/config/$x does not exist." >&5
11090 $as_echo "$as_me: WARNING: $srcdir/config/$x does not exist." >&2;}
11092 done
11093 build_xm_file="$bx"
11096 for x in $host_xm_file; do
11097 if test -f $srcdir/config/$x
11098 then hx="$hx $x"
11099 else { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $srcdir/config/$x does not exist." >&5
11100 $as_echo "$as_me: WARNING: $srcdir/config/$x does not exist." >&2;}
11102 done
11103 host_xm_file="$hx"
11106 for x in $xm_file; do
11107 if test -f $srcdir/config/$x
11108 then tx="$tx $x"
11109 else { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $srcdir/config/$x does not exist." >&5
11110 $as_echo "$as_me: WARNING: $srcdir/config/$x does not exist." >&2;}
11112 done
11113 xm_file="$tx"
11115 count=a
11116 for f in $tm_file; do
11117 count=${count}x
11118 done
11119 if test $count = ax; then
11120 echo "Using \`$srcdir/config/$tm_file' as target machine macro file."
11121 else
11122 echo "Using the following target machine macro files:"
11123 for f in $tm_file; do
11124 echo " $srcdir/config/$f"
11125 done
11128 if test x$need_64bit_hwint = xyes; then
11130 $as_echo "#define NEED_64BIT_HOST_WIDE_INT 1" >>confdefs.h
11134 if test x$use_long_long_for_widest_fast_int = xyes; then
11136 $as_echo "#define USE_LONG_LONG_FOR_WIDEST_FAST_INT 1" >>confdefs.h
11140 gnu_ld_bool=`if test x"$gnu_ld" = x"yes"; then echo 1; else echo 0; fi`
11142 cat >>confdefs.h <<_ACEOF
11143 #define HAVE_GNU_LD $gnu_ld_bool
11144 _ACEOF
11147 gnu_as_bool=`if test x"$gas" = x"yes"; then echo 1; else echo 0; fi`
11149 cat >>confdefs.h <<_ACEOF
11150 #define HAVE_GNU_AS $gnu_as_bool
11151 _ACEOF
11154 count=a
11155 for f in $host_xm_file; do
11156 count=${count}x
11157 done
11158 if test $count = a; then
11160 elif test $count = ax; then
11161 echo "Using \`$srcdir/config/$host_xm_file' as host machine macro file."
11162 else
11163 echo "Using the following host machine macro files:"
11164 for f in $host_xm_file; do
11165 echo " $srcdir/config/$f"
11166 done
11168 echo "Using ${out_host_hook_obj} for host machine hooks."
11170 if test "$host_xm_file" != "$build_xm_file"; then
11171 count=a
11172 for f in $build_xm_file; do
11173 count=${count}x
11174 done
11175 if test $count = a; then
11177 elif test $count = ax; then
11178 echo "Using \`$srcdir/config/$build_xm_file' as build machine macro file."
11179 else
11180 echo "Using the following build machine macro files:"
11181 for f in $build_xm_file; do
11182 echo " $srcdir/config/$f"
11183 done
11187 if test -n "$configured_native_system_header_dir"; then
11188 native_system_header_dir=$configured_native_system_header_dir
11190 NATIVE_SYSTEM_HEADER_DIR="$native_system_header_dir"
11193 case ${host} in
11194 powerpc*-*-darwin*)
11195 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether mcontext_t fields have underscores" >&5
11196 $as_echo_n "checking whether mcontext_t fields have underscores... " >&6; }
11197 if test "${gcc_cv_mcontext_underscores+set}" = set; then :
11198 $as_echo_n "(cached) " >&6
11199 else
11200 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11201 /* end confdefs.h. */
11203 #include <sys/cdefs.h>
11204 #include <sys/signal.h>
11205 #include <ucontext.h>
11206 int main() { mcontext_t m; if (m->ss.srr0) return 0; return 0; }
11208 _ACEOF
11209 if ac_fn_c_try_compile "$LINENO"; then :
11210 gcc_cv_mcontext_underscores=no
11211 else
11212 gcc_cv_mcontext_underscores=yes
11214 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11216 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_mcontext_underscores" >&5
11217 $as_echo "$gcc_cv_mcontext_underscores" >&6; }
11218 if test $gcc_cv_mcontext_underscores = yes; then
11220 $as_echo "#define HAS_MCONTEXT_T_UNDERSCORES /**/" >>confdefs.h
11224 esac
11226 # ---------
11227 # Threading
11228 # ---------
11230 # Check if a valid thread package
11231 case ${enable_threads} in
11232 "" | no)
11233 # No threads
11234 target_thread_file='single'
11236 yes)
11237 # default
11238 target_thread_file='single'
11240 aix | dce | lynx | mipssde | posix | rtems | \
11241 single | tpf | vxworks | win32)
11242 target_thread_file=${enable_threads}
11245 echo "${enable_threads} is an unknown thread package" 1>&2
11246 exit 1
11248 esac
11250 if test x${thread_file} = x; then
11251 # No thread file set by target-specific clauses in config.gcc,
11252 # so use file chosen by default logic above
11253 thread_file=${target_thread_file}
11256 # --------
11257 # UNSORTED
11258 # --------
11260 use_cxa_atexit=no
11261 if test x$enable___cxa_atexit = xyes || \
11262 test x$enable___cxa_atexit = x -a x$default_use_cxa_atexit = xyes; then
11263 if test x$host = x$target; then
11264 case $host in
11265 # mingw32 doesn't have __cxa_atexit but uses atexit registration
11266 # keyed to flag_use_cxa_atexit
11267 *-*-mingw32*)
11268 use_cxa_atexit=yes
11270 powerpc-ibm-aix*)
11271 use_cxa_atexit=yes
11274 ac_fn_c_check_func "$LINENO" "__cxa_atexit" "ac_cv_func___cxa_atexit"
11275 if test "x$ac_cv_func___cxa_atexit" = x""yes; then :
11276 use_cxa_atexit=yes
11277 else
11278 echo "__cxa_atexit can't be enabled on this target"
11282 esac
11283 else
11284 # We can't check for __cxa_atexit when building a cross, so assume
11285 # it is available
11286 use_cxa_atexit=yes
11288 if test x$use_cxa_atexit = xyes; then
11290 $as_echo "#define DEFAULT_USE_CXA_ATEXIT 2" >>confdefs.h
11295 # Look for a file containing extra machine modes.
11296 if test -n "$extra_modes" && test -f $srcdir/config/$extra_modes; then
11297 extra_modes_file='$(srcdir)'/config/${extra_modes}
11300 cat >>confdefs.h <<_ACEOF
11301 #define EXTRA_MODES_FILE "config/$extra_modes"
11302 _ACEOF
11306 # Convert extra_options into a form suitable for Makefile use.
11307 extra_opt_files=
11308 all_opt_files=
11309 for f in $extra_options; do
11310 extra_opt_files="$extra_opt_files \$(srcdir)/config/$f"
11311 all_opt_files="$all_opt_files $srcdir/config/$f"
11312 done
11315 # auto-host.h is the file containing items generated by autoconf and is
11316 # the first file included by config.h.
11317 # If host=build, it is correct to have bconfig include auto-host.h
11318 # as well. If host!=build, we are in error and need to do more
11319 # work to find out the build config parameters.
11320 if test x$host = x$build
11321 then
11322 build_auto=auto-host.h
11323 else
11324 # We create a subdir, then run autoconf in the subdir.
11325 # To prevent recursion we set host and build for the new
11326 # invocation of configure to the build for this invocation
11327 # of configure.
11328 tempdir=build.$$
11329 rm -rf $tempdir
11330 mkdir $tempdir
11331 cd $tempdir
11332 case ${srcdir} in
11333 /* | A-Za-z:\\/* ) realsrcdir=${srcdir};;
11334 *) realsrcdir=../${srcdir};;
11335 esac
11336 # Clearing GMPINC is necessary to prevent host headers being
11337 # used by the build compiler. Defining GENERATOR_FILE stops
11338 # system.h from including gmp.h.
11339 CC="${CC_FOR_BUILD}" CFLAGS="${CFLAGS_FOR_BUILD}" \
11340 CXX="${CXX_FOR_BUILD}" CXXFLAGS="${CXXFLAGS_FOR_BUILD}" \
11341 LD="${LD_FOR_BUILD}" LDFLAGS="${LDFLAGS_FOR_BUILD}" \
11342 GMPINC="" CPPFLAGS="${CPPFLAGS} -DGENERATOR_FILE" \
11343 ${realsrcdir}/configure \
11344 --enable-languages=${enable_languages-all} \
11345 --target=$target_alias --host=$build_alias --build=$build_alias
11347 # We just finished tests for the build machine, so rename
11348 # the file auto-build.h in the gcc directory.
11349 mv auto-host.h ../auto-build.h
11350 cd ..
11351 rm -rf $tempdir
11352 build_auto=auto-build.h
11356 tm_file="${tm_file} defaults.h"
11357 tm_p_file="${tm_p_file} tm-preds.h"
11358 host_xm_file="auto-host.h ansidecl.h ${host_xm_file}"
11359 build_xm_file="${build_auto} ansidecl.h ${build_xm_file}"
11360 # We don't want ansidecl.h in target files, write code there in ISO/GNU C.
11361 # put this back in temporarily.
11362 xm_file="auto-host.h ansidecl.h ${xm_file}"
11364 # --------
11365 # UNSORTED
11366 # --------
11368 # Compile in configure arguments.
11369 if test -f configargs.h ; then
11370 # Being re-configured.
11371 gcc_config_arguments=`grep configuration_arguments configargs.h | sed -e 's/.*"\([^"]*\)".*/\1/'`
11372 gcc_config_arguments="$gcc_config_arguments : (reconfigured) $TOPLEVEL_CONFIGURE_ARGUMENTS"
11373 else
11374 gcc_config_arguments="$TOPLEVEL_CONFIGURE_ARGUMENTS"
11377 # Double all backslashes and backslash all quotes to turn
11378 # gcc_config_arguments into a C string.
11379 sed -e 's/\\/\\\\/g; s/"/\\"/g' <<EOF >conftest.out
11380 $gcc_config_arguments
11382 gcc_config_arguments_str=`cat conftest.out`
11383 rm -f conftest.out
11385 cat > configargs.h <<EOF
11386 /* Generated automatically. */
11387 static const char configuration_arguments[] = "$gcc_config_arguments_str";
11388 static const char thread_model[] = "$thread_file";
11390 static const struct {
11391 const char *name, *value;
11392 } configure_default_options[] = $configure_default_options;
11395 gcc_BASEVER=`cat $srcdir/BASE-VER`
11396 gcc_DEVPHASE=`cat $srcdir/DEV-PHASE`
11397 gcc_DATESTAMP=`cat $srcdir/DATESTAMP`
11398 if test -f $srcdir/REVISION ; then
11399 gcc_REVISION=`cat $srcdir/REVISION`
11400 else
11401 gcc_REVISION=""
11403 cat > plugin-version.h <<EOF
11404 #include "configargs.h"
11406 #define GCCPLUGIN_VERSION_MAJOR `echo $gcc_BASEVER | sed -e 's/^\([0-9]*\).*$/\1/'`
11407 #define GCCPLUGIN_VERSION_MINOR `echo $gcc_BASEVER | sed -e 's/^[0-9]*\.\([0-9]*\).*$/\1/'`
11408 #define GCCPLUGIN_VERSION_PATCHLEVEL `echo $gcc_BASEVER | sed -e 's/^[0-9]*\.[0-9]*\.\([0-9]*\)$/\1/'`
11409 #define GCCPLUGIN_VERSION (GCCPLUGIN_VERSION_MAJOR*1000 + GCCPLUGIN_VERSION_MINOR)
11411 static char basever[] = "$gcc_BASEVER";
11412 static char datestamp[] = "$gcc_DATESTAMP";
11413 static char devphase[] = "$gcc_DEVPHASE";
11414 static char revision[] = "$gcc_REVISION";
11416 /* FIXME plugins: We should make the version information more precise.
11417 One way to do is to add a checksum. */
11419 static struct plugin_gcc_version gcc_version = {basever, datestamp,
11420 devphase, revision,
11421 configuration_arguments};
11424 # Internationalization
11425 # If we haven't got the data from the intl directory,
11426 # assume NLS is disabled.
11427 USE_NLS=no
11428 LIBINTL=
11429 LIBINTL_DEP=
11430 INCINTL=
11431 XGETTEXT=
11432 GMSGFMT=
11433 POSUB=
11435 if test -f ../intl/config.intl; then
11436 . ../intl/config.intl
11438 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether NLS is requested" >&5
11439 $as_echo_n "checking whether NLS is requested... " >&6; }
11440 if test x"$USE_NLS" != xyes; then
11441 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11442 $as_echo "no" >&6; }
11443 else
11444 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11445 $as_echo "yes" >&6; }
11447 $as_echo "#define ENABLE_NLS 1" >>confdefs.h
11450 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for catalogs to be installed" >&5
11451 $as_echo_n "checking for catalogs to be installed... " >&6; }
11452 # Look for .po and .gmo files in the source directory.
11453 CATALOGS=
11454 XLINGUAS=
11455 for cat in $srcdir/po/*.gmo $srcdir/po/*.po; do
11456 # If there aren't any .gmo files the shell will give us the
11457 # literal string "../path/to/srcdir/po/*.gmo" which has to be
11458 # weeded out.
11459 case "$cat" in *\**)
11460 continue;;
11461 esac
11462 # The quadruple backslash is collapsed to a double backslash
11463 # by the backticks, then collapsed again by the double quotes,
11464 # leaving us with one backslash in the sed expression (right
11465 # before the dot that mustn't act as a wildcard).
11466 cat=`echo $cat | sed -e "s!$srcdir/po/!!" -e "s!\\\\.po!.gmo!"`
11467 lang=`echo $cat | sed -e "s!\\\\.gmo!!"`
11468 # The user is allowed to set LINGUAS to a list of languages to
11469 # install catalogs for. If it's empty that means "all of them."
11470 if test "x$LINGUAS" = x; then
11471 CATALOGS="$CATALOGS $cat"
11472 XLINGUAS="$XLINGUAS $lang"
11473 else
11474 case "$LINGUAS" in *$lang*)
11475 CATALOGS="$CATALOGS $cat"
11476 XLINGUAS="$XLINGUAS $lang"
11478 esac
11480 done
11481 LINGUAS="$XLINGUAS"
11482 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LINGUAS" >&5
11483 $as_echo "$LINGUAS" >&6; }
11486 DATADIRNAME=share
11488 INSTOBJEXT=.mo
11490 GENCAT=gencat
11492 CATOBJEXT=.gmo
11496 # If LIBINTL contains LIBICONV, then clear LIBICONV so we don't get
11497 # -liconv on the link line twice.
11498 case "$LIBINTL" in *$LIBICONV*)
11499 LIBICONV= ;;
11500 esac
11502 # Check whether --enable-secureplt was given.
11503 if test "${enable_secureplt+set}" = set; then :
11504 enableval=$enable_secureplt;
11508 # Check whether --enable-leading-mingw64-underscores was given.
11509 if test "${enable_leading_mingw64_underscores+set}" = set; then :
11510 enableval=$enable_leading_mingw64_underscores;
11513 if test x"$enable_leading_mingw64_underscores" = xyes ; then :
11515 $as_echo "#define USE_MINGW64_LEADING_UNDERSCORES 1" >>confdefs.h
11519 # Check whether --enable-cld was given.
11520 if test "${enable_cld+set}" = set; then :
11521 enableval=$enable_cld;
11522 else
11523 enable_cld=no
11527 # Check whether --enable-frame-pointer was given.
11528 if test "${enable_frame_pointer+set}" = set; then :
11529 enableval=$enable_frame_pointer;
11530 else
11532 case $target_os in
11533 linux* | darwin[8912]*)
11534 # Enable -fomit-frame-pointer by default for Linux and Darwin with
11535 # DWARF2.
11536 enable_frame_pointer=no
11539 enable_frame_pointer=yes
11541 esac
11546 # Windows32 Registry support for specifying GCC installation paths.
11547 # Check whether --enable-win32-registry was given.
11548 if test "${enable_win32_registry+set}" = set; then :
11549 enableval=$enable_win32_registry;
11553 case $host_os in
11554 win32 | pe | cygwin* | mingw32* | uwin*)
11555 if test "x$enable_win32_registry" != xno; then
11556 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing RegOpenKeyExA" >&5
11557 $as_echo_n "checking for library containing RegOpenKeyExA... " >&6; }
11558 if test "${ac_cv_search_RegOpenKeyExA+set}" = set; then :
11559 $as_echo_n "(cached) " >&6
11560 else
11561 ac_func_search_save_LIBS=$LIBS
11562 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11563 /* end confdefs.h. */
11565 /* Override any GCC internal prototype to avoid an error.
11566 Use char because int might match the return type of a GCC
11567 builtin and then its argument prototype would still apply. */
11568 #ifdef __cplusplus
11569 extern "C"
11570 #endif
11571 char RegOpenKeyExA ();
11573 main ()
11575 return RegOpenKeyExA ();
11577 return 0;
11579 _ACEOF
11580 for ac_lib in '' advapi32; do
11581 if test -z "$ac_lib"; then
11582 ac_res="none required"
11583 else
11584 ac_res=-l$ac_lib
11585 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
11587 if ac_fn_c_try_link "$LINENO"; then :
11588 ac_cv_search_RegOpenKeyExA=$ac_res
11590 rm -f core conftest.err conftest.$ac_objext \
11591 conftest$ac_exeext
11592 if test "${ac_cv_search_RegOpenKeyExA+set}" = set; then :
11593 break
11595 done
11596 if test "${ac_cv_search_RegOpenKeyExA+set}" = set; then :
11598 else
11599 ac_cv_search_RegOpenKeyExA=no
11601 rm conftest.$ac_ext
11602 LIBS=$ac_func_search_save_LIBS
11604 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_RegOpenKeyExA" >&5
11605 $as_echo "$ac_cv_search_RegOpenKeyExA" >&6; }
11606 ac_res=$ac_cv_search_RegOpenKeyExA
11607 if test "$ac_res" != no; then :
11608 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
11610 else
11611 enable_win32_registry=no
11616 if test "x$enable_win32_registry" != xno; then
11618 $as_echo "#define ENABLE_WIN32_REGISTRY 1" >>confdefs.h
11621 if test "x$enable_win32_registry" != xyes \
11622 && test "x$enable_win32_registry" != x; then
11624 cat >>confdefs.h <<_ACEOF
11625 #define WIN32_REGISTRY_KEY "$enable_win32_registry"
11626 _ACEOF
11631 esac
11633 # Get an absolute path to the GCC top-level source directory
11634 holddir=`${PWDCMD-pwd}`
11635 cd $srcdir
11636 topdir=`${PWDCMD-pwd}`
11637 cd $holddir
11639 # Conditionalize the makefile for this host machine.
11640 xmake_file=
11641 for f in ${host_xmake_file}
11643 if test -f ${srcdir}/config/$f
11644 then
11645 xmake_file="${xmake_file} \$(srcdir)/config/$f"
11647 done
11649 # Conditionalize the makefile for this target machine.
11650 tmake_file_=
11651 for f in ${tmake_file}
11653 if test -f ${srcdir}/config/$f
11654 then
11655 tmake_file_="${tmake_file_} \$(srcdir)/config/$f"
11657 done
11658 tmake_file="${tmake_file_}"
11660 out_object_file=`basename $out_file .c`.o
11661 common_out_object_file=`basename $common_out_file .c`.o
11663 tm_file_list="options.h"
11664 tm_include_list="options.h insn-constants.h"
11665 for f in $tm_file; do
11666 case $f in
11667 ./* )
11668 f=`echo $f | sed 's/^..//'`
11669 tm_file_list="${tm_file_list} $f"
11670 tm_include_list="${tm_include_list} $f"
11672 defaults.h )
11673 tm_file_list="${tm_file_list} \$(srcdir)/$f"
11674 tm_include_list="${tm_include_list} $f"
11677 tm_file_list="${tm_file_list} \$(srcdir)/config/$f"
11678 tm_include_list="${tm_include_list} config/$f"
11680 esac
11681 done
11683 tm_p_file_list=
11684 tm_p_include_list=
11685 for f in $tm_p_file; do
11686 case $f in
11687 tm-preds.h )
11688 tm_p_file_list="${tm_p_file_list} $f"
11689 tm_p_include_list="${tm_p_include_list} $f"
11692 tm_p_file_list="${tm_p_file_list} \$(srcdir)/config/$f"
11693 tm_p_include_list="${tm_p_include_list} config/$f"
11694 esac
11695 done
11697 xm_file_list=
11698 xm_include_list=
11699 for f in $xm_file; do
11700 case $f in
11701 ansidecl.h )
11702 xm_file_list="${xm_file_list} \$(srcdir)/../include/$f"
11703 xm_include_list="${xm_include_list} $f"
11705 auto-host.h )
11706 xm_file_list="${xm_file_list} $f"
11707 xm_include_list="${xm_include_list} $f"
11710 xm_file_list="${xm_file_list} \$(srcdir)/config/$f"
11711 xm_include_list="${xm_include_list} config/$f"
11713 esac
11714 done
11716 host_xm_file_list=
11717 host_xm_include_list=
11718 for f in $host_xm_file; do
11719 case $f in
11720 ansidecl.h )
11721 host_xm_file_list="${host_xm_file_list} \$(srcdir)/../include/$f"
11722 host_xm_include_list="${host_xm_include_list} $f"
11724 auto-host.h )
11725 host_xm_file_list="${host_xm_file_list} $f"
11726 host_xm_include_list="${host_xm_include_list} $f"
11729 host_xm_file_list="${host_xm_file_list} \$(srcdir)/config/$f"
11730 host_xm_include_list="${host_xm_include_list} config/$f"
11732 esac
11733 done
11735 build_xm_file_list=
11736 for f in $build_xm_file; do
11737 case $f in
11738 ansidecl.h )
11739 build_xm_file_list="${build_xm_file_list} \$(srcdir)/../include/$f"
11740 build_xm_include_list="${build_xm_include_list} $f"
11742 auto-build.h | auto-host.h )
11743 build_xm_file_list="${build_xm_file_list} $f"
11744 build_xm_include_list="${build_xm_include_list} $f"
11747 build_xm_file_list="${build_xm_file_list} \$(srcdir)/config/$f"
11748 build_xm_include_list="${build_xm_include_list} config/$f"
11750 esac
11751 done
11753 # Define macro CROSS_DIRECTORY_STRUCTURE in compilation if this is a
11754 # cross-compiler which does not use the native headers and libraries.
11755 # Also use all.cross instead of all.internal and adjust SYSTEM_HEADER_DIR.
11756 CROSS=
11757 ALL=all.internal
11758 SYSTEM_HEADER_DIR='$(NATIVE_SYSTEM_HEADER_DIR)'
11760 if test "x$with_build_sysroot" != x; then
11761 build_system_header_dir=$with_build_sysroot'$${sysroot_headers_suffix}$(NATIVE_SYSTEM_HEADER_DIR)'
11762 else
11763 # This value is used, even on a native system, because
11764 # CROSS_SYSTEM_HEADER_DIR is just
11765 # $(TARGET_SYSTEM_ROOT)$(NATIVE_SYSTEM_HEADER_DIR).
11766 build_system_header_dir='$(CROSS_SYSTEM_HEADER_DIR)'
11769 if test x$host != x$target
11770 then
11771 CROSS="-DCROSS_DIRECTORY_STRUCTURE"
11772 ALL=all.cross
11773 SYSTEM_HEADER_DIR=$build_system_header_dir
11774 case "$host","$target" in
11775 # Darwin crosses can use the host system's libraries and headers,
11776 # because of the fat library support. Of course, it must be the
11777 # same version of Darwin on both sides. Allow the user to
11778 # just say --target=foo-darwin without a version number to mean
11779 # "the version on this system".
11780 *-*-darwin*,*-*-darwin*)
11781 hostos=`echo $host | sed 's/.*-darwin/darwin/'`
11782 targetos=`echo $target | sed 's/.*-darwin/darwin/'`
11783 if test $hostos = $targetos -o $targetos = darwin ; then
11784 CROSS=
11785 SYSTEM_HEADER_DIR='$(NATIVE_SYSTEM_HEADER_DIR)'
11786 with_headers=yes
11790 i?86-*-*,x86_64-*-* \
11791 | powerpc*-*-*,powerpc64*-*-*)
11792 CROSS="$CROSS -DNATIVE_CROSS" ;;
11793 esac
11795 case $target in
11796 *-*-mingw*)
11797 if test "x$with_headers" = x; then
11798 with_headers=yes
11803 esac
11804 elif test "x$TARGET_SYSTEM_ROOT" != x; then
11805 SYSTEM_HEADER_DIR=$build_system_header_dir
11808 # If this is a cross-compiler that does not
11809 # have its own set of headers then define
11810 # inhibit_libc
11812 # If this is using newlib, without having the headers available now,
11813 # then define inhibit_libc in LIBGCC2_CFLAGS.
11814 # This prevents libgcc2 from containing any code which requires libc
11815 # support.
11816 : ${inhibit_libc=false}
11817 if { { test x$host != x$target && test "x$with_sysroot" = x ; } ||
11818 test x$with_newlib = xyes ; } &&
11819 { test "x$with_headers" = x || test "x$with_headers" = xno ; } ; then
11820 inhibit_libc=true
11824 # When building gcc with a cross-compiler, we need to adjust things so
11825 # that the generator programs are still built with the native compiler.
11826 # Also, we cannot run fixincludes.
11828 # These are the normal (build=host) settings:
11829 CC_FOR_BUILD='$(CC)'
11830 CXX_FOR_BUILD='$(CXX)'
11831 BUILD_CFLAGS='$(ALL_CFLAGS)'
11832 BUILD_CXXFLAGS='$(ALL_CXXFLAGS)'
11833 BUILD_LDFLAGS='$(LDFLAGS)'
11834 STMP_FIXINC=stmp-fixinc
11836 # And these apply if build != host, or we are generating coverage data
11837 if test x$build != x$host || test "x$coverage_flags" != x
11838 then
11839 BUILD_CFLAGS='$(INTERNAL_CFLAGS) $(T_CFLAGS) $(CFLAGS_FOR_BUILD)'
11840 BUILD_CXXFLAGS='$(INTERNAL_CFLAGS) $(T_CFLAGS) $(CXXFLAGS_FOR_BUILD)'
11841 BUILD_LDFLAGS='$(LDFLAGS_FOR_BUILD)'
11844 # Expand extra_headers to include complete path.
11845 # This substitutes for lots of t-* files.
11846 extra_headers_list=
11847 # Prepend $(srcdir)/config/${cpu_type}/ to every entry in extra_headers.
11848 for file in ${extra_headers} ; do
11849 extra_headers_list="${extra_headers_list} \$(srcdir)/config/${cpu_type}/${file}"
11850 done
11852 # If use_gcc_tgmath is set, append ginclude/tgmath.h.
11853 if test x"$use_gcc_tgmath" = xyes
11854 then extra_headers_list="${extra_headers_list} \$(srcdir)/ginclude/tgmath.h"
11857 # Define collect2 in Makefile.
11858 case $host_can_use_collect2 in
11859 no) collect2= ;;
11860 *) collect2='collect2$(exeext)' ;;
11861 esac
11864 # Add a definition of USE_COLLECT2 if system wants one.
11865 case $use_collect2 in
11866 no) use_collect2= ;;
11867 "") ;;
11869 host_xm_defines="${host_xm_defines} USE_COLLECT2"
11870 xm_defines="${xm_defines} USE_COLLECT2"
11871 case $host_can_use_collect2 in
11873 as_fn_error "collect2 is required but cannot be built on this system" "$LINENO" 5
11875 esac
11877 esac
11880 cat >>confdefs.h <<_ACEOF
11881 #define FRPLUGINSONAME "${host_function_reordering_plugin_soname}"
11882 _ACEOF
11886 cat >>confdefs.h <<_ACEOF
11887 #define LTOPLUGINSONAME "${host_lto_plugin_soname}"
11888 _ACEOF
11891 # ---------------------------
11892 # Assembler & linker features
11893 # ---------------------------
11895 # During stage 2, ld is actually gcc/collect-ld, which is a small script to
11896 # discern between when to use prev-ld/ld-new and when to use ld/ld-new.
11897 # However when ld-new is first executed from the build tree, libtool will
11898 # relink it as .libs/lt-ld-new, so that it can give it an RPATH that refers
11899 # to the build tree. While doing this we need to use the previous-stage
11900 # linker, or we have an infinite loop. The presence of a shell script as
11901 # ld/ld-new, and the fact that the script *uses ld itself*, is what confuses
11902 # the gcc/collect-ld script. So we need to know how libtool works, or
11903 # exec-tool will fail.
11906 case `pwd` in
11907 *\ * | *\ *)
11908 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&5
11909 $as_echo "$as_me: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&2;} ;;
11910 esac
11914 macro_version='2.2.7a'
11915 macro_revision='1.3134'
11929 ltmain="$ac_aux_dir/ltmain.sh"
11931 # Backslashify metacharacters that are still active within
11932 # double-quoted strings.
11933 sed_quote_subst='s/\(["`$\\]\)/\\\1/g'
11935 # Same as above, but do not quote variable references.
11936 double_quote_subst='s/\(["`\\]\)/\\\1/g'
11938 # Sed substitution to delay expansion of an escaped shell variable in a
11939 # double_quote_subst'ed string.
11940 delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
11942 # Sed substitution to delay expansion of an escaped single quote.
11943 delay_single_quote_subst='s/'\''/'\'\\\\\\\'\''/g'
11945 # Sed substitution to avoid accidental globbing in evaled expressions
11946 no_glob_subst='s/\*/\\\*/g'
11948 ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
11949 ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO
11950 ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO$ECHO
11952 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to print strings" >&5
11953 $as_echo_n "checking how to print strings... " >&6; }
11954 # Test print first, because it will be a builtin if present.
11955 if test "X`print -r -- -n 2>/dev/null`" = X-n && \
11956 test "X`print -r -- $ECHO 2>/dev/null`" = "X$ECHO"; then
11957 ECHO='print -r --'
11958 elif test "X`printf %s $ECHO 2>/dev/null`" = "X$ECHO"; then
11959 ECHO='printf %s\n'
11960 else
11961 # Use this function as a fallback that always works.
11962 func_fallback_echo ()
11964 eval 'cat <<_LTECHO_EOF
11966 _LTECHO_EOF'
11968 ECHO='func_fallback_echo'
11971 # func_echo_all arg...
11972 # Invoke $ECHO with all args, space-separated.
11973 func_echo_all ()
11975 $ECHO ""
11978 case "$ECHO" in
11979 printf*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: printf" >&5
11980 $as_echo "printf" >&6; } ;;
11981 print*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: print -r" >&5
11982 $as_echo "print -r" >&6; } ;;
11983 *) { $as_echo "$as_me:${as_lineno-$LINENO}: result: cat" >&5
11984 $as_echo "cat" >&6; } ;;
11985 esac
12000 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5
12001 $as_echo_n "checking for a sed that does not truncate output... " >&6; }
12002 if test "${ac_cv_path_SED+set}" = set; then :
12003 $as_echo_n "(cached) " >&6
12004 else
12005 ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
12006 for ac_i in 1 2 3 4 5 6 7; do
12007 ac_script="$ac_script$as_nl$ac_script"
12008 done
12009 echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed
12010 { ac_script=; unset ac_script;}
12011 if test -z "$SED"; then
12012 ac_path_SED_found=false
12013 # Loop through the user's path and test for each of PROGNAME-LIST
12014 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12015 for as_dir in $PATH
12017 IFS=$as_save_IFS
12018 test -z "$as_dir" && as_dir=.
12019 for ac_prog in sed gsed; do
12020 for ac_exec_ext in '' $ac_executable_extensions; do
12021 ac_path_SED="$as_dir/$ac_prog$ac_exec_ext"
12022 { test -f "$ac_path_SED" && $as_test_x "$ac_path_SED"; } || continue
12023 # Check for GNU ac_path_SED and select it if it is found.
12024 # Check for GNU $ac_path_SED
12025 case `"$ac_path_SED" --version 2>&1` in
12026 *GNU*)
12027 ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
12029 ac_count=0
12030 $as_echo_n 0123456789 >"conftest.in"
12031 while :
12033 cat "conftest.in" "conftest.in" >"conftest.tmp"
12034 mv "conftest.tmp" "conftest.in"
12035 cp "conftest.in" "conftest.nl"
12036 $as_echo '' >> "conftest.nl"
12037 "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break
12038 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
12039 as_fn_arith $ac_count + 1 && ac_count=$as_val
12040 if test $ac_count -gt ${ac_path_SED_max-0}; then
12041 # Best one so far, save it but keep looking for a better one
12042 ac_cv_path_SED="$ac_path_SED"
12043 ac_path_SED_max=$ac_count
12045 # 10*(2^10) chars as input seems more than enough
12046 test $ac_count -gt 10 && break
12047 done
12048 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
12049 esac
12051 $ac_path_SED_found && break 3
12052 done
12053 done
12054 done
12055 IFS=$as_save_IFS
12056 if test -z "$ac_cv_path_SED"; then
12057 as_fn_error "no acceptable sed could be found in \$PATH" "$LINENO" 5
12059 else
12060 ac_cv_path_SED=$SED
12064 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5
12065 $as_echo "$ac_cv_path_SED" >&6; }
12066 SED="$ac_cv_path_SED"
12067 rm -f conftest.sed
12069 test -z "$SED" && SED=sed
12070 Xsed="$SED -e 1s/^X//"
12082 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for fgrep" >&5
12083 $as_echo_n "checking for fgrep... " >&6; }
12084 if test "${ac_cv_path_FGREP+set}" = set; then :
12085 $as_echo_n "(cached) " >&6
12086 else
12087 if echo 'ab*c' | $GREP -F 'ab*c' >/dev/null 2>&1
12088 then ac_cv_path_FGREP="$GREP -F"
12089 else
12090 if test -z "$FGREP"; then
12091 ac_path_FGREP_found=false
12092 # Loop through the user's path and test for each of PROGNAME-LIST
12093 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12094 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
12096 IFS=$as_save_IFS
12097 test -z "$as_dir" && as_dir=.
12098 for ac_prog in fgrep; do
12099 for ac_exec_ext in '' $ac_executable_extensions; do
12100 ac_path_FGREP="$as_dir/$ac_prog$ac_exec_ext"
12101 { test -f "$ac_path_FGREP" && $as_test_x "$ac_path_FGREP"; } || continue
12102 # Check for GNU ac_path_FGREP and select it if it is found.
12103 # Check for GNU $ac_path_FGREP
12104 case `"$ac_path_FGREP" --version 2>&1` in
12105 *GNU*)
12106 ac_cv_path_FGREP="$ac_path_FGREP" ac_path_FGREP_found=:;;
12108 ac_count=0
12109 $as_echo_n 0123456789 >"conftest.in"
12110 while :
12112 cat "conftest.in" "conftest.in" >"conftest.tmp"
12113 mv "conftest.tmp" "conftest.in"
12114 cp "conftest.in" "conftest.nl"
12115 $as_echo 'FGREP' >> "conftest.nl"
12116 "$ac_path_FGREP" FGREP < "conftest.nl" >"conftest.out" 2>/dev/null || break
12117 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
12118 as_fn_arith $ac_count + 1 && ac_count=$as_val
12119 if test $ac_count -gt ${ac_path_FGREP_max-0}; then
12120 # Best one so far, save it but keep looking for a better one
12121 ac_cv_path_FGREP="$ac_path_FGREP"
12122 ac_path_FGREP_max=$ac_count
12124 # 10*(2^10) chars as input seems more than enough
12125 test $ac_count -gt 10 && break
12126 done
12127 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
12128 esac
12130 $ac_path_FGREP_found && break 3
12131 done
12132 done
12133 done
12134 IFS=$as_save_IFS
12135 if test -z "$ac_cv_path_FGREP"; then
12136 as_fn_error "no acceptable fgrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
12138 else
12139 ac_cv_path_FGREP=$FGREP
12144 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_FGREP" >&5
12145 $as_echo "$ac_cv_path_FGREP" >&6; }
12146 FGREP="$ac_cv_path_FGREP"
12149 test -z "$GREP" && GREP=grep
12169 # Check whether --with-gnu-ld was given.
12170 if test "${with_gnu_ld+set}" = set; then :
12171 withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
12172 else
12173 with_gnu_ld=no
12176 ac_prog=ld
12177 if test "$GCC" = yes; then
12178 # Check if gcc -print-prog-name=ld gives a path.
12179 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
12180 $as_echo_n "checking for ld used by $CC... " >&6; }
12181 case $host in
12182 *-*-mingw*)
12183 # gcc leaves a trailing carriage return which upsets mingw
12184 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
12186 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
12187 esac
12188 case $ac_prog in
12189 # Accept absolute paths.
12190 [\\/]* | ?:[\\/]*)
12191 re_direlt='/[^/][^/]*/\.\./'
12192 # Canonicalize the pathname of ld
12193 ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
12194 while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
12195 ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
12196 done
12197 test -z "$LD" && LD="$ac_prog"
12200 # If it fails, then pretend we aren't using GCC.
12201 ac_prog=ld
12204 # If it is relative, then search for the first ld in PATH.
12205 with_gnu_ld=unknown
12207 esac
12208 elif test "$with_gnu_ld" = yes; then
12209 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
12210 $as_echo_n "checking for GNU ld... " >&6; }
12211 else
12212 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
12213 $as_echo_n "checking for non-GNU ld... " >&6; }
12215 if test "${lt_cv_path_LD+set}" = set; then :
12216 $as_echo_n "(cached) " >&6
12217 else
12218 if test -z "$LD"; then
12219 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
12220 for ac_dir in $PATH; do
12221 IFS="$lt_save_ifs"
12222 test -z "$ac_dir" && ac_dir=.
12223 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
12224 lt_cv_path_LD="$ac_dir/$ac_prog"
12225 # Check to see if the program is GNU ld. I'd rather use --version,
12226 # but apparently some variants of GNU ld only accept -v.
12227 # Break only if it was the GNU/non-GNU ld that we prefer.
12228 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
12229 *GNU* | *'with BFD'*)
12230 test "$with_gnu_ld" != no && break
12233 test "$with_gnu_ld" != yes && break
12235 esac
12237 done
12238 IFS="$lt_save_ifs"
12239 else
12240 lt_cv_path_LD="$LD" # Let the user override the test with a path.
12244 LD="$lt_cv_path_LD"
12245 if test -n "$LD"; then
12246 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
12247 $as_echo "$LD" >&6; }
12248 else
12249 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12250 $as_echo "no" >&6; }
12252 test -z "$LD" && as_fn_error "no acceptable ld found in \$PATH" "$LINENO" 5
12253 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
12254 $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
12255 if test "${lt_cv_prog_gnu_ld+set}" = set; then :
12256 $as_echo_n "(cached) " >&6
12257 else
12258 # I'd rather use --version here, but apparently some GNU lds only accept -v.
12259 case `$LD -v 2>&1 </dev/null` in
12260 *GNU* | *'with BFD'*)
12261 lt_cv_prog_gnu_ld=yes
12264 lt_cv_prog_gnu_ld=no
12266 esac
12268 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
12269 $as_echo "$lt_cv_prog_gnu_ld" >&6; }
12270 with_gnu_ld=$lt_cv_prog_gnu_ld
12280 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for BSD- or MS-compatible name lister (nm)" >&5
12281 $as_echo_n "checking for BSD- or MS-compatible name lister (nm)... " >&6; }
12282 if test "${lt_cv_path_NM+set}" = set; then :
12283 $as_echo_n "(cached) " >&6
12284 else
12285 if test -n "$NM"; then
12286 # Let the user override the test.
12287 lt_cv_path_NM="$NM"
12288 else
12289 lt_nm_to_check="${ac_tool_prefix}nm"
12290 if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
12291 lt_nm_to_check="$lt_nm_to_check nm"
12293 for lt_tmp_nm in $lt_nm_to_check; do
12294 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
12295 for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
12296 IFS="$lt_save_ifs"
12297 test -z "$ac_dir" && ac_dir=.
12298 tmp_nm="$ac_dir/$lt_tmp_nm"
12299 if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
12300 # Check to see if the nm accepts a BSD-compat flag.
12301 # Adding the `sed 1q' prevents false positives on HP-UX, which says:
12302 # nm: unknown option "B" ignored
12303 # Tru64's nm complains that /dev/null is an invalid object file
12304 case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
12305 */dev/null* | *'Invalid file or object type'*)
12306 lt_cv_path_NM="$tmp_nm -B"
12307 break
12310 case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
12311 */dev/null*)
12312 lt_cv_path_NM="$tmp_nm -p"
12313 break
12316 lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
12317 continue # so that we can try to find one that supports BSD flags
12319 esac
12321 esac
12323 done
12324 IFS="$lt_save_ifs"
12325 done
12326 : ${lt_cv_path_NM=no}
12329 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_NM" >&5
12330 $as_echo "$lt_cv_path_NM" >&6; }
12331 if test "$lt_cv_path_NM" != "no"; then
12332 NM="$lt_cv_path_NM"
12333 else
12334 # Didn't find any BSD compatible name lister, look for dumpbin.
12335 if test -n "$DUMPBIN"; then :
12336 # Let the user override the test.
12337 else
12338 if test -n "$ac_tool_prefix"; then
12339 for ac_prog in dumpbin "link -dump"
12341 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
12342 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
12343 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12344 $as_echo_n "checking for $ac_word... " >&6; }
12345 if test "${ac_cv_prog_DUMPBIN+set}" = set; then :
12346 $as_echo_n "(cached) " >&6
12347 else
12348 if test -n "$DUMPBIN"; then
12349 ac_cv_prog_DUMPBIN="$DUMPBIN" # Let the user override the test.
12350 else
12351 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12352 for as_dir in $PATH
12354 IFS=$as_save_IFS
12355 test -z "$as_dir" && as_dir=.
12356 for ac_exec_ext in '' $ac_executable_extensions; do
12357 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12358 ac_cv_prog_DUMPBIN="$ac_tool_prefix$ac_prog"
12359 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12360 break 2
12362 done
12363 done
12364 IFS=$as_save_IFS
12368 DUMPBIN=$ac_cv_prog_DUMPBIN
12369 if test -n "$DUMPBIN"; then
12370 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DUMPBIN" >&5
12371 $as_echo "$DUMPBIN" >&6; }
12372 else
12373 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12374 $as_echo "no" >&6; }
12378 test -n "$DUMPBIN" && break
12379 done
12381 if test -z "$DUMPBIN"; then
12382 ac_ct_DUMPBIN=$DUMPBIN
12383 for ac_prog in dumpbin "link -dump"
12385 # Extract the first word of "$ac_prog", so it can be a program name with args.
12386 set dummy $ac_prog; ac_word=$2
12387 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12388 $as_echo_n "checking for $ac_word... " >&6; }
12389 if test "${ac_cv_prog_ac_ct_DUMPBIN+set}" = set; then :
12390 $as_echo_n "(cached) " >&6
12391 else
12392 if test -n "$ac_ct_DUMPBIN"; then
12393 ac_cv_prog_ac_ct_DUMPBIN="$ac_ct_DUMPBIN" # Let the user override the test.
12394 else
12395 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12396 for as_dir in $PATH
12398 IFS=$as_save_IFS
12399 test -z "$as_dir" && as_dir=.
12400 for ac_exec_ext in '' $ac_executable_extensions; do
12401 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12402 ac_cv_prog_ac_ct_DUMPBIN="$ac_prog"
12403 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12404 break 2
12406 done
12407 done
12408 IFS=$as_save_IFS
12412 ac_ct_DUMPBIN=$ac_cv_prog_ac_ct_DUMPBIN
12413 if test -n "$ac_ct_DUMPBIN"; then
12414 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DUMPBIN" >&5
12415 $as_echo "$ac_ct_DUMPBIN" >&6; }
12416 else
12417 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12418 $as_echo "no" >&6; }
12422 test -n "$ac_ct_DUMPBIN" && break
12423 done
12425 if test "x$ac_ct_DUMPBIN" = x; then
12426 DUMPBIN=":"
12427 else
12428 case $cross_compiling:$ac_tool_warned in
12429 yes:)
12430 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
12431 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
12432 ac_tool_warned=yes ;;
12433 esac
12434 DUMPBIN=$ac_ct_DUMPBIN
12438 case `$DUMPBIN -symbols /dev/null 2>&1 | sed '1q'` in
12439 *COFF*)
12440 DUMPBIN="$DUMPBIN -symbols"
12443 DUMPBIN=:
12445 esac
12448 if test "$DUMPBIN" != ":"; then
12449 NM="$DUMPBIN"
12452 test -z "$NM" && NM=nm
12459 { $as_echo "$as_me:${as_lineno-$LINENO}: checking the name lister ($NM) interface" >&5
12460 $as_echo_n "checking the name lister ($NM) interface... " >&6; }
12461 if test "${lt_cv_nm_interface+set}" = set; then :
12462 $as_echo_n "(cached) " >&6
12463 else
12464 lt_cv_nm_interface="BSD nm"
12465 echo "int some_variable = 0;" > conftest.$ac_ext
12466 (eval echo "\"\$as_me:$LINENO: $ac_compile\"" >&5)
12467 (eval "$ac_compile" 2>conftest.err)
12468 cat conftest.err >&5
12469 (eval echo "\"\$as_me:$LINENO: $NM \\\"conftest.$ac_objext\\\"\"" >&5)
12470 (eval "$NM \"conftest.$ac_objext\"" 2>conftest.err > conftest.out)
12471 cat conftest.err >&5
12472 (eval echo "\"\$as_me:$LINENO: output\"" >&5)
12473 cat conftest.out >&5
12474 if $GREP 'External.*some_variable' conftest.out > /dev/null; then
12475 lt_cv_nm_interface="MS dumpbin"
12477 rm -f conftest*
12479 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_nm_interface" >&5
12480 $as_echo "$lt_cv_nm_interface" >&6; }
12482 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5
12483 $as_echo_n "checking whether ln -s works... " >&6; }
12484 LN_S=$as_ln_s
12485 if test "$LN_S" = "ln -s"; then
12486 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12487 $as_echo "yes" >&6; }
12488 else
12489 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5
12490 $as_echo "no, using $LN_S" >&6; }
12493 # find the maximum length of command line arguments
12494 { $as_echo "$as_me:${as_lineno-$LINENO}: checking the maximum length of command line arguments" >&5
12495 $as_echo_n "checking the maximum length of command line arguments... " >&6; }
12496 if test "${lt_cv_sys_max_cmd_len+set}" = set; then :
12497 $as_echo_n "(cached) " >&6
12498 else
12500 teststring="ABCD"
12502 case $build_os in
12503 msdosdjgpp*)
12504 # On DJGPP, this test can blow up pretty badly due to problems in libc
12505 # (any single argument exceeding 2000 bytes causes a buffer overrun
12506 # during glob expansion). Even if it were fixed, the result of this
12507 # check would be larger than it should be.
12508 lt_cv_sys_max_cmd_len=12288; # 12K is about right
12511 gnu*)
12512 # Under GNU Hurd, this test is not required because there is
12513 # no limit to the length of command line arguments.
12514 # Libtool will interpret -1 as no limit whatsoever
12515 lt_cv_sys_max_cmd_len=-1;
12518 cygwin* | mingw* | cegcc*)
12519 # On Win9x/ME, this test blows up -- it succeeds, but takes
12520 # about 5 minutes as the teststring grows exponentially.
12521 # Worse, since 9x/ME are not pre-emptively multitasking,
12522 # you end up with a "frozen" computer, even though with patience
12523 # the test eventually succeeds (with a max line length of 256k).
12524 # Instead, let's just punt: use the minimum linelength reported by
12525 # all of the supported platforms: 8192 (on NT/2K/XP).
12526 lt_cv_sys_max_cmd_len=8192;
12529 mint*)
12530 # On MiNT this can take a long time and run out of memory.
12531 lt_cv_sys_max_cmd_len=8192;
12534 amigaos*)
12535 # On AmigaOS with pdksh, this test takes hours, literally.
12536 # So we just punt and use a minimum line length of 8192.
12537 lt_cv_sys_max_cmd_len=8192;
12540 netbsd* | freebsd* | openbsd* | darwin* | dragonfly*)
12541 # This has been around since 386BSD, at least. Likely further.
12542 if test -x /sbin/sysctl; then
12543 lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
12544 elif test -x /usr/sbin/sysctl; then
12545 lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
12546 else
12547 lt_cv_sys_max_cmd_len=65536 # usable default for all BSDs
12549 # And add a safety zone
12550 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
12551 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
12554 interix*)
12555 # We know the value 262144 and hardcode it with a safety zone (like BSD)
12556 lt_cv_sys_max_cmd_len=196608
12559 osf*)
12560 # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
12561 # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
12562 # nice to cause kernel panics so lets avoid the loop below.
12563 # First set a reasonable default.
12564 lt_cv_sys_max_cmd_len=16384
12566 if test -x /sbin/sysconfig; then
12567 case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
12568 *1*) lt_cv_sys_max_cmd_len=-1 ;;
12569 esac
12572 sco3.2v5*)
12573 lt_cv_sys_max_cmd_len=102400
12575 sysv5* | sco5v6* | sysv4.2uw2*)
12576 kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
12577 if test -n "$kargmax"; then
12578 lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[ ]//'`
12579 else
12580 lt_cv_sys_max_cmd_len=32768
12584 lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null`
12585 if test -n "$lt_cv_sys_max_cmd_len"; then
12586 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
12587 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
12588 else
12589 # Make teststring a little bigger before we do anything with it.
12590 # a 1K string should be a reasonable start.
12591 for i in 1 2 3 4 5 6 7 8 ; do
12592 teststring=$teststring$teststring
12593 done
12594 SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
12595 # If test is not a shell built-in, we'll probably end up computing a
12596 # maximum length that is only half of the actual maximum length, but
12597 # we can't tell.
12598 while { test "X"`func_fallback_echo "$teststring$teststring" 2>/dev/null` \
12599 = "X$teststring$teststring"; } >/dev/null 2>&1 &&
12600 test $i != 17 # 1/2 MB should be enough
12602 i=`expr $i + 1`
12603 teststring=$teststring$teststring
12604 done
12605 # Only check the string length outside the loop.
12606 lt_cv_sys_max_cmd_len=`expr "X$teststring" : ".*" 2>&1`
12607 teststring=
12608 # Add a significant safety factor because C++ compilers can tack on
12609 # massive amounts of additional arguments before passing them to the
12610 # linker. It appears as though 1/2 is a usable value.
12611 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
12614 esac
12618 if test -n $lt_cv_sys_max_cmd_len ; then
12619 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_max_cmd_len" >&5
12620 $as_echo "$lt_cv_sys_max_cmd_len" >&6; }
12621 else
12622 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none" >&5
12623 $as_echo "none" >&6; }
12625 max_cmd_len=$lt_cv_sys_max_cmd_len
12632 : ${CP="cp -f"}
12633 : ${MV="mv -f"}
12634 : ${RM="rm -f"}
12636 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands some XSI constructs" >&5
12637 $as_echo_n "checking whether the shell understands some XSI constructs... " >&6; }
12638 # Try some XSI features
12639 xsi_shell=no
12640 ( _lt_dummy="a/b/c"
12641 test "${_lt_dummy##*/},${_lt_dummy%/*},"${_lt_dummy%"$_lt_dummy"}, \
12642 = c,a/b,, \
12643 && eval 'test $(( 1 + 1 )) -eq 2 \
12644 && test "${#_lt_dummy}" -eq 5' ) >/dev/null 2>&1 \
12645 && xsi_shell=yes
12646 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xsi_shell" >&5
12647 $as_echo "$xsi_shell" >&6; }
12650 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands \"+=\"" >&5
12651 $as_echo_n "checking whether the shell understands \"+=\"... " >&6; }
12652 lt_shell_append=no
12653 ( foo=bar; set foo baz; eval "$1+=\$2" && test "$foo" = barbaz ) \
12654 >/dev/null 2>&1 \
12655 && lt_shell_append=yes
12656 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_shell_append" >&5
12657 $as_echo "$lt_shell_append" >&6; }
12660 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
12661 lt_unset=unset
12662 else
12663 lt_unset=false
12670 # test EBCDIC or ASCII
12671 case `echo X|tr X '\101'` in
12672 A) # ASCII based system
12673 # \n is not interpreted correctly by Solaris 8 /usr/ucb/tr
12674 lt_SP2NL='tr \040 \012'
12675 lt_NL2SP='tr \015\012 \040\040'
12677 *) # EBCDIC based system
12678 lt_SP2NL='tr \100 \n'
12679 lt_NL2SP='tr \r\n \100\100'
12681 esac
12691 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $LD option to reload object files" >&5
12692 $as_echo_n "checking for $LD option to reload object files... " >&6; }
12693 if test "${lt_cv_ld_reload_flag+set}" = set; then :
12694 $as_echo_n "(cached) " >&6
12695 else
12696 lt_cv_ld_reload_flag='-r'
12698 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_reload_flag" >&5
12699 $as_echo "$lt_cv_ld_reload_flag" >&6; }
12700 reload_flag=$lt_cv_ld_reload_flag
12701 case $reload_flag in
12702 "" | " "*) ;;
12703 *) reload_flag=" $reload_flag" ;;
12704 esac
12705 reload_cmds='$LD$reload_flag -o $output$reload_objs'
12706 case $host_os in
12707 darwin*)
12708 if test "$GCC" = yes; then
12709 reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r -o $output$reload_objs'
12710 else
12711 reload_cmds='$LD$reload_flag -o $output$reload_objs'
12714 esac
12724 if test -n "$ac_tool_prefix"; then
12725 # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args.
12726 set dummy ${ac_tool_prefix}objdump; ac_word=$2
12727 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12728 $as_echo_n "checking for $ac_word... " >&6; }
12729 if test "${ac_cv_prog_OBJDUMP+set}" = set; then :
12730 $as_echo_n "(cached) " >&6
12731 else
12732 if test -n "$OBJDUMP"; then
12733 ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
12734 else
12735 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12736 for as_dir in $PATH
12738 IFS=$as_save_IFS
12739 test -z "$as_dir" && as_dir=.
12740 for ac_exec_ext in '' $ac_executable_extensions; do
12741 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12742 ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump"
12743 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12744 break 2
12746 done
12747 done
12748 IFS=$as_save_IFS
12752 OBJDUMP=$ac_cv_prog_OBJDUMP
12753 if test -n "$OBJDUMP"; then
12754 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5
12755 $as_echo "$OBJDUMP" >&6; }
12756 else
12757 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12758 $as_echo "no" >&6; }
12763 if test -z "$ac_cv_prog_OBJDUMP"; then
12764 ac_ct_OBJDUMP=$OBJDUMP
12765 # Extract the first word of "objdump", so it can be a program name with args.
12766 set dummy objdump; ac_word=$2
12767 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12768 $as_echo_n "checking for $ac_word... " >&6; }
12769 if test "${ac_cv_prog_ac_ct_OBJDUMP+set}" = set; then :
12770 $as_echo_n "(cached) " >&6
12771 else
12772 if test -n "$ac_ct_OBJDUMP"; then
12773 ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test.
12774 else
12775 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12776 for as_dir in $PATH
12778 IFS=$as_save_IFS
12779 test -z "$as_dir" && as_dir=.
12780 for ac_exec_ext in '' $ac_executable_extensions; do
12781 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12782 ac_cv_prog_ac_ct_OBJDUMP="objdump"
12783 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12784 break 2
12786 done
12787 done
12788 IFS=$as_save_IFS
12792 ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP
12793 if test -n "$ac_ct_OBJDUMP"; then
12794 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5
12795 $as_echo "$ac_ct_OBJDUMP" >&6; }
12796 else
12797 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12798 $as_echo "no" >&6; }
12801 if test "x$ac_ct_OBJDUMP" = x; then
12802 OBJDUMP="false"
12803 else
12804 case $cross_compiling:$ac_tool_warned in
12805 yes:)
12806 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
12807 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
12808 ac_tool_warned=yes ;;
12809 esac
12810 OBJDUMP=$ac_ct_OBJDUMP
12812 else
12813 OBJDUMP="$ac_cv_prog_OBJDUMP"
12816 test -z "$OBJDUMP" && OBJDUMP=objdump
12826 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to recognize dependent libraries" >&5
12827 $as_echo_n "checking how to recognize dependent libraries... " >&6; }
12828 if test "${lt_cv_deplibs_check_method+set}" = set; then :
12829 $as_echo_n "(cached) " >&6
12830 else
12831 lt_cv_file_magic_cmd='$MAGIC_CMD'
12832 lt_cv_file_magic_test_file=
12833 lt_cv_deplibs_check_method='unknown'
12834 # Need to set the preceding variable on all platforms that support
12835 # interlibrary dependencies.
12836 # 'none' -- dependencies not supported.
12837 # `unknown' -- same as none, but documents that we really don't know.
12838 # 'pass_all' -- all dependencies passed with no checks.
12839 # 'test_compile' -- check by making test program.
12840 # 'file_magic [[regex]]' -- check by looking for files in library path
12841 # which responds to the $file_magic_cmd with a given extended regex.
12842 # If you have `file' or equivalent on your system and you're not sure
12843 # whether `pass_all' will *always* work, you probably want this one.
12845 case $host_os in
12846 aix[4-9]*)
12847 lt_cv_deplibs_check_method=pass_all
12850 beos*)
12851 lt_cv_deplibs_check_method=pass_all
12854 bsdi[45]*)
12855 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
12856 lt_cv_file_magic_cmd='/usr/bin/file -L'
12857 lt_cv_file_magic_test_file=/shlib/libc.so
12860 cygwin*)
12861 # func_win32_libid is a shell function defined in ltmain.sh
12862 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
12863 lt_cv_file_magic_cmd='func_win32_libid'
12866 mingw* | pw32*)
12867 # Base MSYS/MinGW do not provide the 'file' command needed by
12868 # func_win32_libid shell function, so use a weaker test based on 'objdump',
12869 # unless we find 'file', for example because we are cross-compiling.
12870 # func_win32_libid assumes BSD nm, so disallow it if using MS dumpbin.
12871 if ( test "$lt_cv_nm_interface" = "BSD nm" && file / ) >/dev/null 2>&1; then
12872 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
12873 lt_cv_file_magic_cmd='func_win32_libid'
12874 else
12875 lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?'
12876 lt_cv_file_magic_cmd='$OBJDUMP -f'
12880 cegcc*)
12881 # use the weaker test based on 'objdump'. See mingw*.
12882 lt_cv_deplibs_check_method='file_magic file format pe-arm-.*little(.*architecture: arm)?'
12883 lt_cv_file_magic_cmd='$OBJDUMP -f'
12886 darwin* | rhapsody*)
12887 lt_cv_deplibs_check_method=pass_all
12890 freebsd* | dragonfly*)
12891 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
12892 case $host_cpu in
12893 i*86 )
12894 # Not sure whether the presence of OpenBSD here was a mistake.
12895 # Let's accept both of them until this is cleared up.
12896 lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
12897 lt_cv_file_magic_cmd=/usr/bin/file
12898 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
12900 esac
12901 else
12902 lt_cv_deplibs_check_method=pass_all
12906 gnu*)
12907 lt_cv_deplibs_check_method=pass_all
12910 haiku*)
12911 lt_cv_deplibs_check_method=pass_all
12914 hpux10.20* | hpux11*)
12915 lt_cv_file_magic_cmd=/usr/bin/file
12916 case $host_cpu in
12917 ia64*)
12918 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
12919 lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
12921 hppa*64*)
12922 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]'
12923 lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
12926 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9]\.[0-9]) shared library'
12927 lt_cv_file_magic_test_file=/usr/lib/libc.sl
12929 esac
12932 interix[3-9]*)
12933 # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
12934 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
12937 irix5* | irix6* | nonstopux*)
12938 case $LD in
12939 *-32|*"-32 ") libmagic=32-bit;;
12940 *-n32|*"-n32 ") libmagic=N32;;
12941 *-64|*"-64 ") libmagic=64-bit;;
12942 *) libmagic=never-match;;
12943 esac
12944 lt_cv_deplibs_check_method=pass_all
12947 # This must be Linux ELF.
12948 linux* | k*bsd*-gnu | kopensolaris*-gnu)
12949 lt_cv_deplibs_check_method=pass_all
12952 netbsd*)
12953 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
12954 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
12955 else
12956 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
12960 newos6*)
12961 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
12962 lt_cv_file_magic_cmd=/usr/bin/file
12963 lt_cv_file_magic_test_file=/usr/lib/libnls.so
12966 *nto* | *qnx*)
12967 lt_cv_deplibs_check_method=pass_all
12970 openbsd*)
12971 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
12972 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
12973 else
12974 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
12978 osf3* | osf4* | osf5*)
12979 lt_cv_deplibs_check_method=pass_all
12982 rdos*)
12983 lt_cv_deplibs_check_method=pass_all
12986 solaris*)
12987 lt_cv_deplibs_check_method=pass_all
12990 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
12991 lt_cv_deplibs_check_method=pass_all
12994 sysv4 | sysv4.3*)
12995 case $host_vendor in
12996 motorola)
12997 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]'
12998 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
13000 ncr)
13001 lt_cv_deplibs_check_method=pass_all
13003 sequent)
13004 lt_cv_file_magic_cmd='/bin/file'
13005 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
13007 sni)
13008 lt_cv_file_magic_cmd='/bin/file'
13009 lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
13010 lt_cv_file_magic_test_file=/lib/libc.so
13012 siemens)
13013 lt_cv_deplibs_check_method=pass_all
13016 lt_cv_deplibs_check_method=pass_all
13018 esac
13021 tpf*)
13022 lt_cv_deplibs_check_method=pass_all
13024 esac
13027 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_deplibs_check_method" >&5
13028 $as_echo "$lt_cv_deplibs_check_method" >&6; }
13029 file_magic_cmd=$lt_cv_file_magic_cmd
13030 deplibs_check_method=$lt_cv_deplibs_check_method
13031 test -z "$deplibs_check_method" && deplibs_check_method=unknown
13044 if test -n "$ac_tool_prefix"; then
13045 # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
13046 set dummy ${ac_tool_prefix}ar; ac_word=$2
13047 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13048 $as_echo_n "checking for $ac_word... " >&6; }
13049 if test "${ac_cv_prog_AR+set}" = set; then :
13050 $as_echo_n "(cached) " >&6
13051 else
13052 if test -n "$AR"; then
13053 ac_cv_prog_AR="$AR" # Let the user override the test.
13054 else
13055 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13056 for as_dir in $PATH
13058 IFS=$as_save_IFS
13059 test -z "$as_dir" && as_dir=.
13060 for ac_exec_ext in '' $ac_executable_extensions; do
13061 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
13062 ac_cv_prog_AR="${ac_tool_prefix}ar"
13063 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13064 break 2
13066 done
13067 done
13068 IFS=$as_save_IFS
13072 AR=$ac_cv_prog_AR
13073 if test -n "$AR"; then
13074 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
13075 $as_echo "$AR" >&6; }
13076 else
13077 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13078 $as_echo "no" >&6; }
13083 if test -z "$ac_cv_prog_AR"; then
13084 ac_ct_AR=$AR
13085 # Extract the first word of "ar", so it can be a program name with args.
13086 set dummy ar; ac_word=$2
13087 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13088 $as_echo_n "checking for $ac_word... " >&6; }
13089 if test "${ac_cv_prog_ac_ct_AR+set}" = set; then :
13090 $as_echo_n "(cached) " >&6
13091 else
13092 if test -n "$ac_ct_AR"; then
13093 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
13094 else
13095 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13096 for as_dir in $PATH
13098 IFS=$as_save_IFS
13099 test -z "$as_dir" && as_dir=.
13100 for ac_exec_ext in '' $ac_executable_extensions; do
13101 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
13102 ac_cv_prog_ac_ct_AR="ar"
13103 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13104 break 2
13106 done
13107 done
13108 IFS=$as_save_IFS
13112 ac_ct_AR=$ac_cv_prog_ac_ct_AR
13113 if test -n "$ac_ct_AR"; then
13114 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5
13115 $as_echo "$ac_ct_AR" >&6; }
13116 else
13117 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13118 $as_echo "no" >&6; }
13121 if test "x$ac_ct_AR" = x; then
13122 AR="false"
13123 else
13124 case $cross_compiling:$ac_tool_warned in
13125 yes:)
13126 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
13127 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
13128 ac_tool_warned=yes ;;
13129 esac
13130 AR=$ac_ct_AR
13132 else
13133 AR="$ac_cv_prog_AR"
13136 test -z "$AR" && AR=ar
13137 test -z "$AR_FLAGS" && AR_FLAGS=cru
13149 if test -n "$ac_tool_prefix"; then
13150 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
13151 set dummy ${ac_tool_prefix}strip; ac_word=$2
13152 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13153 $as_echo_n "checking for $ac_word... " >&6; }
13154 if test "${ac_cv_prog_STRIP+set}" = set; then :
13155 $as_echo_n "(cached) " >&6
13156 else
13157 if test -n "$STRIP"; then
13158 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
13159 else
13160 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13161 for as_dir in $PATH
13163 IFS=$as_save_IFS
13164 test -z "$as_dir" && as_dir=.
13165 for ac_exec_ext in '' $ac_executable_extensions; do
13166 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
13167 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
13168 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13169 break 2
13171 done
13172 done
13173 IFS=$as_save_IFS
13177 STRIP=$ac_cv_prog_STRIP
13178 if test -n "$STRIP"; then
13179 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
13180 $as_echo "$STRIP" >&6; }
13181 else
13182 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13183 $as_echo "no" >&6; }
13188 if test -z "$ac_cv_prog_STRIP"; then
13189 ac_ct_STRIP=$STRIP
13190 # Extract the first word of "strip", so it can be a program name with args.
13191 set dummy strip; ac_word=$2
13192 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13193 $as_echo_n "checking for $ac_word... " >&6; }
13194 if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then :
13195 $as_echo_n "(cached) " >&6
13196 else
13197 if test -n "$ac_ct_STRIP"; then
13198 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
13199 else
13200 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13201 for as_dir in $PATH
13203 IFS=$as_save_IFS
13204 test -z "$as_dir" && as_dir=.
13205 for ac_exec_ext in '' $ac_executable_extensions; do
13206 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
13207 ac_cv_prog_ac_ct_STRIP="strip"
13208 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13209 break 2
13211 done
13212 done
13213 IFS=$as_save_IFS
13217 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
13218 if test -n "$ac_ct_STRIP"; then
13219 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
13220 $as_echo "$ac_ct_STRIP" >&6; }
13221 else
13222 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13223 $as_echo "no" >&6; }
13226 if test "x$ac_ct_STRIP" = x; then
13227 STRIP=":"
13228 else
13229 case $cross_compiling:$ac_tool_warned in
13230 yes:)
13231 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
13232 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
13233 ac_tool_warned=yes ;;
13234 esac
13235 STRIP=$ac_ct_STRIP
13237 else
13238 STRIP="$ac_cv_prog_STRIP"
13241 test -z "$STRIP" && STRIP=:
13248 if test -n "$ac_tool_prefix"; then
13249 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
13250 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
13251 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13252 $as_echo_n "checking for $ac_word... " >&6; }
13253 if test "${ac_cv_prog_RANLIB+set}" = set; then :
13254 $as_echo_n "(cached) " >&6
13255 else
13256 if test -n "$RANLIB"; then
13257 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
13258 else
13259 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13260 for as_dir in $PATH
13262 IFS=$as_save_IFS
13263 test -z "$as_dir" && as_dir=.
13264 for ac_exec_ext in '' $ac_executable_extensions; do
13265 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
13266 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
13267 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13268 break 2
13270 done
13271 done
13272 IFS=$as_save_IFS
13276 RANLIB=$ac_cv_prog_RANLIB
13277 if test -n "$RANLIB"; then
13278 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
13279 $as_echo "$RANLIB" >&6; }
13280 else
13281 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13282 $as_echo "no" >&6; }
13287 if test -z "$ac_cv_prog_RANLIB"; then
13288 ac_ct_RANLIB=$RANLIB
13289 # Extract the first word of "ranlib", so it can be a program name with args.
13290 set dummy ranlib; ac_word=$2
13291 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13292 $as_echo_n "checking for $ac_word... " >&6; }
13293 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then :
13294 $as_echo_n "(cached) " >&6
13295 else
13296 if test -n "$ac_ct_RANLIB"; then
13297 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
13298 else
13299 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13300 for as_dir in $PATH
13302 IFS=$as_save_IFS
13303 test -z "$as_dir" && as_dir=.
13304 for ac_exec_ext in '' $ac_executable_extensions; do
13305 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
13306 ac_cv_prog_ac_ct_RANLIB="ranlib"
13307 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13308 break 2
13310 done
13311 done
13312 IFS=$as_save_IFS
13316 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
13317 if test -n "$ac_ct_RANLIB"; then
13318 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
13319 $as_echo "$ac_ct_RANLIB" >&6; }
13320 else
13321 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13322 $as_echo "no" >&6; }
13325 if test "x$ac_ct_RANLIB" = x; then
13326 RANLIB=":"
13327 else
13328 case $cross_compiling:$ac_tool_warned in
13329 yes:)
13330 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
13331 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
13332 ac_tool_warned=yes ;;
13333 esac
13334 RANLIB=$ac_ct_RANLIB
13336 else
13337 RANLIB="$ac_cv_prog_RANLIB"
13340 test -z "$RANLIB" && RANLIB=:
13347 # Determine commands to create old-style static archives.
13348 old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs'
13349 old_postinstall_cmds='chmod 644 $oldlib'
13350 old_postuninstall_cmds=
13352 if test -n "$RANLIB"; then
13353 case $host_os in
13354 openbsd*)
13355 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$oldlib"
13358 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$oldlib"
13360 esac
13361 old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib"
13364 case $host_os in
13365 darwin*)
13366 lock_old_archive_extraction=yes ;;
13368 lock_old_archive_extraction=no ;;
13369 esac
13409 # If no C compiler was specified, use CC.
13410 LTCC=${LTCC-"$CC"}
13412 # If no C compiler flags were specified, use CFLAGS.
13413 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
13415 # Allow CC to be a program name with arguments.
13416 compiler=$CC
13419 # Check for command to grab the raw symbol name followed by C symbol from nm.
13420 { $as_echo "$as_me:${as_lineno-$LINENO}: checking command to parse $NM output from $compiler object" >&5
13421 $as_echo_n "checking command to parse $NM output from $compiler object... " >&6; }
13422 if test "${lt_cv_sys_global_symbol_pipe+set}" = set; then :
13423 $as_echo_n "(cached) " >&6
13424 else
13426 # These are sane defaults that work on at least a few old systems.
13427 # [They come from Ultrix. What could be older than Ultrix?!! ;)]
13429 # Character class describing NM global symbol codes.
13430 symcode='[BCDEGRST]'
13432 # Regexp to match symbols that can be accessed directly from C.
13433 sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
13435 # Define system-specific variables.
13436 case $host_os in
13437 aix*)
13438 symcode='[BCDT]'
13440 cygwin* | mingw* | pw32* | cegcc*)
13441 symcode='[ABCDGISTW]'
13443 hpux*)
13444 if test "$host_cpu" = ia64; then
13445 symcode='[ABCDEGRST]'
13448 irix* | nonstopux*)
13449 symcode='[BCDEGRST]'
13451 osf*)
13452 symcode='[BCDEGQRST]'
13454 solaris*)
13455 symcode='[BDRT]'
13457 sco3.2v5*)
13458 symcode='[DT]'
13460 sysv4.2uw2*)
13461 symcode='[DT]'
13463 sysv5* | sco5v6* | unixware* | OpenUNIX*)
13464 symcode='[ABDT]'
13466 sysv4)
13467 symcode='[DFNSTU]'
13469 esac
13471 # If we're using GNU nm, then use its standard symbol codes.
13472 case `$NM -V 2>&1` in
13473 *GNU* | *'with BFD'*)
13474 symcode='[ABCDGIRSTW]' ;;
13475 esac
13477 # Transform an extracted symbol line into a proper C declaration.
13478 # Some systems (esp. on ia64) link data and code symbols differently,
13479 # so use this general approach.
13480 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
13482 # Transform an extracted symbol line into symbol name and symbol address
13483 lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([^ ]*\) $/ {\\\"\1\\\", (void *) 0},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/ {\"\2\", (void *) \&\2},/p'"
13484 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'"
13486 # Handle CRLF in mingw tool chain
13487 opt_cr=
13488 case $build_os in
13489 mingw*)
13490 opt_cr=`$ECHO 'x\{0,1\}' | tr x '\015'` # option cr in regexp
13492 esac
13494 # Try without a prefix underscore, then with it.
13495 for ac_symprfx in "" "_"; do
13497 # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
13498 symxfrm="\\1 $ac_symprfx\\2 \\2"
13500 # Write the raw and C identifiers.
13501 if test "$lt_cv_nm_interface" = "MS dumpbin"; then
13502 # Fake it for dumpbin and say T for any non-static function
13503 # and D for any global variable.
13504 # Also find C++ and __fastcall symbols from MSVC++,
13505 # which start with @ or ?.
13506 lt_cv_sys_global_symbol_pipe="$AWK '"\
13507 " {last_section=section; section=\$ 3};"\
13508 " /Section length .*#relocs.*(pick any)/{hide[last_section]=1};"\
13509 " \$ 0!~/External *\|/{next};"\
13510 " / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};"\
13511 " {if(hide[section]) next};"\
13512 " {f=0}; \$ 0~/\(\).*\|/{f=1}; {printf f ? \"T \" : \"D \"};"\
13513 " {split(\$ 0, a, /\||\r/); split(a[2], s)};"\
13514 " s[1]~/^[@?]/{print s[1], s[1]; next};"\
13515 " s[1]~prfx {split(s[1],t,\"@\"); print t[1], substr(t[1],length(prfx))}"\
13516 " ' prfx=^$ac_symprfx"
13517 else
13518 lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
13521 # Check to see that the pipe works correctly.
13522 pipe_works=no
13524 rm -f conftest*
13525 cat > conftest.$ac_ext <<_LT_EOF
13526 #ifdef __cplusplus
13527 extern "C" {
13528 #endif
13529 char nm_test_var;
13530 void nm_test_func(void);
13531 void nm_test_func(void){}
13532 #ifdef __cplusplus
13534 #endif
13535 int main(){nm_test_var='a';nm_test_func();return(0);}
13536 _LT_EOF
13538 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
13539 (eval $ac_compile) 2>&5
13540 ac_status=$?
13541 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
13542 test $ac_status = 0; }; then
13543 # Now try to grab the symbols.
13544 nlist=conftest.nm
13545 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist\""; } >&5
13546 (eval $NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist) 2>&5
13547 ac_status=$?
13548 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
13549 test $ac_status = 0; } && test -s "$nlist"; then
13550 # Try sorting and uniquifying the output.
13551 if sort "$nlist" | uniq > "$nlist"T; then
13552 mv -f "$nlist"T "$nlist"
13553 else
13554 rm -f "$nlist"T
13557 # Make sure that we snagged all the symbols we need.
13558 if $GREP ' nm_test_var$' "$nlist" >/dev/null; then
13559 if $GREP ' nm_test_func$' "$nlist" >/dev/null; then
13560 cat <<_LT_EOF > conftest.$ac_ext
13561 #ifdef __cplusplus
13562 extern "C" {
13563 #endif
13565 _LT_EOF
13566 # Now generate the symbol file.
13567 eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | $GREP -v main >> conftest.$ac_ext'
13569 cat <<_LT_EOF >> conftest.$ac_ext
13571 /* The mapping between symbol names and symbols. */
13572 const struct {
13573 const char *name;
13574 void *address;
13576 lt__PROGRAM__LTX_preloaded_symbols[] =
13578 { "@PROGRAM@", (void *) 0 },
13579 _LT_EOF
13580 $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/ {\"\2\", (void *) \&\2},/" < "$nlist" | $GREP -v main >> conftest.$ac_ext
13581 cat <<\_LT_EOF >> conftest.$ac_ext
13582 {0, (void *) 0}
13585 /* This works around a problem in FreeBSD linker */
13586 #ifdef FREEBSD_WORKAROUND
13587 static const void *lt_preloaded_setup() {
13588 return lt__PROGRAM__LTX_preloaded_symbols;
13590 #endif
13592 #ifdef __cplusplus
13594 #endif
13595 _LT_EOF
13596 # Now try linking the two files.
13597 mv conftest.$ac_objext conftstm.$ac_objext
13598 lt_save_LIBS="$LIBS"
13599 lt_save_CFLAGS="$CFLAGS"
13600 LIBS="conftstm.$ac_objext"
13601 CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
13602 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
13603 (eval $ac_link) 2>&5
13604 ac_status=$?
13605 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
13606 test $ac_status = 0; } && test -s conftest${ac_exeext}; then
13607 pipe_works=yes
13609 LIBS="$lt_save_LIBS"
13610 CFLAGS="$lt_save_CFLAGS"
13611 else
13612 echo "cannot find nm_test_func in $nlist" >&5
13614 else
13615 echo "cannot find nm_test_var in $nlist" >&5
13617 else
13618 echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
13620 else
13621 echo "$progname: failed program was:" >&5
13622 cat conftest.$ac_ext >&5
13624 rm -rf conftest* conftst*
13626 # Do not use the global_symbol_pipe unless it works.
13627 if test "$pipe_works" = yes; then
13628 break
13629 else
13630 lt_cv_sys_global_symbol_pipe=
13632 done
13636 if test -z "$lt_cv_sys_global_symbol_pipe"; then
13637 lt_cv_sys_global_symbol_to_cdecl=
13639 if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
13640 { $as_echo "$as_me:${as_lineno-$LINENO}: result: failed" >&5
13641 $as_echo "failed" >&6; }
13642 else
13643 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5
13644 $as_echo "ok" >&6; }
13668 # Check whether --enable-libtool-lock was given.
13669 if test "${enable_libtool_lock+set}" = set; then :
13670 enableval=$enable_libtool_lock;
13673 test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
13675 # Some flags need to be propagated to the compiler or linker for good
13676 # libtool support.
13677 case $host in
13678 ia64-*-hpux*)
13679 # Find out which ABI we are using.
13680 echo 'int i;' > conftest.$ac_ext
13681 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
13682 (eval $ac_compile) 2>&5
13683 ac_status=$?
13684 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
13685 test $ac_status = 0; }; then
13686 case `/usr/bin/file conftest.$ac_objext` in
13687 *ELF-32*)
13688 HPUX_IA64_MODE="32"
13690 *ELF-64*)
13691 HPUX_IA64_MODE="64"
13693 esac
13695 rm -rf conftest*
13697 *-*-irix6*)
13698 # Find out which ABI we are using.
13699 echo '#line '$LINENO' "configure"' > conftest.$ac_ext
13700 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
13701 (eval $ac_compile) 2>&5
13702 ac_status=$?
13703 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
13704 test $ac_status = 0; }; then
13705 if test "$lt_cv_prog_gnu_ld" = yes; then
13706 case `/usr/bin/file conftest.$ac_objext` in
13707 *32-bit*)
13708 LD="${LD-ld} -melf32bsmip"
13710 *N32*)
13711 LD="${LD-ld} -melf32bmipn32"
13713 *64-bit*)
13714 LD="${LD-ld} -melf64bmip"
13716 esac
13717 else
13718 case `/usr/bin/file conftest.$ac_objext` in
13719 *32-bit*)
13720 LD="${LD-ld} -32"
13722 *N32*)
13723 LD="${LD-ld} -n32"
13725 *64-bit*)
13726 LD="${LD-ld} -64"
13728 esac
13731 rm -rf conftest*
13734 x86_64-*kfreebsd*-gnu|x86_64-*linux*|powerpc*-*linux*| \
13735 s390*-*linux*|s390*-*tpf*|sparc*-*linux*)
13736 # Find out which ABI we are using.
13737 echo 'int i;' > conftest.$ac_ext
13738 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
13739 (eval $ac_compile) 2>&5
13740 ac_status=$?
13741 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
13742 test $ac_status = 0; }; then
13743 case `/usr/bin/file conftest.o` in
13744 *32-bit*)
13745 case $host in
13746 x86_64-*kfreebsd*-gnu)
13747 LD="${LD-ld} -m elf_i386_fbsd"
13749 x86_64-*linux*)
13750 case `/usr/bin/file conftest.o` in
13751 *x86-64*)
13752 LD="${LD-ld} -m elf32_x86_64"
13755 LD="${LD-ld} -m elf_i386"
13757 esac
13759 powerpc64le-*linux*)
13760 LD="${LD-ld} -m elf32lppclinux"
13762 powerpc64-*linux*)
13763 LD="${LD-ld} -m elf32ppclinux"
13765 s390x-*linux*)
13766 LD="${LD-ld} -m elf_s390"
13768 sparc64-*linux*)
13769 LD="${LD-ld} -m elf32_sparc"
13771 esac
13773 *64-bit*)
13774 case $host in
13775 x86_64-*kfreebsd*-gnu)
13776 LD="${LD-ld} -m elf_x86_64_fbsd"
13778 x86_64-*linux*)
13779 LD="${LD-ld} -m elf_x86_64"
13781 powerpcle-*linux*)
13782 LD="${LD-ld} -m elf64lppc"
13784 powerpc-*linux*)
13785 LD="${LD-ld} -m elf64ppc"
13787 s390*-*linux*|s390*-*tpf*)
13788 LD="${LD-ld} -m elf64_s390"
13790 sparc*-*linux*)
13791 LD="${LD-ld} -m elf64_sparc"
13793 esac
13795 esac
13797 rm -rf conftest*
13800 *-*-sco3.2v5*)
13801 # On SCO OpenServer 5, we need -belf to get full-featured binaries.
13802 SAVE_CFLAGS="$CFLAGS"
13803 CFLAGS="$CFLAGS -belf"
13804 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler needs -belf" >&5
13805 $as_echo_n "checking whether the C compiler needs -belf... " >&6; }
13806 if test "${lt_cv_cc_needs_belf+set}" = set; then :
13807 $as_echo_n "(cached) " >&6
13808 else
13809 ac_ext=c
13810 ac_cpp='$CPP $CPPFLAGS'
13811 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
13812 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13813 ac_compiler_gnu=$ac_cv_c_compiler_gnu
13815 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13816 /* end confdefs.h. */
13819 main ()
13823 return 0;
13825 _ACEOF
13826 if ac_fn_c_try_link "$LINENO"; then :
13827 lt_cv_cc_needs_belf=yes
13828 else
13829 lt_cv_cc_needs_belf=no
13831 rm -f core conftest.err conftest.$ac_objext \
13832 conftest$ac_exeext conftest.$ac_ext
13833 ac_ext=c
13834 ac_cpp='$CPP $CPPFLAGS'
13835 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
13836 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13837 ac_compiler_gnu=$ac_cv_c_compiler_gnu
13840 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_cc_needs_belf" >&5
13841 $as_echo "$lt_cv_cc_needs_belf" >&6; }
13842 if test x"$lt_cv_cc_needs_belf" != x"yes"; then
13843 # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
13844 CFLAGS="$SAVE_CFLAGS"
13847 sparc*-*solaris*)
13848 # Find out which ABI we are using.
13849 echo 'int i;' > conftest.$ac_ext
13850 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
13851 (eval $ac_compile) 2>&5
13852 ac_status=$?
13853 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
13854 test $ac_status = 0; }; then
13855 case `/usr/bin/file conftest.o` in
13856 *64-bit*)
13857 case $lt_cv_prog_gnu_ld in
13858 yes*) LD="${LD-ld} -m elf64_sparc" ;;
13860 if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then
13861 LD="${LD-ld} -64"
13864 esac
13866 esac
13868 rm -rf conftest*
13870 esac
13872 need_locks="$enable_libtool_lock"
13875 case $host_os in
13876 rhapsody* | darwin*)
13877 if test -n "$ac_tool_prefix"; then
13878 # Extract the first word of "${ac_tool_prefix}dsymutil", so it can be a program name with args.
13879 set dummy ${ac_tool_prefix}dsymutil; ac_word=$2
13880 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13881 $as_echo_n "checking for $ac_word... " >&6; }
13882 if test "${ac_cv_prog_DSYMUTIL+set}" = set; then :
13883 $as_echo_n "(cached) " >&6
13884 else
13885 if test -n "$DSYMUTIL"; then
13886 ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test.
13887 else
13888 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13889 for as_dir in $PATH
13891 IFS=$as_save_IFS
13892 test -z "$as_dir" && as_dir=.
13893 for ac_exec_ext in '' $ac_executable_extensions; do
13894 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
13895 ac_cv_prog_DSYMUTIL="${ac_tool_prefix}dsymutil"
13896 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13897 break 2
13899 done
13900 done
13901 IFS=$as_save_IFS
13905 DSYMUTIL=$ac_cv_prog_DSYMUTIL
13906 if test -n "$DSYMUTIL"; then
13907 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DSYMUTIL" >&5
13908 $as_echo "$DSYMUTIL" >&6; }
13909 else
13910 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13911 $as_echo "no" >&6; }
13916 if test -z "$ac_cv_prog_DSYMUTIL"; then
13917 ac_ct_DSYMUTIL=$DSYMUTIL
13918 # Extract the first word of "dsymutil", so it can be a program name with args.
13919 set dummy dsymutil; ac_word=$2
13920 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13921 $as_echo_n "checking for $ac_word... " >&6; }
13922 if test "${ac_cv_prog_ac_ct_DSYMUTIL+set}" = set; then :
13923 $as_echo_n "(cached) " >&6
13924 else
13925 if test -n "$ac_ct_DSYMUTIL"; then
13926 ac_cv_prog_ac_ct_DSYMUTIL="$ac_ct_DSYMUTIL" # Let the user override the test.
13927 else
13928 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13929 for as_dir in $PATH
13931 IFS=$as_save_IFS
13932 test -z "$as_dir" && as_dir=.
13933 for ac_exec_ext in '' $ac_executable_extensions; do
13934 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
13935 ac_cv_prog_ac_ct_DSYMUTIL="dsymutil"
13936 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13937 break 2
13939 done
13940 done
13941 IFS=$as_save_IFS
13945 ac_ct_DSYMUTIL=$ac_cv_prog_ac_ct_DSYMUTIL
13946 if test -n "$ac_ct_DSYMUTIL"; then
13947 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DSYMUTIL" >&5
13948 $as_echo "$ac_ct_DSYMUTIL" >&6; }
13949 else
13950 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13951 $as_echo "no" >&6; }
13954 if test "x$ac_ct_DSYMUTIL" = x; then
13955 DSYMUTIL=":"
13956 else
13957 case $cross_compiling:$ac_tool_warned in
13958 yes:)
13959 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
13960 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
13961 ac_tool_warned=yes ;;
13962 esac
13963 DSYMUTIL=$ac_ct_DSYMUTIL
13965 else
13966 DSYMUTIL="$ac_cv_prog_DSYMUTIL"
13969 if test -n "$ac_tool_prefix"; then
13970 # Extract the first word of "${ac_tool_prefix}nmedit", so it can be a program name with args.
13971 set dummy ${ac_tool_prefix}nmedit; ac_word=$2
13972 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13973 $as_echo_n "checking for $ac_word... " >&6; }
13974 if test "${ac_cv_prog_NMEDIT+set}" = set; then :
13975 $as_echo_n "(cached) " >&6
13976 else
13977 if test -n "$NMEDIT"; then
13978 ac_cv_prog_NMEDIT="$NMEDIT" # Let the user override the test.
13979 else
13980 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13981 for as_dir in $PATH
13983 IFS=$as_save_IFS
13984 test -z "$as_dir" && as_dir=.
13985 for ac_exec_ext in '' $ac_executable_extensions; do
13986 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
13987 ac_cv_prog_NMEDIT="${ac_tool_prefix}nmedit"
13988 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13989 break 2
13991 done
13992 done
13993 IFS=$as_save_IFS
13997 NMEDIT=$ac_cv_prog_NMEDIT
13998 if test -n "$NMEDIT"; then
13999 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NMEDIT" >&5
14000 $as_echo "$NMEDIT" >&6; }
14001 else
14002 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14003 $as_echo "no" >&6; }
14008 if test -z "$ac_cv_prog_NMEDIT"; then
14009 ac_ct_NMEDIT=$NMEDIT
14010 # Extract the first word of "nmedit", so it can be a program name with args.
14011 set dummy nmedit; ac_word=$2
14012 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
14013 $as_echo_n "checking for $ac_word... " >&6; }
14014 if test "${ac_cv_prog_ac_ct_NMEDIT+set}" = set; then :
14015 $as_echo_n "(cached) " >&6
14016 else
14017 if test -n "$ac_ct_NMEDIT"; then
14018 ac_cv_prog_ac_ct_NMEDIT="$ac_ct_NMEDIT" # Let the user override the test.
14019 else
14020 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14021 for as_dir in $PATH
14023 IFS=$as_save_IFS
14024 test -z "$as_dir" && as_dir=.
14025 for ac_exec_ext in '' $ac_executable_extensions; do
14026 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
14027 ac_cv_prog_ac_ct_NMEDIT="nmedit"
14028 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
14029 break 2
14031 done
14032 done
14033 IFS=$as_save_IFS
14037 ac_ct_NMEDIT=$ac_cv_prog_ac_ct_NMEDIT
14038 if test -n "$ac_ct_NMEDIT"; then
14039 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_NMEDIT" >&5
14040 $as_echo "$ac_ct_NMEDIT" >&6; }
14041 else
14042 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14043 $as_echo "no" >&6; }
14046 if test "x$ac_ct_NMEDIT" = x; then
14047 NMEDIT=":"
14048 else
14049 case $cross_compiling:$ac_tool_warned in
14050 yes:)
14051 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
14052 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
14053 ac_tool_warned=yes ;;
14054 esac
14055 NMEDIT=$ac_ct_NMEDIT
14057 else
14058 NMEDIT="$ac_cv_prog_NMEDIT"
14061 if test -n "$ac_tool_prefix"; then
14062 # Extract the first word of "${ac_tool_prefix}lipo", so it can be a program name with args.
14063 set dummy ${ac_tool_prefix}lipo; ac_word=$2
14064 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
14065 $as_echo_n "checking for $ac_word... " >&6; }
14066 if test "${ac_cv_prog_LIPO+set}" = set; then :
14067 $as_echo_n "(cached) " >&6
14068 else
14069 if test -n "$LIPO"; then
14070 ac_cv_prog_LIPO="$LIPO" # Let the user override the test.
14071 else
14072 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14073 for as_dir in $PATH
14075 IFS=$as_save_IFS
14076 test -z "$as_dir" && as_dir=.
14077 for ac_exec_ext in '' $ac_executable_extensions; do
14078 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
14079 ac_cv_prog_LIPO="${ac_tool_prefix}lipo"
14080 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
14081 break 2
14083 done
14084 done
14085 IFS=$as_save_IFS
14089 LIPO=$ac_cv_prog_LIPO
14090 if test -n "$LIPO"; then
14091 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO" >&5
14092 $as_echo "$LIPO" >&6; }
14093 else
14094 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14095 $as_echo "no" >&6; }
14100 if test -z "$ac_cv_prog_LIPO"; then
14101 ac_ct_LIPO=$LIPO
14102 # Extract the first word of "lipo", so it can be a program name with args.
14103 set dummy lipo; ac_word=$2
14104 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
14105 $as_echo_n "checking for $ac_word... " >&6; }
14106 if test "${ac_cv_prog_ac_ct_LIPO+set}" = set; then :
14107 $as_echo_n "(cached) " >&6
14108 else
14109 if test -n "$ac_ct_LIPO"; then
14110 ac_cv_prog_ac_ct_LIPO="$ac_ct_LIPO" # Let the user override the test.
14111 else
14112 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14113 for as_dir in $PATH
14115 IFS=$as_save_IFS
14116 test -z "$as_dir" && as_dir=.
14117 for ac_exec_ext in '' $ac_executable_extensions; do
14118 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
14119 ac_cv_prog_ac_ct_LIPO="lipo"
14120 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
14121 break 2
14123 done
14124 done
14125 IFS=$as_save_IFS
14129 ac_ct_LIPO=$ac_cv_prog_ac_ct_LIPO
14130 if test -n "$ac_ct_LIPO"; then
14131 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_LIPO" >&5
14132 $as_echo "$ac_ct_LIPO" >&6; }
14133 else
14134 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14135 $as_echo "no" >&6; }
14138 if test "x$ac_ct_LIPO" = x; then
14139 LIPO=":"
14140 else
14141 case $cross_compiling:$ac_tool_warned in
14142 yes:)
14143 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
14144 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
14145 ac_tool_warned=yes ;;
14146 esac
14147 LIPO=$ac_ct_LIPO
14149 else
14150 LIPO="$ac_cv_prog_LIPO"
14153 if test -n "$ac_tool_prefix"; then
14154 # Extract the first word of "${ac_tool_prefix}otool", so it can be a program name with args.
14155 set dummy ${ac_tool_prefix}otool; ac_word=$2
14156 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
14157 $as_echo_n "checking for $ac_word... " >&6; }
14158 if test "${ac_cv_prog_OTOOL+set}" = set; then :
14159 $as_echo_n "(cached) " >&6
14160 else
14161 if test -n "$OTOOL"; then
14162 ac_cv_prog_OTOOL="$OTOOL" # Let the user override the test.
14163 else
14164 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14165 for as_dir in $PATH
14167 IFS=$as_save_IFS
14168 test -z "$as_dir" && as_dir=.
14169 for ac_exec_ext in '' $ac_executable_extensions; do
14170 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
14171 ac_cv_prog_OTOOL="${ac_tool_prefix}otool"
14172 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
14173 break 2
14175 done
14176 done
14177 IFS=$as_save_IFS
14181 OTOOL=$ac_cv_prog_OTOOL
14182 if test -n "$OTOOL"; then
14183 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL" >&5
14184 $as_echo "$OTOOL" >&6; }
14185 else
14186 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14187 $as_echo "no" >&6; }
14192 if test -z "$ac_cv_prog_OTOOL"; then
14193 ac_ct_OTOOL=$OTOOL
14194 # Extract the first word of "otool", so it can be a program name with args.
14195 set dummy otool; ac_word=$2
14196 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
14197 $as_echo_n "checking for $ac_word... " >&6; }
14198 if test "${ac_cv_prog_ac_ct_OTOOL+set}" = set; then :
14199 $as_echo_n "(cached) " >&6
14200 else
14201 if test -n "$ac_ct_OTOOL"; then
14202 ac_cv_prog_ac_ct_OTOOL="$ac_ct_OTOOL" # Let the user override the test.
14203 else
14204 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14205 for as_dir in $PATH
14207 IFS=$as_save_IFS
14208 test -z "$as_dir" && as_dir=.
14209 for ac_exec_ext in '' $ac_executable_extensions; do
14210 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
14211 ac_cv_prog_ac_ct_OTOOL="otool"
14212 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
14213 break 2
14215 done
14216 done
14217 IFS=$as_save_IFS
14221 ac_ct_OTOOL=$ac_cv_prog_ac_ct_OTOOL
14222 if test -n "$ac_ct_OTOOL"; then
14223 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL" >&5
14224 $as_echo "$ac_ct_OTOOL" >&6; }
14225 else
14226 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14227 $as_echo "no" >&6; }
14230 if test "x$ac_ct_OTOOL" = x; then
14231 OTOOL=":"
14232 else
14233 case $cross_compiling:$ac_tool_warned in
14234 yes:)
14235 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
14236 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
14237 ac_tool_warned=yes ;;
14238 esac
14239 OTOOL=$ac_ct_OTOOL
14241 else
14242 OTOOL="$ac_cv_prog_OTOOL"
14245 if test -n "$ac_tool_prefix"; then
14246 # Extract the first word of "${ac_tool_prefix}otool64", so it can be a program name with args.
14247 set dummy ${ac_tool_prefix}otool64; ac_word=$2
14248 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
14249 $as_echo_n "checking for $ac_word... " >&6; }
14250 if test "${ac_cv_prog_OTOOL64+set}" = set; then :
14251 $as_echo_n "(cached) " >&6
14252 else
14253 if test -n "$OTOOL64"; then
14254 ac_cv_prog_OTOOL64="$OTOOL64" # Let the user override the test.
14255 else
14256 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14257 for as_dir in $PATH
14259 IFS=$as_save_IFS
14260 test -z "$as_dir" && as_dir=.
14261 for ac_exec_ext in '' $ac_executable_extensions; do
14262 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
14263 ac_cv_prog_OTOOL64="${ac_tool_prefix}otool64"
14264 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
14265 break 2
14267 done
14268 done
14269 IFS=$as_save_IFS
14273 OTOOL64=$ac_cv_prog_OTOOL64
14274 if test -n "$OTOOL64"; then
14275 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL64" >&5
14276 $as_echo "$OTOOL64" >&6; }
14277 else
14278 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14279 $as_echo "no" >&6; }
14284 if test -z "$ac_cv_prog_OTOOL64"; then
14285 ac_ct_OTOOL64=$OTOOL64
14286 # Extract the first word of "otool64", so it can be a program name with args.
14287 set dummy otool64; ac_word=$2
14288 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
14289 $as_echo_n "checking for $ac_word... " >&6; }
14290 if test "${ac_cv_prog_ac_ct_OTOOL64+set}" = set; then :
14291 $as_echo_n "(cached) " >&6
14292 else
14293 if test -n "$ac_ct_OTOOL64"; then
14294 ac_cv_prog_ac_ct_OTOOL64="$ac_ct_OTOOL64" # Let the user override the test.
14295 else
14296 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14297 for as_dir in $PATH
14299 IFS=$as_save_IFS
14300 test -z "$as_dir" && as_dir=.
14301 for ac_exec_ext in '' $ac_executable_extensions; do
14302 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
14303 ac_cv_prog_ac_ct_OTOOL64="otool64"
14304 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
14305 break 2
14307 done
14308 done
14309 IFS=$as_save_IFS
14313 ac_ct_OTOOL64=$ac_cv_prog_ac_ct_OTOOL64
14314 if test -n "$ac_ct_OTOOL64"; then
14315 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL64" >&5
14316 $as_echo "$ac_ct_OTOOL64" >&6; }
14317 else
14318 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14319 $as_echo "no" >&6; }
14322 if test "x$ac_ct_OTOOL64" = x; then
14323 OTOOL64=":"
14324 else
14325 case $cross_compiling:$ac_tool_warned in
14326 yes:)
14327 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
14328 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
14329 ac_tool_warned=yes ;;
14330 esac
14331 OTOOL64=$ac_ct_OTOOL64
14333 else
14334 OTOOL64="$ac_cv_prog_OTOOL64"
14363 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -single_module linker flag" >&5
14364 $as_echo_n "checking for -single_module linker flag... " >&6; }
14365 if test "${lt_cv_apple_cc_single_mod+set}" = set; then :
14366 $as_echo_n "(cached) " >&6
14367 else
14368 lt_cv_apple_cc_single_mod=no
14369 if test -z "${LT_MULTI_MODULE}"; then
14370 # By default we will add the -single_module flag. You can override
14371 # by either setting the environment variable LT_MULTI_MODULE
14372 # non-empty at configure time, or by adding -multi_module to the
14373 # link flags.
14374 rm -rf libconftest.dylib*
14375 echo "int foo(void){return 1;}" > conftest.c
14376 echo "$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
14377 -dynamiclib -Wl,-single_module conftest.c" >&5
14378 $LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
14379 -dynamiclib -Wl,-single_module conftest.c 2>conftest.err
14380 _lt_result=$?
14381 if test -f libconftest.dylib && test ! -s conftest.err && test $_lt_result = 0; then
14382 lt_cv_apple_cc_single_mod=yes
14383 else
14384 cat conftest.err >&5
14386 rm -rf libconftest.dylib*
14387 rm -f conftest.*
14390 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_apple_cc_single_mod" >&5
14391 $as_echo "$lt_cv_apple_cc_single_mod" >&6; }
14392 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -exported_symbols_list linker flag" >&5
14393 $as_echo_n "checking for -exported_symbols_list linker flag... " >&6; }
14394 if test "${lt_cv_ld_exported_symbols_list+set}" = set; then :
14395 $as_echo_n "(cached) " >&6
14396 else
14397 lt_cv_ld_exported_symbols_list=no
14398 save_LDFLAGS=$LDFLAGS
14399 echo "_main" > conftest.sym
14400 LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym"
14401 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14402 /* end confdefs.h. */
14405 main ()
14409 return 0;
14411 _ACEOF
14412 if ac_fn_c_try_link "$LINENO"; then :
14413 lt_cv_ld_exported_symbols_list=yes
14414 else
14415 lt_cv_ld_exported_symbols_list=no
14417 rm -f core conftest.err conftest.$ac_objext \
14418 conftest$ac_exeext conftest.$ac_ext
14419 LDFLAGS="$save_LDFLAGS"
14422 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_exported_symbols_list" >&5
14423 $as_echo "$lt_cv_ld_exported_symbols_list" >&6; }
14424 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -force_load linker flag" >&5
14425 $as_echo_n "checking for -force_load linker flag... " >&6; }
14426 if test "${lt_cv_ld_force_load+set}" = set; then :
14427 $as_echo_n "(cached) " >&6
14428 else
14429 lt_cv_ld_force_load=no
14430 cat > conftest.c << _LT_EOF
14431 int forced_loaded() { return 2;}
14432 _LT_EOF
14433 echo "$LTCC $LTCFLAGS -c -o conftest.o conftest.c" >&5
14434 $LTCC $LTCFLAGS -c -o conftest.o conftest.c 2>&5
14435 echo "$AR cru libconftest.a conftest.o" >&5
14436 $AR cru libconftest.a conftest.o 2>&5
14437 cat > conftest.c << _LT_EOF
14438 int main() { return 0;}
14439 _LT_EOF
14440 echo "$LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a" >&5
14441 $LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a 2>conftest.err
14442 _lt_result=$?
14443 if test -f conftest && test ! -s conftest.err && test $_lt_result = 0 && $GREP forced_load conftest 2>&1 >/dev/null; then
14444 lt_cv_ld_force_load=yes
14445 else
14446 cat conftest.err >&5
14448 rm -f conftest.err libconftest.a conftest conftest.c
14449 rm -rf conftest.dSYM
14452 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_force_load" >&5
14453 $as_echo "$lt_cv_ld_force_load" >&6; }
14454 case $host_os in
14455 rhapsody* | darwin1.[012])
14456 _lt_dar_allow_undefined='${wl}-undefined ${wl}suppress' ;;
14457 darwin1.*)
14458 _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
14459 darwin*) # darwin 5.x on
14460 # if running on 10.5 or later, the deployment target defaults
14461 # to the OS version, if on x86, and 10.4, the deployment
14462 # target defaults to 10.4. Don't you love it?
14463 case ${MACOSX_DEPLOYMENT_TARGET-10.0},$host in
14464 10.0,*86*-darwin8*|10.0,*-darwin[91]*)
14465 _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
14466 10.[012]*)
14467 _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
14468 10.*)
14469 _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
14470 esac
14472 esac
14473 if test "$lt_cv_apple_cc_single_mod" = "yes"; then
14474 _lt_dar_single_mod='$single_module'
14476 if test "$lt_cv_ld_exported_symbols_list" = "yes"; then
14477 _lt_dar_export_syms=' ${wl}-exported_symbols_list,$output_objdir/${libname}-symbols.expsym'
14478 else
14479 _lt_dar_export_syms='~$NMEDIT -s $output_objdir/${libname}-symbols.expsym ${lib}'
14481 if test "$DSYMUTIL" != ":" && test "$lt_cv_ld_force_load" = "no"; then
14482 _lt_dsymutil='~$DSYMUTIL $lib || :'
14483 else
14484 _lt_dsymutil=
14487 esac
14489 for ac_header in dlfcn.h
14490 do :
14491 ac_fn_c_check_header_preproc "$LINENO" "dlfcn.h" "ac_cv_header_dlfcn_h"
14492 if test "x$ac_cv_header_dlfcn_h" = x""yes; then :
14493 cat >>confdefs.h <<_ACEOF
14494 #define HAVE_DLFCN_H 1
14495 _ACEOF
14498 done
14504 # Set options
14508 enable_dlopen=no
14511 enable_win32_dll=no
14514 # Check whether --enable-shared was given.
14515 if test "${enable_shared+set}" = set; then :
14516 enableval=$enable_shared; p=${PACKAGE-default}
14517 case $enableval in
14518 yes) enable_shared=yes ;;
14519 no) enable_shared=no ;;
14521 enable_shared=no
14522 # Look at the argument we got. We use all the common list separators.
14523 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
14524 for pkg in $enableval; do
14525 IFS="$lt_save_ifs"
14526 if test "X$pkg" = "X$p"; then
14527 enable_shared=yes
14529 done
14530 IFS="$lt_save_ifs"
14532 esac
14533 else
14534 enable_shared=yes
14545 # Check whether --enable-static was given.
14546 if test "${enable_static+set}" = set; then :
14547 enableval=$enable_static; p=${PACKAGE-default}
14548 case $enableval in
14549 yes) enable_static=yes ;;
14550 no) enable_static=no ;;
14552 enable_static=no
14553 # Look at the argument we got. We use all the common list separators.
14554 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
14555 for pkg in $enableval; do
14556 IFS="$lt_save_ifs"
14557 if test "X$pkg" = "X$p"; then
14558 enable_static=yes
14560 done
14561 IFS="$lt_save_ifs"
14563 esac
14564 else
14565 enable_static=yes
14577 # Check whether --with-pic was given.
14578 if test "${with_pic+set}" = set; then :
14579 withval=$with_pic; p=${PACKAGE-default}
14580 case "$withval" in
14581 yes|no) pic_mode="$withval" ;;
14583 pic_mode=default
14584 # Look at the argument we got. We use all the common list separators.
14585 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
14586 for pkg in $withval; do
14587 IFS="$lt_save_ifs"
14588 if test "X$pkg" = "X$p"; then
14589 pic_mode=yes
14591 done
14592 IFS="$lt_save_ifs"
14594 esac
14595 else
14596 pic_mode=default
14600 test -z "$pic_mode" && pic_mode=default
14608 # Check whether --enable-fast-install was given.
14609 if test "${enable_fast_install+set}" = set; then :
14610 enableval=$enable_fast_install; p=${PACKAGE-default}
14611 case $enableval in
14612 yes) enable_fast_install=yes ;;
14613 no) enable_fast_install=no ;;
14615 enable_fast_install=no
14616 # Look at the argument we got. We use all the common list separators.
14617 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
14618 for pkg in $enableval; do
14619 IFS="$lt_save_ifs"
14620 if test "X$pkg" = "X$p"; then
14621 enable_fast_install=yes
14623 done
14624 IFS="$lt_save_ifs"
14626 esac
14627 else
14628 enable_fast_install=yes
14641 # This can be used to rebuild libtool when needed
14642 LIBTOOL_DEPS="$ltmain"
14644 # Always use our own libtool.
14645 LIBTOOL='$(SHELL) $(top_builddir)/libtool'
14672 test -z "$LN_S" && LN_S="ln -s"
14687 if test -n "${ZSH_VERSION+set}" ; then
14688 setopt NO_GLOB_SUBST
14691 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for objdir" >&5
14692 $as_echo_n "checking for objdir... " >&6; }
14693 if test "${lt_cv_objdir+set}" = set; then :
14694 $as_echo_n "(cached) " >&6
14695 else
14696 rm -f .libs 2>/dev/null
14697 mkdir .libs 2>/dev/null
14698 if test -d .libs; then
14699 lt_cv_objdir=.libs
14700 else
14701 # MS-DOS does not allow filenames that begin with a dot.
14702 lt_cv_objdir=_libs
14704 rmdir .libs 2>/dev/null
14706 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_objdir" >&5
14707 $as_echo "$lt_cv_objdir" >&6; }
14708 objdir=$lt_cv_objdir
14714 cat >>confdefs.h <<_ACEOF
14715 #define LT_OBJDIR "$lt_cv_objdir/"
14716 _ACEOF
14721 case $host_os in
14722 aix3*)
14723 # AIX sometimes has problems with the GCC collect2 program. For some
14724 # reason, if we set the COLLECT_NAMES environment variable, the problems
14725 # vanish in a puff of smoke.
14726 if test "X${COLLECT_NAMES+set}" != Xset; then
14727 COLLECT_NAMES=
14728 export COLLECT_NAMES
14731 esac
14733 # Global variables:
14734 ofile=libtool
14735 can_build_shared=yes
14737 # All known linkers require a `.a' archive for static linking (except MSVC,
14738 # which needs '.lib').
14739 libext=a
14741 with_gnu_ld="$lt_cv_prog_gnu_ld"
14743 old_CC="$CC"
14744 old_CFLAGS="$CFLAGS"
14746 # Set sane defaults for various variables
14747 test -z "$CC" && CC=cc
14748 test -z "$LTCC" && LTCC=$CC
14749 test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
14750 test -z "$LD" && LD=ld
14751 test -z "$ac_objext" && ac_objext=o
14753 for cc_temp in $compiler""; do
14754 case $cc_temp in
14755 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
14756 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
14757 \-*) ;;
14758 *) break;;
14759 esac
14760 done
14761 cc_basename=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
14764 # Only perform the check for file, if the check method requires it
14765 test -z "$MAGIC_CMD" && MAGIC_CMD=file
14766 case $deplibs_check_method in
14767 file_magic*)
14768 if test "$file_magic_cmd" = '$MAGIC_CMD'; then
14769 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ac_tool_prefix}file" >&5
14770 $as_echo_n "checking for ${ac_tool_prefix}file... " >&6; }
14771 if test "${lt_cv_path_MAGIC_CMD+set}" = set; then :
14772 $as_echo_n "(cached) " >&6
14773 else
14774 case $MAGIC_CMD in
14775 [\\/*] | ?:[\\/]*)
14776 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
14779 lt_save_MAGIC_CMD="$MAGIC_CMD"
14780 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
14781 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
14782 for ac_dir in $ac_dummy; do
14783 IFS="$lt_save_ifs"
14784 test -z "$ac_dir" && ac_dir=.
14785 if test -f $ac_dir/${ac_tool_prefix}file; then
14786 lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
14787 if test -n "$file_magic_test_file"; then
14788 case $deplibs_check_method in
14789 "file_magic "*)
14790 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
14791 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
14792 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
14793 $EGREP "$file_magic_regex" > /dev/null; then
14795 else
14796 cat <<_LT_EOF 1>&2
14798 *** Warning: the command libtool uses to detect shared libraries,
14799 *** $file_magic_cmd, produces output that libtool cannot recognize.
14800 *** The result is that libtool may fail to recognize shared libraries
14801 *** as such. This will affect the creation of libtool libraries that
14802 *** depend on shared libraries, but programs linked with such libtool
14803 *** libraries will work regardless of this problem. Nevertheless, you
14804 *** may want to report the problem to your system manager and/or to
14805 *** bug-libtool@gnu.org
14807 _LT_EOF
14808 fi ;;
14809 esac
14811 break
14813 done
14814 IFS="$lt_save_ifs"
14815 MAGIC_CMD="$lt_save_MAGIC_CMD"
14817 esac
14820 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
14821 if test -n "$MAGIC_CMD"; then
14822 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
14823 $as_echo "$MAGIC_CMD" >&6; }
14824 else
14825 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14826 $as_echo "no" >&6; }
14833 if test -z "$lt_cv_path_MAGIC_CMD"; then
14834 if test -n "$ac_tool_prefix"; then
14835 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for file" >&5
14836 $as_echo_n "checking for file... " >&6; }
14837 if test "${lt_cv_path_MAGIC_CMD+set}" = set; then :
14838 $as_echo_n "(cached) " >&6
14839 else
14840 case $MAGIC_CMD in
14841 [\\/*] | ?:[\\/]*)
14842 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
14845 lt_save_MAGIC_CMD="$MAGIC_CMD"
14846 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
14847 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
14848 for ac_dir in $ac_dummy; do
14849 IFS="$lt_save_ifs"
14850 test -z "$ac_dir" && ac_dir=.
14851 if test -f $ac_dir/file; then
14852 lt_cv_path_MAGIC_CMD="$ac_dir/file"
14853 if test -n "$file_magic_test_file"; then
14854 case $deplibs_check_method in
14855 "file_magic "*)
14856 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
14857 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
14858 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
14859 $EGREP "$file_magic_regex" > /dev/null; then
14861 else
14862 cat <<_LT_EOF 1>&2
14864 *** Warning: the command libtool uses to detect shared libraries,
14865 *** $file_magic_cmd, produces output that libtool cannot recognize.
14866 *** The result is that libtool may fail to recognize shared libraries
14867 *** as such. This will affect the creation of libtool libraries that
14868 *** depend on shared libraries, but programs linked with such libtool
14869 *** libraries will work regardless of this problem. Nevertheless, you
14870 *** may want to report the problem to your system manager and/or to
14871 *** bug-libtool@gnu.org
14873 _LT_EOF
14874 fi ;;
14875 esac
14877 break
14879 done
14880 IFS="$lt_save_ifs"
14881 MAGIC_CMD="$lt_save_MAGIC_CMD"
14883 esac
14886 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
14887 if test -n "$MAGIC_CMD"; then
14888 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
14889 $as_echo "$MAGIC_CMD" >&6; }
14890 else
14891 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14892 $as_echo "no" >&6; }
14896 else
14897 MAGIC_CMD=:
14903 esac
14905 # Use C for the default configuration in the libtool script
14907 lt_save_CC="$CC"
14908 ac_ext=c
14909 ac_cpp='$CPP $CPPFLAGS'
14910 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
14911 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
14912 ac_compiler_gnu=$ac_cv_c_compiler_gnu
14915 # Source file extension for C test sources.
14916 ac_ext=c
14918 # Object file extension for compiled C test sources.
14919 objext=o
14920 objext=$objext
14922 # Code to be used in simple compile tests
14923 lt_simple_compile_test_code="int some_variable = 0;"
14925 # Code to be used in simple link tests
14926 lt_simple_link_test_code='int main(){return(0);}'
14934 # If no C compiler was specified, use CC.
14935 LTCC=${LTCC-"$CC"}
14937 # If no C compiler flags were specified, use CFLAGS.
14938 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
14940 # Allow CC to be a program name with arguments.
14941 compiler=$CC
14943 # Save the default compiler, since it gets overwritten when the other
14944 # tags are being tested, and _LT_TAGVAR(compiler, []) is a NOP.
14945 compiler_DEFAULT=$CC
14947 # save warnings/boilerplate of simple test code
14948 ac_outfile=conftest.$ac_objext
14949 echo "$lt_simple_compile_test_code" >conftest.$ac_ext
14950 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
14951 _lt_compiler_boilerplate=`cat conftest.err`
14952 $RM conftest*
14954 ac_outfile=conftest.$ac_objext
14955 echo "$lt_simple_link_test_code" >conftest.$ac_ext
14956 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
14957 _lt_linker_boilerplate=`cat conftest.err`
14958 $RM -r conftest*
14961 ## CAVEAT EMPTOR:
14962 ## There is no encapsulation within the following macros, do not change
14963 ## the running order or otherwise move them around unless you know exactly
14964 ## what you are doing...
14965 if test -n "$compiler"; then
14967 lt_prog_compiler_no_builtin_flag=
14969 if test "$GCC" = yes; then
14970 case $cc_basename in
14971 nvcc*)
14972 lt_prog_compiler_no_builtin_flag=' -Xcompiler -fno-builtin' ;;
14974 lt_prog_compiler_no_builtin_flag=' -fno-builtin' ;;
14975 esac
14977 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
14978 $as_echo_n "checking if $compiler supports -fno-rtti -fno-exceptions... " >&6; }
14979 if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then :
14980 $as_echo_n "(cached) " >&6
14981 else
14982 lt_cv_prog_compiler_rtti_exceptions=no
14983 ac_outfile=conftest.$ac_objext
14984 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
14985 lt_compiler_flag="-fno-rtti -fno-exceptions"
14986 # Insert the option either (1) after the last *FLAGS variable, or
14987 # (2) before a word containing "conftest.", or (3) at the end.
14988 # Note that $ac_compile itself does not contain backslashes and begins
14989 # with a dollar sign (not a hyphen), so the echo should work correctly.
14990 # The option is referenced via a variable to avoid confusing sed.
14991 lt_compile=`echo "$ac_compile" | $SED \
14992 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
14993 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
14994 -e 's:$: $lt_compiler_flag:'`
14995 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
14996 (eval "$lt_compile" 2>conftest.err)
14997 ac_status=$?
14998 cat conftest.err >&5
14999 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15000 if (exit $ac_status) && test -s "$ac_outfile"; then
15001 # The compiler can only warn and ignore the option if not recognized
15002 # So say no if there are warnings other than the usual output.
15003 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
15004 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
15005 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
15006 lt_cv_prog_compiler_rtti_exceptions=yes
15009 $RM conftest*
15012 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
15013 $as_echo "$lt_cv_prog_compiler_rtti_exceptions" >&6; }
15015 if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
15016 lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
15017 else
15028 lt_prog_compiler_wl=
15029 lt_prog_compiler_pic=
15030 lt_prog_compiler_static=
15032 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
15033 $as_echo_n "checking for $compiler option to produce PIC... " >&6; }
15035 if test "$GCC" = yes; then
15036 lt_prog_compiler_wl='-Wl,'
15037 lt_prog_compiler_static='-static'
15039 case $host_os in
15040 aix*)
15041 # All AIX code is PIC.
15042 if test "$host_cpu" = ia64; then
15043 # AIX 5 now supports IA64 processor
15044 lt_prog_compiler_static='-Bstatic'
15046 lt_prog_compiler_pic='-fPIC'
15049 amigaos*)
15050 case $host_cpu in
15051 powerpc)
15052 # see comment about AmigaOS4 .so support
15053 lt_prog_compiler_pic='-fPIC'
15055 m68k)
15056 # FIXME: we need at least 68020 code to build shared libraries, but
15057 # adding the `-m68020' flag to GCC prevents building anything better,
15058 # like `-m68040'.
15059 lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
15061 esac
15064 beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
15065 # PIC is the default for these OSes.
15068 mingw* | cygwin* | pw32* | os2* | cegcc*)
15069 # This hack is so that the source file can tell whether it is being
15070 # built for inclusion in a dll (and should export symbols for example).
15071 # Although the cygwin gcc ignores -fPIC, still need this for old-style
15072 # (--disable-auto-import) libraries
15073 lt_prog_compiler_pic='-DDLL_EXPORT'
15076 darwin* | rhapsody*)
15077 # PIC is the default on this platform
15078 # Common symbols not allowed in MH_DYLIB files
15079 lt_prog_compiler_pic='-fno-common'
15082 haiku*)
15083 # PIC is the default for Haiku.
15084 # The "-static" flag exists, but is broken.
15085 lt_prog_compiler_static=
15088 hpux*)
15089 # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
15090 # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag
15091 # sets the default TLS model and affects inlining.
15092 case $host_cpu in
15093 hppa*64*)
15094 # +Z the default
15097 lt_prog_compiler_pic='-fPIC'
15099 esac
15102 interix[3-9]*)
15103 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
15104 # Instead, we relocate shared libraries at runtime.
15107 msdosdjgpp*)
15108 # Just because we use GCC doesn't mean we suddenly get shared libraries
15109 # on systems that don't support them.
15110 lt_prog_compiler_can_build_shared=no
15111 enable_shared=no
15114 *nto* | *qnx*)
15115 # QNX uses GNU C++, but need to define -shared option too, otherwise
15116 # it will coredump.
15117 lt_prog_compiler_pic='-fPIC -shared'
15120 sysv4*MP*)
15121 if test -d /usr/nec; then
15122 lt_prog_compiler_pic=-Kconform_pic
15127 lt_prog_compiler_pic='-fPIC'
15129 esac
15131 case $cc_basename in
15132 nvcc*) # Cuda Compiler Driver 2.2
15133 lt_prog_compiler_wl='-Xlinker '
15134 lt_prog_compiler_pic='-Xcompiler -fPIC'
15136 esac
15137 else
15138 # PORTME Check for flag to pass linker flags through the system compiler.
15139 case $host_os in
15140 aix*)
15141 lt_prog_compiler_wl='-Wl,'
15142 if test "$host_cpu" = ia64; then
15143 # AIX 5 now supports IA64 processor
15144 lt_prog_compiler_static='-Bstatic'
15145 else
15146 lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
15150 mingw* | cygwin* | pw32* | os2* | cegcc*)
15151 # This hack is so that the source file can tell whether it is being
15152 # built for inclusion in a dll (and should export symbols for example).
15153 lt_prog_compiler_pic='-DDLL_EXPORT'
15156 hpux9* | hpux10* | hpux11*)
15157 lt_prog_compiler_wl='-Wl,'
15158 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
15159 # not for PA HP-UX.
15160 case $host_cpu in
15161 hppa*64*|ia64*)
15162 # +Z the default
15165 lt_prog_compiler_pic='+Z'
15167 esac
15168 # Is there a better lt_prog_compiler_static that works with the bundled CC?
15169 lt_prog_compiler_static='${wl}-a ${wl}archive'
15172 irix5* | irix6* | nonstopux*)
15173 lt_prog_compiler_wl='-Wl,'
15174 # PIC (with -KPIC) is the default.
15175 lt_prog_compiler_static='-non_shared'
15178 linux* | k*bsd*-gnu | kopensolaris*-gnu)
15179 case $cc_basename in
15180 # old Intel for x86_64 which still supported -KPIC.
15181 ecc*)
15182 lt_prog_compiler_wl='-Wl,'
15183 lt_prog_compiler_pic='-KPIC'
15184 lt_prog_compiler_static='-static'
15186 # icc used to be incompatible with GCC.
15187 # ICC 10 doesn't accept -KPIC any more.
15188 icc* | ifort*)
15189 lt_prog_compiler_wl='-Wl,'
15190 lt_prog_compiler_pic='-fPIC'
15191 lt_prog_compiler_static='-static'
15193 # Lahey Fortran 8.1.
15194 lf95*)
15195 lt_prog_compiler_wl='-Wl,'
15196 lt_prog_compiler_pic='--shared'
15197 lt_prog_compiler_static='--static'
15199 pgcc* | pgf77* | pgf90* | pgf95* | pgfortran*)
15200 # Portland Group compilers (*not* the Pentium gcc compiler,
15201 # which looks to be a dead project)
15202 lt_prog_compiler_wl='-Wl,'
15203 lt_prog_compiler_pic='-fpic'
15204 lt_prog_compiler_static='-Bstatic'
15206 ccc*)
15207 lt_prog_compiler_wl='-Wl,'
15208 # All Alpha code is PIC.
15209 lt_prog_compiler_static='-non_shared'
15211 xl* | bgxl* | bgf* | mpixl*)
15212 # IBM XL C 8.0/Fortran 10.1, 11.1 on PPC and BlueGene
15213 lt_prog_compiler_wl='-Wl,'
15214 lt_prog_compiler_pic='-qpic'
15215 lt_prog_compiler_static='-qstaticlink'
15218 case `$CC -V 2>&1 | sed 5q` in
15219 *Sun\ F* | *Sun*Fortran*)
15220 # Sun Fortran 8.3 passes all unrecognized flags to the linker
15221 lt_prog_compiler_pic='-KPIC'
15222 lt_prog_compiler_static='-Bstatic'
15223 lt_prog_compiler_wl=''
15225 *Sun\ C*)
15226 # Sun C 5.9
15227 lt_prog_compiler_pic='-KPIC'
15228 lt_prog_compiler_static='-Bstatic'
15229 lt_prog_compiler_wl='-Wl,'
15231 esac
15233 esac
15236 newsos6)
15237 lt_prog_compiler_pic='-KPIC'
15238 lt_prog_compiler_static='-Bstatic'
15241 *nto* | *qnx*)
15242 # QNX uses GNU C++, but need to define -shared option too, otherwise
15243 # it will coredump.
15244 lt_prog_compiler_pic='-fPIC -shared'
15247 osf3* | osf4* | osf5*)
15248 lt_prog_compiler_wl='-Wl,'
15249 # All OSF/1 code is PIC.
15250 lt_prog_compiler_static='-non_shared'
15253 rdos*)
15254 lt_prog_compiler_static='-non_shared'
15257 solaris*)
15258 lt_prog_compiler_pic='-KPIC'
15259 lt_prog_compiler_static='-Bstatic'
15260 case $cc_basename in
15261 f77* | f90* | f95*)
15262 lt_prog_compiler_wl='-Qoption ld ';;
15264 lt_prog_compiler_wl='-Wl,';;
15265 esac
15268 sunos4*)
15269 lt_prog_compiler_wl='-Qoption ld '
15270 lt_prog_compiler_pic='-PIC'
15271 lt_prog_compiler_static='-Bstatic'
15274 sysv4 | sysv4.2uw2* | sysv4.3*)
15275 lt_prog_compiler_wl='-Wl,'
15276 lt_prog_compiler_pic='-KPIC'
15277 lt_prog_compiler_static='-Bstatic'
15280 sysv4*MP*)
15281 if test -d /usr/nec ;then
15282 lt_prog_compiler_pic='-Kconform_pic'
15283 lt_prog_compiler_static='-Bstatic'
15287 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
15288 lt_prog_compiler_wl='-Wl,'
15289 lt_prog_compiler_pic='-KPIC'
15290 lt_prog_compiler_static='-Bstatic'
15293 unicos*)
15294 lt_prog_compiler_wl='-Wl,'
15295 lt_prog_compiler_can_build_shared=no
15298 uts4*)
15299 lt_prog_compiler_pic='-pic'
15300 lt_prog_compiler_static='-Bstatic'
15304 lt_prog_compiler_can_build_shared=no
15306 esac
15309 case $host_os in
15310 # For platforms which do not support PIC, -DPIC is meaningless:
15311 *djgpp*)
15312 lt_prog_compiler_pic=
15315 lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
15317 esac
15318 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_prog_compiler_pic" >&5
15319 $as_echo "$lt_prog_compiler_pic" >&6; }
15327 # Check to make sure the PIC flag actually works.
15329 if test -n "$lt_prog_compiler_pic"; then
15330 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
15331 $as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic works... " >&6; }
15332 if test "${lt_cv_prog_compiler_pic_works+set}" = set; then :
15333 $as_echo_n "(cached) " >&6
15334 else
15335 lt_cv_prog_compiler_pic_works=no
15336 ac_outfile=conftest.$ac_objext
15337 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
15338 lt_compiler_flag="$lt_prog_compiler_pic -DPIC"
15339 # Insert the option either (1) after the last *FLAGS variable, or
15340 # (2) before a word containing "conftest.", or (3) at the end.
15341 # Note that $ac_compile itself does not contain backslashes and begins
15342 # with a dollar sign (not a hyphen), so the echo should work correctly.
15343 # The option is referenced via a variable to avoid confusing sed.
15344 lt_compile=`echo "$ac_compile" | $SED \
15345 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
15346 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
15347 -e 's:$: $lt_compiler_flag:'`
15348 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
15349 (eval "$lt_compile" 2>conftest.err)
15350 ac_status=$?
15351 cat conftest.err >&5
15352 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15353 if (exit $ac_status) && test -s "$ac_outfile"; then
15354 # The compiler can only warn and ignore the option if not recognized
15355 # So say no if there are warnings other than the usual output.
15356 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
15357 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
15358 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
15359 lt_cv_prog_compiler_pic_works=yes
15362 $RM conftest*
15365 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works" >&5
15366 $as_echo "$lt_cv_prog_compiler_pic_works" >&6; }
15368 if test x"$lt_cv_prog_compiler_pic_works" = xyes; then
15369 case $lt_prog_compiler_pic in
15370 "" | " "*) ;;
15371 *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
15372 esac
15373 else
15374 lt_prog_compiler_pic=
15375 lt_prog_compiler_can_build_shared=no
15386 # Check to make sure the static flag actually works.
15388 wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
15389 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
15390 $as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
15391 if test "${lt_cv_prog_compiler_static_works+set}" = set; then :
15392 $as_echo_n "(cached) " >&6
15393 else
15394 lt_cv_prog_compiler_static_works=no
15395 save_LDFLAGS="$LDFLAGS"
15396 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
15397 echo "$lt_simple_link_test_code" > conftest.$ac_ext
15398 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
15399 # The linker can only warn and ignore the option if not recognized
15400 # So say no if there are warnings
15401 if test -s conftest.err; then
15402 # Append any errors to the config.log.
15403 cat conftest.err 1>&5
15404 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
15405 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
15406 if diff conftest.exp conftest.er2 >/dev/null; then
15407 lt_cv_prog_compiler_static_works=yes
15409 else
15410 lt_cv_prog_compiler_static_works=yes
15413 $RM -r conftest*
15414 LDFLAGS="$save_LDFLAGS"
15417 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works" >&5
15418 $as_echo "$lt_cv_prog_compiler_static_works" >&6; }
15420 if test x"$lt_cv_prog_compiler_static_works" = xyes; then
15422 else
15423 lt_prog_compiler_static=
15432 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
15433 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
15434 if test "${lt_cv_prog_compiler_c_o+set}" = set; then :
15435 $as_echo_n "(cached) " >&6
15436 else
15437 lt_cv_prog_compiler_c_o=no
15438 $RM -r conftest 2>/dev/null
15439 mkdir conftest
15440 cd conftest
15441 mkdir out
15442 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
15444 lt_compiler_flag="-o out/conftest2.$ac_objext"
15445 # Insert the option either (1) after the last *FLAGS variable, or
15446 # (2) before a word containing "conftest.", or (3) at the end.
15447 # Note that $ac_compile itself does not contain backslashes and begins
15448 # with a dollar sign (not a hyphen), so the echo should work correctly.
15449 lt_compile=`echo "$ac_compile" | $SED \
15450 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
15451 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
15452 -e 's:$: $lt_compiler_flag:'`
15453 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
15454 (eval "$lt_compile" 2>out/conftest.err)
15455 ac_status=$?
15456 cat out/conftest.err >&5
15457 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15458 if (exit $ac_status) && test -s out/conftest2.$ac_objext
15459 then
15460 # The compiler can only warn and ignore the option if not recognized
15461 # So say no if there are warnings
15462 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
15463 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
15464 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
15465 lt_cv_prog_compiler_c_o=yes
15468 chmod u+w . 2>&5
15469 $RM conftest*
15470 # SGI C++ compiler will create directory out/ii_files/ for
15471 # template instantiation
15472 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
15473 $RM out/* && rmdir out
15474 cd ..
15475 $RM -r conftest
15476 $RM conftest*
15479 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
15480 $as_echo "$lt_cv_prog_compiler_c_o" >&6; }
15487 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
15488 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
15489 if test "${lt_cv_prog_compiler_c_o+set}" = set; then :
15490 $as_echo_n "(cached) " >&6
15491 else
15492 lt_cv_prog_compiler_c_o=no
15493 $RM -r conftest 2>/dev/null
15494 mkdir conftest
15495 cd conftest
15496 mkdir out
15497 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
15499 lt_compiler_flag="-o out/conftest2.$ac_objext"
15500 # Insert the option either (1) after the last *FLAGS variable, or
15501 # (2) before a word containing "conftest.", or (3) at the end.
15502 # Note that $ac_compile itself does not contain backslashes and begins
15503 # with a dollar sign (not a hyphen), so the echo should work correctly.
15504 lt_compile=`echo "$ac_compile" | $SED \
15505 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
15506 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
15507 -e 's:$: $lt_compiler_flag:'`
15508 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
15509 (eval "$lt_compile" 2>out/conftest.err)
15510 ac_status=$?
15511 cat out/conftest.err >&5
15512 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15513 if (exit $ac_status) && test -s out/conftest2.$ac_objext
15514 then
15515 # The compiler can only warn and ignore the option if not recognized
15516 # So say no if there are warnings
15517 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
15518 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
15519 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
15520 lt_cv_prog_compiler_c_o=yes
15523 chmod u+w . 2>&5
15524 $RM conftest*
15525 # SGI C++ compiler will create directory out/ii_files/ for
15526 # template instantiation
15527 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
15528 $RM out/* && rmdir out
15529 cd ..
15530 $RM -r conftest
15531 $RM conftest*
15534 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
15535 $as_echo "$lt_cv_prog_compiler_c_o" >&6; }
15540 hard_links="nottested"
15541 if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then
15542 # do not overwrite the value of need_locks provided by the user
15543 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
15544 $as_echo_n "checking if we can lock with hard links... " >&6; }
15545 hard_links=yes
15546 $RM conftest*
15547 ln conftest.a conftest.b 2>/dev/null && hard_links=no
15548 touch conftest.a
15549 ln conftest.a conftest.b 2>&5 || hard_links=no
15550 ln conftest.a conftest.b 2>/dev/null && hard_links=no
15551 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
15552 $as_echo "$hard_links" >&6; }
15553 if test "$hard_links" = no; then
15554 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
15555 $as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
15556 need_locks=warn
15558 else
15559 need_locks=no
15567 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
15568 $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
15570 runpath_var=
15571 allow_undefined_flag=
15572 always_export_symbols=no
15573 archive_cmds=
15574 archive_expsym_cmds=
15575 compiler_needs_object=no
15576 enable_shared_with_static_runtimes=no
15577 export_dynamic_flag_spec=
15578 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
15579 hardcode_automatic=no
15580 hardcode_direct=no
15581 hardcode_direct_absolute=no
15582 hardcode_libdir_flag_spec=
15583 hardcode_libdir_flag_spec_ld=
15584 hardcode_libdir_separator=
15585 hardcode_minus_L=no
15586 hardcode_shlibpath_var=unsupported
15587 inherit_rpath=no
15588 link_all_deplibs=unknown
15589 module_cmds=
15590 module_expsym_cmds=
15591 old_archive_from_new_cmds=
15592 old_archive_from_expsyms_cmds=
15593 thread_safe_flag_spec=
15594 whole_archive_flag_spec=
15595 # include_expsyms should be a list of space-separated symbols to be *always*
15596 # included in the symbol list
15597 include_expsyms=
15598 # exclude_expsyms can be an extended regexp of symbols to exclude
15599 # it will be wrapped by ` (' and `)$', so one must not match beginning or
15600 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
15601 # as well as any symbol that contains `d'.
15602 exclude_expsyms='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
15603 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
15604 # platforms (ab)use it in PIC code, but their linkers get confused if
15605 # the symbol is explicitly referenced. Since portable code cannot
15606 # rely on this symbol name, it's probably fine to never include it in
15607 # preloaded symbol tables.
15608 # Exclude shared library initialization/finalization symbols.
15609 extract_expsyms_cmds=
15611 case $host_os in
15612 cygwin* | mingw* | pw32* | cegcc*)
15613 # FIXME: the MSVC++ port hasn't been tested in a loooong time
15614 # When not using gcc, we currently assume that we are using
15615 # Microsoft Visual C++.
15616 if test "$GCC" != yes; then
15617 with_gnu_ld=no
15620 interix*)
15621 # we just hope/assume this is gcc and not c89 (= MSVC++)
15622 with_gnu_ld=yes
15624 openbsd*)
15625 with_gnu_ld=no
15627 esac
15629 ld_shlibs=yes
15631 # On some targets, GNU ld is compatible enough with the native linker
15632 # that we're better off using the native interface for both.
15633 lt_use_gnu_ld_interface=no
15634 if test "$with_gnu_ld" = yes; then
15635 case $host_os in
15636 aix*)
15637 # The AIX port of GNU ld has always aspired to compatibility
15638 # with the native linker. However, as the warning in the GNU ld
15639 # block says, versions before 2.19.5* couldn't really create working
15640 # shared libraries, regardless of the interface used.
15641 case `$LD -v 2>&1` in
15642 *\ \(GNU\ Binutils\)\ 2.19.5*) ;;
15643 *\ \(GNU\ Binutils\)\ 2.[2-9]*) ;;
15644 *\ \(GNU\ Binutils\)\ [3-9]*) ;;
15646 lt_use_gnu_ld_interface=yes
15648 esac
15651 lt_use_gnu_ld_interface=yes
15653 esac
15656 if test "$lt_use_gnu_ld_interface" = yes; then
15657 # If archive_cmds runs LD, not CC, wlarc should be empty
15658 wlarc='${wl}'
15660 # Set some defaults for GNU ld with shared library support. These
15661 # are reset later if shared libraries are not supported. Putting them
15662 # here allows them to be overridden if necessary.
15663 runpath_var=LD_RUN_PATH
15664 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
15665 export_dynamic_flag_spec='${wl}--export-dynamic'
15666 # ancient GNU ld didn't support --whole-archive et. al.
15667 if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then
15668 whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
15669 else
15670 whole_archive_flag_spec=
15672 supports_anon_versioning=no
15673 case `$LD -v 2>&1` in
15674 *GNU\ gold*) supports_anon_versioning=yes ;;
15675 *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
15676 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
15677 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
15678 *\ 2.11.*) ;; # other 2.11 versions
15679 *) supports_anon_versioning=yes ;;
15680 esac
15682 # See if GNU ld supports shared libraries.
15683 case $host_os in
15684 aix[3-9]*)
15685 # On AIX/PPC, the GNU linker is very broken
15686 if test "$host_cpu" != ia64; then
15687 ld_shlibs=no
15688 cat <<_LT_EOF 1>&2
15690 *** Warning: the GNU linker, at least up to release 2.19, is reported
15691 *** to be unable to reliably create shared libraries on AIX.
15692 *** Therefore, libtool is disabling shared libraries support. If you
15693 *** really care for shared libraries, you may want to install binutils
15694 *** 2.20 or above, or modify your PATH so that a non-GNU linker is found.
15695 *** You will then need to restart the configuration process.
15697 _LT_EOF
15701 amigaos*)
15702 case $host_cpu in
15703 powerpc)
15704 # see comment about AmigaOS4 .so support
15705 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
15706 archive_expsym_cmds=''
15708 m68k)
15709 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)'
15710 hardcode_libdir_flag_spec='-L$libdir'
15711 hardcode_minus_L=yes
15713 esac
15716 beos*)
15717 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
15718 allow_undefined_flag=unsupported
15719 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
15720 # support --undefined. This deserves some investigation. FIXME
15721 archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
15722 else
15723 ld_shlibs=no
15727 cygwin* | mingw* | pw32* | cegcc*)
15728 # _LT_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
15729 # as there is no search path for DLLs.
15730 hardcode_libdir_flag_spec='-L$libdir'
15731 export_dynamic_flag_spec='${wl}--export-all-symbols'
15732 allow_undefined_flag=unsupported
15733 always_export_symbols=no
15734 enable_shared_with_static_runtimes=yes
15735 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
15737 if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
15738 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
15739 # If the export-symbols file already is a .def file (1st line
15740 # is EXPORTS), use it as is; otherwise, prepend...
15741 archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
15742 cp $export_symbols $output_objdir/$soname.def;
15743 else
15744 echo EXPORTS > $output_objdir/$soname.def;
15745 cat $export_symbols >> $output_objdir/$soname.def;
15747 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
15748 else
15749 ld_shlibs=no
15753 haiku*)
15754 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
15755 link_all_deplibs=yes
15758 interix[3-9]*)
15759 hardcode_direct=no
15760 hardcode_shlibpath_var=no
15761 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
15762 export_dynamic_flag_spec='${wl}-E'
15763 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
15764 # Instead, shared libraries are loaded at an image base (0x10000000 by
15765 # default) and relocated if they conflict, which is a slow very memory
15766 # consuming and fragmenting process. To avoid this, we pick a random,
15767 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
15768 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
15769 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
15770 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'
15773 gnu* | linux* | tpf* | k*bsd*-gnu | kopensolaris*-gnu)
15774 tmp_diet=no
15775 if test "$host_os" = linux-dietlibc; then
15776 case $cc_basename in
15777 diet\ *) tmp_diet=yes;; # linux-dietlibc with static linking (!diet-dyn)
15778 esac
15780 if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \
15781 && test "$tmp_diet" = no
15782 then
15783 tmp_addflag=
15784 tmp_sharedflag='-shared'
15785 case $cc_basename,$host_cpu in
15786 pgcc*) # Portland Group C compiler
15787 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'
15788 tmp_addflag=' $pic_flag'
15790 pgf77* | pgf90* | pgf95* | pgfortran*)
15791 # Portland Group f77 and f90 compilers
15792 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'
15793 tmp_addflag=' $pic_flag -Mnomain' ;;
15794 ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64
15795 tmp_addflag=' -i_dynamic' ;;
15796 efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64
15797 tmp_addflag=' -i_dynamic -nofor_main' ;;
15798 ifc* | ifort*) # Intel Fortran compiler
15799 tmp_addflag=' -nofor_main' ;;
15800 lf95*) # Lahey Fortran 8.1
15801 whole_archive_flag_spec=
15802 tmp_sharedflag='--shared' ;;
15803 xl[cC]* | bgxl[cC]* | mpixl[cC]*) # IBM XL C 8.0 on PPC (deal with xlf below)
15804 tmp_sharedflag='-qmkshrobj'
15805 tmp_addflag= ;;
15806 nvcc*) # Cuda Compiler Driver 2.2
15807 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'
15808 compiler_needs_object=yes
15810 esac
15811 case `$CC -V 2>&1 | sed 5q` in
15812 *Sun\ C*) # Sun C 5.9
15813 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'
15814 compiler_needs_object=yes
15815 tmp_sharedflag='-G' ;;
15816 *Sun\ F*) # Sun Fortran 8.3
15817 tmp_sharedflag='-G' ;;
15818 esac
15819 archive_cmds='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
15821 if test "x$supports_anon_versioning" = xyes; then
15822 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
15823 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
15824 echo "local: *; };" >> $output_objdir/$libname.ver~
15825 $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
15828 case $cc_basename in
15829 xlf* | bgf* | bgxlf* | mpixlf*)
15830 # IBM XL Fortran 10.1 on PPC cannot create shared libs itself
15831 whole_archive_flag_spec='--whole-archive$convenience --no-whole-archive'
15832 hardcode_libdir_flag_spec=
15833 hardcode_libdir_flag_spec_ld='-rpath $libdir'
15834 archive_cmds='$LD -shared $libobjs $deplibs $compiler_flags -soname $soname -o $lib'
15835 if test "x$supports_anon_versioning" = xyes; then
15836 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
15837 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
15838 echo "local: *; };" >> $output_objdir/$libname.ver~
15839 $LD -shared $libobjs $deplibs $compiler_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib'
15842 esac
15843 else
15844 ld_shlibs=no
15848 netbsd*)
15849 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
15850 archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
15851 wlarc=
15852 else
15853 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
15854 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
15858 solaris*)
15859 if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then
15860 ld_shlibs=no
15861 cat <<_LT_EOF 1>&2
15863 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
15864 *** create shared libraries on Solaris systems. Therefore, libtool
15865 *** is disabling shared libraries support. We urge you to upgrade GNU
15866 *** binutils to release 2.9.1 or newer. Another option is to modify
15867 *** your PATH or compiler configuration so that the native linker is
15868 *** used, and then restart.
15870 _LT_EOF
15871 elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
15872 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
15873 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
15874 else
15875 ld_shlibs=no
15879 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
15880 case `$LD -v 2>&1` in
15881 *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
15882 ld_shlibs=no
15883 cat <<_LT_EOF 1>&2
15885 *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
15886 *** reliably create shared libraries on SCO systems. Therefore, libtool
15887 *** is disabling shared libraries support. We urge you to upgrade GNU
15888 *** binutils to release 2.16.91.0.3 or newer. Another option is to modify
15889 *** your PATH or compiler configuration so that the native linker is
15890 *** used, and then restart.
15892 _LT_EOF
15895 # For security reasons, it is highly recommended that you always
15896 # use absolute paths for naming shared libraries, and exclude the
15897 # DT_RUNPATH tag from executables and libraries. But doing so
15898 # requires that you compile everything twice, which is a pain.
15899 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
15900 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
15901 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
15902 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
15903 else
15904 ld_shlibs=no
15907 esac
15910 sunos4*)
15911 archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
15912 wlarc=
15913 hardcode_direct=yes
15914 hardcode_shlibpath_var=no
15918 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
15919 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
15920 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
15921 else
15922 ld_shlibs=no
15925 esac
15927 if test "$ld_shlibs" = no; then
15928 runpath_var=
15929 hardcode_libdir_flag_spec=
15930 export_dynamic_flag_spec=
15931 whole_archive_flag_spec=
15933 else
15934 # PORTME fill in a description of your system's linker (not GNU ld)
15935 case $host_os in
15936 aix3*)
15937 allow_undefined_flag=unsupported
15938 always_export_symbols=yes
15939 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'
15940 # Note: this linker hardcodes the directories in LIBPATH if there
15941 # are no directories specified by -L.
15942 hardcode_minus_L=yes
15943 if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
15944 # Neither direct hardcoding nor static linking is supported with a
15945 # broken collect2.
15946 hardcode_direct=unsupported
15950 aix[4-9]*)
15951 if test "$host_cpu" = ia64; then
15952 # On IA64, the linker does run time linking by default, so we don't
15953 # have to do anything special.
15954 aix_use_runtimelinking=no
15955 exp_sym_flag='-Bexport'
15956 no_entry_flag=""
15957 else
15958 # If we're using GNU nm, then we don't want the "-C" option.
15959 # -C means demangle to AIX nm, but means don't demangle with GNU nm
15960 # Also, AIX nm treats weak defined symbols like other global
15961 # defined symbols, whereas GNU nm marks them as "W".
15962 if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
15963 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'
15964 else
15965 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'
15967 aix_use_runtimelinking=no
15969 # Test if we are trying to use run time linking or normal
15970 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
15971 # need to do runtime linking.
15972 case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
15973 for ld_flag in $LDFLAGS; do
15974 if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
15975 aix_use_runtimelinking=yes
15976 break
15978 done
15980 esac
15982 exp_sym_flag='-bexport'
15983 no_entry_flag='-bnoentry'
15986 # When large executables or shared objects are built, AIX ld can
15987 # have problems creating the table of contents. If linking a library
15988 # or program results in "error TOC overflow" add -mminimal-toc to
15989 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
15990 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
15992 archive_cmds=''
15993 hardcode_direct=yes
15994 hardcode_direct_absolute=yes
15995 hardcode_libdir_separator=':'
15996 link_all_deplibs=yes
15997 file_list_spec='${wl}-f,'
15999 if test "$GCC" = yes; then
16000 case $host_os in aix4.[012]|aix4.[012].*)
16001 # We only want to do this on AIX 4.2 and lower, the check
16002 # below for broken collect2 doesn't work under 4.3+
16003 collect2name=`${CC} -print-prog-name=collect2`
16004 if test -f "$collect2name" &&
16005 strings "$collect2name" | $GREP resolve_lib_name >/dev/null
16006 then
16007 # We have reworked collect2
16009 else
16010 # We have old collect2
16011 hardcode_direct=unsupported
16012 # It fails to find uninstalled libraries when the uninstalled
16013 # path is not listed in the libpath. Setting hardcode_minus_L
16014 # to unsupported forces relinking
16015 hardcode_minus_L=yes
16016 hardcode_libdir_flag_spec='-L$libdir'
16017 hardcode_libdir_separator=
16020 esac
16021 shared_flag='-shared'
16022 if test "$aix_use_runtimelinking" = yes; then
16023 shared_flag="$shared_flag "'${wl}-G'
16025 else
16026 # not using gcc
16027 if test "$host_cpu" = ia64; then
16028 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
16029 # chokes on -Wl,-G. The following line is correct:
16030 shared_flag='-G'
16031 else
16032 if test "$aix_use_runtimelinking" = yes; then
16033 shared_flag='${wl}-G'
16034 else
16035 shared_flag='${wl}-bM:SRE'
16040 export_dynamic_flag_spec='${wl}-bexpall'
16041 # It seems that -bexpall does not export symbols beginning with
16042 # underscore (_), so it is better to generate a list of symbols to export.
16043 always_export_symbols=yes
16044 if test "$aix_use_runtimelinking" = yes; then
16045 # Warning - without using the other runtime loading flags (-brtl),
16046 # -berok will link without error, but may produce a broken library.
16047 allow_undefined_flag='-berok'
16048 # Determine the default libpath from the value encoded in an
16049 # empty executable.
16050 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16051 /* end confdefs.h. */
16054 main ()
16058 return 0;
16060 _ACEOF
16061 if ac_fn_c_try_link "$LINENO"; then :
16063 lt_aix_libpath_sed='
16064 /Import File Strings/,/^$/ {
16065 /^0/ {
16066 s/^0 *\(.*\)$/\1/
16070 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
16071 # Check for a 64-bit object if we didn't find anything.
16072 if test -z "$aix_libpath"; then
16073 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
16076 rm -f core conftest.err conftest.$ac_objext \
16077 conftest$ac_exeext conftest.$ac_ext
16078 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
16080 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
16081 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"
16082 else
16083 if test "$host_cpu" = ia64; then
16084 hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
16085 allow_undefined_flag="-z nodefs"
16086 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"
16087 else
16088 # Determine the default libpath from the value encoded in an
16089 # empty executable.
16090 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16091 /* end confdefs.h. */
16094 main ()
16098 return 0;
16100 _ACEOF
16101 if ac_fn_c_try_link "$LINENO"; then :
16103 lt_aix_libpath_sed='
16104 /Import File Strings/,/^$/ {
16105 /^0/ {
16106 s/^0 *\(.*\)$/\1/
16110 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
16111 # Check for a 64-bit object if we didn't find anything.
16112 if test -z "$aix_libpath"; then
16113 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
16116 rm -f core conftest.err conftest.$ac_objext \
16117 conftest$ac_exeext conftest.$ac_ext
16118 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
16120 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
16121 # Warning - without using the other run time loading flags,
16122 # -berok will link without error, but may produce a broken library.
16123 no_undefined_flag=' ${wl}-bernotok'
16124 allow_undefined_flag=' ${wl}-berok'
16125 if test "$with_gnu_ld" = yes; then
16126 # We only use this code for GNU lds that support --whole-archive.
16127 whole_archive_flag_spec='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
16128 else
16129 # Exported symbols can be pulled into shared objects from archives
16130 whole_archive_flag_spec='$convenience'
16132 archive_cmds_need_lc=yes
16133 # This is similar to how AIX traditionally builds its shared libraries.
16134 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'
16139 amigaos*)
16140 case $host_cpu in
16141 powerpc)
16142 # see comment about AmigaOS4 .so support
16143 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
16144 archive_expsym_cmds=''
16146 m68k)
16147 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)'
16148 hardcode_libdir_flag_spec='-L$libdir'
16149 hardcode_minus_L=yes
16151 esac
16154 bsdi[45]*)
16155 export_dynamic_flag_spec=-rdynamic
16158 cygwin* | mingw* | pw32* | cegcc*)
16159 # When not using gcc, we currently assume that we are using
16160 # Microsoft Visual C++.
16161 # hardcode_libdir_flag_spec is actually meaningless, as there is
16162 # no search path for DLLs.
16163 hardcode_libdir_flag_spec=' '
16164 allow_undefined_flag=unsupported
16165 # Tell ltmain to make .lib files, not .a files.
16166 libext=lib
16167 # Tell ltmain to make .dll files, not .so files.
16168 shrext_cmds=".dll"
16169 # FIXME: Setting linknames here is a bad hack.
16170 archive_cmds='$CC -o $lib $libobjs $compiler_flags `func_echo_all "$deplibs" | $SED '\''s/ -lc$//'\''` -link -dll~linknames='
16171 # The linker will automatically build a .lib file if we build a DLL.
16172 old_archive_from_new_cmds='true'
16173 # FIXME: Should let the user specify the lib program.
16174 old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs'
16175 fix_srcfile_path='`cygpath -w "$srcfile"`'
16176 enable_shared_with_static_runtimes=yes
16179 darwin* | rhapsody*)
16182 archive_cmds_need_lc=no
16183 hardcode_direct=no
16184 hardcode_automatic=yes
16185 hardcode_shlibpath_var=unsupported
16186 if test "$lt_cv_ld_force_load" = "yes"; then
16187 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\"`'
16188 else
16189 whole_archive_flag_spec=''
16191 link_all_deplibs=yes
16192 allow_undefined_flag="$_lt_dar_allow_undefined"
16193 case $cc_basename in
16194 ifort*) _lt_dar_can_shared=yes ;;
16195 *) _lt_dar_can_shared=$GCC ;;
16196 esac
16197 if test "$_lt_dar_can_shared" = "yes"; then
16198 output_verbose_link_cmd=func_echo_all
16199 archive_cmds="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod${_lt_dsymutil}"
16200 module_cmds="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
16201 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}"
16202 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}"
16204 else
16205 ld_shlibs=no
16210 dgux*)
16211 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
16212 hardcode_libdir_flag_spec='-L$libdir'
16213 hardcode_shlibpath_var=no
16216 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
16217 # support. Future versions do this automatically, but an explicit c++rt0.o
16218 # does not break anything, and helps significantly (at the cost of a little
16219 # extra space).
16220 freebsd2.2*)
16221 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
16222 hardcode_libdir_flag_spec='-R$libdir'
16223 hardcode_direct=yes
16224 hardcode_shlibpath_var=no
16227 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
16228 freebsd2.*)
16229 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
16230 hardcode_direct=yes
16231 hardcode_minus_L=yes
16232 hardcode_shlibpath_var=no
16235 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
16236 freebsd* | dragonfly*)
16237 archive_cmds='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
16238 hardcode_libdir_flag_spec='-R$libdir'
16239 hardcode_direct=yes
16240 hardcode_shlibpath_var=no
16243 hpux9*)
16244 if test "$GCC" = yes; then
16245 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'
16246 else
16247 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'
16249 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
16250 hardcode_libdir_separator=:
16251 hardcode_direct=yes
16253 # hardcode_minus_L: Not really in the search PATH,
16254 # but as the default location of the library.
16255 hardcode_minus_L=yes
16256 export_dynamic_flag_spec='${wl}-E'
16259 hpux10*)
16260 if test "$GCC" = yes && test "$with_gnu_ld" = no; then
16261 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
16262 else
16263 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
16265 if test "$with_gnu_ld" = no; then
16266 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
16267 hardcode_libdir_flag_spec_ld='+b $libdir'
16268 hardcode_libdir_separator=:
16269 hardcode_direct=yes
16270 hardcode_direct_absolute=yes
16271 export_dynamic_flag_spec='${wl}-E'
16272 # hardcode_minus_L: Not really in the search PATH,
16273 # but as the default location of the library.
16274 hardcode_minus_L=yes
16278 hpux11*)
16279 if test "$GCC" = yes && test "$with_gnu_ld" = no; then
16280 case $host_cpu in
16281 hppa*64*)
16282 archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
16284 ia64*)
16285 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
16288 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
16290 esac
16291 else
16292 case $host_cpu in
16293 hppa*64*)
16294 archive_cmds='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
16296 ia64*)
16297 archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
16301 # Older versions of the 11.00 compiler do not understand -b yet
16302 # (HP92453-01 A.11.01.20 doesn't, HP92453-01 B.11.X.35175-35176.GP does)
16303 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC understands -b" >&5
16304 $as_echo_n "checking if $CC understands -b... " >&6; }
16305 if test "${lt_cv_prog_compiler__b+set}" = set; then :
16306 $as_echo_n "(cached) " >&6
16307 else
16308 lt_cv_prog_compiler__b=no
16309 save_LDFLAGS="$LDFLAGS"
16310 LDFLAGS="$LDFLAGS -b"
16311 echo "$lt_simple_link_test_code" > conftest.$ac_ext
16312 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
16313 # The linker can only warn and ignore the option if not recognized
16314 # So say no if there are warnings
16315 if test -s conftest.err; then
16316 # Append any errors to the config.log.
16317 cat conftest.err 1>&5
16318 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
16319 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
16320 if diff conftest.exp conftest.er2 >/dev/null; then
16321 lt_cv_prog_compiler__b=yes
16323 else
16324 lt_cv_prog_compiler__b=yes
16327 $RM -r conftest*
16328 LDFLAGS="$save_LDFLAGS"
16331 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler__b" >&5
16332 $as_echo "$lt_cv_prog_compiler__b" >&6; }
16334 if test x"$lt_cv_prog_compiler__b" = xyes; then
16335 archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
16336 else
16337 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
16341 esac
16343 if test "$with_gnu_ld" = no; then
16344 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
16345 hardcode_libdir_separator=:
16347 case $host_cpu in
16348 hppa*64*|ia64*)
16349 hardcode_direct=no
16350 hardcode_shlibpath_var=no
16353 hardcode_direct=yes
16354 hardcode_direct_absolute=yes
16355 export_dynamic_flag_spec='${wl}-E'
16357 # hardcode_minus_L: Not really in the search PATH,
16358 # but as the default location of the library.
16359 hardcode_minus_L=yes
16361 esac
16365 irix5* | irix6* | nonstopux*)
16366 if test "$GCC" = yes; then
16367 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'
16368 # Try to use the -exported_symbol ld option, if it does not
16369 # work, assume that -exports_file does not work either and
16370 # implicitly export all symbols.
16371 save_LDFLAGS="$LDFLAGS"
16372 LDFLAGS="$LDFLAGS -shared ${wl}-exported_symbol ${wl}foo ${wl}-update_registry ${wl}/dev/null"
16373 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16374 /* end confdefs.h. */
16375 int foo(void) {}
16376 _ACEOF
16377 if ac_fn_c_try_link "$LINENO"; then :
16378 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'
16381 rm -f core conftest.err conftest.$ac_objext \
16382 conftest$ac_exeext conftest.$ac_ext
16383 LDFLAGS="$save_LDFLAGS"
16384 else
16385 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'
16386 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'
16388 archive_cmds_need_lc='no'
16389 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
16390 hardcode_libdir_separator=:
16391 inherit_rpath=yes
16392 link_all_deplibs=yes
16395 netbsd*)
16396 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
16397 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
16398 else
16399 archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
16401 hardcode_libdir_flag_spec='-R$libdir'
16402 hardcode_direct=yes
16403 hardcode_shlibpath_var=no
16406 newsos6)
16407 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
16408 hardcode_direct=yes
16409 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
16410 hardcode_libdir_separator=:
16411 hardcode_shlibpath_var=no
16414 *nto* | *qnx*)
16417 openbsd*)
16418 if test -f /usr/libexec/ld.so; then
16419 hardcode_direct=yes
16420 hardcode_shlibpath_var=no
16421 hardcode_direct_absolute=yes
16422 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
16423 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
16424 archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
16425 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
16426 export_dynamic_flag_spec='${wl}-E'
16427 else
16428 case $host_os in
16429 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
16430 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
16431 hardcode_libdir_flag_spec='-R$libdir'
16434 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
16435 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
16437 esac
16439 else
16440 ld_shlibs=no
16444 os2*)
16445 hardcode_libdir_flag_spec='-L$libdir'
16446 hardcode_minus_L=yes
16447 allow_undefined_flag=unsupported
16448 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'
16449 old_archive_from_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
16452 osf3*)
16453 if test "$GCC" = yes; then
16454 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
16455 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'
16456 else
16457 allow_undefined_flag=' -expect_unresolved \*'
16458 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'
16460 archive_cmds_need_lc='no'
16461 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
16462 hardcode_libdir_separator=:
16465 osf4* | osf5*) # as osf3* with the addition of -msym flag
16466 if test "$GCC" = yes; then
16467 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
16468 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'
16469 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
16470 else
16471 allow_undefined_flag=' -expect_unresolved \*'
16472 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'
16473 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~
16474 $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'
16476 # Both c and cxx compiler support -rpath directly
16477 hardcode_libdir_flag_spec='-rpath $libdir'
16479 archive_cmds_need_lc='no'
16480 hardcode_libdir_separator=:
16483 solaris*)
16484 no_undefined_flag=' -z defs'
16485 if test "$GCC" = yes; then
16486 wlarc='${wl}'
16487 archive_cmds='$CC -shared ${wl}-z ${wl}text ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
16488 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
16489 $CC -shared ${wl}-z ${wl}text ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
16490 else
16491 case `$CC -V 2>&1` in
16492 *"Compilers 5.0"*)
16493 wlarc=''
16494 archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
16495 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
16496 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp'
16499 wlarc='${wl}'
16500 archive_cmds='$CC -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $compiler_flags'
16501 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
16502 $CC -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
16504 esac
16506 hardcode_libdir_flag_spec='-R$libdir'
16507 hardcode_shlibpath_var=no
16508 case $host_os in
16509 solaris2.[0-5] | solaris2.[0-5].*) ;;
16511 # The compiler driver will combine and reorder linker options,
16512 # but understands `-z linker_flag'. GCC discards it without `$wl',
16513 # but is careful enough not to reorder.
16514 # Supported since Solaris 2.6 (maybe 2.5.1?)
16515 if test "$GCC" = yes; then
16516 whole_archive_flag_spec='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
16517 else
16518 whole_archive_flag_spec='-z allextract$convenience -z defaultextract'
16521 esac
16522 link_all_deplibs=yes
16525 sunos4*)
16526 if test "x$host_vendor" = xsequent; then
16527 # Use $CC to link under sequent, because it throws in some extra .o
16528 # files that make .init and .fini sections work.
16529 archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
16530 else
16531 archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
16533 hardcode_libdir_flag_spec='-L$libdir'
16534 hardcode_direct=yes
16535 hardcode_minus_L=yes
16536 hardcode_shlibpath_var=no
16539 sysv4)
16540 case $host_vendor in
16541 sni)
16542 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
16543 hardcode_direct=yes # is this really true???
16545 siemens)
16546 ## LD is ld it makes a PLAMLIB
16547 ## CC just makes a GrossModule.
16548 archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
16549 reload_cmds='$CC -r -o $output$reload_objs'
16550 hardcode_direct=no
16552 motorola)
16553 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
16554 hardcode_direct=no #Motorola manual says yes, but my tests say they lie
16556 esac
16557 runpath_var='LD_RUN_PATH'
16558 hardcode_shlibpath_var=no
16561 sysv4.3*)
16562 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
16563 hardcode_shlibpath_var=no
16564 export_dynamic_flag_spec='-Bexport'
16567 sysv4*MP*)
16568 if test -d /usr/nec; then
16569 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
16570 hardcode_shlibpath_var=no
16571 runpath_var=LD_RUN_PATH
16572 hardcode_runpath_var=yes
16573 ld_shlibs=yes
16577 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
16578 no_undefined_flag='${wl}-z,text'
16579 archive_cmds_need_lc=no
16580 hardcode_shlibpath_var=no
16581 runpath_var='LD_RUN_PATH'
16583 if test "$GCC" = yes; then
16584 archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
16585 archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
16586 else
16587 archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
16588 archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
16592 sysv5* | sco3.2v5* | sco5v6*)
16593 # Note: We can NOT use -z defs as we might desire, because we do not
16594 # link with -lc, and that would cause any symbols used from libc to
16595 # always be unresolved, which means just about no library would
16596 # ever link correctly. If we're not using GNU ld we use -z text
16597 # though, which does catch some bad symbols but isn't as heavy-handed
16598 # as -z defs.
16599 no_undefined_flag='${wl}-z,text'
16600 allow_undefined_flag='${wl}-z,nodefs'
16601 archive_cmds_need_lc=no
16602 hardcode_shlibpath_var=no
16603 hardcode_libdir_flag_spec='${wl}-R,$libdir'
16604 hardcode_libdir_separator=':'
16605 link_all_deplibs=yes
16606 export_dynamic_flag_spec='${wl}-Bexport'
16607 runpath_var='LD_RUN_PATH'
16609 if test "$GCC" = yes; then
16610 archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
16611 archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
16612 else
16613 archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
16614 archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
16618 uts4*)
16619 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
16620 hardcode_libdir_flag_spec='-L$libdir'
16621 hardcode_shlibpath_var=no
16625 ld_shlibs=no
16627 esac
16629 if test x$host_vendor = xsni; then
16630 case $host in
16631 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
16632 export_dynamic_flag_spec='${wl}-Blargedynsym'
16634 esac
16638 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs" >&5
16639 $as_echo "$ld_shlibs" >&6; }
16640 test "$ld_shlibs" = no && can_build_shared=no
16642 with_gnu_ld=$with_gnu_ld
16659 # Do we need to explicitly link libc?
16661 case "x$archive_cmds_need_lc" in
16662 x|xyes)
16663 # Assume -lc should be added
16664 archive_cmds_need_lc=yes
16666 if test "$enable_shared" = yes && test "$GCC" = yes; then
16667 case $archive_cmds in
16668 *'~'*)
16669 # FIXME: we may have to deal with multi-command sequences.
16671 '$CC '*)
16672 # Test whether the compiler implicitly links with -lc since on some
16673 # systems, -lgcc has to come before -lc. If gcc already passes -lc
16674 # to ld, don't add -lc before -lgcc.
16675 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
16676 $as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
16677 if test "${lt_cv_archive_cmds_need_lc+set}" = set; then :
16678 $as_echo_n "(cached) " >&6
16679 else
16680 $RM conftest*
16681 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
16683 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
16684 (eval $ac_compile) 2>&5
16685 ac_status=$?
16686 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
16687 test $ac_status = 0; } 2>conftest.err; then
16688 soname=conftest
16689 lib=conftest
16690 libobjs=conftest.$ac_objext
16691 deplibs=
16692 wl=$lt_prog_compiler_wl
16693 pic_flag=$lt_prog_compiler_pic
16694 compiler_flags=-v
16695 linker_flags=-v
16696 verstring=
16697 output_objdir=.
16698 libname=conftest
16699 lt_save_allow_undefined_flag=$allow_undefined_flag
16700 allow_undefined_flag=
16701 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5
16702 (eval $archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
16703 ac_status=$?
16704 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
16705 test $ac_status = 0; }
16706 then
16707 lt_cv_archive_cmds_need_lc=no
16708 else
16709 lt_cv_archive_cmds_need_lc=yes
16711 allow_undefined_flag=$lt_save_allow_undefined_flag
16712 else
16713 cat conftest.err 1>&5
16715 $RM conftest*
16718 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc" >&5
16719 $as_echo "$lt_cv_archive_cmds_need_lc" >&6; }
16720 archive_cmds_need_lc=$lt_cv_archive_cmds_need_lc
16722 esac
16725 esac
16883 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
16884 $as_echo_n "checking dynamic linker characteristics... " >&6; }
16886 if test "$GCC" = yes; then
16887 case $host_os in
16888 darwin*) lt_awk_arg="/^libraries:/,/LR/" ;;
16889 *) lt_awk_arg="/^libraries:/" ;;
16890 esac
16891 case $host_os in
16892 mingw* | cegcc*) lt_sed_strip_eq="s,=\([A-Za-z]:\),\1,g" ;;
16893 *) lt_sed_strip_eq="s,=/,/,g" ;;
16894 esac
16895 lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e $lt_sed_strip_eq`
16896 case $lt_search_path_spec in
16897 *\;*)
16898 # if the path contains ";" then we assume it to be the separator
16899 # otherwise default to the standard path separator (i.e. ":") - it is
16900 # assumed that no part of a normal pathname contains ";" but that should
16901 # okay in the real world where ";" in dirpaths is itself problematic.
16902 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED 's/;/ /g'`
16905 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED "s/$PATH_SEPARATOR/ /g"`
16907 esac
16908 # Ok, now we have the path, separated by spaces, we can step through it
16909 # and add multilib dir if necessary.
16910 lt_tmp_lt_search_path_spec=
16911 lt_multi_os_dir=`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null`
16912 for lt_sys_path in $lt_search_path_spec; do
16913 if test -d "$lt_sys_path/$lt_multi_os_dir"; then
16914 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path/$lt_multi_os_dir"
16915 else
16916 test -d "$lt_sys_path" && \
16917 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path"
16919 done
16920 lt_search_path_spec=`$ECHO "$lt_tmp_lt_search_path_spec" | awk '
16921 BEGIN {RS=" "; FS="/|\n";} {
16922 lt_foo="";
16923 lt_count=0;
16924 for (lt_i = NF; lt_i > 0; lt_i--) {
16925 if ($lt_i != "" && $lt_i != ".") {
16926 if ($lt_i == "..") {
16927 lt_count++;
16928 } else {
16929 if (lt_count == 0) {
16930 lt_foo="/" $lt_i lt_foo;
16931 } else {
16932 lt_count--;
16937 if (lt_foo != "") { lt_freq[lt_foo]++; }
16938 if (lt_freq[lt_foo] == 1) { print lt_foo; }
16940 # AWK program above erroneously prepends '/' to C:/dos/paths
16941 # for these hosts.
16942 case $host_os in
16943 mingw* | cegcc*) lt_search_path_spec=`$ECHO "$lt_search_path_spec" |\
16944 $SED 's,/\([A-Za-z]:\),\1,g'` ;;
16945 esac
16946 sys_lib_search_path_spec=`$ECHO "$lt_search_path_spec" | $lt_NL2SP`
16947 else
16948 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
16950 library_names_spec=
16951 libname_spec='lib$name'
16952 soname_spec=
16953 shrext_cmds=".so"
16954 postinstall_cmds=
16955 postuninstall_cmds=
16956 finish_cmds=
16957 finish_eval=
16958 shlibpath_var=
16959 shlibpath_overrides_runpath=unknown
16960 version_type=none
16961 dynamic_linker="$host_os ld.so"
16962 sys_lib_dlsearch_path_spec="/lib /usr/lib"
16963 need_lib_prefix=unknown
16964 hardcode_into_libs=no
16966 # when you set need_version to no, make sure it does not cause -set_version
16967 # flags to be left without arguments
16968 need_version=unknown
16970 case $host_os in
16971 aix3*)
16972 version_type=linux
16973 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
16974 shlibpath_var=LIBPATH
16976 # AIX 3 has no versioning support, so we append a major version to the name.
16977 soname_spec='${libname}${release}${shared_ext}$major'
16980 aix[4-9]*)
16981 version_type=linux
16982 need_lib_prefix=no
16983 need_version=no
16984 hardcode_into_libs=yes
16985 if test "$host_cpu" = ia64; then
16986 # AIX 5 supports IA64
16987 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
16988 shlibpath_var=LD_LIBRARY_PATH
16989 else
16990 # With GCC up to 2.95.x, collect2 would create an import file
16991 # for dependence libraries. The import file would start with
16992 # the line `#! .'. This would cause the generated library to
16993 # depend on `.', always an invalid library. This was fixed in
16994 # development snapshots of GCC prior to 3.0.
16995 case $host_os in
16996 aix4 | aix4.[01] | aix4.[01].*)
16997 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
16998 echo ' yes '
16999 echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then
17001 else
17002 can_build_shared=no
17005 esac
17006 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
17007 # soname into executable. Probably we can add versioning support to
17008 # collect2, so additional links can be useful in future.
17009 if test "$aix_use_runtimelinking" = yes; then
17010 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
17011 # instead of lib<name>.a to let people know that these are not
17012 # typical AIX shared libraries.
17013 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17014 else
17015 # We preserve .a as extension for shared libraries through AIX4.2
17016 # and later when we are not doing run time linking.
17017 library_names_spec='${libname}${release}.a $libname.a'
17018 soname_spec='${libname}${release}${shared_ext}$major'
17020 shlibpath_var=LIBPATH
17024 amigaos*)
17025 case $host_cpu in
17026 powerpc)
17027 # Since July 2007 AmigaOS4 officially supports .so libraries.
17028 # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
17029 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17031 m68k)
17032 library_names_spec='$libname.ixlibrary $libname.a'
17033 # Create ${libname}_ixlibrary.a entries in /sys/libs.
17034 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'
17036 esac
17039 beos*)
17040 library_names_spec='${libname}${shared_ext}'
17041 dynamic_linker="$host_os ld.so"
17042 shlibpath_var=LIBRARY_PATH
17045 bsdi[45]*)
17046 version_type=linux
17047 need_version=no
17048 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17049 soname_spec='${libname}${release}${shared_ext}$major'
17050 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
17051 shlibpath_var=LD_LIBRARY_PATH
17052 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
17053 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
17054 # the default ld.so.conf also contains /usr/contrib/lib and
17055 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
17056 # libtool to hard-code these into programs
17059 cygwin* | mingw* | pw32* | cegcc*)
17060 version_type=windows
17061 shrext_cmds=".dll"
17062 need_version=no
17063 need_lib_prefix=no
17065 case $GCC,$host_os in
17066 yes,cygwin* | yes,mingw* | yes,pw32* | yes,cegcc*)
17067 library_names_spec='$libname.dll.a'
17068 # DLL is installed to $(libdir)/../bin by postinstall_cmds
17069 postinstall_cmds='base_file=`basename \${file}`~
17070 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
17071 dldir=$destdir/`dirname \$dlpath`~
17072 test -d \$dldir || mkdir -p \$dldir~
17073 $install_prog $dir/$dlname \$dldir/$dlname~
17074 chmod a+x \$dldir/$dlname~
17075 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
17076 eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
17078 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
17079 dlpath=$dir/\$dldll~
17080 $RM \$dlpath'
17081 shlibpath_overrides_runpath=yes
17083 case $host_os in
17084 cygwin*)
17085 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
17086 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
17088 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/lib/w32api"
17090 mingw* | cegcc*)
17091 # MinGW DLLs use traditional 'lib' prefix
17092 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
17094 pw32*)
17095 # pw32 DLLs use 'pw' prefix rather than 'lib'
17096 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
17098 esac
17102 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
17104 esac
17105 dynamic_linker='Win32 ld.exe'
17106 # FIXME: first we should search . and the directory the executable is in
17107 shlibpath_var=PATH
17110 darwin* | rhapsody*)
17111 dynamic_linker="$host_os dyld"
17112 version_type=darwin
17113 need_lib_prefix=no
17114 need_version=no
17115 library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext'
17116 soname_spec='${libname}${release}${major}$shared_ext'
17117 shlibpath_overrides_runpath=yes
17118 shlibpath_var=DYLD_LIBRARY_PATH
17119 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
17121 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib"
17122 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
17125 dgux*)
17126 version_type=linux
17127 need_lib_prefix=no
17128 need_version=no
17129 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
17130 soname_spec='${libname}${release}${shared_ext}$major'
17131 shlibpath_var=LD_LIBRARY_PATH
17134 freebsd* | dragonfly*)
17135 # DragonFly does not have aout. When/if they implement a new
17136 # versioning mechanism, adjust this.
17137 if test -x /usr/bin/objformat; then
17138 objformat=`/usr/bin/objformat`
17139 else
17140 case $host_os in
17141 freebsd[23].*) objformat=aout ;;
17142 *) objformat=elf ;;
17143 esac
17145 version_type=freebsd-$objformat
17146 case $version_type in
17147 freebsd-elf*)
17148 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
17149 need_version=no
17150 need_lib_prefix=no
17152 freebsd-*)
17153 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
17154 need_version=yes
17156 esac
17157 shlibpath_var=LD_LIBRARY_PATH
17158 case $host_os in
17159 freebsd2.*)
17160 shlibpath_overrides_runpath=yes
17162 freebsd3.[01]* | freebsdelf3.[01]*)
17163 shlibpath_overrides_runpath=yes
17164 hardcode_into_libs=yes
17166 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
17167 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
17168 shlibpath_overrides_runpath=no
17169 hardcode_into_libs=yes
17171 *) # from 4.6 on, and DragonFly
17172 shlibpath_overrides_runpath=yes
17173 hardcode_into_libs=yes
17175 esac
17178 gnu*)
17179 version_type=linux
17180 need_lib_prefix=no
17181 need_version=no
17182 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
17183 soname_spec='${libname}${release}${shared_ext}$major'
17184 shlibpath_var=LD_LIBRARY_PATH
17185 hardcode_into_libs=yes
17188 haiku*)
17189 version_type=linux
17190 need_lib_prefix=no
17191 need_version=no
17192 dynamic_linker="$host_os runtime_loader"
17193 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
17194 soname_spec='${libname}${release}${shared_ext}$major'
17195 shlibpath_var=LIBRARY_PATH
17196 shlibpath_overrides_runpath=yes
17197 sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/beos/system/lib'
17198 hardcode_into_libs=yes
17201 hpux9* | hpux10* | hpux11*)
17202 # Give a soname corresponding to the major version so that dld.sl refuses to
17203 # link against other versions.
17204 version_type=sunos
17205 need_lib_prefix=no
17206 need_version=no
17207 case $host_cpu in
17208 ia64*)
17209 shrext_cmds='.so'
17210 hardcode_into_libs=yes
17211 dynamic_linker="$host_os dld.so"
17212 shlibpath_var=LD_LIBRARY_PATH
17213 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
17214 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17215 soname_spec='${libname}${release}${shared_ext}$major'
17216 if test "X$HPUX_IA64_MODE" = X32; then
17217 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
17218 else
17219 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
17221 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
17223 hppa*64*)
17224 shrext_cmds='.sl'
17225 hardcode_into_libs=yes
17226 dynamic_linker="$host_os dld.sl"
17227 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
17228 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
17229 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17230 soname_spec='${libname}${release}${shared_ext}$major'
17231 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
17232 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
17235 shrext_cmds='.sl'
17236 dynamic_linker="$host_os dld.sl"
17237 shlibpath_var=SHLIB_PATH
17238 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
17239 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17240 soname_spec='${libname}${release}${shared_ext}$major'
17242 esac
17243 # HP-UX runs *really* slowly unless shared libraries are mode 555, ...
17244 postinstall_cmds='chmod 555 $lib'
17245 # or fails outright, so override atomically:
17246 install_override_mode=555
17249 interix[3-9]*)
17250 version_type=linux
17251 need_lib_prefix=no
17252 need_version=no
17253 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
17254 soname_spec='${libname}${release}${shared_ext}$major'
17255 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
17256 shlibpath_var=LD_LIBRARY_PATH
17257 shlibpath_overrides_runpath=no
17258 hardcode_into_libs=yes
17261 irix5* | irix6* | nonstopux*)
17262 case $host_os in
17263 nonstopux*) version_type=nonstopux ;;
17265 if test "$lt_cv_prog_gnu_ld" = yes; then
17266 version_type=linux
17267 else
17268 version_type=irix
17269 fi ;;
17270 esac
17271 need_lib_prefix=no
17272 need_version=no
17273 soname_spec='${libname}${release}${shared_ext}$major'
17274 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
17275 case $host_os in
17276 irix5* | nonstopux*)
17277 libsuff= shlibsuff=
17280 case $LD in # libtool.m4 will add one of these switches to LD
17281 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
17282 libsuff= shlibsuff= libmagic=32-bit;;
17283 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
17284 libsuff=32 shlibsuff=N32 libmagic=N32;;
17285 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
17286 libsuff=64 shlibsuff=64 libmagic=64-bit;;
17287 *) libsuff= shlibsuff= libmagic=never-match;;
17288 esac
17290 esac
17291 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
17292 shlibpath_overrides_runpath=no
17293 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
17294 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
17295 hardcode_into_libs=yes
17298 # No shared lib support for Linux oldld, aout, or coff.
17299 linux*oldld* | linux*aout* | linux*coff*)
17300 dynamic_linker=no
17303 # This must be Linux ELF.
17304 linux* | k*bsd*-gnu | kopensolaris*-gnu)
17305 version_type=linux
17306 need_lib_prefix=no
17307 need_version=no
17308 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17309 soname_spec='${libname}${release}${shared_ext}$major'
17310 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
17311 shlibpath_var=LD_LIBRARY_PATH
17312 shlibpath_overrides_runpath=no
17314 # Some binutils ld are patched to set DT_RUNPATH
17315 if test "${lt_cv_shlibpath_overrides_runpath+set}" = set; then :
17316 $as_echo_n "(cached) " >&6
17317 else
17318 lt_cv_shlibpath_overrides_runpath=no
17319 save_LDFLAGS=$LDFLAGS
17320 save_libdir=$libdir
17321 eval "libdir=/foo; wl=\"$lt_prog_compiler_wl\"; \
17322 LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec\""
17323 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17324 /* end confdefs.h. */
17327 main ()
17331 return 0;
17333 _ACEOF
17334 if ac_fn_c_try_link "$LINENO"; then :
17335 if ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then :
17336 lt_cv_shlibpath_overrides_runpath=yes
17339 rm -f core conftest.err conftest.$ac_objext \
17340 conftest$ac_exeext conftest.$ac_ext
17341 LDFLAGS=$save_LDFLAGS
17342 libdir=$save_libdir
17346 shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath
17348 # This implies no fast_install, which is unacceptable.
17349 # Some rework will be needed to allow for fast_install
17350 # before this can be enabled.
17351 hardcode_into_libs=yes
17353 # Append ld.so.conf contents to the search path
17354 if test -f /etc/ld.so.conf; then
17355 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' ' '`
17356 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
17359 # We used to test for /lib/ld.so.1 and disable shared libraries on
17360 # powerpc, because MkLinux only supported shared libraries with the
17361 # GNU dynamic linker. Since this was broken with cross compilers,
17362 # most powerpc-linux boxes support dynamic linking these days and
17363 # people can always --disable-shared, the test was removed, and we
17364 # assume the GNU/Linux dynamic linker is in use.
17365 dynamic_linker='GNU/Linux ld.so'
17368 netbsd*)
17369 version_type=sunos
17370 need_lib_prefix=no
17371 need_version=no
17372 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
17373 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
17374 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
17375 dynamic_linker='NetBSD (a.out) ld.so'
17376 else
17377 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
17378 soname_spec='${libname}${release}${shared_ext}$major'
17379 dynamic_linker='NetBSD ld.elf_so'
17381 shlibpath_var=LD_LIBRARY_PATH
17382 shlibpath_overrides_runpath=yes
17383 hardcode_into_libs=yes
17386 newsos6)
17387 version_type=linux
17388 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17389 shlibpath_var=LD_LIBRARY_PATH
17390 shlibpath_overrides_runpath=yes
17393 *nto* | *qnx*)
17394 version_type=qnx
17395 need_lib_prefix=no
17396 need_version=no
17397 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17398 soname_spec='${libname}${release}${shared_ext}$major'
17399 shlibpath_var=LD_LIBRARY_PATH
17400 shlibpath_overrides_runpath=no
17401 hardcode_into_libs=yes
17402 dynamic_linker='ldqnx.so'
17405 openbsd*)
17406 version_type=sunos
17407 sys_lib_dlsearch_path_spec="/usr/lib"
17408 need_lib_prefix=no
17409 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
17410 case $host_os in
17411 openbsd3.3 | openbsd3.3.*) need_version=yes ;;
17412 *) need_version=no ;;
17413 esac
17414 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
17415 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
17416 shlibpath_var=LD_LIBRARY_PATH
17417 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
17418 case $host_os in
17419 openbsd2.[89] | openbsd2.[89].*)
17420 shlibpath_overrides_runpath=no
17423 shlibpath_overrides_runpath=yes
17425 esac
17426 else
17427 shlibpath_overrides_runpath=yes
17431 os2*)
17432 libname_spec='$name'
17433 shrext_cmds=".dll"
17434 need_lib_prefix=no
17435 library_names_spec='$libname${shared_ext} $libname.a'
17436 dynamic_linker='OS/2 ld.exe'
17437 shlibpath_var=LIBPATH
17440 osf3* | osf4* | osf5*)
17441 version_type=osf
17442 need_lib_prefix=no
17443 need_version=no
17444 soname_spec='${libname}${release}${shared_ext}$major'
17445 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17446 shlibpath_var=LD_LIBRARY_PATH
17447 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
17448 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
17451 rdos*)
17452 dynamic_linker=no
17455 solaris*)
17456 version_type=linux
17457 need_lib_prefix=no
17458 need_version=no
17459 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17460 soname_spec='${libname}${release}${shared_ext}$major'
17461 shlibpath_var=LD_LIBRARY_PATH
17462 shlibpath_overrides_runpath=yes
17463 hardcode_into_libs=yes
17464 # ldd complains unless libraries are executable
17465 postinstall_cmds='chmod +x $lib'
17468 sunos4*)
17469 version_type=sunos
17470 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
17471 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
17472 shlibpath_var=LD_LIBRARY_PATH
17473 shlibpath_overrides_runpath=yes
17474 if test "$with_gnu_ld" = yes; then
17475 need_lib_prefix=no
17477 need_version=yes
17480 sysv4 | sysv4.3*)
17481 version_type=linux
17482 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17483 soname_spec='${libname}${release}${shared_ext}$major'
17484 shlibpath_var=LD_LIBRARY_PATH
17485 case $host_vendor in
17486 sni)
17487 shlibpath_overrides_runpath=no
17488 need_lib_prefix=no
17489 runpath_var=LD_RUN_PATH
17491 siemens)
17492 need_lib_prefix=no
17494 motorola)
17495 need_lib_prefix=no
17496 need_version=no
17497 shlibpath_overrides_runpath=no
17498 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
17500 esac
17503 sysv4*MP*)
17504 if test -d /usr/nec ;then
17505 version_type=linux
17506 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
17507 soname_spec='$libname${shared_ext}.$major'
17508 shlibpath_var=LD_LIBRARY_PATH
17512 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
17513 version_type=freebsd-elf
17514 need_lib_prefix=no
17515 need_version=no
17516 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
17517 soname_spec='${libname}${release}${shared_ext}$major'
17518 shlibpath_var=LD_LIBRARY_PATH
17519 shlibpath_overrides_runpath=yes
17520 hardcode_into_libs=yes
17521 if test "$with_gnu_ld" = yes; then
17522 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
17523 else
17524 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
17525 case $host_os in
17526 sco3.2v5*)
17527 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
17529 esac
17531 sys_lib_dlsearch_path_spec='/usr/lib'
17534 tpf*)
17535 # TPF is a cross-target only. Preferred cross-host = GNU/Linux.
17536 version_type=linux
17537 need_lib_prefix=no
17538 need_version=no
17539 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17540 shlibpath_var=LD_LIBRARY_PATH
17541 shlibpath_overrides_runpath=no
17542 hardcode_into_libs=yes
17545 uts4*)
17546 version_type=linux
17547 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17548 soname_spec='${libname}${release}${shared_ext}$major'
17549 shlibpath_var=LD_LIBRARY_PATH
17553 dynamic_linker=no
17555 esac
17556 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
17557 $as_echo "$dynamic_linker" >&6; }
17558 test "$dynamic_linker" = no && can_build_shared=no
17560 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
17561 if test "$GCC" = yes; then
17562 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
17565 if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
17566 sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
17568 if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
17569 sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
17663 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
17664 $as_echo_n "checking how to hardcode library paths into programs... " >&6; }
17665 hardcode_action=
17666 if test -n "$hardcode_libdir_flag_spec" ||
17667 test -n "$runpath_var" ||
17668 test "X$hardcode_automatic" = "Xyes" ; then
17670 # We can hardcode non-existent directories.
17671 if test "$hardcode_direct" != no &&
17672 # If the only mechanism to avoid hardcoding is shlibpath_var, we
17673 # have to relink, otherwise we might link with an installed library
17674 # when we should be linking with a yet-to-be-installed one
17675 ## test "$_LT_TAGVAR(hardcode_shlibpath_var, )" != no &&
17676 test "$hardcode_minus_L" != no; then
17677 # Linking always hardcodes the temporary library directory.
17678 hardcode_action=relink
17679 else
17680 # We can link without hardcoding, and we can hardcode nonexisting dirs.
17681 hardcode_action=immediate
17683 else
17684 # We cannot hardcode anything, or else we can only hardcode existing
17685 # directories.
17686 hardcode_action=unsupported
17688 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action" >&5
17689 $as_echo "$hardcode_action" >&6; }
17691 if test "$hardcode_action" = relink ||
17692 test "$inherit_rpath" = yes; then
17693 # Fast installation is not supported
17694 enable_fast_install=no
17695 elif test "$shlibpath_overrides_runpath" = yes ||
17696 test "$enable_shared" = no; then
17697 # Fast installation is not necessary
17698 enable_fast_install=needless
17706 if test "x$enable_dlopen" != xyes; then
17707 enable_dlopen=unknown
17708 enable_dlopen_self=unknown
17709 enable_dlopen_self_static=unknown
17710 else
17711 lt_cv_dlopen=no
17712 lt_cv_dlopen_libs=
17714 case $host_os in
17715 beos*)
17716 lt_cv_dlopen="load_add_on"
17717 lt_cv_dlopen_libs=
17718 lt_cv_dlopen_self=yes
17721 mingw* | pw32* | cegcc*)
17722 lt_cv_dlopen="LoadLibrary"
17723 lt_cv_dlopen_libs=
17726 cygwin*)
17727 lt_cv_dlopen="dlopen"
17728 lt_cv_dlopen_libs=
17731 darwin*)
17732 # if libdl is installed we need to link against it
17733 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
17734 $as_echo_n "checking for dlopen in -ldl... " >&6; }
17735 if test "${ac_cv_lib_dl_dlopen+set}" = set; then :
17736 $as_echo_n "(cached) " >&6
17737 else
17738 ac_check_lib_save_LIBS=$LIBS
17739 LIBS="-ldl $LIBS"
17740 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17741 /* end confdefs.h. */
17743 /* Override any GCC internal prototype to avoid an error.
17744 Use char because int might match the return type of a GCC
17745 builtin and then its argument prototype would still apply. */
17746 #ifdef __cplusplus
17747 extern "C"
17748 #endif
17749 char dlopen ();
17751 main ()
17753 return dlopen ();
17755 return 0;
17757 _ACEOF
17758 if ac_fn_c_try_link "$LINENO"; then :
17759 ac_cv_lib_dl_dlopen=yes
17760 else
17761 ac_cv_lib_dl_dlopen=no
17763 rm -f core conftest.err conftest.$ac_objext \
17764 conftest$ac_exeext conftest.$ac_ext
17765 LIBS=$ac_check_lib_save_LIBS
17767 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
17768 $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
17769 if test "x$ac_cv_lib_dl_dlopen" = x""yes; then :
17770 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
17771 else
17773 lt_cv_dlopen="dyld"
17774 lt_cv_dlopen_libs=
17775 lt_cv_dlopen_self=yes
17782 ac_fn_c_check_func "$LINENO" "shl_load" "ac_cv_func_shl_load"
17783 if test "x$ac_cv_func_shl_load" = x""yes; then :
17784 lt_cv_dlopen="shl_load"
17785 else
17786 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shl_load in -ldld" >&5
17787 $as_echo_n "checking for shl_load in -ldld... " >&6; }
17788 if test "${ac_cv_lib_dld_shl_load+set}" = set; then :
17789 $as_echo_n "(cached) " >&6
17790 else
17791 ac_check_lib_save_LIBS=$LIBS
17792 LIBS="-ldld $LIBS"
17793 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17794 /* end confdefs.h. */
17796 /* Override any GCC internal prototype to avoid an error.
17797 Use char because int might match the return type of a GCC
17798 builtin and then its argument prototype would still apply. */
17799 #ifdef __cplusplus
17800 extern "C"
17801 #endif
17802 char shl_load ();
17804 main ()
17806 return shl_load ();
17808 return 0;
17810 _ACEOF
17811 if ac_fn_c_try_link "$LINENO"; then :
17812 ac_cv_lib_dld_shl_load=yes
17813 else
17814 ac_cv_lib_dld_shl_load=no
17816 rm -f core conftest.err conftest.$ac_objext \
17817 conftest$ac_exeext conftest.$ac_ext
17818 LIBS=$ac_check_lib_save_LIBS
17820 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_shl_load" >&5
17821 $as_echo "$ac_cv_lib_dld_shl_load" >&6; }
17822 if test "x$ac_cv_lib_dld_shl_load" = x""yes; then :
17823 lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-ldld"
17824 else
17825 ac_fn_c_check_func "$LINENO" "dlopen" "ac_cv_func_dlopen"
17826 if test "x$ac_cv_func_dlopen" = x""yes; then :
17827 lt_cv_dlopen="dlopen"
17828 else
17829 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
17830 $as_echo_n "checking for dlopen in -ldl... " >&6; }
17831 if test "${ac_cv_lib_dl_dlopen+set}" = set; then :
17832 $as_echo_n "(cached) " >&6
17833 else
17834 ac_check_lib_save_LIBS=$LIBS
17835 LIBS="-ldl $LIBS"
17836 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17837 /* end confdefs.h. */
17839 /* Override any GCC internal prototype to avoid an error.
17840 Use char because int might match the return type of a GCC
17841 builtin and then its argument prototype would still apply. */
17842 #ifdef __cplusplus
17843 extern "C"
17844 #endif
17845 char dlopen ();
17847 main ()
17849 return dlopen ();
17851 return 0;
17853 _ACEOF
17854 if ac_fn_c_try_link "$LINENO"; then :
17855 ac_cv_lib_dl_dlopen=yes
17856 else
17857 ac_cv_lib_dl_dlopen=no
17859 rm -f core conftest.err conftest.$ac_objext \
17860 conftest$ac_exeext conftest.$ac_ext
17861 LIBS=$ac_check_lib_save_LIBS
17863 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
17864 $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
17865 if test "x$ac_cv_lib_dl_dlopen" = x""yes; then :
17866 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
17867 else
17868 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -lsvld" >&5
17869 $as_echo_n "checking for dlopen in -lsvld... " >&6; }
17870 if test "${ac_cv_lib_svld_dlopen+set}" = set; then :
17871 $as_echo_n "(cached) " >&6
17872 else
17873 ac_check_lib_save_LIBS=$LIBS
17874 LIBS="-lsvld $LIBS"
17875 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17876 /* end confdefs.h. */
17878 /* Override any GCC internal prototype to avoid an error.
17879 Use char because int might match the return type of a GCC
17880 builtin and then its argument prototype would still apply. */
17881 #ifdef __cplusplus
17882 extern "C"
17883 #endif
17884 char dlopen ();
17886 main ()
17888 return dlopen ();
17890 return 0;
17892 _ACEOF
17893 if ac_fn_c_try_link "$LINENO"; then :
17894 ac_cv_lib_svld_dlopen=yes
17895 else
17896 ac_cv_lib_svld_dlopen=no
17898 rm -f core conftest.err conftest.$ac_objext \
17899 conftest$ac_exeext conftest.$ac_ext
17900 LIBS=$ac_check_lib_save_LIBS
17902 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_svld_dlopen" >&5
17903 $as_echo "$ac_cv_lib_svld_dlopen" >&6; }
17904 if test "x$ac_cv_lib_svld_dlopen" = x""yes; then :
17905 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
17906 else
17907 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dld_link in -ldld" >&5
17908 $as_echo_n "checking for dld_link in -ldld... " >&6; }
17909 if test "${ac_cv_lib_dld_dld_link+set}" = set; then :
17910 $as_echo_n "(cached) " >&6
17911 else
17912 ac_check_lib_save_LIBS=$LIBS
17913 LIBS="-ldld $LIBS"
17914 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17915 /* end confdefs.h. */
17917 /* Override any GCC internal prototype to avoid an error.
17918 Use char because int might match the return type of a GCC
17919 builtin and then its argument prototype would still apply. */
17920 #ifdef __cplusplus
17921 extern "C"
17922 #endif
17923 char dld_link ();
17925 main ()
17927 return dld_link ();
17929 return 0;
17931 _ACEOF
17932 if ac_fn_c_try_link "$LINENO"; then :
17933 ac_cv_lib_dld_dld_link=yes
17934 else
17935 ac_cv_lib_dld_dld_link=no
17937 rm -f core conftest.err conftest.$ac_objext \
17938 conftest$ac_exeext conftest.$ac_ext
17939 LIBS=$ac_check_lib_save_LIBS
17941 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_dld_link" >&5
17942 $as_echo "$ac_cv_lib_dld_dld_link" >&6; }
17943 if test "x$ac_cv_lib_dld_dld_link" = x""yes; then :
17944 lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-ldld"
17963 esac
17965 if test "x$lt_cv_dlopen" != xno; then
17966 enable_dlopen=yes
17967 else
17968 enable_dlopen=no
17971 case $lt_cv_dlopen in
17972 dlopen)
17973 save_CPPFLAGS="$CPPFLAGS"
17974 test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
17976 save_LDFLAGS="$LDFLAGS"
17977 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
17979 save_LIBS="$LIBS"
17980 LIBS="$lt_cv_dlopen_libs $LIBS"
17982 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a program can dlopen itself" >&5
17983 $as_echo_n "checking whether a program can dlopen itself... " >&6; }
17984 if test "${lt_cv_dlopen_self+set}" = set; then :
17985 $as_echo_n "(cached) " >&6
17986 else
17987 if test "$cross_compiling" = yes; then :
17988 lt_cv_dlopen_self=cross
17989 else
17990 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
17991 lt_status=$lt_dlunknown
17992 cat > conftest.$ac_ext <<_LT_EOF
17993 #line 17993 "configure"
17994 #include "confdefs.h"
17996 #if HAVE_DLFCN_H
17997 #include <dlfcn.h>
17998 #endif
18000 #include <stdio.h>
18002 #ifdef RTLD_GLOBAL
18003 # define LT_DLGLOBAL RTLD_GLOBAL
18004 #else
18005 # ifdef DL_GLOBAL
18006 # define LT_DLGLOBAL DL_GLOBAL
18007 # else
18008 # define LT_DLGLOBAL 0
18009 # endif
18010 #endif
18012 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
18013 find out it does not work in some platform. */
18014 #ifndef LT_DLLAZY_OR_NOW
18015 # ifdef RTLD_LAZY
18016 # define LT_DLLAZY_OR_NOW RTLD_LAZY
18017 # else
18018 # ifdef DL_LAZY
18019 # define LT_DLLAZY_OR_NOW DL_LAZY
18020 # else
18021 # ifdef RTLD_NOW
18022 # define LT_DLLAZY_OR_NOW RTLD_NOW
18023 # else
18024 # ifdef DL_NOW
18025 # define LT_DLLAZY_OR_NOW DL_NOW
18026 # else
18027 # define LT_DLLAZY_OR_NOW 0
18028 # endif
18029 # endif
18030 # endif
18031 # endif
18032 #endif
18034 /* When -fvisbility=hidden is used, assume the code has been annotated
18035 correspondingly for the symbols needed. */
18036 #if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
18037 void fnord () __attribute__((visibility("default")));
18038 #endif
18040 void fnord () { int i=42; }
18041 int main ()
18043 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
18044 int status = $lt_dlunknown;
18046 if (self)
18048 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
18049 else
18051 if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
18052 else puts (dlerror ());
18054 /* dlclose (self); */
18056 else
18057 puts (dlerror ());
18059 return status;
18061 _LT_EOF
18062 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
18063 (eval $ac_link) 2>&5
18064 ac_status=$?
18065 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
18066 test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
18067 (./conftest; exit; ) >&5 2>/dev/null
18068 lt_status=$?
18069 case x$lt_status in
18070 x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
18071 x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
18072 x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;;
18073 esac
18074 else :
18075 # compilation failed
18076 lt_cv_dlopen_self=no
18079 rm -fr conftest*
18083 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self" >&5
18084 $as_echo "$lt_cv_dlopen_self" >&6; }
18086 if test "x$lt_cv_dlopen_self" = xyes; then
18087 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
18088 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a statically linked program can dlopen itself" >&5
18089 $as_echo_n "checking whether a statically linked program can dlopen itself... " >&6; }
18090 if test "${lt_cv_dlopen_self_static+set}" = set; then :
18091 $as_echo_n "(cached) " >&6
18092 else
18093 if test "$cross_compiling" = yes; then :
18094 lt_cv_dlopen_self_static=cross
18095 else
18096 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
18097 lt_status=$lt_dlunknown
18098 cat > conftest.$ac_ext <<_LT_EOF
18099 #line 18099 "configure"
18100 #include "confdefs.h"
18102 #if HAVE_DLFCN_H
18103 #include <dlfcn.h>
18104 #endif
18106 #include <stdio.h>
18108 #ifdef RTLD_GLOBAL
18109 # define LT_DLGLOBAL RTLD_GLOBAL
18110 #else
18111 # ifdef DL_GLOBAL
18112 # define LT_DLGLOBAL DL_GLOBAL
18113 # else
18114 # define LT_DLGLOBAL 0
18115 # endif
18116 #endif
18118 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
18119 find out it does not work in some platform. */
18120 #ifndef LT_DLLAZY_OR_NOW
18121 # ifdef RTLD_LAZY
18122 # define LT_DLLAZY_OR_NOW RTLD_LAZY
18123 # else
18124 # ifdef DL_LAZY
18125 # define LT_DLLAZY_OR_NOW DL_LAZY
18126 # else
18127 # ifdef RTLD_NOW
18128 # define LT_DLLAZY_OR_NOW RTLD_NOW
18129 # else
18130 # ifdef DL_NOW
18131 # define LT_DLLAZY_OR_NOW DL_NOW
18132 # else
18133 # define LT_DLLAZY_OR_NOW 0
18134 # endif
18135 # endif
18136 # endif
18137 # endif
18138 #endif
18140 /* When -fvisbility=hidden is used, assume the code has been annotated
18141 correspondingly for the symbols needed. */
18142 #if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
18143 void fnord () __attribute__((visibility("default")));
18144 #endif
18146 void fnord () { int i=42; }
18147 int main ()
18149 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
18150 int status = $lt_dlunknown;
18152 if (self)
18154 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
18155 else
18157 if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
18158 else puts (dlerror ());
18160 /* dlclose (self); */
18162 else
18163 puts (dlerror ());
18165 return status;
18167 _LT_EOF
18168 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
18169 (eval $ac_link) 2>&5
18170 ac_status=$?
18171 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
18172 test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
18173 (./conftest; exit; ) >&5 2>/dev/null
18174 lt_status=$?
18175 case x$lt_status in
18176 x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
18177 x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
18178 x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;;
18179 esac
18180 else :
18181 # compilation failed
18182 lt_cv_dlopen_self_static=no
18185 rm -fr conftest*
18189 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self_static" >&5
18190 $as_echo "$lt_cv_dlopen_self_static" >&6; }
18193 CPPFLAGS="$save_CPPFLAGS"
18194 LDFLAGS="$save_LDFLAGS"
18195 LIBS="$save_LIBS"
18197 esac
18199 case $lt_cv_dlopen_self in
18200 yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
18201 *) enable_dlopen_self=unknown ;;
18202 esac
18204 case $lt_cv_dlopen_self_static in
18205 yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
18206 *) enable_dlopen_self_static=unknown ;;
18207 esac
18226 striplib=
18227 old_striplib=
18228 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stripping libraries is possible" >&5
18229 $as_echo_n "checking whether stripping libraries is possible... " >&6; }
18230 if test -n "$STRIP" && $STRIP -V 2>&1 | $GREP "GNU strip" >/dev/null; then
18231 test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
18232 test -z "$striplib" && striplib="$STRIP --strip-unneeded"
18233 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
18234 $as_echo "yes" >&6; }
18235 else
18236 # FIXME - insert some real tests, host_os isn't really good enough
18237 case $host_os in
18238 darwin*)
18239 if test -n "$STRIP" ; then
18240 striplib="$STRIP -x"
18241 old_striplib="$STRIP -S"
18242 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
18243 $as_echo "yes" >&6; }
18244 else
18245 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
18246 $as_echo "no" >&6; }
18250 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
18251 $as_echo "no" >&6; }
18253 esac
18267 # Report which library types will actually be built
18268 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if libtool supports shared libraries" >&5
18269 $as_echo_n "checking if libtool supports shared libraries... " >&6; }
18270 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $can_build_shared" >&5
18271 $as_echo "$can_build_shared" >&6; }
18273 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build shared libraries" >&5
18274 $as_echo_n "checking whether to build shared libraries... " >&6; }
18275 test "$can_build_shared" = "no" && enable_shared=no
18277 # On AIX, shared libraries and static libraries use the same namespace, and
18278 # are all built from PIC.
18279 case $host_os in
18280 aix3*)
18281 test "$enable_shared" = yes && enable_static=no
18282 if test -n "$RANLIB"; then
18283 archive_cmds="$archive_cmds~\$RANLIB \$lib"
18284 postinstall_cmds='$RANLIB $lib'
18288 aix[4-9]*)
18289 if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
18290 test "$enable_shared" = yes && enable_static=no
18293 esac
18294 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_shared" >&5
18295 $as_echo "$enable_shared" >&6; }
18297 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build static libraries" >&5
18298 $as_echo_n "checking whether to build static libraries... " >&6; }
18299 # Make sure either enable_shared or enable_static is yes.
18300 test "$enable_shared" = yes || enable_static=yes
18301 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_static" >&5
18302 $as_echo "$enable_static" >&6; }
18308 ac_ext=c
18309 ac_cpp='$CPP $CPPFLAGS'
18310 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18311 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18312 ac_compiler_gnu=$ac_cv_c_compiler_gnu
18314 CC="$lt_save_CC"
18316 if test -n "$CXX" && ( test "X$CXX" != "Xno" &&
18317 ( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) ||
18318 (test "X$CXX" != "Xg++"))) ; then
18319 ac_ext=cpp
18320 ac_cpp='$CXXCPP $CPPFLAGS'
18321 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18322 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18323 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
18324 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C++ preprocessor" >&5
18325 $as_echo_n "checking how to run the C++ preprocessor... " >&6; }
18326 if test -z "$CXXCPP"; then
18327 if test "${ac_cv_prog_CXXCPP+set}" = set; then :
18328 $as_echo_n "(cached) " >&6
18329 else
18330 # Double quotes because CXXCPP needs to be expanded
18331 for CXXCPP in "$CXX -E" "/lib/cpp"
18333 ac_preproc_ok=false
18334 for ac_cxx_preproc_warn_flag in '' yes
18336 # Use a header file that comes with gcc, so configuring glibc
18337 # with a fresh cross-compiler works.
18338 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
18339 # <limits.h> exists even on freestanding compilers.
18340 # On the NeXT, cc -E runs the code through the compiler's parser,
18341 # not just through cpp. "Syntax error" is here to catch this case.
18342 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18343 /* end confdefs.h. */
18344 #ifdef __STDC__
18345 # include <limits.h>
18346 #else
18347 # include <assert.h>
18348 #endif
18349 Syntax error
18350 _ACEOF
18351 if ac_fn_cxx_try_cpp "$LINENO"; then :
18353 else
18354 # Broken: fails on valid input.
18355 continue
18357 rm -f conftest.err conftest.$ac_ext
18359 # OK, works on sane cases. Now check whether nonexistent headers
18360 # can be detected and how.
18361 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18362 /* end confdefs.h. */
18363 #include <ac_nonexistent.h>
18364 _ACEOF
18365 if ac_fn_cxx_try_cpp "$LINENO"; then :
18366 # Broken: success on invalid input.
18367 continue
18368 else
18369 # Passes both tests.
18370 ac_preproc_ok=:
18371 break
18373 rm -f conftest.err conftest.$ac_ext
18375 done
18376 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
18377 rm -f conftest.err conftest.$ac_ext
18378 if $ac_preproc_ok; then :
18379 break
18382 done
18383 ac_cv_prog_CXXCPP=$CXXCPP
18386 CXXCPP=$ac_cv_prog_CXXCPP
18387 else
18388 ac_cv_prog_CXXCPP=$CXXCPP
18390 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXXCPP" >&5
18391 $as_echo "$CXXCPP" >&6; }
18392 ac_preproc_ok=false
18393 for ac_cxx_preproc_warn_flag in '' yes
18395 # Use a header file that comes with gcc, so configuring glibc
18396 # with a fresh cross-compiler works.
18397 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
18398 # <limits.h> exists even on freestanding compilers.
18399 # On the NeXT, cc -E runs the code through the compiler's parser,
18400 # not just through cpp. "Syntax error" is here to catch this case.
18401 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18402 /* end confdefs.h. */
18403 #ifdef __STDC__
18404 # include <limits.h>
18405 #else
18406 # include <assert.h>
18407 #endif
18408 Syntax error
18409 _ACEOF
18410 if ac_fn_cxx_try_cpp "$LINENO"; then :
18412 else
18413 # Broken: fails on valid input.
18414 continue
18416 rm -f conftest.err conftest.$ac_ext
18418 # OK, works on sane cases. Now check whether nonexistent headers
18419 # can be detected and how.
18420 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18421 /* end confdefs.h. */
18422 #include <ac_nonexistent.h>
18423 _ACEOF
18424 if ac_fn_cxx_try_cpp "$LINENO"; then :
18425 # Broken: success on invalid input.
18426 continue
18427 else
18428 # Passes both tests.
18429 ac_preproc_ok=:
18430 break
18432 rm -f conftest.err conftest.$ac_ext
18434 done
18435 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
18436 rm -f conftest.err conftest.$ac_ext
18437 if $ac_preproc_ok; then :
18439 else
18440 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
18441 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
18442 as_fn_error "C++ preprocessor \"$CXXCPP\" fails sanity check
18443 See \`config.log' for more details." "$LINENO" 5; }
18446 ac_ext=c
18447 ac_cpp='$CPP $CPPFLAGS'
18448 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18449 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18450 ac_compiler_gnu=$ac_cv_c_compiler_gnu
18452 else
18453 _lt_caught_CXX_error=yes
18456 ac_ext=cpp
18457 ac_cpp='$CXXCPP $CPPFLAGS'
18458 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18459 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18460 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
18462 archive_cmds_need_lc_CXX=no
18463 allow_undefined_flag_CXX=
18464 always_export_symbols_CXX=no
18465 archive_expsym_cmds_CXX=
18466 compiler_needs_object_CXX=no
18467 export_dynamic_flag_spec_CXX=
18468 hardcode_direct_CXX=no
18469 hardcode_direct_absolute_CXX=no
18470 hardcode_libdir_flag_spec_CXX=
18471 hardcode_libdir_flag_spec_ld_CXX=
18472 hardcode_libdir_separator_CXX=
18473 hardcode_minus_L_CXX=no
18474 hardcode_shlibpath_var_CXX=unsupported
18475 hardcode_automatic_CXX=no
18476 inherit_rpath_CXX=no
18477 module_cmds_CXX=
18478 module_expsym_cmds_CXX=
18479 link_all_deplibs_CXX=unknown
18480 old_archive_cmds_CXX=$old_archive_cmds
18481 reload_flag_CXX=$reload_flag
18482 reload_cmds_CXX=$reload_cmds
18483 no_undefined_flag_CXX=
18484 whole_archive_flag_spec_CXX=
18485 enable_shared_with_static_runtimes_CXX=no
18487 # Source file extension for C++ test sources.
18488 ac_ext=cpp
18490 # Object file extension for compiled C++ test sources.
18491 objext=o
18492 objext_CXX=$objext
18494 # No sense in running all these tests if we already determined that
18495 # the CXX compiler isn't working. Some variables (like enable_shared)
18496 # are currently assumed to apply to all compilers on this platform,
18497 # and will be corrupted by setting them based on a non-working compiler.
18498 if test "$_lt_caught_CXX_error" != yes; then
18499 # Code to be used in simple compile tests
18500 lt_simple_compile_test_code="int some_variable = 0;"
18502 # Code to be used in simple link tests
18503 lt_simple_link_test_code='int main(int, char *[]) { return(0); }'
18505 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
18512 # If no C compiler was specified, use CC.
18513 LTCC=${LTCC-"$CC"}
18515 # If no C compiler flags were specified, use CFLAGS.
18516 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
18518 # Allow CC to be a program name with arguments.
18519 compiler=$CC
18522 # save warnings/boilerplate of simple test code
18523 ac_outfile=conftest.$ac_objext
18524 echo "$lt_simple_compile_test_code" >conftest.$ac_ext
18525 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
18526 _lt_compiler_boilerplate=`cat conftest.err`
18527 $RM conftest*
18529 ac_outfile=conftest.$ac_objext
18530 echo "$lt_simple_link_test_code" >conftest.$ac_ext
18531 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
18532 _lt_linker_boilerplate=`cat conftest.err`
18533 $RM -r conftest*
18536 # Allow CC to be a program name with arguments.
18537 lt_save_CC=$CC
18538 lt_save_LD=$LD
18539 lt_save_GCC=$GCC
18540 GCC=$GXX
18541 lt_save_with_gnu_ld=$with_gnu_ld
18542 lt_save_path_LD=$lt_cv_path_LD
18543 if test -n "${lt_cv_prog_gnu_ldcxx+set}"; then
18544 lt_cv_prog_gnu_ld=$lt_cv_prog_gnu_ldcxx
18545 else
18546 $as_unset lt_cv_prog_gnu_ld
18548 if test -n "${lt_cv_path_LDCXX+set}"; then
18549 lt_cv_path_LD=$lt_cv_path_LDCXX
18550 else
18551 $as_unset lt_cv_path_LD
18553 test -z "${LDCXX+set}" || LD=$LDCXX
18554 CC=${CXX-"c++"}
18555 compiler=$CC
18556 compiler_CXX=$CC
18557 for cc_temp in $compiler""; do
18558 case $cc_temp in
18559 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
18560 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
18561 \-*) ;;
18562 *) break;;
18563 esac
18564 done
18565 cc_basename=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
18568 if test -n "$compiler"; then
18569 # We don't want -fno-exception when compiling C++ code, so set the
18570 # no_builtin_flag separately
18571 if test "$GXX" = yes; then
18572 lt_prog_compiler_no_builtin_flag_CXX=' -fno-builtin'
18573 else
18574 lt_prog_compiler_no_builtin_flag_CXX=
18577 if test "$GXX" = yes; then
18578 # Set up default GNU C++ configuration
18582 # Check whether --with-gnu-ld was given.
18583 if test "${with_gnu_ld+set}" = set; then :
18584 withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
18585 else
18586 with_gnu_ld=no
18589 ac_prog=ld
18590 if test "$GCC" = yes; then
18591 # Check if gcc -print-prog-name=ld gives a path.
18592 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
18593 $as_echo_n "checking for ld used by $CC... " >&6; }
18594 case $host in
18595 *-*-mingw*)
18596 # gcc leaves a trailing carriage return which upsets mingw
18597 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
18599 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
18600 esac
18601 case $ac_prog in
18602 # Accept absolute paths.
18603 [\\/]* | ?:[\\/]*)
18604 re_direlt='/[^/][^/]*/\.\./'
18605 # Canonicalize the pathname of ld
18606 ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
18607 while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
18608 ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
18609 done
18610 test -z "$LD" && LD="$ac_prog"
18613 # If it fails, then pretend we aren't using GCC.
18614 ac_prog=ld
18617 # If it is relative, then search for the first ld in PATH.
18618 with_gnu_ld=unknown
18620 esac
18621 elif test "$with_gnu_ld" = yes; then
18622 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
18623 $as_echo_n "checking for GNU ld... " >&6; }
18624 else
18625 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
18626 $as_echo_n "checking for non-GNU ld... " >&6; }
18628 if test "${lt_cv_path_LD+set}" = set; then :
18629 $as_echo_n "(cached) " >&6
18630 else
18631 if test -z "$LD"; then
18632 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
18633 for ac_dir in $PATH; do
18634 IFS="$lt_save_ifs"
18635 test -z "$ac_dir" && ac_dir=.
18636 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
18637 lt_cv_path_LD="$ac_dir/$ac_prog"
18638 # Check to see if the program is GNU ld. I'd rather use --version,
18639 # but apparently some variants of GNU ld only accept -v.
18640 # Break only if it was the GNU/non-GNU ld that we prefer.
18641 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
18642 *GNU* | *'with BFD'*)
18643 test "$with_gnu_ld" != no && break
18646 test "$with_gnu_ld" != yes && break
18648 esac
18650 done
18651 IFS="$lt_save_ifs"
18652 else
18653 lt_cv_path_LD="$LD" # Let the user override the test with a path.
18657 LD="$lt_cv_path_LD"
18658 if test -n "$LD"; then
18659 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
18660 $as_echo "$LD" >&6; }
18661 else
18662 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
18663 $as_echo "no" >&6; }
18665 test -z "$LD" && as_fn_error "no acceptable ld found in \$PATH" "$LINENO" 5
18666 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
18667 $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
18668 if test "${lt_cv_prog_gnu_ld+set}" = set; then :
18669 $as_echo_n "(cached) " >&6
18670 else
18671 # I'd rather use --version here, but apparently some GNU lds only accept -v.
18672 case `$LD -v 2>&1 </dev/null` in
18673 *GNU* | *'with BFD'*)
18674 lt_cv_prog_gnu_ld=yes
18677 lt_cv_prog_gnu_ld=no
18679 esac
18681 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
18682 $as_echo "$lt_cv_prog_gnu_ld" >&6; }
18683 with_gnu_ld=$lt_cv_prog_gnu_ld
18691 # Check if GNU C++ uses GNU ld as the underlying linker, since the
18692 # archiving commands below assume that GNU ld is being used.
18693 if test "$with_gnu_ld" = yes; then
18694 archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
18695 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'
18697 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
18698 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
18700 # If archive_cmds runs LD, not CC, wlarc should be empty
18701 # XXX I think wlarc can be eliminated in ltcf-cxx, but I need to
18702 # investigate it a little bit more. (MM)
18703 wlarc='${wl}'
18705 # ancient GNU ld didn't support --whole-archive et. al.
18706 if eval "`$CC -print-prog-name=ld` --help 2>&1" |
18707 $GREP 'no-whole-archive' > /dev/null; then
18708 whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
18709 else
18710 whole_archive_flag_spec_CXX=
18712 else
18713 with_gnu_ld=no
18714 wlarc=
18716 # A generic and very simple default shared library creation
18717 # command for GNU C++ for the case where it uses the native
18718 # linker, instead of GNU ld. If possible, this setting should
18719 # overridden to take advantage of the native linker features on
18720 # the platform it is being used on.
18721 archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
18724 # Commands to make compiler produce verbose output that lists
18725 # what "hidden" libraries, object files and flags are used when
18726 # linking a shared library.
18727 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
18729 else
18730 GXX=no
18731 with_gnu_ld=no
18732 wlarc=
18735 # PORTME: fill in a description of your system's C++ link characteristics
18736 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
18737 $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
18738 ld_shlibs_CXX=yes
18739 case $host_os in
18740 aix3*)
18741 # FIXME: insert proper C++ library support
18742 ld_shlibs_CXX=no
18744 aix[4-9]*)
18745 if test "$host_cpu" = ia64; then
18746 # On IA64, the linker does run time linking by default, so we don't
18747 # have to do anything special.
18748 aix_use_runtimelinking=no
18749 exp_sym_flag='-Bexport'
18750 no_entry_flag=""
18751 else
18752 aix_use_runtimelinking=no
18754 # Test if we are trying to use run time linking or normal
18755 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
18756 # need to do runtime linking.
18757 case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
18758 for ld_flag in $LDFLAGS; do
18759 case $ld_flag in
18760 *-brtl*)
18761 aix_use_runtimelinking=yes
18762 break
18764 esac
18765 done
18767 esac
18769 exp_sym_flag='-bexport'
18770 no_entry_flag='-bnoentry'
18773 # When large executables or shared objects are built, AIX ld can
18774 # have problems creating the table of contents. If linking a library
18775 # or program results in "error TOC overflow" add -mminimal-toc to
18776 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
18777 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
18779 archive_cmds_CXX=''
18780 hardcode_direct_CXX=yes
18781 hardcode_direct_absolute_CXX=yes
18782 hardcode_libdir_separator_CXX=':'
18783 link_all_deplibs_CXX=yes
18784 file_list_spec_CXX='${wl}-f,'
18786 if test "$GXX" = yes; then
18787 case $host_os in aix4.[012]|aix4.[012].*)
18788 # We only want to do this on AIX 4.2 and lower, the check
18789 # below for broken collect2 doesn't work under 4.3+
18790 collect2name=`${CC} -print-prog-name=collect2`
18791 if test -f "$collect2name" &&
18792 strings "$collect2name" | $GREP resolve_lib_name >/dev/null
18793 then
18794 # We have reworked collect2
18796 else
18797 # We have old collect2
18798 hardcode_direct_CXX=unsupported
18799 # It fails to find uninstalled libraries when the uninstalled
18800 # path is not listed in the libpath. Setting hardcode_minus_L
18801 # to unsupported forces relinking
18802 hardcode_minus_L_CXX=yes
18803 hardcode_libdir_flag_spec_CXX='-L$libdir'
18804 hardcode_libdir_separator_CXX=
18806 esac
18807 shared_flag='-shared'
18808 if test "$aix_use_runtimelinking" = yes; then
18809 shared_flag="$shared_flag "'${wl}-G'
18811 else
18812 # not using gcc
18813 if test "$host_cpu" = ia64; then
18814 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
18815 # chokes on -Wl,-G. The following line is correct:
18816 shared_flag='-G'
18817 else
18818 if test "$aix_use_runtimelinking" = yes; then
18819 shared_flag='${wl}-G'
18820 else
18821 shared_flag='${wl}-bM:SRE'
18826 export_dynamic_flag_spec_CXX='${wl}-bexpall'
18827 # It seems that -bexpall does not export symbols beginning with
18828 # underscore (_), so it is better to generate a list of symbols to
18829 # export.
18830 always_export_symbols_CXX=yes
18831 if test "$aix_use_runtimelinking" = yes; then
18832 # Warning - without using the other runtime loading flags (-brtl),
18833 # -berok will link without error, but may produce a broken library.
18834 allow_undefined_flag_CXX='-berok'
18835 # Determine the default libpath from the value encoded in an empty
18836 # executable.
18837 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18838 /* end confdefs.h. */
18841 main ()
18845 return 0;
18847 _ACEOF
18848 if ac_fn_cxx_try_link "$LINENO"; then :
18850 lt_aix_libpath_sed='
18851 /Import File Strings/,/^$/ {
18852 /^0/ {
18853 s/^0 *\(.*\)$/\1/
18857 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
18858 # Check for a 64-bit object if we didn't find anything.
18859 if test -z "$aix_libpath"; then
18860 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
18863 rm -f core conftest.err conftest.$ac_objext \
18864 conftest$ac_exeext conftest.$ac_ext
18865 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
18867 hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
18869 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"
18870 else
18871 if test "$host_cpu" = ia64; then
18872 hardcode_libdir_flag_spec_CXX='${wl}-R $libdir:/usr/lib:/lib'
18873 allow_undefined_flag_CXX="-z nodefs"
18874 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"
18875 else
18876 # Determine the default libpath from the value encoded in an
18877 # empty executable.
18878 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18879 /* end confdefs.h. */
18882 main ()
18886 return 0;
18888 _ACEOF
18889 if ac_fn_cxx_try_link "$LINENO"; then :
18891 lt_aix_libpath_sed='
18892 /Import File Strings/,/^$/ {
18893 /^0/ {
18894 s/^0 *\(.*\)$/\1/
18898 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
18899 # Check for a 64-bit object if we didn't find anything.
18900 if test -z "$aix_libpath"; then
18901 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
18904 rm -f core conftest.err conftest.$ac_objext \
18905 conftest$ac_exeext conftest.$ac_ext
18906 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
18908 hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
18909 # Warning - without using the other run time loading flags,
18910 # -berok will link without error, but may produce a broken library.
18911 no_undefined_flag_CXX=' ${wl}-bernotok'
18912 allow_undefined_flag_CXX=' ${wl}-berok'
18913 if test "$with_gnu_ld" = yes; then
18914 # We only use this code for GNU lds that support --whole-archive.
18915 whole_archive_flag_spec_CXX='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
18916 else
18917 # Exported symbols can be pulled into shared objects from archives
18918 whole_archive_flag_spec_CXX='$convenience'
18920 archive_cmds_need_lc_CXX=yes
18921 # This is similar to how AIX traditionally builds its shared
18922 # libraries.
18923 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'
18928 beos*)
18929 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
18930 allow_undefined_flag_CXX=unsupported
18931 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
18932 # support --undefined. This deserves some investigation. FIXME
18933 archive_cmds_CXX='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
18934 else
18935 ld_shlibs_CXX=no
18939 chorus*)
18940 case $cc_basename in
18942 # FIXME: insert proper C++ library support
18943 ld_shlibs_CXX=no
18945 esac
18948 cygwin* | mingw* | pw32* | cegcc*)
18949 # _LT_TAGVAR(hardcode_libdir_flag_spec, CXX) is actually meaningless,
18950 # as there is no search path for DLLs.
18951 hardcode_libdir_flag_spec_CXX='-L$libdir'
18952 export_dynamic_flag_spec_CXX='${wl}--export-all-symbols'
18953 allow_undefined_flag_CXX=unsupported
18954 always_export_symbols_CXX=no
18955 enable_shared_with_static_runtimes_CXX=yes
18957 if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
18958 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'
18959 # If the export-symbols file already is a .def file (1st line
18960 # is EXPORTS), use it as is; otherwise, prepend...
18961 archive_expsym_cmds_CXX='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
18962 cp $export_symbols $output_objdir/$soname.def;
18963 else
18964 echo EXPORTS > $output_objdir/$soname.def;
18965 cat $export_symbols >> $output_objdir/$soname.def;
18967 $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'
18968 else
18969 ld_shlibs_CXX=no
18972 darwin* | rhapsody*)
18975 archive_cmds_need_lc_CXX=no
18976 hardcode_direct_CXX=no
18977 hardcode_automatic_CXX=yes
18978 hardcode_shlibpath_var_CXX=unsupported
18979 if test "$lt_cv_ld_force_load" = "yes"; then
18980 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\"`'
18981 else
18982 whole_archive_flag_spec_CXX=''
18984 link_all_deplibs_CXX=yes
18985 allow_undefined_flag_CXX="$_lt_dar_allow_undefined"
18986 case $cc_basename in
18987 ifort*) _lt_dar_can_shared=yes ;;
18988 *) _lt_dar_can_shared=$GCC ;;
18989 esac
18990 if test "$_lt_dar_can_shared" = "yes"; then
18991 output_verbose_link_cmd=func_echo_all
18992 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}"
18993 module_cmds_CXX="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
18994 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}"
18995 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}"
18996 if test "$lt_cv_apple_cc_single_mod" != "yes"; then
18997 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}"
18998 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}"
19001 else
19002 ld_shlibs_CXX=no
19007 dgux*)
19008 case $cc_basename in
19009 ec++*)
19010 # FIXME: insert proper C++ library support
19011 ld_shlibs_CXX=no
19013 ghcx*)
19014 # Green Hills C++ Compiler
19015 # FIXME: insert proper C++ library support
19016 ld_shlibs_CXX=no
19019 # FIXME: insert proper C++ library support
19020 ld_shlibs_CXX=no
19022 esac
19025 freebsd2.*)
19026 # C++ shared libraries reported to be fairly broken before
19027 # switch to ELF
19028 ld_shlibs_CXX=no
19031 freebsd-elf*)
19032 archive_cmds_need_lc_CXX=no
19035 freebsd* | dragonfly*)
19036 # FreeBSD 3 and later use GNU C++ and GNU ld with standard ELF
19037 # conventions
19038 ld_shlibs_CXX=yes
19041 gnu*)
19044 haiku*)
19045 archive_cmds_CXX='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
19046 link_all_deplibs_CXX=yes
19049 hpux9*)
19050 hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
19051 hardcode_libdir_separator_CXX=:
19052 export_dynamic_flag_spec_CXX='${wl}-E'
19053 hardcode_direct_CXX=yes
19054 hardcode_minus_L_CXX=yes # Not in the search PATH,
19055 # but as the default
19056 # location of the library.
19058 case $cc_basename in
19059 CC*)
19060 # FIXME: insert proper C++ library support
19061 ld_shlibs_CXX=no
19063 aCC*)
19064 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'
19065 # Commands to make compiler produce verbose output that lists
19066 # what "hidden" libraries, object files and flags are used when
19067 # linking a shared library.
19069 # There doesn't appear to be a way to prevent this compiler from
19070 # explicitly linking system object files so we need to strip them
19071 # from the output so that they don't get included in the library
19072 # dependencies.
19073 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"'
19076 if test "$GXX" = yes; then
19077 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'
19078 else
19079 # FIXME: insert proper C++ library support
19080 ld_shlibs_CXX=no
19083 esac
19086 hpux10*|hpux11*)
19087 if test $with_gnu_ld = no; then
19088 hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
19089 hardcode_libdir_separator_CXX=:
19091 case $host_cpu in
19092 hppa*64*|ia64*)
19095 export_dynamic_flag_spec_CXX='${wl}-E'
19097 esac
19099 case $host_cpu in
19100 hppa*64*|ia64*)
19101 hardcode_direct_CXX=no
19102 hardcode_shlibpath_var_CXX=no
19105 hardcode_direct_CXX=yes
19106 hardcode_direct_absolute_CXX=yes
19107 hardcode_minus_L_CXX=yes # Not in the search PATH,
19108 # but as the default
19109 # location of the library.
19111 esac
19113 case $cc_basename in
19114 CC*)
19115 # FIXME: insert proper C++ library support
19116 ld_shlibs_CXX=no
19118 aCC*)
19119 case $host_cpu in
19120 hppa*64*)
19121 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
19123 ia64*)
19124 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
19127 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
19129 esac
19130 # Commands to make compiler produce verbose output that lists
19131 # what "hidden" libraries, object files and flags are used when
19132 # linking a shared library.
19134 # There doesn't appear to be a way to prevent this compiler from
19135 # explicitly linking system object files so we need to strip them
19136 # from the output so that they don't get included in the library
19137 # dependencies.
19138 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"'
19141 if test "$GXX" = yes; then
19142 if test $with_gnu_ld = no; then
19143 case $host_cpu in
19144 hppa*64*)
19145 archive_cmds_CXX='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
19147 ia64*)
19148 archive_cmds_CXX='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
19151 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'
19153 esac
19155 else
19156 # FIXME: insert proper C++ library support
19157 ld_shlibs_CXX=no
19160 esac
19163 interix[3-9]*)
19164 hardcode_direct_CXX=no
19165 hardcode_shlibpath_var_CXX=no
19166 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
19167 export_dynamic_flag_spec_CXX='${wl}-E'
19168 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
19169 # Instead, shared libraries are loaded at an image base (0x10000000 by
19170 # default) and relocated if they conflict, which is a slow very memory
19171 # consuming and fragmenting process. To avoid this, we pick a random,
19172 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
19173 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
19174 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'
19175 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'
19177 irix5* | irix6*)
19178 case $cc_basename in
19179 CC*)
19180 # SGI C++
19181 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'
19183 # Archives containing C++ object files must be created using
19184 # "CC -ar", where "CC" is the IRIX C++ compiler. This is
19185 # necessary to make sure instantiated templates are included
19186 # in the archive.
19187 old_archive_cmds_CXX='$CC -ar -WR,-u -o $oldlib $oldobjs'
19190 if test "$GXX" = yes; then
19191 if test "$with_gnu_ld" = no; then
19192 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'
19193 else
19194 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'
19197 link_all_deplibs_CXX=yes
19199 esac
19200 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
19201 hardcode_libdir_separator_CXX=:
19202 inherit_rpath_CXX=yes
19205 linux* | k*bsd*-gnu | kopensolaris*-gnu)
19206 case $cc_basename in
19207 KCC*)
19208 # Kuck and Associates, Inc. (KAI) C++ Compiler
19210 # KCC will only create a shared library if the output file
19211 # ends with ".so" (or ".sl" for HP-UX), so rename the library
19212 # to its proper name (with version) after linking.
19213 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'
19214 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'
19215 # Commands to make compiler produce verbose output that lists
19216 # what "hidden" libraries, object files and flags are used when
19217 # linking a shared library.
19219 # There doesn't appear to be a way to prevent this compiler from
19220 # explicitly linking system object files so we need to strip them
19221 # from the output so that they don't get included in the library
19222 # dependencies.
19223 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"'
19225 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
19226 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
19228 # Archives containing C++ object files must be created using
19229 # "CC -Bstatic", where "CC" is the KAI C++ compiler.
19230 old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs'
19232 icpc* | ecpc* )
19233 # Intel C++
19234 with_gnu_ld=yes
19235 # version 8.0 and above of icpc choke on multiply defined symbols
19236 # if we add $predep_objects and $postdep_objects, however 7.1 and
19237 # earlier do not add the objects themselves.
19238 case `$CC -V 2>&1` in
19239 *"Version 7."*)
19240 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
19241 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'
19243 *) # Version 8.0 or newer
19244 tmp_idyn=
19245 case $host_cpu in
19246 ia64*) tmp_idyn=' -i_dynamic';;
19247 esac
19248 archive_cmds_CXX='$CC -shared'"$tmp_idyn"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
19249 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'
19251 esac
19252 archive_cmds_need_lc_CXX=no
19253 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
19254 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
19255 whole_archive_flag_spec_CXX='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
19257 pgCC* | pgcpp*)
19258 # Portland Group C++ compiler
19259 case `$CC -V` in
19260 *pgCC\ [1-5].* | *pgcpp\ [1-5].*)
19261 prelink_cmds_CXX='tpldir=Template.dir~
19262 rm -rf $tpldir~
19263 $CC --prelink_objects --instantiation_dir $tpldir $objs $libobjs $compile_deplibs~
19264 compile_command="$compile_command `find $tpldir -name \*.o | $NL2SP`"'
19265 old_archive_cmds_CXX='tpldir=Template.dir~
19266 rm -rf $tpldir~
19267 $CC --prelink_objects --instantiation_dir $tpldir $oldobjs$old_deplibs~
19268 $AR $AR_FLAGS $oldlib$oldobjs$old_deplibs `find $tpldir -name \*.o | $NL2SP`~
19269 $RANLIB $oldlib'
19270 archive_cmds_CXX='tpldir=Template.dir~
19271 rm -rf $tpldir~
19272 $CC --prelink_objects --instantiation_dir $tpldir $predep_objects $libobjs $deplibs $convenience $postdep_objects~
19273 $CC -shared $pic_flag $predep_objects $libobjs $deplibs `find $tpldir -name \*.o | $NL2SP` $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname -o $lib'
19274 archive_expsym_cmds_CXX='tpldir=Template.dir~
19275 rm -rf $tpldir~
19276 $CC --prelink_objects --instantiation_dir $tpldir $predep_objects $libobjs $deplibs $convenience $postdep_objects~
19277 $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'
19279 *) # Version 6 and above use weak symbols
19280 archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname -o $lib'
19281 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'
19283 esac
19285 hardcode_libdir_flag_spec_CXX='${wl}--rpath ${wl}$libdir'
19286 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
19287 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'
19289 cxx*)
19290 # Compaq C++
19291 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
19292 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'
19294 runpath_var=LD_RUN_PATH
19295 hardcode_libdir_flag_spec_CXX='-rpath $libdir'
19296 hardcode_libdir_separator_CXX=:
19298 # Commands to make compiler produce verbose output that lists
19299 # what "hidden" libraries, object files and flags are used when
19300 # linking a shared library.
19302 # There doesn't appear to be a way to prevent this compiler from
19303 # explicitly linking system object files so we need to strip them
19304 # from the output so that they don't get included in the library
19305 # dependencies.
19306 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'
19308 xl* | mpixl* | bgxl*)
19309 # IBM XL 8.0 on PPC, with GNU ld
19310 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
19311 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
19312 archive_cmds_CXX='$CC -qmkshrobj $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
19313 if test "x$supports_anon_versioning" = xyes; then
19314 archive_expsym_cmds_CXX='echo "{ global:" > $output_objdir/$libname.ver~
19315 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
19316 echo "local: *; };" >> $output_objdir/$libname.ver~
19317 $CC -qmkshrobj $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
19321 case `$CC -V 2>&1 | sed 5q` in
19322 *Sun\ C*)
19323 # Sun C++ 5.9
19324 no_undefined_flag_CXX=' -zdefs'
19325 archive_cmds_CXX='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
19326 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'
19327 hardcode_libdir_flag_spec_CXX='-R$libdir'
19328 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'
19329 compiler_needs_object_CXX=yes
19331 # Not sure whether something based on
19332 # $CC $CFLAGS -v conftest.$objext -o libconftest$shared_ext 2>&1
19333 # would be better.
19334 output_verbose_link_cmd='func_echo_all'
19336 # Archives containing C++ object files must be created using
19337 # "CC -xar", where "CC" is the Sun C++ compiler. This is
19338 # necessary to make sure instantiated templates are included
19339 # in the archive.
19340 old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs'
19342 esac
19344 esac
19347 lynxos*)
19348 # FIXME: insert proper C++ library support
19349 ld_shlibs_CXX=no
19352 m88k*)
19353 # FIXME: insert proper C++ library support
19354 ld_shlibs_CXX=no
19357 mvs*)
19358 case $cc_basename in
19359 cxx*)
19360 # FIXME: insert proper C++ library support
19361 ld_shlibs_CXX=no
19364 # FIXME: insert proper C++ library support
19365 ld_shlibs_CXX=no
19367 esac
19370 netbsd*)
19371 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
19372 archive_cmds_CXX='$LD -Bshareable -o $lib $predep_objects $libobjs $deplibs $postdep_objects $linker_flags'
19373 wlarc=
19374 hardcode_libdir_flag_spec_CXX='-R$libdir'
19375 hardcode_direct_CXX=yes
19376 hardcode_shlibpath_var_CXX=no
19378 # Workaround some broken pre-1.5 toolchains
19379 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP conftest.$objext | $SED -e "s:-lgcc -lc -lgcc::"'
19382 *nto* | *qnx*)
19383 ld_shlibs_CXX=yes
19386 openbsd2*)
19387 # C++ shared libraries are fairly broken
19388 ld_shlibs_CXX=no
19391 openbsd*)
19392 if test -f /usr/libexec/ld.so; then
19393 hardcode_direct_CXX=yes
19394 hardcode_shlibpath_var_CXX=no
19395 hardcode_direct_absolute_CXX=yes
19396 archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
19397 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
19398 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
19399 archive_expsym_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-retain-symbols-file,$export_symbols -o $lib'
19400 export_dynamic_flag_spec_CXX='${wl}-E'
19401 whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
19403 output_verbose_link_cmd=func_echo_all
19404 else
19405 ld_shlibs_CXX=no
19409 osf3* | osf4* | osf5*)
19410 case $cc_basename in
19411 KCC*)
19412 # Kuck and Associates, Inc. (KAI) C++ Compiler
19414 # KCC will only create a shared library if the output file
19415 # ends with ".so" (or ".sl" for HP-UX), so rename the library
19416 # to its proper name (with version) after linking.
19417 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'
19419 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
19420 hardcode_libdir_separator_CXX=:
19422 # Archives containing C++ object files must be created using
19423 # the KAI C++ compiler.
19424 case $host in
19425 osf3*) old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs' ;;
19426 *) old_archive_cmds_CXX='$CC -o $oldlib $oldobjs' ;;
19427 esac
19429 RCC*)
19430 # Rational C++ 2.4.1
19431 # FIXME: insert proper C++ library support
19432 ld_shlibs_CXX=no
19434 cxx*)
19435 case $host in
19436 osf3*)
19437 allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
19438 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'
19439 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
19442 allow_undefined_flag_CXX=' -expect_unresolved \*'
19443 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'
19444 archive_expsym_cmds_CXX='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done~
19445 echo "-hidden">> $lib.exp~
19446 $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~
19447 $RM $lib.exp'
19448 hardcode_libdir_flag_spec_CXX='-rpath $libdir'
19450 esac
19452 hardcode_libdir_separator_CXX=:
19454 # Commands to make compiler produce verbose output that lists
19455 # what "hidden" libraries, object files and flags are used when
19456 # linking a shared library.
19458 # There doesn't appear to be a way to prevent this compiler from
19459 # explicitly linking system object files so we need to strip them
19460 # from the output so that they don't get included in the library
19461 # dependencies.
19462 output_verbose_link_cmd='templist=`$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP "ld" | $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"'
19465 if test "$GXX" = yes && test "$with_gnu_ld" = no; then
19466 allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
19467 case $host in
19468 osf3*)
19469 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'
19472 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'
19474 esac
19476 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
19477 hardcode_libdir_separator_CXX=:
19479 # Commands to make compiler produce verbose output that lists
19480 # what "hidden" libraries, object files and flags are used when
19481 # linking a shared library.
19482 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
19484 else
19485 # FIXME: insert proper C++ library support
19486 ld_shlibs_CXX=no
19489 esac
19492 psos*)
19493 # FIXME: insert proper C++ library support
19494 ld_shlibs_CXX=no
19497 sunos4*)
19498 case $cc_basename in
19499 CC*)
19500 # Sun C++ 4.x
19501 # FIXME: insert proper C++ library support
19502 ld_shlibs_CXX=no
19504 lcc*)
19505 # Lucid
19506 # FIXME: insert proper C++ library support
19507 ld_shlibs_CXX=no
19510 # FIXME: insert proper C++ library support
19511 ld_shlibs_CXX=no
19513 esac
19516 solaris*)
19517 case $cc_basename in
19518 CC*)
19519 # Sun C++ 4.2, 5.x and Centerline C++
19520 archive_cmds_need_lc_CXX=yes
19521 no_undefined_flag_CXX=' -zdefs'
19522 archive_cmds_CXX='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
19523 archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
19524 $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'
19526 hardcode_libdir_flag_spec_CXX='-R$libdir'
19527 hardcode_shlibpath_var_CXX=no
19528 case $host_os in
19529 solaris2.[0-5] | solaris2.[0-5].*) ;;
19531 # The compiler driver will combine and reorder linker options,
19532 # but understands `-z linker_flag'.
19533 # Supported since Solaris 2.6 (maybe 2.5.1?)
19534 whole_archive_flag_spec_CXX='-z allextract$convenience -z defaultextract'
19536 esac
19537 link_all_deplibs_CXX=yes
19539 output_verbose_link_cmd='func_echo_all'
19541 # Archives containing C++ object files must be created using
19542 # "CC -xar", where "CC" is the Sun C++ compiler. This is
19543 # necessary to make sure instantiated templates are included
19544 # in the archive.
19545 old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs'
19547 gcx*)
19548 # Green Hills C++ Compiler
19549 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
19551 # The C++ compiler must be used to create the archive.
19552 old_archive_cmds_CXX='$CC $LDFLAGS -archive -o $oldlib $oldobjs'
19555 # GNU C++ compiler with Solaris linker
19556 if test "$GXX" = yes && test "$with_gnu_ld" = no; then
19557 no_undefined_flag_CXX=' ${wl}-z ${wl}defs'
19558 if $CC --version | $GREP -v '^2\.7' > /dev/null; then
19559 archive_cmds_CXX='$CC -shared -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
19560 archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
19561 $CC -shared -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$RM $lib.exp'
19563 # Commands to make compiler produce verbose output that lists
19564 # what "hidden" libraries, object files and flags are used when
19565 # linking a shared library.
19566 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
19567 else
19568 # g++ 2.7 appears to require `-G' NOT `-shared' on this
19569 # platform.
19570 archive_cmds_CXX='$CC -G -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
19571 archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
19572 $CC -G -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$RM $lib.exp'
19574 # Commands to make compiler produce verbose output that lists
19575 # what "hidden" libraries, object files and flags are used when
19576 # linking a shared library.
19577 output_verbose_link_cmd='$CC -G $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
19580 hardcode_libdir_flag_spec_CXX='${wl}-R $wl$libdir'
19581 case $host_os in
19582 solaris2.[0-5] | solaris2.[0-5].*) ;;
19584 whole_archive_flag_spec_CXX='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
19586 esac
19589 esac
19592 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
19593 no_undefined_flag_CXX='${wl}-z,text'
19594 archive_cmds_need_lc_CXX=no
19595 hardcode_shlibpath_var_CXX=no
19596 runpath_var='LD_RUN_PATH'
19598 case $cc_basename in
19599 CC*)
19600 archive_cmds_CXX='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
19601 archive_expsym_cmds_CXX='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
19604 archive_cmds_CXX='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
19605 archive_expsym_cmds_CXX='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
19607 esac
19610 sysv5* | sco3.2v5* | sco5v6*)
19611 # Note: We can NOT use -z defs as we might desire, because we do not
19612 # link with -lc, and that would cause any symbols used from libc to
19613 # always be unresolved, which means just about no library would
19614 # ever link correctly. If we're not using GNU ld we use -z text
19615 # though, which does catch some bad symbols but isn't as heavy-handed
19616 # as -z defs.
19617 no_undefined_flag_CXX='${wl}-z,text'
19618 allow_undefined_flag_CXX='${wl}-z,nodefs'
19619 archive_cmds_need_lc_CXX=no
19620 hardcode_shlibpath_var_CXX=no
19621 hardcode_libdir_flag_spec_CXX='${wl}-R,$libdir'
19622 hardcode_libdir_separator_CXX=':'
19623 link_all_deplibs_CXX=yes
19624 export_dynamic_flag_spec_CXX='${wl}-Bexport'
19625 runpath_var='LD_RUN_PATH'
19627 case $cc_basename in
19628 CC*)
19629 archive_cmds_CXX='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
19630 archive_expsym_cmds_CXX='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
19631 old_archive_cmds_CXX='$CC -Tprelink_objects $oldobjs~
19632 '"$old_archive_cmds_CXX"
19633 reload_cmds_CXX='$CC -Tprelink_objects $reload_objs~
19634 '"$reload_cmds_CXX"
19637 archive_cmds_CXX='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
19638 archive_expsym_cmds_CXX='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
19640 esac
19643 tandem*)
19644 case $cc_basename in
19645 NCC*)
19646 # NonStop-UX NCC 3.20
19647 # FIXME: insert proper C++ library support
19648 ld_shlibs_CXX=no
19651 # FIXME: insert proper C++ library support
19652 ld_shlibs_CXX=no
19654 esac
19657 vxworks*)
19658 # FIXME: insert proper C++ library support
19659 ld_shlibs_CXX=no
19663 # FIXME: insert proper C++ library support
19664 ld_shlibs_CXX=no
19666 esac
19668 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs_CXX" >&5
19669 $as_echo "$ld_shlibs_CXX" >&6; }
19670 test "$ld_shlibs_CXX" = no && can_build_shared=no
19672 GCC_CXX="$GXX"
19673 LD_CXX="$LD"
19675 ## CAVEAT EMPTOR:
19676 ## There is no encapsulation within the following macros, do not change
19677 ## the running order or otherwise move them around unless you know exactly
19678 ## what you are doing...
19679 # Dependencies to place before and after the object being linked:
19680 predep_objects_CXX=
19681 postdep_objects_CXX=
19682 predeps_CXX=
19683 postdeps_CXX=
19684 compiler_lib_search_path_CXX=
19686 cat > conftest.$ac_ext <<_LT_EOF
19687 class Foo
19689 public:
19690 Foo (void) { a = 0; }
19691 private:
19692 int a;
19694 _LT_EOF
19696 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
19697 (eval $ac_compile) 2>&5
19698 ac_status=$?
19699 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
19700 test $ac_status = 0; }; then
19701 # Parse the compiler output and extract the necessary
19702 # objects, libraries and library flags.
19704 # Sentinel used to keep track of whether or not we are before
19705 # the conftest object file.
19706 pre_test_object_deps_done=no
19708 for p in `eval "$output_verbose_link_cmd"`; do
19709 case $p in
19711 -L* | -R* | -l*)
19712 # Some compilers place space between "-{L,R}" and the path.
19713 # Remove the space.
19714 if test $p = "-L" ||
19715 test $p = "-R"; then
19716 prev=$p
19717 continue
19718 else
19719 prev=
19722 if test "$pre_test_object_deps_done" = no; then
19723 case $p in
19724 -L* | -R*)
19725 # Internal compiler library paths should come after those
19726 # provided the user. The postdeps already come after the
19727 # user supplied libs so there is no need to process them.
19728 if test -z "$compiler_lib_search_path_CXX"; then
19729 compiler_lib_search_path_CXX="${prev}${p}"
19730 else
19731 compiler_lib_search_path_CXX="${compiler_lib_search_path_CXX} ${prev}${p}"
19734 # The "-l" case would never come before the object being
19735 # linked, so don't bother handling this case.
19736 esac
19737 else
19738 if test -z "$postdeps_CXX"; then
19739 postdeps_CXX="${prev}${p}"
19740 else
19741 postdeps_CXX="${postdeps_CXX} ${prev}${p}"
19746 *.$objext)
19747 # This assumes that the test object file only shows up
19748 # once in the compiler output.
19749 if test "$p" = "conftest.$objext"; then
19750 pre_test_object_deps_done=yes
19751 continue
19754 if test "$pre_test_object_deps_done" = no; then
19755 if test -z "$predep_objects_CXX"; then
19756 predep_objects_CXX="$p"
19757 else
19758 predep_objects_CXX="$predep_objects_CXX $p"
19760 else
19761 if test -z "$postdep_objects_CXX"; then
19762 postdep_objects_CXX="$p"
19763 else
19764 postdep_objects_CXX="$postdep_objects_CXX $p"
19769 *) ;; # Ignore the rest.
19771 esac
19772 done
19774 # Clean up.
19775 rm -f a.out a.exe
19776 else
19777 echo "libtool.m4: error: problem compiling CXX test program"
19780 $RM -f confest.$objext
19782 # PORTME: override above test on systems where it is broken
19783 case $host_os in
19784 interix[3-9]*)
19785 # Interix 3.5 installs completely hosed .la files for C++, so rather than
19786 # hack all around it, let's just trust "g++" to DTRT.
19787 predep_objects_CXX=
19788 postdep_objects_CXX=
19789 postdeps_CXX=
19792 linux*)
19793 case `$CC -V 2>&1 | sed 5q` in
19794 *Sun\ C*)
19795 # Sun C++ 5.9
19797 # The more standards-conforming stlport4 library is
19798 # incompatible with the Cstd library. Avoid specifying
19799 # it if it's in CXXFLAGS. Ignore libCrun as
19800 # -library=stlport4 depends on it.
19801 case " $CXX $CXXFLAGS " in
19802 *" -library=stlport4 "*)
19803 solaris_use_stlport4=yes
19805 esac
19807 if test "$solaris_use_stlport4" != yes; then
19808 postdeps_CXX='-library=Cstd -library=Crun'
19811 esac
19814 solaris*)
19815 case $cc_basename in
19816 CC*)
19817 # The more standards-conforming stlport4 library is
19818 # incompatible with the Cstd library. Avoid specifying
19819 # it if it's in CXXFLAGS. Ignore libCrun as
19820 # -library=stlport4 depends on it.
19821 case " $CXX $CXXFLAGS " in
19822 *" -library=stlport4 "*)
19823 solaris_use_stlport4=yes
19825 esac
19827 # Adding this requires a known-good setup of shared libraries for
19828 # Sun compiler versions before 5.6, else PIC objects from an old
19829 # archive will be linked into the output, leading to subtle bugs.
19830 if test "$solaris_use_stlport4" != yes; then
19831 postdeps_CXX='-library=Cstd -library=Crun'
19834 esac
19836 esac
19839 case " $postdeps_CXX " in
19840 *" -lc "*) archive_cmds_need_lc_CXX=no ;;
19841 esac
19842 compiler_lib_search_dirs_CXX=
19843 if test -n "${compiler_lib_search_path_CXX}"; then
19844 compiler_lib_search_dirs_CXX=`echo " ${compiler_lib_search_path_CXX}" | ${SED} -e 's! -L! !g' -e 's!^ !!'`
19877 lt_prog_compiler_wl_CXX=
19878 lt_prog_compiler_pic_CXX=
19879 lt_prog_compiler_static_CXX=
19881 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
19882 $as_echo_n "checking for $compiler option to produce PIC... " >&6; }
19884 # C++ specific cases for pic, static, wl, etc.
19885 if test "$GXX" = yes; then
19886 lt_prog_compiler_wl_CXX='-Wl,'
19887 lt_prog_compiler_static_CXX='-static'
19889 case $host_os in
19890 aix*)
19891 # All AIX code is PIC.
19892 if test "$host_cpu" = ia64; then
19893 # AIX 5 now supports IA64 processor
19894 lt_prog_compiler_static_CXX='-Bstatic'
19896 lt_prog_compiler_pic_CXX='-fPIC'
19899 amigaos*)
19900 case $host_cpu in
19901 powerpc)
19902 # see comment about AmigaOS4 .so support
19903 lt_prog_compiler_pic_CXX='-fPIC'
19905 m68k)
19906 # FIXME: we need at least 68020 code to build shared libraries, but
19907 # adding the `-m68020' flag to GCC prevents building anything better,
19908 # like `-m68040'.
19909 lt_prog_compiler_pic_CXX='-m68020 -resident32 -malways-restore-a4'
19911 esac
19914 beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
19915 # PIC is the default for these OSes.
19917 mingw* | cygwin* | os2* | pw32* | cegcc*)
19918 # This hack is so that the source file can tell whether it is being
19919 # built for inclusion in a dll (and should export symbols for example).
19920 # Although the cygwin gcc ignores -fPIC, still need this for old-style
19921 # (--disable-auto-import) libraries
19922 lt_prog_compiler_pic_CXX='-DDLL_EXPORT'
19924 darwin* | rhapsody*)
19925 # PIC is the default on this platform
19926 # Common symbols not allowed in MH_DYLIB files
19927 lt_prog_compiler_pic_CXX='-fno-common'
19929 *djgpp*)
19930 # DJGPP does not support shared libraries at all
19931 lt_prog_compiler_pic_CXX=
19933 haiku*)
19934 # PIC is the default for Haiku.
19935 # The "-static" flag exists, but is broken.
19936 lt_prog_compiler_static_CXX=
19938 interix[3-9]*)
19939 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
19940 # Instead, we relocate shared libraries at runtime.
19942 sysv4*MP*)
19943 if test -d /usr/nec; then
19944 lt_prog_compiler_pic_CXX=-Kconform_pic
19947 hpux*)
19948 # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
19949 # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag
19950 # sets the default TLS model and affects inlining.
19951 case $host_cpu in
19952 hppa*64*)
19955 lt_prog_compiler_pic_CXX='-fPIC'
19957 esac
19959 *qnx* | *nto*)
19960 # QNX uses GNU C++, but need to define -shared option too, otherwise
19961 # it will coredump.
19962 lt_prog_compiler_pic_CXX='-fPIC -shared'
19965 lt_prog_compiler_pic_CXX='-fPIC'
19967 esac
19968 else
19969 case $host_os in
19970 aix[4-9]*)
19971 # All AIX code is PIC.
19972 if test "$host_cpu" = ia64; then
19973 # AIX 5 now supports IA64 processor
19974 lt_prog_compiler_static_CXX='-Bstatic'
19975 else
19976 lt_prog_compiler_static_CXX='-bnso -bI:/lib/syscalls.exp'
19979 chorus*)
19980 case $cc_basename in
19981 cxch68*)
19982 # Green Hills C++ Compiler
19983 # _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"
19985 esac
19987 dgux*)
19988 case $cc_basename in
19989 ec++*)
19990 lt_prog_compiler_pic_CXX='-KPIC'
19992 ghcx*)
19993 # Green Hills C++ Compiler
19994 lt_prog_compiler_pic_CXX='-pic'
19998 esac
20000 freebsd* | dragonfly*)
20001 # FreeBSD uses GNU C++
20003 hpux9* | hpux10* | hpux11*)
20004 case $cc_basename in
20005 CC*)
20006 lt_prog_compiler_wl_CXX='-Wl,'
20007 lt_prog_compiler_static_CXX='${wl}-a ${wl}archive'
20008 if test "$host_cpu" != ia64; then
20009 lt_prog_compiler_pic_CXX='+Z'
20012 aCC*)
20013 lt_prog_compiler_wl_CXX='-Wl,'
20014 lt_prog_compiler_static_CXX='${wl}-a ${wl}archive'
20015 case $host_cpu in
20016 hppa*64*|ia64*)
20017 # +Z the default
20020 lt_prog_compiler_pic_CXX='+Z'
20022 esac
20026 esac
20028 interix*)
20029 # This is c89, which is MS Visual C++ (no shared libs)
20030 # Anyone wants to do a port?
20032 irix5* | irix6* | nonstopux*)
20033 case $cc_basename in
20034 CC*)
20035 lt_prog_compiler_wl_CXX='-Wl,'
20036 lt_prog_compiler_static_CXX='-non_shared'
20037 # CC pic flag -KPIC is the default.
20041 esac
20043 linux* | k*bsd*-gnu | kopensolaris*-gnu)
20044 case $cc_basename in
20045 KCC*)
20046 # KAI C++ Compiler
20047 lt_prog_compiler_wl_CXX='--backend -Wl,'
20048 lt_prog_compiler_pic_CXX='-fPIC'
20050 ecpc* )
20051 # old Intel C++ for x86_64 which still supported -KPIC.
20052 lt_prog_compiler_wl_CXX='-Wl,'
20053 lt_prog_compiler_pic_CXX='-KPIC'
20054 lt_prog_compiler_static_CXX='-static'
20056 icpc* )
20057 # Intel C++, used to be incompatible with GCC.
20058 # ICC 10 doesn't accept -KPIC any more.
20059 lt_prog_compiler_wl_CXX='-Wl,'
20060 lt_prog_compiler_pic_CXX='-fPIC'
20061 lt_prog_compiler_static_CXX='-static'
20063 pgCC* | pgcpp*)
20064 # Portland Group C++ compiler
20065 lt_prog_compiler_wl_CXX='-Wl,'
20066 lt_prog_compiler_pic_CXX='-fpic'
20067 lt_prog_compiler_static_CXX='-Bstatic'
20069 cxx*)
20070 # Compaq C++
20071 # Make sure the PIC flag is empty. It appears that all Alpha
20072 # Linux and Compaq Tru64 Unix objects are PIC.
20073 lt_prog_compiler_pic_CXX=
20074 lt_prog_compiler_static_CXX='-non_shared'
20076 xlc* | xlC* | bgxl[cC]* | mpixl[cC]*)
20077 # IBM XL 8.0, 9.0 on PPC and BlueGene
20078 lt_prog_compiler_wl_CXX='-Wl,'
20079 lt_prog_compiler_pic_CXX='-qpic'
20080 lt_prog_compiler_static_CXX='-qstaticlink'
20083 case `$CC -V 2>&1 | sed 5q` in
20084 *Sun\ C*)
20085 # Sun C++ 5.9
20086 lt_prog_compiler_pic_CXX='-KPIC'
20087 lt_prog_compiler_static_CXX='-Bstatic'
20088 lt_prog_compiler_wl_CXX='-Qoption ld '
20090 esac
20092 esac
20094 lynxos*)
20096 m88k*)
20098 mvs*)
20099 case $cc_basename in
20100 cxx*)
20101 lt_prog_compiler_pic_CXX='-W c,exportall'
20105 esac
20107 netbsd*)
20109 *qnx* | *nto*)
20110 # QNX uses GNU C++, but need to define -shared option too, otherwise
20111 # it will coredump.
20112 lt_prog_compiler_pic_CXX='-fPIC -shared'
20114 osf3* | osf4* | osf5*)
20115 case $cc_basename in
20116 KCC*)
20117 lt_prog_compiler_wl_CXX='--backend -Wl,'
20119 RCC*)
20120 # Rational C++ 2.4.1
20121 lt_prog_compiler_pic_CXX='-pic'
20123 cxx*)
20124 # Digital/Compaq C++
20125 lt_prog_compiler_wl_CXX='-Wl,'
20126 # Make sure the PIC flag is empty. It appears that all Alpha
20127 # Linux and Compaq Tru64 Unix objects are PIC.
20128 lt_prog_compiler_pic_CXX=
20129 lt_prog_compiler_static_CXX='-non_shared'
20133 esac
20135 psos*)
20137 solaris*)
20138 case $cc_basename in
20139 CC*)
20140 # Sun C++ 4.2, 5.x and Centerline C++
20141 lt_prog_compiler_pic_CXX='-KPIC'
20142 lt_prog_compiler_static_CXX='-Bstatic'
20143 lt_prog_compiler_wl_CXX='-Qoption ld '
20145 gcx*)
20146 # Green Hills C++ Compiler
20147 lt_prog_compiler_pic_CXX='-PIC'
20151 esac
20153 sunos4*)
20154 case $cc_basename in
20155 CC*)
20156 # Sun C++ 4.x
20157 lt_prog_compiler_pic_CXX='-pic'
20158 lt_prog_compiler_static_CXX='-Bstatic'
20160 lcc*)
20161 # Lucid
20162 lt_prog_compiler_pic_CXX='-pic'
20166 esac
20168 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
20169 case $cc_basename in
20170 CC*)
20171 lt_prog_compiler_wl_CXX='-Wl,'
20172 lt_prog_compiler_pic_CXX='-KPIC'
20173 lt_prog_compiler_static_CXX='-Bstatic'
20175 esac
20177 tandem*)
20178 case $cc_basename in
20179 NCC*)
20180 # NonStop-UX NCC 3.20
20181 lt_prog_compiler_pic_CXX='-KPIC'
20185 esac
20187 vxworks*)
20190 lt_prog_compiler_can_build_shared_CXX=no
20192 esac
20195 case $host_os in
20196 # For platforms which do not support PIC, -DPIC is meaningless:
20197 *djgpp*)
20198 lt_prog_compiler_pic_CXX=
20201 lt_prog_compiler_pic_CXX="$lt_prog_compiler_pic_CXX -DPIC"
20203 esac
20204 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_prog_compiler_pic_CXX" >&5
20205 $as_echo "$lt_prog_compiler_pic_CXX" >&6; }
20210 # Check to make sure the PIC flag actually works.
20212 if test -n "$lt_prog_compiler_pic_CXX"; then
20213 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works" >&5
20214 $as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works... " >&6; }
20215 if test "${lt_cv_prog_compiler_pic_works_CXX+set}" = set; then :
20216 $as_echo_n "(cached) " >&6
20217 else
20218 lt_cv_prog_compiler_pic_works_CXX=no
20219 ac_outfile=conftest.$ac_objext
20220 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
20221 lt_compiler_flag="$lt_prog_compiler_pic_CXX -DPIC"
20222 # Insert the option either (1) after the last *FLAGS variable, or
20223 # (2) before a word containing "conftest.", or (3) at the end.
20224 # Note that $ac_compile itself does not contain backslashes and begins
20225 # with a dollar sign (not a hyphen), so the echo should work correctly.
20226 # The option is referenced via a variable to avoid confusing sed.
20227 lt_compile=`echo "$ac_compile" | $SED \
20228 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
20229 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
20230 -e 's:$: $lt_compiler_flag:'`
20231 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
20232 (eval "$lt_compile" 2>conftest.err)
20233 ac_status=$?
20234 cat conftest.err >&5
20235 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20236 if (exit $ac_status) && test -s "$ac_outfile"; then
20237 # The compiler can only warn and ignore the option if not recognized
20238 # So say no if there are warnings other than the usual output.
20239 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
20240 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
20241 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
20242 lt_cv_prog_compiler_pic_works_CXX=yes
20245 $RM conftest*
20248 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works_CXX" >&5
20249 $as_echo "$lt_cv_prog_compiler_pic_works_CXX" >&6; }
20251 if test x"$lt_cv_prog_compiler_pic_works_CXX" = xyes; then
20252 case $lt_prog_compiler_pic_CXX in
20253 "" | " "*) ;;
20254 *) lt_prog_compiler_pic_CXX=" $lt_prog_compiler_pic_CXX" ;;
20255 esac
20256 else
20257 lt_prog_compiler_pic_CXX=
20258 lt_prog_compiler_can_build_shared_CXX=no
20266 # Check to make sure the static flag actually works.
20268 wl=$lt_prog_compiler_wl_CXX eval lt_tmp_static_flag=\"$lt_prog_compiler_static_CXX\"
20269 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
20270 $as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
20271 if test "${lt_cv_prog_compiler_static_works_CXX+set}" = set; then :
20272 $as_echo_n "(cached) " >&6
20273 else
20274 lt_cv_prog_compiler_static_works_CXX=no
20275 save_LDFLAGS="$LDFLAGS"
20276 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
20277 echo "$lt_simple_link_test_code" > conftest.$ac_ext
20278 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
20279 # The linker can only warn and ignore the option if not recognized
20280 # So say no if there are warnings
20281 if test -s conftest.err; then
20282 # Append any errors to the config.log.
20283 cat conftest.err 1>&5
20284 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
20285 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
20286 if diff conftest.exp conftest.er2 >/dev/null; then
20287 lt_cv_prog_compiler_static_works_CXX=yes
20289 else
20290 lt_cv_prog_compiler_static_works_CXX=yes
20293 $RM -r conftest*
20294 LDFLAGS="$save_LDFLAGS"
20297 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works_CXX" >&5
20298 $as_echo "$lt_cv_prog_compiler_static_works_CXX" >&6; }
20300 if test x"$lt_cv_prog_compiler_static_works_CXX" = xyes; then
20302 else
20303 lt_prog_compiler_static_CXX=
20309 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
20310 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
20311 if test "${lt_cv_prog_compiler_c_o_CXX+set}" = set; then :
20312 $as_echo_n "(cached) " >&6
20313 else
20314 lt_cv_prog_compiler_c_o_CXX=no
20315 $RM -r conftest 2>/dev/null
20316 mkdir conftest
20317 cd conftest
20318 mkdir out
20319 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
20321 lt_compiler_flag="-o out/conftest2.$ac_objext"
20322 # Insert the option either (1) after the last *FLAGS variable, or
20323 # (2) before a word containing "conftest.", or (3) at the end.
20324 # Note that $ac_compile itself does not contain backslashes and begins
20325 # with a dollar sign (not a hyphen), so the echo should work correctly.
20326 lt_compile=`echo "$ac_compile" | $SED \
20327 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
20328 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
20329 -e 's:$: $lt_compiler_flag:'`
20330 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
20331 (eval "$lt_compile" 2>out/conftest.err)
20332 ac_status=$?
20333 cat out/conftest.err >&5
20334 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20335 if (exit $ac_status) && test -s out/conftest2.$ac_objext
20336 then
20337 # The compiler can only warn and ignore the option if not recognized
20338 # So say no if there are warnings
20339 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
20340 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
20341 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
20342 lt_cv_prog_compiler_c_o_CXX=yes
20345 chmod u+w . 2>&5
20346 $RM conftest*
20347 # SGI C++ compiler will create directory out/ii_files/ for
20348 # template instantiation
20349 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
20350 $RM out/* && rmdir out
20351 cd ..
20352 $RM -r conftest
20353 $RM conftest*
20356 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o_CXX" >&5
20357 $as_echo "$lt_cv_prog_compiler_c_o_CXX" >&6; }
20361 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
20362 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
20363 if test "${lt_cv_prog_compiler_c_o_CXX+set}" = set; then :
20364 $as_echo_n "(cached) " >&6
20365 else
20366 lt_cv_prog_compiler_c_o_CXX=no
20367 $RM -r conftest 2>/dev/null
20368 mkdir conftest
20369 cd conftest
20370 mkdir out
20371 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
20373 lt_compiler_flag="-o out/conftest2.$ac_objext"
20374 # Insert the option either (1) after the last *FLAGS variable, or
20375 # (2) before a word containing "conftest.", or (3) at the end.
20376 # Note that $ac_compile itself does not contain backslashes and begins
20377 # with a dollar sign (not a hyphen), so the echo should work correctly.
20378 lt_compile=`echo "$ac_compile" | $SED \
20379 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
20380 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
20381 -e 's:$: $lt_compiler_flag:'`
20382 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
20383 (eval "$lt_compile" 2>out/conftest.err)
20384 ac_status=$?
20385 cat out/conftest.err >&5
20386 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20387 if (exit $ac_status) && test -s out/conftest2.$ac_objext
20388 then
20389 # The compiler can only warn and ignore the option if not recognized
20390 # So say no if there are warnings
20391 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
20392 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
20393 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
20394 lt_cv_prog_compiler_c_o_CXX=yes
20397 chmod u+w . 2>&5
20398 $RM conftest*
20399 # SGI C++ compiler will create directory out/ii_files/ for
20400 # template instantiation
20401 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
20402 $RM out/* && rmdir out
20403 cd ..
20404 $RM -r conftest
20405 $RM conftest*
20408 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o_CXX" >&5
20409 $as_echo "$lt_cv_prog_compiler_c_o_CXX" >&6; }
20414 hard_links="nottested"
20415 if test "$lt_cv_prog_compiler_c_o_CXX" = no && test "$need_locks" != no; then
20416 # do not overwrite the value of need_locks provided by the user
20417 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
20418 $as_echo_n "checking if we can lock with hard links... " >&6; }
20419 hard_links=yes
20420 $RM conftest*
20421 ln conftest.a conftest.b 2>/dev/null && hard_links=no
20422 touch conftest.a
20423 ln conftest.a conftest.b 2>&5 || hard_links=no
20424 ln conftest.a conftest.b 2>/dev/null && hard_links=no
20425 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
20426 $as_echo "$hard_links" >&6; }
20427 if test "$hard_links" = no; then
20428 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
20429 $as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
20430 need_locks=warn
20432 else
20433 need_locks=no
20438 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
20439 $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
20441 export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
20442 case $host_os in
20443 aix[4-9]*)
20444 # If we're using GNU nm, then we don't want the "-C" option.
20445 # -C means demangle to AIX nm, but means don't demangle with GNU nm
20446 # Also, AIX nm treats weak defined symbols like other global defined
20447 # symbols, whereas GNU nm marks them as "W".
20448 if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
20449 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'
20450 else
20451 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'
20454 pw32*)
20455 export_symbols_cmds_CXX="$ltdll_cmds"
20457 cygwin* | mingw* | cegcc*)
20458 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'
20461 export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
20463 esac
20464 exclude_expsyms_CXX='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
20466 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs_CXX" >&5
20467 $as_echo "$ld_shlibs_CXX" >&6; }
20468 test "$ld_shlibs_CXX" = no && can_build_shared=no
20470 with_gnu_ld_CXX=$with_gnu_ld
20478 # Do we need to explicitly link libc?
20480 case "x$archive_cmds_need_lc_CXX" in
20481 x|xyes)
20482 # Assume -lc should be added
20483 archive_cmds_need_lc_CXX=yes
20485 if test "$enable_shared" = yes && test "$GCC" = yes; then
20486 case $archive_cmds_CXX in
20487 *'~'*)
20488 # FIXME: we may have to deal with multi-command sequences.
20490 '$CC '*)
20491 # Test whether the compiler implicitly links with -lc since on some
20492 # systems, -lgcc has to come before -lc. If gcc already passes -lc
20493 # to ld, don't add -lc before -lgcc.
20494 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
20495 $as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
20496 if test "${lt_cv_archive_cmds_need_lc_CXX+set}" = set; then :
20497 $as_echo_n "(cached) " >&6
20498 else
20499 $RM conftest*
20500 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
20502 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
20503 (eval $ac_compile) 2>&5
20504 ac_status=$?
20505 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
20506 test $ac_status = 0; } 2>conftest.err; then
20507 soname=conftest
20508 lib=conftest
20509 libobjs=conftest.$ac_objext
20510 deplibs=
20511 wl=$lt_prog_compiler_wl_CXX
20512 pic_flag=$lt_prog_compiler_pic_CXX
20513 compiler_flags=-v
20514 linker_flags=-v
20515 verstring=
20516 output_objdir=.
20517 libname=conftest
20518 lt_save_allow_undefined_flag=$allow_undefined_flag_CXX
20519 allow_undefined_flag_CXX=
20520 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds_CXX 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5
20521 (eval $archive_cmds_CXX 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
20522 ac_status=$?
20523 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
20524 test $ac_status = 0; }
20525 then
20526 lt_cv_archive_cmds_need_lc_CXX=no
20527 else
20528 lt_cv_archive_cmds_need_lc_CXX=yes
20530 allow_undefined_flag_CXX=$lt_save_allow_undefined_flag
20531 else
20532 cat conftest.err 1>&5
20534 $RM conftest*
20537 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc_CXX" >&5
20538 $as_echo "$lt_cv_archive_cmds_need_lc_CXX" >&6; }
20539 archive_cmds_need_lc_CXX=$lt_cv_archive_cmds_need_lc_CXX
20541 esac
20544 esac
20609 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
20610 $as_echo_n "checking dynamic linker characteristics... " >&6; }
20612 library_names_spec=
20613 libname_spec='lib$name'
20614 soname_spec=
20615 shrext_cmds=".so"
20616 postinstall_cmds=
20617 postuninstall_cmds=
20618 finish_cmds=
20619 finish_eval=
20620 shlibpath_var=
20621 shlibpath_overrides_runpath=unknown
20622 version_type=none
20623 dynamic_linker="$host_os ld.so"
20624 sys_lib_dlsearch_path_spec="/lib /usr/lib"
20625 need_lib_prefix=unknown
20626 hardcode_into_libs=no
20628 # when you set need_version to no, make sure it does not cause -set_version
20629 # flags to be left without arguments
20630 need_version=unknown
20632 case $host_os in
20633 aix3*)
20634 version_type=linux
20635 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
20636 shlibpath_var=LIBPATH
20638 # AIX 3 has no versioning support, so we append a major version to the name.
20639 soname_spec='${libname}${release}${shared_ext}$major'
20642 aix[4-9]*)
20643 version_type=linux
20644 need_lib_prefix=no
20645 need_version=no
20646 hardcode_into_libs=yes
20647 if test "$host_cpu" = ia64; then
20648 # AIX 5 supports IA64
20649 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
20650 shlibpath_var=LD_LIBRARY_PATH
20651 else
20652 # With GCC up to 2.95.x, collect2 would create an import file
20653 # for dependence libraries. The import file would start with
20654 # the line `#! .'. This would cause the generated library to
20655 # depend on `.', always an invalid library. This was fixed in
20656 # development snapshots of GCC prior to 3.0.
20657 case $host_os in
20658 aix4 | aix4.[01] | aix4.[01].*)
20659 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
20660 echo ' yes '
20661 echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then
20663 else
20664 can_build_shared=no
20667 esac
20668 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
20669 # soname into executable. Probably we can add versioning support to
20670 # collect2, so additional links can be useful in future.
20671 if test "$aix_use_runtimelinking" = yes; then
20672 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
20673 # instead of lib<name>.a to let people know that these are not
20674 # typical AIX shared libraries.
20675 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20676 else
20677 # We preserve .a as extension for shared libraries through AIX4.2
20678 # and later when we are not doing run time linking.
20679 library_names_spec='${libname}${release}.a $libname.a'
20680 soname_spec='${libname}${release}${shared_ext}$major'
20682 shlibpath_var=LIBPATH
20686 amigaos*)
20687 case $host_cpu in
20688 powerpc)
20689 # Since July 2007 AmigaOS4 officially supports .so libraries.
20690 # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
20691 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20693 m68k)
20694 library_names_spec='$libname.ixlibrary $libname.a'
20695 # Create ${libname}_ixlibrary.a entries in /sys/libs.
20696 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'
20698 esac
20701 beos*)
20702 library_names_spec='${libname}${shared_ext}'
20703 dynamic_linker="$host_os ld.so"
20704 shlibpath_var=LIBRARY_PATH
20707 bsdi[45]*)
20708 version_type=linux
20709 need_version=no
20710 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20711 soname_spec='${libname}${release}${shared_ext}$major'
20712 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
20713 shlibpath_var=LD_LIBRARY_PATH
20714 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
20715 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
20716 # the default ld.so.conf also contains /usr/contrib/lib and
20717 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
20718 # libtool to hard-code these into programs
20721 cygwin* | mingw* | pw32* | cegcc*)
20722 version_type=windows
20723 shrext_cmds=".dll"
20724 need_version=no
20725 need_lib_prefix=no
20727 case $GCC,$host_os in
20728 yes,cygwin* | yes,mingw* | yes,pw32* | yes,cegcc*)
20729 library_names_spec='$libname.dll.a'
20730 # DLL is installed to $(libdir)/../bin by postinstall_cmds
20731 postinstall_cmds='base_file=`basename \${file}`~
20732 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
20733 dldir=$destdir/`dirname \$dlpath`~
20734 test -d \$dldir || mkdir -p \$dldir~
20735 $install_prog $dir/$dlname \$dldir/$dlname~
20736 chmod a+x \$dldir/$dlname~
20737 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
20738 eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
20740 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
20741 dlpath=$dir/\$dldll~
20742 $RM \$dlpath'
20743 shlibpath_overrides_runpath=yes
20745 case $host_os in
20746 cygwin*)
20747 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
20748 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
20751 mingw* | cegcc*)
20752 # MinGW DLLs use traditional 'lib' prefix
20753 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
20755 pw32*)
20756 # pw32 DLLs use 'pw' prefix rather than 'lib'
20757 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
20759 esac
20763 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
20765 esac
20766 dynamic_linker='Win32 ld.exe'
20767 # FIXME: first we should search . and the directory the executable is in
20768 shlibpath_var=PATH
20771 darwin* | rhapsody*)
20772 dynamic_linker="$host_os dyld"
20773 version_type=darwin
20774 need_lib_prefix=no
20775 need_version=no
20776 library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext'
20777 soname_spec='${libname}${release}${major}$shared_ext'
20778 shlibpath_overrides_runpath=yes
20779 shlibpath_var=DYLD_LIBRARY_PATH
20780 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
20782 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
20785 dgux*)
20786 version_type=linux
20787 need_lib_prefix=no
20788 need_version=no
20789 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
20790 soname_spec='${libname}${release}${shared_ext}$major'
20791 shlibpath_var=LD_LIBRARY_PATH
20794 freebsd* | dragonfly*)
20795 # DragonFly does not have aout. When/if they implement a new
20796 # versioning mechanism, adjust this.
20797 if test -x /usr/bin/objformat; then
20798 objformat=`/usr/bin/objformat`
20799 else
20800 case $host_os in
20801 freebsd[23].*) objformat=aout ;;
20802 *) objformat=elf ;;
20803 esac
20805 version_type=freebsd-$objformat
20806 case $version_type in
20807 freebsd-elf*)
20808 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
20809 need_version=no
20810 need_lib_prefix=no
20812 freebsd-*)
20813 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
20814 need_version=yes
20816 esac
20817 shlibpath_var=LD_LIBRARY_PATH
20818 case $host_os in
20819 freebsd2.*)
20820 shlibpath_overrides_runpath=yes
20822 freebsd3.[01]* | freebsdelf3.[01]*)
20823 shlibpath_overrides_runpath=yes
20824 hardcode_into_libs=yes
20826 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
20827 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
20828 shlibpath_overrides_runpath=no
20829 hardcode_into_libs=yes
20831 *) # from 4.6 on, and DragonFly
20832 shlibpath_overrides_runpath=yes
20833 hardcode_into_libs=yes
20835 esac
20838 gnu*)
20839 version_type=linux
20840 need_lib_prefix=no
20841 need_version=no
20842 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
20843 soname_spec='${libname}${release}${shared_ext}$major'
20844 shlibpath_var=LD_LIBRARY_PATH
20845 hardcode_into_libs=yes
20848 haiku*)
20849 version_type=linux
20850 need_lib_prefix=no
20851 need_version=no
20852 dynamic_linker="$host_os runtime_loader"
20853 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
20854 soname_spec='${libname}${release}${shared_ext}$major'
20855 shlibpath_var=LIBRARY_PATH
20856 shlibpath_overrides_runpath=yes
20857 sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/beos/system/lib'
20858 hardcode_into_libs=yes
20861 hpux9* | hpux10* | hpux11*)
20862 # Give a soname corresponding to the major version so that dld.sl refuses to
20863 # link against other versions.
20864 version_type=sunos
20865 need_lib_prefix=no
20866 need_version=no
20867 case $host_cpu in
20868 ia64*)
20869 shrext_cmds='.so'
20870 hardcode_into_libs=yes
20871 dynamic_linker="$host_os dld.so"
20872 shlibpath_var=LD_LIBRARY_PATH
20873 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
20874 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20875 soname_spec='${libname}${release}${shared_ext}$major'
20876 if test "X$HPUX_IA64_MODE" = X32; then
20877 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
20878 else
20879 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
20881 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
20883 hppa*64*)
20884 shrext_cmds='.sl'
20885 hardcode_into_libs=yes
20886 dynamic_linker="$host_os dld.sl"
20887 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
20888 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
20889 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20890 soname_spec='${libname}${release}${shared_ext}$major'
20891 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
20892 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
20895 shrext_cmds='.sl'
20896 dynamic_linker="$host_os dld.sl"
20897 shlibpath_var=SHLIB_PATH
20898 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
20899 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20900 soname_spec='${libname}${release}${shared_ext}$major'
20902 esac
20903 # HP-UX runs *really* slowly unless shared libraries are mode 555, ...
20904 postinstall_cmds='chmod 555 $lib'
20905 # or fails outright, so override atomically:
20906 install_override_mode=555
20909 interix[3-9]*)
20910 version_type=linux
20911 need_lib_prefix=no
20912 need_version=no
20913 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
20914 soname_spec='${libname}${release}${shared_ext}$major'
20915 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
20916 shlibpath_var=LD_LIBRARY_PATH
20917 shlibpath_overrides_runpath=no
20918 hardcode_into_libs=yes
20921 irix5* | irix6* | nonstopux*)
20922 case $host_os in
20923 nonstopux*) version_type=nonstopux ;;
20925 if test "$lt_cv_prog_gnu_ld" = yes; then
20926 version_type=linux
20927 else
20928 version_type=irix
20929 fi ;;
20930 esac
20931 need_lib_prefix=no
20932 need_version=no
20933 soname_spec='${libname}${release}${shared_ext}$major'
20934 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
20935 case $host_os in
20936 irix5* | nonstopux*)
20937 libsuff= shlibsuff=
20940 case $LD in # libtool.m4 will add one of these switches to LD
20941 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
20942 libsuff= shlibsuff= libmagic=32-bit;;
20943 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
20944 libsuff=32 shlibsuff=N32 libmagic=N32;;
20945 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
20946 libsuff=64 shlibsuff=64 libmagic=64-bit;;
20947 *) libsuff= shlibsuff= libmagic=never-match;;
20948 esac
20950 esac
20951 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
20952 shlibpath_overrides_runpath=no
20953 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
20954 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
20955 hardcode_into_libs=yes
20958 # No shared lib support for Linux oldld, aout, or coff.
20959 linux*oldld* | linux*aout* | linux*coff*)
20960 dynamic_linker=no
20963 # This must be Linux ELF.
20964 linux* | k*bsd*-gnu | kopensolaris*-gnu)
20965 version_type=linux
20966 need_lib_prefix=no
20967 need_version=no
20968 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20969 soname_spec='${libname}${release}${shared_ext}$major'
20970 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
20971 shlibpath_var=LD_LIBRARY_PATH
20972 shlibpath_overrides_runpath=no
20974 # Some binutils ld are patched to set DT_RUNPATH
20975 if test "${lt_cv_shlibpath_overrides_runpath+set}" = set; then :
20976 $as_echo_n "(cached) " >&6
20977 else
20978 lt_cv_shlibpath_overrides_runpath=no
20979 save_LDFLAGS=$LDFLAGS
20980 save_libdir=$libdir
20981 eval "libdir=/foo; wl=\"$lt_prog_compiler_wl_CXX\"; \
20982 LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec_CXX\""
20983 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20984 /* end confdefs.h. */
20987 main ()
20991 return 0;
20993 _ACEOF
20994 if ac_fn_cxx_try_link "$LINENO"; then :
20995 if ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then :
20996 lt_cv_shlibpath_overrides_runpath=yes
20999 rm -f core conftest.err conftest.$ac_objext \
21000 conftest$ac_exeext conftest.$ac_ext
21001 LDFLAGS=$save_LDFLAGS
21002 libdir=$save_libdir
21006 shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath
21008 # This implies no fast_install, which is unacceptable.
21009 # Some rework will be needed to allow for fast_install
21010 # before this can be enabled.
21011 hardcode_into_libs=yes
21013 # Append ld.so.conf contents to the search path
21014 if test -f /etc/ld.so.conf; then
21015 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' ' '`
21016 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
21019 # We used to test for /lib/ld.so.1 and disable shared libraries on
21020 # powerpc, because MkLinux only supported shared libraries with the
21021 # GNU dynamic linker. Since this was broken with cross compilers,
21022 # most powerpc-linux boxes support dynamic linking these days and
21023 # people can always --disable-shared, the test was removed, and we
21024 # assume the GNU/Linux dynamic linker is in use.
21025 dynamic_linker='GNU/Linux ld.so'
21028 netbsd*)
21029 version_type=sunos
21030 need_lib_prefix=no
21031 need_version=no
21032 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
21033 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
21034 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
21035 dynamic_linker='NetBSD (a.out) ld.so'
21036 else
21037 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
21038 soname_spec='${libname}${release}${shared_ext}$major'
21039 dynamic_linker='NetBSD ld.elf_so'
21041 shlibpath_var=LD_LIBRARY_PATH
21042 shlibpath_overrides_runpath=yes
21043 hardcode_into_libs=yes
21046 newsos6)
21047 version_type=linux
21048 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
21049 shlibpath_var=LD_LIBRARY_PATH
21050 shlibpath_overrides_runpath=yes
21053 *nto* | *qnx*)
21054 version_type=qnx
21055 need_lib_prefix=no
21056 need_version=no
21057 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
21058 soname_spec='${libname}${release}${shared_ext}$major'
21059 shlibpath_var=LD_LIBRARY_PATH
21060 shlibpath_overrides_runpath=no
21061 hardcode_into_libs=yes
21062 dynamic_linker='ldqnx.so'
21065 openbsd*)
21066 version_type=sunos
21067 sys_lib_dlsearch_path_spec="/usr/lib"
21068 need_lib_prefix=no
21069 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
21070 case $host_os in
21071 openbsd3.3 | openbsd3.3.*) need_version=yes ;;
21072 *) need_version=no ;;
21073 esac
21074 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
21075 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
21076 shlibpath_var=LD_LIBRARY_PATH
21077 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
21078 case $host_os in
21079 openbsd2.[89] | openbsd2.[89].*)
21080 shlibpath_overrides_runpath=no
21083 shlibpath_overrides_runpath=yes
21085 esac
21086 else
21087 shlibpath_overrides_runpath=yes
21091 os2*)
21092 libname_spec='$name'
21093 shrext_cmds=".dll"
21094 need_lib_prefix=no
21095 library_names_spec='$libname${shared_ext} $libname.a'
21096 dynamic_linker='OS/2 ld.exe'
21097 shlibpath_var=LIBPATH
21100 osf3* | osf4* | osf5*)
21101 version_type=osf
21102 need_lib_prefix=no
21103 need_version=no
21104 soname_spec='${libname}${release}${shared_ext}$major'
21105 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
21106 shlibpath_var=LD_LIBRARY_PATH
21107 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
21108 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
21111 rdos*)
21112 dynamic_linker=no
21115 solaris*)
21116 version_type=linux
21117 need_lib_prefix=no
21118 need_version=no
21119 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
21120 soname_spec='${libname}${release}${shared_ext}$major'
21121 shlibpath_var=LD_LIBRARY_PATH
21122 shlibpath_overrides_runpath=yes
21123 hardcode_into_libs=yes
21124 # ldd complains unless libraries are executable
21125 postinstall_cmds='chmod +x $lib'
21128 sunos4*)
21129 version_type=sunos
21130 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
21131 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
21132 shlibpath_var=LD_LIBRARY_PATH
21133 shlibpath_overrides_runpath=yes
21134 if test "$with_gnu_ld" = yes; then
21135 need_lib_prefix=no
21137 need_version=yes
21140 sysv4 | sysv4.3*)
21141 version_type=linux
21142 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
21143 soname_spec='${libname}${release}${shared_ext}$major'
21144 shlibpath_var=LD_LIBRARY_PATH
21145 case $host_vendor in
21146 sni)
21147 shlibpath_overrides_runpath=no
21148 need_lib_prefix=no
21149 runpath_var=LD_RUN_PATH
21151 siemens)
21152 need_lib_prefix=no
21154 motorola)
21155 need_lib_prefix=no
21156 need_version=no
21157 shlibpath_overrides_runpath=no
21158 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
21160 esac
21163 sysv4*MP*)
21164 if test -d /usr/nec ;then
21165 version_type=linux
21166 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
21167 soname_spec='$libname${shared_ext}.$major'
21168 shlibpath_var=LD_LIBRARY_PATH
21172 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
21173 version_type=freebsd-elf
21174 need_lib_prefix=no
21175 need_version=no
21176 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
21177 soname_spec='${libname}${release}${shared_ext}$major'
21178 shlibpath_var=LD_LIBRARY_PATH
21179 shlibpath_overrides_runpath=yes
21180 hardcode_into_libs=yes
21181 if test "$with_gnu_ld" = yes; then
21182 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
21183 else
21184 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
21185 case $host_os in
21186 sco3.2v5*)
21187 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
21189 esac
21191 sys_lib_dlsearch_path_spec='/usr/lib'
21194 tpf*)
21195 # TPF is a cross-target only. Preferred cross-host = GNU/Linux.
21196 version_type=linux
21197 need_lib_prefix=no
21198 need_version=no
21199 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
21200 shlibpath_var=LD_LIBRARY_PATH
21201 shlibpath_overrides_runpath=no
21202 hardcode_into_libs=yes
21205 uts4*)
21206 version_type=linux
21207 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
21208 soname_spec='${libname}${release}${shared_ext}$major'
21209 shlibpath_var=LD_LIBRARY_PATH
21213 dynamic_linker=no
21215 esac
21216 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
21217 $as_echo "$dynamic_linker" >&6; }
21218 test "$dynamic_linker" = no && can_build_shared=no
21220 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
21221 if test "$GCC" = yes; then
21222 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
21225 if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
21226 sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
21228 if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
21229 sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
21269 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
21270 $as_echo_n "checking how to hardcode library paths into programs... " >&6; }
21271 hardcode_action_CXX=
21272 if test -n "$hardcode_libdir_flag_spec_CXX" ||
21273 test -n "$runpath_var_CXX" ||
21274 test "X$hardcode_automatic_CXX" = "Xyes" ; then
21276 # We can hardcode non-existent directories.
21277 if test "$hardcode_direct_CXX" != no &&
21278 # If the only mechanism to avoid hardcoding is shlibpath_var, we
21279 # have to relink, otherwise we might link with an installed library
21280 # when we should be linking with a yet-to-be-installed one
21281 ## test "$_LT_TAGVAR(hardcode_shlibpath_var, CXX)" != no &&
21282 test "$hardcode_minus_L_CXX" != no; then
21283 # Linking always hardcodes the temporary library directory.
21284 hardcode_action_CXX=relink
21285 else
21286 # We can link without hardcoding, and we can hardcode nonexisting dirs.
21287 hardcode_action_CXX=immediate
21289 else
21290 # We cannot hardcode anything, or else we can only hardcode existing
21291 # directories.
21292 hardcode_action_CXX=unsupported
21294 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action_CXX" >&5
21295 $as_echo "$hardcode_action_CXX" >&6; }
21297 if test "$hardcode_action_CXX" = relink ||
21298 test "$inherit_rpath_CXX" = yes; then
21299 # Fast installation is not supported
21300 enable_fast_install=no
21301 elif test "$shlibpath_overrides_runpath" = yes ||
21302 test "$enable_shared" = no; then
21303 # Fast installation is not necessary
21304 enable_fast_install=needless
21313 fi # test -n "$compiler"
21315 CC=$lt_save_CC
21316 LDCXX=$LD
21317 LD=$lt_save_LD
21318 GCC=$lt_save_GCC
21319 with_gnu_ld=$lt_save_with_gnu_ld
21320 lt_cv_path_LDCXX=$lt_cv_path_LD
21321 lt_cv_path_LD=$lt_save_path_LD
21322 lt_cv_prog_gnu_ldcxx=$lt_cv_prog_gnu_ld
21323 lt_cv_prog_gnu_ld=$lt_save_with_gnu_ld
21324 fi # test "$_lt_caught_CXX_error" != yes
21326 ac_ext=c
21327 ac_cpp='$CPP $CPPFLAGS'
21328 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
21329 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
21330 ac_compiler_gnu=$ac_cv_c_compiler_gnu
21347 # Only expand once:
21353 # Identify the assembler which will work hand-in-glove with the newly
21354 # built GCC, so that we can examine its features. This is the assembler
21355 # which will be driven by the driver program.
21357 # If build != host, and we aren't building gas in-tree, we identify a
21358 # build->target assembler and hope that it will have the same features
21359 # as the host->target assembler we'll be using.
21360 gcc_cv_gas_major_version=
21361 gcc_cv_gas_minor_version=
21362 gcc_cv_as_gas_srcdir=`echo $srcdir | sed -e 's,/gcc$,,'`/gas
21364 if test "${gcc_cv_as+set}" = set; then :
21366 else
21368 if test -x "$DEFAULT_ASSEMBLER"; then
21369 gcc_cv_as="$DEFAULT_ASSEMBLER"
21370 elif test -f $gcc_cv_as_gas_srcdir/configure.in \
21371 && test -f ../gas/Makefile \
21372 && test x$build = x$host; then
21373 gcc_cv_as=../gas/as-new$build_exeext
21374 elif test -x as$build_exeext; then
21375 # Build using assembler in the current directory.
21376 gcc_cv_as=./as$build_exeext
21377 elif ( set dummy $AS_FOR_TARGET; test -x $2 ); then
21378 gcc_cv_as="$AS_FOR_TARGET"
21379 else
21380 # Extract the first word of "$AS_FOR_TARGET", so it can be a program name with args.
21381 set dummy $AS_FOR_TARGET; ac_word=$2
21382 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
21383 $as_echo_n "checking for $ac_word... " >&6; }
21384 if test "${ac_cv_path_gcc_cv_as+set}" = set; then :
21385 $as_echo_n "(cached) " >&6
21386 else
21387 case $gcc_cv_as in
21388 [\\/]* | ?:[\\/]*)
21389 ac_cv_path_gcc_cv_as="$gcc_cv_as" # Let the user override the test with a path.
21392 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
21393 for as_dir in $PATH
21395 IFS=$as_save_IFS
21396 test -z "$as_dir" && as_dir=.
21397 for ac_exec_ext in '' $ac_executable_extensions; do
21398 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
21399 ac_cv_path_gcc_cv_as="$as_dir/$ac_word$ac_exec_ext"
21400 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
21401 break 2
21403 done
21404 done
21405 IFS=$as_save_IFS
21408 esac
21410 gcc_cv_as=$ac_cv_path_gcc_cv_as
21411 if test -n "$gcc_cv_as"; then
21412 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as" >&5
21413 $as_echo "$gcc_cv_as" >&6; }
21414 else
21415 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
21416 $as_echo "no" >&6; }
21423 ORIGINAL_AS_FOR_TARGET=$gcc_cv_as
21425 case "$ORIGINAL_AS_FOR_TARGET" in
21426 ./as | ./as$build_exeext) ;;
21427 *) ac_config_files="$ac_config_files as:exec-tool.in"
21429 esac
21431 { $as_echo "$as_me:${as_lineno-$LINENO}: checking what assembler to use" >&5
21432 $as_echo_n "checking what assembler to use... " >&6; }
21433 if test "$gcc_cv_as" = ../gas/as-new$build_exeext; then
21434 # Single tree build which includes gas. We want to prefer it
21435 # over whatever linker top-level may have detected, since
21436 # we'll use what we're building after installation anyway.
21437 { $as_echo "$as_me:${as_lineno-$LINENO}: result: newly built gas" >&5
21438 $as_echo "newly built gas" >&6; }
21439 in_tree_gas=yes
21440 gcc_cv_as_bfd_srcdir=`echo $srcdir | sed -e 's,/gcc$,,'`/bfd
21441 for f in $gcc_cv_as_bfd_srcdir/configure \
21442 $gcc_cv_as_gas_srcdir/configure \
21443 $gcc_cv_as_gas_srcdir/configure.in \
21444 $gcc_cv_as_gas_srcdir/Makefile.in ; do
21445 gcc_cv_gas_version=`sed -n -e 's/^[ ]*VERSION=[^0-9A-Za-z_]*\([0-9]*\.[0-9]*.*\)/VERSION=\1/p' < $f`
21446 if test x$gcc_cv_gas_version != x; then
21447 break
21449 done
21450 case $gcc_cv_gas_version in
21451 VERSION=[0-9]*) ;;
21452 *) as_fn_error "cannot find version of in-tree assembler" "$LINENO" 5;;
21453 esac
21454 gcc_cv_gas_major_version=`expr "$gcc_cv_gas_version" : "VERSION=\([0-9]*\)"`
21455 gcc_cv_gas_minor_version=`expr "$gcc_cv_gas_version" : "VERSION=[0-9]*\.\([0-9]*\)"`
21456 gcc_cv_gas_patch_version=`expr "$gcc_cv_gas_version" : "VERSION=[0-9]*\.[0-9]*\.\([0-9]*\)"`
21457 case $gcc_cv_gas_patch_version in
21458 "") gcc_cv_gas_patch_version="0" ;;
21459 esac
21460 gcc_cv_gas_vers=`expr \( \( $gcc_cv_gas_major_version \* 1000 \) \
21461 + $gcc_cv_gas_minor_version \) \* 1000 \
21462 + $gcc_cv_gas_patch_version`
21464 in_tree_gas_is_elf=no
21465 if grep 'obj_format = elf' ../gas/Makefile > /dev/null \
21466 || (grep 'obj_format = multi' ../gas/Makefile \
21467 && grep 'extra_objects =.* obj-elf' ../gas/Makefile) > /dev/null
21468 then
21469 in_tree_gas_is_elf=yes
21471 else
21472 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as" >&5
21473 $as_echo "$gcc_cv_as" >&6; }
21474 in_tree_gas=no
21477 default_ld=
21478 # Check whether --enable-ld was given.
21479 if test "${enable_ld+set}" = set; then :
21480 enableval=$enable_ld; case "${enableval}" in
21482 default_ld=ld.gold
21484 esac
21488 # Check whether --enable-gold was given.
21489 if test "${enable_gold+set}" = set; then :
21490 enableval=$enable_gold; case "${enableval}" in
21491 default)
21492 install_gold_as_default=yes
21494 yes)
21495 if test x${default_ld} != x; then
21496 install_gold_as_default=yes
21502 as_fn_error "invalid --enable-gold argument" "$LINENO" 5
21504 esac
21505 else
21506 install_gold_as_default=no
21510 # Identify the linker which will work hand-in-glove with the newly
21511 # built GCC, so that we can examine its features. This is the linker
21512 # which will be driven by the driver program.
21514 # If build != host, and we aren't building gas in-tree, we identify a
21515 # build->target linker and hope that it will have the same features
21516 # as the host->target linker we'll be using.
21517 gcc_cv_gld_major_version=
21518 gcc_cv_gld_minor_version=
21519 gcc_cv_ld_gld_srcdir=`echo $srcdir | sed -e 's,/gcc$,,'`/ld
21520 gcc_cv_ld_gold_srcdir=`echo $srcdir | sed -e 's,/gcc$,,'`/gold
21521 gcc_cv_ld_bfd_srcdir=`echo $srcdir | sed -e 's,/gcc$,,'`/bfd
21523 if test "${gcc_cv_ld+set}" = set; then :
21525 else
21527 if test -x "$DEFAULT_LINKER"; then
21528 gcc_cv_ld="$DEFAULT_LINKER"
21529 elif test $install_gold_as_default = yes \
21530 && test -f $gcc_cv_ld_gold_srcdir/configure.ac \
21531 && test -f ../gold/Makefile \
21532 && test x$build = x$host; then
21533 gcc_cv_ld=../gold/ld-new$build_exeext
21534 elif test -f $gcc_cv_ld_gld_srcdir/configure.in \
21535 && test -f ../ld/Makefile \
21536 && test x$build = x$host; then
21537 gcc_cv_ld=../ld/ld-new$build_exeext
21538 elif test -x collect-ld$build_exeext; then
21539 # Build using linker in the current directory.
21540 gcc_cv_ld=./collect-ld$build_exeext
21541 elif ( set dummy $LD_FOR_TARGET; test -x $2 ); then
21542 gcc_cv_ld="$LD_FOR_TARGET"
21543 else
21544 # Extract the first word of "$LD_FOR_TARGET", so it can be a program name with args.
21545 set dummy $LD_FOR_TARGET; ac_word=$2
21546 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
21547 $as_echo_n "checking for $ac_word... " >&6; }
21548 if test "${ac_cv_path_gcc_cv_ld+set}" = set; then :
21549 $as_echo_n "(cached) " >&6
21550 else
21551 case $gcc_cv_ld in
21552 [\\/]* | ?:[\\/]*)
21553 ac_cv_path_gcc_cv_ld="$gcc_cv_ld" # Let the user override the test with a path.
21556 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
21557 for as_dir in $PATH
21559 IFS=$as_save_IFS
21560 test -z "$as_dir" && as_dir=.
21561 for ac_exec_ext in '' $ac_executable_extensions; do
21562 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
21563 ac_cv_path_gcc_cv_ld="$as_dir/$ac_word$ac_exec_ext"
21564 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
21565 break 2
21567 done
21568 done
21569 IFS=$as_save_IFS
21572 esac
21574 gcc_cv_ld=$ac_cv_path_gcc_cv_ld
21575 if test -n "$gcc_cv_ld"; then
21576 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld" >&5
21577 $as_echo "$gcc_cv_ld" >&6; }
21578 else
21579 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
21580 $as_echo "no" >&6; }
21587 ORIGINAL_PLUGIN_LD_FOR_TARGET=$gcc_cv_ld
21588 PLUGIN_LD_SUFFIX=`basename $gcc_cv_ld | sed -e "s,$target_alias-,,"`
21589 # if the PLUGIN_LD is set ld-new, just have it as ld
21590 # as that is the installed named.
21591 if test x$PLUGIN_LD_SUFFIX = xld-new \
21592 || test x$PLUGIN_LD_SUFFIX = xcollect-ld ; then
21593 PLUGIN_LD_SUFFIX=ld
21596 # Check whether --with-plugin-ld was given.
21597 if test "${with_plugin_ld+set}" = set; then :
21598 withval=$with_plugin_ld; if test x"$withval" != x; then
21599 ORIGINAL_PLUGIN_LD_FOR_TARGET="$withval"
21600 PLUGIN_LD_SUFFIX=`echo $withval | sed -e "s,$target_alias-,,"`
21606 cat >>confdefs.h <<_ACEOF
21607 #define PLUGIN_LD_SUFFIX "$PLUGIN_LD_SUFFIX"
21608 _ACEOF
21611 # Check to see if we are using gold instead of ld
21612 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using gold" >&5
21613 $as_echo_n "checking whether we are using gold... " >&6; }
21614 ld_is_gold=no
21615 if test x$gcc_cv_ld != x; then
21616 if $gcc_cv_ld --version 2>/dev/null | sed 1q \
21617 | grep "GNU gold" > /dev/null; then
21618 ld_is_gold=yes
21621 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_is_gold" >&5
21622 $as_echo "$ld_is_gold" >&6; }
21624 ORIGINAL_LD_FOR_TARGET=$gcc_cv_ld
21626 case "$ORIGINAL_LD_FOR_TARGET" in
21627 ./collect-ld | ./collect-ld$build_exeext) ;;
21628 *) ac_config_files="$ac_config_files collect-ld:exec-tool.in"
21630 esac
21632 { $as_echo "$as_me:${as_lineno-$LINENO}: checking what linker to use" >&5
21633 $as_echo_n "checking what linker to use... " >&6; }
21634 if test "$gcc_cv_ld" = ../ld/ld-new$build_exeext \
21635 || test "$gcc_cv_ld" = ../gold/ld-new$build_exeext; then
21636 # Single tree build which includes ld. We want to prefer it
21637 # over whatever linker top-level may have detected, since
21638 # we'll use what we're building after installation anyway.
21639 { $as_echo "$as_me:${as_lineno-$LINENO}: result: newly built ld" >&5
21640 $as_echo "newly built ld" >&6; }
21641 in_tree_ld=yes
21642 in_tree_ld_is_elf=no
21643 if (grep 'EMUL = .*elf' ../ld/Makefile \
21644 || grep 'EMUL = .*linux' ../ld/Makefile \
21645 || grep 'EMUL = .*lynx' ../ld/Makefile) > /dev/null; then
21646 in_tree_ld_is_elf=yes
21647 elif test "$ld_is_gold" = yes; then
21648 in_tree_ld_is_elf=yes
21650 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
21652 gcc_cv_gld_version=`sed -n -e 's/^[ ]*VERSION=[^0-9A-Za-z_]*\([0-9]*\.[0-9]*.*\)/VERSION=\1/p' < $f`
21653 if test x$gcc_cv_gld_version != x; then
21654 break
21656 done
21657 case $gcc_cv_gld_version in
21658 VERSION=[0-9]*) ;;
21659 *) as_fn_error "cannot find version of in-tree linker" "$LINENO" 5 ;;
21660 esac
21661 gcc_cv_gld_major_version=`expr "$gcc_cv_gld_version" : "VERSION=\([0-9]*\)"`
21662 gcc_cv_gld_minor_version=`expr "$gcc_cv_gld_version" : "VERSION=[0-9]*\.\([0-9]*\)"`
21663 ORIGINAL_LD_BFD_FOR_TARGET=../ld/ld-new$build_exeext
21664 ORIGINAL_LD_GOLD_FOR_TARGET=../gold/ld-new$build_exeext
21665 else
21666 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld" >&5
21667 $as_echo "$gcc_cv_ld" >&6; }
21668 in_tree_ld=no
21669 gcc_cvs_ld_program=`dirname $gcc_cv_ld`/`basename $gcc_cv_ld $host_exeext`
21670 ORIGINAL_LD_BFD_FOR_TARGET=${gcc_cvs_ld_program}.bfd$host_exeext
21671 ORIGINAL_LD_GOLD_FOR_TARGET=${gcc_cvs_ld_program}.gold$host_exeext
21677 # Figure out what nm we will be using.
21678 gcc_cv_binutils_srcdir=`echo $srcdir | sed -e 's,/gcc$,,'`/binutils
21679 if test "${gcc_cv_nm+set}" = set; then :
21681 else
21683 if test -f $gcc_cv_binutils_srcdir/configure.in \
21684 && test -f ../binutils/Makefile \
21685 && test x$build = x$host; then
21686 gcc_cv_nm=../binutils/nm-new$build_exeext
21687 elif test -x nm$build_exeext; then
21688 gcc_cv_nm=./nm$build_exeext
21689 elif ( set dummy $NM_FOR_TARGET; test -x $2 ); then
21690 gcc_cv_nm="$NM_FOR_TARGET"
21691 else
21692 # Extract the first word of "$NM_FOR_TARGET", so it can be a program name with args.
21693 set dummy $NM_FOR_TARGET; ac_word=$2
21694 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
21695 $as_echo_n "checking for $ac_word... " >&6; }
21696 if test "${ac_cv_path_gcc_cv_nm+set}" = set; then :
21697 $as_echo_n "(cached) " >&6
21698 else
21699 case $gcc_cv_nm in
21700 [\\/]* | ?:[\\/]*)
21701 ac_cv_path_gcc_cv_nm="$gcc_cv_nm" # Let the user override the test with a path.
21704 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
21705 for as_dir in $PATH
21707 IFS=$as_save_IFS
21708 test -z "$as_dir" && as_dir=.
21709 for ac_exec_ext in '' $ac_executable_extensions; do
21710 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
21711 ac_cv_path_gcc_cv_nm="$as_dir/$ac_word$ac_exec_ext"
21712 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
21713 break 2
21715 done
21716 done
21717 IFS=$as_save_IFS
21720 esac
21722 gcc_cv_nm=$ac_cv_path_gcc_cv_nm
21723 if test -n "$gcc_cv_nm"; then
21724 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_nm" >&5
21725 $as_echo "$gcc_cv_nm" >&6; }
21726 else
21727 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
21728 $as_echo "no" >&6; }
21735 { $as_echo "$as_me:${as_lineno-$LINENO}: checking what nm to use" >&5
21736 $as_echo_n "checking what nm to use... " >&6; }
21737 if test "$gcc_cv_nm" = ../binutils/nm-new$build_exeext; then
21738 # Single tree build which includes binutils.
21739 { $as_echo "$as_me:${as_lineno-$LINENO}: result: newly built nm" >&5
21740 $as_echo "newly built nm" >&6; }
21741 in_tree_nm=yes
21742 else
21743 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_nm" >&5
21744 $as_echo "$gcc_cv_nm" >&6; }
21745 in_tree_nm=no
21748 ORIGINAL_NM_FOR_TARGET=$gcc_cv_nm
21750 case "$ORIGINAL_NM_FOR_TARGET" in
21751 ./nm | ./nm$build_exeext) ;;
21752 *) ac_config_files="$ac_config_files nm:exec-tool.in"
21754 esac
21757 # Figure out what objdump we will be using.
21758 if test "${gcc_cv_objdump+set}" = set; then :
21760 else
21762 if test -f $gcc_cv_binutils_srcdir/configure.in \
21763 && test -f ../binutils/Makefile \
21764 && test x$build = x$host; then
21765 # Single tree build which includes binutils.
21766 gcc_cv_objdump=../binutils/objdump$build_exeext
21767 elif test -x objdump$build_exeext; then
21768 gcc_cv_objdump=./objdump$build_exeext
21769 elif ( set dummy $OBJDUMP_FOR_TARGET; test -x $2 ); then
21770 gcc_cv_objdump="$OBJDUMP_FOR_TARGET"
21771 else
21772 # Extract the first word of "$OBJDUMP_FOR_TARGET", so it can be a program name with args.
21773 set dummy $OBJDUMP_FOR_TARGET; ac_word=$2
21774 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
21775 $as_echo_n "checking for $ac_word... " >&6; }
21776 if test "${ac_cv_path_gcc_cv_objdump+set}" = set; then :
21777 $as_echo_n "(cached) " >&6
21778 else
21779 case $gcc_cv_objdump in
21780 [\\/]* | ?:[\\/]*)
21781 ac_cv_path_gcc_cv_objdump="$gcc_cv_objdump" # Let the user override the test with a path.
21784 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
21785 for as_dir in $PATH
21787 IFS=$as_save_IFS
21788 test -z "$as_dir" && as_dir=.
21789 for ac_exec_ext in '' $ac_executable_extensions; do
21790 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
21791 ac_cv_path_gcc_cv_objdump="$as_dir/$ac_word$ac_exec_ext"
21792 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
21793 break 2
21795 done
21796 done
21797 IFS=$as_save_IFS
21800 esac
21802 gcc_cv_objdump=$ac_cv_path_gcc_cv_objdump
21803 if test -n "$gcc_cv_objdump"; then
21804 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_objdump" >&5
21805 $as_echo "$gcc_cv_objdump" >&6; }
21806 else
21807 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
21808 $as_echo "no" >&6; }
21815 { $as_echo "$as_me:${as_lineno-$LINENO}: checking what objdump to use" >&5
21816 $as_echo_n "checking what objdump to use... " >&6; }
21817 if test "$gcc_cv_objdump" = ../binutils/objdump$build_exeext; then
21818 # Single tree build which includes binutils.
21819 { $as_echo "$as_me:${as_lineno-$LINENO}: result: newly built objdump" >&5
21820 $as_echo "newly built objdump" >&6; }
21821 elif test x$gcc_cv_objdump = x; then
21822 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
21823 $as_echo "not found" >&6; }
21824 else
21825 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_objdump" >&5
21826 $as_echo "$gcc_cv_objdump" >&6; }
21829 # Figure out what readelf we will be using.
21830 if test "${gcc_cv_readelf+set}" = set; then :
21832 else
21834 if test -f $gcc_cv_binutils_srcdir/configure.in \
21835 && test -f ../binutils/Makefile \
21836 && test x$build = x$host; then
21837 # Single tree build which includes binutils.
21838 gcc_cv_readelf=../binutils/readelf$build_exeext
21839 elif test -x readelf$build_exeext; then
21840 gcc_cv_readelf=./readelf$build_exeext
21841 elif ( set dummy $READELF_FOR_TARGET; test -x $2 ); then
21842 gcc_cv_readelf="$READELF_FOR_TARGET"
21843 else
21844 # Extract the first word of "$READELF_FOR_TARGET", so it can be a program name with args.
21845 set dummy $READELF_FOR_TARGET; ac_word=$2
21846 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
21847 $as_echo_n "checking for $ac_word... " >&6; }
21848 if test "${ac_cv_path_gcc_cv_readelf+set}" = set; then :
21849 $as_echo_n "(cached) " >&6
21850 else
21851 case $gcc_cv_readelf in
21852 [\\/]* | ?:[\\/]*)
21853 ac_cv_path_gcc_cv_readelf="$gcc_cv_readelf" # Let the user override the test with a path.
21856 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
21857 for as_dir in $PATH
21859 IFS=$as_save_IFS
21860 test -z "$as_dir" && as_dir=.
21861 for ac_exec_ext in '' $ac_executable_extensions; do
21862 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
21863 ac_cv_path_gcc_cv_readelf="$as_dir/$ac_word$ac_exec_ext"
21864 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
21865 break 2
21867 done
21868 done
21869 IFS=$as_save_IFS
21872 esac
21874 gcc_cv_readelf=$ac_cv_path_gcc_cv_readelf
21875 if test -n "$gcc_cv_readelf"; then
21876 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_readelf" >&5
21877 $as_echo "$gcc_cv_readelf" >&6; }
21878 else
21879 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
21880 $as_echo "no" >&6; }
21887 { $as_echo "$as_me:${as_lineno-$LINENO}: checking what readelf to use" >&5
21888 $as_echo_n "checking what readelf to use... " >&6; }
21889 if test "$gcc_cv_readelf" = ../binutils/readelf$build_exeext; then
21890 # Single tree build which includes binutils.
21891 { $as_echo "$as_me:${as_lineno-$LINENO}: result: newly built readelf" >&5
21892 $as_echo "newly built readelf" >&6; }
21893 elif test x$gcc_cv_readelf = x; then
21894 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
21895 $as_echo "not found" >&6; }
21896 else
21897 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_readelf" >&5
21898 $as_echo "$gcc_cv_readelf" >&6; }
21901 # Figure out what assembler alignment features are present.
21902 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler flags" >&5
21903 $as_echo_n "checking assembler flags... " >&6; }
21904 if test "${gcc_cv_as_flags+set}" = set; then :
21905 $as_echo_n "(cached) " >&6
21906 else
21907 case "$target" in
21908 i[34567]86-*-linux*)
21909 gcc_cv_as_flags=--32
21911 x86_64-*-linux-gnux32)
21912 gcc_cv_as_flags=--x32
21914 x86_64-*-linux*)
21915 gcc_cv_as_flags=--64
21917 powerpc*-*-darwin*)
21918 gcc_cv_as_flags="-arch ppc"
21921 gcc_cv_as_flags=" "
21923 esac
21925 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_flags" >&5
21926 $as_echo "$gcc_cv_as_flags" >&6; }
21928 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .balign and .p2align" >&5
21929 $as_echo_n "checking assembler for .balign and .p2align... " >&6; }
21930 if test "${gcc_cv_as_balign_and_p2align+set}" = set; then :
21931 $as_echo_n "(cached) " >&6
21932 else
21933 gcc_cv_as_balign_and_p2align=no
21934 if test $in_tree_gas = yes; then
21935 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 6 \) \* 1000 + 0`
21936 then gcc_cv_as_balign_and_p2align=yes
21938 elif test x$gcc_cv_as != x; then
21939 $as_echo '.balign 4
21940 .p2align 2' > conftest.s
21941 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
21942 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
21943 (eval $ac_try) 2>&5
21944 ac_status=$?
21945 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
21946 test $ac_status = 0; }; }
21947 then
21948 gcc_cv_as_balign_and_p2align=yes
21949 else
21950 echo "configure: failed program was" >&5
21951 cat conftest.s >&5
21953 rm -f conftest.o conftest.s
21956 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_balign_and_p2align" >&5
21957 $as_echo "$gcc_cv_as_balign_and_p2align" >&6; }
21958 if test $gcc_cv_as_balign_and_p2align = yes; then
21960 $as_echo "#define HAVE_GAS_BALIGN_AND_P2ALIGN 1" >>confdefs.h
21964 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .p2align with maximum skip" >&5
21965 $as_echo_n "checking assembler for .p2align with maximum skip... " >&6; }
21966 if test "${gcc_cv_as_max_skip_p2align+set}" = set; then :
21967 $as_echo_n "(cached) " >&6
21968 else
21969 gcc_cv_as_max_skip_p2align=no
21970 if test $in_tree_gas = yes; then
21971 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 8 \) \* 1000 + 0`
21972 then gcc_cv_as_max_skip_p2align=yes
21974 elif test x$gcc_cv_as != x; then
21975 $as_echo '.p2align 4,,7' > conftest.s
21976 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
21977 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
21978 (eval $ac_try) 2>&5
21979 ac_status=$?
21980 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
21981 test $ac_status = 0; }; }
21982 then
21983 gcc_cv_as_max_skip_p2align=yes
21984 else
21985 echo "configure: failed program was" >&5
21986 cat conftest.s >&5
21988 rm -f conftest.o conftest.s
21991 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_max_skip_p2align" >&5
21992 $as_echo "$gcc_cv_as_max_skip_p2align" >&6; }
21993 if test $gcc_cv_as_max_skip_p2align = yes; then
21995 $as_echo "#define HAVE_GAS_MAX_SKIP_P2ALIGN 1" >>confdefs.h
21999 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .literal16" >&5
22000 $as_echo_n "checking assembler for .literal16... " >&6; }
22001 if test "${gcc_cv_as_literal16+set}" = set; then :
22002 $as_echo_n "(cached) " >&6
22003 else
22004 gcc_cv_as_literal16=no
22005 if test $in_tree_gas = yes; then
22006 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 8 \) \* 1000 + 0`
22007 then gcc_cv_as_literal16=yes
22009 elif test x$gcc_cv_as != x; then
22010 $as_echo '.literal16' > conftest.s
22011 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
22012 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
22013 (eval $ac_try) 2>&5
22014 ac_status=$?
22015 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
22016 test $ac_status = 0; }; }
22017 then
22018 gcc_cv_as_literal16=yes
22019 else
22020 echo "configure: failed program was" >&5
22021 cat conftest.s >&5
22023 rm -f conftest.o conftest.s
22026 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_literal16" >&5
22027 $as_echo "$gcc_cv_as_literal16" >&6; }
22028 if test $gcc_cv_as_literal16 = yes; then
22030 $as_echo "#define HAVE_GAS_LITERAL16 1" >>confdefs.h
22034 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for working .subsection -1" >&5
22035 $as_echo_n "checking assembler for working .subsection -1... " >&6; }
22036 if test "${gcc_cv_as_subsection_m1+set}" = set; then :
22037 $as_echo_n "(cached) " >&6
22038 else
22039 gcc_cv_as_subsection_m1=no
22040 if test $in_tree_gas = yes; then
22041 if test $in_tree_gas_is_elf = yes \
22042 && test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 9 \) \* 1000 + 0`
22043 then gcc_cv_as_subsection_m1=yes
22045 elif test x$gcc_cv_as != x; then
22046 $as_echo 'conftest_label1: .word 0
22047 .subsection -1
22048 conftest_label2: .word 0
22049 .previous' > conftest.s
22050 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
22051 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
22052 (eval $ac_try) 2>&5
22053 ac_status=$?
22054 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
22055 test $ac_status = 0; }; }
22056 then
22057 if test x$gcc_cv_nm != x; then
22058 $gcc_cv_nm conftest.o | grep conftest_label1 > conftest.nm1
22059 $gcc_cv_nm conftest.o | grep conftest_label2 | sed -e 's/label2/label1/' > conftest.nm2
22060 if cmp conftest.nm1 conftest.nm2 > /dev/null 2>&1
22061 then :
22062 else gcc_cv_as_subsection_m1=yes
22064 rm -f conftest.nm1 conftest.nm2
22066 else
22067 echo "configure: failed program was" >&5
22068 cat conftest.s >&5
22070 rm -f conftest.o conftest.s
22073 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_subsection_m1" >&5
22074 $as_echo "$gcc_cv_as_subsection_m1" >&6; }
22075 if test $gcc_cv_as_subsection_m1 = yes; then
22077 $as_echo "#define HAVE_GAS_SUBSECTION_ORDERING 1" >>confdefs.h
22081 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .weak" >&5
22082 $as_echo_n "checking assembler for .weak... " >&6; }
22083 if test "${gcc_cv_as_weak+set}" = set; then :
22084 $as_echo_n "(cached) " >&6
22085 else
22086 gcc_cv_as_weak=no
22087 if test $in_tree_gas = yes; then
22088 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 2 \) \* 1000 + 0`
22089 then gcc_cv_as_weak=yes
22091 elif test x$gcc_cv_as != x; then
22092 $as_echo ' .weak foobar' > conftest.s
22093 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
22094 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
22095 (eval $ac_try) 2>&5
22096 ac_status=$?
22097 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
22098 test $ac_status = 0; }; }
22099 then
22100 gcc_cv_as_weak=yes
22101 else
22102 echo "configure: failed program was" >&5
22103 cat conftest.s >&5
22105 rm -f conftest.o conftest.s
22108 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_weak" >&5
22109 $as_echo "$gcc_cv_as_weak" >&6; }
22110 if test $gcc_cv_as_weak = yes; then
22112 $as_echo "#define HAVE_GAS_WEAK 1" >>confdefs.h
22116 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .weakref" >&5
22117 $as_echo_n "checking assembler for .weakref... " >&6; }
22118 if test "${gcc_cv_as_weakref+set}" = set; then :
22119 $as_echo_n "(cached) " >&6
22120 else
22121 gcc_cv_as_weakref=no
22122 if test $in_tree_gas = yes; then
22123 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 17 \) \* 1000 + 0`
22124 then gcc_cv_as_weakref=yes
22126 elif test x$gcc_cv_as != x; then
22127 $as_echo ' .weakref foobar, barfnot' > conftest.s
22128 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
22129 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
22130 (eval $ac_try) 2>&5
22131 ac_status=$?
22132 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
22133 test $ac_status = 0; }; }
22134 then
22135 gcc_cv_as_weakref=yes
22136 else
22137 echo "configure: failed program was" >&5
22138 cat conftest.s >&5
22140 rm -f conftest.o conftest.s
22143 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_weakref" >&5
22144 $as_echo "$gcc_cv_as_weakref" >&6; }
22145 if test $gcc_cv_as_weakref = yes; then
22147 $as_echo "#define HAVE_GAS_WEAKREF 1" >>confdefs.h
22151 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .nsubspa comdat" >&5
22152 $as_echo_n "checking assembler for .nsubspa comdat... " >&6; }
22153 if test "${gcc_cv_as_nsubspa_comdat+set}" = set; then :
22154 $as_echo_n "(cached) " >&6
22155 else
22156 gcc_cv_as_nsubspa_comdat=no
22157 if test $in_tree_gas = yes; then
22158 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 15 \) \* 1000 + 91`
22159 then gcc_cv_as_nsubspa_comdat=yes
22161 elif test x$gcc_cv_as != x; then
22162 $as_echo ' .SPACE $TEXT$
22163 .NSUBSPA $CODE$,COMDAT' > conftest.s
22164 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
22165 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
22166 (eval $ac_try) 2>&5
22167 ac_status=$?
22168 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
22169 test $ac_status = 0; }; }
22170 then
22171 gcc_cv_as_nsubspa_comdat=yes
22172 else
22173 echo "configure: failed program was" >&5
22174 cat conftest.s >&5
22176 rm -f conftest.o conftest.s
22179 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_nsubspa_comdat" >&5
22180 $as_echo "$gcc_cv_as_nsubspa_comdat" >&6; }
22181 if test $gcc_cv_as_nsubspa_comdat = yes; then
22183 $as_echo "#define HAVE_GAS_NSUBSPA_COMDAT 1" >>confdefs.h
22187 # .hidden needs to be supported in both the assembler and the linker,
22188 # because GNU LD versions before 2.12.1 have buggy support for STV_HIDDEN.
22189 # This is irritatingly difficult to feature test for; we have to check the
22190 # date string after the version number. If we've got an in-tree
22191 # ld, we don't know its patchlevel version, so we set the baseline at 2.13
22192 # to be safe.
22193 # The gcc_GAS_CHECK_FEATURE call just sets a cache variable.
22194 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .hidden" >&5
22195 $as_echo_n "checking assembler for .hidden... " >&6; }
22196 if test "${gcc_cv_as_hidden+set}" = set; then :
22197 $as_echo_n "(cached) " >&6
22198 else
22199 gcc_cv_as_hidden=no
22200 if test $in_tree_gas = yes; then
22201 if test $in_tree_gas_is_elf = yes \
22202 && test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 13 \) \* 1000 + 0`
22203 then gcc_cv_as_hidden=yes
22205 elif test x$gcc_cv_as != x; then
22206 $as_echo ' .hidden foobar
22207 foobar:' > conftest.s
22208 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
22209 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
22210 (eval $ac_try) 2>&5
22211 ac_status=$?
22212 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
22213 test $ac_status = 0; }; }
22214 then
22216 # Solaris 9/x86 as incorrectly emits an alias for a hidden symbol with
22217 # STV_HIDDEN, so disable .hidden support if so.
22218 case "${target}" in
22219 i?86-*-solaris2* | x86_64-*-solaris2.1[0-9]*)
22220 if test x$gcc_cv_as != x && test x$gcc_cv_objdump != x; then
22221 cat > conftest.s <<EOF
22222 .globl hidden
22223 .hidden hidden
22224 hidden:
22225 .globl default
22226 .set default,hidden
22228 if $gcc_cv_as -o conftest.o conftest.s > /dev/null 2>&1 \
22229 && $gcc_cv_objdump -t conftest.o 2>/dev/null | \
22230 grep '\.hidden default' > /dev/null; then
22231 gcc_cv_as_hidden=no
22232 else
22233 gcc_cv_as_hidden=yes
22235 else
22236 # Assume bug is present if objdump is missing.
22237 gcc_cv_as_hidden=no
22241 gcc_cv_as_hidden=yes
22243 esac
22244 else
22245 echo "configure: failed program was" >&5
22246 cat conftest.s >&5
22248 rm -f conftest.o conftest.s
22251 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_hidden" >&5
22252 $as_echo "$gcc_cv_as_hidden" >&6; }
22254 case "${target}" in
22255 *-*-darwin*)
22256 # Darwin as has some visibility support, though with a different syntax.
22257 gcc_cv_as_hidden=yes
22259 esac
22261 # gnu_indirect_function type is an extension proposed at
22262 # http://groups.google/com/group/generic-abi/files. It allows dynamic runtime
22263 # selection of function implementation
22264 # Check whether --enable-gnu-indirect-function was given.
22265 if test "${enable_gnu_indirect_function+set}" = set; then :
22266 enableval=$enable_gnu_indirect_function; case $enable_gnu_indirect_function in
22267 yes | no) ;;
22268 *) as_fn_error "'$enable_gnu_indirect_function' is an invalid value for --enable-gnu-indirect-function.
22269 Valid choices are 'yes' and 'no'." "$LINENO" 5 ;;
22270 esac
22271 else
22272 enable_gnu_indirect_function="$default_gnu_indirect_function"
22276 gif=`if test x$enable_gnu_indirect_function = xyes; then echo 1; else echo 0; fi`
22278 cat >>confdefs.h <<_ACEOF
22279 #define HAVE_GNU_INDIRECT_FUNCTION $gif
22280 _ACEOF
22284 if test $in_tree_ld != yes ; then
22285 ld_ver=`$gcc_cv_ld --version 2>/dev/null | sed 1q`
22286 if echo "$ld_ver" | grep GNU > /dev/null; then
22287 if test x"$ld_is_gold" = xyes; then
22288 # GNU gold --version looks like this:
22290 # GNU gold (GNU Binutils 2.21.51.20110225) 1.11
22292 # We extract the binutils version which is more familiar and specific
22293 # than the gold version.
22294 ld_vers=`echo $ld_ver | sed -n \
22295 -e 's,^[^)]*[ ]\([0-9][0-9]*\.[0-9][0-9]*[^)]*\)) .*$,\1,p'`
22296 else
22297 # GNU ld --version looks like this:
22299 # GNU ld (GNU Binutils) 2.21.51.20110225
22300 ld_vers=`echo $ld_ver | sed -n \
22301 -e 's,^.*[ ]\([0-9][0-9]*\.[0-9][0-9]*.*\)$,\1,p'`
22303 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'`
22304 ld_vers_major=`expr "$ld_vers" : '\([0-9]*\)'`
22305 ld_vers_minor=`expr "$ld_vers" : '[0-9]*\.\([0-9]*\)'`
22306 ld_vers_patch=`expr "$ld_vers" : '[0-9]*\.[0-9]*\.\([0-9]*\)'`
22307 else
22308 case "${target}" in
22309 *-*-solaris2*)
22310 # See acinclude.m4 (gcc_SUN_LD_VERSION) for the version number
22311 # format.
22313 # Don't reuse gcc_gv_sun_ld_vers_* in case a linker other than
22314 # /usr/ccs/bin/ld has been configured.
22315 ld_ver=`$gcc_cv_ld -V 2>&1`
22316 if echo "$ld_ver" | grep 'Solaris Link Editors' > /dev/null; then
22317 ld_vers=`echo $ld_ver | sed -n \
22318 -e 's,^.*: 5\.[0-9][0-9]*-\([0-9]\.[0-9][0-9]*\).*$,\1,p'`
22319 ld_vers_major=`expr "$ld_vers" : '\([0-9]*\)'`
22320 ld_vers_minor=`expr "$ld_vers" : '[0-9]*\.\([0-9]*\)'`
22323 esac
22327 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker for .hidden support" >&5
22328 $as_echo_n "checking linker for .hidden support... " >&6; }
22329 if test "${gcc_cv_ld_hidden+set}" = set; then :
22330 $as_echo_n "(cached) " >&6
22331 else
22332 if test $in_tree_ld = yes ; then
22333 gcc_cv_ld_hidden=no
22334 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 \
22335 && test $in_tree_ld_is_elf = yes; then
22336 gcc_cv_ld_hidden=yes
22338 else
22339 gcc_cv_ld_hidden=yes
22340 if test x"$ld_is_gold" = xyes; then
22342 elif echo "$ld_ver" | grep GNU > /dev/null; then
22343 case "${target}" in
22344 mmix-knuth-mmixware)
22345 # The linker emits by default mmo, not ELF, so "no" is appropriate.
22346 gcc_cv_ld_hidden=no
22348 esac
22349 if test 0"$ld_date" -lt 20020404; then
22350 if test -n "$ld_date"; then
22351 # If there was date string, but was earlier than 2002-04-04, fail
22352 gcc_cv_ld_hidden=no
22353 elif test -z "$ld_vers"; then
22354 # If there was no date string nor ld version number, something is wrong
22355 gcc_cv_ld_hidden=no
22356 else
22357 test -z "$ld_vers_patch" && ld_vers_patch=0
22358 if test "$ld_vers_major" -lt 2; then
22359 gcc_cv_ld_hidden=no
22360 elif test "$ld_vers_major" -eq 2 -a "$ld_vers_minor" -lt 12; then
22361 gcc_cv_ld_hidden="no"
22362 elif test "$ld_vers_major" -eq 2 -a "$ld_vers_minor" -eq 12 -a "$ld_vers_patch" -eq 0; then
22363 gcc_cv_ld_hidden=no
22367 else
22368 case "${target}" in
22369 *-*-darwin*)
22370 # Darwin ld has some visibility support.
22371 gcc_cv_ld_hidden=yes
22373 hppa64*-*-hpux* | ia64*-*-hpux*)
22374 gcc_cv_ld_hidden=yes
22376 *-*-solaris2.9* | *-*-solaris2.1[0-9]*)
22377 # Support for .hidden in Sun ld appeared in Solaris 9 FCS, but
22378 # .symbolic was only added in Solaris 9 12/02.
22379 gcc_cv_ld_hidden=yes
22382 gcc_cv_ld_hidden=no
22384 esac
22388 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_hidden" >&5
22389 $as_echo "$gcc_cv_ld_hidden" >&6; }
22390 libgcc_visibility=no
22393 if test $gcc_cv_as_hidden = yes && test $gcc_cv_ld_hidden = yes; then
22394 libgcc_visibility=yes
22396 $as_echo "#define HAVE_GAS_HIDDEN 1" >>confdefs.h
22400 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker read-only and read-write section mixing" >&5
22401 $as_echo_n "checking linker read-only and read-write section mixing... " >&6; }
22402 gcc_cv_ld_ro_rw_mix=unknown
22403 if test $in_tree_ld = yes ; then
22404 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 \
22405 && test $in_tree_ld_is_elf = yes; then
22406 gcc_cv_ld_ro_rw_mix=read-write
22408 elif test x$gcc_cv_as != x -a x$gcc_cv_ld != x -a x$gcc_cv_objdump != x ; then
22409 echo '.section myfoosect, "a"' > conftest1.s
22410 echo '.section myfoosect, "aw"' > conftest2.s
22411 echo '.byte 1' >> conftest2.s
22412 echo '.section myfoosect, "a"' > conftest3.s
22413 echo '.byte 0' >> conftest3.s
22414 if $gcc_cv_as -o conftest1.o conftest1.s > /dev/null 2>&1 \
22415 && $gcc_cv_as -o conftest2.o conftest2.s > /dev/null 2>&1 \
22416 && $gcc_cv_as -o conftest3.o conftest3.s > /dev/null 2>&1 \
22417 && $gcc_cv_ld -shared -o conftest1.so conftest1.o \
22418 conftest2.o conftest3.o > /dev/null 2>&1; then
22419 gcc_cv_ld_ro_rw_mix=`$gcc_cv_objdump -h conftest1.so \
22420 | sed -e '/myfoosect/!d' -e N`
22421 if echo "$gcc_cv_ld_ro_rw_mix" | grep CONTENTS > /dev/null; then
22422 if echo "$gcc_cv_ld_ro_rw_mix" | grep READONLY > /dev/null; then
22423 gcc_cv_ld_ro_rw_mix=read-only
22424 else
22425 gcc_cv_ld_ro_rw_mix=read-write
22429 rm -f conftest.* conftest[123].*
22431 if test x$gcc_cv_ld_ro_rw_mix = xread-write; then
22433 $as_echo "#define HAVE_LD_RO_RW_SECTION_MIXING 1" >>confdefs.h
22436 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_ro_rw_mix" >&5
22437 $as_echo "$gcc_cv_ld_ro_rw_mix" >&6; }
22439 if test "x${build}" = "x${target}" && test "x${build}" = "x${host}"; then
22440 case "${target}" in
22441 *-*-solaris2*)
22443 # Solaris 2 ld -V output looks like this for a regular version:
22445 # ld: Software Generation Utilities - Solaris Link Editors: 5.11-1.1699
22447 # but test versions add stuff at the end:
22449 # ld: Software Generation Utilities - Solaris Link Editors: 5.11-1.1701:onnv-ab196087-6931056-03/25/10
22451 gcc_cv_sun_ld_ver=`/usr/ccs/bin/ld -V 2>&1`
22452 if echo "$gcc_cv_sun_ld_ver" | grep 'Solaris Link Editors' > /dev/null; then
22453 gcc_cv_sun_ld_vers=`echo $gcc_cv_sun_ld_ver | sed -n \
22454 -e 's,^.*: 5\.[0-9][0-9]*-\([0-9]\.[0-9][0-9]*\).*$,\1,p'`
22455 gcc_cv_sun_ld_vers_major=`expr "$gcc_cv_sun_ld_vers" : '\([0-9]*\)'`
22456 gcc_cv_sun_ld_vers_minor=`expr "$gcc_cv_sun_ld_vers" : '[0-9]*\.\([0-9]*\)'`
22459 esac
22462 # Check whether --enable-initfini-array was given.
22463 if test "${enable_initfini_array+set}" = set; then :
22464 enableval=$enable_initfini_array;
22465 else
22467 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for .preinit_array/.init_array/.fini_array support" >&5
22468 $as_echo_n "checking for .preinit_array/.init_array/.fini_array support... " >&6; }
22469 if test "${gcc_cv_initfini_array+set}" = set; then :
22470 $as_echo_n "(cached) " >&6
22471 else
22472 if test "x${build}" = "x${target}" && test "x${build}" = "x${host}"; then
22473 case "${target}" in
22474 ia64-*)
22475 if test "$cross_compiling" = yes; then :
22476 gcc_cv_initfini_array=no
22477 else
22478 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22479 /* end confdefs.h. */
22481 #ifndef __ELF__
22482 #error Not an ELF OS
22483 #endif
22484 /* We turn on .preinit_array/.init_array/.fini_array support for ia64
22485 if it can be used. */
22486 static int x = -1;
22487 int main (void) { return x; }
22488 int foo (void) { x = 0; }
22489 int (*fp) (void) __attribute__ ((section (".init_array"))) = foo;
22491 _ACEOF
22492 if ac_fn_c_try_run "$LINENO"; then :
22493 gcc_cv_initfini_array=yes
22494 else
22495 gcc_cv_initfini_array=no
22497 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
22498 conftest.$ac_objext conftest.beam conftest.$ac_ext
22502 gcc_cv_initfini_array=no
22503 if test $in_tree_ld = yes ; then
22504 if test "$gcc_cv_gld_major_version" -eq 2 \
22505 -a "$gcc_cv_gld_minor_version" -ge 22 \
22506 -o "$gcc_cv_gld_major_version" -gt 2 \
22507 && test $in_tree_ld_is_elf = yes; then
22508 gcc_cv_initfini_array=yes
22510 elif test x$gcc_cv_as != x -a x$gcc_cv_ld != x -a x$gcc_cv_objdump != x ; then
22511 cat > conftest.s <<\EOF
22512 .section .dtors,"a",%progbits
22513 .balign 4
22514 .byte 'A', 'A', 'A', 'A'
22515 .section .ctors,"a",%progbits
22516 .balign 4
22517 .byte 'B', 'B', 'B', 'B'
22518 .section .fini_array.65530,"a",%progbits
22519 .balign 4
22520 .byte 'C', 'C', 'C', 'C'
22521 .section .init_array.65530,"a",%progbits
22522 .balign 4
22523 .byte 'D', 'D', 'D', 'D'
22524 .section .dtors.64528,"a",%progbits
22525 .balign 4
22526 .byte 'E', 'E', 'E', 'E'
22527 .section .ctors.64528,"a",%progbits
22528 .balign 4
22529 .byte 'F', 'F', 'F', 'F'
22530 .section .fini_array.01005,"a",%progbits
22531 .balign 4
22532 .byte 'G', 'G', 'G', 'G'
22533 .section .init_array.01005,"a",%progbits
22534 .balign 4
22535 .byte 'H', 'H', 'H', 'H'
22536 .text
22537 .globl _start
22538 _start:
22540 if $gcc_cv_as -o conftest.o conftest.s > /dev/null 2>&1 \
22541 && $gcc_cv_ld -o conftest conftest.o > /dev/null 2>&1 \
22542 && $gcc_cv_objdump -s -j .init_array conftest \
22543 | grep HHHHFFFFDDDDBBBB > /dev/null 2>&1 \
22544 && $gcc_cv_objdump -s -j .fini_array conftest \
22545 | grep GGGGEEEECCCCAAAA > /dev/null 2>&1; then
22546 gcc_cv_initfini_array=yes
22548 rm -f conftest conftest.*
22550 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22551 /* end confdefs.h. */
22553 #ifndef __ELF__
22554 # error Not an ELF OS
22555 #endif
22556 #include <stdlib.h>
22557 #if defined __GLIBC_PREREQ
22558 # if __GLIBC_PREREQ (2, 4)
22559 # else
22560 # error GLIBC 2.4 required
22561 # endif
22562 #else
22563 # if defined __sun__ && defined __svr4__
22564 /* Solaris ld.so.1 supports .init_array/.fini_array since Solaris 8. */
22565 # else
22566 # error The C library not known to support .init_array/.fini_array
22567 # endif
22568 #endif
22570 _ACEOF
22571 if ac_fn_c_try_cpp "$LINENO"; then :
22573 else
22574 gcc_cv_initfini_array=no
22576 rm -f conftest.err conftest.$ac_ext;;
22577 esac
22578 else
22579 { $as_echo "$as_me:${as_lineno-$LINENO}: checking cross compile... guessing" >&5
22580 $as_echo_n "checking cross compile... guessing... " >&6; }
22581 gcc_cv_initfini_array=no
22584 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_initfini_array" >&5
22585 $as_echo "$gcc_cv_initfini_array" >&6; }
22586 enable_initfini_array=$gcc_cv_initfini_array
22590 if test $enable_initfini_array = yes; then
22592 $as_echo "#define HAVE_INITFINI_ARRAY_SUPPORT 1" >>confdefs.h
22596 # Check if we have .[us]leb128, and support symbol arithmetic with it.
22597 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .sleb128 and .uleb128" >&5
22598 $as_echo_n "checking assembler for .sleb128 and .uleb128... " >&6; }
22599 if test "${gcc_cv_as_leb128+set}" = set; then :
22600 $as_echo_n "(cached) " >&6
22601 else
22602 gcc_cv_as_leb128=no
22603 if test $in_tree_gas = yes; then
22604 if test $in_tree_gas_is_elf = yes \
22605 && test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 11 \) \* 1000 + 0`
22606 then gcc_cv_as_leb128=yes
22608 elif test x$gcc_cv_as != x; then
22609 $as_echo ' .data
22610 .uleb128 L2 - L1
22612 .uleb128 1280
22613 .sleb128 -1010
22614 L2:' > conftest.s
22615 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
22616 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
22617 (eval $ac_try) 2>&5
22618 ac_status=$?
22619 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
22620 test $ac_status = 0; }; }
22621 then
22622 # GAS versions before 2.11 do not support uleb128,
22623 # despite appearing to.
22624 # ??? There exists an elf-specific test that will crash
22625 # the assembler. Perhaps it's better to figure out whether
22626 # arbitrary sections are supported and try the test.
22627 as_ver=`$gcc_cv_as --version 2>/dev/null | sed 1q`
22628 if echo "$as_ver" | grep GNU > /dev/null; then
22629 as_vers=`echo $as_ver | sed -n \
22630 -e 's,^.*[ ]\([0-9][0-9]*\.[0-9][0-9]*.*\)$,\1,p'`
22631 as_major=`expr "$as_vers" : '\([0-9]*\)'`
22632 as_minor=`expr "$as_vers" : '[0-9]*\.\([0-9]*\)'`
22633 if test $as_major -eq 2 && test $as_minor -lt 11
22634 then :
22635 else gcc_cv_as_leb128=yes
22638 else
22639 echo "configure: failed program was" >&5
22640 cat conftest.s >&5
22642 rm -f conftest.o conftest.s
22645 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_leb128" >&5
22646 $as_echo "$gcc_cv_as_leb128" >&6; }
22647 if test $gcc_cv_as_leb128 = yes; then
22649 $as_echo "#define HAVE_AS_LEB128 1" >>confdefs.h
22653 # Check if we have assembler support for unwind directives.
22654 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for cfi directives" >&5
22655 $as_echo_n "checking assembler for cfi directives... " >&6; }
22656 if test "${gcc_cv_as_cfi_directive+set}" = set; then :
22657 $as_echo_n "(cached) " >&6
22658 else
22659 gcc_cv_as_cfi_directive=no
22660 if test x$gcc_cv_as != x; then
22661 $as_echo ' .text
22662 .cfi_startproc
22663 .cfi_offset 0, 0
22664 .cfi_same_value 1
22665 .cfi_def_cfa 1, 2
22666 .cfi_escape 1, 2, 3, 4, 5
22667 .cfi_endproc' > conftest.s
22668 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
22669 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
22670 (eval $ac_try) 2>&5
22671 ac_status=$?
22672 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
22673 test $ac_status = 0; }; }
22674 then
22675 case "$target" in
22676 *-*-solaris*)
22677 # If the linker used on Solaris (like Sun ld) isn't capable of merging
22678 # read-only and read-write sections, we need to make sure that the
22679 # assembler used emits read-write .eh_frame sections.
22680 if test "x$gcc_cv_ld_ro_rw_mix" != xread-write; then
22681 if test "x$gcc_cv_objdump" != x; then
22682 if $gcc_cv_objdump -h conftest.o 2>/dev/null | \
22683 sed -e /.eh_frame/!d -e N | grep READONLY > /dev/null; then
22684 gcc_cv_as_cfi_directive=no
22685 else
22686 case "$target" in
22687 i?86-*-solaris2.1[0-9]* | x86_64-*-solaris2.1[0-9]*)
22688 # On Solaris/x86, make sure that GCC and gas agree on using
22689 # read-only .eh_frame sections for 64-bit.
22690 if $gcc_cv_as --64 -o conftest.o conftest.s > /dev/null 2>&1 && \
22691 $gcc_cv_objdump -h conftest.o 2>/dev/null | \
22692 sed -e /.eh_frame/!d -e N | \
22693 grep READONLY > /dev/null; then
22694 gcc_cv_as_cfi_directive=yes
22695 else
22696 gcc_cv_as_cfi_directive=no
22700 gcc_cv_as_cfi_directive=yes
22702 esac
22704 else
22705 # no objdump, err on the side of caution
22706 gcc_cv_as_cfi_directive=no
22708 else
22709 gcc_cv_as_cfi_directive=yes
22712 *-*-*)
22713 gcc_cv_as_cfi_directive=yes
22715 esac
22716 else
22717 echo "configure: failed program was" >&5
22718 cat conftest.s >&5
22720 rm -f conftest.o conftest.s
22723 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_cfi_directive" >&5
22724 $as_echo "$gcc_cv_as_cfi_directive" >&6; }
22726 if test $gcc_cv_as_cfi_directive = yes && test x$gcc_cv_objdump != x; then
22727 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for working cfi advance" >&5
22728 $as_echo_n "checking assembler for working cfi advance... " >&6; }
22729 if test "${gcc_cv_as_cfi_advance_working+set}" = set; then :
22730 $as_echo_n "(cached) " >&6
22731 else
22732 gcc_cv_as_cfi_advance_working=no
22733 if test x$gcc_cv_as != x; then
22734 $as_echo ' .text
22735 .cfi_startproc
22736 .cfi_adjust_cfa_offset 64
22737 .skip 75040, 0
22738 .cfi_adjust_cfa_offset 128
22739 .cfi_endproc' > conftest.s
22740 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
22741 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
22742 (eval $ac_try) 2>&5
22743 ac_status=$?
22744 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
22745 test $ac_status = 0; }; }
22746 then
22748 if $gcc_cv_objdump -Wf conftest.o 2>/dev/null \
22749 | grep 'DW_CFA_advance_loc[24]:[ ][ ]*75040[ ]' >/dev/null; then
22750 gcc_cv_as_cfi_advance_working=yes
22753 else
22754 echo "configure: failed program was" >&5
22755 cat conftest.s >&5
22757 rm -f conftest.o conftest.s
22760 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_cfi_advance_working" >&5
22761 $as_echo "$gcc_cv_as_cfi_advance_working" >&6; }
22763 else
22764 # no objdump, err on the side of caution
22765 gcc_cv_as_cfi_advance_working=no
22769 cat >>confdefs.h <<_ACEOF
22770 #define HAVE_GAS_CFI_DIRECTIVE `if test $gcc_cv_as_cfi_directive = yes \
22771 && test $gcc_cv_as_cfi_advance_working = yes; then echo 1; else echo 0; fi`
22772 _ACEOF
22776 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for cfi personality directive" >&5
22777 $as_echo_n "checking assembler for cfi personality directive... " >&6; }
22778 if test "${gcc_cv_as_cfi_personality_directive+set}" = set; then :
22779 $as_echo_n "(cached) " >&6
22780 else
22781 gcc_cv_as_cfi_personality_directive=no
22782 if test x$gcc_cv_as != x; then
22783 $as_echo ' .text
22784 .cfi_startproc
22785 .cfi_personality 0, symbol
22786 .cfi_endproc' > conftest.s
22787 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
22788 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
22789 (eval $ac_try) 2>&5
22790 ac_status=$?
22791 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
22792 test $ac_status = 0; }; }
22793 then
22794 gcc_cv_as_cfi_personality_directive=yes
22795 else
22796 echo "configure: failed program was" >&5
22797 cat conftest.s >&5
22799 rm -f conftest.o conftest.s
22802 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_cfi_personality_directive" >&5
22803 $as_echo "$gcc_cv_as_cfi_personality_directive" >&6; }
22806 cat >>confdefs.h <<_ACEOF
22807 #define HAVE_GAS_CFI_PERSONALITY_DIRECTIVE `if test $gcc_cv_as_cfi_personality_directive = yes;
22808 then echo 1; else echo 0; fi`
22809 _ACEOF
22812 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for cfi sections directive" >&5
22813 $as_echo_n "checking assembler for cfi sections directive... " >&6; }
22814 if test "${gcc_cv_as_cfi_sections_directive+set}" = set; then :
22815 $as_echo_n "(cached) " >&6
22816 else
22817 gcc_cv_as_cfi_sections_directive=no
22818 if test x$gcc_cv_as != x; then
22819 $as_echo ' .text
22820 .cfi_sections .debug_frame, .eh_frame
22821 .cfi_startproc
22822 .cfi_endproc' > conftest.s
22823 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
22824 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
22825 (eval $ac_try) 2>&5
22826 ac_status=$?
22827 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
22828 test $ac_status = 0; }; }
22829 then
22830 case $target_os in
22831 win32 | pe | cygwin* | mingw32* | uwin*)
22832 # Need to check that we generated the correct relocation for the
22833 # .debug_frame section. This was fixed for binutils 2.21.
22834 gcc_cv_as_cfi_sections_directive=no
22835 if test "x$gcc_cv_objdump" != x; then
22836 if $gcc_cv_objdump -j .debug_frame -r conftest.o 2>/dev/null | \
22837 grep secrel > /dev/null; then
22838 gcc_cv_as_cfi_sections_directive=yes
22843 gcc_cv_as_cfi_sections_directive=yes
22845 esac
22846 else
22847 echo "configure: failed program was" >&5
22848 cat conftest.s >&5
22850 rm -f conftest.o conftest.s
22853 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_cfi_sections_directive" >&5
22854 $as_echo "$gcc_cv_as_cfi_sections_directive" >&6; }
22858 cat >>confdefs.h <<_ACEOF
22859 #define HAVE_GAS_CFI_SECTIONS_DIRECTIVE `if test $gcc_cv_as_cfi_sections_directive = yes;
22860 then echo 1; else echo 0; fi`
22861 _ACEOF
22864 # GAS versions up to and including 2.11.0 may mis-optimize
22865 # .eh_frame data.
22866 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for eh_frame optimization" >&5
22867 $as_echo_n "checking assembler for eh_frame optimization... " >&6; }
22868 if test "${gcc_cv_as_eh_frame+set}" = set; then :
22869 $as_echo_n "(cached) " >&6
22870 else
22871 gcc_cv_as_eh_frame=no
22872 if test $in_tree_gas = yes; then
22873 if test $in_tree_gas_is_elf = yes \
22874 && test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 12 \) \* 1000 + 0`
22875 then gcc_cv_as_eh_frame=yes
22877 elif test x$gcc_cv_as != x; then
22878 $as_echo ' .text
22879 .LFB1:
22880 .4byte 0
22881 .L1:
22882 .4byte 0
22883 .LFE1:
22884 .section .eh_frame,"aw",@progbits
22885 __FRAME_BEGIN__:
22886 .4byte .LECIE1-.LSCIE1
22887 .LSCIE1:
22888 .4byte 0x0
22889 .byte 0x1
22890 .ascii "z\0"
22891 .byte 0x1
22892 .byte 0x78
22893 .byte 0x1a
22894 .byte 0x0
22895 .byte 0x4
22896 .4byte 1
22897 .p2align 1
22898 .LECIE1:
22899 .LSFDE1:
22900 .4byte .LEFDE1-.LASFDE1
22901 .LASFDE1:
22902 .4byte .LASFDE1-__FRAME_BEGIN__
22903 .4byte .LFB1
22904 .4byte .LFE1-.LFB1
22905 .byte 0x4
22906 .4byte .LFE1-.LFB1
22907 .byte 0x4
22908 .4byte .L1-.LFB1
22909 .LEFDE1:' > conftest.s
22910 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
22911 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
22912 (eval $ac_try) 2>&5
22913 ac_status=$?
22914 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
22915 test $ac_status = 0; }; }
22916 then
22917 cat > conftest.lit <<EOF
22918 0000 10000000 00000000 017a0001 781a0004 .........z..x...
22919 0010 01000000 12000000 18000000 00000000 ................
22920 0020 08000000 04080000 0044 .........D
22922 cat > conftest.big <<EOF
22923 0000 00000010 00000000 017a0001 781a0004 .........z..x...
22924 0010 00000001 00000012 00000018 00000000 ................
22925 0020 00000008 04000000 0844 .........D
22927 # If the assembler didn't choke, and we can objdump,
22928 # and we got the correct data, then succeed.
22929 # The text in the here-document typically retains its unix-style line
22930 # endings, while the output of objdump will use host line endings.
22931 # Therefore, use diff -b for the comparisons.
22932 if test x$gcc_cv_objdump != x \
22933 && $gcc_cv_objdump -s -j .eh_frame conftest.o 2>/dev/null \
22934 | tail -3 > conftest.got \
22935 && { diff -b conftest.lit conftest.got > /dev/null 2>&1 \
22936 || diff -b conftest.big conftest.got > /dev/null 2>&1; }
22937 then
22938 gcc_cv_as_eh_frame=yes
22939 elif { ac_try='$gcc_cv_as -o conftest.o --traditional-format /dev/null'
22940 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
22941 (eval $ac_try) 2>&5
22942 ac_status=$?
22943 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
22944 test $ac_status = 0; }; }; then
22945 gcc_cv_as_eh_frame=buggy
22946 else
22947 # Uh oh, what do we do now?
22948 gcc_cv_as_eh_frame=no
22950 else
22951 echo "configure: failed program was" >&5
22952 cat conftest.s >&5
22954 rm -f conftest.o conftest.s
22957 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_eh_frame" >&5
22958 $as_echo "$gcc_cv_as_eh_frame" >&6; }
22961 if test $gcc_cv_as_eh_frame = buggy; then
22963 $as_echo "#define USE_AS_TRADITIONAL_FORMAT 1" >>confdefs.h
22967 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for section merging support" >&5
22968 $as_echo_n "checking assembler for section merging support... " >&6; }
22969 if test "${gcc_cv_as_shf_merge+set}" = set; then :
22970 $as_echo_n "(cached) " >&6
22971 else
22972 gcc_cv_as_shf_merge=no
22973 if test $in_tree_gas = yes; then
22974 if test $in_tree_gas_is_elf = yes \
22975 && test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 12 \) \* 1000 + 0`
22976 then gcc_cv_as_shf_merge=yes
22978 elif test x$gcc_cv_as != x; then
22979 $as_echo '.section .rodata.str, "aMS", @progbits, 1' > conftest.s
22980 if { ac_try='$gcc_cv_as $gcc_cv_as_flags --fatal-warnings -o conftest.o conftest.s >&5'
22981 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
22982 (eval $ac_try) 2>&5
22983 ac_status=$?
22984 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
22985 test $ac_status = 0; }; }
22986 then
22987 gcc_cv_as_shf_merge=yes
22988 else
22989 echo "configure: failed program was" >&5
22990 cat conftest.s >&5
22992 rm -f conftest.o conftest.s
22995 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_shf_merge" >&5
22996 $as_echo "$gcc_cv_as_shf_merge" >&6; }
22998 if test $gcc_cv_as_shf_merge = no; then
22999 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for section merging support" >&5
23000 $as_echo_n "checking assembler for section merging support... " >&6; }
23001 if test "${gcc_cv_as_shf_merge+set}" = set; then :
23002 $as_echo_n "(cached) " >&6
23003 else
23004 gcc_cv_as_shf_merge=no
23005 if test $in_tree_gas = yes; then
23006 if test $in_tree_gas_is_elf = yes \
23007 && test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 12 \) \* 1000 + 0`
23008 then gcc_cv_as_shf_merge=yes
23010 elif test x$gcc_cv_as != x; then
23011 $as_echo '.section .rodata.str, "aMS", %progbits, 1' > conftest.s
23012 if { ac_try='$gcc_cv_as $gcc_cv_as_flags --fatal-warnings -o conftest.o conftest.s >&5'
23013 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
23014 (eval $ac_try) 2>&5
23015 ac_status=$?
23016 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
23017 test $ac_status = 0; }; }
23018 then
23019 gcc_cv_as_shf_merge=yes
23020 else
23021 echo "configure: failed program was" >&5
23022 cat conftest.s >&5
23024 rm -f conftest.o conftest.s
23027 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_shf_merge" >&5
23028 $as_echo "$gcc_cv_as_shf_merge" >&6; }
23032 cat >>confdefs.h <<_ACEOF
23033 #define HAVE_GAS_SHF_MERGE `if test $gcc_cv_as_shf_merge = yes; then echo 1; else echo 0; fi`
23034 _ACEOF
23037 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for COMDAT group support (GNU as)" >&5
23038 $as_echo_n "checking assembler for COMDAT group support (GNU as)... " >&6; }
23039 if test "${gcc_cv_as_comdat_group+set}" = set; then :
23040 $as_echo_n "(cached) " >&6
23041 else
23042 gcc_cv_as_comdat_group=no
23043 if test $in_tree_gas = yes; then
23044 if test $in_tree_gas_is_elf = yes \
23045 && test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 16 \) \* 1000 + 0`
23046 then gcc_cv_as_comdat_group=yes
23048 elif test x$gcc_cv_as != x; then
23049 $as_echo '.section .text,"axG",@progbits,.foo,comdat' > conftest.s
23050 if { ac_try='$gcc_cv_as $gcc_cv_as_flags --fatal-warnings -o conftest.o conftest.s >&5'
23051 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
23052 (eval $ac_try) 2>&5
23053 ac_status=$?
23054 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
23055 test $ac_status = 0; }; }
23056 then
23057 gcc_cv_as_comdat_group=yes
23058 else
23059 echo "configure: failed program was" >&5
23060 cat conftest.s >&5
23062 rm -f conftest.o conftest.s
23065 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_comdat_group" >&5
23066 $as_echo "$gcc_cv_as_comdat_group" >&6; }
23068 if test $gcc_cv_as_comdat_group = yes; then
23069 gcc_cv_as_comdat_group_percent=no
23070 gcc_cv_as_comdat_group_group=no
23071 else
23072 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for COMDAT group support (GNU as, %type)" >&5
23073 $as_echo_n "checking assembler for COMDAT group support (GNU as, %type)... " >&6; }
23074 if test "${gcc_cv_as_comdat_group_percent+set}" = set; then :
23075 $as_echo_n "(cached) " >&6
23076 else
23077 gcc_cv_as_comdat_group_percent=no
23078 if test $in_tree_gas = yes; then
23079 if test $in_tree_gas_is_elf = yes \
23080 && test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 16 \) \* 1000 + 0`
23081 then gcc_cv_as_comdat_group_percent=yes
23083 elif test x$gcc_cv_as != x; then
23084 $as_echo '.section .text,"axG",%progbits,.foo,comdat' > conftest.s
23085 if { ac_try='$gcc_cv_as $gcc_cv_as_flags --fatal-warnings -o conftest.o conftest.s >&5'
23086 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
23087 (eval $ac_try) 2>&5
23088 ac_status=$?
23089 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
23090 test $ac_status = 0; }; }
23091 then
23092 gcc_cv_as_comdat_group_percent=yes
23093 else
23094 echo "configure: failed program was" >&5
23095 cat conftest.s >&5
23097 rm -f conftest.o conftest.s
23100 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_comdat_group_percent" >&5
23101 $as_echo "$gcc_cv_as_comdat_group_percent" >&6; }
23103 if test $gcc_cv_as_comdat_group_percent = yes; then
23104 gcc_cv_as_comdat_group_group=no
23105 else
23106 if test -z "${gcc_cv_as_comdat_group_group+set}"; then
23107 gcc_cv_as_comdat_group_group=no
23109 case "${target}" in
23110 # Sun as uses a completely different syntax.
23111 *-*-solaris2*)
23112 case "${target}" in
23113 sparc*-*-solaris2*)
23114 conftest_s='
23115 .group foo,".text%foo",#comdat
23116 .section ".text%foo", #alloc,#execinstr,#progbits
23117 .globl foo
23118 foo:
23121 i?86-*-solaris2* | x86_64-*-solaris2.1[0-9]*)
23122 conftest_s='
23123 .group foo,.text%foo,#comdat
23124 .section .text%foo, "ax", @progbits
23125 .globl foo
23126 foo:
23129 esac
23130 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for COMDAT group support (Sun as, .group)" >&5
23131 $as_echo_n "checking assembler for COMDAT group support (Sun as, .group)... " >&6; }
23132 if test "${gcc_cv_as_comdat_group_group+set}" = set; then :
23133 $as_echo_n "(cached) " >&6
23134 else
23135 gcc_cv_as_comdat_group_group=no
23136 if test x$gcc_cv_as != x; then
23137 $as_echo "$conftest_s" > conftest.s
23138 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
23139 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
23140 (eval $ac_try) 2>&5
23141 ac_status=$?
23142 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
23143 test $ac_status = 0; }; }
23144 then
23145 gcc_cv_as_comdat_group_group=yes
23146 else
23147 echo "configure: failed program was" >&5
23148 cat conftest.s >&5
23150 rm -f conftest.o conftest.s
23153 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_comdat_group_group" >&5
23154 $as_echo "$gcc_cv_as_comdat_group_group" >&6; }
23157 esac
23160 if test x"$ld_is_gold" = xyes; then
23161 comdat_group=yes
23162 elif test $in_tree_ld = yes ; then
23163 comdat_group=no
23164 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 \
23165 && test $in_tree_ld_is_elf = yes; then
23166 comdat_group=yes
23168 elif echo "$ld_ver" | grep GNU > /dev/null; then
23169 comdat_group=yes
23170 if test 0"$ld_date" -lt 20050308; then
23171 if test -n "$ld_date"; then
23172 # If there was date string, but was earlier than 2005-03-08, fail
23173 comdat_group=no
23174 elif test "$ld_vers_major" -lt 2; then
23175 comdat_group=no
23176 elif test "$ld_vers_major" -eq 2 -a "$ld_vers_minor" -lt 16; then
23177 comdat_group=no
23180 else
23181 case "${target}" in
23182 *-*-solaris2.1[1-9]*)
23183 comdat_group=no
23184 # Sun ld has COMDAT group support since Solaris 9, but it doesn't
23185 # interoperate with GNU as until Solaris 11 build 130, i.e. ld
23186 # version 1.688.
23188 # If using Sun as for COMDAT group as emitted by GCC, one needs at
23189 # least ld version 1.2267.
23190 if test "$ld_vers_major" -gt 1; then
23191 comdat_group=yes
23192 elif test "x$gas_flag" = xyes && test "$ld_vers_minor" -ge 1688; then
23193 comdat_group=yes
23194 elif test "$ld_vers_minor" -ge 2267; then
23195 comdat_group=yes
23199 # Assume linkers other than GNU ld don't support COMDAT group.
23200 comdat_group=no
23202 esac
23204 # Allow overriding the automatic COMDAT group tests above.
23205 # Check whether --enable-comdat was given.
23206 if test "${enable_comdat+set}" = set; then :
23207 enableval=$enable_comdat; comdat_group="$enable_comdat"
23210 if test $comdat_group = no; then
23211 gcc_cv_as_comdat_group=no
23212 gcc_cv_as_comdat_group_percent=no
23213 gcc_cv_as_comdat_group_group=no
23216 cat >>confdefs.h <<_ACEOF
23217 #define HAVE_COMDAT_GROUP `if test $gcc_cv_as_comdat_group = yes \
23218 || test $gcc_cv_as_comdat_group_percent = yes \
23219 || test $gcc_cv_as_comdat_group_group = yes; then echo 1; else echo 0; fi`
23220 _ACEOF
23223 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for line table discriminator support" >&5
23224 $as_echo_n "checking assembler for line table discriminator support... " >&6; }
23225 if test "${gcc_cv_as_discriminator+set}" = set; then :
23226 $as_echo_n "(cached) " >&6
23227 else
23228 gcc_cv_as_discriminator=no
23229 if test $in_tree_gas = yes; then
23230 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 19 \) \* 1000 + 51`
23231 then gcc_cv_as_discriminator=yes
23233 elif test x$gcc_cv_as != x; then
23234 $as_echo ' .text
23235 .file 1 "conf.c"
23236 .loc 1 1 0 discriminator 1' > conftest.s
23237 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
23238 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
23239 (eval $ac_try) 2>&5
23240 ac_status=$?
23241 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
23242 test $ac_status = 0; }; }
23243 then
23244 gcc_cv_as_discriminator=yes
23245 else
23246 echo "configure: failed program was" >&5
23247 cat conftest.s >&5
23249 rm -f conftest.o conftest.s
23252 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_discriminator" >&5
23253 $as_echo "$gcc_cv_as_discriminator" >&6; }
23254 if test $gcc_cv_as_discriminator = yes; then
23256 $as_echo "#define HAVE_GAS_DISCRIMINATOR 1" >>confdefs.h
23260 # Thread-local storage - the check is heavily parameterized.
23261 conftest_s=
23262 tls_first_major=
23263 tls_first_minor=
23264 tls_as_opt=
23265 case "$target" in
23266 alpha*-*-*)
23267 conftest_s='
23268 .section ".tdata","awT",@progbits
23269 foo: .long 25
23270 .text
23271 ldq $27,__tls_get_addr($29) !literal!1
23272 lda $16,foo($29) !tlsgd!1
23273 jsr $26,($27),__tls_get_addr !lituse_tlsgd!1
23274 ldq $27,__tls_get_addr($29) !literal!2
23275 lda $16,foo($29) !tlsldm!2
23276 jsr $26,($27),__tls_get_addr !lituse_tlsldm!2
23277 ldq $1,foo($29) !gotdtprel
23278 ldah $2,foo($29) !dtprelhi
23279 lda $3,foo($2) !dtprello
23280 lda $4,foo($29) !dtprel
23281 ldq $1,foo($29) !gottprel
23282 ldah $2,foo($29) !tprelhi
23283 lda $3,foo($2) !tprello
23284 lda $4,foo($29) !tprel'
23285 tls_first_major=2
23286 tls_first_minor=13
23287 tls_as_opt=--fatal-warnings
23289 cris-*-*|crisv32-*-*)
23290 conftest_s='
23291 .section ".tdata","awT",@progbits
23292 x: .long 25
23293 .text
23294 move.d x:IE,$r10
23295 nop'
23296 tls_first_major=2
23297 tls_first_minor=20
23298 tls_as_opt=--fatal-warnings
23300 frv*-*-*)
23301 conftest_s='
23302 .section ".tdata","awT",@progbits
23303 x: .long 25
23304 .text
23305 call #gettlsoff(x)'
23306 tls_first_major=2
23307 tls_first_minor=14
23309 hppa*-*-linux*)
23310 conftest_s='
23311 t1: .reg %r20
23312 t2: .reg %r21
23313 gp: .reg %r19
23314 .section ".tdata","awT",@progbits
23315 foo: .long 25
23316 .text
23317 .align 4
23318 addil LT%foo-$tls_gdidx$,gp
23319 ldo RT%foo-$tls_gdidx$(%r1),%arg0
23320 b __tls_get_addr
23322 addil LT%foo-$tls_ldidx$,gp
23323 b __tls_get_addr
23324 ldo RT%foo-$tls_ldidx$(%r1),%arg0
23325 addil LR%foo-$tls_dtpoff$,%ret0
23326 ldo RR%foo-$tls_dtpoff$(%r1),%t1
23327 mfctl %cr27,%t1
23328 addil LT%foo-$tls_ieoff$,gp
23329 ldw RT%foo-$tls_ieoff$(%r1),%t2
23330 add %t1,%t2,%t3
23331 mfctl %cr27,%t1
23332 addil LR%foo-$tls_leoff$,%t1
23333 ldo RR%foo-$tls_leoff$(%r1),%t2'
23334 tls_first_major=2
23335 tls_first_minor=15
23336 tls_as_opt=--fatal-warnings
23338 arm*-*-*)
23339 conftest_s='
23340 .section ".tdata","awT",%progbits
23341 foo: .long 25
23342 .text
23343 .word foo(gottpoff)
23344 .word foo(tpoff)
23345 .word foo(tlsgd)
23346 .word foo(tlsldm)
23347 .word foo(tlsldo)'
23348 tls_first_major=2
23349 tls_first_minor=17
23351 i[34567]86-*-* | x86_64-*-solaris2.1[0-9]*)
23352 case "$target" in
23353 i[34567]86-*-solaris2.*)
23354 on_solaris=yes
23355 tga_func=___tls_get_addr
23357 x86_64-*-solaris2.1[0-9]*)
23358 on_solaris=yes
23359 tga_func=__tls_get_addr
23362 on_solaris=no
23364 esac
23365 if test x$on_solaris = xyes && test x$gas_flag = xno; then
23366 conftest_s='
23367 .section .tdata,"awt",@progbits'
23368 tls_first_major=0
23369 tls_first_minor=0
23370 tls_section_flag=t
23372 $as_echo "#define TLS_SECTION_ASM_FLAG 't'" >>confdefs.h
23374 else
23375 conftest_s='
23376 .section ".tdata","awT",@progbits'
23377 tls_first_major=2
23378 tls_first_minor=14
23379 tls_section_flag=T
23380 tls_as_opt="--fatal-warnings"
23382 conftest_s="$conftest_s
23383 foo: .long 25
23384 .text
23385 movl %gs:0, %eax
23386 leal foo@tlsgd(,%ebx,1), %eax
23387 leal foo@tlsldm(%ebx), %eax
23388 leal foo@dtpoff(%eax), %edx
23389 movl foo@gottpoff(%ebx), %eax
23390 subl foo@gottpoff(%ebx), %eax
23391 addl foo@gotntpoff(%ebx), %eax
23392 movl foo@indntpoff, %eax
23393 movl \$foo@tpoff, %eax
23394 subl \$foo@tpoff, %eax
23395 leal foo@ntpoff(%ecx), %eax"
23397 x86_64-*-*)
23398 conftest_s='
23399 .section ".tdata","awT",@progbits
23400 foo: .long 25
23401 .text
23402 movq %fs:0, %rax
23403 leaq foo@TLSGD(%rip), %rdi
23404 leaq foo@TLSLD(%rip), %rdi
23405 leaq foo@DTPOFF(%rax), %rdx
23406 movq foo@GOTTPOFF(%rip), %rax
23407 movq $foo@TPOFF, %rax'
23408 tls_first_major=2
23409 tls_first_minor=14
23410 tls_section_flag=T
23411 tls_as_opt=--fatal-warnings
23413 ia64-*-*)
23414 conftest_s='
23415 .section ".tdata","awT",@progbits
23416 foo: data8 25
23417 .text
23418 addl r16 = @ltoff(@dtpmod(foo#)), gp
23419 addl r17 = @ltoff(@dtprel(foo#)), gp
23420 addl r18 = @ltoff(@tprel(foo#)), gp
23421 addl r19 = @dtprel(foo#), gp
23422 adds r21 = @dtprel(foo#), r13
23423 movl r23 = @dtprel(foo#)
23424 addl r20 = @tprel(foo#), gp
23425 adds r22 = @tprel(foo#), r13
23426 movl r24 = @tprel(foo#)'
23427 tls_first_major=2
23428 tls_first_minor=13
23429 tls_as_opt=--fatal-warnings
23431 microblaze*-*-*)
23432 conftest_s='
23433 .section .tdata,"awT",@progbits
23435 .word 2
23436 .text
23437 addik r5,r20,x@TLSGD
23438 addik r5,r20,x@TLSLDM'
23439 tls_first_major=2
23440 tls_first_minor=20
23441 tls_as_opt='--fatal-warnings'
23443 mips*-*-*)
23444 conftest_s='
23445 .section .tdata,"awT",@progbits
23447 .word 2
23448 .text
23449 addiu $4, $28, %tlsgd(x)
23450 addiu $4, $28, %tlsldm(x)
23451 lui $4, %dtprel_hi(x)
23452 addiu $4, $4, %dtprel_lo(x)
23453 lw $4, %gottprel(x)($28)
23454 lui $4, %tprel_hi(x)
23455 addiu $4, $4, %tprel_lo(x)'
23456 tls_first_major=2
23457 tls_first_minor=16
23458 tls_as_opt='-32 --fatal-warnings'
23460 m68k-*-*)
23461 conftest_s='
23462 .section .tdata,"awT",@progbits
23464 .word 2
23465 .text
23466 foo:
23467 move.l x@TLSGD(%a5),%a0
23468 move.l x@TLSLDM(%a5),%a0
23469 move.l x@TLSLDO(%a5),%a0
23470 move.l x@TLSIE(%a5),%a0
23471 move.l x@TLSLE(%a5),%a0'
23472 tls_first_major=2
23473 tls_first_minor=19
23474 tls_as_opt='--fatal-warnings'
23476 nios2-*-*)
23477 conftest_s='
23478 .section ".tdata","awT",@progbits'
23479 tls_first_major=2
23480 tls_first_minor=23
23481 tls_as_opt="--fatal-warnings"
23483 aarch64*-*-*)
23484 conftest_s='
23485 .section ".tdata","awT",%progbits
23486 foo: .long 25
23487 .text
23488 adrp x0, :tlsgd:x
23489 add x0, x0, #:tlsgd_lo12:x
23490 bl __tls_get_addr
23491 nop'
23492 tls_first_major=2
23493 tls_first_minor=20
23494 tls_as_opt='--fatal-warnings'
23496 powerpc-ibm-aix*)
23497 conftest_s='
23498 .extern __get_tpointer
23499 .toc
23500 LC..1:
23501 .tc a[TC],a[TL]@le
23502 .csect .text[PR]
23503 .tlstest:
23504 lwz 9,LC..1(2)
23505 bla __get_tpointer
23506 lwzx 3,9,3
23507 .globl a
23508 .csect a[TL],4
23510 .space 4'
23511 tls_first_major=0
23512 tls_first_minor=0
23514 powerpc64*-*-*)
23515 conftest_s='
23516 .section ".tdata","awT",@progbits
23517 .align 3
23518 ld0: .space 8
23519 ld1: .space 8
23520 x1: .space 8
23521 x2: .space 8
23522 x3: .space 8
23523 .text
23524 addi 3,2,ld0@got@tlsgd
23525 bl .__tls_get_addr
23527 addi 3,2,ld1@toc
23528 bl .__tls_get_addr
23530 addi 3,2,x1@got@tlsld
23531 bl .__tls_get_addr
23533 addi 9,3,x1@dtprel
23534 bl .__tls_get_addr
23536 addis 9,3,x2@dtprel@ha
23537 addi 9,9,x2@dtprel@l
23538 bl .__tls_get_addr
23540 ld 9,x3@got@dtprel(2)
23541 add 9,9,3
23542 bl .__tls_get_addr
23543 nop'
23544 tls_first_major=2
23545 tls_first_minor=14
23546 tls_as_opt="-a64 --fatal-warnings"
23548 powerpc*-*-*)
23549 conftest_s='
23550 .section ".tdata","awT",@progbits
23551 .align 2
23552 ld0: .space 4
23553 ld1: .space 4
23554 x1: .space 4
23555 x2: .space 4
23556 x3: .space 4
23557 .text
23558 addi 3,31,ld0@got@tlsgd
23559 bl __tls_get_addr
23560 addi 3,31,x1@got@tlsld
23561 bl __tls_get_addr
23562 addi 9,3,x1@dtprel
23563 addis 9,3,x2@dtprel@ha
23564 addi 9,9,x2@dtprel@l
23565 lwz 9,x3@got@tprel(31)
23566 add 9,9,x@tls
23567 addi 9,2,x1@tprel
23568 addis 9,2,x2@tprel@ha
23569 addi 9,9,x2@tprel@l'
23570 tls_first_major=2
23571 tls_first_minor=14
23572 tls_as_opt="-a32 --fatal-warnings"
23574 s390-*-*)
23575 conftest_s='
23576 .section ".tdata","awT",@progbits
23577 foo: .long 25
23578 .text
23579 .long foo@TLSGD
23580 .long foo@TLSLDM
23581 .long foo@DTPOFF
23582 .long foo@NTPOFF
23583 .long foo@GOTNTPOFF
23584 .long foo@INDNTPOFF
23585 l %r1,foo@GOTNTPOFF(%r12)
23586 l %r1,0(%r1):tls_load:foo
23587 bas %r14,0(%r1,%r13):tls_gdcall:foo
23588 bas %r14,0(%r1,%r13):tls_ldcall:foo'
23589 tls_first_major=2
23590 tls_first_minor=14
23591 tls_as_opt="-m31 --fatal-warnings"
23593 s390x-*-*)
23594 conftest_s='
23595 .section ".tdata","awT",@progbits
23596 foo: .long 25
23597 .text
23598 .quad foo@TLSGD
23599 .quad foo@TLSLDM
23600 .quad foo@DTPOFF
23601 .quad foo@NTPOFF
23602 .quad foo@GOTNTPOFF
23603 lg %r1,foo@GOTNTPOFF(%r12)
23604 larl %r1,foo@INDNTPOFF
23605 brasl %r14,__tls_get_offset@PLT:tls_gdcall:foo
23606 brasl %r14,__tls_get_offset@PLT:tls_ldcall:foo'
23607 tls_first_major=2
23608 tls_first_minor=14
23609 tls_as_opt="-m64 -Aesame --fatal-warnings"
23611 sh-*-* | sh[34]-*-*)
23612 conftest_s='
23613 .section ".tdata","awT",@progbits
23614 foo: .long 25
23615 .text
23616 .long foo@TLSGD
23617 .long foo@TLSLDM
23618 .long foo@DTPOFF
23619 .long foo@GOTTPOFF
23620 .long foo@TPOFF'
23621 tls_first_major=2
23622 tls_first_minor=13
23623 tls_as_opt=--fatal-warnings
23625 sparc*-*-*)
23626 case "$target" in
23627 sparc*-sun-solaris2.*)
23628 on_solaris=yes
23629 tga_func=__tls_get_addr
23632 on_solaris=no
23634 esac
23635 if test x$on_solaris = xyes && test x$gas_flag = xno; then
23636 conftest_s='
23637 .section ".tdata",#alloc,#write,#tls'
23638 tls_first_major=0
23639 tls_first_minor=0
23640 else
23641 conftest_s='
23642 .section ".tdata","awT",@progbits'
23643 tls_first_major=2
23644 tls_first_minor=14
23645 tls_as_opt="-32 --fatal-warnings"
23647 conftest_s="$conftest_s
23648 foo: .long 25
23649 .text
23650 sethi %tgd_hi22(foo), %o0
23651 add %o0, %tgd_lo10(foo), %o1
23652 add %l7, %o1, %o0, %tgd_add(foo)
23653 call __tls_get_addr, %tgd_call(foo)
23654 sethi %tldm_hi22(foo), %l1
23655 add %l1, %tldm_lo10(foo), %l2
23656 add %l7, %l2, %o0, %tldm_add(foo)
23657 call __tls_get_addr, %tldm_call(foo)
23658 sethi %tldo_hix22(foo), %l3
23659 xor %l3, %tldo_lox10(foo), %l4
23660 add %o0, %l4, %l5, %tldo_add(foo)
23661 sethi %tie_hi22(foo), %o3
23662 add %o3, %tie_lo10(foo), %o3
23663 ld [%l7 + %o3], %o2, %tie_ld(foo)
23664 add %g7, %o2, %o4, %tie_add(foo)
23665 sethi %tle_hix22(foo), %l1
23666 xor %l1, %tle_lox10(foo), %o5
23667 ld [%g7 + %o5], %o1"
23669 tilepro*-*-*)
23670 conftest_s='
23671 .section ".tdata","awT",@progbits
23672 foo: .long 25
23673 .text
23674 addli r0, zero, tls_gd(foo)
23675 auli r0, zero, tls_gd_ha16(foo)
23676 addli r0, r0, tls_gd_lo16(foo)
23677 jal __tls_get_addr
23678 addli r0, zero, tls_ie(foo)
23679 auli r0, r0, tls_ie_ha16(foo)
23680 addli r0, r0, tls_ie_lo16(foo)'
23681 tls_first_major=2
23682 tls_first_minor=22
23683 tls_as_opt="--fatal-warnings"
23685 tilegx*-*-*)
23686 conftest_s='
23687 .section ".tdata","awT",@progbits
23688 foo: .long 25
23689 .text
23690 shl16insli r0, zero, hw0_last_tls_gd(foo)
23691 shl16insli r0, zero, hw1_last_tls_gd(foo)
23692 shl16insli r0, r0, hw0_tls_gd(foo)
23693 jal __tls_get_addr
23694 shl16insli r0, zero, hw1_last_tls_ie(foo)
23695 shl16insli r0, r0, hw0_tls_ie(foo)'
23696 tls_first_major=2
23697 tls_first_minor=22
23698 tls_as_opt="--fatal-warnings"
23700 xtensa*-*-*)
23701 conftest_s='
23702 .section ".tdata","awT",@progbits
23703 foo: .long 25
23704 .text
23705 movi a8, foo@TLSFUNC
23706 movi a10, foo@TLSARG
23707 callx8.tls a8, foo@TLSCALL'
23708 tls_first_major=2
23709 tls_first_minor=19
23711 esac
23712 set_have_as_tls=no
23713 if test "x$enable_tls" = xno ; then
23714 : # TLS explicitly disabled.
23715 elif test "x$enable_tls" = xyes ; then
23716 set_have_as_tls=yes # TLS explicitly enabled.
23717 elif test -z "$tls_first_major"; then
23718 : # If we don't have a check, assume no support.
23719 else
23720 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for thread-local storage support" >&5
23721 $as_echo_n "checking assembler for thread-local storage support... " >&6; }
23722 if test "${gcc_cv_as_tls+set}" = set; then :
23723 $as_echo_n "(cached) " >&6
23724 else
23725 gcc_cv_as_tls=no
23726 if test $in_tree_gas = yes; then
23727 if test $gcc_cv_gas_vers -ge `expr \( \( $tls_first_major \* 1000 \) + $tls_first_minor \) \* 1000 + 0`
23728 then gcc_cv_as_tls=yes
23730 elif test x$gcc_cv_as != x; then
23731 $as_echo "$conftest_s" > conftest.s
23732 if { ac_try='$gcc_cv_as $gcc_cv_as_flags $tls_as_opt -o conftest.o conftest.s >&5'
23733 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
23734 (eval $ac_try) 2>&5
23735 ac_status=$?
23736 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
23737 test $ac_status = 0; }; }
23738 then
23739 gcc_cv_as_tls=yes
23740 else
23741 echo "configure: failed program was" >&5
23742 cat conftest.s >&5
23744 rm -f conftest.o conftest.s
23747 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_tls" >&5
23748 $as_echo "$gcc_cv_as_tls" >&6; }
23749 if test $gcc_cv_as_tls = yes; then
23750 set_have_as_tls=yes
23753 case "$target" in
23754 # TLS was introduced in the Solaris 9 FCS release. Support for GNU-style
23755 # TLS on x86 was only introduced in Solaris 9 4/04, replacing the earlier
23756 # Sun style that Sun ld and GCC don't support any longer.
23757 *-*-solaris2.*)
23758 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker and ld.so.1 TLS support" >&5
23759 $as_echo_n "checking linker and ld.so.1 TLS support... " >&6; }
23760 ld_tls_support=no
23761 # Check ld and ld.so.1 TLS support.
23762 if echo "$ld_ver" | grep GNU > /dev/null; then
23763 # Assume all interesting versions of GNU ld have TLS support.
23764 # FIXME: still need ld.so.1 support, i.e. ld version checks below.
23765 ld_tls_support=yes
23766 else
23767 case "$target" in
23768 # Solaris 9/x86 ld has GNU style TLS support since version 1.374.
23769 i?86-*-solaris2.9)
23770 min_tls_ld_vers_minor=374
23772 # Solaris 9/SPARC and Solaris 10+ ld have TLS support since FCS.
23773 sparc*-*-solaris2.9 | *-*-solaris2.1[0-9]*)
23774 min_tls_ld_vers_minor=343
23776 esac
23777 if test "$ld_vers_major" -gt 1 || \
23778 test "$ld_vers_minor" -ge "$min_tls_ld_vers_minor"; then
23779 ld_tls_support=yes
23780 else
23781 set_have_as_tls=no
23784 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_tls_support" >&5
23785 $as_echo "$ld_tls_support" >&6; }
23787 save_LIBS="$LIBS"
23788 save_LDFLAGS="$LDFLAGS"
23789 LIBS=
23790 LDFLAGS=
23792 { $as_echo "$as_me:${as_lineno-$LINENO}: checking library containing $tga_func" >&5
23793 $as_echo_n "checking library containing $tga_func... " >&6; }
23794 # Before Solaris 10, __tls_get_addr (SPARC/x64) resp. ___tls_get_addr
23795 # (32-bit x86) only lived in libthread, so check for that. Keep
23796 # set_have_as_tls if found, disable if not.
23797 as_ac_Search=`$as_echo "ac_cv_search_$tga_func" | $as_tr_sh`
23798 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing $tga_func" >&5
23799 $as_echo_n "checking for library containing $tga_func... " >&6; }
23800 if { as_var=$as_ac_Search; eval "test \"\${$as_var+set}\" = set"; }; then :
23801 $as_echo_n "(cached) " >&6
23802 else
23803 ac_func_search_save_LIBS=$LIBS
23804 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23805 /* end confdefs.h. */
23807 /* Override any GCC internal prototype to avoid an error.
23808 Use char because int might match the return type of a GCC
23809 builtin and then its argument prototype would still apply. */
23810 #ifdef __cplusplus
23811 extern "C"
23812 #endif
23813 char $tga_func ();
23815 main ()
23817 return $tga_func ();
23819 return 0;
23821 _ACEOF
23822 for ac_lib in '' thread; do
23823 if test -z "$ac_lib"; then
23824 ac_res="none required"
23825 else
23826 ac_res=-l$ac_lib
23827 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
23829 if ac_fn_c_try_link "$LINENO"; then :
23830 eval "$as_ac_Search=\$ac_res"
23832 rm -f core conftest.err conftest.$ac_objext \
23833 conftest$ac_exeext
23834 if { as_var=$as_ac_Search; eval "test \"\${$as_var+set}\" = set"; }; then :
23835 break
23837 done
23838 if { as_var=$as_ac_Search; eval "test \"\${$as_var+set}\" = set"; }; then :
23840 else
23841 eval "$as_ac_Search=no"
23843 rm conftest.$ac_ext
23844 LIBS=$ac_func_search_save_LIBS
23846 eval ac_res=\$$as_ac_Search
23847 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
23848 $as_echo "$ac_res" >&6; }
23849 eval ac_res=\$$as_ac_Search
23850 if test "$ac_res" != no; then :
23851 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
23853 else
23854 set_have_as_tls=no
23857 ld_tls_libs="$LIBS"
23858 # Clear LIBS if we cannot support TLS.
23859 if test $set_have_as_tls = no; then
23860 LIBS=
23862 # Always define LIB_TLS_SPEC, even without TLS support.
23864 cat >>confdefs.h <<_ACEOF
23865 #define LIB_TLS_SPEC "$LIBS"
23866 _ACEOF
23868 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIBS" >&5
23869 $as_echo "$LIBS" >&6; }
23871 LIBS="$save_LIBS"
23872 LDFLAGS="$save_LDFLAGS"
23874 esac
23875 if test $set_have_as_tls = yes ; then
23877 $as_echo "#define HAVE_AS_TLS 1" >>confdefs.h
23881 # Target-specific assembler checks.
23883 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker -Bstatic/-Bdynamic option" >&5
23884 $as_echo_n "checking linker -Bstatic/-Bdynamic option... " >&6; }
23885 gcc_cv_ld_static_dynamic=no
23886 gcc_cv_ld_static_option='-Bstatic'
23887 gcc_cv_ld_dynamic_option='-Bdynamic'
23888 if test $in_tree_ld = yes ; then
23889 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
23890 gcc_cv_ld_static_dynamic=yes
23892 elif test x$gcc_cv_ld != x; then
23893 # Check if linker supports -Bstatic/-Bdynamic option
23894 if $gcc_cv_ld --help 2>/dev/null | grep -- -Bstatic > /dev/null \
23895 && $gcc_cv_ld --help 2>/dev/null | grep -- -Bdynamic > /dev/null; then
23896 gcc_cv_ld_static_dynamic=yes
23897 else
23898 case "$target" in
23899 # AIX ld uses -b flags
23900 *-*-aix4.[23]* | *-*-aix[5-9]*)
23901 gcc_cv_ld_static_dynamic=yes
23902 gcc_cv_ld_static_option="-bstatic"
23903 gcc_cv_ld_dynamic_option="-bdynamic"
23905 # HP-UX ld uses -a flags to select between shared and archive.
23906 *-*-hpux*)
23907 if test x"$gnu_ld" = xno; then
23908 gcc_cv_ld_static_dynamic=yes
23909 gcc_cv_ld_static_option="-aarchive_shared"
23910 gcc_cv_ld_dynamic_option="-adefault"
23913 # Solaris 2 ld always supports -Bstatic/-Bdynamic.
23914 *-*-solaris2*)
23915 gcc_cv_ld_static_dynamic=yes
23917 esac
23920 if test x"$gcc_cv_ld_static_dynamic" = xyes; then
23922 $as_echo "#define HAVE_LD_STATIC_DYNAMIC 1" >>confdefs.h
23925 cat >>confdefs.h <<_ACEOF
23926 #define LD_STATIC_OPTION "$gcc_cv_ld_static_option"
23927 _ACEOF
23930 cat >>confdefs.h <<_ACEOF
23931 #define LD_DYNAMIC_OPTION "$gcc_cv_ld_dynamic_option"
23932 _ACEOF
23935 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_static_dynamic" >&5
23936 $as_echo "$gcc_cv_ld_static_dynamic" >&6; }
23938 if test x"$demangler_in_ld" = xyes; then
23939 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker --demangle support" >&5
23940 $as_echo_n "checking linker --demangle support... " >&6; }
23941 gcc_cv_ld_demangle=no
23942 if test $in_tree_ld = yes; then
23943 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 \
23944 gcc_cv_ld_demangle=yes
23946 elif test x$gcc_cv_ld != x -a x"$gnu_ld" = xyes; then
23947 # Check if the GNU linker supports --demangle option
23948 if $gcc_cv_ld --help 2>/dev/null | grep no-demangle > /dev/null; then
23949 gcc_cv_ld_demangle=yes
23952 if test x"$gcc_cv_ld_demangle" = xyes; then
23954 $as_echo "#define HAVE_LD_DEMANGLE 1" >>confdefs.h
23957 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_demangle" >&5
23958 $as_echo "$gcc_cv_ld_demangle" >&6; }
23961 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker plugin support" >&5
23962 $as_echo_n "checking linker plugin support... " >&6; }
23963 gcc_cv_lto_plugin=0
23964 if test -f liblto_plugin.la; then
23965 save_ld_ver="$ld_ver"
23966 save_ld_vers_major="$ld_vers_major"
23967 save_ld_vers_minor="$ld_vers_minor"
23968 save_ld_is_gold="$ld_is_gold"
23970 ld_is_gold=no
23972 if test $in_tree_ld = yes -a x"$ORIGINAL_PLUGIN_LD_FOR_TARGET" = x"$gcc_cv_ld"; then
23973 ld_ver="GNU ld"
23974 # FIXME: ld_is_gold?
23975 ld_vers_major="$gcc_cv_gld_major_version"
23976 ld_vers_minor="$gcc_cv_gld_minor_version"
23977 else
23978 # Determine plugin linker version.
23979 # FIXME: Partial duplicate from above, generalize.
23980 ld_ver=`$ORIGINAL_PLUGIN_LD_FOR_TARGET --version 2>/dev/null | sed 1q`
23981 if echo "$ld_ver" | grep GNU > /dev/null; then
23982 if echo "$ld_ver" | grep "GNU gold" > /dev/null; then
23983 ld_is_gold=yes
23984 ld_vers=`echo $ld_ver | sed -n \
23985 -e 's,^[^)]*[ ]\([0-9][0-9]*\.[0-9][0-9]*[^)]*\)) .*$,\1,p'`
23986 else
23987 ld_vers=`echo $ld_ver | sed -n \
23988 -e 's,^.*[ ]\([0-9][0-9]*\.[0-9][0-9]*.*\)$,\1,p'`
23990 ld_vers_major=`expr "$ld_vers" : '\([0-9]*\)'`
23991 ld_vers_minor=`expr "$ld_vers" : '[0-9]*\.\([0-9]*\)'`
23995 # Determine plugin support.
23996 if echo "$ld_ver" | grep GNU > /dev/null; then
23997 # Require GNU ld or gold 2.21+ for plugin support by default.
23998 if test "$ld_vers_major" -eq 2 -a "$ld_vers_minor" -ge 21; then
23999 gcc_cv_lto_plugin=2
24000 # Allow -fuse-linker-plugin to enable plugin support in GNU gold 2.20.
24001 elif test "$ld_is_gold" = yes -a "$ld_vers_major" -eq 2 -a "$ld_vers_minor" -eq 20; then
24002 gcc_cv_lto_plugin=1
24006 ld_ver="$save_ld_ver"
24007 ld_vers_major="$save_ld_vers_major"
24008 ld_vers_minor="$save_ld_vers_minor"
24009 ld_is_gold="$save_ld_is_gold"
24012 cat >>confdefs.h <<_ACEOF
24013 #define HAVE_LTO_PLUGIN $gcc_cv_lto_plugin
24014 _ACEOF
24016 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_lto_plugin" >&5
24017 $as_echo "$gcc_cv_lto_plugin" >&6; }
24019 case "$target" in
24020 aarch64*-*-*)
24021 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for -mabi option" >&5
24022 $as_echo_n "checking assembler for -mabi option... " >&6; }
24023 if test "${gcc_cv_as_aarch64_mabi+set}" = set; then :
24024 $as_echo_n "(cached) " >&6
24025 else
24026 gcc_cv_as_aarch64_mabi=no
24027 if test x$gcc_cv_as != x; then
24028 $as_echo '.text' > conftest.s
24029 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -mabi=lp64 -o conftest.o conftest.s >&5'
24030 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
24031 (eval $ac_try) 2>&5
24032 ac_status=$?
24033 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24034 test $ac_status = 0; }; }
24035 then
24036 gcc_cv_as_aarch64_mabi=yes
24037 else
24038 echo "configure: failed program was" >&5
24039 cat conftest.s >&5
24041 rm -f conftest.o conftest.s
24044 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_aarch64_mabi" >&5
24045 $as_echo "$gcc_cv_as_aarch64_mabi" >&6; }
24047 if test x$gcc_cv_as_aarch64_mabi = xyes; then
24049 $as_echo "#define HAVE_AS_MABI_OPTION 1" >>confdefs.h
24051 else
24052 if test x$with_abi = xilp32; then
24053 as_fn_error "Assembler does not support -mabi=ilp32.\
24054 Upgrade the Assembler." "$LINENO" 5
24056 if test x"$with_multilib_list" = xdefault; then
24057 TM_MULTILIB_CONFIG=lp64
24058 else
24059 aarch64_multilibs=`echo $with_multilib_list | sed -e 's/,/ /g'`
24060 for aarch64_multilib in ${aarch64_multilibs}; do
24061 case ${aarch64_multilib} in
24062 ilp32)
24063 as_fn_error "Assembler does not support -mabi=ilp32.\
24064 Upgrade the Assembler." "$LINENO" 5
24068 esac
24069 done
24072 # Enable default workaround for AArch64 Cortex-A53 erratum 835769.
24073 # Check whether --enable-fix-cortex-a53-835769 was given.
24074 if test "${enable_fix_cortex_a53_835769+set}" = set; then :
24075 enableval=$enable_fix_cortex_a53_835769;
24076 case $enableval in
24077 yes)
24078 tm_defines="${tm_defines} TARGET_FIX_ERR_A53_835769_DEFAULT=1"
24083 as_fn_error "'$enableval' is an invalid value for --enable-fix-cortex-a53-835769.\
24084 Valid choices are 'yes' and 'no'." "$LINENO" 5
24087 esac
24093 # All TARGET_ABI_OSF targets.
24094 alpha*-*-linux* | alpha*-*-*bsd*)
24095 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for explicit relocation support" >&5
24096 $as_echo_n "checking assembler for explicit relocation support... " >&6; }
24097 if test "${gcc_cv_as_alpha_explicit_relocs+set}" = set; then :
24098 $as_echo_n "(cached) " >&6
24099 else
24100 gcc_cv_as_alpha_explicit_relocs=no
24101 if test $in_tree_gas = yes; then
24102 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 12 \) \* 1000 + 0`
24103 then gcc_cv_as_alpha_explicit_relocs=yes
24105 elif test x$gcc_cv_as != x; then
24106 $as_echo ' .set nomacro
24107 .text
24108 extbl $3, $2, $3 !lituse_bytoff!1
24109 ldq $2, a($29) !literal!1
24110 ldq $4, b($29) !literal!2
24111 ldq_u $3, 0($2) !lituse_base!1
24112 ldq $27, f($29) !literal!5
24113 jsr $26, ($27), f !lituse_jsr!5
24114 ldah $29, 0($26) !gpdisp!3
24115 lda $0, c($29) !gprel
24116 ldah $1, d($29) !gprelhigh
24117 lda $1, d($1) !gprellow
24118 lda $29, 0($29) !gpdisp!3' > conftest.s
24119 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
24120 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
24121 (eval $ac_try) 2>&5
24122 ac_status=$?
24123 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24124 test $ac_status = 0; }; }
24125 then
24126 gcc_cv_as_alpha_explicit_relocs=yes
24127 else
24128 echo "configure: failed program was" >&5
24129 cat conftest.s >&5
24131 rm -f conftest.o conftest.s
24134 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_alpha_explicit_relocs" >&5
24135 $as_echo "$gcc_cv_as_alpha_explicit_relocs" >&6; }
24136 if test $gcc_cv_as_alpha_explicit_relocs = yes; then
24138 $as_echo "#define HAVE_AS_EXPLICIT_RELOCS 1" >>confdefs.h
24141 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for jsrdirect relocation support" >&5
24142 $as_echo_n "checking assembler for jsrdirect relocation support... " >&6; }
24143 if test "${gcc_cv_as_alpha_jsrdirect_relocs+set}" = set; then :
24144 $as_echo_n "(cached) " >&6
24145 else
24146 gcc_cv_as_alpha_jsrdirect_relocs=no
24147 if test $in_tree_gas = yes; then
24148 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 16 \) \* 1000 + 90`
24149 then gcc_cv_as_alpha_jsrdirect_relocs=yes
24151 elif test x$gcc_cv_as != x; then
24152 $as_echo ' .set nomacro
24153 .text
24154 ldq $27, a($29) !literal!1
24155 jsr $26, ($27), a !lituse_jsrdirect!1' > conftest.s
24156 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
24157 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
24158 (eval $ac_try) 2>&5
24159 ac_status=$?
24160 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24161 test $ac_status = 0; }; }
24162 then
24163 gcc_cv_as_alpha_jsrdirect_relocs=yes
24164 else
24165 echo "configure: failed program was" >&5
24166 cat conftest.s >&5
24168 rm -f conftest.o conftest.s
24171 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_alpha_jsrdirect_relocs" >&5
24172 $as_echo "$gcc_cv_as_alpha_jsrdirect_relocs" >&6; }
24173 if test $gcc_cv_as_alpha_jsrdirect_relocs = yes; then
24175 $as_echo "#define HAVE_AS_JSRDIRECT_RELOCS 1" >>confdefs.h
24180 cris-*-*)
24181 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for -no-mul-bug-abort option" >&5
24182 $as_echo_n "checking assembler for -no-mul-bug-abort option... " >&6; }
24183 if test "${gcc_cv_as_cris_no_mul_bug+set}" = set; then :
24184 $as_echo_n "(cached) " >&6
24185 else
24186 gcc_cv_as_cris_no_mul_bug=no
24187 if test $in_tree_gas = yes; then
24188 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 15 \) \* 1000 + 91`
24189 then gcc_cv_as_cris_no_mul_bug=yes
24191 elif test x$gcc_cv_as != x; then
24192 $as_echo '.text' > conftest.s
24193 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -no-mul-bug-abort -o conftest.o conftest.s >&5'
24194 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
24195 (eval $ac_try) 2>&5
24196 ac_status=$?
24197 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24198 test $ac_status = 0; }; }
24199 then
24200 gcc_cv_as_cris_no_mul_bug=yes
24201 else
24202 echo "configure: failed program was" >&5
24203 cat conftest.s >&5
24205 rm -f conftest.o conftest.s
24208 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_cris_no_mul_bug" >&5
24209 $as_echo "$gcc_cv_as_cris_no_mul_bug" >&6; }
24210 if test $gcc_cv_as_cris_no_mul_bug = yes; then
24212 $as_echo "#define HAVE_AS_NO_MUL_BUG_ABORT_OPTION 1" >>confdefs.h
24217 sparc*-*-*)
24218 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .register" >&5
24219 $as_echo_n "checking assembler for .register... " >&6; }
24220 if test "${gcc_cv_as_sparc_register_op+set}" = set; then :
24221 $as_echo_n "(cached) " >&6
24222 else
24223 gcc_cv_as_sparc_register_op=no
24224 if test x$gcc_cv_as != x; then
24225 $as_echo '.register %g2, #scratch' > conftest.s
24226 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
24227 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
24228 (eval $ac_try) 2>&5
24229 ac_status=$?
24230 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24231 test $ac_status = 0; }; }
24232 then
24233 gcc_cv_as_sparc_register_op=yes
24234 else
24235 echo "configure: failed program was" >&5
24236 cat conftest.s >&5
24238 rm -f conftest.o conftest.s
24241 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_sparc_register_op" >&5
24242 $as_echo "$gcc_cv_as_sparc_register_op" >&6; }
24243 if test $gcc_cv_as_sparc_register_op = yes; then
24245 $as_echo "#define HAVE_AS_REGISTER_PSEUDO_OP 1" >>confdefs.h
24249 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for #nobits" >&5
24250 $as_echo_n "checking assembler for #nobits... " >&6; }
24251 if test "${gcc_cv_as_sparc_nobits+set}" = set; then :
24252 $as_echo_n "(cached) " >&6
24253 else
24254 gcc_cv_as_sparc_nobits=no
24255 if test x$gcc_cv_as != x; then
24256 $as_echo '.section "nobits",#alloc,#write,#nobits
24257 .section "progbits",#alloc,#write,#progbits' > conftest.s
24258 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
24259 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
24260 (eval $ac_try) 2>&5
24261 ac_status=$?
24262 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24263 test $ac_status = 0; }; }
24264 then
24265 gcc_cv_as_sparc_nobits=yes
24266 else
24267 echo "configure: failed program was" >&5
24268 cat conftest.s >&5
24270 rm -f conftest.o conftest.s
24273 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_sparc_nobits" >&5
24274 $as_echo "$gcc_cv_as_sparc_nobits" >&6; }
24277 cat >>confdefs.h <<_ACEOF
24278 #define HAVE_AS_SPARC_NOBITS `if test $gcc_cv_as_sparc_nobits = yes; then echo 1; else echo 0; fi`
24279 _ACEOF
24282 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for -relax option" >&5
24283 $as_echo_n "checking assembler for -relax option... " >&6; }
24284 if test "${gcc_cv_as_sparc_relax+set}" = set; then :
24285 $as_echo_n "(cached) " >&6
24286 else
24287 gcc_cv_as_sparc_relax=no
24288 if test x$gcc_cv_as != x; then
24289 $as_echo '.text' > conftest.s
24290 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -relax -o conftest.o conftest.s >&5'
24291 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
24292 (eval $ac_try) 2>&5
24293 ac_status=$?
24294 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24295 test $ac_status = 0; }; }
24296 then
24297 gcc_cv_as_sparc_relax=yes
24298 else
24299 echo "configure: failed program was" >&5
24300 cat conftest.s >&5
24302 rm -f conftest.o conftest.s
24305 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_sparc_relax" >&5
24306 $as_echo "$gcc_cv_as_sparc_relax" >&6; }
24307 if test $gcc_cv_as_sparc_relax = yes; then
24309 $as_echo "#define HAVE_AS_RELAX_OPTION 1" >>confdefs.h
24313 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for GOTDATA_OP relocs" >&5
24314 $as_echo_n "checking assembler for GOTDATA_OP relocs... " >&6; }
24315 if test "${gcc_cv_as_sparc_gotdata_op+set}" = set; then :
24316 $as_echo_n "(cached) " >&6
24317 else
24318 gcc_cv_as_sparc_gotdata_op=no
24319 if test x$gcc_cv_as != x; then
24320 $as_echo '.text
24321 .align 4
24322 foo:
24324 bar:
24325 sethi %gdop_hix22(foo), %g1
24326 xor %g1, %gdop_lox10(foo), %g1
24327 ld [%l7 + %g1], %g2, %gdop(foo)' > conftest.s
24328 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -K PIC -o conftest.o conftest.s >&5'
24329 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
24330 (eval $ac_try) 2>&5
24331 ac_status=$?
24332 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24333 test $ac_status = 0; }; }
24334 then
24335 if test x$gcc_cv_ld != x \
24336 && $gcc_cv_ld -o conftest conftest.o -G > /dev/null 2>&1; then
24337 if test x$gcc_cv_objdump != x; then
24338 if $gcc_cv_objdump -s -j .text conftest 2> /dev/null \
24339 | grep ' 03000004 82186004 c405c001'> /dev/null 2>&1; then
24340 gcc_cv_as_sparc_gotdata_op=no
24341 else
24342 gcc_cv_as_sparc_gotdata_op=yes
24346 rm -f conftest
24347 else
24348 echo "configure: failed program was" >&5
24349 cat conftest.s >&5
24351 rm -f conftest.o conftest.s
24354 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_sparc_gotdata_op" >&5
24355 $as_echo "$gcc_cv_as_sparc_gotdata_op" >&6; }
24356 if test $gcc_cv_as_sparc_gotdata_op = yes; then
24358 $as_echo "#define HAVE_AS_SPARC_GOTDATA_OP 1" >>confdefs.h
24362 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for unaligned pcrel relocs" >&5
24363 $as_echo_n "checking assembler for unaligned pcrel relocs... " >&6; }
24364 if test "${gcc_cv_as_sparc_ua_pcrel+set}" = set; then :
24365 $as_echo_n "(cached) " >&6
24366 else
24367 gcc_cv_as_sparc_ua_pcrel=no
24368 if test x$gcc_cv_as != x; then
24369 $as_echo '.text
24370 foo:
24372 .data
24373 .align 4
24374 .byte 0
24375 .uaword %r_disp32(foo)' > conftest.s
24376 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -K PIC -o conftest.o conftest.s >&5'
24377 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
24378 (eval $ac_try) 2>&5
24379 ac_status=$?
24380 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24381 test $ac_status = 0; }; }
24382 then
24383 if test x$gcc_cv_ld != x \
24384 && $gcc_cv_ld -o conftest conftest.o -G > /dev/null 2>&1; then
24385 gcc_cv_as_sparc_ua_pcrel=yes
24387 rm -f conftest
24388 else
24389 echo "configure: failed program was" >&5
24390 cat conftest.s >&5
24392 rm -f conftest.o conftest.s
24395 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_sparc_ua_pcrel" >&5
24396 $as_echo "$gcc_cv_as_sparc_ua_pcrel" >&6; }
24397 if test $gcc_cv_as_sparc_ua_pcrel = yes; then
24399 $as_echo "#define HAVE_AS_SPARC_UA_PCREL 1" >>confdefs.h
24402 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for unaligned pcrel relocs against hidden symbols" >&5
24403 $as_echo_n "checking assembler for unaligned pcrel relocs against hidden symbols... " >&6; }
24404 if test "${gcc_cv_as_sparc_ua_pcrel_hidden+set}" = set; then :
24405 $as_echo_n "(cached) " >&6
24406 else
24407 gcc_cv_as_sparc_ua_pcrel_hidden=no
24408 if test x$gcc_cv_as != x; then
24409 $as_echo '.data
24410 .align 4
24411 .byte 0x31
24412 .uaword %r_disp32(foo)
24413 .byte 0x32, 0x33, 0x34
24414 .global foo
24415 .hidden foo
24416 foo:
24417 .skip 4' > conftest.s
24418 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -K PIC -o conftest.o conftest.s >&5'
24419 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
24420 (eval $ac_try) 2>&5
24421 ac_status=$?
24422 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24423 test $ac_status = 0; }; }
24424 then
24425 if test x$gcc_cv_ld != x && test x$gcc_cv_objdump != x \
24426 && $gcc_cv_ld -o conftest conftest.o -G > /dev/null 2>&1 \
24427 && $gcc_cv_objdump -s -j .data conftest 2> /dev/null \
24428 | grep ' 31000000 07323334' > /dev/null 2>&1; then
24429 if $gcc_cv_objdump -R conftest 2> /dev/null \
24430 | grep 'DISP32' > /dev/null 2>&1; then
24432 else
24433 gcc_cv_as_sparc_ua_pcrel_hidden=yes
24436 rm -f conftest
24437 else
24438 echo "configure: failed program was" >&5
24439 cat conftest.s >&5
24441 rm -f conftest.o conftest.s
24444 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_sparc_ua_pcrel_hidden" >&5
24445 $as_echo "$gcc_cv_as_sparc_ua_pcrel_hidden" >&6; }
24446 if test $gcc_cv_as_sparc_ua_pcrel_hidden = yes; then
24448 $as_echo "#define HAVE_AS_SPARC_UA_PCREL_HIDDEN 1" >>confdefs.h
24452 fi # unaligned pcrel relocs
24454 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for offsetable %lo()" >&5
24455 $as_echo_n "checking assembler for offsetable %lo()... " >&6; }
24456 if test "${gcc_cv_as_sparc_offsetable_lo10+set}" = set; then :
24457 $as_echo_n "(cached) " >&6
24458 else
24459 gcc_cv_as_sparc_offsetable_lo10=no
24460 if test x$gcc_cv_as != x; then
24461 $as_echo '.text
24462 or %g1, %lo(ab) + 12, %g1
24463 or %g1, %lo(ab + 12), %g1' > conftest.s
24464 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -xarch=v9 -o conftest.o conftest.s >&5'
24465 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
24466 (eval $ac_try) 2>&5
24467 ac_status=$?
24468 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24469 test $ac_status = 0; }; }
24470 then
24471 if test x$gcc_cv_objdump != x \
24472 && $gcc_cv_objdump -s -j .text conftest.o 2> /dev/null \
24473 | grep ' 82106000 82106000' > /dev/null 2>&1; then
24474 gcc_cv_as_sparc_offsetable_lo10=yes
24476 else
24477 echo "configure: failed program was" >&5
24478 cat conftest.s >&5
24480 rm -f conftest.o conftest.s
24483 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_sparc_offsetable_lo10" >&5
24484 $as_echo "$gcc_cv_as_sparc_offsetable_lo10" >&6; }
24485 if test $gcc_cv_as_sparc_offsetable_lo10 = yes; then
24487 $as_echo "#define HAVE_AS_OFFSETABLE_LO10 1" >>confdefs.h
24491 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for FMAF, HPC, and VIS 3.0 instructions" >&5
24492 $as_echo_n "checking assembler for FMAF, HPC, and VIS 3.0 instructions... " >&6; }
24493 if test "${gcc_cv_as_sparc_fmaf+set}" = set; then :
24494 $as_echo_n "(cached) " >&6
24495 else
24496 gcc_cv_as_sparc_fmaf=no
24497 if test x$gcc_cv_as != x; then
24498 $as_echo '.text
24499 .register %g2, #scratch
24500 .register %g3, #scratch
24501 .align 4
24502 fmaddd %f0, %f2, %f4, %f6
24503 addxccc %g1, %g2, %g3
24504 fsrl32 %f2, %f4, %f8
24505 fnaddd %f10, %f12, %f14' > conftest.s
24506 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -xarch=v9d -o conftest.o conftest.s >&5'
24507 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
24508 (eval $ac_try) 2>&5
24509 ac_status=$?
24510 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24511 test $ac_status = 0; }; }
24512 then
24513 gcc_cv_as_sparc_fmaf=yes
24514 else
24515 echo "configure: failed program was" >&5
24516 cat conftest.s >&5
24518 rm -f conftest.o conftest.s
24521 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_sparc_fmaf" >&5
24522 $as_echo "$gcc_cv_as_sparc_fmaf" >&6; }
24523 if test $gcc_cv_as_sparc_fmaf = yes; then
24525 $as_echo "#define HAVE_AS_FMAF_HPC_VIS3 1" >>confdefs.h
24529 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for SPARC4 instructions" >&5
24530 $as_echo_n "checking assembler for SPARC4 instructions... " >&6; }
24531 if test "${gcc_cv_as_sparc_sparc4+set}" = set; then :
24532 $as_echo_n "(cached) " >&6
24533 else
24534 gcc_cv_as_sparc_sparc4=no
24535 if test x$gcc_cv_as != x; then
24536 $as_echo '.text
24537 .register %g2, #scratch
24538 .register %g3, #scratch
24539 .align 4
24540 cxbe %g2, %g3, 1f
24541 1: cwbneg %g2, %g3, 1f
24542 1: sha1
24544 aes_kexpand0 %f4, %f6, %f8
24545 des_round %f38, %f40, %f42, %f44
24546 camellia_f %f54, %f56, %f58, %f60
24547 kasumi_fi_xor %f46, %f48, %f50, %f52' > conftest.s
24548 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -xarch=sparc4 -o conftest.o conftest.s >&5'
24549 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
24550 (eval $ac_try) 2>&5
24551 ac_status=$?
24552 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24553 test $ac_status = 0; }; }
24554 then
24555 gcc_cv_as_sparc_sparc4=yes
24556 else
24557 echo "configure: failed program was" >&5
24558 cat conftest.s >&5
24560 rm -f conftest.o conftest.s
24563 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_sparc_sparc4" >&5
24564 $as_echo "$gcc_cv_as_sparc_sparc4" >&6; }
24565 if test $gcc_cv_as_sparc_sparc4 = yes; then
24567 $as_echo "#define HAVE_AS_SPARC4 1" >>confdefs.h
24571 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for LEON instructions" >&5
24572 $as_echo_n "checking assembler for LEON instructions... " >&6; }
24573 if test "${gcc_cv_as_sparc_leon+set}" = set; then :
24574 $as_echo_n "(cached) " >&6
24575 else
24576 gcc_cv_as_sparc_leon=no
24577 if test x$gcc_cv_as != x; then
24578 $as_echo '.text
24579 .register %g2, #scratch
24580 .register %g3, #scratch
24581 .align 4
24582 smac %g2, %g3, %g1
24583 umac %g2, %g3, %g1
24584 casa [%g2] 0xb, %g3, %g1' > conftest.s
24585 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -Aleon -o conftest.o conftest.s >&5'
24586 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
24587 (eval $ac_try) 2>&5
24588 ac_status=$?
24589 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24590 test $ac_status = 0; }; }
24591 then
24592 gcc_cv_as_sparc_leon=yes
24593 else
24594 echo "configure: failed program was" >&5
24595 cat conftest.s >&5
24597 rm -f conftest.o conftest.s
24600 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_sparc_leon" >&5
24601 $as_echo "$gcc_cv_as_sparc_leon" >&6; }
24602 if test $gcc_cv_as_sparc_leon = yes; then
24604 $as_echo "#define HAVE_AS_LEON 1" >>confdefs.h
24609 i[34567]86-*-* | x86_64-*-*)
24610 case $target_os in
24611 cygwin*)
24612 # Full C++ conformance when using a shared libstdc++-v3 requires some
24613 # support from the Cygwin DLL, which in more recent versions exports
24614 # wrappers to aid in interposing and redirecting operators new, delete,
24615 # etc., as per n2800 #17.6.4.6 [replacement.functions]. Check if we
24616 # are configuring for a version of Cygwin that exports the wrappers.
24617 if test x$host = x$target && test x$host_cpu = xi686; then
24618 ac_fn_c_check_func "$LINENO" "__wrap__Znaj" "ac_cv_func___wrap__Znaj"
24619 if test "x$ac_cv_func___wrap__Znaj" = x""yes; then :
24620 gcc_ac_cygwin_dll_wrappers=yes
24621 else
24622 gcc_ac_cygwin_dll_wrappers=no
24625 else
24626 # Can't check presence of libc functions during cross-compile, so
24627 # we just have to assume we're building for an up-to-date target.
24628 gcc_ac_cygwin_dll_wrappers=yes
24631 cat >>confdefs.h <<_ACEOF
24632 #define USE_CYGWIN_LIBSTDCXX_WRAPPERS `if test $gcc_ac_cygwin_dll_wrappers = yes; then echo 1; else echo 0; fi`
24633 _ACEOF
24635 esac
24636 case $target_os in
24637 cygwin* | pe | mingw32* | interix*)
24638 # Recent binutils allows the three-operand form of ".comm" on PE. This
24639 # definition is used unconditionally to initialise the default state of
24640 # the target option variable that governs usage of the feature.
24641 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .comm with alignment" >&5
24642 $as_echo_n "checking assembler for .comm with alignment... " >&6; }
24643 if test "${gcc_cv_as_comm_has_align+set}" = set; then :
24644 $as_echo_n "(cached) " >&6
24645 else
24646 gcc_cv_as_comm_has_align=no
24647 if test $in_tree_gas = yes; then
24648 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 19 \) \* 1000 + 52`
24649 then gcc_cv_as_comm_has_align=yes
24651 elif test x$gcc_cv_as != x; then
24652 $as_echo '.comm foo,1,32' > conftest.s
24653 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
24654 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
24655 (eval $ac_try) 2>&5
24656 ac_status=$?
24657 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24658 test $ac_status = 0; }; }
24659 then
24660 gcc_cv_as_comm_has_align=yes
24661 else
24662 echo "configure: failed program was" >&5
24663 cat conftest.s >&5
24665 rm -f conftest.o conftest.s
24668 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_comm_has_align" >&5
24669 $as_echo "$gcc_cv_as_comm_has_align" >&6; }
24672 cat >>confdefs.h <<_ACEOF
24673 #define HAVE_GAS_ALIGNED_COMM `if test $gcc_cv_as_comm_has_align = yes; then echo 1; else echo 0; fi`
24674 _ACEOF
24676 # Used for DWARF 2 in PE
24677 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .secrel32 relocs" >&5
24678 $as_echo_n "checking assembler for .secrel32 relocs... " >&6; }
24679 if test "${gcc_cv_as_ix86_pe_secrel32+set}" = set; then :
24680 $as_echo_n "(cached) " >&6
24681 else
24682 gcc_cv_as_ix86_pe_secrel32=no
24683 if test $in_tree_gas = yes; then
24684 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 15 \) \* 1000 + 91`
24685 then gcc_cv_as_ix86_pe_secrel32=yes
24687 elif test x$gcc_cv_as != x; then
24688 $as_echo '.text
24689 foo: nop
24690 .data
24691 .secrel32 foo' > conftest.s
24692 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
24693 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
24694 (eval $ac_try) 2>&5
24695 ac_status=$?
24696 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24697 test $ac_status = 0; }; }
24698 then
24699 if test x$gcc_cv_ld != x \
24700 && $gcc_cv_ld -o conftest conftest.o > /dev/null 2>&1; then
24701 gcc_cv_as_ix86_pe_secrel32=yes
24703 rm -f conftest
24704 else
24705 echo "configure: failed program was" >&5
24706 cat conftest.s >&5
24708 rm -f conftest.o conftest.s
24711 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_ix86_pe_secrel32" >&5
24712 $as_echo "$gcc_cv_as_ix86_pe_secrel32" >&6; }
24713 if test $gcc_cv_as_ix86_pe_secrel32 = yes; then
24715 $as_echo "#define HAVE_GAS_PE_SECREL32_RELOC 1" >>confdefs.h
24718 # Test if the assembler supports the extended form of the .section
24719 # directive that specifies section alignment. LTO support uses this,
24720 # but normally only after installation, so we warn but don't fail the
24721 # configure if LTO is enabled but the assembler does not support it.
24722 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .section with alignment" >&5
24723 $as_echo_n "checking assembler for .section with alignment... " >&6; }
24724 if test "${gcc_cv_as_section_has_align+set}" = set; then :
24725 $as_echo_n "(cached) " >&6
24726 else
24727 gcc_cv_as_section_has_align=no
24728 if test $in_tree_gas = yes; then
24729 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 20 \) \* 1000 + 1`
24730 then gcc_cv_as_section_has_align=yes
24732 elif test x$gcc_cv_as != x; then
24733 $as_echo '.section lto_test,"dr0"' > conftest.s
24734 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -fatal-warnings -o conftest.o conftest.s >&5'
24735 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
24736 (eval $ac_try) 2>&5
24737 ac_status=$?
24738 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24739 test $ac_status = 0; }; }
24740 then
24741 gcc_cv_as_section_has_align=yes
24742 else
24743 echo "configure: failed program was" >&5
24744 cat conftest.s >&5
24746 rm -f conftest.o conftest.s
24749 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_section_has_align" >&5
24750 $as_echo "$gcc_cv_as_section_has_align" >&6; }
24752 if test x$gcc_cv_as_section_has_align != xyes; then
24753 case ",$enable_languages," in
24754 *,lto,*)
24755 { $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
24756 $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;}
24758 esac
24760 # Test if the assembler supports the section flag 'e' for specifying
24761 # an excluded section.
24762 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .section with e" >&5
24763 $as_echo_n "checking assembler for .section with e... " >&6; }
24764 if test "${gcc_cv_as_section_has_e+set}" = set; then :
24765 $as_echo_n "(cached) " >&6
24766 else
24767 gcc_cv_as_section_has_e=no
24768 if test $in_tree_gas = yes; then
24769 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 22 \) \* 1000 + 51`
24770 then gcc_cv_as_section_has_e=yes
24772 elif test x$gcc_cv_as != x; then
24773 $as_echo '.section foo1,"e"
24774 .byte 0,0,0,0' > conftest.s
24775 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
24776 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
24777 (eval $ac_try) 2>&5
24778 ac_status=$?
24779 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24780 test $ac_status = 0; }; }
24781 then
24782 gcc_cv_as_section_has_e=yes
24783 else
24784 echo "configure: failed program was" >&5
24785 cat conftest.s >&5
24787 rm -f conftest.o conftest.s
24790 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_section_has_e" >&5
24791 $as_echo "$gcc_cv_as_section_has_e" >&6; }
24794 cat >>confdefs.h <<_ACEOF
24795 #define HAVE_GAS_SECTION_EXCLUDE `if test $gcc_cv_as_section_has_e = yes; then echo 1; else echo 0; fi`
24796 _ACEOF
24799 esac
24801 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for filds and fists mnemonics" >&5
24802 $as_echo_n "checking assembler for filds and fists mnemonics... " >&6; }
24803 if test "${gcc_cv_as_ix86_filds+set}" = set; then :
24804 $as_echo_n "(cached) " >&6
24805 else
24806 gcc_cv_as_ix86_filds=no
24807 if test x$gcc_cv_as != x; then
24808 $as_echo 'filds mem; fists mem' > conftest.s
24809 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
24810 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
24811 (eval $ac_try) 2>&5
24812 ac_status=$?
24813 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24814 test $ac_status = 0; }; }
24815 then
24816 gcc_cv_as_ix86_filds=yes
24817 else
24818 echo "configure: failed program was" >&5
24819 cat conftest.s >&5
24821 rm -f conftest.o conftest.s
24824 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_ix86_filds" >&5
24825 $as_echo "$gcc_cv_as_ix86_filds" >&6; }
24826 if test $gcc_cv_as_ix86_filds = yes; then
24828 $as_echo "#define HAVE_AS_IX86_FILDS 1" >>confdefs.h
24832 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for fildq and fistpq mnemonics" >&5
24833 $as_echo_n "checking assembler for fildq and fistpq mnemonics... " >&6; }
24834 if test "${gcc_cv_as_ix86_fildq+set}" = set; then :
24835 $as_echo_n "(cached) " >&6
24836 else
24837 gcc_cv_as_ix86_fildq=no
24838 if test x$gcc_cv_as != x; then
24839 $as_echo 'fildq mem; fistpq mem' > conftest.s
24840 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
24841 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
24842 (eval $ac_try) 2>&5
24843 ac_status=$?
24844 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24845 test $ac_status = 0; }; }
24846 then
24847 gcc_cv_as_ix86_fildq=yes
24848 else
24849 echo "configure: failed program was" >&5
24850 cat conftest.s >&5
24852 rm -f conftest.o conftest.s
24855 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_ix86_fildq" >&5
24856 $as_echo "$gcc_cv_as_ix86_fildq" >&6; }
24857 if test $gcc_cv_as_ix86_fildq = yes; then
24859 $as_echo "#define HAVE_AS_IX86_FILDQ 1" >>confdefs.h
24863 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for cmov syntax" >&5
24864 $as_echo_n "checking assembler for cmov syntax... " >&6; }
24865 if test "${gcc_cv_as_ix86_cmov_sun_syntax+set}" = set; then :
24866 $as_echo_n "(cached) " >&6
24867 else
24868 gcc_cv_as_ix86_cmov_sun_syntax=no
24869 if test x$gcc_cv_as != x; then
24870 $as_echo 'cmovl.l %edx, %eax' > 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_cmov_sun_syntax=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_cmov_sun_syntax" >&5
24887 $as_echo "$gcc_cv_as_ix86_cmov_sun_syntax" >&6; }
24888 if test $gcc_cv_as_ix86_cmov_sun_syntax = yes; then
24890 $as_echo "#define HAVE_AS_IX86_CMOV_SUN_SYNTAX 1" >>confdefs.h
24894 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for ffreep mnemonic" >&5
24895 $as_echo_n "checking assembler for ffreep mnemonic... " >&6; }
24896 if test "${gcc_cv_as_ix86_ffreep+set}" = set; then :
24897 $as_echo_n "(cached) " >&6
24898 else
24899 gcc_cv_as_ix86_ffreep=no
24900 if test x$gcc_cv_as != x; then
24901 $as_echo 'ffreep %st(1)' > conftest.s
24902 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
24903 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
24904 (eval $ac_try) 2>&5
24905 ac_status=$?
24906 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24907 test $ac_status = 0; }; }
24908 then
24909 gcc_cv_as_ix86_ffreep=yes
24910 else
24911 echo "configure: failed program was" >&5
24912 cat conftest.s >&5
24914 rm -f conftest.o conftest.s
24917 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_ix86_ffreep" >&5
24918 $as_echo "$gcc_cv_as_ix86_ffreep" >&6; }
24919 if test $gcc_cv_as_ix86_ffreep = yes; then
24921 $as_echo "#define HAVE_AS_IX86_FFREEP 1" >>confdefs.h
24925 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .quad directive" >&5
24926 $as_echo_n "checking assembler for .quad directive... " >&6; }
24927 if test "${gcc_cv_as_ix86_quad+set}" = set; then :
24928 $as_echo_n "(cached) " >&6
24929 else
24930 gcc_cv_as_ix86_quad=no
24931 if test x$gcc_cv_as != x; then
24932 $as_echo '.quad 0' > conftest.s
24933 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
24934 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
24935 (eval $ac_try) 2>&5
24936 ac_status=$?
24937 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24938 test $ac_status = 0; }; }
24939 then
24940 gcc_cv_as_ix86_quad=yes
24941 else
24942 echo "configure: failed program was" >&5
24943 cat conftest.s >&5
24945 rm -f conftest.o conftest.s
24948 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_ix86_quad" >&5
24949 $as_echo "$gcc_cv_as_ix86_quad" >&6; }
24950 if test $gcc_cv_as_ix86_quad = yes; then
24952 $as_echo "#define HAVE_AS_IX86_QUAD 1" >>confdefs.h
24956 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for sahf mnemonic" >&5
24957 $as_echo_n "checking assembler for sahf mnemonic... " >&6; }
24958 if test "${gcc_cv_as_ix86_sahf+set}" = set; then :
24959 $as_echo_n "(cached) " >&6
24960 else
24961 gcc_cv_as_ix86_sahf=no
24962 if test x$gcc_cv_as != x; then
24963 $as_echo '.code64
24964 sahf' > conftest.s
24965 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
24966 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
24967 (eval $ac_try) 2>&5
24968 ac_status=$?
24969 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24970 test $ac_status = 0; }; }
24971 then
24972 gcc_cv_as_ix86_sahf=yes
24973 else
24974 echo "configure: failed program was" >&5
24975 cat conftest.s >&5
24977 rm -f conftest.o conftest.s
24980 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_ix86_sahf" >&5
24981 $as_echo "$gcc_cv_as_ix86_sahf" >&6; }
24982 if test $gcc_cv_as_ix86_sahf = yes; then
24984 $as_echo "#define HAVE_AS_IX86_SAHF 1" >>confdefs.h
24988 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for interunit movq mnemonic" >&5
24989 $as_echo_n "checking assembler for interunit movq mnemonic... " >&6; }
24990 if test "${gcc_cv_as_ix86_interunit_movq+set}" = set; then :
24991 $as_echo_n "(cached) " >&6
24992 else
24993 gcc_cv_as_ix86_interunit_movq=no
24994 if test x$gcc_cv_as != x; then
24995 $as_echo '.code64
24996 movq %mm0, %rax
24997 movq %rax, %xmm0' > conftest.s
24998 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
24999 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
25000 (eval $ac_try) 2>&5
25001 ac_status=$?
25002 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25003 test $ac_status = 0; }; }
25004 then
25005 gcc_cv_as_ix86_interunit_movq=yes
25006 else
25007 echo "configure: failed program was" >&5
25008 cat conftest.s >&5
25010 rm -f conftest.o conftest.s
25013 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_ix86_interunit_movq" >&5
25014 $as_echo "$gcc_cv_as_ix86_interunit_movq" >&6; }
25017 cat >>confdefs.h <<_ACEOF
25018 #define HAVE_AS_IX86_INTERUNIT_MOVQ `if test $gcc_cv_as_ix86_interunit_movq = yes; then echo 1; else echo 0; fi`
25019 _ACEOF
25022 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for hle prefixes" >&5
25023 $as_echo_n "checking assembler for hle prefixes... " >&6; }
25024 if test "${gcc_cv_as_ix86_hle+set}" = set; then :
25025 $as_echo_n "(cached) " >&6
25026 else
25027 gcc_cv_as_ix86_hle=no
25028 if test x$gcc_cv_as != x; then
25029 $as_echo 'lock xacquire cmpxchg %esi, (%ecx)' > conftest.s
25030 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
25031 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
25032 (eval $ac_try) 2>&5
25033 ac_status=$?
25034 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25035 test $ac_status = 0; }; }
25036 then
25037 gcc_cv_as_ix86_hle=yes
25038 else
25039 echo "configure: failed program was" >&5
25040 cat conftest.s >&5
25042 rm -f conftest.o conftest.s
25045 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_ix86_hle" >&5
25046 $as_echo "$gcc_cv_as_ix86_hle" >&6; }
25047 if test $gcc_cv_as_ix86_hle = yes; then
25049 $as_echo "#define HAVE_AS_IX86_HLE 1" >>confdefs.h
25053 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for swap suffix" >&5
25054 $as_echo_n "checking assembler for swap suffix... " >&6; }
25055 if test "${gcc_cv_as_ix86_swap+set}" = set; then :
25056 $as_echo_n "(cached) " >&6
25057 else
25058 gcc_cv_as_ix86_swap=no
25059 if test x$gcc_cv_as != x; then
25060 $as_echo 'movl.s %esp, %ebp' > conftest.s
25061 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
25062 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
25063 (eval $ac_try) 2>&5
25064 ac_status=$?
25065 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25066 test $ac_status = 0; }; }
25067 then
25068 gcc_cv_as_ix86_swap=yes
25069 else
25070 echo "configure: failed program was" >&5
25071 cat conftest.s >&5
25073 rm -f conftest.o conftest.s
25076 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_ix86_swap" >&5
25077 $as_echo "$gcc_cv_as_ix86_swap" >&6; }
25078 if test $gcc_cv_as_ix86_swap = yes; then
25080 $as_echo "#define HAVE_AS_IX86_SWAP 1" >>confdefs.h
25084 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for different section symbol subtraction" >&5
25085 $as_echo_n "checking assembler for different section symbol subtraction... " >&6; }
25086 if test "${gcc_cv_as_ix86_diff_sect_delta+set}" = set; then :
25087 $as_echo_n "(cached) " >&6
25088 else
25089 gcc_cv_as_ix86_diff_sect_delta=no
25090 if test x$gcc_cv_as != x; then
25091 $as_echo '.section .rodata
25092 .L1:
25093 .long .L2-.L1
25094 .long .L3-.L1
25095 .text
25096 .L3: nop
25097 .L2: nop' > conftest.s
25098 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
25099 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
25100 (eval $ac_try) 2>&5
25101 ac_status=$?
25102 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25103 test $ac_status = 0; }; }
25104 then
25105 gcc_cv_as_ix86_diff_sect_delta=yes
25106 else
25107 echo "configure: failed program was" >&5
25108 cat conftest.s >&5
25110 rm -f conftest.o conftest.s
25113 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_ix86_diff_sect_delta" >&5
25114 $as_echo "$gcc_cv_as_ix86_diff_sect_delta" >&6; }
25115 if test $gcc_cv_as_ix86_diff_sect_delta = yes; then
25117 $as_echo "#define HAVE_AS_IX86_DIFF_SECT_DELTA 1" >>confdefs.h
25121 # These two are used unconditionally by i386.[ch]; it is to be defined
25122 # to 1 if the feature is present, 0 otherwise.
25123 as_ix86_gotoff_in_data_opt=
25124 if test x$gas = xyes; then
25125 as_ix86_gotoff_in_data_opt="--32"
25127 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for GOTOFF in data" >&5
25128 $as_echo_n "checking assembler for GOTOFF in data... " >&6; }
25129 if test "${gcc_cv_as_ix86_gotoff_in_data+set}" = set; then :
25130 $as_echo_n "(cached) " >&6
25131 else
25132 gcc_cv_as_ix86_gotoff_in_data=no
25133 if test $in_tree_gas = yes; then
25134 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 11 \) \* 1000 + 0`
25135 then gcc_cv_as_ix86_gotoff_in_data=yes
25137 elif test x$gcc_cv_as != x; then
25138 $as_echo ' .text
25139 .L0:
25141 .data
25142 .long .L0@GOTOFF' > conftest.s
25143 if { ac_try='$gcc_cv_as $gcc_cv_as_flags $as_ix86_gotoff_in_data_opt -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_ix86_gotoff_in_data=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_ix86_gotoff_in_data" >&5
25159 $as_echo "$gcc_cv_as_ix86_gotoff_in_data" >&6; }
25162 cat >>confdefs.h <<_ACEOF
25163 #define HAVE_AS_GOTOFF_IN_DATA `if test $gcc_cv_as_ix86_gotoff_in_data = yes; then echo 1; else echo 0; fi`
25164 _ACEOF
25167 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for rep and lock prefix" >&5
25168 $as_echo_n "checking assembler for rep and lock prefix... " >&6; }
25169 if test "${gcc_cv_as_ix86_rep_lock_prefix+set}" = set; then :
25170 $as_echo_n "(cached) " >&6
25171 else
25172 gcc_cv_as_ix86_rep_lock_prefix=no
25173 if test x$gcc_cv_as != x; then
25174 $as_echo 'rep movsl
25175 rep ret
25176 rep nop
25177 rep bsf %ecx, %eax
25178 rep bsr %ecx, %eax
25179 lock addl %edi, (%eax,%esi)
25180 lock orl $0, (%esp)' > conftest.s
25181 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
25182 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
25183 (eval $ac_try) 2>&5
25184 ac_status=$?
25185 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25186 test $ac_status = 0; }; }
25187 then
25188 gcc_cv_as_ix86_rep_lock_prefix=yes
25189 else
25190 echo "configure: failed program was" >&5
25191 cat conftest.s >&5
25193 rm -f conftest.o conftest.s
25196 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_ix86_rep_lock_prefix" >&5
25197 $as_echo "$gcc_cv_as_ix86_rep_lock_prefix" >&6; }
25198 if test $gcc_cv_as_ix86_rep_lock_prefix = yes; then
25200 $as_echo "#define HAVE_AS_IX86_REP_LOCK_PREFIX 1" >>confdefs.h
25204 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for ud2 mnemonic" >&5
25205 $as_echo_n "checking assembler for ud2 mnemonic... " >&6; }
25206 if test "${gcc_cv_as_ix86_ud2+set}" = set; then :
25207 $as_echo_n "(cached) " >&6
25208 else
25209 gcc_cv_as_ix86_ud2=no
25210 if test x$gcc_cv_as != x; then
25211 $as_echo 'ud2' > conftest.s
25212 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
25213 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
25214 (eval $ac_try) 2>&5
25215 ac_status=$?
25216 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25217 test $ac_status = 0; }; }
25218 then
25219 gcc_cv_as_ix86_ud2=yes
25220 else
25221 echo "configure: failed program was" >&5
25222 cat conftest.s >&5
25224 rm -f conftest.o conftest.s
25227 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_ix86_ud2" >&5
25228 $as_echo "$gcc_cv_as_ix86_ud2" >&6; }
25229 if test $gcc_cv_as_ix86_ud2 = yes; then
25231 $as_echo "#define HAVE_AS_IX86_UD2 1" >>confdefs.h
25235 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for R_386_TLS_GD_PLT reloc" >&5
25236 $as_echo_n "checking assembler for R_386_TLS_GD_PLT reloc... " >&6; }
25237 if test "${gcc_cv_as_ix86_tlsgdplt+set}" = set; then :
25238 $as_echo_n "(cached) " >&6
25239 else
25240 gcc_cv_as_ix86_tlsgdplt=no
25241 if test x$gcc_cv_as != x; then
25242 $as_echo 'call tls_gd@tlsgdplt' > conftest.s
25243 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
25244 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
25245 (eval $ac_try) 2>&5
25246 ac_status=$?
25247 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25248 test $ac_status = 0; }; }
25249 then
25250 if test x$gcc_cv_ld != x \
25251 && $gcc_cv_ld -o conftest conftest.o -G > /dev/null 2>&1; then
25252 gcc_cv_as_ix86_tlsgdplt=yes
25254 rm -f conftest
25255 else
25256 echo "configure: failed program was" >&5
25257 cat conftest.s >&5
25259 rm -f conftest.o conftest.s
25262 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_ix86_tlsgdplt" >&5
25263 $as_echo "$gcc_cv_as_ix86_tlsgdplt" >&6; }
25264 if test $gcc_cv_as_ix86_tlsgdplt = yes; then
25266 $as_echo "#define HAVE_AS_IX86_TLSGDPLT 1" >>confdefs.h
25270 conftest_s='
25271 .section .tdata,"aw'$tls_section_flag'",@progbits
25272 tls_ld:
25273 .section .text,"ax",@progbits
25274 call tls_ld@tlsldmplt'
25275 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for R_386_TLS_LDM_PLT reloc" >&5
25276 $as_echo_n "checking assembler for R_386_TLS_LDM_PLT reloc... " >&6; }
25277 if test "${gcc_cv_as_ix86_tlsldmplt+set}" = set; then :
25278 $as_echo_n "(cached) " >&6
25279 else
25280 gcc_cv_as_ix86_tlsldmplt=no
25281 if test x$gcc_cv_as != x; then
25282 $as_echo "$conftest_s" > conftest.s
25283 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
25284 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
25285 (eval $ac_try) 2>&5
25286 ac_status=$?
25287 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25288 test $ac_status = 0; }; }
25289 then
25290 if test x$gcc_cv_ld != x \
25291 && $gcc_cv_ld -o conftest conftest.o -G > /dev/null 2>&1; then
25292 gcc_cv_as_ix86_tlsldmplt=yes
25294 rm -f conftest
25295 else
25296 echo "configure: failed program was" >&5
25297 cat conftest.s >&5
25299 rm -f conftest.o conftest.s
25302 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_ix86_tlsldmplt" >&5
25303 $as_echo "$gcc_cv_as_ix86_tlsldmplt" >&6; }
25306 cat >>confdefs.h <<_ACEOF
25307 #define HAVE_AS_IX86_TLSLDMPLT `if test $gcc_cv_as_ix86_tlsldmplt = yes; then echo 1; else echo 0; fi`
25308 _ACEOF
25311 # Enforce 32-bit output with gas and gld.
25312 if test x$gas = xyes; then
25313 as_ix86_tls_ldm_opt="--32"
25315 if echo "$ld_ver" | grep GNU > /dev/null; then
25316 if $gcc_cv_ld -V 2>/dev/null | grep elf_i386_sol2 > /dev/null; then
25317 ld_ix86_tls_ldm_opt="-melf_i386_sol2"
25318 else
25319 ld_ix86_tls_ldm_opt="-melf_i386"
25322 conftest_s='
25323 .section .text,"ax",@progbits
25324 .globl _start
25325 .type _start, @function
25326 _start:
25327 leal value@tlsldm(%ebx), %eax
25328 call ___tls_get_addr@plt
25330 .section .tdata,"aw'$tls_section_flag'",@progbits
25331 .type value, @object
25332 value:'
25333 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for R_386_TLS_LDM reloc" >&5
25334 $as_echo_n "checking assembler for R_386_TLS_LDM reloc... " >&6; }
25335 if test "${gcc_cv_as_ix86_tlsldm+set}" = set; then :
25336 $as_echo_n "(cached) " >&6
25337 else
25338 gcc_cv_as_ix86_tlsldm=no
25339 if test x$gcc_cv_as != x; then
25340 $as_echo "$conftest_s" > conftest.s
25341 if { ac_try='$gcc_cv_as $gcc_cv_as_flags $as_ix86_tls_ldm_opt -o conftest.o conftest.s >&5'
25342 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
25343 (eval $ac_try) 2>&5
25344 ac_status=$?
25345 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25346 test $ac_status = 0; }; }
25347 then
25348 if test x$gcc_cv_ld != x && test x$gcc_cv_objdump != x \
25349 && $gcc_cv_ld $ld_ix86_tls_ldm_opt -o conftest conftest.o $ld_tls_libs -lc > /dev/null 2>&1; then
25350 if $gcc_cv_objdump -d conftest 2>/dev/null | grep nop > /dev/null \
25351 || dis conftest 2>/dev/null | grep nop > /dev/null; then
25352 gcc_cv_as_ix86_tlsldm=yes
25355 rm -f conftest
25356 else
25357 echo "configure: failed program was" >&5
25358 cat conftest.s >&5
25360 rm -f conftest.o conftest.s
25363 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_ix86_tlsldm" >&5
25364 $as_echo "$gcc_cv_as_ix86_tlsldm" >&6; }
25367 cat >>confdefs.h <<_ACEOF
25368 #define HAVE_AS_IX86_TLSLDM `if test $gcc_cv_as_ix86_tlsldm = yes; then echo 1; else echo 0; fi`
25369 _ACEOF
25374 ia64*-*-*)
25375 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for ltoffx and ldxmov relocs" >&5
25376 $as_echo_n "checking assembler for ltoffx and ldxmov relocs... " >&6; }
25377 if test "${gcc_cv_as_ia64_ltoffx_ldxmov_relocs+set}" = set; then :
25378 $as_echo_n "(cached) " >&6
25379 else
25380 gcc_cv_as_ia64_ltoffx_ldxmov_relocs=no
25381 if test $in_tree_gas = yes; then
25382 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 14 \) \* 1000 + 0`
25383 then gcc_cv_as_ia64_ltoffx_ldxmov_relocs=yes
25385 elif test x$gcc_cv_as != x; then
25386 $as_echo ' .text
25387 addl r15 = @ltoffx(x#), gp
25389 ld8.mov r16 = [r15], x#' > conftest.s
25390 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
25391 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
25392 (eval $ac_try) 2>&5
25393 ac_status=$?
25394 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25395 test $ac_status = 0; }; }
25396 then
25397 gcc_cv_as_ia64_ltoffx_ldxmov_relocs=yes
25398 else
25399 echo "configure: failed program was" >&5
25400 cat conftest.s >&5
25402 rm -f conftest.o conftest.s
25405 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_ia64_ltoffx_ldxmov_relocs" >&5
25406 $as_echo "$gcc_cv_as_ia64_ltoffx_ldxmov_relocs" >&6; }
25407 if test $gcc_cv_as_ia64_ltoffx_ldxmov_relocs = yes; then
25409 $as_echo "#define HAVE_AS_LTOFFX_LDXMOV_RELOCS 1" >>confdefs.h
25415 powerpc*-*-*)
25416 case $target in
25417 *-*-aix*) conftest_s=' .machine "pwr5"
25418 .csect .text[PR]
25419 mfcr 3,128';;
25420 *-*-darwin*)
25421 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .machine directive support" >&5
25422 $as_echo_n "checking assembler for .machine directive support... " >&6; }
25423 if test "${gcc_cv_as_machine_directive+set}" = set; then :
25424 $as_echo_n "(cached) " >&6
25425 else
25426 gcc_cv_as_machine_directive=no
25427 if test x$gcc_cv_as != x; then
25428 $as_echo ' .machine ppc7400' > conftest.s
25429 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
25430 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
25431 (eval $ac_try) 2>&5
25432 ac_status=$?
25433 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25434 test $ac_status = 0; }; }
25435 then
25436 gcc_cv_as_machine_directive=yes
25437 else
25438 echo "configure: failed program was" >&5
25439 cat conftest.s >&5
25441 rm -f conftest.o conftest.s
25444 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_machine_directive" >&5
25445 $as_echo "$gcc_cv_as_machine_directive" >&6; }
25447 if test x$gcc_cv_as_machine_directive != xyes; then
25448 echo "*** This target requires an assembler supporting \".machine\"" >&2
25449 echo you can get it from: ftp://gcc.gnu.org/pub/gcc/infrastructure/cctools-528.5.dmg >&2
25450 test x$build = x$target && exit 1
25452 conftest_s=' .text
25453 mfcr r3,128';;
25454 *) conftest_s=' .machine power4
25455 .text
25456 mfcr 3,128';;
25457 esac
25459 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for mfcr field support" >&5
25460 $as_echo_n "checking assembler for mfcr field support... " >&6; }
25461 if test "${gcc_cv_as_powerpc_mfcrf+set}" = set; then :
25462 $as_echo_n "(cached) " >&6
25463 else
25464 gcc_cv_as_powerpc_mfcrf=no
25465 if test $in_tree_gas = yes; then
25466 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 14 \) \* 1000 + 0`
25467 then gcc_cv_as_powerpc_mfcrf=yes
25469 elif test x$gcc_cv_as != x; then
25470 $as_echo "$conftest_s" > conftest.s
25471 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
25472 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
25473 (eval $ac_try) 2>&5
25474 ac_status=$?
25475 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25476 test $ac_status = 0; }; }
25477 then
25478 gcc_cv_as_powerpc_mfcrf=yes
25479 else
25480 echo "configure: failed program was" >&5
25481 cat conftest.s >&5
25483 rm -f conftest.o conftest.s
25486 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_powerpc_mfcrf" >&5
25487 $as_echo "$gcc_cv_as_powerpc_mfcrf" >&6; }
25488 if test $gcc_cv_as_powerpc_mfcrf = yes; then
25490 $as_echo "#define HAVE_AS_MFCRF 1" >>confdefs.h
25494 case $target in
25495 *-*-aix*) conftest_s=' .machine "pwr5"
25496 .csect .text[PR]
25497 popcntb 3,3';;
25498 *) conftest_s=' .machine power5
25499 .text
25500 popcntb 3,3';;
25501 esac
25503 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for popcntb support" >&5
25504 $as_echo_n "checking assembler for popcntb support... " >&6; }
25505 if test "${gcc_cv_as_powerpc_popcntb+set}" = set; then :
25506 $as_echo_n "(cached) " >&6
25507 else
25508 gcc_cv_as_powerpc_popcntb=no
25509 if test $in_tree_gas = yes; then
25510 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 17 \) \* 1000 + 0`
25511 then gcc_cv_as_powerpc_popcntb=yes
25513 elif test x$gcc_cv_as != x; then
25514 $as_echo "$conftest_s" > conftest.s
25515 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
25516 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
25517 (eval $ac_try) 2>&5
25518 ac_status=$?
25519 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25520 test $ac_status = 0; }; }
25521 then
25522 gcc_cv_as_powerpc_popcntb=yes
25523 else
25524 echo "configure: failed program was" >&5
25525 cat conftest.s >&5
25527 rm -f conftest.o conftest.s
25530 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_powerpc_popcntb" >&5
25531 $as_echo "$gcc_cv_as_powerpc_popcntb" >&6; }
25532 if test $gcc_cv_as_powerpc_popcntb = yes; then
25534 $as_echo "#define HAVE_AS_POPCNTB 1" >>confdefs.h
25538 case $target in
25539 *-*-aix*) conftest_s=' .machine "pwr5x"
25540 .csect .text[PR]
25541 frin 1,1';;
25542 *) conftest_s=' .machine power5
25543 .text
25544 frin 1,1';;
25545 esac
25547 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for fp round support" >&5
25548 $as_echo_n "checking assembler for fp round support... " >&6; }
25549 if test "${gcc_cv_as_powerpc_fprnd+set}" = set; then :
25550 $as_echo_n "(cached) " >&6
25551 else
25552 gcc_cv_as_powerpc_fprnd=no
25553 if test $in_tree_gas = yes; then
25554 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 17 \) \* 1000 + 0`
25555 then gcc_cv_as_powerpc_fprnd=yes
25557 elif test x$gcc_cv_as != x; then
25558 $as_echo "$conftest_s" > conftest.s
25559 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
25560 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
25561 (eval $ac_try) 2>&5
25562 ac_status=$?
25563 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25564 test $ac_status = 0; }; }
25565 then
25566 gcc_cv_as_powerpc_fprnd=yes
25567 else
25568 echo "configure: failed program was" >&5
25569 cat conftest.s >&5
25571 rm -f conftest.o conftest.s
25574 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_powerpc_fprnd" >&5
25575 $as_echo "$gcc_cv_as_powerpc_fprnd" >&6; }
25576 if test $gcc_cv_as_powerpc_fprnd = yes; then
25578 $as_echo "#define HAVE_AS_FPRND 1" >>confdefs.h
25582 case $target in
25583 *-*-aix*) conftest_s=' .machine "pwr6"
25584 .csect .text[PR]
25585 mffgpr 1,3';;
25586 *) conftest_s=' .machine power6
25587 .text
25588 mffgpr 1,3';;
25589 esac
25591 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for move fp gpr support" >&5
25592 $as_echo_n "checking assembler for move fp gpr support... " >&6; }
25593 if test "${gcc_cv_as_powerpc_mfpgpr+set}" = set; then :
25594 $as_echo_n "(cached) " >&6
25595 else
25596 gcc_cv_as_powerpc_mfpgpr=no
25597 if test $in_tree_gas = yes; then
25598 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 19 \) \* 1000 + 2`
25599 then gcc_cv_as_powerpc_mfpgpr=yes
25601 elif test x$gcc_cv_as != x; then
25602 $as_echo "$conftest_s" > conftest.s
25603 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
25604 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
25605 (eval $ac_try) 2>&5
25606 ac_status=$?
25607 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25608 test $ac_status = 0; }; }
25609 then
25610 gcc_cv_as_powerpc_mfpgpr=yes
25611 else
25612 echo "configure: failed program was" >&5
25613 cat conftest.s >&5
25615 rm -f conftest.o conftest.s
25618 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_powerpc_mfpgpr" >&5
25619 $as_echo "$gcc_cv_as_powerpc_mfpgpr" >&6; }
25620 if test $gcc_cv_as_powerpc_mfpgpr = yes; then
25622 $as_echo "#define HAVE_AS_MFPGPR 1" >>confdefs.h
25626 case $target in
25627 *-*-aix*) conftest_s=' .csect .text[PR]
25628 LCF..0:
25629 addis 11,30,_GLOBAL_OFFSET_TABLE_-LCF..0@ha';;
25630 *-*-darwin*)
25631 conftest_s=' .text
25632 LCF0:
25633 addis r11,r30,_GLOBAL_OFFSET_TABLE_-LCF0@ha';;
25634 *) conftest_s=' .text
25635 .LCF0:
25636 addis 11,30,_GLOBAL_OFFSET_TABLE_-.LCF0@ha';;
25637 esac
25639 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for rel16 relocs" >&5
25640 $as_echo_n "checking assembler for rel16 relocs... " >&6; }
25641 if test "${gcc_cv_as_powerpc_rel16+set}" = set; then :
25642 $as_echo_n "(cached) " >&6
25643 else
25644 gcc_cv_as_powerpc_rel16=no
25645 if test $in_tree_gas = yes; then
25646 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 17 \) \* 1000 + 0`
25647 then gcc_cv_as_powerpc_rel16=yes
25649 elif test x$gcc_cv_as != x; then
25650 $as_echo "$conftest_s" > conftest.s
25651 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -a32 -o conftest.o conftest.s >&5'
25652 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
25653 (eval $ac_try) 2>&5
25654 ac_status=$?
25655 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25656 test $ac_status = 0; }; }
25657 then
25658 gcc_cv_as_powerpc_rel16=yes
25659 else
25660 echo "configure: failed program was" >&5
25661 cat conftest.s >&5
25663 rm -f conftest.o conftest.s
25666 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_powerpc_rel16" >&5
25667 $as_echo "$gcc_cv_as_powerpc_rel16" >&6; }
25668 if test $gcc_cv_as_powerpc_rel16 = yes; then
25670 $as_echo "#define HAVE_AS_REL16 1" >>confdefs.h
25674 case $target in
25675 *-*-aix*) conftest_s=' .machine "pwr6"
25676 .csect .text[PR]
25677 cmpb 3,4,5';;
25678 *) conftest_s=' .machine power6
25679 .text
25680 cmpb 3,4,5';;
25681 esac
25683 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for compare bytes support" >&5
25684 $as_echo_n "checking assembler for compare bytes support... " >&6; }
25685 if test "${gcc_cv_as_powerpc_cmpb+set}" = set; then :
25686 $as_echo_n "(cached) " >&6
25687 else
25688 gcc_cv_as_powerpc_cmpb=no
25689 if test $in_tree_gas = yes; then
25690 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 19 \) \* 1000 + 2`
25691 then gcc_cv_as_powerpc_cmpb=yes
25693 elif test x$gcc_cv_as != x; then
25694 $as_echo "$conftest_s" > conftest.s
25695 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -a32 -o conftest.o conftest.s >&5'
25696 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
25697 (eval $ac_try) 2>&5
25698 ac_status=$?
25699 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25700 test $ac_status = 0; }; }
25701 then
25702 gcc_cv_as_powerpc_cmpb=yes
25703 else
25704 echo "configure: failed program was" >&5
25705 cat conftest.s >&5
25707 rm -f conftest.o conftest.s
25710 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_powerpc_cmpb" >&5
25711 $as_echo "$gcc_cv_as_powerpc_cmpb" >&6; }
25712 if test $gcc_cv_as_powerpc_cmpb = yes; then
25714 $as_echo "#define HAVE_AS_CMPB 1" >>confdefs.h
25718 case $target in
25719 *-*-aix*) conftest_s=' .machine "pwr6"
25720 .csect .text[PR]
25721 dadd 1,2,3';;
25722 *) conftest_s=' .machine power6
25723 .text
25724 dadd 1,2,3';;
25725 esac
25727 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for decimal float support" >&5
25728 $as_echo_n "checking assembler for decimal float support... " >&6; }
25729 if test "${gcc_cv_as_powerpc_dfp+set}" = set; then :
25730 $as_echo_n "(cached) " >&6
25731 else
25732 gcc_cv_as_powerpc_dfp=no
25733 if test $in_tree_gas = yes; then
25734 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 19 \) \* 1000 + 2`
25735 then gcc_cv_as_powerpc_dfp=yes
25737 elif test x$gcc_cv_as != x; then
25738 $as_echo "$conftest_s" > conftest.s
25739 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -a32 -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_powerpc_dfp=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_powerpc_dfp" >&5
25755 $as_echo "$gcc_cv_as_powerpc_dfp" >&6; }
25756 if test $gcc_cv_as_powerpc_dfp = yes; then
25758 $as_echo "#define HAVE_AS_DFP 1" >>confdefs.h
25762 case $target in
25763 *-*-aix*) conftest_s=' .machine "pwr7"
25764 .csect .text[PR]
25765 lxvd2x 1,2,3';;
25766 *) conftest_s=' .machine power7
25767 .text
25768 lxvd2x 1,2,3';;
25769 esac
25771 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for vector-scalar support" >&5
25772 $as_echo_n "checking assembler for vector-scalar support... " >&6; }
25773 if test "${gcc_cv_as_powerpc_vsx+set}" = set; then :
25774 $as_echo_n "(cached) " >&6
25775 else
25776 gcc_cv_as_powerpc_vsx=no
25777 if test $in_tree_gas = yes; then
25778 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 19 \) \* 1000 + 2`
25779 then gcc_cv_as_powerpc_vsx=yes
25781 elif test x$gcc_cv_as != x; then
25782 $as_echo "$conftest_s" > conftest.s
25783 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -a32 -o conftest.o conftest.s >&5'
25784 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
25785 (eval $ac_try) 2>&5
25786 ac_status=$?
25787 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25788 test $ac_status = 0; }; }
25789 then
25790 gcc_cv_as_powerpc_vsx=yes
25791 else
25792 echo "configure: failed program was" >&5
25793 cat conftest.s >&5
25795 rm -f conftest.o conftest.s
25798 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_powerpc_vsx" >&5
25799 $as_echo "$gcc_cv_as_powerpc_vsx" >&6; }
25800 if test $gcc_cv_as_powerpc_vsx = yes; then
25802 $as_echo "#define HAVE_AS_VSX 1" >>confdefs.h
25806 case $target in
25807 *-*-aix*) conftest_s=' .machine "pwr7"
25808 .csect .text[PR]
25809 popcntd 3,3';;
25810 *) conftest_s=' .machine power7
25811 .text
25812 popcntd 3,3';;
25813 esac
25815 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for popcntd support" >&5
25816 $as_echo_n "checking assembler for popcntd support... " >&6; }
25817 if test "${gcc_cv_as_powerpc_popcntd+set}" = set; then :
25818 $as_echo_n "(cached) " >&6
25819 else
25820 gcc_cv_as_powerpc_popcntd=no
25821 if test $in_tree_gas = yes; then
25822 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 19 \) \* 1000 + 2`
25823 then gcc_cv_as_powerpc_popcntd=yes
25825 elif test x$gcc_cv_as != x; then
25826 $as_echo "$conftest_s" > conftest.s
25827 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -a32 -o conftest.o conftest.s >&5'
25828 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
25829 (eval $ac_try) 2>&5
25830 ac_status=$?
25831 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25832 test $ac_status = 0; }; }
25833 then
25834 gcc_cv_as_powerpc_popcntd=yes
25835 else
25836 echo "configure: failed program was" >&5
25837 cat conftest.s >&5
25839 rm -f conftest.o conftest.s
25842 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_powerpc_popcntd" >&5
25843 $as_echo "$gcc_cv_as_powerpc_popcntd" >&6; }
25844 if test $gcc_cv_as_powerpc_popcntd = yes; then
25846 $as_echo "#define HAVE_AS_POPCNTD 1" >>confdefs.h
25850 case $target in
25851 *-*-aix*) conftest_s=' .machine "pwr8"
25852 .csect .text[PR]';;
25853 *) conftest_s=' .machine power8
25854 .text';;
25855 esac
25857 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for power8 support" >&5
25858 $as_echo_n "checking assembler for power8 support... " >&6; }
25859 if test "${gcc_cv_as_powerpc_power8+set}" = set; then :
25860 $as_echo_n "(cached) " >&6
25861 else
25862 gcc_cv_as_powerpc_power8=no
25863 if test $in_tree_gas = yes; then
25864 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 19 \) \* 1000 + 2`
25865 then gcc_cv_as_powerpc_power8=yes
25867 elif test x$gcc_cv_as != x; then
25868 $as_echo "$conftest_s" > conftest.s
25869 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -a32 -o conftest.o conftest.s >&5'
25870 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
25871 (eval $ac_try) 2>&5
25872 ac_status=$?
25873 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25874 test $ac_status = 0; }; }
25875 then
25876 gcc_cv_as_powerpc_power8=yes
25877 else
25878 echo "configure: failed program was" >&5
25879 cat conftest.s >&5
25881 rm -f conftest.o conftest.s
25884 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_powerpc_power8" >&5
25885 $as_echo "$gcc_cv_as_powerpc_power8" >&6; }
25886 if test $gcc_cv_as_powerpc_power8 = yes; then
25888 $as_echo "#define HAVE_AS_POWER8 1" >>confdefs.h
25892 case $target in
25893 *-*-aix*) conftest_s=' .csect .text[PR]
25894 lwsync';;
25895 *) conftest_s=' .text
25896 lwsync';;
25897 esac
25899 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for lwsync support" >&5
25900 $as_echo_n "checking assembler for lwsync support... " >&6; }
25901 if test "${gcc_cv_as_powerpc_lwsync+set}" = set; then :
25902 $as_echo_n "(cached) " >&6
25903 else
25904 gcc_cv_as_powerpc_lwsync=no
25905 if test $in_tree_gas = yes; then
25906 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 19 \) \* 1000 + 2`
25907 then gcc_cv_as_powerpc_lwsync=yes
25909 elif test x$gcc_cv_as != x; then
25910 $as_echo "$conftest_s" > conftest.s
25911 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -a32 -o conftest.o conftest.s >&5'
25912 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
25913 (eval $ac_try) 2>&5
25914 ac_status=$?
25915 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25916 test $ac_status = 0; }; }
25917 then
25918 gcc_cv_as_powerpc_lwsync=yes
25919 else
25920 echo "configure: failed program was" >&5
25921 cat conftest.s >&5
25923 rm -f conftest.o conftest.s
25926 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_powerpc_lwsync" >&5
25927 $as_echo "$gcc_cv_as_powerpc_lwsync" >&6; }
25928 if test $gcc_cv_as_powerpc_lwsync = yes; then
25930 $as_echo "#define HAVE_AS_LWSYNC 1" >>confdefs.h
25934 case $target in
25935 *-*-aix*) conftest_s=' .machine "476"
25936 .csect .text[PR]
25937 dci 0';;
25938 *) conftest_s=' .machine "476"
25939 .text
25940 dci 0';;
25941 esac
25943 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for data cache invalidate support" >&5
25944 $as_echo_n "checking assembler for data cache invalidate support... " >&6; }
25945 if test "${gcc_cv_as_powerpc_dci+set}" = set; then :
25946 $as_echo_n "(cached) " >&6
25947 else
25948 gcc_cv_as_powerpc_dci=no
25949 if test $in_tree_gas = yes; then
25950 if test $gcc_cv_gas_vers -ge `expr \( \( 9 \* 1000 \) + 99 \) \* 1000 + 0`
25951 then gcc_cv_as_powerpc_dci=yes
25953 elif test x$gcc_cv_as != x; then
25954 $as_echo "$conftest_s" > conftest.s
25955 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -a32 -o conftest.o conftest.s >&5'
25956 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
25957 (eval $ac_try) 2>&5
25958 ac_status=$?
25959 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25960 test $ac_status = 0; }; }
25961 then
25962 gcc_cv_as_powerpc_dci=yes
25963 else
25964 echo "configure: failed program was" >&5
25965 cat conftest.s >&5
25967 rm -f conftest.o conftest.s
25970 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_powerpc_dci" >&5
25971 $as_echo "$gcc_cv_as_powerpc_dci" >&6; }
25972 if test $gcc_cv_as_powerpc_dci = yes; then
25974 $as_echo "#define HAVE_AS_DCI 1" >>confdefs.h
25978 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .gnu_attribute support" >&5
25979 $as_echo_n "checking assembler for .gnu_attribute support... " >&6; }
25980 if test "${gcc_cv_as_powerpc_gnu_attribute+set}" = set; then :
25981 $as_echo_n "(cached) " >&6
25982 else
25983 gcc_cv_as_powerpc_gnu_attribute=no
25984 if test $in_tree_gas = yes; then
25985 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 18 \) \* 1000 + 0`
25986 then gcc_cv_as_powerpc_gnu_attribute=yes
25988 elif test x$gcc_cv_as != x; then
25989 $as_echo '.gnu_attribute 4,1' > conftest.s
25990 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
25991 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
25992 (eval $ac_try) 2>&5
25993 ac_status=$?
25994 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25995 test $ac_status = 0; }; }
25996 then
25997 gcc_cv_as_powerpc_gnu_attribute=yes
25998 else
25999 echo "configure: failed program was" >&5
26000 cat conftest.s >&5
26002 rm -f conftest.o conftest.s
26005 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_powerpc_gnu_attribute" >&5
26006 $as_echo "$gcc_cv_as_powerpc_gnu_attribute" >&6; }
26007 if test $gcc_cv_as_powerpc_gnu_attribute = yes; then
26009 $as_echo "#define HAVE_AS_GNU_ATTRIBUTE 1" >>confdefs.h
26013 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for tls marker support" >&5
26014 $as_echo_n "checking assembler for tls marker support... " >&6; }
26015 if test "${gcc_cv_as_powerpc_tls_markers+set}" = set; then :
26016 $as_echo_n "(cached) " >&6
26017 else
26018 gcc_cv_as_powerpc_tls_markers=no
26019 if test $in_tree_gas = yes; then
26020 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 20 \) \* 1000 + 0`
26021 then gcc_cv_as_powerpc_tls_markers=yes
26023 elif test x$gcc_cv_as != x; then
26024 $as_echo ' bl __tls_get_addr(x@tlsgd)' > conftest.s
26025 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
26026 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
26027 (eval $ac_try) 2>&5
26028 ac_status=$?
26029 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
26030 test $ac_status = 0; }; }
26031 then
26032 gcc_cv_as_powerpc_tls_markers=yes
26033 else
26034 echo "configure: failed program was" >&5
26035 cat conftest.s >&5
26037 rm -f conftest.o conftest.s
26040 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_powerpc_tls_markers" >&5
26041 $as_echo "$gcc_cv_as_powerpc_tls_markers" >&6; }
26042 if test $gcc_cv_as_powerpc_tls_markers = yes; then
26044 $as_echo "#define HAVE_AS_TLS_MARKERS 1" >>confdefs.h
26048 case $target in
26049 *-*-aix*)
26050 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .ref support" >&5
26051 $as_echo_n "checking assembler for .ref support... " >&6; }
26052 if test "${gcc_cv_as_aix_ref+set}" = set; then :
26053 $as_echo_n "(cached) " >&6
26054 else
26055 gcc_cv_as_aix_ref=no
26056 if test $in_tree_gas = yes; then
26057 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 21 \) \* 1000 + 0`
26058 then gcc_cv_as_aix_ref=yes
26060 elif test x$gcc_cv_as != x; then
26061 $as_echo ' .csect stuff[rw]
26062 stuff:
26063 .long 1
26064 .extern sym
26065 .ref sym
26066 ' > conftest.s
26067 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
26068 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
26069 (eval $ac_try) 2>&5
26070 ac_status=$?
26071 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
26072 test $ac_status = 0; }; }
26073 then
26074 gcc_cv_as_aix_ref=yes
26075 else
26076 echo "configure: failed program was" >&5
26077 cat conftest.s >&5
26079 rm -f conftest.o conftest.s
26082 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_aix_ref" >&5
26083 $as_echo "$gcc_cv_as_aix_ref" >&6; }
26084 if test $gcc_cv_as_aix_ref = yes; then
26086 $as_echo "#define HAVE_AS_REF 1" >>confdefs.h
26090 esac
26093 mips*-*-*)
26094 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for explicit relocation support" >&5
26095 $as_echo_n "checking assembler for explicit relocation support... " >&6; }
26096 if test "${gcc_cv_as_mips_explicit_relocs+set}" = set; then :
26097 $as_echo_n "(cached) " >&6
26098 else
26099 gcc_cv_as_mips_explicit_relocs=no
26100 if test $in_tree_gas = yes; then
26101 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 14 \) \* 1000 + 0`
26102 then gcc_cv_as_mips_explicit_relocs=yes
26104 elif test x$gcc_cv_as != x; then
26105 $as_echo ' lw $4,%gp_rel(foo)($4)' > conftest.s
26106 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
26107 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
26108 (eval $ac_try) 2>&5
26109 ac_status=$?
26110 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
26111 test $ac_status = 0; }; }
26112 then
26113 gcc_cv_as_mips_explicit_relocs=yes
26114 else
26115 echo "configure: failed program was" >&5
26116 cat conftest.s >&5
26118 rm -f conftest.o conftest.s
26121 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_mips_explicit_relocs" >&5
26122 $as_echo "$gcc_cv_as_mips_explicit_relocs" >&6; }
26123 if test $gcc_cv_as_mips_explicit_relocs = yes; then
26124 if test x$target_cpu_default = x
26125 then target_cpu_default=MASK_EXPLICIT_RELOCS
26126 else target_cpu_default="($target_cpu_default)|MASK_EXPLICIT_RELOCS"
26129 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for -mno-shared support" >&5
26130 $as_echo_n "checking assembler for -mno-shared support... " >&6; }
26131 if test "${gcc_cv_as_mips_no_shared+set}" = set; then :
26132 $as_echo_n "(cached) " >&6
26133 else
26134 gcc_cv_as_mips_no_shared=no
26135 if test $in_tree_gas = yes; then
26136 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 16 \) \* 1000 + 0`
26137 then gcc_cv_as_mips_no_shared=yes
26139 elif test x$gcc_cv_as != x; then
26140 $as_echo 'nop' > conftest.s
26141 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -mno-shared -o conftest.o conftest.s >&5'
26142 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
26143 (eval $ac_try) 2>&5
26144 ac_status=$?
26145 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
26146 test $ac_status = 0; }; }
26147 then
26148 gcc_cv_as_mips_no_shared=yes
26149 else
26150 echo "configure: failed program was" >&5
26151 cat conftest.s >&5
26153 rm -f conftest.o conftest.s
26156 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_mips_no_shared" >&5
26157 $as_echo "$gcc_cv_as_mips_no_shared" >&6; }
26158 if test $gcc_cv_as_mips_no_shared = yes; then
26160 $as_echo "#define HAVE_AS_NO_SHARED 1" >>confdefs.h
26164 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .gnu_attribute support" >&5
26165 $as_echo_n "checking assembler for .gnu_attribute support... " >&6; }
26166 if test "${gcc_cv_as_mips_gnu_attribute+set}" = set; then :
26167 $as_echo_n "(cached) " >&6
26168 else
26169 gcc_cv_as_mips_gnu_attribute=no
26170 if test $in_tree_gas = yes; then
26171 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 18 \) \* 1000 + 0`
26172 then gcc_cv_as_mips_gnu_attribute=yes
26174 elif test x$gcc_cv_as != x; then
26175 $as_echo '.gnu_attribute 4,1' > conftest.s
26176 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
26177 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
26178 (eval $ac_try) 2>&5
26179 ac_status=$?
26180 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
26181 test $ac_status = 0; }; }
26182 then
26183 gcc_cv_as_mips_gnu_attribute=yes
26184 else
26185 echo "configure: failed program was" >&5
26186 cat conftest.s >&5
26188 rm -f conftest.o conftest.s
26191 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_mips_gnu_attribute" >&5
26192 $as_echo "$gcc_cv_as_mips_gnu_attribute" >&6; }
26193 if test $gcc_cv_as_mips_gnu_attribute = yes; then
26195 $as_echo "#define HAVE_AS_GNU_ATTRIBUTE 1" >>confdefs.h
26199 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .module support" >&5
26200 $as_echo_n "checking assembler for .module support... " >&6; }
26201 if test "${gcc_cv_as_mips_dot_module+set}" = set; then :
26202 $as_echo_n "(cached) " >&6
26203 else
26204 gcc_cv_as_mips_dot_module=no
26205 if test x$gcc_cv_as != x; then
26206 $as_echo '.module fp=32' > conftest.s
26207 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
26208 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
26209 (eval $ac_try) 2>&5
26210 ac_status=$?
26211 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
26212 test $ac_status = 0; }; }
26213 then
26214 gcc_cv_as_mips_dot_module=yes
26215 else
26216 echo "configure: failed program was" >&5
26217 cat conftest.s >&5
26219 rm -f conftest.o conftest.s
26222 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_mips_dot_module" >&5
26223 $as_echo "$gcc_cv_as_mips_dot_module" >&6; }
26224 if test $gcc_cv_as_mips_dot_module = yes; then
26226 $as_echo "#define HAVE_AS_DOT_MODULE 1" >>confdefs.h
26229 if test x$gcc_cv_as_mips_dot_module = xno \
26230 && test x$with_fp_32 != x; then
26231 as_fn_error "Requesting --with-fp-32= requires assembler support for .module." "$LINENO" 5
26234 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .micromips support" >&5
26235 $as_echo_n "checking assembler for .micromips support... " >&6; }
26236 if test "${gcc_cv_as_micromips_support+set}" = set; then :
26237 $as_echo_n "(cached) " >&6
26238 else
26239 gcc_cv_as_micromips_support=no
26240 if test x$gcc_cv_as != x; then
26241 $as_echo '.set micromips' > conftest.s
26242 if { ac_try='$gcc_cv_as $gcc_cv_as_flags --fatal-warnings -o conftest.o conftest.s >&5'
26243 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
26244 (eval $ac_try) 2>&5
26245 ac_status=$?
26246 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
26247 test $ac_status = 0; }; }
26248 then
26249 gcc_cv_as_micromips_support=yes
26250 else
26251 echo "configure: failed program was" >&5
26252 cat conftest.s >&5
26254 rm -f conftest.o conftest.s
26257 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_micromips_support" >&5
26258 $as_echo "$gcc_cv_as_micromips_support" >&6; }
26259 if test $gcc_cv_as_micromips_support = yes; then
26261 $as_echo "#define HAVE_GAS_MICROMIPS 1" >>confdefs.h
26265 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .dtprelword support" >&5
26266 $as_echo_n "checking assembler for .dtprelword support... " >&6; }
26267 if test "${gcc_cv_as_mips_dtprelword+set}" = set; then :
26268 $as_echo_n "(cached) " >&6
26269 else
26270 gcc_cv_as_mips_dtprelword=no
26271 if test $in_tree_gas = yes; then
26272 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 18 \) \* 1000 + 0`
26273 then gcc_cv_as_mips_dtprelword=yes
26275 elif test x$gcc_cv_as != x; then
26276 $as_echo '.section .tdata,"awT",@progbits
26278 .word 2
26279 .text
26280 .dtprelword x+0x8000' > conftest.s
26281 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
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 gcc_cv_as_mips_dtprelword=yes
26289 else
26290 echo "configure: failed program was" >&5
26291 cat conftest.s >&5
26293 rm -f conftest.o conftest.s
26296 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_mips_dtprelword" >&5
26297 $as_echo "$gcc_cv_as_mips_dtprelword" >&6; }
26298 if test $gcc_cv_as_mips_dtprelword = yes; then
26300 $as_echo "#define HAVE_AS_DTPRELWORD 1" >>confdefs.h
26304 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for DSPR1 mult with four accumulators support" >&5
26305 $as_echo_n "checking assembler for DSPR1 mult with four accumulators support... " >&6; }
26306 if test "${gcc_cv_as_mips_dspr1_mult+set}" = set; then :
26307 $as_echo_n "(cached) " >&6
26308 else
26309 gcc_cv_as_mips_dspr1_mult=no
26310 if test x$gcc_cv_as != x; then
26311 $as_echo ' .set mips32r2
26312 .set nodspr2
26313 .set dsp
26314 madd $ac3,$4,$5
26315 maddu $ac3,$4,$5
26316 msub $ac3,$4,$5
26317 msubu $ac3,$4,$5
26318 mult $ac3,$4,$5
26319 multu $ac3,$4,$5' > conftest.s
26320 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
26321 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
26322 (eval $ac_try) 2>&5
26323 ac_status=$?
26324 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
26325 test $ac_status = 0; }; }
26326 then
26327 gcc_cv_as_mips_dspr1_mult=yes
26328 else
26329 echo "configure: failed program was" >&5
26330 cat conftest.s >&5
26332 rm -f conftest.o conftest.s
26335 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_mips_dspr1_mult" >&5
26336 $as_echo "$gcc_cv_as_mips_dspr1_mult" >&6; }
26337 if test $gcc_cv_as_mips_dspr1_mult = yes; then
26339 $as_echo "#define HAVE_AS_DSPR1_MULT 1" >>confdefs.h
26343 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler and linker for explicit JALR relocation" >&5
26344 $as_echo_n "checking assembler and linker for explicit JALR relocation... " >&6; }
26345 gcc_cv_as_ld_jalr_reloc=no
26346 if test $gcc_cv_as_mips_explicit_relocs = yes; then
26347 if test $in_tree_ld = yes ; then
26348 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 \
26349 && test $in_tree_ld_is_elf = yes; then
26350 gcc_cv_as_ld_jalr_reloc=yes
26352 elif test x$gcc_cv_as != x -a x$gcc_cv_ld != x -a x$gcc_cv_objdump != x; then
26353 echo ' .ent x' > conftest.s
26354 echo 'x: ld $2,%got_disp(y)($3)' >> conftest.s
26355 echo ' ld $25,%call16(y)($28)' >> conftest.s
26356 echo ' .reloc 1f,R_MIPS_JALR,y' >> conftest.s
26357 echo '1: jalr $25' >> conftest.s
26358 echo ' .reloc 1f,R_MIPS_JALR,x' >> conftest.s
26359 echo '1: jalr $25' >> conftest.s
26360 echo ' .end x' >> conftest.s
26361 if $gcc_cv_as -o conftest.o conftest.s >/dev/null 2>&5 \
26362 && $gcc_cv_ld -shared -o conftest.so conftest.o >/dev/null 2>&5; then
26363 if $gcc_cv_objdump -d conftest.so | grep jalr >/dev/null 2>&1 \
26364 && $gcc_cv_objdump -d conftest.so | grep "bal.*<x>" >/dev/null 2>&1; then
26365 gcc_cv_as_ld_jalr_reloc=yes
26368 rm -f conftest.*
26371 if test $gcc_cv_as_ld_jalr_reloc = yes; then
26372 if test x$target_cpu_default = x; then
26373 target_cpu_default=MASK_RELAX_PIC_CALLS
26374 else
26375 target_cpu_default="($target_cpu_default)|MASK_RELAX_PIC_CALLS"
26378 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_ld_jalr_reloc" >&5
26379 $as_echo "$gcc_cv_as_ld_jalr_reloc" >&6; }
26381 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker for .eh_frame personality relaxation" >&5
26382 $as_echo_n "checking linker for .eh_frame personality relaxation... " >&6; }
26383 if test "${gcc_cv_ld_mips_personality_relaxation+set}" = set; then :
26384 $as_echo_n "(cached) " >&6
26385 else
26386 gcc_cv_ld_mips_personality_relaxation=no
26387 if test $in_tree_ld = yes ; then
26388 if test "$gcc_cv_gld_major_version" -eq 2 \
26389 -a "$gcc_cv_gld_minor_version" -ge 21 \
26390 -o "$gcc_cv_gld_major_version" -gt 2; then
26391 gcc_cv_ld_mips_personality_relaxation=yes
26393 elif test x$gcc_cv_as != x \
26394 -a x$gcc_cv_ld != x \
26395 -a x$gcc_cv_readelf != x ; then
26396 cat > conftest.s <<EOF
26397 .cfi_startproc
26398 .cfi_personality 0x80,indirect_ptr
26399 .ent test
26400 test:
26402 .end test
26403 .cfi_endproc
26405 .section .data,"aw",@progbits
26406 indirect_ptr:
26407 .dc.a personality
26409 if $gcc_cv_as -KPIC -o conftest.o conftest.s > /dev/null 2>&1 \
26410 && $gcc_cv_ld -o conftest conftest.o -shared > /dev/null 2>&1; then
26411 if $gcc_cv_readelf -d conftest 2>&1 \
26412 | grep TEXTREL > /dev/null 2>&1; then
26414 elif $gcc_cv_readelf --relocs conftest 2>&1 \
26415 | grep 'R_MIPS_REL32 *$' > /dev/null 2>&1; then
26417 else
26418 gcc_cv_ld_mips_personality_relaxation=yes
26422 rm -f conftest.s conftest.o conftest
26424 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_mips_personality_relaxation" >&5
26425 $as_echo "$gcc_cv_ld_mips_personality_relaxation" >&6; }
26426 if test x$gcc_cv_ld_mips_personality_relaxation = xyes; then
26428 $as_echo "#define HAVE_LD_PERSONALITY_RELAXATION 1" >>confdefs.h
26432 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for -mnan= support" >&5
26433 $as_echo_n "checking assembler for -mnan= support... " >&6; }
26434 if test "${gcc_cv_as_mips_nan+set}" = set; then :
26435 $as_echo_n "(cached) " >&6
26436 else
26437 gcc_cv_as_mips_nan=no
26438 if test x$gcc_cv_as != x; then
26439 $as_echo '' > conftest.s
26440 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -mnan=2008 -o conftest.o conftest.s >&5'
26441 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
26442 (eval $ac_try) 2>&5
26443 ac_status=$?
26444 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
26445 test $ac_status = 0; }; }
26446 then
26447 gcc_cv_as_mips_nan=yes
26448 else
26449 echo "configure: failed program was" >&5
26450 cat conftest.s >&5
26452 rm -f conftest.o conftest.s
26455 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_mips_nan" >&5
26456 $as_echo "$gcc_cv_as_mips_nan" >&6; }
26457 if test $gcc_cv_as_mips_nan = yes; then
26459 $as_echo "#define HAVE_AS_NAN 1" >>confdefs.h
26462 if test x$gcc_cv_as_mips_nan = xno \
26463 && test x$with_nan != x; then
26464 as_fn_error "Requesting --with-nan= requires assembler support for -mnan=" "$LINENO" 5
26467 esac
26469 # Mips and HP-UX need the GNU assembler.
26470 # Linux on IA64 might be able to use the Intel assembler.
26472 case "$target" in
26473 mips*-*-* | *-*-hpux* )
26474 if test x$gas_flag = xyes \
26475 || test x"$host" != x"$build" \
26476 || test ! -x "$gcc_cv_as" \
26477 || "$gcc_cv_as" -v < /dev/null 2>&1 | grep GNU > /dev/null; then
26479 else
26480 echo "*** This configuration requires the GNU assembler" >&2
26481 exit 1
26484 esac
26486 # ??? Not all targets support dwarf2 debug_line, even within a version
26487 # of gas. Moreover, we need to emit a valid instruction to trigger any
26488 # info to the output file. So, as supported targets are added to gas 2.11,
26489 # add some instruction here to (also) show we expect this might work.
26490 # ??? Once 2.11 is released, probably need to add first known working
26491 # version to the per-target configury.
26492 case "$cpu_type" in
26493 aarch64 | alpha | arm | avr | bfin | cris | i386 | m32c | m68k | microblaze \
26494 | mips | nios2 | pa | rs6000 | score | sparc | spu | tilegx | tilepro \
26495 | xstormy16 | xtensa)
26496 insn="nop"
26498 ia64 | s390)
26499 insn="nop 0"
26501 mmix)
26502 insn="swym 0"
26504 esac
26505 if test x"$insn" != x; then
26506 conftest_s="\
26507 .file 1 \"conftest.s\"
26508 .loc 1 3 0
26509 $insn"
26510 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for dwarf2 debug_line support" >&5
26511 $as_echo_n "checking assembler for dwarf2 debug_line support... " >&6; }
26512 if test "${gcc_cv_as_dwarf2_debug_line+set}" = set; then :
26513 $as_echo_n "(cached) " >&6
26514 else
26515 gcc_cv_as_dwarf2_debug_line=no
26516 if test $in_tree_gas = yes; then
26517 if test $in_tree_gas_is_elf = yes \
26518 && test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 11 \) \* 1000 + 0`
26519 then gcc_cv_as_dwarf2_debug_line=yes
26521 elif test x$gcc_cv_as != x; then
26522 $as_echo "$conftest_s" > conftest.s
26523 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
26524 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
26525 (eval $ac_try) 2>&5
26526 ac_status=$?
26527 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
26528 test $ac_status = 0; }; }
26529 then
26530 if test x$gcc_cv_objdump != x \
26531 && $gcc_cv_objdump -h conftest.o 2> /dev/null \
26532 | grep debug_line > /dev/null 2>&1; then
26533 gcc_cv_as_dwarf2_debug_line=yes
26535 else
26536 echo "configure: failed program was" >&5
26537 cat conftest.s >&5
26539 rm -f conftest.o conftest.s
26542 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_dwarf2_debug_line" >&5
26543 $as_echo "$gcc_cv_as_dwarf2_debug_line" >&6; }
26546 # The .debug_line file table must be in the exact order that
26547 # we specified the files, since these indices are also used
26548 # by DW_AT_decl_file. Approximate this test by testing if
26549 # the assembler bitches if the same index is assigned twice.
26550 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for buggy dwarf2 .file directive" >&5
26551 $as_echo_n "checking assembler for buggy dwarf2 .file directive... " >&6; }
26552 if test "${gcc_cv_as_dwarf2_file_buggy+set}" = set; then :
26553 $as_echo_n "(cached) " >&6
26554 else
26555 gcc_cv_as_dwarf2_file_buggy=no
26556 if test x$gcc_cv_as != x; then
26557 $as_echo ' .file 1 "foo.s"
26558 .file 1 "bar.s"' > conftest.s
26559 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
26560 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
26561 (eval $ac_try) 2>&5
26562 ac_status=$?
26563 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
26564 test $ac_status = 0; }; }
26565 then
26566 gcc_cv_as_dwarf2_file_buggy=yes
26567 else
26568 echo "configure: failed program was" >&5
26569 cat conftest.s >&5
26571 rm -f conftest.o conftest.s
26574 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_dwarf2_file_buggy" >&5
26575 $as_echo "$gcc_cv_as_dwarf2_file_buggy" >&6; }
26578 if test $gcc_cv_as_dwarf2_debug_line = yes \
26579 && test $gcc_cv_as_dwarf2_file_buggy = no; then
26581 $as_echo "#define HAVE_AS_DWARF2_DEBUG_LINE 1" >>confdefs.h
26585 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for --gdwarf2 option" >&5
26586 $as_echo_n "checking assembler for --gdwarf2 option... " >&6; }
26587 if test "${gcc_cv_as_gdwarf2_flag+set}" = set; then :
26588 $as_echo_n "(cached) " >&6
26589 else
26590 gcc_cv_as_gdwarf2_flag=no
26591 if test $in_tree_gas = yes; then
26592 if test $in_tree_gas_is_elf = yes \
26593 && test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 11 \) \* 1000 + 0`
26594 then gcc_cv_as_gdwarf2_flag=yes
26596 elif test x$gcc_cv_as != x; then
26597 $as_echo "$insn" > conftest.s
26598 if { ac_try='$gcc_cv_as $gcc_cv_as_flags --gdwarf2 -o conftest.o conftest.s >&5'
26599 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
26600 (eval $ac_try) 2>&5
26601 ac_status=$?
26602 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
26603 test $ac_status = 0; }; }
26604 then
26605 gcc_cv_as_gdwarf2_flag=yes
26606 else
26607 echo "configure: failed program was" >&5
26608 cat conftest.s >&5
26610 rm -f conftest.o conftest.s
26613 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_gdwarf2_flag" >&5
26614 $as_echo "$gcc_cv_as_gdwarf2_flag" >&6; }
26615 if test $gcc_cv_as_gdwarf2_flag = yes; then
26617 $as_echo "#define HAVE_AS_GDWARF2_DEBUG_FLAG 1" >>confdefs.h
26621 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for --gstabs option" >&5
26622 $as_echo_n "checking assembler for --gstabs option... " >&6; }
26623 if test "${gcc_cv_as_gstabs_flag+set}" = set; then :
26624 $as_echo_n "(cached) " >&6
26625 else
26626 gcc_cv_as_gstabs_flag=no
26627 if test $in_tree_gas = yes; then
26628 if test $in_tree_gas_is_elf = yes \
26629 && test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 11 \) \* 1000 + 0`
26630 then gcc_cv_as_gstabs_flag=yes
26632 elif test x$gcc_cv_as != x; then
26633 $as_echo "$insn" > conftest.s
26634 if { ac_try='$gcc_cv_as $gcc_cv_as_flags --gstabs -o conftest.o conftest.s >&5'
26635 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
26636 (eval $ac_try) 2>&5
26637 ac_status=$?
26638 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
26639 test $ac_status = 0; }; }
26640 then
26641 # The native Solaris 9/Intel assembler doesn't understand --gstabs
26642 # and warns about it, but still exits successfully. So check for
26643 # this.
26644 if { ac_try='$gcc_cv_as --gstabs -o conftest.o conftest.s 2>&1 | grep -i warning > /dev/null'
26645 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
26646 (eval $ac_try) 2>&5
26647 ac_status=$?
26648 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
26649 test $ac_status = 0; }; }
26650 then :
26651 else gcc_cv_as_gstabs_flag=yes
26653 else
26654 echo "configure: failed program was" >&5
26655 cat conftest.s >&5
26657 rm -f conftest.o conftest.s
26660 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_gstabs_flag" >&5
26661 $as_echo "$gcc_cv_as_gstabs_flag" >&6; }
26662 if test $gcc_cv_as_gstabs_flag = yes; then
26664 $as_echo "#define HAVE_AS_GSTABS_DEBUG_FLAG 1" >>confdefs.h
26668 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for --debug-prefix-map option" >&5
26669 $as_echo_n "checking assembler for --debug-prefix-map option... " >&6; }
26670 if test "${gcc_cv_as_debug_prefix_map_flag+set}" = set; then :
26671 $as_echo_n "(cached) " >&6
26672 else
26673 gcc_cv_as_debug_prefix_map_flag=no
26674 if test $in_tree_gas = yes; then
26675 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 18 \) \* 1000 + 0`
26676 then gcc_cv_as_debug_prefix_map_flag=yes
26678 elif test x$gcc_cv_as != x; then
26679 $as_echo "$insn" > conftest.s
26680 if { ac_try='$gcc_cv_as $gcc_cv_as_flags --debug-prefix-map /a=/b -o conftest.o conftest.s >&5'
26681 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
26682 (eval $ac_try) 2>&5
26683 ac_status=$?
26684 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
26685 test $ac_status = 0; }; }
26686 then
26687 gcc_cv_as_debug_prefix_map_flag=yes
26688 else
26689 echo "configure: failed program was" >&5
26690 cat conftest.s >&5
26692 rm -f conftest.o conftest.s
26695 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_debug_prefix_map_flag" >&5
26696 $as_echo "$gcc_cv_as_debug_prefix_map_flag" >&6; }
26697 if test $gcc_cv_as_debug_prefix_map_flag = yes; then
26699 $as_echo "#define HAVE_AS_DEBUG_PREFIX_MAP 1" >>confdefs.h
26704 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .lcomm with alignment" >&5
26705 $as_echo_n "checking assembler for .lcomm with alignment... " >&6; }
26706 if test "${gcc_cv_as_lcomm_with_alignment+set}" = set; then :
26707 $as_echo_n "(cached) " >&6
26708 else
26709 gcc_cv_as_lcomm_with_alignment=no
26710 if test x$gcc_cv_as != x; then
26711 $as_echo '.lcomm bar,4,16' > conftest.s
26712 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
26713 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
26714 (eval $ac_try) 2>&5
26715 ac_status=$?
26716 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
26717 test $ac_status = 0; }; }
26718 then
26719 gcc_cv_as_lcomm_with_alignment=yes
26720 else
26721 echo "configure: failed program was" >&5
26722 cat conftest.s >&5
26724 rm -f conftest.o conftest.s
26727 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_lcomm_with_alignment" >&5
26728 $as_echo "$gcc_cv_as_lcomm_with_alignment" >&6; }
26729 if test $gcc_cv_as_lcomm_with_alignment = yes; then
26731 $as_echo "#define HAVE_GAS_LCOMM_WITH_ALIGNMENT 1" >>confdefs.h
26735 if test x$with_sysroot = x && test x$host = x$target \
26736 && test "$prefix" != "/usr" && test "x$prefix" != "x$local_prefix" \
26737 && test "$prefix" != "NONE"; then
26739 cat >>confdefs.h <<_ACEOF
26740 #define PREFIX_INCLUDE_DIR "$prefix/include"
26741 _ACEOF
26745 if test x$host != x$target || test "x$TARGET_SYSTEM_ROOT" != x; then
26746 if test "x$with_headers" != x; then
26747 target_header_dir=$with_headers
26748 elif test "x$with_sysroot" = x; then
26749 target_header_dir="${test_exec_prefix}/${target_noncanonical}/sys-include"
26750 elif test "x$with_build_sysroot" != "x"; then
26751 target_header_dir="${with_build_sysroot}${native_system_header_dir}"
26752 elif test "x$with_sysroot" = xyes; then
26753 target_header_dir="${test_exec_prefix}/${target_noncanonical}/sys-root${native_system_header_dir}"
26754 else
26755 target_header_dir="${with_sysroot}${native_system_header_dir}"
26757 else
26758 target_header_dir=${native_system_header_dir}
26761 # Determine the version of glibc, if any, used on the target.
26762 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for target glibc version" >&5
26763 $as_echo_n "checking for target glibc version... " >&6; }
26765 # Check whether --with-glibc-version was given.
26766 if test "${with_glibc_version+set}" = set; then :
26767 withval=$with_glibc_version;
26768 if echo "$with_glibc_version" | grep '^[0-9][0-9]*\.[0-9][0-9]*$'; then
26769 glibc_version_major=`echo "$with_glibc_version" | sed -e 's/\..*//'`
26770 glibc_version_minor=`echo "$with_glibc_version" | sed -e 's/.*\.//'`
26771 else
26772 as_fn_error "option --with-glibc-version requires a version number M.N" "$LINENO" 5
26774 else
26776 glibc_version_major=0
26777 glibc_version_minor=0
26778 if test -f $target_header_dir/features.h \
26779 && glibc_version_major_define=`$EGREP '^[ ]*#[ ]*define[ ]+__GLIBC__[ ]+[0-9]' $target_header_dir/features.h` \
26780 && glibc_version_minor_define=`$EGREP '^[ ]*#[ ]*define[ ]+__GLIBC_MINOR__[ ]+[0-9]' $target_header_dir/features.h`; then
26781 glibc_version_major=`echo "$glibc_version_major_define" | sed -e 's/.*__GLIBC__[ ]*//'`
26782 glibc_version_minor=`echo "$glibc_version_minor_define" | sed -e 's/.*__GLIBC_MINOR__[ ]*//'`
26786 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $glibc_version_major.$glibc_version_minor" >&5
26787 $as_echo "$glibc_version_major.$glibc_version_minor" >&6; }
26789 # Check whether --enable-gnu-unique-object was given.
26790 if test "${enable_gnu_unique_object+set}" = set; then :
26791 enableval=$enable_gnu_unique_object; case $enable_gnu_unique_object in
26792 yes | no) ;;
26793 *) as_fn_error "'$enable_gnu_unique_object' is an invalid value for --enable-gnu-unique-object.
26794 Valid choices are 'yes' and 'no'." "$LINENO" 5 ;;
26795 esac
26796 else
26797 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for gnu_unique_object" >&5
26798 $as_echo_n "checking assembler for gnu_unique_object... " >&6; }
26799 if test "${gcc_cv_as_gnu_unique_object+set}" = set; then :
26800 $as_echo_n "(cached) " >&6
26801 else
26802 gcc_cv_as_gnu_unique_object=no
26803 if test $in_tree_gas = yes; then
26804 if test $in_tree_gas_is_elf = yes \
26805 && test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 19 \) \* 1000 + 52`
26806 then gcc_cv_as_gnu_unique_object=yes
26808 elif test x$gcc_cv_as != x; then
26809 $as_echo '.type foo, '$target_type_format_char'gnu_unique_object' > conftest.s
26810 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
26811 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
26812 (eval $ac_try) 2>&5
26813 ac_status=$?
26814 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
26815 test $ac_status = 0; }; }
26816 then
26817 gcc_cv_as_gnu_unique_object=yes
26818 else
26819 echo "configure: failed program was" >&5
26820 cat conftest.s >&5
26822 rm -f conftest.o conftest.s
26825 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_gnu_unique_object" >&5
26826 $as_echo "$gcc_cv_as_gnu_unique_object" >&6; }
26827 if test $gcc_cv_as_gnu_unique_object = yes; then
26828 # We need to unquote above to to use the definition from config.gcc.
26829 # Also check for ld.so support, i.e. glibc 2.11 or higher.
26831 if test $glibc_version_major -gt 2 \
26832 || ( test $glibc_version_major -eq 2 && test $glibc_version_minor -ge 11 ); then :
26833 enable_gnu_unique_object=yes
26839 if test x$enable_gnu_unique_object = xyes; then
26841 $as_echo "#define HAVE_GAS_GNU_UNIQUE_OBJECT 1" >>confdefs.h
26845 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for tolerance to line number 0" >&5
26846 $as_echo_n "checking assembler for tolerance to line number 0... " >&6; }
26847 if test "${gcc_cv_as_line_zero+set}" = set; then :
26848 $as_echo_n "(cached) " >&6
26849 else
26850 gcc_cv_as_line_zero=no
26851 if test $in_tree_gas = yes; then
26852 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 16 \) \* 1000 + 91`
26853 then gcc_cv_as_line_zero=yes
26855 elif test "x$gcc_cv_as" != x; then
26856 { echo '# 1 "test.s" 1'; echo '# 0 "" 2'; } > conftest.s
26857 if { ac_try='$gcc_cv_as -o conftest.o conftest.s >&5 2>conftest.out'
26858 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
26859 (eval $ac_try) 2>&5
26860 ac_status=$?
26861 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
26862 test $ac_status = 0; }; } &&
26863 test "x`cat conftest.out`" = x
26864 then
26865 gcc_cv_as_line_zero=yes
26866 else
26867 echo "configure: failed program was" >&5
26868 cat conftest.s >&5
26869 echo "configure: error output was" >&5
26870 cat conftest.out >&5
26872 rm -f conftest.o conftest.s conftest.out
26875 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_line_zero" >&5
26876 $as_echo "$gcc_cv_as_line_zero" >&6; }
26877 if test "x$gcc_cv_as_line_zero" = xyes; then
26879 $as_echo "#define HAVE_AS_LINE_ZERO 1" >>confdefs.h
26883 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker PT_GNU_EH_FRAME support" >&5
26884 $as_echo_n "checking linker PT_GNU_EH_FRAME support... " >&6; }
26885 gcc_cv_ld_eh_frame_hdr=no
26886 if test $in_tree_ld = yes ; then
26887 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 \
26888 && test $in_tree_ld_is_elf = yes; then
26889 gcc_cv_ld_eh_frame_hdr=yes
26891 elif test x$gcc_cv_ld != x; then
26892 if echo "$ld_ver" | grep GNU > /dev/null; then
26893 # Check if linker supports --eh-frame-hdr option
26894 if $gcc_cv_ld --help 2>/dev/null | grep eh-frame-hdr > /dev/null; then
26895 gcc_cv_ld_eh_frame_hdr=yes
26897 else
26898 case "$target" in
26899 *-*-solaris2*)
26900 # Sun ld has various bugs in .eh_frame_hdr support before version 1.2251.
26901 if test "$ld_vers_major" -gt 1 || test "$ld_vers_minor" -ge 2251; then
26902 gcc_cv_ld_eh_frame_hdr=yes
26905 esac
26909 if test x"$gcc_cv_ld_eh_frame_hdr" = xyes; then
26911 $as_echo "#define HAVE_LD_EH_FRAME_HDR 1" >>confdefs.h
26913 # Check whether --enable-eh-frame-hdr-for-static was given.
26914 if test "${enable_eh_frame_hdr_for_static+set}" = set; then :
26915 enableval=$enable_eh_frame_hdr_for_static; case $enable_eh_frame_hdr_for_static in
26916 yes | no) ;;
26917 *) as_fn_error "'$enable_eh_frame_hdr_for_static' is an invalid
26918 value for --enable-eh-frame-hdr-for-static.
26919 Valid choices are 'yes' and 'no'." "$LINENO" 5 ;;
26920 esac
26923 ## Only support for glibc 2.3.0 or higher with AT_PHDR/AT_PHNUM from
26924 ## Linux kernel.
26925 # [[if test x$host = x$build -a x$host = x$target &&
26926 # ldd --version 2>&1 >/dev/null &&
26927 # glibcver=`ldd --version 2>/dev/null | sed 's/.* //;q'`; then
26928 # glibcmajor=`expr "$glibcver" : "\([0-9]*\)"`
26929 # glibcminor=`expr "$glibcver" : "[2-9]*\.\([0-9]*\)"`
26930 # glibcnum=`expr $glibcmajor \* 1000 + $glibcminor`
26931 # if test "$glibcnum" -ge 2003 ; then
26932 # auvx=`LD_SHOW_AUXV=1 ldd 2>/dev/null`
26933 # if echo "$auvx" | grep AT_PHDR > /dev/null &&
26934 # echo "$auvx" | grep AT_PHNUM > /dev/null; then
26935 # enable_eh_frame_hdr_for_static=yes
26936 # fi
26937 # fi
26938 # fi]])
26940 if test x$enable_eh_frame_hdr_for_static = xyes; then
26942 $as_echo "#define USE_EH_FRAME_HDR_FOR_STATIC 1" >>confdefs.h
26946 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_eh_frame_hdr" >&5
26947 $as_echo "$gcc_cv_ld_eh_frame_hdr" >&6; }
26949 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker CIEv3 in .eh_frame support" >&5
26950 $as_echo_n "checking linker CIEv3 in .eh_frame support... " >&6; }
26951 gcc_cv_ld_eh_frame_ciev3=no
26952 if test $in_tree_ld = yes ; then
26953 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 \
26954 && test $in_tree_ld_is_elf = yes; then
26955 gcc_cv_ld_eh_frame_ciev3=yes
26957 elif test x$gcc_cv_ld != x; then
26958 if echo "$ld_ver" | grep GNU > /dev/null; then
26959 gcc_cv_ld_eh_frame_ciev3=yes
26960 if test 0"$ld_date" -lt 20040513; then
26961 if test -n "$ld_date"; then
26962 # If there was date string, but was earlier than 2004-05-13, fail
26963 gcc_cv_ld_eh_frame_ciev3=no
26964 elif test "$ld_vers_major" -lt 2; then
26965 gcc_cv_ld_eh_frame_ciev3=no
26966 elif test "$ld_vers_major" -eq 2 -a "$ld_vers_minor" -lt 16; then
26967 gcc_cv_ld_eh_frame_ciev3=no
26970 else
26971 case "$target" in
26972 *-*-solaris2*)
26973 # Sun ld added support for CIE v3 in .eh_frame in Solaris 11.1.
26974 if test "$ld_vers_major" -gt 1 || test "$ld_vers_minor" -ge 2324; then
26975 gcc_cv_ld_eh_frame_ciev3=yes
26978 esac
26982 cat >>confdefs.h <<_ACEOF
26983 #define HAVE_LD_EH_FRAME_CIEV3 `if test x"$gcc_cv_ld_eh_frame_ciev3" = xyes; then echo 1; else echo 0; fi`
26984 _ACEOF
26986 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_eh_frame_ciev3" >&5
26987 $as_echo "$gcc_cv_ld_eh_frame_ciev3" >&6; }
26989 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker position independent executable support" >&5
26990 $as_echo_n "checking linker position independent executable support... " >&6; }
26991 gcc_cv_ld_pie=no
26992 if test $in_tree_ld = yes ; then
26993 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 \
26994 && test $in_tree_ld_is_elf = yes; then
26995 gcc_cv_ld_pie=yes
26997 elif test x$gcc_cv_ld != x; then
26998 # Check if linker supports -pie option
26999 if $gcc_cv_ld --help 2>/dev/null | grep -- -pie > /dev/null; then
27000 gcc_cv_ld_pie=yes
27003 if test x"$gcc_cv_ld_pie" = xyes; then
27005 $as_echo "#define HAVE_LD_PIE 1" >>confdefs.h
27008 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_pie" >&5
27009 $as_echo "$gcc_cv_ld_pie" >&6; }
27011 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker PIE support with copy reloc" >&5
27012 $as_echo_n "checking linker PIE support with copy reloc... " >&6; }
27013 gcc_cv_ld_pie_copyreloc=no
27014 if test $gcc_cv_ld_pie = yes ; then
27015 if test $in_tree_ld = yes ; then
27016 if test "$gcc_cv_gld_major_version" -eq 2 -a "$gcc_cv_gld_minor_version" -ge 25 -o "$gcc_cv_gld_major_version" -gt 2; then
27017 gcc_cv_ld_pie_copyreloc=yes
27019 elif test x$gcc_cv_as != x -a x$gcc_cv_ld != x ; then
27020 # Check if linker supports -pie option with copy reloc
27021 case "$target" in
27022 i?86-*-linux* | x86_64-*-linux*)
27023 cat > conftest1.s <<EOF
27024 .globl a_glob
27025 .data
27026 .type a_glob, @object
27027 .size a_glob, 4
27028 a_glob:
27029 .long 2
27031 cat > conftest2.s <<EOF
27032 .text
27033 .globl main
27034 .type main, @function
27035 main:
27036 movl %eax, a_glob(%rip)
27037 .size main, .-main
27039 if $gcc_cv_as --64 -o conftest1.o conftest1.s > /dev/null 2>&1 \
27040 && $gcc_cv_ld -shared -melf_x86_64 -o conftest1.so conftest1.o > /dev/null 2>&1 \
27041 && $gcc_cv_as --64 -o conftest2.o conftest2.s > /dev/null 2>&1 \
27042 && $gcc_cv_ld -pie -melf_x86_64 -o conftest conftest2.o conftest1.so > /dev/null 2>&1; then
27043 gcc_cv_ld_pie_copyreloc=yes
27045 rm -f conftest conftest1.so conftest1.o conftest2.o conftest1.s conftest2.s
27047 esac
27051 cat >>confdefs.h <<_ACEOF
27052 #define HAVE_LD_PIE_COPYRELOC `if test x"$gcc_cv_ld_pie_copyreloc" = xyes; then echo 1; else echo 0; fi`
27053 _ACEOF
27055 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_pie_copyreloc" >&5
27056 $as_echo "$gcc_cv_ld_pie_copyreloc" >&6; }
27058 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker EH-compatible garbage collection of sections" >&5
27059 $as_echo_n "checking linker EH-compatible garbage collection of sections... " >&6; }
27060 gcc_cv_ld_eh_gc_sections=no
27061 if test $in_tree_ld = yes ; then
27062 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 \
27063 && test $in_tree_ld_is_elf = yes; then
27064 gcc_cv_ld_eh_gc_sections=yes
27066 elif test x$gcc_cv_as != x -a x$gcc_cv_ld != x -a x$gcc_cv_objdump != x ; then
27067 cat > conftest.s <<EOF
27068 .section .text
27069 .globl _start
27070 .type _start, @function
27071 _start:
27072 .long foo
27073 .size _start, .-_start
27074 .section .text.foo,"ax",@progbits
27075 .type foo, @function
27076 foo:
27077 .long 0
27078 .size foo, .-foo
27079 .section .gcc_except_table.foo,"a",@progbits
27080 .L0:
27081 .long 0
27082 .section .eh_frame,"a",@progbits
27083 .long .L0
27085 if $gcc_cv_as -o conftest.o conftest.s > /dev/null 2>&1; then
27086 if $gcc_cv_ld -o conftest conftest.o --entry=_start --gc-sections 2>&1 \
27087 | grep "gc-sections option ignored" > /dev/null; then
27088 gcc_cv_ld_eh_gc_sections=no
27089 elif $gcc_cv_objdump -h conftest 2> /dev/null \
27090 | grep gcc_except_table > /dev/null; then
27091 gcc_cv_ld_eh_gc_sections=yes
27092 # If no COMDAT groups, the compiler will emit .gnu.linkonce.t. sections.
27093 if test x$gcc_cv_as_comdat_group != xyes; then
27094 gcc_cv_ld_eh_gc_sections=no
27095 cat > conftest.s <<EOF
27096 .section .text
27097 .globl _start
27098 .type _start, @function
27099 _start:
27100 .long foo
27101 .size _start, .-_start
27102 .section .gnu.linkonce.t.foo,"ax",@progbits
27103 .type foo, @function
27104 foo:
27105 .long 0
27106 .size foo, .-foo
27107 .section .gcc_except_table.foo,"a",@progbits
27108 .L0:
27109 .long 0
27110 .section .eh_frame,"a",@progbits
27111 .long .L0
27113 if $gcc_cv_as -o conftest.o conftest.s > /dev/null 2>&1; then
27114 if $gcc_cv_ld -o conftest conftest.o --entry=_start --gc-sections 2>&1 \
27115 | grep "gc-sections option ignored" > /dev/null; then
27116 gcc_cv_ld_eh_gc_sections=no
27117 elif $gcc_cv_objdump -h conftest 2> /dev/null \
27118 | grep gcc_except_table > /dev/null; then
27119 gcc_cv_ld_eh_gc_sections=yes
27125 rm -f conftest.s conftest.o conftest
27127 case "$target" in
27128 hppa*-*-linux*)
27129 # ??? This apparently exposes a binutils bug with PC-relative relocations.
27130 gcc_cv_ld_eh_gc_sections=no
27132 esac
27133 if test x$gcc_cv_ld_eh_gc_sections = xyes; then
27135 $as_echo "#define HAVE_LD_EH_GC_SECTIONS 1" >>confdefs.h
27138 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_eh_gc_sections" >&5
27139 $as_echo "$gcc_cv_ld_eh_gc_sections" >&6; }
27141 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker EH garbage collection of sections bug" >&5
27142 $as_echo_n "checking linker EH garbage collection of sections bug... " >&6; }
27143 gcc_cv_ld_eh_gc_sections_bug=no
27144 if test $in_tree_ld = yes ; then
27145 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 \
27146 && test $in_tree_ld_is_elf = yes; then
27147 gcc_cv_ld_eh_gc_sections_bug=yes
27149 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
27150 gcc_cv_ld_eh_gc_sections_bug=yes
27151 cat > conftest.s <<EOF
27152 .section .text
27153 .globl _start
27154 .type _start, @function
27155 _start:
27156 .long foo
27157 .size _start, .-_start
27158 .section .text.startup.foo,"ax",@progbits
27159 .type foo, @function
27160 foo:
27161 .long 0
27162 .size foo, .-foo
27163 .section .gcc_except_table.foo,"a",@progbits
27164 .L0:
27165 .long 0
27166 .section .eh_frame,"a",@progbits
27167 .long .L0
27169 if $gcc_cv_as -o conftest.o conftest.s > /dev/null 2>&1; then
27170 if $gcc_cv_ld -o conftest conftest.o --entry=_start --gc-sections 2>&1 \
27171 | grep "gc-sections option ignored" > /dev/null; then
27173 elif $gcc_cv_objdump -h conftest 2> /dev/null \
27174 | grep gcc_except_table > /dev/null; then
27175 gcc_cv_ld_eh_gc_sections_bug=no
27178 rm -f conftest.s conftest.o conftest
27180 if test x$gcc_cv_ld_eh_gc_sections_bug = xyes; then
27182 $as_echo "#define HAVE_LD_EH_GC_SECTIONS_BUG 1" >>confdefs.h
27185 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_eh_gc_sections_bug" >&5
27186 $as_echo "$gcc_cv_ld_eh_gc_sections_bug" >&6; }
27188 # --------
27189 # UNSORTED
27190 # --------
27192 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker --as-needed support" >&5
27193 $as_echo_n "checking linker --as-needed support... " >&6; }
27194 if test "${gcc_cv_ld_as_needed+set}" = set; then :
27195 $as_echo_n "(cached) " >&6
27196 else
27197 gcc_cv_ld_as_needed=no
27198 gcc_cv_ld_as_needed_option='--as-needed'
27199 gcc_cv_ld_no_as_needed_option='--no-as-needed'
27200 if test $in_tree_ld = yes ; then
27201 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 \
27202 && test $in_tree_ld_is_elf = yes; then
27203 gcc_cv_ld_as_needed=yes
27205 elif test x$gcc_cv_ld != x; then
27206 # Check if linker supports --as-needed and --no-as-needed options
27207 if $gcc_cv_ld --help 2>/dev/null | grep as-needed > /dev/null; then
27208 gcc_cv_ld_as_needed=yes
27209 else
27210 case "$target" in
27211 # Solaris 2 ld always supports -z ignore/-z record.
27212 *-*-solaris2*)
27213 gcc_cv_ld_as_needed=yes
27214 gcc_cv_ld_as_needed_option="-z ignore"
27215 gcc_cv_ld_no_as_needed_option="-z record"
27217 esac
27220 # --as-needed/-z ignore can only be used if libgcc_s.so.1 uses
27221 # dl_iterate_phdr, i.e. since Solaris 11.
27222 case "$target" in
27223 *-*-solaris2.1[1-9]*)
27224 case "$target" in
27225 i?86-*-* | x86_64-*-*)
27226 if echo "$ld_ver" | grep GNU > /dev/null; then
27227 # Doesn't work with gld on Solaris/x86 due to PR ld/12320.
27228 gcc_cv_ld_as_needed=no
27231 esac
27233 *-*-solaris2*)
27234 gcc_cv_ld_as_needed=no
27236 esac
27239 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_as_needed" >&5
27240 $as_echo "$gcc_cv_ld_as_needed" >&6; }
27241 if test x"$gcc_cv_ld_as_needed" = xyes; then
27243 $as_echo "#define HAVE_LD_AS_NEEDED 1" >>confdefs.h
27246 cat >>confdefs.h <<_ACEOF
27247 #define LD_AS_NEEDED_OPTION "$gcc_cv_ld_as_needed_option"
27248 _ACEOF
27251 cat >>confdefs.h <<_ACEOF
27252 #define LD_NO_AS_NEEDED_OPTION "$gcc_cv_ld_no_as_needed_option"
27253 _ACEOF
27257 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker mapfile support for clearing hardware capabilities" >&5
27258 $as_echo_n "checking linker mapfile support for clearing hardware capabilities... " >&6; }
27259 saved_LDFLAGS="$LDFLAGS"
27260 for clearcap_map in sol2-clearcapv2.map sol2-clearcap.map; do
27261 LDFLAGS="$saved_LDFLAGS -Wl,-M,${srcdir}/config/$clearcap_map"
27262 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
27263 /* end confdefs.h. */
27264 int main(void) {return 0;}
27265 _ACEOF
27266 if ac_fn_c_try_link "$LINENO"; then :
27267 gcc_cv_ld_clearcap=yes; break
27268 else
27269 gcc_cv_ld_clearcap=no
27271 rm -f core conftest.err conftest.$ac_objext \
27272 conftest$ac_exeext conftest.$ac_ext
27273 done
27274 LDFLAGS="$saved_LDFLAGS"
27275 if test "x$gcc_cv_ld_clearcap" = xyes; then
27277 $as_echo "#define HAVE_LD_CLEARCAP 1" >>confdefs.h
27279 ac_config_links="$ac_config_links clearcap.map:${srcdir}/config/$clearcap_map"
27282 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_clearcap" >&5
27283 $as_echo "$gcc_cv_ld_clearcap" >&6; }
27285 case "$target:$tm_file" in
27286 powerpc64-*-freebsd* | powerpc64*-*-linux* | powerpc*-*-linux*rs6000/biarch64.h*)
27287 case "$target" in
27288 *le-*-linux*)
27289 emul_name="-melf64lppc"
27291 *-*-linux*)
27292 emul_name="-melf64ppc"
27294 *-*-freebsd*)
27295 emul_name="-melf64ppc_fbsd"
27297 esac
27298 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker support for omitting dot symbols" >&5
27299 $as_echo_n "checking linker support for omitting dot symbols... " >&6; }
27300 if test "${gcc_cv_ld_no_dot_syms+set}" = set; then :
27301 $as_echo_n "(cached) " >&6
27302 else
27303 gcc_cv_ld_no_dot_syms=no
27304 if test x"$ld_is_gold" = xyes; then
27305 gcc_cv_ld_no_dot_syms=yes
27306 elif test $in_tree_ld = yes ; then
27307 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
27308 gcc_cv_ld_no_dot_syms=yes
27310 elif test x$gcc_cv_as != x -a x$gcc_cv_ld != x ; then
27311 cat > conftest1.s <<EOF
27312 .text
27313 bl .foo
27315 cat > conftest2.s <<EOF
27316 .section ".opd","aw"
27317 .align 3
27318 .globl foo
27319 .type foo,@function
27320 foo:
27321 .quad .LEfoo,.TOC.@tocbase,0
27322 .text
27323 .LEfoo:
27325 .size foo,.-.LEfoo
27327 if $gcc_cv_as -a64 -o conftest1.o conftest1.s > /dev/null 2>&1 \
27328 && $gcc_cv_as -a64 -o conftest2.o conftest2.s > /dev/null 2>&1 \
27329 && $gcc_cv_ld $emul_name -o conftest conftest1.o conftest2.o > /dev/null 2>&1; then
27330 gcc_cv_ld_no_dot_syms=yes
27332 rm -f conftest conftest1.o conftest2.o conftest1.s conftest2.s
27336 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_no_dot_syms" >&5
27337 $as_echo "$gcc_cv_ld_no_dot_syms" >&6; }
27338 if test x"$gcc_cv_ld_no_dot_syms" = xyes; then
27340 $as_echo "#define HAVE_LD_NO_DOT_SYMS 1" >>confdefs.h
27344 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker large toc support" >&5
27345 $as_echo_n "checking linker large toc support... " >&6; }
27346 if test "${gcc_cv_ld_large_toc+set}" = set; then :
27347 $as_echo_n "(cached) " >&6
27348 else
27349 gcc_cv_ld_large_toc=no
27350 if test x"$ld_is_gold" = xyes; then
27351 gcc_cv_ld_large_toc=yes
27352 elif test $in_tree_ld = yes ; then
27353 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
27354 gcc_cv_ld_large_toc=yes
27356 elif test x$gcc_cv_as != x -a x$gcc_cv_ld != x ; then
27357 cat > conftest.s <<EOF
27358 .section ".tbss","awT",@nobits
27359 .align 3
27360 ie0: .space 8
27361 .global _start
27362 .text
27363 _start:
27364 addis 9,13,ie0@got@tprel@ha
27365 ld 9,ie0@got@tprel@l(9)
27367 if $gcc_cv_as -a64 -o conftest.o conftest.s > /dev/null 2>&1 \
27368 && $gcc_cv_ld $emul_name --no-toc-sort -o conftest conftest.o > /dev/null 2>&1; then
27369 gcc_cv_ld_large_toc=yes
27371 rm -f conftest conftest.o conftest.s
27375 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_large_toc" >&5
27376 $as_echo "$gcc_cv_ld_large_toc" >&6; }
27377 if test x"$gcc_cv_ld_large_toc" = xyes; then
27379 $as_echo "#define HAVE_LD_LARGE_TOC 1" >>confdefs.h
27383 esac
27385 case "$target" in
27386 *-*-aix*)
27387 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker large toc support" >&5
27388 $as_echo_n "checking linker large toc support... " >&6; }
27389 if test "${gcc_cv_ld_large_toc+set}" = set; then :
27390 $as_echo_n "(cached) " >&6
27391 else
27392 gcc_cv_ld_large_toc=no
27393 if test x$gcc_cv_as != x ; then
27394 cat > conftest.s <<EOF
27395 .toc
27396 LC..1:
27397 .tc a[TC],a[RW]
27398 .extern a[RW]
27399 .csect .text[PR]
27400 .largetoctest:
27401 addis 9,LC..1@u(2)
27402 ld 3,LC..1@l(9)
27404 if $gcc_cv_as -a64 -o conftest.o conftest.s > /dev/null 2>&1; then
27405 gcc_cv_ld_large_toc=yes
27407 rm -f conftest conftest.o conftest.s
27411 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_large_toc" >&5
27412 $as_echo "$gcc_cv_ld_large_toc" >&6; }
27413 if test x"$gcc_cv_ld_large_toc" = xyes; then
27415 $as_echo "#define HAVE_LD_LARGE_TOC 1" >>confdefs.h
27419 esac
27421 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker --build-id support" >&5
27422 $as_echo_n "checking linker --build-id support... " >&6; }
27423 if test "${gcc_cv_ld_buildid+set}" = set; then :
27424 $as_echo_n "(cached) " >&6
27425 else
27426 gcc_cv_ld_buildid=no
27427 if test $in_tree_ld = yes ; then
27428 if test "$gcc_cv_gld_major_version" -eq 2 -a \
27429 "$gcc_cv_gld_minor_version" -ge 18 -o \
27430 "$gcc_cv_gld_major_version" -gt 2 \
27431 && test $in_tree_ld_is_elf = yes; then
27432 gcc_cv_ld_buildid=yes
27434 elif test x$gcc_cv_ld != x; then
27435 if $gcc_cv_ld --help 2>/dev/null | grep build-id > /dev/null; then
27436 gcc_cv_ld_buildid=yes
27440 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_buildid" >&5
27441 $as_echo "$gcc_cv_ld_buildid" >&6; }
27442 if test x"$gcc_cv_ld_buildid" = xyes; then
27444 $as_echo "#define HAVE_LD_BUILDID 1" >>confdefs.h
27448 # Check whether --enable-linker-build-id was given.
27449 if test "${enable_linker_build_id+set}" = set; then :
27450 enableval=$enable_linker_build_id;
27451 else
27452 enable_linker_build_id=no
27456 if test x"$enable_linker_build_id" = xyes; then
27457 if test x"$gcc_cv_ld_buildid" = xyes; then
27459 $as_echo "#define ENABLE_LD_BUILDID 1" >>confdefs.h
27461 else
27462 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: --build-id is not supported by your linker; --enable-linker-build-id ignored" >&5
27463 $as_echo "$as_me: WARNING: --build-id is not supported by your linker; --enable-linker-build-id ignored" >&2;}
27467 # In binutils 2.21, GNU ld gained support for new emulations fully
27468 # supporting the Solaris 2 ABI. Detect their presence in the linker used.
27469 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker *_sol2 emulation support" >&5
27470 $as_echo_n "checking linker *_sol2 emulation support... " >&6; }
27471 if test "${gcc_cv_ld_sol2_emulation+set}" = set; then :
27472 $as_echo_n "(cached) " >&6
27473 else
27474 gcc_cv_ld_sol2_emulation=no
27475 if test $in_tree_ld = yes ; then
27476 if test "$gcc_cv_gld_major_version" -eq 2 -a \
27477 "$gcc_cv_gld_minor_version" -ge 21 -o \
27478 "$gcc_cv_gld_major_version" -gt 2 \
27479 && test $in_tree_ld_is_elf = yes; then
27480 gcc_cv_ld_sol2_emulation=yes
27482 elif test x$gcc_cv_ld != x; then
27483 if $gcc_cv_ld -V 2>/dev/null | sed -e '1,/Supported emulations/d;q' | \
27484 grep _sol2 > /dev/null; then
27485 gcc_cv_ld_sol2_emulation=yes
27489 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_sol2_emulation" >&5
27490 $as_echo "$gcc_cv_ld_sol2_emulation" >&6; }
27491 if test x"$gcc_cv_ld_sol2_emulation" = xyes; then
27493 $as_echo "#define HAVE_LD_SOL2_EMULATION 1" >>confdefs.h
27497 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker --sysroot support" >&5
27498 $as_echo_n "checking linker --sysroot support... " >&6; }
27499 if test "${gcc_cv_ld_sysroot+set}" = set; then :
27500 $as_echo_n "(cached) " >&6
27501 else
27502 gcc_cv_ld_sysroot=no
27503 if test $in_tree_ld = yes ; then
27504 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
27505 gcc_cv_ld_sysroot=yes
27507 elif test x$gcc_cv_ld != x; then
27508 if $gcc_cv_ld --help 2>/dev/null | grep sysroot > /dev/null; then
27509 gcc_cv_ld_sysroot=yes
27513 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_sysroot" >&5
27514 $as_echo "$gcc_cv_ld_sysroot" >&6; }
27515 if test x"$gcc_cv_ld_sysroot" = xyes; then
27517 $as_echo "#define HAVE_LD_SYSROOT 1" >>confdefs.h
27521 # Test for stack protector support in target C library.
27522 { $as_echo "$as_me:${as_lineno-$LINENO}: checking __stack_chk_fail in target C library" >&5
27523 $as_echo_n "checking __stack_chk_fail in target C library... " >&6; }
27524 if test "${gcc_cv_libc_provides_ssp+set}" = set; then :
27525 $as_echo_n "(cached) " >&6
27526 else
27527 gcc_cv_libc_provides_ssp=no
27528 case "$target" in
27529 *-*-linux* | *-*-kfreebsd*-gnu | *-*-knetbsd*-gnu)
27530 # glibc 2.4 and later provides __stack_chk_fail and
27531 # either __stack_chk_guard, or TLS access to stack guard canary.
27533 if test $glibc_version_major -gt 2 \
27534 || ( test $glibc_version_major -eq 2 && test $glibc_version_minor -ge 4 ); then :
27535 gcc_cv_libc_provides_ssp=yes
27536 else
27538 if test -f $target_header_dir/features.h \
27539 && $EGREP '^[ ]*#[ ]*define[ ]+__GNU_LIBRARY__[ ]+([1-9][0-9]|[6-9])' \
27540 $target_header_dir/features.h > /dev/null; then
27541 if $EGREP '^[ ]*#[ ]*define[ ]+__UCLIBC__[ ]+1' \
27542 $target_header_dir/features.h > /dev/null && \
27543 test -f $target_header_dir/bits/uClibc_config.h && \
27544 $EGREP '^[ ]*#[ ]*define[ ]+__UCLIBC_HAS_SSP__[ ]+1' \
27545 $target_header_dir/bits/uClibc_config.h > /dev/null; then
27546 gcc_cv_libc_provides_ssp=yes
27548 # all versions of Bionic support stack protector
27549 elif test -f $target_header_dir/sys/cdefs.h \
27550 && $EGREP '^[ ]*#[ ]*define[ ]+__BIONIC__[ ]+1' \
27551 $target_header_dir/sys/cdefs.h > /dev/null; then
27552 gcc_cv_libc_provides_ssp=yes
27556 *-*-gnu*)
27557 # Avoid complicated tests (see
27558 # <http://gcc.gnu.org/ml/gcc/2008-10/msg00130.html>) and for now
27559 # simply assert that glibc does provide this, which is true for all
27560 # realistically usable GNU/Hurd configurations.
27561 gcc_cv_libc_provides_ssp=yes;;
27562 *-*-darwin* | *-*-freebsd*)
27563 ac_fn_c_check_func "$LINENO" "__stack_chk_fail" "ac_cv_func___stack_chk_fail"
27564 if test "x$ac_cv_func___stack_chk_fail" = x""yes; then :
27565 gcc_cv_libc_provides_ssp=yes
27566 else
27567 echo "no __stack_chk_fail on this target"
27571 *) gcc_cv_libc_provides_ssp=no ;;
27572 esac
27574 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_libc_provides_ssp" >&5
27575 $as_echo "$gcc_cv_libc_provides_ssp" >&6; }
27577 if test x$gcc_cv_libc_provides_ssp = xyes; then
27579 $as_echo "#define TARGET_LIBC_PROVIDES_SSP 1" >>confdefs.h
27583 # Test for <sys/sdt.h> on the target.
27585 { $as_echo "$as_me:${as_lineno-$LINENO}: checking sys/sdt.h in the target C library" >&5
27586 $as_echo_n "checking sys/sdt.h in the target C library... " >&6; }
27587 have_sys_sdt_h=no
27588 if test -f $target_header_dir/sys/sdt.h; then
27589 have_sys_sdt_h=yes
27591 $as_echo "#define HAVE_SYS_SDT_H 1" >>confdefs.h
27594 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_sys_sdt_h" >&5
27595 $as_echo "$have_sys_sdt_h" >&6; }
27597 # Check if TFmode long double should be used by default or not.
27598 # Some glibc targets used DFmode long double, but with glibc 2.4
27599 # and later they can use TFmode.
27600 case "$target" in
27601 powerpc*-*-linux* | \
27602 sparc*-*-linux* | \
27603 s390*-*-linux* | \
27604 alpha*-*-linux*)
27606 # Check whether --with-long-double-128 was given.
27607 if test "${with_long_double_128+set}" = set; then :
27608 withval=$with_long_double_128; gcc_cv_target_ldbl128="$with_long_double_128"
27609 else
27611 if test $glibc_version_major -gt 2 \
27612 || ( test $glibc_version_major -eq 2 && test $glibc_version_minor -ge 4 ); then :
27613 gcc_cv_target_ldbl128=yes
27614 else
27616 gcc_cv_target_ldbl128=no
27617 grep '^[ ]*#[ ]*define[ ][ ]*__LONG_DOUBLE_MATH_OPTIONAL' \
27618 $target_header_dir/bits/wordsize.h > /dev/null 2>&1 \
27619 && gcc_cv_target_ldbl128=yes
27625 esac
27626 if test x$gcc_cv_target_ldbl128 = xyes; then
27628 $as_echo "#define TARGET_DEFAULT_LONG_DOUBLE_128 1" >>confdefs.h
27632 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dl_iterate_phdr in target C library" >&5
27633 $as_echo_n "checking dl_iterate_phdr in target C library... " >&6; }
27634 gcc_cv_target_dl_iterate_phdr=unknown
27635 case "$target" in
27636 # Restrict to Solaris 11+. While most of the Solaris 11 linker changes
27637 # were backported to Solaris 10 Update 10, dl_iterate_phdr only lives in
27638 # libdl there, both complicating its use and breaking compatibility
27639 # between Solaris 10 updates.
27640 *-*-solaris2.1[1-9]*)
27641 # <link.h> needs both a dl_iterate_phdr declaration and support for
27642 # compilation with largefile support.
27643 if grep dl_iterate_phdr $target_header_dir/link.h > /dev/null 2>&1 \
27644 && grep 'large file capable' $target_header_dir/link.h > /dev/null 2>&1; then
27645 gcc_cv_target_dl_iterate_phdr=yes
27646 else
27647 gcc_cv_target_dl_iterate_phdr=no
27650 esac
27652 if test x$gcc_cv_target_dl_iterate_phdr = xyes; then
27654 $as_echo "#define TARGET_DL_ITERATE_PHDR 1" >>confdefs.h
27657 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_target_dl_iterate_phdr" >&5
27658 $as_echo "$gcc_cv_target_dl_iterate_phdr" >&6; }
27660 # We no longer support different GC mechanisms. Emit an error if
27661 # the user configures with --with-gc.
27663 # Check whether --with-gc was given.
27664 if test "${with_gc+set}" = set; then :
27665 withval=$with_gc; as_fn_error "Configure option --with-gc is only supported up to GCC 4.7.x" "$LINENO" 5
27669 # Libraries to use on the host. This will normally be set by the top
27670 # level Makefile. Here we simply capture the value for our Makefile.
27671 if test -z "${HOST_LIBS+set}"; then
27672 HOST_LIBS=
27676 # Use the system's zlib library.
27677 zlibdir=-L../zlib
27678 zlibinc="-I\$(srcdir)/../zlib"
27680 # Check whether --with-system-zlib was given.
27681 if test "${with_system_zlib+set}" = set; then :
27682 withval=$with_system_zlib; zlibdir=
27683 zlibinc=
27691 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable maintainer-specific portions of Makefiles" >&5
27692 $as_echo_n "checking whether to enable maintainer-specific portions of Makefiles... " >&6; }
27693 # Check whether --enable-maintainer-mode was given.
27694 if test "${enable_maintainer_mode+set}" = set; then :
27695 enableval=$enable_maintainer_mode; maintainer_mode=$enableval
27696 else
27697 maintainer_mode=no
27701 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $maintainer_mode" >&5
27702 $as_echo "$maintainer_mode" >&6; }
27704 if test "$maintainer_mode" = "yes"; then
27705 MAINT=''
27706 else
27707 MAINT='#'
27711 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to avoid linking multiple front-ends at once" >&5
27712 $as_echo_n "checking whether to avoid linking multiple front-ends at once... " >&6; }
27713 # Check whether --enable-link-mutex was given.
27714 if test "${enable_link_mutex+set}" = set; then :
27715 enableval=$enable_link_mutex; do_link_mutex=$enableval
27716 else
27717 do_link_mutex=no
27720 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $do_link_mutex" >&5
27721 $as_echo "$do_link_mutex" >&6; }
27723 if test "$do_link_mutex" = "yes"; then
27724 DO_LINK_MUTEX=true
27725 else
27726 DO_LINK_MUTEX=false
27730 # --------------
27731 # Language hooks
27732 # --------------
27734 # Make empty files to contain the specs and options for each language.
27735 # Then add #include lines to for a compiler that has specs and/or options.
27737 subdirs=
27738 lang_opt_files=
27739 lang_specs_files=
27740 lang_tree_files=
27741 # These (without "all_") are set in each config-lang.in.
27742 # `language' must be a single word so is spelled singularly.
27743 all_languages=
27744 all_compilers=
27745 all_outputs='Makefile'
27746 # List of language makefile fragments.
27747 all_lang_makefrags=
27748 # Additional files for gengtype
27749 all_gtfiles="$target_gtfiles"
27751 # These are the languages that are set in --enable-languages,
27752 # and are available in the GCC tree.
27753 all_selected_languages=
27755 # Add the language fragments.
27756 # Languages are added via two mechanisms. Some information must be
27757 # recorded in makefile variables, these are defined in config-lang.in.
27758 # We accumulate them and plug them into the main Makefile.
27759 # The other mechanism is a set of hooks for each of the main targets
27760 # like `clean', `install', etc.
27762 language_hooks="Make-hooks"
27764 for lang in ${srcdir}/*/config-lang.in
27766 test "$lang" = "${srcdir}/*/config-lang.in" && continue
27768 lang_alias=`sed -n -e 's,^language=['"'"'"'"]\(.*\)["'"'"'"'].*$,\1,p' -e 's,^language=\([^ ]*\).*$,\1,p' $lang`
27769 if test "x$lang_alias" = x
27770 then
27771 echo "$lang doesn't set \$language." 1>&2
27772 exit 1
27774 subdir="`echo $lang | sed -e 's,^.*/\([^/]*\)/config-lang.in$,\1,'`"
27775 subdirs="$subdirs $subdir"
27777 # $gcc_subdir is where the gcc integration files are to be found
27778 # for a language, both for internal compiler purposes (compiler
27779 # sources implementing front-end to GCC tree converters), and for
27780 # build infrastructure purposes (Make-lang.in, etc.)
27782 # This will be <subdir> (relative to $srcdir) if a line like
27783 # gcc_subdir="<subdir>" or gcc_subdir=<subdir>
27784 # is found in <langdir>/config-lang.in, and will remain <langdir>
27785 # otherwise.
27787 # Except for the language alias (fetched above), the regular
27788 # "config-lang.in" contents are always retrieved from $gcc_subdir,
27789 # so a <langdir>/config-lang.in setting gcc_subdir typically sets
27790 # only this and the language alias.
27792 gcc_subdir=`sed -n -e 's,^gcc_subdir=['"'"'"'"]\(.*\)["'"'"'"'].*$,\1,p' -e 's,^gcc_subdir=\([^ ]*\).*$,\1,p' $lang`
27793 if [ "$gcc_subdir" = "" ]; then
27794 gcc_subdir="$subdir"
27797 case ",$enable_languages," in
27798 *,$lang_alias,*)
27799 all_selected_languages="$all_selected_languages $lang_alias"
27800 if test -f $srcdir/$gcc_subdir/lang-specs.h; then
27801 lang_specs_files="$lang_specs_files $srcdir/$gcc_subdir/lang-specs.h"
27804 esac
27806 language=
27807 boot_language=
27808 compilers=
27809 outputs=
27810 gtfiles=
27811 subdir_requires=
27812 . ${srcdir}/$gcc_subdir/config-lang.in
27813 if test "x$language" = x
27814 then
27815 echo "${srcdir}/$gcc_subdir/config-lang.in doesn't set \$language." 1>&2
27816 exit 1
27819 ok=:
27820 case ",$enable_languages," in
27821 *,$lang_alias,*) ;;
27823 for i in $subdir_requires; do
27824 test -f "${srcdir}/$i/config-lang.in" && continue
27825 ok=false
27826 break
27827 done
27829 esac
27830 $ok || continue
27832 all_lang_makefrags="$all_lang_makefrags \$(srcdir)/$gcc_subdir/Make-lang.in"
27833 if test -f $srcdir/$gcc_subdir/lang.opt; then
27834 lang_opt_files="$lang_opt_files $srcdir/$gcc_subdir/lang.opt"
27835 all_opt_files="$all_opt_files $srcdir/$gcc_subdir/lang.opt"
27837 if test -f $srcdir/$gcc_subdir/$subdir-tree.def; then
27838 lang_tree_files="$lang_tree_files $srcdir/$gcc_subdir/$subdir-tree.def"
27840 all_languages="$all_languages $language"
27841 all_compilers="$all_compilers $compilers"
27842 all_outputs="$all_outputs $outputs"
27843 all_gtfiles="$all_gtfiles [$subdir] $gtfiles"
27844 case ",$enable_languages," in
27845 *,lto,*)
27847 $as_echo "#define ENABLE_LTO 1" >>confdefs.h
27849 enable_lto=yes
27852 *) ;;
27853 esac
27854 done
27856 check_languages=
27857 for language in $all_selected_languages
27859 check_languages="$check_languages check-$language"
27860 done
27862 # We link each language in with a set of hooks, reached indirectly via
27863 # lang.${target}. Only do so for selected languages.
27865 rm -f Make-hooks
27866 touch Make-hooks
27867 target_list="all.cross start.encap rest.encap tags \
27868 install-common install-man install-info install-pdf install-html dvi \
27869 pdf html uninstall info man srcextra srcman srcinfo \
27870 mostlyclean clean distclean maintainer-clean install-plugin"
27872 for t in $target_list
27875 for lang in $all_selected_languages
27877 x="$x $lang.$t"
27878 done
27879 echo "lang.$t: $x" >> Make-hooks
27880 done
27882 # --------
27883 # Option include files
27884 # --------
27886 ${AWK} -f $srcdir/opt-include.awk $all_opt_files > option-includes.mk
27887 option_includes="option-includes.mk"
27890 # --------
27891 # UNSORTED
27892 # --------
27894 # Create .gdbinit.
27896 echo "dir ." > .gdbinit
27897 echo "dir ${srcdir}" >> .gdbinit
27898 if test x$gdb_needs_out_file_path = xyes
27899 then
27900 echo "dir ${srcdir}/config/"`dirname ${out_file}` >> .gdbinit
27902 if test "x$subdirs" != x; then
27903 for s in $subdirs
27905 echo "dir ${srcdir}/$s" >> .gdbinit
27906 done
27908 echo "source ${srcdir}/gdbinit.in" >> .gdbinit
27909 echo "python import sys; sys.path.append('${srcdir}'); import gdbhooks" >> .gdbinit
27911 # Put a breakpoint on __asan_report_error to help with debugging buffer
27912 # overflow.
27913 case "$CFLAGS" in
27914 *-fsanitize=address*)
27915 echo "source ${srcdir}/gdbasan.in" >> .gdbinit
27917 esac
27919 gcc_tooldir='$(libsubdir)/$(libsubdir_to_prefix)$(target_noncanonical)'
27923 # Find a directory in which to install a shared libgcc.
27925 # Check whether --enable-version-specific-runtime-libs was given.
27926 if test "${enable_version_specific_runtime_libs+set}" = set; then :
27927 enableval=$enable_version_specific_runtime_libs;
27931 # Set default prefix canonicalization.
27933 # Check whether --enable-canonical-prefixes was given.
27934 if test "${enable_canonical_prefixes+set}" = set; then :
27935 enableval=$enable_canonical_prefixes;
27936 else
27937 enable_canonical_prefixes=yes
27940 if test x"$enable_canonical_prefixes" = xyes; then
27942 $as_echo "#define ENABLE_CANONICAL_PREFIXES 1" >>confdefs.h
27946 # Substitute configuration variables
28009 # Echo link setup.
28010 if test x${build} = x${host} ; then
28011 if test x${host} = x${target} ; then
28012 echo "Links are now set up to build a native compiler for ${target}." 1>&2
28013 else
28014 echo "Links are now set up to build a cross-compiler" 1>&2
28015 echo " from ${host} to ${target}." 1>&2
28017 else
28018 if test x${host} = x${target} ; then
28019 echo "Links are now set up to build (on ${build}) a native compiler" 1>&2
28020 echo " for ${target}." 1>&2
28021 else
28022 echo "Links are now set up to build (on ${build}) a cross-compiler" 1>&2
28023 echo " from ${host} to ${target}." 1>&2
28035 if test "x${CLOOGLIBS}" != "x" ; then
28037 $as_echo "#define HAVE_cloog 1" >>confdefs.h
28040 # Check whether isl_schedule_constraints_compute_schedule is available;
28041 # it's new in ISL-0.13.
28042 saved_CFLAGS="$CFLAGS"
28043 CFLAGS="$CFLAGS $ISLINC"
28044 saved_LIBS="$LIBS"
28045 LIBS="$LIBS $CLOOGLIBS $ISLLIBS $GMPLIBS"
28047 { $as_echo "$as_me:${as_lineno-$LINENO}: checking Checking for isl_schedule_constraints_compute_schedule" >&5
28048 $as_echo_n "checking Checking for isl_schedule_constraints_compute_schedule... " >&6; }
28049 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
28050 /* end confdefs.h. */
28051 #include <isl/schedule.h>
28053 main ()
28055 isl_schedule_constraints_compute_schedule (NULL);
28057 return 0;
28059 _ACEOF
28060 if ac_fn_c_try_link "$LINENO"; then :
28061 ac_has_isl_schedule_constraints_compute_schedule=yes
28062 else
28063 ac_has_isl_schedule_constraints_compute_schedule=no
28065 rm -f core conftest.err conftest.$ac_objext \
28066 conftest$ac_exeext conftest.$ac_ext
28067 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_has_isl_schedule_constraints_compute_schedule" >&5
28068 $as_echo "$ac_has_isl_schedule_constraints_compute_schedule" >&6; }
28070 LIBS="$saved_LIBS"
28071 CFLAGS="$saved_CFLAGS"
28073 if test x"$ac_has_isl_schedule_constraints_compute_schedule" = x"yes"; then
28075 $as_echo "#define HAVE_ISL_SCHED_CONSTRAINTS_COMPUTE_SCHEDULE 1" >>confdefs.h
28081 # Check for plugin support
28082 # Check whether --enable-plugin was given.
28083 if test "${enable_plugin+set}" = set; then :
28084 enableval=$enable_plugin; enable_plugin=$enableval
28085 else
28086 enable_plugin=yes; default_plugin=yes
28090 pluginlibs=
28092 case "${host}" in
28093 *-*-darwin*)
28094 if test x$build = x$host; then
28095 export_sym_check="nm${exeext} -g"
28096 elif test x$host = x$target; then
28097 export_sym_check="$gcc_cv_nm -g"
28098 else
28099 export_sym_check=
28103 if test x$build = x$host; then
28104 export_sym_check="objdump${exeext} -T"
28105 elif test x$host = x$target; then
28106 export_sym_check="$gcc_cv_objdump -T"
28107 else
28108 export_sym_check=
28111 esac
28113 if test x"$enable_plugin" = x"yes"; then
28115 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for exported symbols" >&5
28116 $as_echo_n "checking for exported symbols... " >&6; }
28117 if test "x$export_sym_check" != x; then
28118 echo "int main() {return 0;} int foobar() {return 0;}" > conftest.c
28119 ${CC} ${CFLAGS} ${LDFLAGS} conftest.c -o conftest$ac_exeext > /dev/null 2>&1
28120 if $export_sym_check conftest$ac_exeext | grep -q foobar > /dev/null; then
28121 : # No need to use a flag
28122 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
28123 $as_echo "yes" >&6; }
28124 else
28125 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
28126 $as_echo "yes" >&6; }
28127 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -rdynamic" >&5
28128 $as_echo_n "checking for -rdynamic... " >&6; }
28129 ${CC} ${CFLAGS} ${LDFLAGS} -rdynamic conftest.c -o conftest$ac_exeext > /dev/null 2>&1
28130 if $export_sym_check conftest$ac_exeext | grep -q foobar > /dev/null; then
28131 plugin_rdynamic=yes
28132 pluginlibs="-rdynamic"
28133 else
28134 plugin_rdynamic=no
28135 enable_plugin=no
28137 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $plugin_rdynamic" >&5
28138 $as_echo "$plugin_rdynamic" >&6; }
28140 else
28141 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unable to check" >&5
28142 $as_echo "unable to check" >&6; }
28145 # Check -ldl
28146 saved_LIBS="$LIBS"
28147 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing dlopen" >&5
28148 $as_echo_n "checking for library containing dlopen... " >&6; }
28149 if test "${ac_cv_search_dlopen+set}" = set; then :
28150 $as_echo_n "(cached) " >&6
28151 else
28152 ac_func_search_save_LIBS=$LIBS
28153 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
28154 /* end confdefs.h. */
28156 /* Override any GCC internal prototype to avoid an error.
28157 Use char because int might match the return type of a GCC
28158 builtin and then its argument prototype would still apply. */
28159 #ifdef __cplusplus
28160 extern "C"
28161 #endif
28162 char dlopen ();
28164 main ()
28166 return dlopen ();
28168 return 0;
28170 _ACEOF
28171 for ac_lib in '' dl; do
28172 if test -z "$ac_lib"; then
28173 ac_res="none required"
28174 else
28175 ac_res=-l$ac_lib
28176 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
28178 if ac_fn_c_try_link "$LINENO"; then :
28179 ac_cv_search_dlopen=$ac_res
28181 rm -f core conftest.err conftest.$ac_objext \
28182 conftest$ac_exeext
28183 if test "${ac_cv_search_dlopen+set}" = set; then :
28184 break
28186 done
28187 if test "${ac_cv_search_dlopen+set}" = set; then :
28189 else
28190 ac_cv_search_dlopen=no
28192 rm conftest.$ac_ext
28193 LIBS=$ac_func_search_save_LIBS
28195 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_dlopen" >&5
28196 $as_echo "$ac_cv_search_dlopen" >&6; }
28197 ac_res=$ac_cv_search_dlopen
28198 if test "$ac_res" != no; then :
28199 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
28203 if test x"$ac_cv_search_dlopen" = x"-ldl"; then
28204 pluginlibs="$pluginlibs -ldl"
28206 LIBS="$saved_LIBS"
28208 # Check that we can build shared objects with -fPIC -shared
28209 saved_LDFLAGS="$LDFLAGS"
28210 saved_CFLAGS="$CFLAGS"
28211 case "${host}" in
28212 *-*-darwin*)
28213 CFLAGS=`echo $CFLAGS | sed s/-mdynamic-no-pic//g`
28214 CFLAGS="$CFLAGS -fPIC"
28215 LDFLAGS="$LDFLAGS -shared -undefined dynamic_lookup"
28218 CFLAGS="$CFLAGS -fPIC"
28219 LDFLAGS="$LDFLAGS -fPIC -shared"
28221 esac
28222 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -fPIC -shared" >&5
28223 $as_echo_n "checking for -fPIC -shared... " >&6; }
28224 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
28225 /* end confdefs.h. */
28226 extern int X;
28228 main ()
28230 return X == 0;
28232 return 0;
28234 _ACEOF
28235 if ac_fn_c_try_link "$LINENO"; then :
28236 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
28237 $as_echo "yes" >&6; }; have_pic_shared=yes
28238 else
28239 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
28240 $as_echo "no" >&6; }; have_pic_shared=no
28242 rm -f core conftest.err conftest.$ac_objext \
28243 conftest$ac_exeext conftest.$ac_ext
28244 if test x"$have_pic_shared" != x"yes" -o x"$ac_cv_search_dlopen" = x"no"; then
28245 pluginlibs=
28246 enable_plugin=no
28248 LDFLAGS="$saved_LDFLAGS"
28249 CFLAGS="$saved_CFLAGS"
28251 # If plugin support had been requested but not available, fail.
28252 if test x"$enable_plugin" = x"no" ; then
28253 if test x"$default_plugin" != x"yes"; then
28254 as_fn_error "
28255 Building GCC with plugin support requires a host that supports
28256 -fPIC, -shared, -ldl and -rdynamic." "$LINENO" 5
28263 if test x"$enable_plugin" = x"yes"; then
28265 $as_echo "#define ENABLE_PLUGIN 1" >>confdefs.h
28270 # Enable --enable-host-shared
28271 # Check whether --enable-host-shared was given.
28272 if test "${enable_host_shared+set}" = set; then :
28273 enableval=$enable_host_shared; PICFLAG=-fPIC
28274 else
28275 PICFLAG=
28282 # Check whether --enable-libquadmath-support was given.
28283 if test "${enable_libquadmath_support+set}" = set; then :
28284 enableval=$enable_libquadmath_support; ENABLE_LIBQUADMATH_SUPPORT=$enableval
28285 else
28286 ENABLE_LIBQUADMATH_SUPPORT=yes
28289 if test "${ENABLE_LIBQUADMATH_SUPPORT}" != "no" ; then
28291 $as_echo "#define ENABLE_LIBQUADMATH_SUPPORT 1" >>confdefs.h
28296 warn_frame_larger_than_extra_text=
28298 # Check whether --with-warn-frame-larger-than-extra-text was given.
28299 if test "${with_warn_frame_larger_than_extra_text+set}" = set; then :
28300 withval=$with_warn_frame_larger_than_extra_text; case "${withval}" in
28301 yes) as_fn_error "bad value ${withval} given for frame size warning text" "$LINENO" 5 ;;
28302 no) ;;
28303 *) warn_frame_larger_than_extra_text="$withval" ;;
28304 esac
28308 cat >>confdefs.h <<_ACEOF
28309 #define WARN_FRAME_LARGER_THAN_EXTRA_TEXT "$warn_frame_larger_than_extra_text"
28310 _ACEOF
28314 # Specify what hash style to use by default.
28316 # Check whether --with-linker-hash-style was given.
28317 if test "${with_linker_hash_style+set}" = set; then :
28318 withval=$with_linker_hash_style; case x"$withval" in
28319 xsysv)
28320 LINKER_HASH_STYLE=sysv
28322 xgnu)
28323 LINKER_HASH_STYLE=gnu
28325 xboth)
28326 LINKER_HASH_STYLE=both
28329 as_fn_error "$withval is an invalid option to --with-linker-hash-style" "$LINENO" 5
28331 esac
28332 else
28333 LINKER_HASH_STYLE=''
28336 if test x"${LINKER_HASH_STYLE}" != x; then
28338 cat >>confdefs.h <<_ACEOF
28339 #define LINKER_HASH_STYLE "$LINKER_HASH_STYLE"
28340 _ACEOF
28344 # Configure the subdirectories
28345 # AC_CONFIG_SUBDIRS($subdirs)
28347 # Create the Makefile
28348 # and configure language subdirectories
28349 ac_config_files="$ac_config_files $all_outputs"
28352 ac_config_commands="$ac_config_commands default"
28354 cat >confcache <<\_ACEOF
28355 # This file is a shell script that caches the results of configure
28356 # tests run on this system so they can be shared between configure
28357 # scripts and configure runs, see configure's option --config-cache.
28358 # It is not useful on other systems. If it contains results you don't
28359 # want to keep, you may remove or edit it.
28361 # config.status only pays attention to the cache file if you give it
28362 # the --recheck option to rerun configure.
28364 # `ac_cv_env_foo' variables (set or unset) will be overridden when
28365 # loading this file, other *unset* `ac_cv_foo' will be assigned the
28366 # following values.
28368 _ACEOF
28370 # The following way of writing the cache mishandles newlines in values,
28371 # but we know of no workaround that is simple, portable, and efficient.
28372 # So, we kill variables containing newlines.
28373 # Ultrix sh set writes to stderr and can't be redirected directly,
28374 # and sets the high bit in the cache file unless we assign to the vars.
28376 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
28377 eval ac_val=\$$ac_var
28378 case $ac_val in #(
28379 *${as_nl}*)
28380 case $ac_var in #(
28381 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
28382 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
28383 esac
28384 case $ac_var in #(
28385 _ | IFS | as_nl) ;; #(
28386 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
28387 *) { eval $ac_var=; unset $ac_var;} ;;
28388 esac ;;
28389 esac
28390 done
28392 (set) 2>&1 |
28393 case $as_nl`(ac_space=' '; set) 2>&1` in #(
28394 *${as_nl}ac_space=\ *)
28395 # `set' does not quote correctly, so add quotes: double-quote
28396 # substitution turns \\\\ into \\, and sed turns \\ into \.
28397 sed -n \
28398 "s/'/'\\\\''/g;
28399 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
28400 ;; #(
28402 # `set' quotes correctly as required by POSIX, so do not add quotes.
28403 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
28405 esac |
28406 sort
28408 sed '
28409 /^ac_cv_env_/b end
28410 t clear
28411 :clear
28412 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
28413 t end
28414 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
28415 :end' >>confcache
28416 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
28417 if test -w "$cache_file"; then
28418 test "x$cache_file" != "x/dev/null" &&
28419 { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
28420 $as_echo "$as_me: updating cache $cache_file" >&6;}
28421 cat confcache >$cache_file
28422 else
28423 { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
28424 $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
28427 rm -f confcache
28429 test "x$prefix" = xNONE && prefix=$ac_default_prefix
28430 # Let make expand exec_prefix.
28431 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
28433 DEFS=-DHAVE_CONFIG_H
28435 ac_libobjs=
28436 ac_ltlibobjs=
28437 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
28438 # 1. Remove the extension, and $U if already installed.
28439 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
28440 ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
28441 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
28442 # will be set to the directory where LIBOBJS objects are built.
28443 as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
28444 as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
28445 done
28446 LIBOBJS=$ac_libobjs
28448 LTLIBOBJS=$ac_ltlibobjs
28453 : ${CONFIG_STATUS=./config.status}
28454 ac_write_fail=0
28455 ac_clean_files_save=$ac_clean_files
28456 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
28457 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
28458 $as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
28459 as_write_fail=0
28460 cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
28461 #! $SHELL
28462 # Generated by $as_me.
28463 # Run this file to recreate the current configuration.
28464 # Compiler output produced by configure, useful for debugging
28465 # configure, is in config.log if it exists.
28467 debug=false
28468 ac_cs_recheck=false
28469 ac_cs_silent=false
28471 SHELL=\${CONFIG_SHELL-$SHELL}
28472 export SHELL
28473 _ASEOF
28474 cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
28475 ## -------------------- ##
28476 ## M4sh Initialization. ##
28477 ## -------------------- ##
28479 # Be more Bourne compatible
28480 DUALCASE=1; export DUALCASE # for MKS sh
28481 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
28482 emulate sh
28483 NULLCMD=:
28484 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
28485 # is contrary to our usage. Disable this feature.
28486 alias -g '${1+"$@"}'='"$@"'
28487 setopt NO_GLOB_SUBST
28488 else
28489 case `(set -o) 2>/dev/null` in #(
28490 *posix*) :
28491 set -o posix ;; #(
28492 *) :
28494 esac
28498 as_nl='
28500 export as_nl
28501 # Printing a long string crashes Solaris 7 /usr/bin/printf.
28502 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
28503 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
28504 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
28505 # Prefer a ksh shell builtin over an external printf program on Solaris,
28506 # but without wasting forks for bash or zsh.
28507 if test -z "$BASH_VERSION$ZSH_VERSION" \
28508 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
28509 as_echo='print -r --'
28510 as_echo_n='print -rn --'
28511 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
28512 as_echo='printf %s\n'
28513 as_echo_n='printf %s'
28514 else
28515 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
28516 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
28517 as_echo_n='/usr/ucb/echo -n'
28518 else
28519 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
28520 as_echo_n_body='eval
28521 arg=$1;
28522 case $arg in #(
28523 *"$as_nl"*)
28524 expr "X$arg" : "X\\(.*\\)$as_nl";
28525 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
28526 esac;
28527 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
28529 export as_echo_n_body
28530 as_echo_n='sh -c $as_echo_n_body as_echo'
28532 export as_echo_body
28533 as_echo='sh -c $as_echo_body as_echo'
28536 # The user is always right.
28537 if test "${PATH_SEPARATOR+set}" != set; then
28538 PATH_SEPARATOR=:
28539 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
28540 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
28541 PATH_SEPARATOR=';'
28546 # IFS
28547 # We need space, tab and new line, in precisely that order. Quoting is
28548 # there to prevent editors from complaining about space-tab.
28549 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
28550 # splitting by setting IFS to empty value.)
28551 IFS=" "" $as_nl"
28553 # Find who we are. Look in the path if we contain no directory separator.
28554 case $0 in #((
28555 *[\\/]* ) as_myself=$0 ;;
28556 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
28557 for as_dir in $PATH
28559 IFS=$as_save_IFS
28560 test -z "$as_dir" && as_dir=.
28561 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
28562 done
28563 IFS=$as_save_IFS
28566 esac
28567 # We did not find ourselves, most probably we were run as `sh COMMAND'
28568 # in which case we are not to be found in the path.
28569 if test "x$as_myself" = x; then
28570 as_myself=$0
28572 if test ! -f "$as_myself"; then
28573 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
28574 exit 1
28577 # Unset variables that we do not need and which cause bugs (e.g. in
28578 # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
28579 # suppresses any "Segmentation fault" message there. '((' could
28580 # trigger a bug in pdksh 5.2.14.
28581 for as_var in BASH_ENV ENV MAIL MAILPATH
28582 do eval test x\${$as_var+set} = xset \
28583 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
28584 done
28585 PS1='$ '
28586 PS2='> '
28587 PS4='+ '
28589 # NLS nuisances.
28590 LC_ALL=C
28591 export LC_ALL
28592 LANGUAGE=C
28593 export LANGUAGE
28595 # CDPATH.
28596 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
28599 # as_fn_error ERROR [LINENO LOG_FD]
28600 # ---------------------------------
28601 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
28602 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
28603 # script with status $?, using 1 if that was 0.
28604 as_fn_error ()
28606 as_status=$?; test $as_status -eq 0 && as_status=1
28607 if test "$3"; then
28608 as_lineno=${as_lineno-"$2"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
28609 $as_echo "$as_me:${as_lineno-$LINENO}: error: $1" >&$3
28611 $as_echo "$as_me: error: $1" >&2
28612 as_fn_exit $as_status
28613 } # as_fn_error
28616 # as_fn_set_status STATUS
28617 # -----------------------
28618 # Set $? to STATUS, without forking.
28619 as_fn_set_status ()
28621 return $1
28622 } # as_fn_set_status
28624 # as_fn_exit STATUS
28625 # -----------------
28626 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
28627 as_fn_exit ()
28629 set +e
28630 as_fn_set_status $1
28631 exit $1
28632 } # as_fn_exit
28634 # as_fn_unset VAR
28635 # ---------------
28636 # Portably unset VAR.
28637 as_fn_unset ()
28639 { eval $1=; unset $1;}
28641 as_unset=as_fn_unset
28642 # as_fn_append VAR VALUE
28643 # ----------------------
28644 # Append the text in VALUE to the end of the definition contained in VAR. Take
28645 # advantage of any shell optimizations that allow amortized linear growth over
28646 # repeated appends, instead of the typical quadratic growth present in naive
28647 # implementations.
28648 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
28649 eval 'as_fn_append ()
28651 eval $1+=\$2
28653 else
28654 as_fn_append ()
28656 eval $1=\$$1\$2
28658 fi # as_fn_append
28660 # as_fn_arith ARG...
28661 # ------------------
28662 # Perform arithmetic evaluation on the ARGs, and store the result in the
28663 # global $as_val. Take advantage of shells that can avoid forks. The arguments
28664 # must be portable across $(()) and expr.
28665 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
28666 eval 'as_fn_arith ()
28668 as_val=$(( $* ))
28670 else
28671 as_fn_arith ()
28673 as_val=`expr "$@" || test $? -eq 1`
28675 fi # as_fn_arith
28678 if expr a : '\(a\)' >/dev/null 2>&1 &&
28679 test "X`expr 00001 : '.*\(...\)'`" = X001; then
28680 as_expr=expr
28681 else
28682 as_expr=false
28685 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
28686 as_basename=basename
28687 else
28688 as_basename=false
28691 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
28692 as_dirname=dirname
28693 else
28694 as_dirname=false
28697 as_me=`$as_basename -- "$0" ||
28698 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
28699 X"$0" : 'X\(//\)$' \| \
28700 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
28701 $as_echo X/"$0" |
28702 sed '/^.*\/\([^/][^/]*\)\/*$/{
28703 s//\1/
28706 /^X\/\(\/\/\)$/{
28707 s//\1/
28710 /^X\/\(\/\).*/{
28711 s//\1/
28714 s/.*/./; q'`
28716 # Avoid depending upon Character Ranges.
28717 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
28718 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
28719 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
28720 as_cr_digits='0123456789'
28721 as_cr_alnum=$as_cr_Letters$as_cr_digits
28723 ECHO_C= ECHO_N= ECHO_T=
28724 case `echo -n x` in #(((((
28725 -n*)
28726 case `echo 'xy\c'` in
28727 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
28728 xy) ECHO_C='\c';;
28729 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
28730 ECHO_T=' ';;
28731 esac;;
28733 ECHO_N='-n';;
28734 esac
28736 rm -f conf$$ conf$$.exe conf$$.file
28737 if test -d conf$$.dir; then
28738 rm -f conf$$.dir/conf$$.file
28739 else
28740 rm -f conf$$.dir
28741 mkdir conf$$.dir 2>/dev/null
28743 if (echo >conf$$.file) 2>/dev/null; then
28744 if ln -s conf$$.file conf$$ 2>/dev/null; then
28745 as_ln_s='ln -s'
28746 # ... but there are two gotchas:
28747 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
28748 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
28749 # In both cases, we have to default to `cp -p'.
28750 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
28751 as_ln_s='cp -p'
28752 elif ln conf$$.file conf$$ 2>/dev/null; then
28753 as_ln_s=ln
28754 else
28755 as_ln_s='cp -p'
28757 else
28758 as_ln_s='cp -p'
28760 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
28761 rmdir conf$$.dir 2>/dev/null
28764 # as_fn_mkdir_p
28765 # -------------
28766 # Create "$as_dir" as a directory, including parents if necessary.
28767 as_fn_mkdir_p ()
28770 case $as_dir in #(
28771 -*) as_dir=./$as_dir;;
28772 esac
28773 test -d "$as_dir" || eval $as_mkdir_p || {
28774 as_dirs=
28775 while :; do
28776 case $as_dir in #(
28777 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
28778 *) as_qdir=$as_dir;;
28779 esac
28780 as_dirs="'$as_qdir' $as_dirs"
28781 as_dir=`$as_dirname -- "$as_dir" ||
28782 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
28783 X"$as_dir" : 'X\(//\)[^/]' \| \
28784 X"$as_dir" : 'X\(//\)$' \| \
28785 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
28786 $as_echo X"$as_dir" |
28787 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
28788 s//\1/
28791 /^X\(\/\/\)[^/].*/{
28792 s//\1/
28795 /^X\(\/\/\)$/{
28796 s//\1/
28799 /^X\(\/\).*/{
28800 s//\1/
28803 s/.*/./; q'`
28804 test -d "$as_dir" && break
28805 done
28806 test -z "$as_dirs" || eval "mkdir $as_dirs"
28807 } || test -d "$as_dir" || as_fn_error "cannot create directory $as_dir"
28810 } # as_fn_mkdir_p
28811 if mkdir -p . 2>/dev/null; then
28812 as_mkdir_p='mkdir -p "$as_dir"'
28813 else
28814 test -d ./-p && rmdir ./-p
28815 as_mkdir_p=false
28818 if test -x / >/dev/null 2>&1; then
28819 as_test_x='test -x'
28820 else
28821 if ls -dL / >/dev/null 2>&1; then
28822 as_ls_L_option=L
28823 else
28824 as_ls_L_option=
28826 as_test_x='
28827 eval sh -c '\''
28828 if test -d "$1"; then
28829 test -d "$1/.";
28830 else
28831 case $1 in #(
28832 -*)set "./$1";;
28833 esac;
28834 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in #((
28835 ???[sx]*):;;*)false;;esac;fi
28836 '\'' sh
28839 as_executable_p=$as_test_x
28841 # Sed expression to map a string onto a valid CPP name.
28842 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
28844 # Sed expression to map a string onto a valid variable name.
28845 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
28848 exec 6>&1
28849 ## ----------------------------------- ##
28850 ## Main body of $CONFIG_STATUS script. ##
28851 ## ----------------------------------- ##
28852 _ASEOF
28853 test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
28855 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
28856 # Save the log message, to keep $0 and so on meaningful, and to
28857 # report actual input values of CONFIG_FILES etc. instead of their
28858 # values after options handling.
28859 ac_log="
28860 This file was extended by $as_me, which was
28861 generated by GNU Autoconf 2.64. Invocation command line was
28863 CONFIG_FILES = $CONFIG_FILES
28864 CONFIG_HEADERS = $CONFIG_HEADERS
28865 CONFIG_LINKS = $CONFIG_LINKS
28866 CONFIG_COMMANDS = $CONFIG_COMMANDS
28867 $ $0 $@
28869 on `(hostname || uname -n) 2>/dev/null | sed 1q`
28872 _ACEOF
28874 case $ac_config_files in *"
28875 "*) set x $ac_config_files; shift; ac_config_files=$*;;
28876 esac
28878 case $ac_config_headers in *"
28879 "*) set x $ac_config_headers; shift; ac_config_headers=$*;;
28880 esac
28883 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
28884 # Files that config.status was made for.
28885 config_files="$ac_config_files"
28886 config_headers="$ac_config_headers"
28887 config_links="$ac_config_links"
28888 config_commands="$ac_config_commands"
28890 _ACEOF
28892 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
28893 ac_cs_usage="\
28894 \`$as_me' instantiates files and other configuration actions
28895 from templates according to the current configuration. Unless the files
28896 and actions are specified as TAGs, all are instantiated by default.
28898 Usage: $0 [OPTION]... [TAG]...
28900 -h, --help print this help, then exit
28901 -V, --version print version number and configuration settings, then exit
28902 -q, --quiet, --silent
28903 do not print progress messages
28904 -d, --debug don't remove temporary files
28905 --recheck update $as_me by reconfiguring in the same conditions
28906 --file=FILE[:TEMPLATE]
28907 instantiate the configuration file FILE
28908 --header=FILE[:TEMPLATE]
28909 instantiate the configuration header FILE
28911 Configuration files:
28912 $config_files
28914 Configuration headers:
28915 $config_headers
28917 Configuration links:
28918 $config_links
28920 Configuration commands:
28921 $config_commands
28923 Report bugs to the package provider."
28925 _ACEOF
28926 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
28927 ac_cs_version="\\
28928 config.status
28929 configured by $0, generated by GNU Autoconf 2.64,
28930 with options \\"`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`\\"
28932 Copyright (C) 2009 Free Software Foundation, Inc.
28933 This config.status script is free software; the Free Software Foundation
28934 gives unlimited permission to copy, distribute and modify it."
28936 ac_pwd='$ac_pwd'
28937 srcdir='$srcdir'
28938 AWK='$AWK'
28939 test -n "\$AWK" || AWK=awk
28940 _ACEOF
28942 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
28943 # The default lists apply if the user does not specify any file.
28944 ac_need_defaults=:
28945 while test $# != 0
28947 case $1 in
28948 --*=*)
28949 ac_option=`expr "X$1" : 'X\([^=]*\)='`
28950 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
28951 ac_shift=:
28954 ac_option=$1
28955 ac_optarg=$2
28956 ac_shift=shift
28958 esac
28960 case $ac_option in
28961 # Handling of the options.
28962 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
28963 ac_cs_recheck=: ;;
28964 --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
28965 $as_echo "$ac_cs_version"; exit ;;
28966 --debug | --debu | --deb | --de | --d | -d )
28967 debug=: ;;
28968 --file | --fil | --fi | --f )
28969 $ac_shift
28970 case $ac_optarg in
28971 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
28972 esac
28973 as_fn_append CONFIG_FILES " '$ac_optarg'"
28974 ac_need_defaults=false;;
28975 --header | --heade | --head | --hea )
28976 $ac_shift
28977 case $ac_optarg in
28978 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
28979 esac
28980 as_fn_append CONFIG_HEADERS " '$ac_optarg'"
28981 ac_need_defaults=false;;
28982 --he | --h)
28983 # Conflict between --help and --header
28984 as_fn_error "ambiguous option: \`$1'
28985 Try \`$0 --help' for more information.";;
28986 --help | --hel | -h )
28987 $as_echo "$ac_cs_usage"; exit ;;
28988 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
28989 | -silent | --silent | --silen | --sile | --sil | --si | --s)
28990 ac_cs_silent=: ;;
28992 # This is an error.
28993 -*) as_fn_error "unrecognized option: \`$1'
28994 Try \`$0 --help' for more information." ;;
28996 *) as_fn_append ac_config_targets " $1"
28997 ac_need_defaults=false ;;
28999 esac
29000 shift
29001 done
29003 ac_configure_extra_args=
29005 if $ac_cs_silent; then
29006 exec 6>/dev/null
29007 ac_configure_extra_args="$ac_configure_extra_args --silent"
29010 _ACEOF
29011 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
29012 if \$ac_cs_recheck; then
29013 set X '$SHELL' '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
29014 shift
29015 \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
29016 CONFIG_SHELL='$SHELL'
29017 export CONFIG_SHELL
29018 exec "\$@"
29021 _ACEOF
29022 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
29023 exec 5>>config.log
29025 echo
29026 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
29027 ## Running $as_me. ##
29028 _ASBOX
29029 $as_echo "$ac_log"
29030 } >&5
29032 _ACEOF
29033 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
29035 # INIT-COMMANDS
29037 ac_aux_dir=$ac_aux_dir DEPDIR=$DEPDIR
29038 subdirs="$subdirs" ac_aux_dir=$ac_aux_dir DEPDIR=$DEPDIR
29039 subdirs='$subdirs'
29041 _ACEOF
29043 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
29045 # Handling of arguments.
29046 for ac_config_target in $ac_config_targets
29048 case $ac_config_target in
29049 "auto-host.h") CONFIG_HEADERS="$CONFIG_HEADERS auto-host.h:config.in" ;;
29050 "depdir") CONFIG_COMMANDS="$CONFIG_COMMANDS depdir" ;;
29051 "gccdepdir") CONFIG_COMMANDS="$CONFIG_COMMANDS gccdepdir" ;;
29052 "as") CONFIG_FILES="$CONFIG_FILES as:exec-tool.in" ;;
29053 "collect-ld") CONFIG_FILES="$CONFIG_FILES collect-ld:exec-tool.in" ;;
29054 "nm") CONFIG_FILES="$CONFIG_FILES nm:exec-tool.in" ;;
29055 "clearcap.map") CONFIG_LINKS="$CONFIG_LINKS clearcap.map:${srcdir}/config/$clearcap_map" ;;
29056 "$all_outputs") CONFIG_FILES="$CONFIG_FILES $all_outputs" ;;
29057 "default") CONFIG_COMMANDS="$CONFIG_COMMANDS default" ;;
29059 *) as_fn_error "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
29060 esac
29061 done
29064 # If the user did not use the arguments to specify the items to instantiate,
29065 # then the envvar interface is used. Set only those that are not.
29066 # We use the long form for the default assignment because of an extremely
29067 # bizarre bug on SunOS 4.1.3.
29068 if $ac_need_defaults; then
29069 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
29070 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
29071 test "${CONFIG_LINKS+set}" = set || CONFIG_LINKS=$config_links
29072 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
29075 # Have a temporary directory for convenience. Make it in the build tree
29076 # simply because there is no reason against having it here, and in addition,
29077 # creating and moving files from /tmp can sometimes cause problems.
29078 # Hook for its removal unless debugging.
29079 # Note that there is a small window in which the directory will not be cleaned:
29080 # after its creation but before its name has been assigned to `$tmp'.
29081 $debug ||
29083 tmp=
29084 trap 'exit_status=$?
29085 { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status
29087 trap 'as_fn_exit 1' 1 2 13 15
29089 # Create a (secure) tmp directory for tmp files.
29092 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
29093 test -n "$tmp" && test -d "$tmp"
29094 } ||
29096 tmp=./conf$$-$RANDOM
29097 (umask 077 && mkdir "$tmp")
29098 } || as_fn_error "cannot create a temporary directory in ." "$LINENO" 5
29100 # Set up the scripts for CONFIG_FILES section.
29101 # No need to generate them if there are no CONFIG_FILES.
29102 # This happens for instance with `./config.status config.h'.
29103 if test -n "$CONFIG_FILES"; then
29105 if $AWK 'BEGIN { getline <"/dev/null" }' </dev/null 2>/dev/null; then
29106 ac_cs_awk_getline=:
29107 ac_cs_awk_pipe_init=
29108 ac_cs_awk_read_file='
29109 while ((getline aline < (F[key])) > 0)
29110 print(aline)
29111 close(F[key])'
29112 ac_cs_awk_pipe_fini=
29113 else
29114 ac_cs_awk_getline=false
29115 ac_cs_awk_pipe_init="print \"cat <<'|#_!!_#|' &&\""
29116 ac_cs_awk_read_file='
29117 print "|#_!!_#|"
29118 print "cat " F[key] " &&"
29119 '$ac_cs_awk_pipe_init
29120 # The final `:' finishes the AND list.
29121 ac_cs_awk_pipe_fini='END { print "|#_!!_#|"; print ":" }'
29123 ac_cr=`echo X | tr X '\015'`
29124 # On cygwin, bash can eat \r inside `` if the user requested igncr.
29125 # But we know of no other shell where ac_cr would be empty at this
29126 # point, so we can use a bashism as a fallback.
29127 if test "x$ac_cr" = x; then
29128 eval ac_cr=\$\'\\r\'
29130 ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
29131 if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
29132 ac_cs_awk_cr='\r'
29133 else
29134 ac_cs_awk_cr=$ac_cr
29137 echo 'BEGIN {' >"$tmp/subs1.awk" &&
29138 _ACEOF
29140 # Create commands to substitute file output variables.
29142 echo "cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1" &&
29143 echo 'cat >>"\$tmp/subs1.awk" <<\\_ACAWK &&' &&
29144 echo "$ac_subst_files" | sed 's/.*/F["&"]="$&"/' &&
29145 echo "_ACAWK" &&
29146 echo "_ACEOF"
29147 } >conf$$files.sh &&
29148 . ./conf$$files.sh ||
29149 as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5
29150 rm -f conf$$files.sh
29153 echo "cat >conf$$subs.awk <<_ACEOF" &&
29154 echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
29155 echo "_ACEOF"
29156 } >conf$$subs.sh ||
29157 as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5
29158 ac_delim_num=`echo "$ac_subst_vars" | grep -c '$'`
29159 ac_delim='%!_!# '
29160 for ac_last_try in false false false false false :; do
29161 . ./conf$$subs.sh ||
29162 as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5
29164 ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
29165 if test $ac_delim_n = $ac_delim_num; then
29166 break
29167 elif $ac_last_try; then
29168 as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5
29169 else
29170 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
29172 done
29173 rm -f conf$$subs.sh
29175 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
29176 cat >>"\$tmp/subs1.awk" <<\\_ACAWK &&
29177 _ACEOF
29178 sed -n '
29180 s/^/S["/; s/!.*/"]=/
29183 s/^[^!]*!//
29184 :repl
29185 t repl
29186 s/'"$ac_delim"'$//
29187 t delim
29190 s/\(.\{148\}\).*/\1/
29191 t more1
29192 s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
29195 b repl
29196 :more1
29197 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
29200 s/.\{148\}//
29201 t nl
29202 :delim
29204 s/\(.\{148\}\).*/\1/
29205 t more2
29206 s/["\\]/\\&/g; s/^/"/; s/$/"/
29209 :more2
29210 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
29213 s/.\{148\}//
29214 t delim
29215 ' <conf$$subs.awk | sed '
29216 /^[^""]/{
29218 s/\n//
29220 ' >>$CONFIG_STATUS || ac_write_fail=1
29221 rm -f conf$$subs.awk
29222 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
29223 _ACAWK
29224 cat >>"\$tmp/subs1.awk" <<_ACAWK &&
29225 for (key in S) S_is_set[key] = 1
29226 FS = "\a"
29227 \$ac_cs_awk_pipe_init
29230 line = $ 0
29231 nfields = split(line, field, "@")
29232 substed = 0
29233 len = length(field[1])
29234 for (i = 2; i < nfields; i++) {
29235 key = field[i]
29236 keylen = length(key)
29237 if (S_is_set[key]) {
29238 value = S[key]
29239 line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
29240 len += length(value) + length(field[++i])
29241 substed = 1
29242 } else
29243 len += 1 + keylen
29245 if (nfields == 3 && !substed) {
29246 key = field[2]
29247 if (F[key] != "" && line ~ /^[ ]*@.*@[ ]*$/) {
29248 \$ac_cs_awk_read_file
29249 next
29252 print line
29254 \$ac_cs_awk_pipe_fini
29255 _ACAWK
29256 _ACEOF
29257 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
29258 if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
29259 sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
29260 else
29262 fi < "$tmp/subs1.awk" > "$tmp/subs.awk" \
29263 || as_fn_error "could not setup config files machinery" "$LINENO" 5
29264 _ACEOF
29266 # VPATH may cause trouble with some makes, so we remove $(srcdir),
29267 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
29268 # trailing colons and then remove the whole line if VPATH becomes empty
29269 # (actually we leave an empty line to preserve line numbers).
29270 if test "x$srcdir" = x.; then
29271 ac_vpsub='/^[ ]*VPATH[ ]*=/{
29272 s/:*\$(srcdir):*/:/
29273 s/:*\${srcdir}:*/:/
29274 s/:*@srcdir@:*/:/
29275 s/^\([^=]*=[ ]*\):*/\1/
29276 s/:*$//
29277 s/^[^=]*=[ ]*$//
29281 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
29282 fi # test -n "$CONFIG_FILES"
29284 # Set up the scripts for CONFIG_HEADERS section.
29285 # No need to generate them if there are no CONFIG_HEADERS.
29286 # This happens for instance with `./config.status Makefile'.
29287 if test -n "$CONFIG_HEADERS"; then
29288 cat >"$tmp/defines.awk" <<\_ACAWK ||
29289 BEGIN {
29290 _ACEOF
29292 # Transform confdefs.h into an awk script `defines.awk', embedded as
29293 # here-document in config.status, that substitutes the proper values into
29294 # config.h.in to produce config.h.
29296 # Create a delimiter string that does not exist in confdefs.h, to ease
29297 # handling of long lines.
29298 ac_delim='%!_!# '
29299 for ac_last_try in false false :; do
29300 ac_t=`sed -n "/$ac_delim/p" confdefs.h`
29301 if test -z "$ac_t"; then
29302 break
29303 elif $ac_last_try; then
29304 as_fn_error "could not make $CONFIG_HEADERS" "$LINENO" 5
29305 else
29306 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
29308 done
29310 # For the awk script, D is an array of macro values keyed by name,
29311 # likewise P contains macro parameters if any. Preserve backslash
29312 # newline sequences.
29314 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
29315 sed -n '
29316 s/.\{148\}/&'"$ac_delim"'/g
29317 t rset
29318 :rset
29319 s/^[ ]*#[ ]*define[ ][ ]*/ /
29320 t def
29322 :def
29323 s/\\$//
29324 t bsnl
29325 s/["\\]/\\&/g
29326 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
29327 D["\1"]=" \3"/p
29328 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2"/p
29330 :bsnl
29331 s/["\\]/\\&/g
29332 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
29333 D["\1"]=" \3\\\\\\n"\\/p
29334 t cont
29335 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
29336 t cont
29338 :cont
29340 s/.\{148\}/&'"$ac_delim"'/g
29341 t clear
29342 :clear
29343 s/\\$//
29344 t bsnlc
29345 s/["\\]/\\&/g; s/^/"/; s/$/"/p
29347 :bsnlc
29348 s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
29349 b cont
29350 ' <confdefs.h | sed '
29351 s/'"$ac_delim"'/"\\\
29352 "/g' >>$CONFIG_STATUS || ac_write_fail=1
29354 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
29355 for (key in D) D_is_set[key] = 1
29356 FS = "\a"
29358 /^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
29359 line = \$ 0
29360 split(line, arg, " ")
29361 if (arg[1] == "#") {
29362 defundef = arg[2]
29363 mac1 = arg[3]
29364 } else {
29365 defundef = substr(arg[1], 2)
29366 mac1 = arg[2]
29368 split(mac1, mac2, "(") #)
29369 macro = mac2[1]
29370 prefix = substr(line, 1, index(line, defundef) - 1)
29371 if (D_is_set[macro]) {
29372 # Preserve the white space surrounding the "#".
29373 print prefix "define", macro P[macro] D[macro]
29374 next
29375 } else {
29376 # Replace #undef with comments. This is necessary, for example,
29377 # in the case of _POSIX_SOURCE, which is predefined and required
29378 # on some systems where configure will not decide to define it.
29379 if (defundef == "undef") {
29380 print "/*", prefix defundef, macro, "*/"
29381 next
29385 { print }
29386 _ACAWK
29387 _ACEOF
29388 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
29389 as_fn_error "could not setup config headers machinery" "$LINENO" 5
29390 fi # test -n "$CONFIG_HEADERS"
29393 eval set X " :F $CONFIG_FILES :H $CONFIG_HEADERS :L $CONFIG_LINKS :C $CONFIG_COMMANDS"
29394 shift
29395 for ac_tag
29397 case $ac_tag in
29398 :[FHLC]) ac_mode=$ac_tag; continue;;
29399 esac
29400 case $ac_mode$ac_tag in
29401 :[FHL]*:*);;
29402 :L* | :C*:*) as_fn_error "invalid tag \`$ac_tag'" "$LINENO" 5;;
29403 :[FH]-) ac_tag=-:-;;
29404 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
29405 esac
29406 ac_save_IFS=$IFS
29407 IFS=:
29408 set x $ac_tag
29409 IFS=$ac_save_IFS
29410 shift
29411 ac_file=$1
29412 shift
29414 case $ac_mode in
29415 :L) ac_source=$1;;
29416 :[FH])
29417 ac_file_inputs=
29418 for ac_f
29420 case $ac_f in
29421 -) ac_f="$tmp/stdin";;
29422 *) # Look for the file first in the build tree, then in the source tree
29423 # (if the path is not absolute). The absolute path cannot be DOS-style,
29424 # because $ac_f cannot contain `:'.
29425 test -f "$ac_f" ||
29426 case $ac_f in
29427 [\\/$]*) false;;
29428 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
29429 esac ||
29430 as_fn_error "cannot find input file: \`$ac_f'" "$LINENO" 5;;
29431 esac
29432 case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
29433 as_fn_append ac_file_inputs " '$ac_f'"
29434 done
29436 # Let's still pretend it is `configure' which instantiates (i.e., don't
29437 # use $as_me), people would be surprised to read:
29438 # /* config.h. Generated by config.status. */
29439 configure_input='Generated from '`
29440 $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
29441 `' by configure.'
29442 if test x"$ac_file" != x-; then
29443 configure_input="$ac_file. $configure_input"
29444 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
29445 $as_echo "$as_me: creating $ac_file" >&6;}
29447 # Neutralize special characters interpreted by sed in replacement strings.
29448 case $configure_input in #(
29449 *\&* | *\|* | *\\* )
29450 ac_sed_conf_input=`$as_echo "$configure_input" |
29451 sed 's/[\\\\&|]/\\\\&/g'`;; #(
29452 *) ac_sed_conf_input=$configure_input;;
29453 esac
29455 case $ac_tag in
29456 *:-:* | *:-) cat >"$tmp/stdin" \
29457 || as_fn_error "could not create $ac_file" "$LINENO" 5 ;;
29458 esac
29460 esac
29462 ac_dir=`$as_dirname -- "$ac_file" ||
29463 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
29464 X"$ac_file" : 'X\(//\)[^/]' \| \
29465 X"$ac_file" : 'X\(//\)$' \| \
29466 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
29467 $as_echo X"$ac_file" |
29468 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
29469 s//\1/
29472 /^X\(\/\/\)[^/].*/{
29473 s//\1/
29476 /^X\(\/\/\)$/{
29477 s//\1/
29480 /^X\(\/\).*/{
29481 s//\1/
29484 s/.*/./; q'`
29485 as_dir="$ac_dir"; as_fn_mkdir_p
29486 ac_builddir=.
29488 case "$ac_dir" in
29489 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
29491 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
29492 # A ".." for each directory in $ac_dir_suffix.
29493 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
29494 case $ac_top_builddir_sub in
29495 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
29496 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
29497 esac ;;
29498 esac
29499 ac_abs_top_builddir=$ac_pwd
29500 ac_abs_builddir=$ac_pwd$ac_dir_suffix
29501 # for backward compatibility:
29502 ac_top_builddir=$ac_top_build_prefix
29504 case $srcdir in
29505 .) # We are building in place.
29506 ac_srcdir=.
29507 ac_top_srcdir=$ac_top_builddir_sub
29508 ac_abs_top_srcdir=$ac_pwd ;;
29509 [\\/]* | ?:[\\/]* ) # Absolute name.
29510 ac_srcdir=$srcdir$ac_dir_suffix;
29511 ac_top_srcdir=$srcdir
29512 ac_abs_top_srcdir=$srcdir ;;
29513 *) # Relative name.
29514 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
29515 ac_top_srcdir=$ac_top_build_prefix$srcdir
29516 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
29517 esac
29518 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
29521 case $ac_mode in
29524 # CONFIG_FILE
29527 _ACEOF
29529 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
29530 # If the template does not know about datarootdir, expand it.
29531 # FIXME: This hack should be removed a few years after 2.60.
29532 ac_datarootdir_hack=; ac_datarootdir_seen=
29533 ac_sed_dataroot='
29534 /datarootdir/ {
29538 /@datadir@/p
29539 /@docdir@/p
29540 /@infodir@/p
29541 /@localedir@/p
29542 /@mandir@/p'
29543 case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
29544 *datarootdir*) ac_datarootdir_seen=yes;;
29545 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
29546 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
29547 $as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
29548 _ACEOF
29549 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
29550 ac_datarootdir_hack='
29551 s&@datadir@&$datadir&g
29552 s&@docdir@&$docdir&g
29553 s&@infodir@&$infodir&g
29554 s&@localedir@&$localedir&g
29555 s&@mandir@&$mandir&g
29556 s&\\\${datarootdir}&$datarootdir&g' ;;
29557 esac
29558 _ACEOF
29560 # Neutralize VPATH when `$srcdir' = `.'.
29561 # Shell code in configure.ac might set extrasub.
29562 # FIXME: do we really want to maintain this feature?
29563 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
29564 ac_sed_extra="$ac_vpsub
29565 $extrasub
29566 _ACEOF
29567 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
29569 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
29570 s|@configure_input@|$ac_sed_conf_input|;t t
29571 s&@top_builddir@&$ac_top_builddir_sub&;t t
29572 s&@top_build_prefix@&$ac_top_build_prefix&;t t
29573 s&@srcdir@&$ac_srcdir&;t t
29574 s&@abs_srcdir@&$ac_abs_srcdir&;t t
29575 s&@top_srcdir@&$ac_top_srcdir&;t t
29576 s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
29577 s&@builddir@&$ac_builddir&;t t
29578 s&@abs_builddir@&$ac_abs_builddir&;t t
29579 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
29580 $ac_datarootdir_hack
29582 eval sed \"\$ac_sed_extra\" "$ac_file_inputs" |
29583 if $ac_cs_awk_getline; then
29584 $AWK -f "$tmp/subs.awk"
29585 else
29586 $AWK -f "$tmp/subs.awk" | $SHELL
29587 fi >$tmp/out \
29588 || as_fn_error "could not create $ac_file" "$LINENO" 5
29590 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
29591 { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out"`; test -n "$ac_out"; } &&
29592 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' "$tmp/out"`; test -z "$ac_out"; } &&
29593 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
29594 which seems to be undefined. Please make sure it is defined." >&5
29595 $as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
29596 which seems to be undefined. Please make sure it is defined." >&2;}
29598 rm -f "$tmp/stdin"
29599 case $ac_file in
29600 -) cat "$tmp/out" && rm -f "$tmp/out";;
29601 *) rm -f "$ac_file" && mv "$tmp/out" "$ac_file";;
29602 esac \
29603 || as_fn_error "could not create $ac_file" "$LINENO" 5
29607 # CONFIG_HEADER
29609 if test x"$ac_file" != x-; then
29611 $as_echo "/* $configure_input */" \
29612 && eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs"
29613 } >"$tmp/config.h" \
29614 || as_fn_error "could not create $ac_file" "$LINENO" 5
29615 if diff "$ac_file" "$tmp/config.h" >/dev/null 2>&1; then
29616 { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
29617 $as_echo "$as_me: $ac_file is unchanged" >&6;}
29618 else
29619 rm -f "$ac_file"
29620 mv "$tmp/config.h" "$ac_file" \
29621 || as_fn_error "could not create $ac_file" "$LINENO" 5
29623 else
29624 $as_echo "/* $configure_input */" \
29625 && eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs" \
29626 || as_fn_error "could not create -" "$LINENO" 5
29631 # CONFIG_LINK
29634 if test "$ac_source" = "$ac_file" && test "$srcdir" = '.'; then
29636 else
29637 # Prefer the file from the source tree if names are identical.
29638 if test "$ac_source" = "$ac_file" || test ! -r "$ac_source"; then
29639 ac_source=$srcdir/$ac_source
29642 { $as_echo "$as_me:${as_lineno-$LINENO}: linking $ac_source to $ac_file" >&5
29643 $as_echo "$as_me: linking $ac_source to $ac_file" >&6;}
29645 if test ! -r "$ac_source"; then
29646 as_fn_error "$ac_source: file not found" "$LINENO" 5
29648 rm -f "$ac_file"
29650 # Try a relative symlink, then a hard link, then a copy.
29651 case $srcdir in
29652 [\\/$]* | ?:[\\/]* ) ac_rel_source=$ac_source ;;
29653 *) ac_rel_source=$ac_top_build_prefix$ac_source ;;
29654 esac
29655 ln -s "$ac_rel_source" "$ac_file" 2>/dev/null ||
29656 ln "$ac_source" "$ac_file" 2>/dev/null ||
29657 cp -p "$ac_source" "$ac_file" ||
29658 as_fn_error "cannot link or copy $ac_source to $ac_file" "$LINENO" 5
29661 :C) { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
29662 $as_echo "$as_me: executing $ac_file commands" >&6;}
29664 esac
29667 case $ac_file$ac_mode in
29668 "depdir":C) $SHELL $ac_aux_dir/mkinstalldirs $DEPDIR ;;
29669 "gccdepdir":C)
29670 ${CONFIG_SHELL-/bin/sh} $ac_aux_dir/mkinstalldirs build/$DEPDIR
29671 for lang in $subdirs c-family common
29673 ${CONFIG_SHELL-/bin/sh} $ac_aux_dir/mkinstalldirs $lang/$DEPDIR
29674 done ;;
29675 "as":F) chmod +x as ;;
29676 "collect-ld":F) chmod +x collect-ld ;;
29677 "nm":F) chmod +x nm ;;
29678 "default":C)
29679 case ${CONFIG_HEADERS} in
29680 *auto-host.h:config.in*)
29681 echo > cstamp-h ;;
29682 esac
29683 # Make sure all the subdirs exist.
29684 for d in $subdirs doc build common c-family
29686 test -d $d || mkdir $d
29687 done
29690 esac
29691 done # for ac_tag
29694 as_fn_exit 0
29695 _ACEOF
29696 ac_clean_files=$ac_clean_files_save
29698 test $ac_write_fail = 0 ||
29699 as_fn_error "write failure creating $CONFIG_STATUS" "$LINENO" 5
29702 # configure is writing to config.log, and then calls config.status.
29703 # config.status does its own redirection, appending to config.log.
29704 # Unfortunately, on DOS this fails, as config.log is still kept open
29705 # by configure, so config.status won't be able to write to it; its
29706 # output is simply discarded. So we exec the FD to /dev/null,
29707 # effectively closing config.log, so it can be properly (re)opened and
29708 # appended to by config.status. When coming back to configure, we
29709 # need to make the FD available again.
29710 if test "$no_create" != yes; then
29711 ac_cs_success=:
29712 ac_config_status_args=
29713 test "$silent" = yes &&
29714 ac_config_status_args="$ac_config_status_args --quiet"
29715 exec 5>/dev/null
29716 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
29717 exec 5>>config.log
29718 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
29719 # would make configure fail if this is the last instruction.
29720 $ac_cs_success || as_fn_exit $?
29722 if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
29723 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
29724 $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}