Remove LIB_TLS_SPEC on Solaris
[official-gcc.git] / gcc / configure
blob4326867b0eae30a8dcd08c51dee62a0c20da0494
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 SYSROOT_CFLAGS_FOR_TARGET
772 enable_shared
773 enable_fixed_point
774 enable_decimal_float
775 with_float
776 with_cpu
777 enable_multiarch
778 enable_multilib
779 coverage_flags
780 valgrind_command
781 valgrind_path_defines
782 valgrind_path
783 TREECHECKING
784 TREEBROWSER
785 nocommon_flag
786 noexception_flags
787 warn_cxxflags
788 warn_cflags
789 c_strict_warn
790 strict_warn
791 c_loose_warn
792 loose_warn
793 EGREP
794 GREP
796 PICFLAG_FOR_TARGET
797 GNATMAKE
798 GNATBIND
799 ac_ct_CXX
800 CXXFLAGS
802 OBJEXT
803 EXEEXT
804 ac_ct_CC
805 CPPFLAGS
806 LDFLAGS
807 CFLAGS
809 GENINSRC
810 target_subdir
811 host_subdir
812 build_subdir
813 build_libsubdir
814 target_noncanonical
815 target_os
816 target_vendor
817 target_cpu
818 target
819 host_os
820 host_vendor
821 host_cpu
822 host
823 build_os
824 build_vendor
825 build_cpu
826 build
827 target_alias
828 host_alias
829 build_alias
830 LIBS
831 ECHO_T
832 ECHO_N
833 ECHO_C
834 DEFS
835 mandir
836 localedir
837 libdir
838 psdir
839 pdfdir
840 dvidir
841 htmldir
842 infodir
843 docdir
844 oldincludedir
845 includedir
846 localstatedir
847 sharedstatedir
848 sysconfdir
849 datadir
850 datarootdir
851 libexecdir
852 sbindir
853 bindir
854 program_transform_name
855 prefix
856 exec_prefix
857 PACKAGE_URL
858 PACKAGE_BUGREPORT
859 PACKAGE_STRING
860 PACKAGE_VERSION
861 PACKAGE_TARNAME
862 PACKAGE_NAME
863 PATH_SEPARATOR
864 SHELL'
865 ac_subst_files='option_includes
866 language_hooks'
867 ac_user_opts='
868 enable_option_checking
869 with_build_libsubdir
870 with_local_prefix
871 with_gxx_include_dir
872 with_cpp_install_dir
873 enable_generated_files_in_srcdir
874 with_gnu_ld
875 with_ld
876 with_demangler_in_ld
877 with_gnu_as
878 with_as
879 enable_largefile
880 enable_build_format_warnings
881 enable_werror_always
882 enable_checking
883 enable_coverage
884 enable_gather_detailed_mem_stats
885 with_stabs
886 enable_multilib
887 enable_multiarch
888 enable___cxa_atexit
889 enable_decimal_float
890 enable_fixed_point
891 enable_threads
892 enable_tls
893 enable_objc_gc
894 with_dwarf2
895 enable_shared
896 with_native_system_header_dir
897 with_build_sysroot
898 with_sysroot
899 with_specs
900 with_pkgversion
901 with_bugurl
902 enable_languages
903 with_multilib_list
904 enable_rpath
905 with_libiconv_prefix
906 enable_sjlj_exceptions
907 enable_secureplt
908 enable_leading_mingw64_underscores
909 enable_cld
910 enable_frame_pointer
911 enable_win32_registry
912 enable_static
913 with_pic
914 enable_fast_install
915 enable_libtool_lock
916 enable_ld
917 enable_gold
918 with_plugin_ld
919 enable_gnu_indirect_function
920 enable_initfini_array
921 enable_comdat
922 with_glibc_version
923 enable_gnu_unique_object
924 enable_linker_build_id
925 with_long_double_128
926 with_gc
927 with_system_zlib
928 enable_maintainer_mode
929 enable_link_mutex
930 enable_version_specific_runtime_libs
931 enable_plugin
932 enable_host_shared
933 enable_libquadmath_support
934 with_linker_hash_style
936 ac_precious_vars='build_alias
937 host_alias
938 target_alias
940 CFLAGS
941 LDFLAGS
942 LIBS
943 CPPFLAGS
945 CXXFLAGS
948 CXXCPP
949 GMPLIBS
950 GMPINC
951 ISLLIBS
952 ISLINC
953 CLOOGLIBS
954 CLOOGINC'
957 # Initialize some variables set by options.
958 ac_init_help=
959 ac_init_version=false
960 ac_unrecognized_opts=
961 ac_unrecognized_sep=
962 # The variables have the same names as the options, with
963 # dashes changed to underlines.
964 cache_file=/dev/null
965 exec_prefix=NONE
966 no_create=
967 no_recursion=
968 prefix=NONE
969 program_prefix=NONE
970 program_suffix=NONE
971 program_transform_name=s,x,x,
972 silent=
973 site=
974 srcdir=
975 verbose=
976 x_includes=NONE
977 x_libraries=NONE
979 # Installation directory options.
980 # These are left unexpanded so users can "make install exec_prefix=/foo"
981 # and all the variables that are supposed to be based on exec_prefix
982 # by default will actually change.
983 # Use braces instead of parens because sh, perl, etc. also accept them.
984 # (The list follows the same order as the GNU Coding Standards.)
985 bindir='${exec_prefix}/bin'
986 sbindir='${exec_prefix}/sbin'
987 libexecdir='${exec_prefix}/libexec'
988 datarootdir='${prefix}/share'
989 datadir='${datarootdir}'
990 sysconfdir='${prefix}/etc'
991 sharedstatedir='${prefix}/com'
992 localstatedir='${prefix}/var'
993 includedir='${prefix}/include'
994 oldincludedir='/usr/include'
995 docdir='${datarootdir}/doc/${PACKAGE}'
996 infodir='${datarootdir}/info'
997 htmldir='${docdir}'
998 dvidir='${docdir}'
999 pdfdir='${docdir}'
1000 psdir='${docdir}'
1001 libdir='${exec_prefix}/lib'
1002 localedir='${datarootdir}/locale'
1003 mandir='${datarootdir}/man'
1005 ac_prev=
1006 ac_dashdash=
1007 for ac_option
1009 # If the previous option needs an argument, assign it.
1010 if test -n "$ac_prev"; then
1011 eval $ac_prev=\$ac_option
1012 ac_prev=
1013 continue
1016 case $ac_option in
1017 *=*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
1018 *) ac_optarg=yes ;;
1019 esac
1021 # Accept the important Cygnus configure options, so we can diagnose typos.
1023 case $ac_dashdash$ac_option in
1025 ac_dashdash=yes ;;
1027 -bindir | --bindir | --bindi | --bind | --bin | --bi)
1028 ac_prev=bindir ;;
1029 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
1030 bindir=$ac_optarg ;;
1032 -build | --build | --buil | --bui | --bu)
1033 ac_prev=build_alias ;;
1034 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
1035 build_alias=$ac_optarg ;;
1037 -cache-file | --cache-file | --cache-fil | --cache-fi \
1038 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
1039 ac_prev=cache_file ;;
1040 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
1041 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
1042 cache_file=$ac_optarg ;;
1044 --config-cache | -C)
1045 cache_file=config.cache ;;
1047 -datadir | --datadir | --datadi | --datad)
1048 ac_prev=datadir ;;
1049 -datadir=* | --datadir=* | --datadi=* | --datad=*)
1050 datadir=$ac_optarg ;;
1052 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
1053 | --dataroo | --dataro | --datar)
1054 ac_prev=datarootdir ;;
1055 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
1056 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
1057 datarootdir=$ac_optarg ;;
1059 -disable-* | --disable-*)
1060 ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
1061 # Reject names that are not valid shell variable names.
1062 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1063 as_fn_error "invalid feature name: $ac_useropt"
1064 ac_useropt_orig=$ac_useropt
1065 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1066 case $ac_user_opts in
1068 "enable_$ac_useropt"
1069 "*) ;;
1070 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
1071 ac_unrecognized_sep=', ';;
1072 esac
1073 eval enable_$ac_useropt=no ;;
1075 -docdir | --docdir | --docdi | --doc | --do)
1076 ac_prev=docdir ;;
1077 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
1078 docdir=$ac_optarg ;;
1080 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
1081 ac_prev=dvidir ;;
1082 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
1083 dvidir=$ac_optarg ;;
1085 -enable-* | --enable-*)
1086 ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
1087 # Reject names that are not valid shell variable names.
1088 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1089 as_fn_error "invalid feature name: $ac_useropt"
1090 ac_useropt_orig=$ac_useropt
1091 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1092 case $ac_user_opts in
1094 "enable_$ac_useropt"
1095 "*) ;;
1096 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
1097 ac_unrecognized_sep=', ';;
1098 esac
1099 eval enable_$ac_useropt=\$ac_optarg ;;
1101 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
1102 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
1103 | --exec | --exe | --ex)
1104 ac_prev=exec_prefix ;;
1105 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
1106 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
1107 | --exec=* | --exe=* | --ex=*)
1108 exec_prefix=$ac_optarg ;;
1110 -gas | --gas | --ga | --g)
1111 # Obsolete; use --with-gas.
1112 with_gas=yes ;;
1114 -help | --help | --hel | --he | -h)
1115 ac_init_help=long ;;
1116 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
1117 ac_init_help=recursive ;;
1118 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
1119 ac_init_help=short ;;
1121 -host | --host | --hos | --ho)
1122 ac_prev=host_alias ;;
1123 -host=* | --host=* | --hos=* | --ho=*)
1124 host_alias=$ac_optarg ;;
1126 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
1127 ac_prev=htmldir ;;
1128 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
1129 | --ht=*)
1130 htmldir=$ac_optarg ;;
1132 -includedir | --includedir | --includedi | --included | --include \
1133 | --includ | --inclu | --incl | --inc)
1134 ac_prev=includedir ;;
1135 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
1136 | --includ=* | --inclu=* | --incl=* | --inc=*)
1137 includedir=$ac_optarg ;;
1139 -infodir | --infodir | --infodi | --infod | --info | --inf)
1140 ac_prev=infodir ;;
1141 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
1142 infodir=$ac_optarg ;;
1144 -libdir | --libdir | --libdi | --libd)
1145 ac_prev=libdir ;;
1146 -libdir=* | --libdir=* | --libdi=* | --libd=*)
1147 libdir=$ac_optarg ;;
1149 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
1150 | --libexe | --libex | --libe)
1151 ac_prev=libexecdir ;;
1152 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
1153 | --libexe=* | --libex=* | --libe=*)
1154 libexecdir=$ac_optarg ;;
1156 -localedir | --localedir | --localedi | --localed | --locale)
1157 ac_prev=localedir ;;
1158 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
1159 localedir=$ac_optarg ;;
1161 -localstatedir | --localstatedir | --localstatedi | --localstated \
1162 | --localstate | --localstat | --localsta | --localst | --locals)
1163 ac_prev=localstatedir ;;
1164 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
1165 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
1166 localstatedir=$ac_optarg ;;
1168 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1169 ac_prev=mandir ;;
1170 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1171 mandir=$ac_optarg ;;
1173 -nfp | --nfp | --nf)
1174 # Obsolete; use --without-fp.
1175 with_fp=no ;;
1177 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1178 | --no-cr | --no-c | -n)
1179 no_create=yes ;;
1181 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1182 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1183 no_recursion=yes ;;
1185 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1186 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1187 | --oldin | --oldi | --old | --ol | --o)
1188 ac_prev=oldincludedir ;;
1189 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1190 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1191 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1192 oldincludedir=$ac_optarg ;;
1194 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1195 ac_prev=prefix ;;
1196 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1197 prefix=$ac_optarg ;;
1199 -program-prefix | --program-prefix | --program-prefi | --program-pref \
1200 | --program-pre | --program-pr | --program-p)
1201 ac_prev=program_prefix ;;
1202 -program-prefix=* | --program-prefix=* | --program-prefi=* \
1203 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1204 program_prefix=$ac_optarg ;;
1206 -program-suffix | --program-suffix | --program-suffi | --program-suff \
1207 | --program-suf | --program-su | --program-s)
1208 ac_prev=program_suffix ;;
1209 -program-suffix=* | --program-suffix=* | --program-suffi=* \
1210 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1211 program_suffix=$ac_optarg ;;
1213 -program-transform-name | --program-transform-name \
1214 | --program-transform-nam | --program-transform-na \
1215 | --program-transform-n | --program-transform- \
1216 | --program-transform | --program-transfor \
1217 | --program-transfo | --program-transf \
1218 | --program-trans | --program-tran \
1219 | --progr-tra | --program-tr | --program-t)
1220 ac_prev=program_transform_name ;;
1221 -program-transform-name=* | --program-transform-name=* \
1222 | --program-transform-nam=* | --program-transform-na=* \
1223 | --program-transform-n=* | --program-transform-=* \
1224 | --program-transform=* | --program-transfor=* \
1225 | --program-transfo=* | --program-transf=* \
1226 | --program-trans=* | --program-tran=* \
1227 | --progr-tra=* | --program-tr=* | --program-t=*)
1228 program_transform_name=$ac_optarg ;;
1230 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1231 ac_prev=pdfdir ;;
1232 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1233 pdfdir=$ac_optarg ;;
1235 -psdir | --psdir | --psdi | --psd | --ps)
1236 ac_prev=psdir ;;
1237 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1238 psdir=$ac_optarg ;;
1240 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1241 | -silent | --silent | --silen | --sile | --sil)
1242 silent=yes ;;
1244 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1245 ac_prev=sbindir ;;
1246 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1247 | --sbi=* | --sb=*)
1248 sbindir=$ac_optarg ;;
1250 -sharedstatedir | --sharedstatedir | --sharedstatedi \
1251 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1252 | --sharedst | --shareds | --shared | --share | --shar \
1253 | --sha | --sh)
1254 ac_prev=sharedstatedir ;;
1255 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1256 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1257 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1258 | --sha=* | --sh=*)
1259 sharedstatedir=$ac_optarg ;;
1261 -site | --site | --sit)
1262 ac_prev=site ;;
1263 -site=* | --site=* | --sit=*)
1264 site=$ac_optarg ;;
1266 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1267 ac_prev=srcdir ;;
1268 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1269 srcdir=$ac_optarg ;;
1271 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1272 | --syscon | --sysco | --sysc | --sys | --sy)
1273 ac_prev=sysconfdir ;;
1274 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1275 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1276 sysconfdir=$ac_optarg ;;
1278 -target | --target | --targe | --targ | --tar | --ta | --t)
1279 ac_prev=target_alias ;;
1280 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1281 target_alias=$ac_optarg ;;
1283 -v | -verbose | --verbose | --verbos | --verbo | --verb)
1284 verbose=yes ;;
1286 -version | --version | --versio | --versi | --vers | -V)
1287 ac_init_version=: ;;
1289 -with-* | --with-*)
1290 ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1291 # Reject names that are not valid shell variable names.
1292 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1293 as_fn_error "invalid package name: $ac_useropt"
1294 ac_useropt_orig=$ac_useropt
1295 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1296 case $ac_user_opts in
1298 "with_$ac_useropt"
1299 "*) ;;
1300 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1301 ac_unrecognized_sep=', ';;
1302 esac
1303 eval with_$ac_useropt=\$ac_optarg ;;
1305 -without-* | --without-*)
1306 ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1307 # Reject names that are not valid shell variable names.
1308 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1309 as_fn_error "invalid package name: $ac_useropt"
1310 ac_useropt_orig=$ac_useropt
1311 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1312 case $ac_user_opts in
1314 "with_$ac_useropt"
1315 "*) ;;
1316 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1317 ac_unrecognized_sep=', ';;
1318 esac
1319 eval with_$ac_useropt=no ;;
1321 --x)
1322 # Obsolete; use --with-x.
1323 with_x=yes ;;
1325 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1326 | --x-incl | --x-inc | --x-in | --x-i)
1327 ac_prev=x_includes ;;
1328 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1329 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1330 x_includes=$ac_optarg ;;
1332 -x-libraries | --x-libraries | --x-librarie | --x-librari \
1333 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1334 ac_prev=x_libraries ;;
1335 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1336 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1337 x_libraries=$ac_optarg ;;
1339 -*) as_fn_error "unrecognized option: \`$ac_option'
1340 Try \`$0 --help' for more information."
1343 *=*)
1344 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1345 # Reject names that are not valid shell variable names.
1346 case $ac_envvar in #(
1347 '' | [0-9]* | *[!_$as_cr_alnum]* )
1348 as_fn_error "invalid variable name: \`$ac_envvar'" ;;
1349 esac
1350 eval $ac_envvar=\$ac_optarg
1351 export $ac_envvar ;;
1354 # FIXME: should be removed in autoconf 3.0.
1355 $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1356 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1357 $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1358 : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
1361 esac
1362 done
1364 if test -n "$ac_prev"; then
1365 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1366 as_fn_error "missing argument to $ac_option"
1369 if test -n "$ac_unrecognized_opts"; then
1370 case $enable_option_checking in
1371 no) ;;
1372 fatal) as_fn_error "unrecognized options: $ac_unrecognized_opts" ;;
1373 *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1374 esac
1377 # Check all directory arguments for consistency.
1378 for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1379 datadir sysconfdir sharedstatedir localstatedir includedir \
1380 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1381 libdir localedir mandir
1383 eval ac_val=\$$ac_var
1384 # Remove trailing slashes.
1385 case $ac_val in
1386 */ )
1387 ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1388 eval $ac_var=\$ac_val;;
1389 esac
1390 # Be sure to have absolute directory names.
1391 case $ac_val in
1392 [\\/$]* | ?:[\\/]* ) continue;;
1393 NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1394 esac
1395 as_fn_error "expected an absolute directory name for --$ac_var: $ac_val"
1396 done
1398 # There might be people who depend on the old broken behavior: `$host'
1399 # used to hold the argument of --host etc.
1400 # FIXME: To remove some day.
1401 build=$build_alias
1402 host=$host_alias
1403 target=$target_alias
1405 # FIXME: To remove some day.
1406 if test "x$host_alias" != x; then
1407 if test "x$build_alias" = x; then
1408 cross_compiling=maybe
1409 $as_echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
1410 If a cross compiler is detected then cross compile mode will be used." >&2
1411 elif test "x$build_alias" != "x$host_alias"; then
1412 cross_compiling=yes
1416 ac_tool_prefix=
1417 test -n "$host_alias" && ac_tool_prefix=$host_alias-
1419 test "$silent" = yes && exec 6>/dev/null
1422 ac_pwd=`pwd` && test -n "$ac_pwd" &&
1423 ac_ls_di=`ls -di .` &&
1424 ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1425 as_fn_error "working directory cannot be determined"
1426 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1427 as_fn_error "pwd does not report name of working directory"
1430 # Find the source files, if location was not specified.
1431 if test -z "$srcdir"; then
1432 ac_srcdir_defaulted=yes
1433 # Try the directory containing this script, then the parent directory.
1434 ac_confdir=`$as_dirname -- "$as_myself" ||
1435 $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1436 X"$as_myself" : 'X\(//\)[^/]' \| \
1437 X"$as_myself" : 'X\(//\)$' \| \
1438 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1439 $as_echo X"$as_myself" |
1440 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1441 s//\1/
1444 /^X\(\/\/\)[^/].*/{
1445 s//\1/
1448 /^X\(\/\/\)$/{
1449 s//\1/
1452 /^X\(\/\).*/{
1453 s//\1/
1456 s/.*/./; q'`
1457 srcdir=$ac_confdir
1458 if test ! -r "$srcdir/$ac_unique_file"; then
1459 srcdir=..
1461 else
1462 ac_srcdir_defaulted=no
1464 if test ! -r "$srcdir/$ac_unique_file"; then
1465 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1466 as_fn_error "cannot find sources ($ac_unique_file) in $srcdir"
1468 ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1469 ac_abs_confdir=`(
1470 cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error "$ac_msg"
1471 pwd)`
1472 # When building in place, set srcdir=.
1473 if test "$ac_abs_confdir" = "$ac_pwd"; then
1474 srcdir=.
1476 # Remove unnecessary trailing slashes from srcdir.
1477 # Double slashes in file names in object file debugging info
1478 # mess up M-x gdb in Emacs.
1479 case $srcdir in
1480 */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1481 esac
1482 for ac_var in $ac_precious_vars; do
1483 eval ac_env_${ac_var}_set=\${${ac_var}+set}
1484 eval ac_env_${ac_var}_value=\$${ac_var}
1485 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1486 eval ac_cv_env_${ac_var}_value=\$${ac_var}
1487 done
1490 # Report the --help message.
1492 if test "$ac_init_help" = "long"; then
1493 # Omit some internal or obsolete options to make the list less imposing.
1494 # This message is too long to be a string in the A/UX 3.1 sh.
1495 cat <<_ACEOF
1496 \`configure' configures this package to adapt to many kinds of systems.
1498 Usage: $0 [OPTION]... [VAR=VALUE]...
1500 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1501 VAR=VALUE. See below for descriptions of some of the useful variables.
1503 Defaults for the options are specified in brackets.
1505 Configuration:
1506 -h, --help display this help and exit
1507 --help=short display options specific to this package
1508 --help=recursive display the short help of all the included packages
1509 -V, --version display version information and exit
1510 -q, --quiet, --silent do not print \`checking...' messages
1511 --cache-file=FILE cache test results in FILE [disabled]
1512 -C, --config-cache alias for \`--cache-file=config.cache'
1513 -n, --no-create do not create output files
1514 --srcdir=DIR find the sources in DIR [configure dir or \`..']
1516 Installation directories:
1517 --prefix=PREFIX install architecture-independent files in PREFIX
1518 [$ac_default_prefix]
1519 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
1520 [PREFIX]
1522 By default, \`make install' will install all the files in
1523 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1524 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1525 for instance \`--prefix=\$HOME'.
1527 For better control, use the options below.
1529 Fine tuning of the installation directories:
1530 --bindir=DIR user executables [EPREFIX/bin]
1531 --sbindir=DIR system admin executables [EPREFIX/sbin]
1532 --libexecdir=DIR program executables [EPREFIX/libexec]
1533 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1534 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1535 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1536 --libdir=DIR object code libraries [EPREFIX/lib]
1537 --includedir=DIR C header files [PREFIX/include]
1538 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1539 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1540 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1541 --infodir=DIR info documentation [DATAROOTDIR/info]
1542 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1543 --mandir=DIR man documentation [DATAROOTDIR/man]
1544 --docdir=DIR documentation root [DATAROOTDIR/doc/PACKAGE]
1545 --htmldir=DIR html documentation [DOCDIR]
1546 --dvidir=DIR dvi documentation [DOCDIR]
1547 --pdfdir=DIR pdf documentation [DOCDIR]
1548 --psdir=DIR ps documentation [DOCDIR]
1549 _ACEOF
1551 cat <<\_ACEOF
1553 Program names:
1554 --program-prefix=PREFIX prepend PREFIX to installed program names
1555 --program-suffix=SUFFIX append SUFFIX to installed program names
1556 --program-transform-name=PROGRAM run sed PROGRAM on installed program names
1558 System types:
1559 --build=BUILD configure for building on BUILD [guessed]
1560 --host=HOST cross-compile to build programs to run on HOST [BUILD]
1561 --target=TARGET configure for building compilers for TARGET [HOST]
1562 _ACEOF
1565 if test -n "$ac_init_help"; then
1567 cat <<\_ACEOF
1569 Optional Features:
1570 --disable-option-checking ignore unrecognized --enable/--with options
1571 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
1572 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
1573 --enable-generated-files-in-srcdir
1574 put copies of generated files in source dir intended
1575 for creating source tarballs for users without
1576 texinfo bison or flex
1577 --disable-largefile omit support for large files
1578 --disable-build-format-warnings
1579 don't use -Wformat while building GCC
1580 --enable-werror-always enable -Werror despite compiler version
1581 --enable-checking[=LIST]
1582 enable expensive run-time checks. With LIST, enable
1583 only specific categories of checks. Categories are:
1584 yes,no,all,none,release. Flags are:
1585 assert,df,fold,gc,gcac,gimple,misc,
1586 rtlflag,rtl,runtime,tree,valgrind,types
1587 --enable-coverage[=LEVEL]
1588 enable compiler's code coverage collection. Use to
1589 measure compiler performance and locate unused parts
1590 of the compiler. With LEVEL, specify optimization.
1591 Values are opt, noopt, default is noopt
1592 --enable-gather-detailed-mem-stats
1593 enable detailed memory allocation stats gathering
1594 --enable-multilib enable library support for multiple ABIs
1595 --enable-multiarch enable support for multiarch paths
1596 --enable-__cxa_atexit enable __cxa_atexit for C++
1597 --enable-decimal-float={no,yes,bid,dpd}
1598 enable decimal float extension to C. Selecting 'bid'
1599 or 'dpd' choses which decimal floating point format
1600 to use
1601 --enable-fixed-point enable fixed-point arithmetic extension to C
1602 --enable-threads[=LIB] enable thread usage for target GCC, using LIB thread
1603 package
1604 --enable-tls enable or disable generation of tls code overriding
1605 the assembler check for tls support
1606 --enable-objc-gc enable the use of Boehm's garbage collector with the
1607 GNU Objective-C runtime
1608 --disable-shared don't provide a shared libgcc
1609 --enable-languages=LIST specify which front-ends to build
1610 --disable-rpath do not hardcode runtime library paths
1611 --enable-sjlj-exceptions
1612 arrange to use setjmp/longjmp exception handling
1613 --enable-secureplt enable -msecure-plt by default for PowerPC
1614 --enable-leading-mingw64-underscores
1615 enable leading underscores on 64 bit mingw targets
1616 --enable-cld enable -mcld by default for 32bit x86
1617 --enable-frame-pointer enable -fno-omit-frame-pointer by default for 32bit
1619 --disable-win32-registry
1620 disable lookup of installation paths in the Registry
1621 on Windows hosts
1622 --enable-win32-registry enable registry lookup (default)
1623 --enable-win32-registry=KEY
1624 use KEY instead of GCC version as the last portion
1625 of the registry key
1626 --enable-shared[=PKGS] build shared libraries [default=yes]
1627 --enable-static[=PKGS] build static libraries [default=yes]
1628 --enable-fast-install[=PKGS]
1629 optimize for fast installation [default=yes]
1630 --disable-libtool-lock avoid locking (might break parallel builds)
1631 --enable-ld[=ARG] build ld [ARG={default,yes,no}]
1632 --enable-gold[=ARG] build gold [ARG={default,yes,no}]
1633 --enable-gnu-indirect-function
1634 enable the use of the @gnu_indirect_function to
1635 glibc systems
1636 --enable-initfini-array use .init_array/.fini_array sections
1637 --enable-comdat enable COMDAT group support
1638 --enable-gnu-unique-object
1639 enable the use of the @gnu_unique_object ELF
1640 extension on glibc systems
1641 --enable-linker-build-id
1642 compiler will always pass --build-id to linker
1643 --enable-maintainer-mode
1644 enable make rules and dependencies not useful (and
1645 sometimes confusing) to the casual installer
1646 --enable-link-mutex avoid linking multiple front-ends at once to avoid
1647 thrashing on the build machine
1648 --enable-version-specific-runtime-libs
1649 specify that runtime libraries should be installed
1650 in a compiler-specific directory
1651 --enable-plugin enable plugin support
1652 --enable-host-shared build host code as shared libraries
1653 --disable-libquadmath-support
1654 disable libquadmath support for Fortran
1656 Optional Packages:
1657 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1658 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
1659 --with-build-libsubdir=DIR Directory where to find libraries for build system
1660 --with-local-prefix=DIR specifies directory to put local include
1661 --with-gxx-include-dir=DIR
1662 specifies directory to put g++ header files
1663 --with-cpp-install-dir=DIR
1664 install the user visible C preprocessor in DIR
1665 (relative to PREFIX) as well as PREFIX/bin
1666 --with-gnu-ld arrange to work with GNU ld
1667 --with-ld arrange to use the specified ld (full pathname)
1668 --with-demangler-in-ld try to use demangler in GNU ld
1669 --with-gnu-as arrange to work with GNU as
1670 --with-as arrange to use the specified as (full pathname)
1671 --with-stabs arrange to use stabs instead of host debug format
1672 --with-dwarf2 force the default debug format to be DWARF 2
1673 --with-native-system-header-dir=dir
1674 use dir as the directory to look for standard
1675 system header files in. Defaults to /usr/include.
1676 --with-build-sysroot=sysroot
1677 use sysroot as the system root during the build
1678 --with-sysroot[=DIR] search for usr/lib, usr/include, et al, within DIR
1679 --with-specs=SPECS add SPECS to driver command-line processing
1680 --with-pkgversion=PKG Use PKG in the version string in place of "GCC"
1681 --with-bugurl=URL Direct users to URL to report a bug
1682 --with-multilib-list select multilibs (AArch64, SH and x86-64 only)
1683 --with-gnu-ld assume the C compiler uses GNU ld default=no
1684 --with-libiconv-prefix[=DIR] search for libiconv in DIR/include and DIR/lib
1685 --without-libiconv-prefix don't search for libiconv in includedir and libdir
1686 --with-pic try to use only PIC/non-PIC objects [default=use
1687 both]
1688 --with-gnu-ld assume the C compiler uses GNU ld [default=no]
1689 --with-plugin-ld=[ARG] specify the plugin linker
1690 --with-glibc-version=M.N
1691 assume GCC used with glibc version M.N or later
1692 --with-long-double-128 use 128-bit long double by default
1693 --with-gc={page,zone} this option is not supported anymore. It used to
1694 choose the garbage collection mechanism to use with
1695 the compiler
1696 --with-system-zlib use installed libz
1697 --with-linker-hash-style={sysv,gnu,both}
1698 specify the linker hash style
1700 Some influential environment variables:
1701 CC C compiler command
1702 CFLAGS C compiler flags
1703 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1704 nonstandard directory <lib dir>
1705 LIBS libraries to pass to the linker, e.g. -l<library>
1706 CPPFLAGS C/C++/Objective C preprocessor flags, e.g. -I<include dir> if
1707 you have headers in a nonstandard directory <include dir>
1708 CXX C++ compiler command
1709 CXXFLAGS C++ compiler flags
1710 CPP C preprocessor
1711 CXXCPP C++ preprocessor
1712 GMPLIBS How to link GMP
1713 GMPINC How to find GMP include files
1714 ISLLIBS How to link ISL
1715 ISLINC How to find ISL include files
1716 CLOOGLIBS How to link CLOOG
1717 CLOOGINC How to find CLOOG include files
1719 Use these variables to override the choices made by `configure' or to help
1720 it to find libraries and programs with nonstandard names/locations.
1722 Report bugs to the package provider.
1723 _ACEOF
1724 ac_status=$?
1727 if test "$ac_init_help" = "recursive"; then
1728 # If there are subdirs, report their specific --help.
1729 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1730 test -d "$ac_dir" ||
1731 { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1732 continue
1733 ac_builddir=.
1735 case "$ac_dir" in
1736 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1738 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
1739 # A ".." for each directory in $ac_dir_suffix.
1740 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
1741 case $ac_top_builddir_sub in
1742 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1743 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1744 esac ;;
1745 esac
1746 ac_abs_top_builddir=$ac_pwd
1747 ac_abs_builddir=$ac_pwd$ac_dir_suffix
1748 # for backward compatibility:
1749 ac_top_builddir=$ac_top_build_prefix
1751 case $srcdir in
1752 .) # We are building in place.
1753 ac_srcdir=.
1754 ac_top_srcdir=$ac_top_builddir_sub
1755 ac_abs_top_srcdir=$ac_pwd ;;
1756 [\\/]* | ?:[\\/]* ) # Absolute name.
1757 ac_srcdir=$srcdir$ac_dir_suffix;
1758 ac_top_srcdir=$srcdir
1759 ac_abs_top_srcdir=$srcdir ;;
1760 *) # Relative name.
1761 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1762 ac_top_srcdir=$ac_top_build_prefix$srcdir
1763 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1764 esac
1765 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1767 cd "$ac_dir" || { ac_status=$?; continue; }
1768 # Check for guested configure.
1769 if test -f "$ac_srcdir/configure.gnu"; then
1770 echo &&
1771 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1772 elif test -f "$ac_srcdir/configure"; then
1773 echo &&
1774 $SHELL "$ac_srcdir/configure" --help=recursive
1775 else
1776 $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1777 fi || ac_status=$?
1778 cd "$ac_pwd" || { ac_status=$?; break; }
1779 done
1782 test -n "$ac_init_help" && exit $ac_status
1783 if $ac_init_version; then
1784 cat <<\_ACEOF
1785 configure
1786 generated by GNU Autoconf 2.64
1788 Copyright (C) 2009 Free Software Foundation, Inc.
1789 This configure script is free software; the Free Software Foundation
1790 gives unlimited permission to copy, distribute and modify it.
1791 _ACEOF
1792 exit
1795 ## ------------------------ ##
1796 ## Autoconf initialization. ##
1797 ## ------------------------ ##
1799 # ac_fn_c_try_compile LINENO
1800 # --------------------------
1801 # Try to compile conftest.$ac_ext, and return whether this succeeded.
1802 ac_fn_c_try_compile ()
1804 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1805 rm -f conftest.$ac_objext
1806 if { { ac_try="$ac_compile"
1807 case "(($ac_try" in
1808 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1809 *) ac_try_echo=$ac_try;;
1810 esac
1811 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1812 $as_echo "$ac_try_echo"; } >&5
1813 (eval "$ac_compile") 2>conftest.err
1814 ac_status=$?
1815 if test -s conftest.err; then
1816 grep -v '^ *+' conftest.err >conftest.er1
1817 cat conftest.er1 >&5
1818 mv -f conftest.er1 conftest.err
1820 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1821 test $ac_status = 0; } && {
1822 test -z "$ac_c_werror_flag" ||
1823 test ! -s conftest.err
1824 } && test -s conftest.$ac_objext; then :
1825 ac_retval=0
1826 else
1827 $as_echo "$as_me: failed program was:" >&5
1828 sed 's/^/| /' conftest.$ac_ext >&5
1830 ac_retval=1
1832 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1833 return $ac_retval
1835 } # ac_fn_c_try_compile
1837 # ac_fn_cxx_try_compile LINENO
1838 # ----------------------------
1839 # Try to compile conftest.$ac_ext, and return whether this succeeded.
1840 ac_fn_cxx_try_compile ()
1842 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1843 rm -f conftest.$ac_objext
1844 if { { ac_try="$ac_compile"
1845 case "(($ac_try" in
1846 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1847 *) ac_try_echo=$ac_try;;
1848 esac
1849 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1850 $as_echo "$ac_try_echo"; } >&5
1851 (eval "$ac_compile") 2>conftest.err
1852 ac_status=$?
1853 if test -s conftest.err; then
1854 grep -v '^ *+' conftest.err >conftest.er1
1855 cat conftest.er1 >&5
1856 mv -f conftest.er1 conftest.err
1858 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1859 test $ac_status = 0; } && {
1860 test -z "$ac_cxx_werror_flag" ||
1861 test ! -s conftest.err
1862 } && test -s conftest.$ac_objext; then :
1863 ac_retval=0
1864 else
1865 $as_echo "$as_me: failed program was:" >&5
1866 sed 's/^/| /' conftest.$ac_ext >&5
1868 ac_retval=1
1870 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1871 return $ac_retval
1873 } # ac_fn_cxx_try_compile
1875 # ac_fn_c_try_cpp LINENO
1876 # ----------------------
1877 # Try to preprocess conftest.$ac_ext, and return whether this succeeded.
1878 ac_fn_c_try_cpp ()
1880 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1881 if { { ac_try="$ac_cpp conftest.$ac_ext"
1882 case "(($ac_try" in
1883 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1884 *) ac_try_echo=$ac_try;;
1885 esac
1886 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1887 $as_echo "$ac_try_echo"; } >&5
1888 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
1889 ac_status=$?
1890 if test -s conftest.err; then
1891 grep -v '^ *+' conftest.err >conftest.er1
1892 cat conftest.er1 >&5
1893 mv -f conftest.er1 conftest.err
1895 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1896 test $ac_status = 0; } >/dev/null && {
1897 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
1898 test ! -s conftest.err
1899 }; then :
1900 ac_retval=0
1901 else
1902 $as_echo "$as_me: failed program was:" >&5
1903 sed 's/^/| /' conftest.$ac_ext >&5
1905 ac_retval=1
1907 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1908 return $ac_retval
1910 } # ac_fn_c_try_cpp
1912 # ac_fn_c_check_header_mongrel LINENO HEADER VAR INCLUDES
1913 # -------------------------------------------------------
1914 # Tests whether HEADER exists, giving a warning if it cannot be compiled using
1915 # the include files in INCLUDES and setting the cache variable VAR
1916 # accordingly.
1917 ac_fn_c_check_header_mongrel ()
1919 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1920 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
1921 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1922 $as_echo_n "checking for $2... " >&6; }
1923 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
1924 $as_echo_n "(cached) " >&6
1926 eval ac_res=\$$3
1927 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1928 $as_echo "$ac_res" >&6; }
1929 else
1930 # Is the header compilable?
1931 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5
1932 $as_echo_n "checking $2 usability... " >&6; }
1933 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1934 /* end confdefs.h. */
1936 #include <$2>
1937 _ACEOF
1938 if ac_fn_c_try_compile "$LINENO"; then :
1939 ac_header_compiler=yes
1940 else
1941 ac_header_compiler=no
1943 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1944 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5
1945 $as_echo "$ac_header_compiler" >&6; }
1947 # Is the header present?
1948 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5
1949 $as_echo_n "checking $2 presence... " >&6; }
1950 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1951 /* end confdefs.h. */
1952 #include <$2>
1953 _ACEOF
1954 if ac_fn_c_try_cpp "$LINENO"; then :
1955 ac_header_preproc=yes
1956 else
1957 ac_header_preproc=no
1959 rm -f conftest.err conftest.$ac_ext
1960 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5
1961 $as_echo "$ac_header_preproc" >&6; }
1963 # So? What about this header?
1964 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in #((
1965 yes:no: )
1966 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5
1967 $as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;}
1968 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
1969 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
1971 no:yes:* )
1972 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5
1973 $as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;}
1974 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: check for missing prerequisite headers?" >&5
1975 $as_echo "$as_me: WARNING: $2: check for missing prerequisite headers?" >&2;}
1976 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5
1977 $as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;}
1978 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&5
1979 $as_echo "$as_me: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&2;}
1980 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
1981 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
1983 esac
1984 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1985 $as_echo_n "checking for $2... " >&6; }
1986 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
1987 $as_echo_n "(cached) " >&6
1988 else
1989 eval "$3=\$ac_header_compiler"
1991 eval ac_res=\$$3
1992 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1993 $as_echo "$ac_res" >&6; }
1995 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1997 } # ac_fn_c_check_header_mongrel
1999 # ac_fn_c_try_run LINENO
2000 # ----------------------
2001 # Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
2002 # that executables *can* be run.
2003 ac_fn_c_try_run ()
2005 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2006 if { { ac_try="$ac_link"
2007 case "(($ac_try" in
2008 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2009 *) ac_try_echo=$ac_try;;
2010 esac
2011 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2012 $as_echo "$ac_try_echo"; } >&5
2013 (eval "$ac_link") 2>&5
2014 ac_status=$?
2015 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2016 test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
2017 { { case "(($ac_try" in
2018 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2019 *) ac_try_echo=$ac_try;;
2020 esac
2021 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2022 $as_echo "$ac_try_echo"; } >&5
2023 (eval "$ac_try") 2>&5
2024 ac_status=$?
2025 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2026 test $ac_status = 0; }; }; then :
2027 ac_retval=0
2028 else
2029 $as_echo "$as_me: program exited with status $ac_status" >&5
2030 $as_echo "$as_me: failed program was:" >&5
2031 sed 's/^/| /' conftest.$ac_ext >&5
2033 ac_retval=$ac_status
2035 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
2036 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2037 return $ac_retval
2039 } # ac_fn_c_try_run
2041 # ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
2042 # -------------------------------------------------------
2043 # Tests whether HEADER exists and can be compiled using the include files in
2044 # INCLUDES, setting the cache variable VAR accordingly.
2045 ac_fn_c_check_header_compile ()
2047 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2048 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2049 $as_echo_n "checking for $2... " >&6; }
2050 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
2051 $as_echo_n "(cached) " >&6
2052 else
2053 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2054 /* end confdefs.h. */
2056 #include <$2>
2057 _ACEOF
2058 if ac_fn_c_try_compile "$LINENO"; then :
2059 eval "$3=yes"
2060 else
2061 eval "$3=no"
2063 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2065 eval ac_res=\$$3
2066 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2067 $as_echo "$ac_res" >&6; }
2068 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2070 } # ac_fn_c_check_header_compile
2072 # ac_fn_c_compute_int LINENO EXPR VAR INCLUDES
2073 # --------------------------------------------
2074 # Tries to find the compile-time value of EXPR in a program that includes
2075 # INCLUDES, setting VAR accordingly. Returns whether the value could be
2076 # computed
2077 ac_fn_c_compute_int ()
2079 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2080 if test "$cross_compiling" = yes; then
2081 # Depending upon the size, compute the lo and hi bounds.
2082 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2083 /* end confdefs.h. */
2086 main ()
2088 static int test_array [1 - 2 * !(($2) >= 0)];
2089 test_array [0] = 0
2092 return 0;
2094 _ACEOF
2095 if ac_fn_c_try_compile "$LINENO"; then :
2096 ac_lo=0 ac_mid=0
2097 while :; do
2098 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2099 /* end confdefs.h. */
2102 main ()
2104 static int test_array [1 - 2 * !(($2) <= $ac_mid)];
2105 test_array [0] = 0
2108 return 0;
2110 _ACEOF
2111 if ac_fn_c_try_compile "$LINENO"; then :
2112 ac_hi=$ac_mid; break
2113 else
2114 as_fn_arith $ac_mid + 1 && ac_lo=$as_val
2115 if test $ac_lo -le $ac_mid; then
2116 ac_lo= ac_hi=
2117 break
2119 as_fn_arith 2 '*' $ac_mid + 1 && ac_mid=$as_val
2121 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2122 done
2123 else
2124 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2125 /* end confdefs.h. */
2128 main ()
2130 static int test_array [1 - 2 * !(($2) < 0)];
2131 test_array [0] = 0
2134 return 0;
2136 _ACEOF
2137 if ac_fn_c_try_compile "$LINENO"; then :
2138 ac_hi=-1 ac_mid=-1
2139 while :; do
2140 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2141 /* end confdefs.h. */
2144 main ()
2146 static int test_array [1 - 2 * !(($2) >= $ac_mid)];
2147 test_array [0] = 0
2150 return 0;
2152 _ACEOF
2153 if ac_fn_c_try_compile "$LINENO"; then :
2154 ac_lo=$ac_mid; break
2155 else
2156 as_fn_arith '(' $ac_mid ')' - 1 && ac_hi=$as_val
2157 if test $ac_mid -le $ac_hi; then
2158 ac_lo= ac_hi=
2159 break
2161 as_fn_arith 2 '*' $ac_mid && ac_mid=$as_val
2163 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2164 done
2165 else
2166 ac_lo= ac_hi=
2168 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2170 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2171 # Binary search between lo and hi bounds.
2172 while test "x$ac_lo" != "x$ac_hi"; do
2173 as_fn_arith '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo && ac_mid=$as_val
2174 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2175 /* end confdefs.h. */
2178 main ()
2180 static int test_array [1 - 2 * !(($2) <= $ac_mid)];
2181 test_array [0] = 0
2184 return 0;
2186 _ACEOF
2187 if ac_fn_c_try_compile "$LINENO"; then :
2188 ac_hi=$ac_mid
2189 else
2190 as_fn_arith '(' $ac_mid ')' + 1 && ac_lo=$as_val
2192 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2193 done
2194 case $ac_lo in #((
2195 ?*) eval "$3=\$ac_lo"; ac_retval=0 ;;
2196 '') ac_retval=1 ;;
2197 esac
2198 else
2199 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2200 /* end confdefs.h. */
2202 static long int longval () { return $2; }
2203 static unsigned long int ulongval () { return $2; }
2204 #include <stdio.h>
2205 #include <stdlib.h>
2207 main ()
2210 FILE *f = fopen ("conftest.val", "w");
2211 if (! f)
2212 return 1;
2213 if (($2) < 0)
2215 long int i = longval ();
2216 if (i != ($2))
2217 return 1;
2218 fprintf (f, "%ld", i);
2220 else
2222 unsigned long int i = ulongval ();
2223 if (i != ($2))
2224 return 1;
2225 fprintf (f, "%lu", i);
2227 /* Do not output a trailing newline, as this causes \r\n confusion
2228 on some platforms. */
2229 return ferror (f) || fclose (f) != 0;
2232 return 0;
2234 _ACEOF
2235 if ac_fn_c_try_run "$LINENO"; then :
2236 echo >>conftest.val; read $3 <conftest.val; ac_retval=0
2237 else
2238 ac_retval=1
2240 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
2241 conftest.$ac_objext conftest.beam conftest.$ac_ext
2242 rm -f conftest.val
2245 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2246 return $ac_retval
2248 } # ac_fn_c_compute_int
2250 # ac_fn_c_check_type LINENO TYPE VAR INCLUDES
2251 # -------------------------------------------
2252 # Tests whether TYPE exists after having included INCLUDES, setting cache
2253 # variable VAR accordingly.
2254 ac_fn_c_check_type ()
2256 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2257 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2258 $as_echo_n "checking for $2... " >&6; }
2259 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
2260 $as_echo_n "(cached) " >&6
2261 else
2262 eval "$3=no"
2263 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2264 /* end confdefs.h. */
2267 main ()
2269 if (sizeof ($2))
2270 return 0;
2272 return 0;
2274 _ACEOF
2275 if ac_fn_c_try_compile "$LINENO"; then :
2276 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2277 /* end confdefs.h. */
2280 main ()
2282 if (sizeof (($2)))
2283 return 0;
2285 return 0;
2287 _ACEOF
2288 if ac_fn_c_try_compile "$LINENO"; then :
2290 else
2291 eval "$3=yes"
2293 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2295 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2297 eval ac_res=\$$3
2298 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2299 $as_echo "$ac_res" >&6; }
2300 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2302 } # ac_fn_c_check_type
2304 # ac_fn_c_find_intX_t LINENO BITS VAR
2305 # -----------------------------------
2306 # Finds a signed integer type with width BITS, setting cache variable VAR
2307 # accordingly.
2308 ac_fn_c_find_intX_t ()
2310 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2311 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for int$2_t" >&5
2312 $as_echo_n "checking for int$2_t... " >&6; }
2313 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
2314 $as_echo_n "(cached) " >&6
2315 else
2316 eval "$3=no"
2317 for ac_type in int$2_t 'int' 'long int' \
2318 'long long int' 'short int' 'signed char'; do
2319 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2320 /* end confdefs.h. */
2321 $ac_includes_default
2323 main ()
2325 static int test_array [1 - 2 * !(0 < ($ac_type) (((($ac_type) 1 << ($2 - 2)) - 1) * 2 + 1))];
2326 test_array [0] = 0
2329 return 0;
2331 _ACEOF
2332 if ac_fn_c_try_compile "$LINENO"; then :
2333 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2334 /* end confdefs.h. */
2335 $ac_includes_default
2337 main ()
2339 static int test_array [1 - 2 * !(($ac_type) (((($ac_type) 1 << ($2 - 2)) - 1) * 2 + 1)
2340 < ($ac_type) (((($ac_type) 1 << ($2 - 2)) - 1) * 2 + 2))];
2341 test_array [0] = 0
2344 return 0;
2346 _ACEOF
2347 if ac_fn_c_try_compile "$LINENO"; then :
2349 else
2350 case $ac_type in #(
2351 int$2_t) :
2352 eval "$3=yes" ;; #(
2353 *) :
2354 eval "$3=\$ac_type" ;;
2355 esac
2357 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2359 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2360 eval as_val=\$$3
2361 if test "x$as_val" = x""no; then :
2363 else
2364 break
2366 done
2368 eval ac_res=\$$3
2369 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2370 $as_echo "$ac_res" >&6; }
2371 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2373 } # ac_fn_c_find_intX_t
2375 # ac_fn_c_try_link LINENO
2376 # -----------------------
2377 # Try to link conftest.$ac_ext, and return whether this succeeded.
2378 ac_fn_c_try_link ()
2380 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2381 rm -f conftest.$ac_objext conftest$ac_exeext
2382 if { { ac_try="$ac_link"
2383 case "(($ac_try" in
2384 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2385 *) ac_try_echo=$ac_try;;
2386 esac
2387 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2388 $as_echo "$ac_try_echo"; } >&5
2389 (eval "$ac_link") 2>conftest.err
2390 ac_status=$?
2391 if test -s conftest.err; then
2392 grep -v '^ *+' conftest.err >conftest.er1
2393 cat conftest.er1 >&5
2394 mv -f conftest.er1 conftest.err
2396 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2397 test $ac_status = 0; } && {
2398 test -z "$ac_c_werror_flag" ||
2399 test ! -s conftest.err
2400 } && test -s conftest$ac_exeext && {
2401 test "$cross_compiling" = yes ||
2402 $as_test_x conftest$ac_exeext
2403 }; then :
2404 ac_retval=0
2405 else
2406 $as_echo "$as_me: failed program was:" >&5
2407 sed 's/^/| /' conftest.$ac_ext >&5
2409 ac_retval=1
2411 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
2412 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
2413 # interfere with the next link command; also delete a directory that is
2414 # left behind by Apple's compiler. We do this before executing the actions.
2415 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
2416 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2417 return $ac_retval
2419 } # ac_fn_c_try_link
2421 # ac_fn_c_find_uintX_t LINENO BITS VAR
2422 # ------------------------------------
2423 # Finds an unsigned integer type with width BITS, setting cache variable VAR
2424 # accordingly.
2425 ac_fn_c_find_uintX_t ()
2427 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2428 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for uint$2_t" >&5
2429 $as_echo_n "checking for uint$2_t... " >&6; }
2430 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
2431 $as_echo_n "(cached) " >&6
2432 else
2433 eval "$3=no"
2434 for ac_type in uint$2_t 'unsigned int' 'unsigned long int' \
2435 'unsigned long long int' 'unsigned short int' 'unsigned char'; do
2436 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2437 /* end confdefs.h. */
2438 $ac_includes_default
2440 main ()
2442 static int test_array [1 - 2 * !(($ac_type) -1 >> ($2 - 1) == 1)];
2443 test_array [0] = 0
2446 return 0;
2448 _ACEOF
2449 if ac_fn_c_try_compile "$LINENO"; then :
2450 case $ac_type in #(
2451 uint$2_t) :
2452 eval "$3=yes" ;; #(
2453 *) :
2454 eval "$3=\$ac_type" ;;
2455 esac
2457 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2458 eval as_val=\$$3
2459 if test "x$as_val" = x""no; then :
2461 else
2462 break
2464 done
2466 eval ac_res=\$$3
2467 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2468 $as_echo "$ac_res" >&6; }
2469 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2471 } # ac_fn_c_find_uintX_t
2473 # ac_fn_c_check_header_preproc LINENO HEADER VAR
2474 # ----------------------------------------------
2475 # Tests whether HEADER is present, setting the cache variable VAR accordingly.
2476 ac_fn_c_check_header_preproc ()
2478 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2479 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2480 $as_echo_n "checking for $2... " >&6; }
2481 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
2482 $as_echo_n "(cached) " >&6
2483 else
2484 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2485 /* end confdefs.h. */
2486 #include <$2>
2487 _ACEOF
2488 if ac_fn_c_try_cpp "$LINENO"; then :
2489 eval "$3=yes"
2490 else
2491 eval "$3=no"
2493 rm -f conftest.err conftest.$ac_ext
2495 eval ac_res=\$$3
2496 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2497 $as_echo "$ac_res" >&6; }
2498 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2500 } # ac_fn_c_check_header_preproc
2502 # ac_fn_cxx_try_cpp LINENO
2503 # ------------------------
2504 # Try to preprocess conftest.$ac_ext, and return whether this succeeded.
2505 ac_fn_cxx_try_cpp ()
2507 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2508 if { { ac_try="$ac_cpp conftest.$ac_ext"
2509 case "(($ac_try" in
2510 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2511 *) ac_try_echo=$ac_try;;
2512 esac
2513 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2514 $as_echo "$ac_try_echo"; } >&5
2515 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
2516 ac_status=$?
2517 if test -s conftest.err; then
2518 grep -v '^ *+' conftest.err >conftest.er1
2519 cat conftest.er1 >&5
2520 mv -f conftest.er1 conftest.err
2522 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2523 test $ac_status = 0; } >/dev/null && {
2524 test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
2525 test ! -s conftest.err
2526 }; then :
2527 ac_retval=0
2528 else
2529 $as_echo "$as_me: failed program was:" >&5
2530 sed 's/^/| /' conftest.$ac_ext >&5
2532 ac_retval=1
2534 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2535 return $ac_retval
2537 } # ac_fn_cxx_try_cpp
2539 # ac_fn_cxx_check_header_preproc LINENO HEADER VAR
2540 # ------------------------------------------------
2541 # Tests whether HEADER is present, setting the cache variable VAR accordingly.
2542 ac_fn_cxx_check_header_preproc ()
2544 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2545 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2546 $as_echo_n "checking for $2... " >&6; }
2547 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
2548 $as_echo_n "(cached) " >&6
2549 else
2550 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2551 /* end confdefs.h. */
2552 #include <$2>
2553 _ACEOF
2554 if ac_fn_cxx_try_cpp "$LINENO"; then :
2555 eval "$3=yes"
2556 else
2557 eval "$3=no"
2559 rm -f conftest.err conftest.$ac_ext
2561 eval ac_res=\$$3
2562 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2563 $as_echo "$ac_res" >&6; }
2564 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2566 } # ac_fn_cxx_check_header_preproc
2568 # ac_fn_c_check_func LINENO FUNC VAR
2569 # ----------------------------------
2570 # Tests whether FUNC exists, setting the cache variable VAR accordingly
2571 ac_fn_c_check_func ()
2573 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2574 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2575 $as_echo_n "checking for $2... " >&6; }
2576 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
2577 $as_echo_n "(cached) " >&6
2578 else
2579 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2580 /* end confdefs.h. */
2581 /* Define $2 to an innocuous variant, in case <limits.h> declares $2.
2582 For example, HP-UX 11i <limits.h> declares gettimeofday. */
2583 #define $2 innocuous_$2
2585 /* System header to define __stub macros and hopefully few prototypes,
2586 which can conflict with char $2 (); below.
2587 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
2588 <limits.h> exists even on freestanding compilers. */
2590 #ifdef __STDC__
2591 # include <limits.h>
2592 #else
2593 # include <assert.h>
2594 #endif
2596 #undef $2
2598 /* Override any GCC internal prototype to avoid an error.
2599 Use char because int might match the return type of a GCC
2600 builtin and then its argument prototype would still apply. */
2601 #ifdef __cplusplus
2602 extern "C"
2603 #endif
2604 char $2 ();
2605 /* The GNU C library defines this for functions which it implements
2606 to always fail with ENOSYS. Some functions are actually named
2607 something starting with __ and the normal name is an alias. */
2608 #if defined __stub_$2 || defined __stub___$2
2609 choke me
2610 #endif
2613 main ()
2615 return $2 ();
2617 return 0;
2619 _ACEOF
2620 if ac_fn_c_try_link "$LINENO"; then :
2621 eval "$3=yes"
2622 else
2623 eval "$3=no"
2625 rm -f core conftest.err conftest.$ac_objext \
2626 conftest$ac_exeext conftest.$ac_ext
2628 eval ac_res=\$$3
2629 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2630 $as_echo "$ac_res" >&6; }
2631 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2633 } # ac_fn_c_check_func
2635 # ac_fn_cxx_try_link LINENO
2636 # -------------------------
2637 # Try to link conftest.$ac_ext, and return whether this succeeded.
2638 ac_fn_cxx_try_link ()
2640 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2641 rm -f conftest.$ac_objext conftest$ac_exeext
2642 if { { ac_try="$ac_link"
2643 case "(($ac_try" in
2644 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2645 *) ac_try_echo=$ac_try;;
2646 esac
2647 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2648 $as_echo "$ac_try_echo"; } >&5
2649 (eval "$ac_link") 2>conftest.err
2650 ac_status=$?
2651 if test -s conftest.err; then
2652 grep -v '^ *+' conftest.err >conftest.er1
2653 cat conftest.er1 >&5
2654 mv -f conftest.er1 conftest.err
2656 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2657 test $ac_status = 0; } && {
2658 test -z "$ac_cxx_werror_flag" ||
2659 test ! -s conftest.err
2660 } && test -s conftest$ac_exeext && {
2661 test "$cross_compiling" = yes ||
2662 $as_test_x conftest$ac_exeext
2663 }; then :
2664 ac_retval=0
2665 else
2666 $as_echo "$as_me: failed program was:" >&5
2667 sed 's/^/| /' conftest.$ac_ext >&5
2669 ac_retval=1
2671 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
2672 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
2673 # interfere with the next link command; also delete a directory that is
2674 # left behind by Apple's compiler. We do this before executing the actions.
2675 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
2676 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2677 return $ac_retval
2679 } # ac_fn_cxx_try_link
2680 cat >config.log <<_ACEOF
2681 This file contains any messages produced by compilers while
2682 running configure, to aid debugging if configure makes a mistake.
2684 It was created by $as_me, which was
2685 generated by GNU Autoconf 2.64. Invocation command line was
2687 $ $0 $@
2689 _ACEOF
2690 exec 5>>config.log
2692 cat <<_ASUNAME
2693 ## --------- ##
2694 ## Platform. ##
2695 ## --------- ##
2697 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
2698 uname -m = `(uname -m) 2>/dev/null || echo unknown`
2699 uname -r = `(uname -r) 2>/dev/null || echo unknown`
2700 uname -s = `(uname -s) 2>/dev/null || echo unknown`
2701 uname -v = `(uname -v) 2>/dev/null || echo unknown`
2703 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
2704 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
2706 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
2707 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
2708 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
2709 /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
2710 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
2711 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
2712 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
2714 _ASUNAME
2716 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2717 for as_dir in $PATH
2719 IFS=$as_save_IFS
2720 test -z "$as_dir" && as_dir=.
2721 $as_echo "PATH: $as_dir"
2722 done
2723 IFS=$as_save_IFS
2725 } >&5
2727 cat >&5 <<_ACEOF
2730 ## ----------- ##
2731 ## Core tests. ##
2732 ## ----------- ##
2734 _ACEOF
2737 # Keep a trace of the command line.
2738 # Strip out --no-create and --no-recursion so they do not pile up.
2739 # Strip out --silent because we don't want to record it for future runs.
2740 # Also quote any args containing shell meta-characters.
2741 # Make two passes to allow for proper duplicate-argument suppression.
2742 ac_configure_args=
2743 ac_configure_args0=
2744 ac_configure_args1=
2745 ac_must_keep_next=false
2746 for ac_pass in 1 2
2748 for ac_arg
2750 case $ac_arg in
2751 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
2752 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
2753 | -silent | --silent | --silen | --sile | --sil)
2754 continue ;;
2755 *\'*)
2756 ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
2757 esac
2758 case $ac_pass in
2759 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
2761 as_fn_append ac_configure_args1 " '$ac_arg'"
2762 if test $ac_must_keep_next = true; then
2763 ac_must_keep_next=false # Got value, back to normal.
2764 else
2765 case $ac_arg in
2766 *=* | --config-cache | -C | -disable-* | --disable-* \
2767 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
2768 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
2769 | -with-* | --with-* | -without-* | --without-* | --x)
2770 case "$ac_configure_args0 " in
2771 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
2772 esac
2774 -* ) ac_must_keep_next=true ;;
2775 esac
2777 as_fn_append ac_configure_args " '$ac_arg'"
2779 esac
2780 done
2781 done
2782 { ac_configure_args0=; unset ac_configure_args0;}
2783 { ac_configure_args1=; unset ac_configure_args1;}
2785 # When interrupted or exit'd, cleanup temporary files, and complete
2786 # config.log. We remove comments because anyway the quotes in there
2787 # would cause problems or look ugly.
2788 # WARNING: Use '\'' to represent an apostrophe within the trap.
2789 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
2790 trap 'exit_status=$?
2791 # Save into config.log some information that might help in debugging.
2793 echo
2795 cat <<\_ASBOX
2796 ## ---------------- ##
2797 ## Cache variables. ##
2798 ## ---------------- ##
2799 _ASBOX
2800 echo
2801 # The following way of writing the cache mishandles newlines in values,
2803 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
2804 eval ac_val=\$$ac_var
2805 case $ac_val in #(
2806 *${as_nl}*)
2807 case $ac_var in #(
2808 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
2809 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
2810 esac
2811 case $ac_var in #(
2812 _ | IFS | as_nl) ;; #(
2813 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
2814 *) { eval $ac_var=; unset $ac_var;} ;;
2815 esac ;;
2816 esac
2817 done
2818 (set) 2>&1 |
2819 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
2820 *${as_nl}ac_space=\ *)
2821 sed -n \
2822 "s/'\''/'\''\\\\'\'''\''/g;
2823 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
2824 ;; #(
2826 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
2828 esac |
2829 sort
2831 echo
2833 cat <<\_ASBOX
2834 ## ----------------- ##
2835 ## Output variables. ##
2836 ## ----------------- ##
2837 _ASBOX
2838 echo
2839 for ac_var in $ac_subst_vars
2841 eval ac_val=\$$ac_var
2842 case $ac_val in
2843 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2844 esac
2845 $as_echo "$ac_var='\''$ac_val'\''"
2846 done | sort
2847 echo
2849 if test -n "$ac_subst_files"; then
2850 cat <<\_ASBOX
2851 ## ------------------- ##
2852 ## File substitutions. ##
2853 ## ------------------- ##
2854 _ASBOX
2855 echo
2856 for ac_var in $ac_subst_files
2858 eval ac_val=\$$ac_var
2859 case $ac_val in
2860 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2861 esac
2862 $as_echo "$ac_var='\''$ac_val'\''"
2863 done | sort
2864 echo
2867 if test -s confdefs.h; then
2868 cat <<\_ASBOX
2869 ## ----------- ##
2870 ## confdefs.h. ##
2871 ## ----------- ##
2872 _ASBOX
2873 echo
2874 cat confdefs.h
2875 echo
2877 test "$ac_signal" != 0 &&
2878 $as_echo "$as_me: caught signal $ac_signal"
2879 $as_echo "$as_me: exit $exit_status"
2880 } >&5
2881 rm -f core *.core core.conftest.* &&
2882 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
2883 exit $exit_status
2885 for ac_signal in 1 2 13 15; do
2886 trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
2887 done
2888 ac_signal=0
2890 # confdefs.h avoids OS command line length limits that DEFS can exceed.
2891 rm -f -r conftest* confdefs.h
2893 $as_echo "/* confdefs.h */" > confdefs.h
2895 # Predefined preprocessor variables.
2897 cat >>confdefs.h <<_ACEOF
2898 #define PACKAGE_NAME "$PACKAGE_NAME"
2899 _ACEOF
2901 cat >>confdefs.h <<_ACEOF
2902 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
2903 _ACEOF
2905 cat >>confdefs.h <<_ACEOF
2906 #define PACKAGE_VERSION "$PACKAGE_VERSION"
2907 _ACEOF
2909 cat >>confdefs.h <<_ACEOF
2910 #define PACKAGE_STRING "$PACKAGE_STRING"
2911 _ACEOF
2913 cat >>confdefs.h <<_ACEOF
2914 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
2915 _ACEOF
2917 cat >>confdefs.h <<_ACEOF
2918 #define PACKAGE_URL "$PACKAGE_URL"
2919 _ACEOF
2922 # Let the site file select an alternate cache file if it wants to.
2923 # Prefer an explicitly selected file to automatically selected ones.
2924 ac_site_file1=NONE
2925 ac_site_file2=NONE
2926 if test -n "$CONFIG_SITE"; then
2927 ac_site_file1=$CONFIG_SITE
2928 elif test "x$prefix" != xNONE; then
2929 ac_site_file1=$prefix/share/config.site
2930 ac_site_file2=$prefix/etc/config.site
2931 else
2932 ac_site_file1=$ac_default_prefix/share/config.site
2933 ac_site_file2=$ac_default_prefix/etc/config.site
2935 for ac_site_file in "$ac_site_file1" "$ac_site_file2"
2937 test "x$ac_site_file" = xNONE && continue
2938 if test -r "$ac_site_file"; then
2939 { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
2940 $as_echo "$as_me: loading site script $ac_site_file" >&6;}
2941 sed 's/^/| /' "$ac_site_file" >&5
2942 . "$ac_site_file"
2944 done
2946 if test -r "$cache_file"; then
2947 # Some versions of bash will fail to source /dev/null (special
2948 # files actually), so we avoid doing that.
2949 if test -f "$cache_file"; then
2950 { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
2951 $as_echo "$as_me: loading cache $cache_file" >&6;}
2952 case $cache_file in
2953 [\\/]* | ?:[\\/]* ) . "$cache_file";;
2954 *) . "./$cache_file";;
2955 esac
2957 else
2958 { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
2959 $as_echo "$as_me: creating cache $cache_file" >&6;}
2960 >$cache_file
2963 # Check that the precious variables saved in the cache have kept the same
2964 # value.
2965 ac_cache_corrupted=false
2966 for ac_var in $ac_precious_vars; do
2967 eval ac_old_set=\$ac_cv_env_${ac_var}_set
2968 eval ac_new_set=\$ac_env_${ac_var}_set
2969 eval ac_old_val=\$ac_cv_env_${ac_var}_value
2970 eval ac_new_val=\$ac_env_${ac_var}_value
2971 case $ac_old_set,$ac_new_set in
2972 set,)
2973 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
2974 $as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
2975 ac_cache_corrupted=: ;;
2976 ,set)
2977 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
2978 $as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
2979 ac_cache_corrupted=: ;;
2980 ,);;
2982 if test "x$ac_old_val" != "x$ac_new_val"; then
2983 # differences in whitespace do not lead to failure.
2984 ac_old_val_w=`echo x $ac_old_val`
2985 ac_new_val_w=`echo x $ac_new_val`
2986 if test "$ac_old_val_w" != "$ac_new_val_w"; then
2987 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
2988 $as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
2989 ac_cache_corrupted=:
2990 else
2991 { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
2992 $as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
2993 eval $ac_var=\$ac_old_val
2995 { $as_echo "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5
2996 $as_echo "$as_me: former value: \`$ac_old_val'" >&2;}
2997 { $as_echo "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5
2998 $as_echo "$as_me: current value: \`$ac_new_val'" >&2;}
2999 fi;;
3000 esac
3001 # Pass precious variables to config.status.
3002 if test "$ac_new_set" = set; then
3003 case $ac_new_val in
3004 *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
3005 *) ac_arg=$ac_var=$ac_new_val ;;
3006 esac
3007 case " $ac_configure_args " in
3008 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
3009 *) as_fn_append ac_configure_args " '$ac_arg'" ;;
3010 esac
3012 done
3013 if $ac_cache_corrupted; then
3014 { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3015 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3016 { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
3017 $as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
3018 as_fn_error "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
3020 ## -------------------- ##
3021 ## Main body of script. ##
3022 ## -------------------- ##
3024 ac_ext=c
3025 ac_cpp='$CPP $CPPFLAGS'
3026 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3027 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3028 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3035 ac_config_headers="$ac_config_headers auto-host.h:config.in"
3038 gcc_version=`cat $srcdir/BASE-VER`
3040 # Determine the host, build, and target systems
3041 ac_aux_dir=
3042 for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do
3043 for ac_t in install-sh install.sh shtool; do
3044 if test -f "$ac_dir/$ac_t"; then
3045 ac_aux_dir=$ac_dir
3046 ac_install_sh="$ac_aux_dir/$ac_t -c"
3047 break 2
3049 done
3050 done
3051 if test -z "$ac_aux_dir"; then
3052 as_fn_error "cannot find install-sh, install.sh, or shtool in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" "$LINENO" 5
3055 # These three variables are undocumented and unsupported,
3056 # and are intended to be withdrawn in a future Autoconf release.
3057 # They can cause serious problems if a builder's source tree is in a directory
3058 # whose full name contains unusual characters.
3059 ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
3060 ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
3061 ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
3064 # Make sure we can run config.sub.
3065 $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
3066 as_fn_error "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
3068 { $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
3069 $as_echo_n "checking build system type... " >&6; }
3070 if test "${ac_cv_build+set}" = set; then :
3071 $as_echo_n "(cached) " >&6
3072 else
3073 ac_build_alias=$build_alias
3074 test "x$ac_build_alias" = x &&
3075 ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
3076 test "x$ac_build_alias" = x &&
3077 as_fn_error "cannot guess build type; you must specify one" "$LINENO" 5
3078 ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
3079 as_fn_error "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
3082 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
3083 $as_echo "$ac_cv_build" >&6; }
3084 case $ac_cv_build in
3085 *-*-*) ;;
3086 *) as_fn_error "invalid value of canonical build" "$LINENO" 5;;
3087 esac
3088 build=$ac_cv_build
3089 ac_save_IFS=$IFS; IFS='-'
3090 set x $ac_cv_build
3091 shift
3092 build_cpu=$1
3093 build_vendor=$2
3094 shift; shift
3095 # Remember, the first character of IFS is used to create $*,
3096 # except with old shells:
3097 build_os=$*
3098 IFS=$ac_save_IFS
3099 case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
3102 { $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
3103 $as_echo_n "checking host system type... " >&6; }
3104 if test "${ac_cv_host+set}" = set; then :
3105 $as_echo_n "(cached) " >&6
3106 else
3107 if test "x$host_alias" = x; then
3108 ac_cv_host=$ac_cv_build
3109 else
3110 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
3111 as_fn_error "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
3115 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
3116 $as_echo "$ac_cv_host" >&6; }
3117 case $ac_cv_host in
3118 *-*-*) ;;
3119 *) as_fn_error "invalid value of canonical host" "$LINENO" 5;;
3120 esac
3121 host=$ac_cv_host
3122 ac_save_IFS=$IFS; IFS='-'
3123 set x $ac_cv_host
3124 shift
3125 host_cpu=$1
3126 host_vendor=$2
3127 shift; shift
3128 # Remember, the first character of IFS is used to create $*,
3129 # except with old shells:
3130 host_os=$*
3131 IFS=$ac_save_IFS
3132 case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
3135 { $as_echo "$as_me:${as_lineno-$LINENO}: checking target system type" >&5
3136 $as_echo_n "checking target system type... " >&6; }
3137 if test "${ac_cv_target+set}" = set; then :
3138 $as_echo_n "(cached) " >&6
3139 else
3140 if test "x$target_alias" = x; then
3141 ac_cv_target=$ac_cv_host
3142 else
3143 ac_cv_target=`$SHELL "$ac_aux_dir/config.sub" $target_alias` ||
3144 as_fn_error "$SHELL $ac_aux_dir/config.sub $target_alias failed" "$LINENO" 5
3148 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_target" >&5
3149 $as_echo "$ac_cv_target" >&6; }
3150 case $ac_cv_target in
3151 *-*-*) ;;
3152 *) as_fn_error "invalid value of canonical target" "$LINENO" 5;;
3153 esac
3154 target=$ac_cv_target
3155 ac_save_IFS=$IFS; IFS='-'
3156 set x $ac_cv_target
3157 shift
3158 target_cpu=$1
3159 target_vendor=$2
3160 shift; shift
3161 # Remember, the first character of IFS is used to create $*,
3162 # except with old shells:
3163 target_os=$*
3164 IFS=$ac_save_IFS
3165 case $target_os in *\ *) target_os=`echo "$target_os" | sed 's/ /-/g'`;; esac
3168 # The aliases save the names the user supplied, while $host etc.
3169 # will get canonicalized.
3170 test -n "$target_alias" &&
3171 test "$program_prefix$program_suffix$program_transform_name" = \
3172 NONENONEs,x,x, &&
3173 program_prefix=${target_alias}-
3175 # Determine the noncanonical target name, for directory use.
3176 case ${build_alias} in
3177 "") build_noncanonical=${build} ;;
3178 *) build_noncanonical=${build_alias} ;;
3179 esac
3181 case ${host_alias} in
3182 "") host_noncanonical=${build_noncanonical} ;;
3183 *) host_noncanonical=${host_alias} ;;
3184 esac
3186 case ${target_alias} in
3187 "") target_noncanonical=${host_noncanonical} ;;
3188 *) target_noncanonical=${target_alias} ;;
3189 esac
3194 # Determine the target- and build-specific subdirectories
3196 # post-stage1 host modules use a different CC_FOR_BUILD so, in order to
3197 # have matching libraries, they should use host libraries: Makefile.tpl
3198 # arranges to pass --with-build-libsubdir=$(HOST_SUBDIR).
3199 # However, they still use the build modules, because the corresponding
3200 # host modules (e.g. bison) are only built for the host when bootstrap
3201 # finishes. So:
3202 # - build_subdir is where we find build modules, and never changes.
3203 # - build_libsubdir is where we find build libraries, and can be overridden.
3205 # Prefix 'build-' so this never conflicts with target_subdir.
3206 build_subdir="build-${build_noncanonical}"
3208 # Check whether --with-build-libsubdir was given.
3209 if test "${with_build_libsubdir+set}" = set; then :
3210 withval=$with_build_libsubdir; build_libsubdir="$withval"
3211 else
3212 build_libsubdir="$build_subdir"
3215 # --srcdir=. covers the toplevel, while "test -d" covers the subdirectories
3216 if ( test $srcdir = . && test -d gcc ) \
3217 || test -d $srcdir/../host-${host_noncanonical}; then
3218 host_subdir="host-${host_noncanonical}"
3219 else
3220 host_subdir=.
3222 # No prefix.
3223 target_subdir=${target_noncanonical}
3226 # Set program_transform_name
3227 test "$program_prefix" != NONE &&
3228 program_transform_name="s&^&$program_prefix&;$program_transform_name"
3229 # Use a double $ so make ignores it.
3230 test "$program_suffix" != NONE &&
3231 program_transform_name="s&\$&$program_suffix&;$program_transform_name"
3232 # Double any \ or $.
3233 # By default was `s,x,x', remove it if useless.
3234 ac_script='s/[\\$]/&&/g;s/;s,x,x,$//'
3235 program_transform_name=`$as_echo "$program_transform_name" | sed "$ac_script"`
3238 # Check for bogus environment variables.
3239 # Test if LIBRARY_PATH contains the notation for the current directory
3240 # since this would lead to problems installing/building glibc.
3241 # LIBRARY_PATH contains the current directory if one of the following
3242 # is true:
3243 # - one of the terminals (":" and ";") is the first or last sign
3244 # - two terminals occur directly after each other
3245 # - the path contains an element with a dot in it
3246 { $as_echo "$as_me:${as_lineno-$LINENO}: checking LIBRARY_PATH variable" >&5
3247 $as_echo_n "checking LIBRARY_PATH variable... " >&6; }
3248 case ${LIBRARY_PATH} in
3249 [:\;]* | *[:\;] | *[:\;][:\;]* | *[:\;]. | .[:\;]*| . | *[:\;].[:\;]* )
3250 library_path_setting="contains current directory"
3253 library_path_setting="ok"
3255 esac
3256 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $library_path_setting" >&5
3257 $as_echo "$library_path_setting" >&6; }
3258 if test "$library_path_setting" != "ok"; then
3259 as_fn_error "
3260 *** LIBRARY_PATH shouldn't contain the current directory when
3261 *** building gcc. Please change the environment variable
3262 *** and run configure again." "$LINENO" 5
3265 # Test if GCC_EXEC_PREFIX contains the notation for the current directory
3266 # since this would lead to problems installing/building glibc.
3267 # GCC_EXEC_PREFIX contains the current directory if one of the following
3268 # is true:
3269 # - one of the terminals (":" and ";") is the first or last sign
3270 # - two terminals occur directly after each other
3271 # - the path contains an element with a dot in it
3272 { $as_echo "$as_me:${as_lineno-$LINENO}: checking GCC_EXEC_PREFIX variable" >&5
3273 $as_echo_n "checking GCC_EXEC_PREFIX variable... " >&6; }
3274 case ${GCC_EXEC_PREFIX} in
3275 [:\;]* | *[:\;] | *[:\;][:\;]* | *[:\;]. | .[:\;]*| . | *[:\;].[:\;]* )
3276 gcc_exec_prefix_setting="contains current directory"
3279 gcc_exec_prefix_setting="ok"
3281 esac
3282 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_exec_prefix_setting" >&5
3283 $as_echo "$gcc_exec_prefix_setting" >&6; }
3284 if test "$gcc_exec_prefix_setting" != "ok"; then
3285 as_fn_error "
3286 *** GCC_EXEC_PREFIX shouldn't contain the current directory when
3287 *** building gcc. Please change the environment variable
3288 *** and run configure again." "$LINENO" 5
3291 # -----------
3292 # Directories
3293 # -----------
3295 # Specify the local prefix
3296 local_prefix=
3298 # Check whether --with-local-prefix was given.
3299 if test "${with_local_prefix+set}" = set; then :
3300 withval=$with_local_prefix; case "${withval}" in
3301 yes) as_fn_error "bad value ${withval} given for local include directory prefix" "$LINENO" 5 ;;
3302 no) ;;
3303 *) local_prefix=$with_local_prefix ;;
3304 esac
3308 # Default local prefix if it is empty
3309 if test x$local_prefix = x; then
3310 local_prefix=/usr/local
3313 # Don't set gcc_gxx_include_dir to gxx_include_dir since that's only
3314 # passed in by the toplevel make and thus we'd get different behavior
3315 # depending on where we built the sources.
3316 gcc_gxx_include_dir=
3317 # Specify the g++ header file directory
3319 # Check whether --with-gxx-include-dir was given.
3320 if test "${with_gxx_include_dir+set}" = set; then :
3321 withval=$with_gxx_include_dir; case "${withval}" in
3322 yes) as_fn_error "bad value ${withval} given for g++ include directory" "$LINENO" 5 ;;
3323 no) ;;
3324 *) gcc_gxx_include_dir=$with_gxx_include_dir ;;
3325 esac
3329 # This logic must match libstdc++-v3/acinclude.m4:GLIBCXX_EXPORT_INSTALL_INFO.
3330 if test x${gcc_gxx_include_dir} = x; then
3331 if test x${enable_version_specific_runtime_libs} = xyes; then
3332 gcc_gxx_include_dir='${libsubdir}/include/c++'
3333 else
3334 libstdcxx_incdir='include/c++/$(version)'
3335 if test x$host != x$target; then
3336 libstdcxx_incdir="$target_alias/$libstdcxx_incdir"
3338 gcc_gxx_include_dir="\$(libsubdir)/\$(libsubdir_to_prefix)$libstdcxx_incdir"
3342 gcc_gxx_include_dir_add_sysroot=0
3343 if test "${with_sysroot+set}" = set; then
3344 gcc_gxx_without_sysroot=`expr "${gcc_gxx_include_dir}" : "${with_sysroot}"'\(.*\)'`
3345 if test "${gcc_gxx_without_sysroot}"; then
3346 gcc_gxx_include_dir="${gcc_gxx_without_sysroot}"
3347 gcc_gxx_include_dir_add_sysroot=1
3352 # Check whether --with-cpp_install_dir was given.
3353 if test "${with_cpp_install_dir+set}" = set; then :
3354 withval=$with_cpp_install_dir; if test x$withval = xyes; then
3355 as_fn_error "option --with-cpp-install-dir requires an argument" "$LINENO" 5
3356 elif test x$withval != xno; then
3357 cpp_install_dir=$withval
3362 # We would like to our source tree to be readonly. However when releases or
3363 # pre-releases are generated, the flex/bison generated files as well as the
3364 # various formats of manuals need to be included along with the rest of the
3365 # sources. Therefore we have --enable-generated-files-in-srcdir to do
3366 # just that.
3368 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to place generated files in the source directory" >&5
3369 $as_echo_n "checking whether to place generated files in the source directory... " >&6; }
3370 # Check whether --enable-generated-files-in-srcdir was given.
3371 if test "${enable_generated_files_in_srcdir+set}" = set; then :
3372 enableval=$enable_generated_files_in_srcdir; generated_files_in_srcdir=$enableval
3373 else
3374 generated_files_in_srcdir=no
3378 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $generated_files_in_srcdir" >&5
3379 $as_echo "$generated_files_in_srcdir" >&6; }
3381 if test "$generated_files_in_srcdir" = "yes"; then
3382 GENINSRC=''
3383 else
3384 GENINSRC='#'
3388 # -------------------
3389 # Find default linker
3390 # -------------------
3392 # With GNU ld
3394 # Check whether --with-gnu-ld was given.
3395 if test "${with_gnu_ld+set}" = set; then :
3396 withval=$with_gnu_ld; gnu_ld_flag="$with_gnu_ld"
3397 else
3398 gnu_ld_flag=no
3402 # With pre-defined ld
3404 # Check whether --with-ld was given.
3405 if test "${with_ld+set}" = set; then :
3406 withval=$with_ld; DEFAULT_LINKER="$with_ld"
3409 if test x"${DEFAULT_LINKER+set}" = x"set"; then
3410 if test ! -x "$DEFAULT_LINKER"; then
3411 as_fn_error "cannot execute: $DEFAULT_LINKER: check --with-ld or env. var. DEFAULT_LINKER" "$LINENO" 5
3412 elif $DEFAULT_LINKER -v < /dev/null 2>&1 | grep GNU > /dev/null; then
3413 gnu_ld_flag=yes
3416 cat >>confdefs.h <<_ACEOF
3417 #define DEFAULT_LINKER "$DEFAULT_LINKER"
3418 _ACEOF
3422 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a default linker was specified" >&5
3423 $as_echo_n "checking whether a default linker was specified... " >&6; }
3424 if test x"${DEFAULT_LINKER+set}" = x"set"; then
3425 if test x"$gnu_ld_flag" = x"no"; then
3426 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes ($DEFAULT_LINKER)" >&5
3427 $as_echo "yes ($DEFAULT_LINKER)" >&6; }
3428 else
3429 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes ($DEFAULT_LINKER - GNU ld)" >&5
3430 $as_echo "yes ($DEFAULT_LINKER - GNU ld)" >&6; }
3432 else
3433 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3434 $as_echo "no" >&6; }
3437 # With demangler in GNU ld
3439 # Check whether --with-demangler-in-ld was given.
3440 if test "${with_demangler_in_ld+set}" = set; then :
3441 withval=$with_demangler_in_ld; demangler_in_ld="$with_demangler_in_ld"
3442 else
3443 demangler_in_ld=yes
3447 # ----------------------
3448 # Find default assembler
3449 # ----------------------
3451 # With GNU as
3453 # Check whether --with-gnu-as was given.
3454 if test "${with_gnu_as+set}" = set; then :
3455 withval=$with_gnu_as; gas_flag="$with_gnu_as"
3456 else
3457 gas_flag=no
3462 # Check whether --with-as was given.
3463 if test "${with_as+set}" = set; then :
3464 withval=$with_as; DEFAULT_ASSEMBLER="$with_as"
3467 if test x"${DEFAULT_ASSEMBLER+set}" = x"set"; then
3468 if test ! -x "$DEFAULT_ASSEMBLER"; then
3469 as_fn_error "cannot execute: $DEFAULT_ASSEMBLER: check --with-as or env. var. DEFAULT_ASSEMBLER" "$LINENO" 5
3470 elif $DEFAULT_ASSEMBLER -v < /dev/null 2>&1 | grep GNU > /dev/null; then
3471 gas_flag=yes
3474 cat >>confdefs.h <<_ACEOF
3475 #define DEFAULT_ASSEMBLER "$DEFAULT_ASSEMBLER"
3476 _ACEOF
3480 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a default assembler was specified" >&5
3481 $as_echo_n "checking whether a default assembler was specified... " >&6; }
3482 if test x"${DEFAULT_ASSEMBLER+set}" = x"set"; then
3483 if test x"$gas_flag" = x"no"; then
3484 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes ($DEFAULT_ASSEMBLER)" >&5
3485 $as_echo "yes ($DEFAULT_ASSEMBLER)" >&6; }
3486 else
3487 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes ($DEFAULT_ASSEMBLER - GNU as)" >&5
3488 $as_echo "yes ($DEFAULT_ASSEMBLER - GNU as)" >&6; }
3490 else
3491 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3492 $as_echo "no" >&6; }
3495 # ---------------
3496 # Find C compiler
3497 # ---------------
3499 # If a non-executable a.out is present (e.g. created by GNU as above even if
3500 # invoked with -v only), the IRIX 6 native ld just overwrites the existing
3501 # file, even when creating an executable, so an execution test fails.
3502 # Remove possible default executable files to avoid this.
3504 # FIXME: This really belongs into AC_PROG_CC and can be removed once
3505 # Autoconf includes it.
3506 rm -f a.out a.exe b.out
3508 # Find the native compiler
3509 ac_ext=c
3510 ac_cpp='$CPP $CPPFLAGS'
3511 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3512 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3513 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3514 if test -n "$ac_tool_prefix"; then
3515 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
3516 set dummy ${ac_tool_prefix}gcc; ac_word=$2
3517 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3518 $as_echo_n "checking for $ac_word... " >&6; }
3519 if test "${ac_cv_prog_CC+set}" = set; then :
3520 $as_echo_n "(cached) " >&6
3521 else
3522 if test -n "$CC"; then
3523 ac_cv_prog_CC="$CC" # Let the user override the test.
3524 else
3525 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3526 for as_dir in $PATH
3528 IFS=$as_save_IFS
3529 test -z "$as_dir" && as_dir=.
3530 for ac_exec_ext in '' $ac_executable_extensions; do
3531 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3532 ac_cv_prog_CC="${ac_tool_prefix}gcc"
3533 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3534 break 2
3536 done
3537 done
3538 IFS=$as_save_IFS
3542 CC=$ac_cv_prog_CC
3543 if test -n "$CC"; then
3544 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3545 $as_echo "$CC" >&6; }
3546 else
3547 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3548 $as_echo "no" >&6; }
3553 if test -z "$ac_cv_prog_CC"; then
3554 ac_ct_CC=$CC
3555 # Extract the first word of "gcc", so it can be a program name with args.
3556 set dummy gcc; ac_word=$2
3557 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3558 $as_echo_n "checking for $ac_word... " >&6; }
3559 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then :
3560 $as_echo_n "(cached) " >&6
3561 else
3562 if test -n "$ac_ct_CC"; then
3563 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3564 else
3565 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3566 for as_dir in $PATH
3568 IFS=$as_save_IFS
3569 test -z "$as_dir" && as_dir=.
3570 for ac_exec_ext in '' $ac_executable_extensions; do
3571 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3572 ac_cv_prog_ac_ct_CC="gcc"
3573 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3574 break 2
3576 done
3577 done
3578 IFS=$as_save_IFS
3582 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3583 if test -n "$ac_ct_CC"; then
3584 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3585 $as_echo "$ac_ct_CC" >&6; }
3586 else
3587 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3588 $as_echo "no" >&6; }
3591 if test "x$ac_ct_CC" = x; then
3592 CC=""
3593 else
3594 case $cross_compiling:$ac_tool_warned in
3595 yes:)
3596 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3597 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3598 ac_tool_warned=yes ;;
3599 esac
3600 CC=$ac_ct_CC
3602 else
3603 CC="$ac_cv_prog_CC"
3606 if test -z "$CC"; then
3607 if test -n "$ac_tool_prefix"; then
3608 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
3609 set dummy ${ac_tool_prefix}cc; ac_word=$2
3610 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3611 $as_echo_n "checking for $ac_word... " >&6; }
3612 if test "${ac_cv_prog_CC+set}" = set; then :
3613 $as_echo_n "(cached) " >&6
3614 else
3615 if test -n "$CC"; then
3616 ac_cv_prog_CC="$CC" # Let the user override the test.
3617 else
3618 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3619 for as_dir in $PATH
3621 IFS=$as_save_IFS
3622 test -z "$as_dir" && as_dir=.
3623 for ac_exec_ext in '' $ac_executable_extensions; do
3624 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3625 ac_cv_prog_CC="${ac_tool_prefix}cc"
3626 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3627 break 2
3629 done
3630 done
3631 IFS=$as_save_IFS
3635 CC=$ac_cv_prog_CC
3636 if test -n "$CC"; then
3637 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3638 $as_echo "$CC" >&6; }
3639 else
3640 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3641 $as_echo "no" >&6; }
3647 if test -z "$CC"; then
3648 # Extract the first word of "cc", so it can be a program name with args.
3649 set dummy cc; ac_word=$2
3650 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3651 $as_echo_n "checking for $ac_word... " >&6; }
3652 if test "${ac_cv_prog_CC+set}" = set; then :
3653 $as_echo_n "(cached) " >&6
3654 else
3655 if test -n "$CC"; then
3656 ac_cv_prog_CC="$CC" # Let the user override the test.
3657 else
3658 ac_prog_rejected=no
3659 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3660 for as_dir in $PATH
3662 IFS=$as_save_IFS
3663 test -z "$as_dir" && as_dir=.
3664 for ac_exec_ext in '' $ac_executable_extensions; do
3665 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3666 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
3667 ac_prog_rejected=yes
3668 continue
3670 ac_cv_prog_CC="cc"
3671 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3672 break 2
3674 done
3675 done
3676 IFS=$as_save_IFS
3678 if test $ac_prog_rejected = yes; then
3679 # We found a bogon in the path, so make sure we never use it.
3680 set dummy $ac_cv_prog_CC
3681 shift
3682 if test $# != 0; then
3683 # We chose a different compiler from the bogus one.
3684 # However, it has the same basename, so the bogon will be chosen
3685 # first if we set CC to just the basename; use the full file name.
3686 shift
3687 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
3692 CC=$ac_cv_prog_CC
3693 if test -n "$CC"; then
3694 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3695 $as_echo "$CC" >&6; }
3696 else
3697 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3698 $as_echo "no" >&6; }
3703 if test -z "$CC"; then
3704 if test -n "$ac_tool_prefix"; then
3705 for ac_prog in cl.exe
3707 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3708 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
3709 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3710 $as_echo_n "checking for $ac_word... " >&6; }
3711 if test "${ac_cv_prog_CC+set}" = set; then :
3712 $as_echo_n "(cached) " >&6
3713 else
3714 if test -n "$CC"; then
3715 ac_cv_prog_CC="$CC" # Let the user override the test.
3716 else
3717 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3718 for as_dir in $PATH
3720 IFS=$as_save_IFS
3721 test -z "$as_dir" && as_dir=.
3722 for ac_exec_ext in '' $ac_executable_extensions; do
3723 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3724 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
3725 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3726 break 2
3728 done
3729 done
3730 IFS=$as_save_IFS
3734 CC=$ac_cv_prog_CC
3735 if test -n "$CC"; then
3736 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3737 $as_echo "$CC" >&6; }
3738 else
3739 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3740 $as_echo "no" >&6; }
3744 test -n "$CC" && break
3745 done
3747 if test -z "$CC"; then
3748 ac_ct_CC=$CC
3749 for ac_prog in cl.exe
3751 # Extract the first word of "$ac_prog", so it can be a program name with args.
3752 set dummy $ac_prog; ac_word=$2
3753 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3754 $as_echo_n "checking for $ac_word... " >&6; }
3755 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then :
3756 $as_echo_n "(cached) " >&6
3757 else
3758 if test -n "$ac_ct_CC"; then
3759 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3760 else
3761 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3762 for as_dir in $PATH
3764 IFS=$as_save_IFS
3765 test -z "$as_dir" && as_dir=.
3766 for ac_exec_ext in '' $ac_executable_extensions; do
3767 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3768 ac_cv_prog_ac_ct_CC="$ac_prog"
3769 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3770 break 2
3772 done
3773 done
3774 IFS=$as_save_IFS
3778 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3779 if test -n "$ac_ct_CC"; then
3780 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3781 $as_echo "$ac_ct_CC" >&6; }
3782 else
3783 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3784 $as_echo "no" >&6; }
3788 test -n "$ac_ct_CC" && break
3789 done
3791 if test "x$ac_ct_CC" = x; then
3792 CC=""
3793 else
3794 case $cross_compiling:$ac_tool_warned in
3795 yes:)
3796 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3797 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3798 ac_tool_warned=yes ;;
3799 esac
3800 CC=$ac_ct_CC
3807 test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3808 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3809 as_fn_error "no acceptable C compiler found in \$PATH
3810 See \`config.log' for more details." "$LINENO" 5; }
3812 # Provide some information about the compiler.
3813 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
3814 set X $ac_compile
3815 ac_compiler=$2
3816 for ac_option in --version -v -V -qversion; do
3817 { { ac_try="$ac_compiler $ac_option >&5"
3818 case "(($ac_try" in
3819 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3820 *) ac_try_echo=$ac_try;;
3821 esac
3822 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3823 $as_echo "$ac_try_echo"; } >&5
3824 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
3825 ac_status=$?
3826 if test -s conftest.err; then
3827 sed '10a\
3828 ... rest of stderr output deleted ...
3829 10q' conftest.err >conftest.er1
3830 cat conftest.er1 >&5
3831 rm -f conftest.er1 conftest.err
3833 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3834 test $ac_status = 0; }
3835 done
3837 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3838 /* end confdefs.h. */
3841 main ()
3845 return 0;
3847 _ACEOF
3848 ac_clean_files_save=$ac_clean_files
3849 ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out conftest.out"
3850 # Try to create an executable without -o first, disregard a.out.
3851 # It will help us diagnose broken compilers, and finding out an intuition
3852 # of exeext.
3853 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
3854 $as_echo_n "checking for C compiler default output file name... " >&6; }
3855 ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
3857 # The possible output files:
3858 ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
3860 ac_rmfiles=
3861 for ac_file in $ac_files
3863 case $ac_file in
3864 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3865 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
3866 esac
3867 done
3868 rm -f $ac_rmfiles
3870 if { { ac_try="$ac_link_default"
3871 case "(($ac_try" in
3872 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3873 *) ac_try_echo=$ac_try;;
3874 esac
3875 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3876 $as_echo "$ac_try_echo"; } >&5
3877 (eval "$ac_link_default") 2>&5
3878 ac_status=$?
3879 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3880 test $ac_status = 0; }; then :
3881 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
3882 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
3883 # in a Makefile. We should not override ac_cv_exeext if it was cached,
3884 # so that the user can short-circuit this test for compilers unknown to
3885 # Autoconf.
3886 for ac_file in $ac_files ''
3888 test -f "$ac_file" || continue
3889 case $ac_file in
3890 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
3892 [ab].out )
3893 # We found the default executable, but exeext='' is most
3894 # certainly right.
3895 break;;
3896 *.* )
3897 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
3898 then :; else
3899 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3901 # We set ac_cv_exeext here because the later test for it is not
3902 # safe: cross compilers may not add the suffix if given an `-o'
3903 # argument, so we may need to know it at that point already.
3904 # Even if this section looks crufty: it has the advantage of
3905 # actually working.
3906 break;;
3908 break;;
3909 esac
3910 done
3911 test "$ac_cv_exeext" = no && ac_cv_exeext=
3913 else
3914 ac_file=''
3916 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
3917 $as_echo "$ac_file" >&6; }
3918 if test -z "$ac_file"; then :
3919 $as_echo "$as_me: failed program was:" >&5
3920 sed 's/^/| /' conftest.$ac_ext >&5
3922 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3923 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3924 { as_fn_set_status 77
3925 as_fn_error "C compiler cannot create executables
3926 See \`config.log' for more details." "$LINENO" 5; }; }
3928 ac_exeext=$ac_cv_exeext
3930 # Check that the compiler produces executables we can run. If not, either
3931 # the compiler is broken, or we cross compile.
3932 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
3933 $as_echo_n "checking whether the C compiler works... " >&6; }
3934 # If not cross compiling, check that we can run a simple program.
3935 if test "$cross_compiling" != yes; then
3936 if { ac_try='./$ac_file'
3937 { { case "(($ac_try" in
3938 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3939 *) ac_try_echo=$ac_try;;
3940 esac
3941 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3942 $as_echo "$ac_try_echo"; } >&5
3943 (eval "$ac_try") 2>&5
3944 ac_status=$?
3945 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3946 test $ac_status = 0; }; }; then
3947 cross_compiling=no
3948 else
3949 if test "$cross_compiling" = maybe; then
3950 cross_compiling=yes
3951 else
3952 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3953 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3954 as_fn_error "cannot run C compiled programs.
3955 If you meant to cross compile, use \`--host'.
3956 See \`config.log' for more details." "$LINENO" 5; }
3960 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3961 $as_echo "yes" >&6; }
3963 rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out conftest.out
3964 ac_clean_files=$ac_clean_files_save
3965 # Check that the compiler produces executables we can run. If not, either
3966 # the compiler is broken, or we cross compile.
3967 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
3968 $as_echo_n "checking whether we are cross compiling... " >&6; }
3969 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
3970 $as_echo "$cross_compiling" >&6; }
3972 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
3973 $as_echo_n "checking for suffix of executables... " >&6; }
3974 if { { ac_try="$ac_link"
3975 case "(($ac_try" in
3976 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3977 *) ac_try_echo=$ac_try;;
3978 esac
3979 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3980 $as_echo "$ac_try_echo"; } >&5
3981 (eval "$ac_link") 2>&5
3982 ac_status=$?
3983 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3984 test $ac_status = 0; }; then :
3985 # If both `conftest.exe' and `conftest' are `present' (well, observable)
3986 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
3987 # work properly (i.e., refer to `conftest.exe'), while it won't with
3988 # `rm'.
3989 for ac_file in conftest.exe conftest conftest.*; do
3990 test -f "$ac_file" || continue
3991 case $ac_file in
3992 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3993 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3994 break;;
3995 * ) break;;
3996 esac
3997 done
3998 else
3999 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4000 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4001 as_fn_error "cannot compute suffix of executables: cannot compile and link
4002 See \`config.log' for more details." "$LINENO" 5; }
4004 rm -f conftest$ac_cv_exeext
4005 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
4006 $as_echo "$ac_cv_exeext" >&6; }
4008 rm -f conftest.$ac_ext
4009 EXEEXT=$ac_cv_exeext
4010 ac_exeext=$EXEEXT
4011 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
4012 $as_echo_n "checking for suffix of object files... " >&6; }
4013 if test "${ac_cv_objext+set}" = set; then :
4014 $as_echo_n "(cached) " >&6
4015 else
4016 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4017 /* end confdefs.h. */
4020 main ()
4024 return 0;
4026 _ACEOF
4027 rm -f conftest.o conftest.obj
4028 if { { ac_try="$ac_compile"
4029 case "(($ac_try" in
4030 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4031 *) ac_try_echo=$ac_try;;
4032 esac
4033 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4034 $as_echo "$ac_try_echo"; } >&5
4035 (eval "$ac_compile") 2>&5
4036 ac_status=$?
4037 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4038 test $ac_status = 0; }; then :
4039 for ac_file in conftest.o conftest.obj conftest.*; do
4040 test -f "$ac_file" || continue;
4041 case $ac_file in
4042 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
4043 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
4044 break;;
4045 esac
4046 done
4047 else
4048 $as_echo "$as_me: failed program was:" >&5
4049 sed 's/^/| /' conftest.$ac_ext >&5
4051 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4052 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4053 as_fn_error "cannot compute suffix of object files: cannot compile
4054 See \`config.log' for more details." "$LINENO" 5; }
4056 rm -f conftest.$ac_cv_objext conftest.$ac_ext
4058 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
4059 $as_echo "$ac_cv_objext" >&6; }
4060 OBJEXT=$ac_cv_objext
4061 ac_objext=$OBJEXT
4062 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
4063 $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
4064 if test "${ac_cv_c_compiler_gnu+set}" = set; then :
4065 $as_echo_n "(cached) " >&6
4066 else
4067 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4068 /* end confdefs.h. */
4071 main ()
4073 #ifndef __GNUC__
4074 choke me
4075 #endif
4078 return 0;
4080 _ACEOF
4081 if ac_fn_c_try_compile "$LINENO"; then :
4082 ac_compiler_gnu=yes
4083 else
4084 ac_compiler_gnu=no
4086 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4087 ac_cv_c_compiler_gnu=$ac_compiler_gnu
4090 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
4091 $as_echo "$ac_cv_c_compiler_gnu" >&6; }
4092 if test $ac_compiler_gnu = yes; then
4093 GCC=yes
4094 else
4095 GCC=
4097 ac_test_CFLAGS=${CFLAGS+set}
4098 ac_save_CFLAGS=$CFLAGS
4099 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
4100 $as_echo_n "checking whether $CC accepts -g... " >&6; }
4101 if test "${ac_cv_prog_cc_g+set}" = set; then :
4102 $as_echo_n "(cached) " >&6
4103 else
4104 ac_save_c_werror_flag=$ac_c_werror_flag
4105 ac_c_werror_flag=yes
4106 ac_cv_prog_cc_g=no
4107 CFLAGS="-g"
4108 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4109 /* end confdefs.h. */
4112 main ()
4116 return 0;
4118 _ACEOF
4119 if ac_fn_c_try_compile "$LINENO"; then :
4120 ac_cv_prog_cc_g=yes
4121 else
4122 CFLAGS=""
4123 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4124 /* end confdefs.h. */
4127 main ()
4131 return 0;
4133 _ACEOF
4134 if ac_fn_c_try_compile "$LINENO"; then :
4136 else
4137 ac_c_werror_flag=$ac_save_c_werror_flag
4138 CFLAGS="-g"
4139 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4140 /* end confdefs.h. */
4143 main ()
4147 return 0;
4149 _ACEOF
4150 if ac_fn_c_try_compile "$LINENO"; then :
4151 ac_cv_prog_cc_g=yes
4153 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4155 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4157 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4158 ac_c_werror_flag=$ac_save_c_werror_flag
4160 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
4161 $as_echo "$ac_cv_prog_cc_g" >&6; }
4162 if test "$ac_test_CFLAGS" = set; then
4163 CFLAGS=$ac_save_CFLAGS
4164 elif test $ac_cv_prog_cc_g = yes; then
4165 if test "$GCC" = yes; then
4166 CFLAGS="-g -O2"
4167 else
4168 CFLAGS="-g"
4170 else
4171 if test "$GCC" = yes; then
4172 CFLAGS="-O2"
4173 else
4174 CFLAGS=
4177 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
4178 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
4179 if test "${ac_cv_prog_cc_c89+set}" = set; then :
4180 $as_echo_n "(cached) " >&6
4181 else
4182 ac_cv_prog_cc_c89=no
4183 ac_save_CC=$CC
4184 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4185 /* end confdefs.h. */
4186 #include <stdarg.h>
4187 #include <stdio.h>
4188 #include <sys/types.h>
4189 #include <sys/stat.h>
4190 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
4191 struct buf { int x; };
4192 FILE * (*rcsopen) (struct buf *, struct stat *, int);
4193 static char *e (p, i)
4194 char **p;
4195 int i;
4197 return p[i];
4199 static char *f (char * (*g) (char **, int), char **p, ...)
4201 char *s;
4202 va_list v;
4203 va_start (v,p);
4204 s = g (p, va_arg (v,int));
4205 va_end (v);
4206 return s;
4209 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
4210 function prototypes and stuff, but not '\xHH' hex character constants.
4211 These don't provoke an error unfortunately, instead are silently treated
4212 as 'x'. The following induces an error, until -std is added to get
4213 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
4214 array size at least. It's necessary to write '\x00'==0 to get something
4215 that's true only with -std. */
4216 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
4218 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
4219 inside strings and character constants. */
4220 #define FOO(x) 'x'
4221 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
4223 int test (int i, double x);
4224 struct s1 {int (*f) (int a);};
4225 struct s2 {int (*f) (double a);};
4226 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
4227 int argc;
4228 char **argv;
4230 main ()
4232 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
4234 return 0;
4236 _ACEOF
4237 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
4238 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
4240 CC="$ac_save_CC $ac_arg"
4241 if ac_fn_c_try_compile "$LINENO"; then :
4242 ac_cv_prog_cc_c89=$ac_arg
4244 rm -f core conftest.err conftest.$ac_objext
4245 test "x$ac_cv_prog_cc_c89" != "xno" && break
4246 done
4247 rm -f conftest.$ac_ext
4248 CC=$ac_save_CC
4251 # AC_CACHE_VAL
4252 case "x$ac_cv_prog_cc_c89" in
4254 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
4255 $as_echo "none needed" >&6; } ;;
4256 xno)
4257 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
4258 $as_echo "unsupported" >&6; } ;;
4260 CC="$CC $ac_cv_prog_cc_c89"
4261 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
4262 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
4263 esac
4264 if test "x$ac_cv_prog_cc_c89" != xno; then :
4268 ac_ext=c
4269 ac_cpp='$CPP $CPPFLAGS'
4270 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4271 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4272 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4274 ac_ext=cpp
4275 ac_cpp='$CXXCPP $CPPFLAGS'
4276 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4277 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4278 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
4279 if test -z "$CXX"; then
4280 if test -n "$CCC"; then
4281 CXX=$CCC
4282 else
4283 if test -n "$ac_tool_prefix"; then
4284 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
4286 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
4287 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
4288 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4289 $as_echo_n "checking for $ac_word... " >&6; }
4290 if test "${ac_cv_prog_CXX+set}" = set; then :
4291 $as_echo_n "(cached) " >&6
4292 else
4293 if test -n "$CXX"; then
4294 ac_cv_prog_CXX="$CXX" # Let the user override the test.
4295 else
4296 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4297 for as_dir in $PATH
4299 IFS=$as_save_IFS
4300 test -z "$as_dir" && as_dir=.
4301 for ac_exec_ext in '' $ac_executable_extensions; do
4302 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4303 ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
4304 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4305 break 2
4307 done
4308 done
4309 IFS=$as_save_IFS
4313 CXX=$ac_cv_prog_CXX
4314 if test -n "$CXX"; then
4315 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXX" >&5
4316 $as_echo "$CXX" >&6; }
4317 else
4318 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4319 $as_echo "no" >&6; }
4323 test -n "$CXX" && break
4324 done
4326 if test -z "$CXX"; then
4327 ac_ct_CXX=$CXX
4328 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
4330 # Extract the first word of "$ac_prog", so it can be a program name with args.
4331 set dummy $ac_prog; ac_word=$2
4332 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4333 $as_echo_n "checking for $ac_word... " >&6; }
4334 if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then :
4335 $as_echo_n "(cached) " >&6
4336 else
4337 if test -n "$ac_ct_CXX"; then
4338 ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
4339 else
4340 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4341 for as_dir in $PATH
4343 IFS=$as_save_IFS
4344 test -z "$as_dir" && as_dir=.
4345 for ac_exec_ext in '' $ac_executable_extensions; do
4346 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4347 ac_cv_prog_ac_ct_CXX="$ac_prog"
4348 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4349 break 2
4351 done
4352 done
4353 IFS=$as_save_IFS
4357 ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
4358 if test -n "$ac_ct_CXX"; then
4359 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CXX" >&5
4360 $as_echo "$ac_ct_CXX" >&6; }
4361 else
4362 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4363 $as_echo "no" >&6; }
4367 test -n "$ac_ct_CXX" && break
4368 done
4370 if test "x$ac_ct_CXX" = x; then
4371 CXX="g++"
4372 else
4373 case $cross_compiling:$ac_tool_warned in
4374 yes:)
4375 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4376 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4377 ac_tool_warned=yes ;;
4378 esac
4379 CXX=$ac_ct_CXX
4385 # Provide some information about the compiler.
4386 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C++ compiler version" >&5
4387 set X $ac_compile
4388 ac_compiler=$2
4389 for ac_option in --version -v -V -qversion; do
4390 { { ac_try="$ac_compiler $ac_option >&5"
4391 case "(($ac_try" in
4392 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4393 *) ac_try_echo=$ac_try;;
4394 esac
4395 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4396 $as_echo "$ac_try_echo"; } >&5
4397 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
4398 ac_status=$?
4399 if test -s conftest.err; then
4400 sed '10a\
4401 ... rest of stderr output deleted ...
4402 10q' conftest.err >conftest.er1
4403 cat conftest.er1 >&5
4404 rm -f conftest.er1 conftest.err
4406 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4407 test $ac_status = 0; }
4408 done
4410 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C++ compiler" >&5
4411 $as_echo_n "checking whether we are using the GNU C++ compiler... " >&6; }
4412 if test "${ac_cv_cxx_compiler_gnu+set}" = set; then :
4413 $as_echo_n "(cached) " >&6
4414 else
4415 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4416 /* end confdefs.h. */
4419 main ()
4421 #ifndef __GNUC__
4422 choke me
4423 #endif
4426 return 0;
4428 _ACEOF
4429 if ac_fn_cxx_try_compile "$LINENO"; then :
4430 ac_compiler_gnu=yes
4431 else
4432 ac_compiler_gnu=no
4434 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4435 ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
4438 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cxx_compiler_gnu" >&5
4439 $as_echo "$ac_cv_cxx_compiler_gnu" >&6; }
4440 if test $ac_compiler_gnu = yes; then
4441 GXX=yes
4442 else
4443 GXX=
4445 ac_test_CXXFLAGS=${CXXFLAGS+set}
4446 ac_save_CXXFLAGS=$CXXFLAGS
4447 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CXX accepts -g" >&5
4448 $as_echo_n "checking whether $CXX accepts -g... " >&6; }
4449 if test "${ac_cv_prog_cxx_g+set}" = set; then :
4450 $as_echo_n "(cached) " >&6
4451 else
4452 ac_save_cxx_werror_flag=$ac_cxx_werror_flag
4453 ac_cxx_werror_flag=yes
4454 ac_cv_prog_cxx_g=no
4455 CXXFLAGS="-g"
4456 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4457 /* end confdefs.h. */
4460 main ()
4464 return 0;
4466 _ACEOF
4467 if ac_fn_cxx_try_compile "$LINENO"; then :
4468 ac_cv_prog_cxx_g=yes
4469 else
4470 CXXFLAGS=""
4471 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4472 /* end confdefs.h. */
4475 main ()
4479 return 0;
4481 _ACEOF
4482 if ac_fn_cxx_try_compile "$LINENO"; then :
4484 else
4485 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
4486 CXXFLAGS="-g"
4487 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4488 /* end confdefs.h. */
4491 main ()
4495 return 0;
4497 _ACEOF
4498 if ac_fn_cxx_try_compile "$LINENO"; then :
4499 ac_cv_prog_cxx_g=yes
4501 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4503 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4505 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4506 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
4508 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cxx_g" >&5
4509 $as_echo "$ac_cv_prog_cxx_g" >&6; }
4510 if test "$ac_test_CXXFLAGS" = set; then
4511 CXXFLAGS=$ac_save_CXXFLAGS
4512 elif test $ac_cv_prog_cxx_g = yes; then
4513 if test "$GXX" = yes; then
4514 CXXFLAGS="-g -O2"
4515 else
4516 CXXFLAGS="-g"
4518 else
4519 if test "$GXX" = yes; then
4520 CXXFLAGS="-O2"
4521 else
4522 CXXFLAGS=
4525 ac_ext=c
4526 ac_cpp='$CPP $CPPFLAGS'
4527 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4528 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4529 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4534 if test -n "$ac_tool_prefix"; then
4535 # Extract the first word of "${ac_tool_prefix}gnatbind", so it can be a program name with args.
4536 set dummy ${ac_tool_prefix}gnatbind; ac_word=$2
4537 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4538 $as_echo_n "checking for $ac_word... " >&6; }
4539 if test "${ac_cv_prog_GNATBIND+set}" = set; then :
4540 $as_echo_n "(cached) " >&6
4541 else
4542 if test -n "$GNATBIND"; then
4543 ac_cv_prog_GNATBIND="$GNATBIND" # Let the user override the test.
4544 else
4545 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4546 for as_dir in $PATH
4548 IFS=$as_save_IFS
4549 test -z "$as_dir" && as_dir=.
4550 for ac_exec_ext in '' $ac_executable_extensions; do
4551 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4552 ac_cv_prog_GNATBIND="${ac_tool_prefix}gnatbind"
4553 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4554 break 2
4556 done
4557 done
4558 IFS=$as_save_IFS
4562 GNATBIND=$ac_cv_prog_GNATBIND
4563 if test -n "$GNATBIND"; then
4564 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GNATBIND" >&5
4565 $as_echo "$GNATBIND" >&6; }
4566 else
4567 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4568 $as_echo "no" >&6; }
4573 if test -z "$ac_cv_prog_GNATBIND"; then
4574 ac_ct_GNATBIND=$GNATBIND
4575 # Extract the first word of "gnatbind", so it can be a program name with args.
4576 set dummy gnatbind; ac_word=$2
4577 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4578 $as_echo_n "checking for $ac_word... " >&6; }
4579 if test "${ac_cv_prog_ac_ct_GNATBIND+set}" = set; then :
4580 $as_echo_n "(cached) " >&6
4581 else
4582 if test -n "$ac_ct_GNATBIND"; then
4583 ac_cv_prog_ac_ct_GNATBIND="$ac_ct_GNATBIND" # Let the user override the test.
4584 else
4585 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4586 for as_dir in $PATH
4588 IFS=$as_save_IFS
4589 test -z "$as_dir" && as_dir=.
4590 for ac_exec_ext in '' $ac_executable_extensions; do
4591 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4592 ac_cv_prog_ac_ct_GNATBIND="gnatbind"
4593 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4594 break 2
4596 done
4597 done
4598 IFS=$as_save_IFS
4602 ac_ct_GNATBIND=$ac_cv_prog_ac_ct_GNATBIND
4603 if test -n "$ac_ct_GNATBIND"; then
4604 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_GNATBIND" >&5
4605 $as_echo "$ac_ct_GNATBIND" >&6; }
4606 else
4607 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4608 $as_echo "no" >&6; }
4611 if test "x$ac_ct_GNATBIND" = x; then
4612 GNATBIND="no"
4613 else
4614 case $cross_compiling:$ac_tool_warned in
4615 yes:)
4616 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4617 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4618 ac_tool_warned=yes ;;
4619 esac
4620 GNATBIND=$ac_ct_GNATBIND
4622 else
4623 GNATBIND="$ac_cv_prog_GNATBIND"
4626 if test -n "$ac_tool_prefix"; then
4627 # Extract the first word of "${ac_tool_prefix}gnatmake", so it can be a program name with args.
4628 set dummy ${ac_tool_prefix}gnatmake; ac_word=$2
4629 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4630 $as_echo_n "checking for $ac_word... " >&6; }
4631 if test "${ac_cv_prog_GNATMAKE+set}" = set; then :
4632 $as_echo_n "(cached) " >&6
4633 else
4634 if test -n "$GNATMAKE"; then
4635 ac_cv_prog_GNATMAKE="$GNATMAKE" # Let the user override the test.
4636 else
4637 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4638 for as_dir in $PATH
4640 IFS=$as_save_IFS
4641 test -z "$as_dir" && as_dir=.
4642 for ac_exec_ext in '' $ac_executable_extensions; do
4643 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4644 ac_cv_prog_GNATMAKE="${ac_tool_prefix}gnatmake"
4645 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4646 break 2
4648 done
4649 done
4650 IFS=$as_save_IFS
4654 GNATMAKE=$ac_cv_prog_GNATMAKE
4655 if test -n "$GNATMAKE"; then
4656 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GNATMAKE" >&5
4657 $as_echo "$GNATMAKE" >&6; }
4658 else
4659 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4660 $as_echo "no" >&6; }
4665 if test -z "$ac_cv_prog_GNATMAKE"; then
4666 ac_ct_GNATMAKE=$GNATMAKE
4667 # Extract the first word of "gnatmake", so it can be a program name with args.
4668 set dummy gnatmake; ac_word=$2
4669 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4670 $as_echo_n "checking for $ac_word... " >&6; }
4671 if test "${ac_cv_prog_ac_ct_GNATMAKE+set}" = set; then :
4672 $as_echo_n "(cached) " >&6
4673 else
4674 if test -n "$ac_ct_GNATMAKE"; then
4675 ac_cv_prog_ac_ct_GNATMAKE="$ac_ct_GNATMAKE" # Let the user override the test.
4676 else
4677 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4678 for as_dir in $PATH
4680 IFS=$as_save_IFS
4681 test -z "$as_dir" && as_dir=.
4682 for ac_exec_ext in '' $ac_executable_extensions; do
4683 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4684 ac_cv_prog_ac_ct_GNATMAKE="gnatmake"
4685 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4686 break 2
4688 done
4689 done
4690 IFS=$as_save_IFS
4694 ac_ct_GNATMAKE=$ac_cv_prog_ac_ct_GNATMAKE
4695 if test -n "$ac_ct_GNATMAKE"; then
4696 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_GNATMAKE" >&5
4697 $as_echo "$ac_ct_GNATMAKE" >&6; }
4698 else
4699 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4700 $as_echo "no" >&6; }
4703 if test "x$ac_ct_GNATMAKE" = x; then
4704 GNATMAKE="no"
4705 else
4706 case $cross_compiling:$ac_tool_warned in
4707 yes:)
4708 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4709 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4710 ac_tool_warned=yes ;;
4711 esac
4712 GNATMAKE=$ac_ct_GNATMAKE
4714 else
4715 GNATMAKE="$ac_cv_prog_GNATMAKE"
4718 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether compiler driver understands Ada" >&5
4719 $as_echo_n "checking whether compiler driver understands Ada... " >&6; }
4720 if test "${acx_cv_cc_gcc_supports_ada+set}" = set; then :
4721 $as_echo_n "(cached) " >&6
4722 else
4723 cat >conftest.adb <<EOF
4724 procedure conftest is begin null; end conftest;
4726 acx_cv_cc_gcc_supports_ada=no
4727 # There is a bug in old released versions of GCC which causes the
4728 # driver to exit successfully when the appropriate language module
4729 # has not been installed. This is fixed in 2.95.4, 3.0.2, and 3.1.
4730 # Therefore we must check for the error message as well as an
4731 # unsuccessful exit.
4732 # Other compilers, like HP Tru64 UNIX cc, exit successfully when
4733 # given a .adb file, but produce no object file. So we must check
4734 # if an object file was really produced to guard against this.
4735 errors=`(${CC} -I"$srcdir"/ada -c conftest.adb) 2>&1 || echo failure`
4736 if test x"$errors" = x && test -f conftest.$ac_objext; then
4737 acx_cv_cc_gcc_supports_ada=yes
4739 rm -f conftest.*
4741 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $acx_cv_cc_gcc_supports_ada" >&5
4742 $as_echo "$acx_cv_cc_gcc_supports_ada" >&6; }
4744 if test "x$GNATBIND" != xno && test "x$GNATMAKE" != xno && test x$acx_cv_cc_gcc_supports_ada != xno; then
4745 have_gnat=yes
4746 else
4747 have_gnat=no
4751 # Remove the -O2: for historical reasons, unless bootstrapping we prefer
4752 # optimizations to be activated explicitly by the toplevel.
4753 case "$CC" in
4754 */prev-gcc/xgcc*) ;;
4755 *) CFLAGS=`echo "$CFLAGS " | sed -e "s/-Ofast[ ]//" -e "s/-O[gs][ ]//" -e "s/-O[0-9]*[ ]//" `
4756 CXXFLAGS=`echo "$CXXFLAGS " | sed -e "s/-Ofast[ ]//" -e "s/-O[gs][ ]//" -e "s/-O[0-9]*[ ]//" ` ;;
4757 esac
4761 # Determine PICFLAG for target gnatlib.
4766 case "${target}" in
4767 # PIC is the default on some targets or must not be used.
4768 *-*-darwin*)
4769 # PIC is the default on this platform
4770 # Common symbols not allowed in MH_DYLIB files
4771 PICFLAG_FOR_TARGET=-fno-common
4773 alpha*-dec-osf5*)
4774 # PIC is the default.
4776 hppa*64*-*-hpux*)
4777 # PIC is the default for 64-bit PA HP-UX.
4779 i[34567]86-*-cygwin* | x86_64-*-cygwin*)
4781 i[34567]86-*-mingw* | x86_64-*-mingw*)
4783 i[34567]86-*-interix[3-9]*)
4784 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
4785 # Instead, we relocate shared libraries at runtime.
4787 i[34567]86-*-nto-qnx*)
4788 # QNX uses GNU C++, but need to define -shared option too, otherwise
4789 # it will coredump.
4790 PICFLAG_FOR_TARGET='-fPIC -shared'
4792 i[34567]86-pc-msdosdjgpp*)
4793 # DJGPP does not support shared libraries at all.
4795 ia64*-*-hpux*)
4796 # On IA64 HP-UX, PIC is the default but the pic flag
4797 # sets the default TLS model and affects inlining.
4798 PICFLAG_FOR_TARGET=-fPIC
4800 mips-sgi-irix6*)
4801 # PIC is the default.
4803 rs6000-ibm-aix* | powerpc-ibm-aix*)
4804 # All AIX code is PIC.
4807 # Some targets support both -fPIC and -fpic, but prefer the latter.
4808 # FIXME: Why?
4809 i[34567]86-*-* | x86_64-*-*)
4810 PICFLAG_FOR_TARGET=-fpic
4812 # FIXME: Override -fPIC default in libgcc only?
4813 sh-*-linux* | sh[2346lbe]*-*-linux*)
4814 PICFLAG_FOR_TARGET=-fpic
4816 # FIXME: Simplify to sh*-*-netbsd*?
4817 sh-*-netbsdelf* | shl*-*-netbsdelf* | sh5-*-netbsd* | sh5l*-*-netbsd* | \
4818 sh64-*-netbsd* | sh64l*-*-netbsd*)
4819 PICFLAG_FOR_TARGET=-fpic
4821 # Default to -fPIC unless specified otherwise.
4823 PICFLAG_FOR_TARGET=-fPIC
4825 esac
4827 # If the user explicitly uses -fpic/-fPIC, keep that.
4828 case "${CFLAGS_FOR_TARGET}" in
4829 *-fpic*)
4830 PICFLAG_FOR_TARGET=-fpic
4832 *-fPIC*)
4833 PICFLAG_FOR_TARGET=-fPIC
4835 esac
4839 # -------------------------
4840 # Check C compiler features
4841 # -------------------------
4844 ac_ext=c
4845 ac_cpp='$CPP $CPPFLAGS'
4846 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4847 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4848 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4849 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
4850 $as_echo_n "checking how to run the C preprocessor... " >&6; }
4851 # On Suns, sometimes $CPP names a directory.
4852 if test -n "$CPP" && test -d "$CPP"; then
4853 CPP=
4855 if test -z "$CPP"; then
4856 if test "${ac_cv_prog_CPP+set}" = set; then :
4857 $as_echo_n "(cached) " >&6
4858 else
4859 # Double quotes because CPP needs to be expanded
4860 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
4862 ac_preproc_ok=false
4863 for ac_c_preproc_warn_flag in '' yes
4865 # Use a header file that comes with gcc, so configuring glibc
4866 # with a fresh cross-compiler works.
4867 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4868 # <limits.h> exists even on freestanding compilers.
4869 # On the NeXT, cc -E runs the code through the compiler's parser,
4870 # not just through cpp. "Syntax error" is here to catch this case.
4871 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4872 /* end confdefs.h. */
4873 #ifdef __STDC__
4874 # include <limits.h>
4875 #else
4876 # include <assert.h>
4877 #endif
4878 Syntax error
4879 _ACEOF
4880 if ac_fn_c_try_cpp "$LINENO"; then :
4882 else
4883 # Broken: fails on valid input.
4884 continue
4886 rm -f conftest.err conftest.$ac_ext
4888 # OK, works on sane cases. Now check whether nonexistent headers
4889 # can be detected and how.
4890 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4891 /* end confdefs.h. */
4892 #include <ac_nonexistent.h>
4893 _ACEOF
4894 if ac_fn_c_try_cpp "$LINENO"; then :
4895 # Broken: success on invalid input.
4896 continue
4897 else
4898 # Passes both tests.
4899 ac_preproc_ok=:
4900 break
4902 rm -f conftest.err conftest.$ac_ext
4904 done
4905 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4906 rm -f conftest.err conftest.$ac_ext
4907 if $ac_preproc_ok; then :
4908 break
4911 done
4912 ac_cv_prog_CPP=$CPP
4915 CPP=$ac_cv_prog_CPP
4916 else
4917 ac_cv_prog_CPP=$CPP
4919 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
4920 $as_echo "$CPP" >&6; }
4921 ac_preproc_ok=false
4922 for ac_c_preproc_warn_flag in '' yes
4924 # Use a header file that comes with gcc, so configuring glibc
4925 # with a fresh cross-compiler works.
4926 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4927 # <limits.h> exists even on freestanding compilers.
4928 # On the NeXT, cc -E runs the code through the compiler's parser,
4929 # not just through cpp. "Syntax error" is here to catch this case.
4930 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4931 /* end confdefs.h. */
4932 #ifdef __STDC__
4933 # include <limits.h>
4934 #else
4935 # include <assert.h>
4936 #endif
4937 Syntax error
4938 _ACEOF
4939 if ac_fn_c_try_cpp "$LINENO"; then :
4941 else
4942 # Broken: fails on valid input.
4943 continue
4945 rm -f conftest.err conftest.$ac_ext
4947 # OK, works on sane cases. Now check whether nonexistent headers
4948 # can be detected and how.
4949 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4950 /* end confdefs.h. */
4951 #include <ac_nonexistent.h>
4952 _ACEOF
4953 if ac_fn_c_try_cpp "$LINENO"; then :
4954 # Broken: success on invalid input.
4955 continue
4956 else
4957 # Passes both tests.
4958 ac_preproc_ok=:
4959 break
4961 rm -f conftest.err conftest.$ac_ext
4963 done
4964 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4965 rm -f conftest.err conftest.$ac_ext
4966 if $ac_preproc_ok; then :
4968 else
4969 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4970 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4971 as_fn_error "C preprocessor \"$CPP\" fails sanity check
4972 See \`config.log' for more details." "$LINENO" 5; }
4975 ac_ext=c
4976 ac_cpp='$CPP $CPPFLAGS'
4977 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4978 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4979 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4982 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
4983 $as_echo_n "checking for grep that handles long lines and -e... " >&6; }
4984 if test "${ac_cv_path_GREP+set}" = set; then :
4985 $as_echo_n "(cached) " >&6
4986 else
4987 if test -z "$GREP"; then
4988 ac_path_GREP_found=false
4989 # Loop through the user's path and test for each of PROGNAME-LIST
4990 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4991 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4993 IFS=$as_save_IFS
4994 test -z "$as_dir" && as_dir=.
4995 for ac_prog in grep ggrep; do
4996 for ac_exec_ext in '' $ac_executable_extensions; do
4997 ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
4998 { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } || continue
4999 # Check for GNU ac_path_GREP and select it if it is found.
5000 # Check for GNU $ac_path_GREP
5001 case `"$ac_path_GREP" --version 2>&1` in
5002 *GNU*)
5003 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
5005 ac_count=0
5006 $as_echo_n 0123456789 >"conftest.in"
5007 while :
5009 cat "conftest.in" "conftest.in" >"conftest.tmp"
5010 mv "conftest.tmp" "conftest.in"
5011 cp "conftest.in" "conftest.nl"
5012 $as_echo 'GREP' >> "conftest.nl"
5013 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
5014 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
5015 as_fn_arith $ac_count + 1 && ac_count=$as_val
5016 if test $ac_count -gt ${ac_path_GREP_max-0}; then
5017 # Best one so far, save it but keep looking for a better one
5018 ac_cv_path_GREP="$ac_path_GREP"
5019 ac_path_GREP_max=$ac_count
5021 # 10*(2^10) chars as input seems more than enough
5022 test $ac_count -gt 10 && break
5023 done
5024 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
5025 esac
5027 $ac_path_GREP_found && break 3
5028 done
5029 done
5030 done
5031 IFS=$as_save_IFS
5032 if test -z "$ac_cv_path_GREP"; then
5033 as_fn_error "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
5035 else
5036 ac_cv_path_GREP=$GREP
5040 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
5041 $as_echo "$ac_cv_path_GREP" >&6; }
5042 GREP="$ac_cv_path_GREP"
5045 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
5046 $as_echo_n "checking for egrep... " >&6; }
5047 if test "${ac_cv_path_EGREP+set}" = set; then :
5048 $as_echo_n "(cached) " >&6
5049 else
5050 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
5051 then ac_cv_path_EGREP="$GREP -E"
5052 else
5053 if test -z "$EGREP"; then
5054 ac_path_EGREP_found=false
5055 # Loop through the user's path and test for each of PROGNAME-LIST
5056 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5057 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
5059 IFS=$as_save_IFS
5060 test -z "$as_dir" && as_dir=.
5061 for ac_prog in egrep; do
5062 for ac_exec_ext in '' $ac_executable_extensions; do
5063 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
5064 { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } || continue
5065 # Check for GNU ac_path_EGREP and select it if it is found.
5066 # Check for GNU $ac_path_EGREP
5067 case `"$ac_path_EGREP" --version 2>&1` in
5068 *GNU*)
5069 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
5071 ac_count=0
5072 $as_echo_n 0123456789 >"conftest.in"
5073 while :
5075 cat "conftest.in" "conftest.in" >"conftest.tmp"
5076 mv "conftest.tmp" "conftest.in"
5077 cp "conftest.in" "conftest.nl"
5078 $as_echo 'EGREP' >> "conftest.nl"
5079 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
5080 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
5081 as_fn_arith $ac_count + 1 && ac_count=$as_val
5082 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
5083 # Best one so far, save it but keep looking for a better one
5084 ac_cv_path_EGREP="$ac_path_EGREP"
5085 ac_path_EGREP_max=$ac_count
5087 # 10*(2^10) chars as input seems more than enough
5088 test $ac_count -gt 10 && break
5089 done
5090 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
5091 esac
5093 $ac_path_EGREP_found && break 3
5094 done
5095 done
5096 done
5097 IFS=$as_save_IFS
5098 if test -z "$ac_cv_path_EGREP"; then
5099 as_fn_error "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
5101 else
5102 ac_cv_path_EGREP=$EGREP
5107 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
5108 $as_echo "$ac_cv_path_EGREP" >&6; }
5109 EGREP="$ac_cv_path_EGREP"
5112 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
5113 $as_echo_n "checking for ANSI C header files... " >&6; }
5114 if test "${ac_cv_header_stdc+set}" = set; then :
5115 $as_echo_n "(cached) " >&6
5116 else
5117 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5118 /* end confdefs.h. */
5119 #include <stdlib.h>
5120 #include <stdarg.h>
5121 #include <string.h>
5122 #include <float.h>
5125 main ()
5129 return 0;
5131 _ACEOF
5132 if ac_fn_c_try_compile "$LINENO"; then :
5133 ac_cv_header_stdc=yes
5134 else
5135 ac_cv_header_stdc=no
5137 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5139 if test $ac_cv_header_stdc = yes; then
5140 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
5141 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5142 /* end confdefs.h. */
5143 #include <string.h>
5145 _ACEOF
5146 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5147 $EGREP "memchr" >/dev/null 2>&1; then :
5149 else
5150 ac_cv_header_stdc=no
5152 rm -f conftest*
5156 if test $ac_cv_header_stdc = yes; then
5157 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
5158 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5159 /* end confdefs.h. */
5160 #include <stdlib.h>
5162 _ACEOF
5163 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5164 $EGREP "free" >/dev/null 2>&1; then :
5166 else
5167 ac_cv_header_stdc=no
5169 rm -f conftest*
5173 if test $ac_cv_header_stdc = yes; then
5174 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
5175 if test "$cross_compiling" = yes; then :
5177 else
5178 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5179 /* end confdefs.h. */
5180 #include <ctype.h>
5181 #include <stdlib.h>
5182 #if ((' ' & 0x0FF) == 0x020)
5183 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
5184 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
5185 #else
5186 # define ISLOWER(c) \
5187 (('a' <= (c) && (c) <= 'i') \
5188 || ('j' <= (c) && (c) <= 'r') \
5189 || ('s' <= (c) && (c) <= 'z'))
5190 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
5191 #endif
5193 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
5195 main ()
5197 int i;
5198 for (i = 0; i < 256; i++)
5199 if (XOR (islower (i), ISLOWER (i))
5200 || toupper (i) != TOUPPER (i))
5201 return 2;
5202 return 0;
5204 _ACEOF
5205 if ac_fn_c_try_run "$LINENO"; then :
5207 else
5208 ac_cv_header_stdc=no
5210 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
5211 conftest.$ac_objext conftest.beam conftest.$ac_ext
5216 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
5217 $as_echo "$ac_cv_header_stdc" >&6; }
5218 if test $ac_cv_header_stdc = yes; then
5220 $as_echo "#define STDC_HEADERS 1" >>confdefs.h
5224 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
5225 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
5226 inttypes.h stdint.h unistd.h
5227 do :
5228 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
5229 ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
5231 eval as_val=\$$as_ac_Header
5232 if test "x$as_val" = x""yes; then :
5233 cat >>confdefs.h <<_ACEOF
5234 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
5235 _ACEOF
5239 done
5243 ac_fn_c_check_header_mongrel "$LINENO" "minix/config.h" "ac_cv_header_minix_config_h" "$ac_includes_default"
5244 if test "x$ac_cv_header_minix_config_h" = x""yes; then :
5245 MINIX=yes
5246 else
5247 MINIX=
5251 if test "$MINIX" = yes; then
5253 $as_echo "#define _POSIX_SOURCE 1" >>confdefs.h
5256 $as_echo "#define _POSIX_1_SOURCE 2" >>confdefs.h
5259 $as_echo "#define _MINIX 1" >>confdefs.h
5264 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether it is safe to define __EXTENSIONS__" >&5
5265 $as_echo_n "checking whether it is safe to define __EXTENSIONS__... " >&6; }
5266 if test "${ac_cv_safe_to_define___extensions__+set}" = set; then :
5267 $as_echo_n "(cached) " >&6
5268 else
5269 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5270 /* end confdefs.h. */
5272 # define __EXTENSIONS__ 1
5273 $ac_includes_default
5275 main ()
5279 return 0;
5281 _ACEOF
5282 if ac_fn_c_try_compile "$LINENO"; then :
5283 ac_cv_safe_to_define___extensions__=yes
5284 else
5285 ac_cv_safe_to_define___extensions__=no
5287 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5289 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_safe_to_define___extensions__" >&5
5290 $as_echo "$ac_cv_safe_to_define___extensions__" >&6; }
5291 test $ac_cv_safe_to_define___extensions__ = yes &&
5292 $as_echo "#define __EXTENSIONS__ 1" >>confdefs.h
5294 $as_echo "#define _ALL_SOURCE 1" >>confdefs.h
5296 $as_echo "#define _GNU_SOURCE 1" >>confdefs.h
5298 $as_echo "#define _POSIX_PTHREAD_SEMANTICS 1" >>confdefs.h
5300 $as_echo "#define _TANDEM_SOURCE 1" >>confdefs.h
5303 ac_ext=c
5304 ac_cpp='$CPP $CPPFLAGS'
5305 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5306 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5307 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5308 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
5309 $as_echo_n "checking how to run the C preprocessor... " >&6; }
5310 # On Suns, sometimes $CPP names a directory.
5311 if test -n "$CPP" && test -d "$CPP"; then
5312 CPP=
5314 if test -z "$CPP"; then
5315 if test "${ac_cv_prog_CPP+set}" = set; then :
5316 $as_echo_n "(cached) " >&6
5317 else
5318 # Double quotes because CPP needs to be expanded
5319 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
5321 ac_preproc_ok=false
5322 for ac_c_preproc_warn_flag in '' yes
5324 # Use a header file that comes with gcc, so configuring glibc
5325 # with a fresh cross-compiler works.
5326 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5327 # <limits.h> exists even on freestanding compilers.
5328 # On the NeXT, cc -E runs the code through the compiler's parser,
5329 # not just through cpp. "Syntax error" is here to catch this case.
5330 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5331 /* end confdefs.h. */
5332 #ifdef __STDC__
5333 # include <limits.h>
5334 #else
5335 # include <assert.h>
5336 #endif
5337 Syntax error
5338 _ACEOF
5339 if ac_fn_c_try_cpp "$LINENO"; then :
5341 else
5342 # Broken: fails on valid input.
5343 continue
5345 rm -f conftest.err conftest.$ac_ext
5347 # OK, works on sane cases. Now check whether nonexistent headers
5348 # can be detected and how.
5349 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5350 /* end confdefs.h. */
5351 #include <ac_nonexistent.h>
5352 _ACEOF
5353 if ac_fn_c_try_cpp "$LINENO"; then :
5354 # Broken: success on invalid input.
5355 continue
5356 else
5357 # Passes both tests.
5358 ac_preproc_ok=:
5359 break
5361 rm -f conftest.err conftest.$ac_ext
5363 done
5364 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5365 rm -f conftest.err conftest.$ac_ext
5366 if $ac_preproc_ok; then :
5367 break
5370 done
5371 ac_cv_prog_CPP=$CPP
5374 CPP=$ac_cv_prog_CPP
5375 else
5376 ac_cv_prog_CPP=$CPP
5378 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
5379 $as_echo "$CPP" >&6; }
5380 ac_preproc_ok=false
5381 for ac_c_preproc_warn_flag in '' yes
5383 # Use a header file that comes with gcc, so configuring glibc
5384 # with a fresh cross-compiler works.
5385 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5386 # <limits.h> exists even on freestanding compilers.
5387 # On the NeXT, cc -E runs the code through the compiler's parser,
5388 # not just through cpp. "Syntax error" is here to catch this case.
5389 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5390 /* end confdefs.h. */
5391 #ifdef __STDC__
5392 # include <limits.h>
5393 #else
5394 # include <assert.h>
5395 #endif
5396 Syntax error
5397 _ACEOF
5398 if ac_fn_c_try_cpp "$LINENO"; then :
5400 else
5401 # Broken: fails on valid input.
5402 continue
5404 rm -f conftest.err conftest.$ac_ext
5406 # OK, works on sane cases. Now check whether nonexistent headers
5407 # can be detected and how.
5408 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5409 /* end confdefs.h. */
5410 #include <ac_nonexistent.h>
5411 _ACEOF
5412 if ac_fn_c_try_cpp "$LINENO"; then :
5413 # Broken: success on invalid input.
5414 continue
5415 else
5416 # Passes both tests.
5417 ac_preproc_ok=:
5418 break
5420 rm -f conftest.err conftest.$ac_ext
5422 done
5423 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5424 rm -f conftest.err conftest.$ac_ext
5425 if $ac_preproc_ok; then :
5427 else
5428 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
5429 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
5430 as_fn_error "C preprocessor \"$CPP\" fails sanity check
5431 See \`config.log' for more details." "$LINENO" 5; }
5434 ac_ext=c
5435 ac_cpp='$CPP $CPPFLAGS'
5436 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5437 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5438 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5440 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for inline" >&5
5441 $as_echo_n "checking for inline... " >&6; }
5442 if test "${ac_cv_c_inline+set}" = set; then :
5443 $as_echo_n "(cached) " >&6
5444 else
5445 ac_cv_c_inline=no
5446 for ac_kw in inline __inline__ __inline; do
5447 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5448 /* end confdefs.h. */
5449 #ifndef __cplusplus
5450 typedef int foo_t;
5451 static $ac_kw foo_t static_foo () {return 0; }
5452 $ac_kw foo_t foo () {return 0; }
5453 #endif
5455 _ACEOF
5456 if ac_fn_c_try_compile "$LINENO"; then :
5457 ac_cv_c_inline=$ac_kw
5459 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5460 test "$ac_cv_c_inline" != no && break
5461 done
5464 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_inline" >&5
5465 $as_echo "$ac_cv_c_inline" >&6; }
5467 case $ac_cv_c_inline in
5468 inline | yes) ;;
5470 case $ac_cv_c_inline in
5471 no) ac_val=;;
5472 *) ac_val=$ac_cv_c_inline;;
5473 esac
5474 cat >>confdefs.h <<_ACEOF
5475 #ifndef __cplusplus
5476 #define inline $ac_val
5477 #endif
5478 _ACEOF
5480 esac
5483 # Check whether --enable-largefile was given.
5484 if test "${enable_largefile+set}" = set; then :
5485 enableval=$enable_largefile;
5488 if test "$enable_largefile" != no; then
5490 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for special C compiler options needed for large files" >&5
5491 $as_echo_n "checking for special C compiler options needed for large files... " >&6; }
5492 if test "${ac_cv_sys_largefile_CC+set}" = set; then :
5493 $as_echo_n "(cached) " >&6
5494 else
5495 ac_cv_sys_largefile_CC=no
5496 if test "$GCC" != yes; then
5497 ac_save_CC=$CC
5498 while :; do
5499 # IRIX 6.2 and later do not support large files by default,
5500 # so use the C compiler's -n32 option if that helps.
5501 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5502 /* end confdefs.h. */
5503 #include <sys/types.h>
5504 /* Check that off_t can represent 2**63 - 1 correctly.
5505 We can't simply define LARGE_OFF_T to be 9223372036854775807,
5506 since some C++ compilers masquerading as C compilers
5507 incorrectly reject 9223372036854775807. */
5508 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
5509 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
5510 && LARGE_OFF_T % 2147483647 == 1)
5511 ? 1 : -1];
5513 main ()
5517 return 0;
5519 _ACEOF
5520 if ac_fn_c_try_compile "$LINENO"; then :
5521 break
5523 rm -f core conftest.err conftest.$ac_objext
5524 CC="$CC -n32"
5525 if ac_fn_c_try_compile "$LINENO"; then :
5526 ac_cv_sys_largefile_CC=' -n32'; break
5528 rm -f core conftest.err conftest.$ac_objext
5529 break
5530 done
5531 CC=$ac_save_CC
5532 rm -f conftest.$ac_ext
5535 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_largefile_CC" >&5
5536 $as_echo "$ac_cv_sys_largefile_CC" >&6; }
5537 if test "$ac_cv_sys_largefile_CC" != no; then
5538 CC=$CC$ac_cv_sys_largefile_CC
5541 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _FILE_OFFSET_BITS value needed for large files" >&5
5542 $as_echo_n "checking for _FILE_OFFSET_BITS value needed for large files... " >&6; }
5543 if test "${ac_cv_sys_file_offset_bits+set}" = set; then :
5544 $as_echo_n "(cached) " >&6
5545 else
5546 while :; do
5547 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5548 /* end confdefs.h. */
5549 #include <sys/types.h>
5550 /* Check that off_t can represent 2**63 - 1 correctly.
5551 We can't simply define LARGE_OFF_T to be 9223372036854775807,
5552 since some C++ compilers masquerading as C compilers
5553 incorrectly reject 9223372036854775807. */
5554 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
5555 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
5556 && LARGE_OFF_T % 2147483647 == 1)
5557 ? 1 : -1];
5559 main ()
5563 return 0;
5565 _ACEOF
5566 if ac_fn_c_try_compile "$LINENO"; then :
5567 ac_cv_sys_file_offset_bits=no; break
5569 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5570 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5571 /* end confdefs.h. */
5572 #define _FILE_OFFSET_BITS 64
5573 #include <sys/types.h>
5574 /* Check that off_t can represent 2**63 - 1 correctly.
5575 We can't simply define LARGE_OFF_T to be 9223372036854775807,
5576 since some C++ compilers masquerading as C compilers
5577 incorrectly reject 9223372036854775807. */
5578 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
5579 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
5580 && LARGE_OFF_T % 2147483647 == 1)
5581 ? 1 : -1];
5583 main ()
5587 return 0;
5589 _ACEOF
5590 if ac_fn_c_try_compile "$LINENO"; then :
5591 ac_cv_sys_file_offset_bits=64; break
5593 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5594 ac_cv_sys_file_offset_bits=unknown
5595 break
5596 done
5598 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_file_offset_bits" >&5
5599 $as_echo "$ac_cv_sys_file_offset_bits" >&6; }
5600 case $ac_cv_sys_file_offset_bits in #(
5601 no | unknown) ;;
5603 cat >>confdefs.h <<_ACEOF
5604 #define _FILE_OFFSET_BITS $ac_cv_sys_file_offset_bits
5605 _ACEOF
5607 esac
5608 rm -rf conftest*
5609 if test $ac_cv_sys_file_offset_bits = unknown; then
5610 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _LARGE_FILES value needed for large files" >&5
5611 $as_echo_n "checking for _LARGE_FILES value needed for large files... " >&6; }
5612 if test "${ac_cv_sys_large_files+set}" = set; then :
5613 $as_echo_n "(cached) " >&6
5614 else
5615 while :; do
5616 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5617 /* end confdefs.h. */
5618 #include <sys/types.h>
5619 /* Check that off_t can represent 2**63 - 1 correctly.
5620 We can't simply define LARGE_OFF_T to be 9223372036854775807,
5621 since some C++ compilers masquerading as C compilers
5622 incorrectly reject 9223372036854775807. */
5623 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
5624 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
5625 && LARGE_OFF_T % 2147483647 == 1)
5626 ? 1 : -1];
5628 main ()
5632 return 0;
5634 _ACEOF
5635 if ac_fn_c_try_compile "$LINENO"; then :
5636 ac_cv_sys_large_files=no; break
5638 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5639 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5640 /* end confdefs.h. */
5641 #define _LARGE_FILES 1
5642 #include <sys/types.h>
5643 /* Check that off_t can represent 2**63 - 1 correctly.
5644 We can't simply define LARGE_OFF_T to be 9223372036854775807,
5645 since some C++ compilers masquerading as C compilers
5646 incorrectly reject 9223372036854775807. */
5647 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
5648 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
5649 && LARGE_OFF_T % 2147483647 == 1)
5650 ? 1 : -1];
5652 main ()
5656 return 0;
5658 _ACEOF
5659 if ac_fn_c_try_compile "$LINENO"; then :
5660 ac_cv_sys_large_files=1; break
5662 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5663 ac_cv_sys_large_files=unknown
5664 break
5665 done
5667 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_large_files" >&5
5668 $as_echo "$ac_cv_sys_large_files" >&6; }
5669 case $ac_cv_sys_large_files in #(
5670 no | unknown) ;;
5672 cat >>confdefs.h <<_ACEOF
5673 #define _LARGE_FILES $ac_cv_sys_large_files
5674 _ACEOF
5676 esac
5677 rm -rf conftest*
5682 # sizeof(char) is 1 by definition.
5683 # The cast to long int works around a bug in the HP C Compiler
5684 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
5685 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
5686 # This bug is HP SR number 8606223364.
5687 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of void *" >&5
5688 $as_echo_n "checking size of void *... " >&6; }
5689 if test "${ac_cv_sizeof_void_p+set}" = set; then :
5690 $as_echo_n "(cached) " >&6
5691 else
5692 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (void *))" "ac_cv_sizeof_void_p" "$ac_includes_default"; then :
5694 else
5695 if test "$ac_cv_type_void_p" = yes; then
5696 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
5697 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
5698 { as_fn_set_status 77
5699 as_fn_error "cannot compute sizeof (void *)
5700 See \`config.log' for more details." "$LINENO" 5; }; }
5701 else
5702 ac_cv_sizeof_void_p=0
5707 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_void_p" >&5
5708 $as_echo "$ac_cv_sizeof_void_p" >&6; }
5712 cat >>confdefs.h <<_ACEOF
5713 #define SIZEOF_VOID_P $ac_cv_sizeof_void_p
5714 _ACEOF
5717 # The cast to long int works around a bug in the HP C Compiler
5718 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
5719 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
5720 # This bug is HP SR number 8606223364.
5721 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of short" >&5
5722 $as_echo_n "checking size of short... " >&6; }
5723 if test "${ac_cv_sizeof_short+set}" = set; then :
5724 $as_echo_n "(cached) " >&6
5725 else
5726 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (short))" "ac_cv_sizeof_short" "$ac_includes_default"; then :
5728 else
5729 if test "$ac_cv_type_short" = yes; then
5730 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
5731 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
5732 { as_fn_set_status 77
5733 as_fn_error "cannot compute sizeof (short)
5734 See \`config.log' for more details." "$LINENO" 5; }; }
5735 else
5736 ac_cv_sizeof_short=0
5741 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_short" >&5
5742 $as_echo "$ac_cv_sizeof_short" >&6; }
5746 cat >>confdefs.h <<_ACEOF
5747 #define SIZEOF_SHORT $ac_cv_sizeof_short
5748 _ACEOF
5751 # The cast to long int works around a bug in the HP C Compiler
5752 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
5753 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
5754 # This bug is HP SR number 8606223364.
5755 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of int" >&5
5756 $as_echo_n "checking size of int... " >&6; }
5757 if test "${ac_cv_sizeof_int+set}" = set; then :
5758 $as_echo_n "(cached) " >&6
5759 else
5760 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (int))" "ac_cv_sizeof_int" "$ac_includes_default"; then :
5762 else
5763 if test "$ac_cv_type_int" = yes; then
5764 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
5765 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
5766 { as_fn_set_status 77
5767 as_fn_error "cannot compute sizeof (int)
5768 See \`config.log' for more details." "$LINENO" 5; }; }
5769 else
5770 ac_cv_sizeof_int=0
5775 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_int" >&5
5776 $as_echo "$ac_cv_sizeof_int" >&6; }
5780 cat >>confdefs.h <<_ACEOF
5781 #define SIZEOF_INT $ac_cv_sizeof_int
5782 _ACEOF
5785 # The cast to long int works around a bug in the HP C Compiler
5786 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
5787 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
5788 # This bug is HP SR number 8606223364.
5789 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of long" >&5
5790 $as_echo_n "checking size of long... " >&6; }
5791 if test "${ac_cv_sizeof_long+set}" = set; then :
5792 $as_echo_n "(cached) " >&6
5793 else
5794 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (long))" "ac_cv_sizeof_long" "$ac_includes_default"; then :
5796 else
5797 if test "$ac_cv_type_long" = yes; then
5798 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
5799 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
5800 { as_fn_set_status 77
5801 as_fn_error "cannot compute sizeof (long)
5802 See \`config.log' for more details." "$LINENO" 5; }; }
5803 else
5804 ac_cv_sizeof_long=0
5809 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_long" >&5
5810 $as_echo "$ac_cv_sizeof_long" >&6; }
5814 cat >>confdefs.h <<_ACEOF
5815 #define SIZEOF_LONG $ac_cv_sizeof_long
5816 _ACEOF
5819 ac_fn_c_check_type "$LINENO" "long long" "ac_cv_type_long_long" "$ac_includes_default"
5820 if test "x$ac_cv_type_long_long" = x""yes; then :
5822 cat >>confdefs.h <<_ACEOF
5823 #define HAVE_LONG_LONG 1
5824 _ACEOF
5826 # The cast to long int works around a bug in the HP C Compiler
5827 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
5828 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
5829 # This bug is HP SR number 8606223364.
5830 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of long long" >&5
5831 $as_echo_n "checking size of long long... " >&6; }
5832 if test "${ac_cv_sizeof_long_long+set}" = set; then :
5833 $as_echo_n "(cached) " >&6
5834 else
5835 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (long long))" "ac_cv_sizeof_long_long" "$ac_includes_default"; then :
5837 else
5838 if test "$ac_cv_type_long_long" = yes; then
5839 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
5840 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
5841 { as_fn_set_status 77
5842 as_fn_error "cannot compute sizeof (long long)
5843 See \`config.log' for more details." "$LINENO" 5; }; }
5844 else
5845 ac_cv_sizeof_long_long=0
5850 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_long_long" >&5
5851 $as_echo "$ac_cv_sizeof_long_long" >&6; }
5855 cat >>confdefs.h <<_ACEOF
5856 #define SIZEOF_LONG_LONG $ac_cv_sizeof_long_long
5857 _ACEOF
5862 ac_fn_c_check_type "$LINENO" "__int64" "ac_cv_type___int64" "$ac_includes_default"
5863 if test "x$ac_cv_type___int64" = x""yes; then :
5865 cat >>confdefs.h <<_ACEOF
5866 #define HAVE___INT64 1
5867 _ACEOF
5869 # The cast to long int works around a bug in the HP C Compiler
5870 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
5871 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
5872 # This bug is HP SR number 8606223364.
5873 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of __int64" >&5
5874 $as_echo_n "checking size of __int64... " >&6; }
5875 if test "${ac_cv_sizeof___int64+set}" = set; then :
5876 $as_echo_n "(cached) " >&6
5877 else
5878 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (__int64))" "ac_cv_sizeof___int64" "$ac_includes_default"; then :
5880 else
5881 if test "$ac_cv_type___int64" = yes; then
5882 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
5883 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
5884 { as_fn_set_status 77
5885 as_fn_error "cannot compute sizeof (__int64)
5886 See \`config.log' for more details." "$LINENO" 5; }; }
5887 else
5888 ac_cv_sizeof___int64=0
5893 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof___int64" >&5
5894 $as_echo "$ac_cv_sizeof___int64" >&6; }
5898 cat >>confdefs.h <<_ACEOF
5899 #define SIZEOF___INT64 $ac_cv_sizeof___int64
5900 _ACEOF
5905 ac_fn_c_find_intX_t "$LINENO" "8" "ac_cv_c_int8_t"
5906 case $ac_cv_c_int8_t in #(
5907 no|yes) ;; #(
5910 cat >>confdefs.h <<_ACEOF
5911 #define int8_t $ac_cv_c_int8_t
5912 _ACEOF
5914 esac
5916 ac_fn_c_find_intX_t "$LINENO" "16" "ac_cv_c_int16_t"
5917 case $ac_cv_c_int16_t in #(
5918 no|yes) ;; #(
5921 cat >>confdefs.h <<_ACEOF
5922 #define int16_t $ac_cv_c_int16_t
5923 _ACEOF
5925 esac
5927 ac_fn_c_find_intX_t "$LINENO" "32" "ac_cv_c_int32_t"
5928 case $ac_cv_c_int32_t in #(
5929 no|yes) ;; #(
5932 cat >>confdefs.h <<_ACEOF
5933 #define int32_t $ac_cv_c_int32_t
5934 _ACEOF
5936 esac
5938 ac_fn_c_find_intX_t "$LINENO" "64" "ac_cv_c_int64_t"
5939 case $ac_cv_c_int64_t in #(
5940 no|yes) ;; #(
5943 cat >>confdefs.h <<_ACEOF
5944 #define int64_t $ac_cv_c_int64_t
5945 _ACEOF
5947 esac
5950 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for long long int" >&5
5951 $as_echo_n "checking for long long int... " >&6; }
5952 if test "${ac_cv_type_long_long_int+set}" = set; then :
5953 $as_echo_n "(cached) " >&6
5954 else
5955 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5956 /* end confdefs.h. */
5958 /* For now, do not test the preprocessor; as of 2007 there are too many
5959 implementations with broken preprocessors. Perhaps this can
5960 be revisited in 2012. In the meantime, code should not expect
5961 #if to work with literals wider than 32 bits. */
5962 /* Test literals. */
5963 long long int ll = 9223372036854775807ll;
5964 long long int nll = -9223372036854775807LL;
5965 unsigned long long int ull = 18446744073709551615ULL;
5966 /* Test constant expressions. */
5967 typedef int a[((-9223372036854775807LL < 0 && 0 < 9223372036854775807ll)
5968 ? 1 : -1)];
5969 typedef int b[(18446744073709551615ULL <= (unsigned long long int) -1
5970 ? 1 : -1)];
5971 int i = 63;
5973 main ()
5975 /* Test availability of runtime routines for shift and division. */
5976 long long int llmax = 9223372036854775807ll;
5977 unsigned long long int ullmax = 18446744073709551615ull;
5978 return ((ll << 63) | (ll >> 63) | (ll < i) | (ll > i)
5979 | (llmax / ll) | (llmax % ll)
5980 | (ull << 63) | (ull >> 63) | (ull << i) | (ull >> i)
5981 | (ullmax / ull) | (ullmax % ull));
5983 return 0;
5986 _ACEOF
5987 if ac_fn_c_try_link "$LINENO"; then :
5988 if test "$cross_compiling" = yes; then :
5989 ac_cv_type_long_long_int=yes
5990 else
5991 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5992 /* end confdefs.h. */
5993 #include <limits.h>
5994 #ifndef LLONG_MAX
5995 # define HALF \
5996 (1LL << (sizeof (long long int) * CHAR_BIT - 2))
5997 # define LLONG_MAX (HALF - 1 + HALF)
5998 #endif
6000 main ()
6002 long long int n = 1;
6003 int i;
6004 for (i = 0; ; i++)
6006 long long int m = n << i;
6007 if (m >> i != n)
6008 return 1;
6009 if (LLONG_MAX / 2 < m)
6010 break;
6012 return 0;
6014 return 0;
6016 _ACEOF
6017 if ac_fn_c_try_run "$LINENO"; then :
6018 ac_cv_type_long_long_int=yes
6019 else
6020 ac_cv_type_long_long_int=no
6022 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
6023 conftest.$ac_objext conftest.beam conftest.$ac_ext
6026 else
6027 ac_cv_type_long_long_int=no
6029 rm -f core conftest.err conftest.$ac_objext \
6030 conftest$ac_exeext conftest.$ac_ext
6032 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_long_long_int" >&5
6033 $as_echo "$ac_cv_type_long_long_int" >&6; }
6034 if test $ac_cv_type_long_long_int = yes; then
6036 $as_echo "#define HAVE_LONG_LONG_INT 1" >>confdefs.h
6042 ac_fn_c_check_type "$LINENO" "intmax_t" "ac_cv_type_intmax_t" "$ac_includes_default"
6043 if test "x$ac_cv_type_intmax_t" = x""yes; then :
6045 $as_echo "#define HAVE_INTMAX_T 1" >>confdefs.h
6047 else
6048 test $ac_cv_type_long_long_int = yes \
6049 && ac_type='long long int' \
6050 || ac_type='long int'
6052 cat >>confdefs.h <<_ACEOF
6053 #define intmax_t $ac_type
6054 _ACEOF
6060 ac_fn_c_check_type "$LINENO" "intptr_t" "ac_cv_type_intptr_t" "$ac_includes_default"
6061 if test "x$ac_cv_type_intptr_t" = x""yes; then :
6063 $as_echo "#define HAVE_INTPTR_T 1" >>confdefs.h
6065 else
6066 for ac_type in 'int' 'long int' 'long long int'; do
6067 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6068 /* end confdefs.h. */
6069 $ac_includes_default
6071 main ()
6073 static int test_array [1 - 2 * !(sizeof (void *) <= sizeof ($ac_type))];
6074 test_array [0] = 0
6077 return 0;
6079 _ACEOF
6080 if ac_fn_c_try_compile "$LINENO"; then :
6082 cat >>confdefs.h <<_ACEOF
6083 #define intptr_t $ac_type
6084 _ACEOF
6086 ac_type=
6088 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6089 test -z "$ac_type" && break
6090 done
6094 ac_fn_c_find_uintX_t "$LINENO" "8" "ac_cv_c_uint8_t"
6095 case $ac_cv_c_uint8_t in #(
6096 no|yes) ;; #(
6099 $as_echo "#define _UINT8_T 1" >>confdefs.h
6102 cat >>confdefs.h <<_ACEOF
6103 #define uint8_t $ac_cv_c_uint8_t
6104 _ACEOF
6106 esac
6108 ac_fn_c_find_uintX_t "$LINENO" "16" "ac_cv_c_uint16_t"
6109 case $ac_cv_c_uint16_t in #(
6110 no|yes) ;; #(
6114 cat >>confdefs.h <<_ACEOF
6115 #define uint16_t $ac_cv_c_uint16_t
6116 _ACEOF
6118 esac
6120 ac_fn_c_find_uintX_t "$LINENO" "32" "ac_cv_c_uint32_t"
6121 case $ac_cv_c_uint32_t in #(
6122 no|yes) ;; #(
6125 $as_echo "#define _UINT32_T 1" >>confdefs.h
6128 cat >>confdefs.h <<_ACEOF
6129 #define uint32_t $ac_cv_c_uint32_t
6130 _ACEOF
6132 esac
6134 ac_fn_c_find_uintX_t "$LINENO" "64" "ac_cv_c_uint64_t"
6135 case $ac_cv_c_uint64_t in #(
6136 no|yes) ;; #(
6139 $as_echo "#define _UINT64_T 1" >>confdefs.h
6142 cat >>confdefs.h <<_ACEOF
6143 #define uint64_t $ac_cv_c_uint64_t
6144 _ACEOF
6146 esac
6149 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for unsigned long long int" >&5
6150 $as_echo_n "checking for unsigned long long int... " >&6; }
6151 if test "${ac_cv_type_unsigned_long_long_int+set}" = set; then :
6152 $as_echo_n "(cached) " >&6
6153 else
6154 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6155 /* end confdefs.h. */
6157 /* For now, do not test the preprocessor; as of 2007 there are too many
6158 implementations with broken preprocessors. Perhaps this can
6159 be revisited in 2012. In the meantime, code should not expect
6160 #if to work with literals wider than 32 bits. */
6161 /* Test literals. */
6162 long long int ll = 9223372036854775807ll;
6163 long long int nll = -9223372036854775807LL;
6164 unsigned long long int ull = 18446744073709551615ULL;
6165 /* Test constant expressions. */
6166 typedef int a[((-9223372036854775807LL < 0 && 0 < 9223372036854775807ll)
6167 ? 1 : -1)];
6168 typedef int b[(18446744073709551615ULL <= (unsigned long long int) -1
6169 ? 1 : -1)];
6170 int i = 63;
6172 main ()
6174 /* Test availability of runtime routines for shift and division. */
6175 long long int llmax = 9223372036854775807ll;
6176 unsigned long long int ullmax = 18446744073709551615ull;
6177 return ((ll << 63) | (ll >> 63) | (ll < i) | (ll > i)
6178 | (llmax / ll) | (llmax % ll)
6179 | (ull << 63) | (ull >> 63) | (ull << i) | (ull >> i)
6180 | (ullmax / ull) | (ullmax % ull));
6182 return 0;
6185 _ACEOF
6186 if ac_fn_c_try_link "$LINENO"; then :
6187 ac_cv_type_unsigned_long_long_int=yes
6188 else
6189 ac_cv_type_unsigned_long_long_int=no
6191 rm -f core conftest.err conftest.$ac_objext \
6192 conftest$ac_exeext conftest.$ac_ext
6194 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_unsigned_long_long_int" >&5
6195 $as_echo "$ac_cv_type_unsigned_long_long_int" >&6; }
6196 if test $ac_cv_type_unsigned_long_long_int = yes; then
6198 $as_echo "#define HAVE_UNSIGNED_LONG_LONG_INT 1" >>confdefs.h
6204 ac_fn_c_check_type "$LINENO" "uintmax_t" "ac_cv_type_uintmax_t" "$ac_includes_default"
6205 if test "x$ac_cv_type_uintmax_t" = x""yes; then :
6207 $as_echo "#define HAVE_UINTMAX_T 1" >>confdefs.h
6209 else
6210 test $ac_cv_type_unsigned_long_long_int = yes \
6211 && ac_type='unsigned long long int' \
6212 || ac_type='unsigned long int'
6214 cat >>confdefs.h <<_ACEOF
6215 #define uintmax_t $ac_type
6216 _ACEOF
6222 ac_fn_c_check_type "$LINENO" "uintptr_t" "ac_cv_type_uintptr_t" "$ac_includes_default"
6223 if test "x$ac_cv_type_uintptr_t" = x""yes; then :
6225 $as_echo "#define HAVE_UINTPTR_T 1" >>confdefs.h
6227 else
6228 for ac_type in 'unsigned int' 'unsigned long int' \
6229 'unsigned long long int'; do
6230 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6231 /* end confdefs.h. */
6232 $ac_includes_default
6234 main ()
6236 static int test_array [1 - 2 * !(sizeof (void *) <= sizeof ($ac_type))];
6237 test_array [0] = 0
6240 return 0;
6242 _ACEOF
6243 if ac_fn_c_try_compile "$LINENO"; then :
6245 cat >>confdefs.h <<_ACEOF
6246 #define uintptr_t $ac_type
6247 _ACEOF
6249 ac_type=
6251 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6252 test -z "$ac_type" && break
6253 done
6270 # ---------------------
6271 # Warnings and checking
6272 # ---------------------
6274 # Check $CC warning features (if it's GCC).
6275 # We want to use -pedantic, but we don't want warnings about
6276 # * 'long long'
6277 # * variadic macros
6278 # * overlong strings
6279 # * C++11 narrowing conversions in { }
6280 # So, we only use -pedantic if we can disable those warnings.
6282 # In stage 1, disable -Wformat warnings from old GCCs about new % codes
6283 # Check whether --enable-build-format-warnings was given.
6284 if test "${enable_build_format_warnings+set}" = set; then :
6285 enableval=$enable_build_format_warnings;
6286 else
6287 enable_build_format_warnings=yes
6290 if test $enable_build_format_warnings = no; then :
6291 wf_opt=-Wno-format
6292 else
6293 wf_opt=
6295 loose_warn=
6296 save_CFLAGS="$CFLAGS"
6297 for real_option in -W -Wall -Wno-narrowing -Wwrite-strings -Wcast-qual $wf_opt; do
6298 # Do the check with the no- prefix removed since gcc silently
6299 # accepts any -Wno-* option on purpose
6300 case $real_option in
6301 -Wno-*) option=-W`expr x$real_option : 'x-Wno-\(.*\)'` ;;
6302 *) option=$real_option ;;
6303 esac
6304 as_acx_Woption=`$as_echo "acx_cv_prog_cc_warning_$option" | $as_tr_sh`
6306 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC supports $option" >&5
6307 $as_echo_n "checking whether $CC supports $option... " >&6; }
6308 if { as_var=$as_acx_Woption; eval "test \"\${$as_var+set}\" = set"; }; then :
6309 $as_echo_n "(cached) " >&6
6310 else
6311 CFLAGS="$option"
6312 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6313 /* end confdefs.h. */
6316 main ()
6320 return 0;
6322 _ACEOF
6323 if ac_fn_c_try_compile "$LINENO"; then :
6324 eval "$as_acx_Woption=yes"
6325 else
6326 eval "$as_acx_Woption=no"
6328 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6331 eval ac_res=\$$as_acx_Woption
6332 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
6333 $as_echo "$ac_res" >&6; }
6334 if test `eval 'as_val=${'$as_acx_Woption'};$as_echo "$as_val"'` = yes; then :
6335 loose_warn="$loose_warn${loose_warn:+ }$real_option"
6337 done
6338 CFLAGS="$save_CFLAGS"
6340 c_loose_warn=
6341 save_CFLAGS="$CFLAGS"
6342 for real_option in -Wstrict-prototypes -Wmissing-prototypes; do
6343 # Do the check with the no- prefix removed since gcc silently
6344 # accepts any -Wno-* option on purpose
6345 case $real_option in
6346 -Wno-*) option=-W`expr x$real_option : 'x-Wno-\(.*\)'` ;;
6347 *) option=$real_option ;;
6348 esac
6349 as_acx_Woption=`$as_echo "acx_cv_prog_cc_warning_$option" | $as_tr_sh`
6351 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC supports $option" >&5
6352 $as_echo_n "checking whether $CC supports $option... " >&6; }
6353 if { as_var=$as_acx_Woption; eval "test \"\${$as_var+set}\" = set"; }; then :
6354 $as_echo_n "(cached) " >&6
6355 else
6356 CFLAGS="$option"
6357 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6358 /* end confdefs.h. */
6361 main ()
6365 return 0;
6367 _ACEOF
6368 if ac_fn_c_try_compile "$LINENO"; then :
6369 eval "$as_acx_Woption=yes"
6370 else
6371 eval "$as_acx_Woption=no"
6373 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6376 eval ac_res=\$$as_acx_Woption
6377 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
6378 $as_echo "$ac_res" >&6; }
6379 if test `eval 'as_val=${'$as_acx_Woption'};$as_echo "$as_val"'` = yes; then :
6380 c_loose_warn="$c_loose_warn${c_loose_warn:+ }$real_option"
6382 done
6383 CFLAGS="$save_CFLAGS"
6385 strict_warn=
6386 save_CFLAGS="$CFLAGS"
6387 for real_option in -Wmissing-format-attribute; do
6388 # Do the check with the no- prefix removed since gcc silently
6389 # accepts any -Wno-* option on purpose
6390 case $real_option in
6391 -Wno-*) option=-W`expr x$real_option : 'x-Wno-\(.*\)'` ;;
6392 *) option=$real_option ;;
6393 esac
6394 as_acx_Woption=`$as_echo "acx_cv_prog_cc_warning_$option" | $as_tr_sh`
6396 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC supports $option" >&5
6397 $as_echo_n "checking whether $CC supports $option... " >&6; }
6398 if { as_var=$as_acx_Woption; eval "test \"\${$as_var+set}\" = set"; }; then :
6399 $as_echo_n "(cached) " >&6
6400 else
6401 CFLAGS="$option"
6402 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6403 /* end confdefs.h. */
6406 main ()
6410 return 0;
6412 _ACEOF
6413 if ac_fn_c_try_compile "$LINENO"; then :
6414 eval "$as_acx_Woption=yes"
6415 else
6416 eval "$as_acx_Woption=no"
6418 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6421 eval ac_res=\$$as_acx_Woption
6422 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
6423 $as_echo "$ac_res" >&6; }
6424 if test `eval 'as_val=${'$as_acx_Woption'};$as_echo "$as_val"'` = yes; then :
6425 strict_warn="$strict_warn${strict_warn:+ }$real_option"
6427 done
6428 CFLAGS="$save_CFLAGS"
6430 save_CFLAGS="$CFLAGS"
6431 for real_option in -Woverloaded-virtual; do
6432 # Do the check with the no- prefix removed since gcc silently
6433 # accepts any -Wno-* option on purpose
6434 case $real_option in
6435 -Wno-*) option=-W`expr x$real_option : 'x-Wno-\(.*\)'` ;;
6436 *) option=$real_option ;;
6437 esac
6438 as_acx_Woption=`$as_echo "acx_cv_prog_cc_warning_$option" | $as_tr_sh`
6440 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC supports $option" >&5
6441 $as_echo_n "checking whether $CC supports $option... " >&6; }
6442 if { as_var=$as_acx_Woption; eval "test \"\${$as_var+set}\" = set"; }; then :
6443 $as_echo_n "(cached) " >&6
6444 else
6445 CFLAGS="$option"
6446 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6447 /* end confdefs.h. */
6450 main ()
6454 return 0;
6456 _ACEOF
6457 if ac_fn_c_try_compile "$LINENO"; then :
6458 eval "$as_acx_Woption=yes"
6459 else
6460 eval "$as_acx_Woption=no"
6462 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6465 eval ac_res=\$$as_acx_Woption
6466 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
6467 $as_echo "$ac_res" >&6; }
6468 if test `eval 'as_val=${'$as_acx_Woption'};$as_echo "$as_val"'` = yes; then :
6469 strict_warn="$strict_warn${strict_warn:+ }$real_option"
6471 done
6472 CFLAGS="$save_CFLAGS"
6474 c_strict_warn=
6475 save_CFLAGS="$CFLAGS"
6476 for real_option in -Wold-style-definition -Wc++-compat; do
6477 # Do the check with the no- prefix removed since gcc silently
6478 # accepts any -Wno-* option on purpose
6479 case $real_option in
6480 -Wno-*) option=-W`expr x$real_option : 'x-Wno-\(.*\)'` ;;
6481 *) option=$real_option ;;
6482 esac
6483 as_acx_Woption=`$as_echo "acx_cv_prog_cc_warning_$option" | $as_tr_sh`
6485 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC supports $option" >&5
6486 $as_echo_n "checking whether $CC supports $option... " >&6; }
6487 if { as_var=$as_acx_Woption; eval "test \"\${$as_var+set}\" = set"; }; then :
6488 $as_echo_n "(cached) " >&6
6489 else
6490 CFLAGS="$option"
6491 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6492 /* end confdefs.h. */
6495 main ()
6499 return 0;
6501 _ACEOF
6502 if ac_fn_c_try_compile "$LINENO"; then :
6503 eval "$as_acx_Woption=yes"
6504 else
6505 eval "$as_acx_Woption=no"
6507 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6510 eval ac_res=\$$as_acx_Woption
6511 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
6512 $as_echo "$ac_res" >&6; }
6513 if test `eval 'as_val=${'$as_acx_Woption'};$as_echo "$as_val"'` = yes; then :
6514 c_strict_warn="$c_strict_warn${c_strict_warn:+ }$real_option"
6516 done
6517 CFLAGS="$save_CFLAGS"
6519 # Do the check with the no- prefix removed from the warning options
6520 # since gcc silently accepts any -Wno-* option on purpose
6521 if test "$GCC" = yes; then :
6522 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC supports -pedantic -Wlong-long -Wvariadic-macros -Woverlength-strings" >&5
6523 $as_echo_n "checking whether $CC supports -pedantic -Wlong-long -Wvariadic-macros -Woverlength-strings... " >&6; }
6524 if test "${acx_cv_prog_cc_pedantic__Wlong_long__Wvariadic_macros__Woverlength_strings+set}" = set; then :
6525 $as_echo_n "(cached) " >&6
6526 else
6527 save_CFLAGS="$CFLAGS"
6528 CFLAGS="-pedantic -Wlong-long -Wvariadic-macros -Woverlength-strings"
6529 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6530 /* end confdefs.h. */
6533 main ()
6537 return 0;
6539 _ACEOF
6540 if ac_fn_c_try_compile "$LINENO"; then :
6541 acx_cv_prog_cc_pedantic__Wlong_long__Wvariadic_macros__Woverlength_strings=yes
6542 else
6543 acx_cv_prog_cc_pedantic__Wlong_long__Wvariadic_macros__Woverlength_strings=no
6545 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6546 CFLAGS="$save_CFLAGS"
6548 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $acx_cv_prog_cc_pedantic__Wlong_long__Wvariadic_macros__Woverlength_strings" >&5
6549 $as_echo "$acx_cv_prog_cc_pedantic__Wlong_long__Wvariadic_macros__Woverlength_strings" >&6; }
6550 if test $acx_cv_prog_cc_pedantic__Wlong_long__Wvariadic_macros__Woverlength_strings = yes; then :
6551 strict_warn="$strict_warn${strict_warn:+ }-pedantic -Wno-long-long -Wno-variadic-macros -Wno-overlength-strings"
6556 # Check whether --enable-werror-always was given.
6557 if test "${enable_werror_always+set}" = set; then :
6558 enableval=$enable_werror_always;
6559 else
6560 enable_werror_always=no
6563 if test $enable_werror_always = yes; then :
6564 strict_warn="$strict_warn${strict_warn:+ }-Werror"
6569 # The above macros do nothing if the compiler is not GCC. However, the
6570 # Makefile has more goo to add other flags, so these variables are used
6571 # to enable warnings only for GCC.
6572 warn_cflags=
6573 warn_cxxflags=
6574 if test "x$GCC" = "xyes"; then
6575 warn_cflags='$(GCC_WARN_CFLAGS)'
6576 warn_cxxflags='$(GCC_WARN_CXXFLAGS)'
6581 # Disable exceptions and RTTI if building with g++
6582 noexception_flags=
6583 save_CFLAGS="$CFLAGS"
6584 for real_option in -fno-exceptions -fno-rtti -fasynchronous-unwind-tables; do
6585 # Do the check with the no- prefix removed since gcc silently
6586 # accepts any -Wno-* option on purpose
6587 case $real_option in
6588 -Wno-*) option=-W`expr x$real_option : 'x-Wno-\(.*\)'` ;;
6589 *) option=$real_option ;;
6590 esac
6591 as_acx_Woption=`$as_echo "acx_cv_prog_cc_warning_$option" | $as_tr_sh`
6593 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC supports $option" >&5
6594 $as_echo_n "checking whether $CC supports $option... " >&6; }
6595 if { as_var=$as_acx_Woption; eval "test \"\${$as_var+set}\" = set"; }; then :
6596 $as_echo_n "(cached) " >&6
6597 else
6598 CFLAGS="$option"
6599 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6600 /* end confdefs.h. */
6603 main ()
6607 return 0;
6609 _ACEOF
6610 if ac_fn_c_try_compile "$LINENO"; then :
6611 eval "$as_acx_Woption=yes"
6612 else
6613 eval "$as_acx_Woption=no"
6615 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6618 eval ac_res=\$$as_acx_Woption
6619 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
6620 $as_echo "$ac_res" >&6; }
6621 if test `eval 'as_val=${'$as_acx_Woption'};$as_echo "$as_val"'` = yes; then :
6622 noexception_flags="$noexception_flags${noexception_flags:+ }$real_option"
6624 done
6625 CFLAGS="$save_CFLAGS"
6628 # Enable expensive internal checks
6629 is_release=
6630 if test x"`cat $srcdir/DEV-PHASE`" != xexperimental; then
6631 is_release=yes
6634 # Check whether --enable-checking was given.
6635 if test "${enable_checking+set}" = set; then :
6636 enableval=$enable_checking; ac_checking_flags="${enableval}"
6637 else
6639 # Determine the default checks.
6640 if test x$is_release = x ; then
6641 ac_checking_flags=yes
6642 else
6643 ac_checking_flags=release
6647 IFS="${IFS= }"; ac_save_IFS="$IFS"; IFS="$IFS,"
6648 for check in release $ac_checking_flags
6650 case $check in
6651 # these set all the flags to specific states
6652 yes) ac_assert_checking=1 ; ac_checking=1 ; ac_df_checking= ;
6653 ac_fold_checking= ; ac_gc_checking=1 ;
6654 ac_gc_always_collect= ; ac_gimple_checking=1 ; ac_rtl_checking= ;
6655 ac_rtlflag_checking=1 ; ac_runtime_checking=1 ;
6656 ac_tree_checking=1 ; ac_valgrind_checking= ;
6657 ac_types_checking=1 ;;
6658 no|none) ac_assert_checking= ; ac_checking= ; ac_df_checking= ;
6659 ac_fold_checking= ; ac_gc_checking= ;
6660 ac_gc_always_collect= ; ac_gimple_checking= ; ac_rtl_checking= ;
6661 ac_rtlflag_checking= ; ac_runtime_checking= ;
6662 ac_tree_checking= ; ac_valgrind_checking= ;
6663 ac_types_checking= ;;
6664 all) ac_assert_checking=1 ; ac_checking=1 ; ac_df_checking=1 ;
6665 ac_fold_checking=1 ; ac_gc_checking=1 ;
6666 ac_gc_always_collect=1 ; ac_gimple_checking=1 ; ac_rtl_checking=1 ;
6667 ac_rtlflag_checking=1 ; ac_runtime_checking=1 ;
6668 ac_tree_checking=1 ; ac_valgrind_checking= ;
6669 ac_types_checking=1 ;;
6670 release) ac_assert_checking=1 ; ac_checking= ; ac_df_checking= ;
6671 ac_fold_checking= ; ac_gc_checking= ;
6672 ac_gc_always_collect= ; ac_gimple_checking= ; ac_rtl_checking= ;
6673 ac_rtlflag_checking= ; ac_runtime_checking=1 ;
6674 ac_tree_checking= ; ac_valgrind_checking= ;
6675 ac_types_checking= ;;
6676 # these enable particular checks
6677 assert) ac_assert_checking=1 ;;
6678 df) ac_df_checking=1 ;;
6679 fold) ac_fold_checking=1 ;;
6680 gc) ac_gc_checking=1 ;;
6681 gcac) ac_gc_always_collect=1 ;;
6682 gimple) ac_gimple_checking=1 ;;
6683 misc) ac_checking=1 ;;
6684 rtl) ac_rtl_checking=1 ;;
6685 rtlflag) ac_rtlflag_checking=1 ;;
6686 runtime) ac_runtime_checking=1 ;;
6687 tree) ac_tree_checking=1 ;;
6688 types) ac_types_checking=1 ;;
6689 valgrind) ac_valgrind_checking=1 ;;
6690 *) as_fn_error "unknown check category $check" "$LINENO" 5 ;;
6691 esac
6692 done
6693 IFS="$ac_save_IFS"
6695 nocommon_flag=""
6696 if test x$ac_checking != x ; then
6698 $as_echo "#define ENABLE_CHECKING 1" >>confdefs.h
6700 nocommon_flag=-fno-common
6703 if test x$ac_df_checking != x ; then
6705 $as_echo "#define ENABLE_DF_CHECKING 1" >>confdefs.h
6708 if test x$ac_assert_checking != x ; then
6710 $as_echo "#define ENABLE_ASSERT_CHECKING 1" >>confdefs.h
6713 if test x$ac_gimple_checking != x ; then
6715 $as_echo "#define ENABLE_GIMPLE_CHECKING 1" >>confdefs.h
6719 if test x$ac_runtime_checking != x ; then
6721 $as_echo "#define ENABLE_RUNTIME_CHECKING 1" >>confdefs.h
6724 if test x$ac_tree_checking != x ; then
6726 $as_echo "#define ENABLE_TREE_CHECKING 1" >>confdefs.h
6728 TREEBROWSER=tree-browser.o
6729 TREECHECKING=yes
6731 if test x$ac_types_checking != x ; then
6733 $as_echo "#define ENABLE_TYPES_CHECKING 1" >>confdefs.h
6738 if test x$ac_rtl_checking != x ; then
6740 $as_echo "#define ENABLE_RTL_CHECKING 1" >>confdefs.h
6743 if test x$ac_rtlflag_checking != x ; then
6745 $as_echo "#define ENABLE_RTL_FLAG_CHECKING 1" >>confdefs.h
6748 if test x$ac_gc_checking != x ; then
6750 $as_echo "#define ENABLE_GC_CHECKING 1" >>confdefs.h
6753 if test x$ac_gc_always_collect != x ; then
6755 $as_echo "#define ENABLE_GC_ALWAYS_COLLECT 1" >>confdefs.h
6758 if test x$ac_fold_checking != x ; then
6760 $as_echo "#define ENABLE_FOLD_CHECKING 1" >>confdefs.h
6763 valgrind_path_defines=
6764 valgrind_command=
6766 ac_fn_c_check_header_mongrel "$LINENO" "valgrind.h" "ac_cv_header_valgrind_h" "$ac_includes_default"
6767 if test "x$ac_cv_header_valgrind_h" = x""yes; then :
6768 have_valgrind_h=yes
6769 else
6770 have_valgrind_h=no
6775 if test x$ac_valgrind_checking != x ; then
6776 # It is certainly possible that there's valgrind but no valgrind.h.
6777 # GCC relies on making annotations so we must have both.
6778 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for VALGRIND_DISCARD in <valgrind/memcheck.h>" >&5
6779 $as_echo_n "checking for VALGRIND_DISCARD in <valgrind/memcheck.h>... " >&6; }
6780 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6781 /* end confdefs.h. */
6782 #include <valgrind/memcheck.h>
6783 #ifndef VALGRIND_DISCARD
6784 #error VALGRIND_DISCARD not defined
6785 #endif
6786 _ACEOF
6787 if ac_fn_c_try_cpp "$LINENO"; then :
6788 gcc_cv_header_valgrind_memcheck_h=yes
6789 else
6790 gcc_cv_header_valgrind_memcheck_h=no
6792 rm -f conftest.err conftest.$ac_ext
6793 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_header_valgrind_memcheck_h" >&5
6794 $as_echo "$gcc_cv_header_valgrind_memcheck_h" >&6; }
6795 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for VALGRIND_DISCARD in <memcheck.h>" >&5
6796 $as_echo_n "checking for VALGRIND_DISCARD in <memcheck.h>... " >&6; }
6797 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6798 /* end confdefs.h. */
6799 #include <memcheck.h>
6800 #ifndef VALGRIND_DISCARD
6801 #error VALGRIND_DISCARD not defined
6802 #endif
6803 _ACEOF
6804 if ac_fn_c_try_cpp "$LINENO"; then :
6805 gcc_cv_header_memcheck_h=yes
6806 else
6807 gcc_cv_header_memcheck_h=no
6809 rm -f conftest.err conftest.$ac_ext
6810 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_header_memcheck_h" >&5
6811 $as_echo "$gcc_cv_header_memcheck_h" >&6; }
6813 # Prepare PATH_SEPARATOR.
6814 # The user is always right.
6815 if test "${PATH_SEPARATOR+set}" != set; then
6816 echo "#! /bin/sh" >conf$$.sh
6817 echo "exit 0" >>conf$$.sh
6818 chmod +x conf$$.sh
6819 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
6820 PATH_SEPARATOR=';'
6821 else
6822 PATH_SEPARATOR=:
6824 rm -f conf$$.sh
6827 # Find out how to test for executable files. Don't use a zero-byte file,
6828 # as systems may use methods other than mode bits to determine executability.
6829 cat >conf$$.file <<_ASEOF
6830 #! /bin/sh
6831 exit 0
6832 _ASEOF
6833 chmod +x conf$$.file
6834 if test -x conf$$.file >/dev/null 2>&1; then
6835 ac_executable_p="test -x"
6836 else
6837 ac_executable_p="test -f"
6839 rm -f conf$$.file
6841 # Extract the first word of "valgrind", so it can be a program name with args.
6842 set dummy valgrind; ac_word=$2
6843 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6844 $as_echo_n "checking for $ac_word... " >&6; }
6845 if test "${ac_cv_path_valgrind_path+set}" = set; then :
6846 $as_echo_n "(cached) " >&6
6847 else
6848 case "$valgrind_path" in
6849 [\\/]* | ?:[\\/]*)
6850 ac_cv_path_valgrind_path="$valgrind_path" # Let the user override the test with a path.
6853 ac_save_IFS="$IFS"; IFS=$PATH_SEPARATOR
6854 for ac_dir in $PATH; do
6855 IFS="$ac_save_IFS"
6856 test -z "$ac_dir" && ac_dir=.
6857 for ac_exec_ext in '' $ac_executable_extensions; do
6858 if $ac_executable_p "$ac_dir/$ac_word$ac_exec_ext"; then
6859 if $ac_dir/$ac_word --version | grep valgrind- >/dev/null 2>&1; then
6860 ac_cv_path_valgrind_path="$ac_dir/$ac_word$ac_exec_ext"
6861 break 2
6864 done
6865 done
6866 IFS="$ac_save_IFS"
6868 esac
6870 valgrind_path="$ac_cv_path_valgrind_path"
6871 if test -n "$valgrind_path"; then
6872 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $valgrind_path" >&5
6873 $as_echo "$valgrind_path" >&6; }
6874 else
6875 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6876 $as_echo "no" >&6; }
6879 if test "x$valgrind_path" = "x" \
6880 || (test $have_valgrind_h = no \
6881 && test $gcc_cv_header_memcheck_h = no \
6882 && test $gcc_cv_header_valgrind_memcheck_h = no); then
6883 as_fn_error "*** Can't find both valgrind and valgrind/memcheck.h, memcheck.h or valgrind.h" "$LINENO" 5
6885 valgrind_path_defines=-DVALGRIND_PATH='\"'$valgrind_path'\"'
6886 valgrind_command="$valgrind_path -q"
6888 $as_echo "#define ENABLE_VALGRIND_CHECKING 1" >>confdefs.h
6890 if test $gcc_cv_header_valgrind_memcheck_h = yes; then
6892 $as_echo "#define HAVE_VALGRIND_MEMCHECK_H 1" >>confdefs.h
6895 if test $gcc_cv_header_memcheck_h = yes; then
6897 $as_echo "#define HAVE_MEMCHECK_H 1" >>confdefs.h
6904 # Enable code coverage collection
6905 # Check whether --enable-coverage was given.
6906 if test "${enable_coverage+set}" = set; then :
6907 enableval=$enable_coverage; case "${enableval}" in
6908 yes|noopt)
6909 coverage_flags="-fprofile-arcs -ftest-coverage -frandom-seed=\$@ -O0"
6911 opt)
6912 coverage_flags="-fprofile-arcs -ftest-coverage -frandom-seed=\$@ -O2"
6915 # a.k.a. --disable-coverage
6916 coverage_flags=""
6919 as_fn_error "unknown coverage setting $enableval" "$LINENO" 5
6921 esac
6922 else
6923 coverage_flags=""
6928 # Check whether --enable-gather-detailed-mem-stats was given.
6929 if test "${enable_gather_detailed_mem_stats+set}" = set; then :
6930 enableval=$enable_gather_detailed_mem_stats;
6931 else
6932 enable_gather_detailed_mem_stats=no
6935 gather_stats=`if test $enable_gather_detailed_mem_stats != no; then echo 1; else echo 0; fi`
6937 cat >>confdefs.h <<_ACEOF
6938 #define GATHER_STATISTICS $gather_stats
6939 _ACEOF
6942 # -------------------------------
6943 # Miscenalleous configure options
6944 # -------------------------------
6946 # With stabs
6948 # Check whether --with-stabs was given.
6949 if test "${with_stabs+set}" = set; then :
6950 withval=$with_stabs; stabs="$with_stabs"
6951 else
6952 stabs=no
6956 # Determine whether or not multilibs are enabled.
6957 # Check whether --enable-multilib was given.
6958 if test "${enable_multilib+set}" = set; then :
6959 enableval=$enable_multilib;
6960 else
6961 enable_multilib=yes
6966 # Determine whether or not multiarch is enabled.
6967 # Check whether --enable-multiarch was given.
6968 if test "${enable_multiarch+set}" = set; then :
6969 enableval=$enable_multiarch; case "${enableval}" in
6970 yes|no|auto) enable_multiarch=$enableval;;
6971 *) as_fn_error "bad value ${enableval} given for --enable-multiarch option" "$LINENO" 5 ;;
6972 esac
6973 else
6974 enable_multiarch=auto
6977 if test x${enable_multiarch} = xauto; then
6978 if test x${with_native_system_header_dir} != x; then
6979 ma_msg_suffix=", disabled auto check (configured with --native-system-header-dir)"
6980 enable_multiarch=no
6982 if test x$host != x$target && test "x$with_sysroot" = x; then
6983 ma_msg_suffix=", disabled auto check (cross build configured without --with-sysroot)"
6984 enable_multiarch=no
6987 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for multiarch configuration" >&5
6988 $as_echo_n "checking for multiarch configuration... " >&6; }
6990 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_multiarch$ma_msg_suffix" >&5
6991 $as_echo "$enable_multiarch$ma_msg_suffix" >&6; }
6993 # needed for setting the multiarch name for soft-float/hard-float ABIs
6997 # Enable __cxa_atexit for C++.
6998 # Check whether --enable-__cxa_atexit was given.
6999 if test "${enable___cxa_atexit+set}" = set; then :
7000 enableval=$enable___cxa_atexit;
7004 # Enable C extension for decimal float if target supports it.
7006 # Check whether --enable-decimal-float was given.
7007 if test "${enable_decimal_float+set}" = set; then :
7008 enableval=$enable_decimal_float;
7009 case $enable_decimal_float in
7010 yes | no | bid | dpd) default_decimal_float=$enable_decimal_float ;;
7011 *) as_fn_error "'$enable_decimal_float' is an invalid value for --enable-decimal-float.
7012 Valid choices are 'yes', 'bid', 'dpd', and 'no'." "$LINENO" 5 ;;
7013 esac
7015 else
7017 case $target in
7018 powerpc*-*-linux* | i?86*-*-linux* | x86_64*-*-linux* | s390*-*-linux* | \
7019 i?86*-*-gnu* | \
7020 i?86*-*-mingw* | x86_64*-*-mingw* | \
7021 i?86*-*-cygwin* | x86_64*-*-cygwin*)
7022 enable_decimal_float=yes
7025 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: decimal float is not supported for this target, ignored" >&5
7026 $as_echo "$as_me: WARNING: decimal float is not supported for this target, ignored" >&2;}
7027 enable_decimal_float=no
7029 esac
7034 # x86's use BID format instead of DPD
7035 case x$enable_decimal_float in
7036 xyes)
7037 case $target in
7038 i?86*-*-* | x86_64*-*-*)
7039 enable_decimal_float=bid
7042 enable_decimal_float=dpd
7044 esac
7045 default_decimal_float=$enable_decimal_float
7047 xno)
7048 # ENABLE_DECIMAL_FLOAT is set to 0. But we have to have proper
7049 # dependency on libdecnumber.
7050 default_decimal_float=dpd
7052 esac
7057 dfp=`if test $enable_decimal_float != no; then echo 1; else echo 0; fi`
7059 cat >>confdefs.h <<_ACEOF
7060 #define ENABLE_DECIMAL_FLOAT $dfp
7061 _ACEOF
7064 # Use default_decimal_float for dependency.
7065 enable_decimal_float=$default_decimal_float
7067 bid=`if test $enable_decimal_float = bid; then echo 1; else echo 0; fi`
7069 cat >>confdefs.h <<_ACEOF
7070 #define ENABLE_DECIMAL_BID_FORMAT $bid
7071 _ACEOF
7074 # Enable C extension for fixed-point arithmetic.
7075 # Check whether --enable-fixed-point was given.
7076 if test "${enable_fixed_point+set}" = set; then :
7077 enableval=$enable_fixed_point;
7078 else
7080 case $target in
7081 arm*)
7082 enable_fixed_point=yes
7085 mips*-*-*)
7086 enable_fixed_point=yes
7089 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: fixed-point is not supported for this target, ignored" >&5
7090 $as_echo "$as_me: WARNING: fixed-point is not supported for this target, ignored" >&2;}
7091 enable_fixed_point=no
7093 esac
7099 fixedpoint=`if test $enable_fixed_point = yes; then echo 1; else echo 0; fi`
7101 cat >>confdefs.h <<_ACEOF
7102 #define ENABLE_FIXED_POINT $fixedpoint
7103 _ACEOF
7106 # Enable threads
7107 # Pass with no value to take the default
7108 # Pass with a value to specify a thread package
7109 # Check whether --enable-threads was given.
7110 if test "${enable_threads+set}" = set; then :
7111 enableval=$enable_threads;
7112 else
7113 enable_threads=''
7117 # Check whether --enable-tls was given.
7118 if test "${enable_tls+set}" = set; then :
7119 enableval=$enable_tls;
7120 case $enable_tls in
7121 yes | no) ;;
7122 *) as_fn_error "'$enable_tls' is an invalid value for --enable-tls.
7123 Valid choices are 'yes' and 'no'." "$LINENO" 5 ;;
7124 esac
7126 else
7127 enable_tls=''
7131 # Check whether --enable-objc-gc was given.
7132 if test "${enable_objc_gc+set}" = set; then :
7133 enableval=$enable_objc_gc; if test x$enable_objc_gc = xno; then
7134 objc_boehm_gc=''
7135 else
7136 objc_boehm_gc=1
7138 else
7139 objc_boehm_gc=''
7144 # Check whether --with-dwarf2 was given.
7145 if test "${with_dwarf2+set}" = set; then :
7146 withval=$with_dwarf2; dwarf2="$with_dwarf2"
7147 else
7148 dwarf2=no
7152 # Check whether --enable-shared was given.
7153 if test "${enable_shared+set}" = set; then :
7154 enableval=$enable_shared;
7155 case $enable_shared in
7156 yes | no) ;;
7158 enable_shared=no
7159 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:,"
7160 for pkg in $enableval; do
7161 if test "X$pkg" = "Xgcc" || test "X$pkg" = "Xlibgcc"; then
7162 enable_shared=yes
7164 done
7165 IFS="$ac_save_ifs"
7167 esac
7169 else
7170 enable_shared=yes
7176 # Check whether --with-native-system-header-dir was given.
7177 if test "${with_native_system_header_dir+set}" = set; then :
7178 withval=$with_native_system_header_dir;
7179 case ${with_native_system_header_dir} in
7180 yes|no) as_fn_error "bad value ${withval} given for --with-native-system-header-dir" "$LINENO" 5 ;;
7181 /* | [A-Za-z]:[\\/]*) ;;
7182 *) as_fn_error "--with-native-system-header-dir argument ${withval} must be an absolute directory" "$LINENO" 5 ;;
7183 esac
7184 configured_native_system_header_dir="${withval}"
7186 else
7187 configured_native_system_header_dir=
7192 # Check whether --with-build-sysroot was given.
7193 if test "${with_build_sysroot+set}" = set; then :
7194 withval=$with_build_sysroot; if test x"$withval" != x ; then
7195 SYSROOT_CFLAGS_FOR_TARGET="--sysroot=$withval"
7197 else
7198 SYSROOT_CFLAGS_FOR_TARGET=
7203 if test "x$prefix" = xNONE; then
7204 test_prefix=/usr/local
7205 else
7206 test_prefix=$prefix
7208 if test "x$exec_prefix" = xNONE; then
7209 test_exec_prefix=$test_prefix
7210 else
7211 test_exec_prefix=$exec_prefix
7215 # Check whether --with-sysroot was given.
7216 if test "${with_sysroot+set}" = set; then :
7217 withval=$with_sysroot;
7218 case ${with_sysroot} in
7219 yes) TARGET_SYSTEM_ROOT='${exec_prefix}/${target_noncanonical}/sys-root' ;;
7220 *) TARGET_SYSTEM_ROOT=$with_sysroot ;;
7221 esac
7223 TARGET_SYSTEM_ROOT_DEFINE='-DTARGET_SYSTEM_ROOT=\"$(TARGET_SYSTEM_ROOT)\"'
7224 CROSS_SYSTEM_HEADER_DIR='$(TARGET_SYSTEM_ROOT)$${sysroot_headers_suffix}$(NATIVE_SYSTEM_HEADER_DIR)'
7226 case ${TARGET_SYSTEM_ROOT} in
7227 "${test_prefix}"|"${test_prefix}/"*|\
7228 "${test_exec_prefix}"|"${test_exec_prefix}/"*|\
7229 '${prefix}'|'${prefix}/'*|\
7230 '${exec_prefix}'|'${exec_prefix}/'*)
7231 t="$TARGET_SYSTEM_ROOT_DEFINE -DTARGET_SYSTEM_ROOT_RELOCATABLE"
7232 TARGET_SYSTEM_ROOT_DEFINE="$t"
7234 esac
7236 else
7238 TARGET_SYSTEM_ROOT=
7239 TARGET_SYSTEM_ROOT_DEFINE=
7240 CROSS_SYSTEM_HEADER_DIR='$(gcc_tooldir)/sys-include'
7249 # Check whether --with-specs was given.
7250 if test "${with_specs+set}" = set; then :
7251 withval=$with_specs; CONFIGURE_SPECS=$withval
7252 else
7253 CONFIGURE_SPECS=
7261 # Check whether --with-pkgversion was given.
7262 if test "${with_pkgversion+set}" = set; then :
7263 withval=$with_pkgversion; case "$withval" in
7264 yes) as_fn_error "package version not specified" "$LINENO" 5 ;;
7265 no) PKGVERSION= ;;
7266 *) PKGVERSION="($withval) " ;;
7267 esac
7268 else
7269 PKGVERSION="(GCC) "
7277 # Check whether --with-bugurl was given.
7278 if test "${with_bugurl+set}" = set; then :
7279 withval=$with_bugurl; case "$withval" in
7280 yes) as_fn_error "bug URL not specified" "$LINENO" 5 ;;
7281 no) BUGURL=
7283 *) BUGURL="$withval"
7285 esac
7286 else
7287 BUGURL="http://gcc.gnu.org/bugs.html"
7291 case ${BUGURL} in
7293 REPORT_BUGS_TO=
7294 REPORT_BUGS_TEXI=
7297 REPORT_BUGS_TO="<$BUGURL>"
7298 REPORT_BUGS_TEXI=@uref{`echo "$BUGURL" | sed 's/@/@@/g'`}
7300 esac;
7305 # Sanity check enable_languages in case someone does not run the toplevel
7306 # configure # script.
7307 # Check whether --enable-languages was given.
7308 if test "${enable_languages+set}" = set; then :
7309 enableval=$enable_languages; case ,${enable_languages}, in
7310 ,,|,yes,)
7311 # go safe -- we cannot be much sure without the toplevel
7312 # configure's
7313 # analysis of which target libs are present and usable
7314 enable_languages=c
7316 *,all,*)
7317 as_fn_error "only the toplevel supports --enable-languages=all" "$LINENO" 5
7319 *,c,*)
7322 enable_languages=c,${enable_languages}
7324 esac
7325 else
7326 enable_languages=c
7331 # Check whether --with-multilib-list was given.
7332 if test "${with_multilib_list+set}" = set; then :
7333 withval=$with_multilib_list; :
7334 else
7335 with_multilib_list=default
7339 # -------------------------
7340 # Checks for other programs
7341 # -------------------------
7343 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
7344 $as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
7345 set x ${MAKE-make}
7346 ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
7347 if { as_var=ac_cv_prog_make_${ac_make}_set; eval "test \"\${$as_var+set}\" = set"; }; then :
7348 $as_echo_n "(cached) " >&6
7349 else
7350 cat >conftest.make <<\_ACEOF
7351 SHELL = /bin/sh
7352 all:
7353 @echo '@@@%%%=$(MAKE)=@@@%%%'
7354 _ACEOF
7355 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
7356 case `${MAKE-make} -f conftest.make 2>/dev/null` in
7357 *@@@%%%=?*=@@@%%%*)
7358 eval ac_cv_prog_make_${ac_make}_set=yes;;
7360 eval ac_cv_prog_make_${ac_make}_set=no;;
7361 esac
7362 rm -f conftest.make
7364 if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
7365 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
7366 $as_echo "yes" >&6; }
7367 SET_MAKE=
7368 else
7369 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7370 $as_echo "no" >&6; }
7371 SET_MAKE="MAKE=${MAKE-make}"
7375 # Find some useful tools
7376 for ac_prog in gawk mawk nawk awk
7378 # Extract the first word of "$ac_prog", so it can be a program name with args.
7379 set dummy $ac_prog; ac_word=$2
7380 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7381 $as_echo_n "checking for $ac_word... " >&6; }
7382 if test "${ac_cv_prog_AWK+set}" = set; then :
7383 $as_echo_n "(cached) " >&6
7384 else
7385 if test -n "$AWK"; then
7386 ac_cv_prog_AWK="$AWK" # Let the user override the test.
7387 else
7388 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7389 for as_dir in $PATH
7391 IFS=$as_save_IFS
7392 test -z "$as_dir" && as_dir=.
7393 for ac_exec_ext in '' $ac_executable_extensions; do
7394 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7395 ac_cv_prog_AWK="$ac_prog"
7396 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7397 break 2
7399 done
7400 done
7401 IFS=$as_save_IFS
7405 AWK=$ac_cv_prog_AWK
7406 if test -n "$AWK"; then
7407 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
7408 $as_echo "$AWK" >&6; }
7409 else
7410 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7411 $as_echo "no" >&6; }
7415 test -n "$AWK" && break
7416 done
7418 # We need awk to create options.c and options.h.
7419 # Bail out if it's missing.
7420 case ${AWK} in
7421 "") as_fn_error "can't build without awk, bailing out" "$LINENO" 5 ;;
7422 esac
7424 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5
7425 $as_echo_n "checking whether ln -s works... " >&6; }
7426 if test "${gcc_cv_prog_LN_S+set}" = set; then :
7427 $as_echo_n "(cached) " >&6
7428 else
7429 rm -f conftestdata_t
7430 echo >conftestdata_f
7431 if ln -s conftestdata_f conftestdata_t 2>/dev/null
7432 then
7433 gcc_cv_prog_LN_S="ln -s"
7434 else
7435 if ln conftestdata_f conftestdata_t 2>/dev/null
7436 then
7437 gcc_cv_prog_LN_S=ln
7438 else
7439 if cp -p conftestdata_f conftestdata_t 2>/dev/null
7440 then
7441 gcc_cv_prog_LN_S="cp -p"
7442 else
7443 gcc_cv_prog_LN_S=cp
7447 rm -f conftestdata_f conftestdata_t
7450 LN_S="$gcc_cv_prog_LN_S"
7451 if test "$gcc_cv_prog_LN_S" = "ln -s"; then
7452 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
7453 $as_echo "yes" >&6; }
7454 else
7455 if test "$gcc_cv_prog_LN_S" = "ln"; then
7456 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using ln" >&5
7457 $as_echo "no, using ln" >&6; }
7458 else
7459 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, and neither does ln, so using $gcc_cv_prog_LN_S" >&5
7460 $as_echo "no, and neither does ln, so using $gcc_cv_prog_LN_S" >&6; }
7464 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln works" >&5
7465 $as_echo_n "checking whether ln works... " >&6; }
7466 if test "${acx_cv_prog_LN+set}" = set; then :
7467 $as_echo_n "(cached) " >&6
7468 else
7469 rm -f conftestdata_t
7470 echo >conftestdata_f
7471 if ln conftestdata_f conftestdata_t 2>/dev/null
7472 then
7473 acx_cv_prog_LN=ln
7474 else
7475 acx_cv_prog_LN=no
7477 rm -f conftestdata_f conftestdata_t
7480 if test $acx_cv_prog_LN = no; then
7481 LN="$LN_S"
7482 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN" >&5
7483 $as_echo "no, using $LN" >&6; }
7484 else
7485 LN="$acx_cv_prog_LN"
7486 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
7487 $as_echo "yes" >&6; }
7490 if test -n "$ac_tool_prefix"; then
7491 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
7492 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
7493 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7494 $as_echo_n "checking for $ac_word... " >&6; }
7495 if test "${ac_cv_prog_RANLIB+set}" = set; then :
7496 $as_echo_n "(cached) " >&6
7497 else
7498 if test -n "$RANLIB"; then
7499 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
7500 else
7501 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7502 for as_dir in $PATH
7504 IFS=$as_save_IFS
7505 test -z "$as_dir" && as_dir=.
7506 for ac_exec_ext in '' $ac_executable_extensions; do
7507 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7508 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
7509 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7510 break 2
7512 done
7513 done
7514 IFS=$as_save_IFS
7518 RANLIB=$ac_cv_prog_RANLIB
7519 if test -n "$RANLIB"; then
7520 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
7521 $as_echo "$RANLIB" >&6; }
7522 else
7523 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7524 $as_echo "no" >&6; }
7529 if test -z "$ac_cv_prog_RANLIB"; then
7530 ac_ct_RANLIB=$RANLIB
7531 # Extract the first word of "ranlib", so it can be a program name with args.
7532 set dummy ranlib; ac_word=$2
7533 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7534 $as_echo_n "checking for $ac_word... " >&6; }
7535 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then :
7536 $as_echo_n "(cached) " >&6
7537 else
7538 if test -n "$ac_ct_RANLIB"; then
7539 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
7540 else
7541 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7542 for as_dir in $PATH
7544 IFS=$as_save_IFS
7545 test -z "$as_dir" && as_dir=.
7546 for ac_exec_ext in '' $ac_executable_extensions; do
7547 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7548 ac_cv_prog_ac_ct_RANLIB="ranlib"
7549 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7550 break 2
7552 done
7553 done
7554 IFS=$as_save_IFS
7558 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
7559 if test -n "$ac_ct_RANLIB"; then
7560 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
7561 $as_echo "$ac_ct_RANLIB" >&6; }
7562 else
7563 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7564 $as_echo "no" >&6; }
7567 if test "x$ac_ct_RANLIB" = x; then
7568 RANLIB=":"
7569 else
7570 case $cross_compiling:$ac_tool_warned in
7571 yes:)
7572 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7573 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7574 ac_tool_warned=yes ;;
7575 esac
7576 RANLIB=$ac_ct_RANLIB
7578 else
7579 RANLIB="$ac_cv_prog_RANLIB"
7582 ranlib_flags=""
7585 # Find a good install program. We prefer a C program (faster),
7586 # so one script is as good as another. But avoid the broken or
7587 # incompatible versions:
7588 # SysV /etc/install, /usr/sbin/install
7589 # SunOS /usr/etc/install
7590 # IRIX /sbin/install
7591 # AIX /bin/install
7592 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
7593 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
7594 # ./install, which can be erroneously created by make from ./install.sh.
7595 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD compatible install" >&5
7596 $as_echo_n "checking for a BSD compatible install... " >&6; }
7597 if test -z "$INSTALL"; then
7598 if test "${ac_cv_path_install+set}" = set; then :
7599 $as_echo_n "(cached) " >&6
7600 else
7601 IFS="${IFS= }"; ac_save_IFS="$IFS"; IFS="${IFS}:"
7602 for ac_dir in $PATH; do
7603 # Account for people who put trailing slashes in PATH elements.
7604 case "$ac_dir/" in
7605 /|./|.//|/etc/*|/usr/sbin/*|/usr/etc/*|/sbin/*|/usr/afsws/bin/*|/usr/ucb/*) ;;
7607 # OSF1 and SCO ODT 3.0 have their own names for install.
7608 for ac_prog in ginstall scoinst install; do
7609 if test -f $ac_dir/$ac_prog; then
7610 if test $ac_prog = install &&
7611 grep dspmsg $ac_dir/$ac_prog >/dev/null 2>&1; then
7612 # AIX install. It has an incompatible calling convention.
7613 # OSF/1 installbsd also uses dspmsg, but is usable.
7615 else
7616 ac_cv_path_install="$ac_dir/$ac_prog -c"
7617 break 2
7620 done
7622 esac
7623 done
7624 IFS="$ac_save_IFS"
7627 if test "${ac_cv_path_install+set}" = set; then
7628 INSTALL="$ac_cv_path_install"
7629 else
7630 # As a last resort, use the slow shell script. We don't cache a
7631 # path for INSTALL within a source directory, because that will
7632 # break other packages using the cache if that directory is
7633 # removed, or if the path is relative.
7634 INSTALL="$ac_install_sh"
7637 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
7638 $as_echo "$INSTALL" >&6; }
7640 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
7641 # It thinks the first close brace ends the variable substitution.
7642 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
7644 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
7647 # See if cmp has --ignore-initial.
7648 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for cmp's capabilities" >&5
7649 $as_echo_n "checking for cmp's capabilities... " >&6; }
7650 if test "${gcc_cv_prog_cmp_skip+set}" = set; then :
7651 $as_echo_n "(cached) " >&6
7652 else
7653 echo abfoo >t1
7654 echo cdfoo >t2
7655 gcc_cv_prog_cmp_skip=slowcompare
7656 if cmp --ignore-initial=2 t1 t2 > /dev/null 2>&1; then
7657 if cmp --ignore-initial=1 t1 t2 > /dev/null 2>&1; then
7659 else
7660 gcc_cv_prog_cmp_skip=gnucompare
7663 if test $gcc_cv_prog_cmp_skip = slowcompare ; then
7664 if cmp t1 t2 2 2 > /dev/null 2>&1; then
7665 if cmp t1 t2 1 1 > /dev/null 2>&1; then
7667 else
7668 gcc_cv_prog_cmp_skip=fastcompare
7672 rm t1 t2
7675 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_prog_cmp_skip" >&5
7676 $as_echo "$gcc_cv_prog_cmp_skip" >&6; }
7677 make_compare_target=$gcc_cv_prog_cmp_skip
7681 # See if we have the mktemp command.
7682 # Extract the first word of "mktemp", so it can be a program name with args.
7683 set dummy mktemp; ac_word=$2
7684 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7685 $as_echo_n "checking for $ac_word... " >&6; }
7686 if test "${ac_cv_prog_have_mktemp_command+set}" = set; then :
7687 $as_echo_n "(cached) " >&6
7688 else
7689 if test -n "$have_mktemp_command"; then
7690 ac_cv_prog_have_mktemp_command="$have_mktemp_command" # Let the user override the test.
7691 else
7692 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7693 for as_dir in $PATH
7695 IFS=$as_save_IFS
7696 test -z "$as_dir" && as_dir=.
7697 for ac_exec_ext in '' $ac_executable_extensions; do
7698 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7699 ac_cv_prog_have_mktemp_command="yes"
7700 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7701 break 2
7703 done
7704 done
7705 IFS=$as_save_IFS
7707 test -z "$ac_cv_prog_have_mktemp_command" && ac_cv_prog_have_mktemp_command="no"
7710 have_mktemp_command=$ac_cv_prog_have_mktemp_command
7711 if test -n "$have_mktemp_command"; then
7712 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_mktemp_command" >&5
7713 $as_echo "$have_mktemp_command" >&6; }
7714 else
7715 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7716 $as_echo "no" >&6; }
7721 # See if makeinfo has been installed and is modern enough
7722 # that we can use it.
7724 # Extract the first word of "makeinfo", so it can be a program name with args.
7725 set dummy makeinfo; ac_word=$2
7726 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7727 $as_echo_n "checking for $ac_word... " >&6; }
7728 if test "${ac_cv_prog_MAKEINFO+set}" = set; then :
7729 $as_echo_n "(cached) " >&6
7730 else
7731 if test -n "$MAKEINFO"; then
7732 ac_cv_prog_MAKEINFO="$MAKEINFO" # Let the user override the test.
7733 else
7734 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7735 for as_dir in $PATH
7737 IFS=$as_save_IFS
7738 test -z "$as_dir" && as_dir=.
7739 for ac_exec_ext in '' $ac_executable_extensions; do
7740 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7741 ac_cv_prog_MAKEINFO="makeinfo"
7742 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7743 break 2
7745 done
7746 done
7747 IFS=$as_save_IFS
7751 MAKEINFO=$ac_cv_prog_MAKEINFO
7752 if test -n "$MAKEINFO"; then
7753 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAKEINFO" >&5
7754 $as_echo "$MAKEINFO" >&6; }
7755 else
7756 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7757 $as_echo "no" >&6; }
7761 if test -n "$MAKEINFO"; then
7762 # Found it, now check the version.
7763 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for modern makeinfo" >&5
7764 $as_echo_n "checking for modern makeinfo... " >&6; }
7765 if test "${gcc_cv_prog_makeinfo_modern+set}" = set; then :
7766 $as_echo_n "(cached) " >&6
7767 else
7768 ac_prog_version=`eval $MAKEINFO --version 2>&1 |
7769 sed -n 's/^.*GNU texinfo.* \([0-9][0-9.]*\).*$/\1/p'`
7771 case $ac_prog_version in
7772 '') gcc_cv_prog_makeinfo_modern=no;;
7773 4.[7-9]*|4.[1-9][0-9]*|[5-9]*|[1-9][0-9]*) gcc_cv_prog_makeinfo_modern=yes;;
7774 *) gcc_cv_prog_makeinfo_modern=no;;
7775 esac
7778 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_prog_makeinfo_modern" >&5
7779 $as_echo "$gcc_cv_prog_makeinfo_modern" >&6; }
7780 else
7781 gcc_cv_prog_makeinfo_modern=no
7783 if test $gcc_cv_prog_makeinfo_modern = no; then
7784 MAKEINFO="${CONFIG_SHELL-/bin/sh} $ac_aux_dir/missing makeinfo"
7787 if test $gcc_cv_prog_makeinfo_modern = no; then
7788 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING:
7789 *** Makeinfo is missing or too old.
7790 *** Info documentation will not be built." >&5
7791 $as_echo "$as_me: WARNING:
7792 *** Makeinfo is missing or too old.
7793 *** Info documentation will not be built." >&2;}
7794 BUILD_INFO=
7795 else
7796 BUILD_INFO=info
7800 # Is pod2man recent enough to regenerate manpages?
7801 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for recent Pod::Man" >&5
7802 $as_echo_n "checking for recent Pod::Man... " >&6; }
7803 if (perl -e 'use 1.10 Pod::Man') >/dev/null 2>&1; then
7804 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
7805 $as_echo "yes" >&6; }
7806 GENERATED_MANPAGES=generated-manpages
7807 else
7808 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7809 $as_echo "no" >&6; }
7810 GENERATED_MANPAGES=
7814 MISSING="${CONFIG_SHELL-/bin/sh} $ac_aux_dir/missing"
7816 # How about lex?
7817 for ac_prog in flex
7819 # Extract the first word of "$ac_prog", so it can be a program name with args.
7820 set dummy $ac_prog; ac_word=$2
7821 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7822 $as_echo_n "checking for $ac_word... " >&6; }
7823 if test "${ac_cv_prog_FLEX+set}" = set; then :
7824 $as_echo_n "(cached) " >&6
7825 else
7826 if test -n "$FLEX"; then
7827 ac_cv_prog_FLEX="$FLEX" # Let the user override the test.
7828 else
7829 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7830 for as_dir in $PATH
7832 IFS=$as_save_IFS
7833 test -z "$as_dir" && as_dir=.
7834 for ac_exec_ext in '' $ac_executable_extensions; do
7835 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7836 ac_cv_prog_FLEX="$ac_prog"
7837 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7838 break 2
7840 done
7841 done
7842 IFS=$as_save_IFS
7846 FLEX=$ac_cv_prog_FLEX
7847 if test -n "$FLEX"; then
7848 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $FLEX" >&5
7849 $as_echo "$FLEX" >&6; }
7850 else
7851 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7852 $as_echo "no" >&6; }
7856 test -n "$FLEX" && break
7857 done
7858 test -n "$FLEX" || FLEX="$MISSING flex"
7861 # Bison?
7862 for ac_prog in bison
7864 # Extract the first word of "$ac_prog", so it can be a program name with args.
7865 set dummy $ac_prog; ac_word=$2
7866 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7867 $as_echo_n "checking for $ac_word... " >&6; }
7868 if test "${ac_cv_prog_BISON+set}" = set; then :
7869 $as_echo_n "(cached) " >&6
7870 else
7871 if test -n "$BISON"; then
7872 ac_cv_prog_BISON="$BISON" # Let the user override the test.
7873 else
7874 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7875 for as_dir in $PATH
7877 IFS=$as_save_IFS
7878 test -z "$as_dir" && as_dir=.
7879 for ac_exec_ext in '' $ac_executable_extensions; do
7880 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7881 ac_cv_prog_BISON="$ac_prog"
7882 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7883 break 2
7885 done
7886 done
7887 IFS=$as_save_IFS
7891 BISON=$ac_cv_prog_BISON
7892 if test -n "$BISON"; then
7893 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BISON" >&5
7894 $as_echo "$BISON" >&6; }
7895 else
7896 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7897 $as_echo "no" >&6; }
7901 test -n "$BISON" && break
7902 done
7903 test -n "$BISON" || BISON="$MISSING bison"
7906 # Binutils are not build modules, unlike bison/flex/makeinfo. So we
7907 # check for build == host before using them.
7909 # NM
7910 if test x${build} = x${host} && test -f $srcdir/../binutils/nm.c \
7911 && test -d ../binutils ; then
7912 NM='${objdir}/../binutils/nm-new'
7913 else
7914 # Extract the first word of "nm", so it can be a program name with args.
7915 set dummy nm; ac_word=$2
7916 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7917 $as_echo_n "checking for $ac_word... " >&6; }
7918 if test "${ac_cv_prog_NM+set}" = set; then :
7919 $as_echo_n "(cached) " >&6
7920 else
7921 if test -n "$NM"; then
7922 ac_cv_prog_NM="$NM" # Let the user override the test.
7923 else
7924 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7925 for as_dir in $PATH
7927 IFS=$as_save_IFS
7928 test -z "$as_dir" && as_dir=.
7929 for ac_exec_ext in '' $ac_executable_extensions; do
7930 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7931 ac_cv_prog_NM="nm"
7932 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7933 break 2
7935 done
7936 done
7937 IFS=$as_save_IFS
7939 test -z "$ac_cv_prog_NM" && ac_cv_prog_NM="${CONFIG_SHELL-/bin/sh} ${srcdir}/../missing nm"
7942 NM=$ac_cv_prog_NM
7943 if test -n "$NM"; then
7944 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NM" >&5
7945 $as_echo "$NM" >&6; }
7946 else
7947 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7948 $as_echo "no" >&6; }
7954 # AR
7955 if test x${build} = x${host} && test -f $srcdir/../binutils/ar.c \
7956 && test -d ../binutils ; then
7957 AR='${objdir}/../binutils/ar'
7958 else
7959 # Extract the first word of "ar", so it can be a program name with args.
7960 set dummy ar; ac_word=$2
7961 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7962 $as_echo_n "checking for $ac_word... " >&6; }
7963 if test "${ac_cv_prog_AR+set}" = set; then :
7964 $as_echo_n "(cached) " >&6
7965 else
7966 if test -n "$AR"; then
7967 ac_cv_prog_AR="$AR" # Let the user override the test.
7968 else
7969 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7970 for as_dir in $PATH
7972 IFS=$as_save_IFS
7973 test -z "$as_dir" && as_dir=.
7974 for ac_exec_ext in '' $ac_executable_extensions; do
7975 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7976 ac_cv_prog_AR="ar"
7977 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7978 break 2
7980 done
7981 done
7982 IFS=$as_save_IFS
7984 test -z "$ac_cv_prog_AR" && ac_cv_prog_AR="${CONFIG_SHELL-/bin/sh} ${srcdir}/../missing ar"
7987 AR=$ac_cv_prog_AR
7988 if test -n "$AR"; then
7989 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
7990 $as_echo "$AR" >&6; }
7991 else
7992 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7993 $as_echo "no" >&6; }
8000 # --------------------
8001 # Checks for C headers
8002 # --------------------
8004 # Need to reject headers which give warnings, so that the -Werror bootstrap
8005 # works later. *sigh* This needs to come before all header checks.
8007 ac_c_preproc_warn_flag=yes
8009 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
8010 $as_echo_n "checking for ANSI C header files... " >&6; }
8011 if test "${ac_cv_header_stdc+set}" = set; then :
8012 $as_echo_n "(cached) " >&6
8013 else
8014 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8015 /* end confdefs.h. */
8016 #include <stdlib.h>
8017 #include <stdarg.h>
8018 #include <string.h>
8019 #include <float.h>
8022 main ()
8026 return 0;
8028 _ACEOF
8029 if ac_fn_c_try_compile "$LINENO"; then :
8030 ac_cv_header_stdc=yes
8031 else
8032 ac_cv_header_stdc=no
8034 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8036 if test $ac_cv_header_stdc = yes; then
8037 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
8038 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8039 /* end confdefs.h. */
8040 #include <string.h>
8042 _ACEOF
8043 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
8044 $EGREP "memchr" >/dev/null 2>&1; then :
8046 else
8047 ac_cv_header_stdc=no
8049 rm -f conftest*
8053 if test $ac_cv_header_stdc = yes; then
8054 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
8055 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8056 /* end confdefs.h. */
8057 #include <stdlib.h>
8059 _ACEOF
8060 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
8061 $EGREP "free" >/dev/null 2>&1; then :
8063 else
8064 ac_cv_header_stdc=no
8066 rm -f conftest*
8070 if test $ac_cv_header_stdc = yes; then
8071 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
8072 if test "$cross_compiling" = yes; then :
8074 else
8075 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8076 /* end confdefs.h. */
8077 #include <ctype.h>
8078 #include <stdlib.h>
8079 #if ((' ' & 0x0FF) == 0x020)
8080 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
8081 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
8082 #else
8083 # define ISLOWER(c) \
8084 (('a' <= (c) && (c) <= 'i') \
8085 || ('j' <= (c) && (c) <= 'r') \
8086 || ('s' <= (c) && (c) <= 'z'))
8087 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
8088 #endif
8090 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
8092 main ()
8094 int i;
8095 for (i = 0; i < 256; i++)
8096 if (XOR (islower (i), ISLOWER (i))
8097 || toupper (i) != TOUPPER (i))
8098 return 2;
8099 return 0;
8101 _ACEOF
8102 if ac_fn_c_try_run "$LINENO"; then :
8104 else
8105 ac_cv_header_stdc=no
8107 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
8108 conftest.$ac_objext conftest.beam conftest.$ac_ext
8113 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
8114 $as_echo "$ac_cv_header_stdc" >&6; }
8115 if test $ac_cv_header_stdc = yes; then
8117 $as_echo "#define STDC_HEADERS 1" >>confdefs.h
8121 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether time.h and sys/time.h may both be included" >&5
8122 $as_echo_n "checking whether time.h and sys/time.h may both be included... " >&6; }
8123 if test "${ac_cv_header_time+set}" = set; then :
8124 $as_echo_n "(cached) " >&6
8125 else
8126 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8127 /* end confdefs.h. */
8128 #include <sys/types.h>
8129 #include <sys/time.h>
8130 #include <time.h>
8133 main ()
8135 if ((struct tm *) 0)
8136 return 0;
8138 return 0;
8140 _ACEOF
8141 if ac_fn_c_try_compile "$LINENO"; then :
8142 ac_cv_header_time=yes
8143 else
8144 ac_cv_header_time=no
8146 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8148 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_time" >&5
8149 $as_echo "$ac_cv_header_time" >&6; }
8150 if test $ac_cv_header_time = yes; then
8152 $as_echo "#define TIME_WITH_SYS_TIME 1" >>confdefs.h
8156 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether string.h and strings.h may both be included" >&5
8157 $as_echo_n "checking whether string.h and strings.h may both be included... " >&6; }
8158 if test "${gcc_cv_header_string+set}" = set; then :
8159 $as_echo_n "(cached) " >&6
8160 else
8161 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8162 /* end confdefs.h. */
8163 #include <string.h>
8164 #include <strings.h>
8166 main ()
8170 return 0;
8172 _ACEOF
8173 if ac_fn_c_try_compile "$LINENO"; then :
8174 gcc_cv_header_string=yes
8175 else
8176 gcc_cv_header_string=no
8178 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8180 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_header_string" >&5
8181 $as_echo "$gcc_cv_header_string" >&6; }
8182 if test $gcc_cv_header_string = yes; then
8184 $as_echo "#define STRING_WITH_STRINGS 1" >>confdefs.h
8188 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sys/wait.h that is POSIX.1 compatible" >&5
8189 $as_echo_n "checking for sys/wait.h that is POSIX.1 compatible... " >&6; }
8190 if test "${ac_cv_header_sys_wait_h+set}" = set; then :
8191 $as_echo_n "(cached) " >&6
8192 else
8193 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8194 /* end confdefs.h. */
8195 #include <sys/types.h>
8196 #include <sys/wait.h>
8197 #ifndef WEXITSTATUS
8198 # define WEXITSTATUS(stat_val) ((unsigned int) (stat_val) >> 8)
8199 #endif
8200 #ifndef WIFEXITED
8201 # define WIFEXITED(stat_val) (((stat_val) & 255) == 0)
8202 #endif
8205 main ()
8207 int s;
8208 wait (&s);
8209 s = WIFEXITED (s) ? WEXITSTATUS (s) : 1;
8211 return 0;
8213 _ACEOF
8214 if ac_fn_c_try_compile "$LINENO"; then :
8215 ac_cv_header_sys_wait_h=yes
8216 else
8217 ac_cv_header_sys_wait_h=no
8219 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8221 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_sys_wait_h" >&5
8222 $as_echo "$ac_cv_header_sys_wait_h" >&6; }
8223 if test $ac_cv_header_sys_wait_h = yes; then
8225 $as_echo "#define HAVE_SYS_WAIT_H 1" >>confdefs.h
8229 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether termios.h defines TIOCGWINSZ" >&5
8230 $as_echo_n "checking whether termios.h defines TIOCGWINSZ... " >&6; }
8231 if test "${ac_cv_sys_tiocgwinsz_in_termios_h+set}" = set; then :
8232 $as_echo_n "(cached) " >&6
8233 else
8234 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8235 /* end confdefs.h. */
8236 #include <sys/types.h>
8237 #include <termios.h>
8238 #ifdef TIOCGWINSZ
8240 #endif
8242 _ACEOF
8243 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
8244 $EGREP "yes" >/dev/null 2>&1; then :
8245 ac_cv_sys_tiocgwinsz_in_termios_h=yes
8246 else
8247 ac_cv_sys_tiocgwinsz_in_termios_h=no
8249 rm -f conftest*
8252 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_tiocgwinsz_in_termios_h" >&5
8253 $as_echo "$ac_cv_sys_tiocgwinsz_in_termios_h" >&6; }
8255 if test $ac_cv_sys_tiocgwinsz_in_termios_h != yes; then
8256 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether sys/ioctl.h defines TIOCGWINSZ" >&5
8257 $as_echo_n "checking whether sys/ioctl.h defines TIOCGWINSZ... " >&6; }
8258 if test "${ac_cv_sys_tiocgwinsz_in_sys_ioctl_h+set}" = set; then :
8259 $as_echo_n "(cached) " >&6
8260 else
8261 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8262 /* end confdefs.h. */
8263 #include <sys/types.h>
8264 #include <sys/ioctl.h>
8265 #ifdef TIOCGWINSZ
8267 #endif
8269 _ACEOF
8270 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
8271 $EGREP "yes" >/dev/null 2>&1; then :
8272 ac_cv_sys_tiocgwinsz_in_sys_ioctl_h=yes
8273 else
8274 ac_cv_sys_tiocgwinsz_in_sys_ioctl_h=no
8276 rm -f conftest*
8279 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_tiocgwinsz_in_sys_ioctl_h" >&5
8280 $as_echo "$ac_cv_sys_tiocgwinsz_in_sys_ioctl_h" >&6; }
8282 if test $ac_cv_sys_tiocgwinsz_in_sys_ioctl_h = yes; then
8284 $as_echo "#define GWINSZ_IN_SYS_IOCTL 1" >>confdefs.h
8289 for ac_header in limits.h stddef.h string.h strings.h stdlib.h time.h iconv.h \
8290 fcntl.h unistd.h sys/file.h sys/time.h sys/mman.h \
8291 sys/resource.h sys/param.h sys/times.h sys/stat.h \
8292 direct.h malloc.h langinfo.h ldfcn.h locale.h wchar.h
8293 do :
8294 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
8295 ac_fn_c_check_header_preproc "$LINENO" "$ac_header" "$as_ac_Header"
8296 eval as_val=\$$as_ac_Header
8297 if test "x$as_val" = x""yes; then :
8298 cat >>confdefs.h <<_ACEOF
8299 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
8300 _ACEOF
8303 done
8306 # Check for thread headers.
8307 ac_fn_c_check_header_preproc "$LINENO" "thread.h" "ac_cv_header_thread_h"
8308 if test "x$ac_cv_header_thread_h" = x""yes; then :
8309 have_thread_h=yes
8310 else
8311 have_thread_h=
8314 ac_fn_c_check_header_preproc "$LINENO" "pthread.h" "ac_cv_header_pthread_h"
8315 if test "x$ac_cv_header_pthread_h" = x""yes; then :
8316 have_pthread_h=yes
8317 else
8318 have_pthread_h=
8322 # These tests can't be done till we know if we have limits.h.
8323 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for CHAR_BIT" >&5
8324 $as_echo_n "checking for CHAR_BIT... " >&6; }
8325 if test "${gcc_cv_decl_char_bit+set}" = set; then :
8326 $as_echo_n "(cached) " >&6
8327 else
8328 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8329 /* end confdefs.h. */
8330 #ifdef HAVE_LIMITS_H
8331 #include <limits.h>
8332 #endif
8333 #ifdef CHAR_BIT
8334 found
8335 #endif
8336 _ACEOF
8337 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
8338 $EGREP "found" >/dev/null 2>&1; then :
8339 gcc_cv_decl_char_bit=yes
8340 else
8341 gcc_cv_decl_char_bit=no
8343 rm -f conftest*
8347 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_decl_char_bit" >&5
8348 $as_echo "$gcc_cv_decl_char_bit" >&6; }
8349 if test $gcc_cv_decl_char_bit = no; then
8350 { $as_echo "$as_me:${as_lineno-$LINENO}: checking number of bits in a byte" >&5
8351 $as_echo_n "checking number of bits in a byte... " >&6; }
8352 if test "${gcc_cv_c_nbby+set}" = set; then :
8353 $as_echo_n "(cached) " >&6
8354 else
8356 gcc_cv_c_nbby=
8357 while test $i -lt 65; do
8358 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8359 /* end confdefs.h. */
8362 main ()
8364 switch(0) {
8365 case (unsigned char)((unsigned long)1 << $i) == ((unsigned long)1 << $i):
8366 case (unsigned char)((unsigned long)1<<($i-1)) == ((unsigned long)1<<($i-1)):
8369 return 0;
8371 _ACEOF
8372 if ac_fn_c_try_compile "$LINENO"; then :
8373 gcc_cv_c_nbby=$i; break
8375 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8376 i=`expr $i + 1`
8377 done
8378 test -z "$gcc_cv_c_nbby" && gcc_cv_c_nbby=failed
8381 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_c_nbby" >&5
8382 $as_echo "$gcc_cv_c_nbby" >&6; }
8383 if test $gcc_cv_c_nbby = failed; then
8384 as_fn_error "cannot determine number of bits in a byte" "$LINENO" 5
8385 else
8387 cat >>confdefs.h <<_ACEOF
8388 #define CHAR_BIT $gcc_cv_c_nbby
8389 _ACEOF
8393 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether byte ordering is bigendian" >&5
8394 $as_echo_n "checking whether byte ordering is bigendian... " >&6; }
8395 if test "${ac_cv_c_bigendian+set}" = set; then :
8396 $as_echo_n "(cached) " >&6
8397 else
8398 ac_cv_c_bigendian=unknown
8399 # See if we're dealing with a universal compiler.
8400 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8401 /* end confdefs.h. */
8402 #ifndef __APPLE_CC__
8403 not a universal capable compiler
8404 #endif
8405 typedef int dummy;
8407 _ACEOF
8408 if ac_fn_c_try_compile "$LINENO"; then :
8410 # Check for potential -arch flags. It is not universal unless
8411 # there are at least two -arch flags with different values.
8412 ac_arch=
8413 ac_prev=
8414 for ac_word in $CC $CFLAGS $CPPFLAGS $LDFLAGS; do
8415 if test -n "$ac_prev"; then
8416 case $ac_word in
8417 i?86 | x86_64 | ppc | ppc64)
8418 if test -z "$ac_arch" || test "$ac_arch" = "$ac_word"; then
8419 ac_arch=$ac_word
8420 else
8421 ac_cv_c_bigendian=universal
8422 break
8425 esac
8426 ac_prev=
8427 elif test "x$ac_word" = "x-arch"; then
8428 ac_prev=arch
8430 done
8432 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8433 if test $ac_cv_c_bigendian = unknown; then
8434 # See if sys/param.h defines the BYTE_ORDER macro.
8435 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8436 /* end confdefs.h. */
8437 #include <sys/types.h>
8438 #include <sys/param.h>
8441 main ()
8443 #if ! (defined BYTE_ORDER && defined BIG_ENDIAN \
8444 && defined LITTLE_ENDIAN && BYTE_ORDER && BIG_ENDIAN \
8445 && LITTLE_ENDIAN)
8446 bogus endian macros
8447 #endif
8450 return 0;
8452 _ACEOF
8453 if ac_fn_c_try_compile "$LINENO"; then :
8454 # It does; now see whether it defined to BIG_ENDIAN or not.
8455 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8456 /* end confdefs.h. */
8457 #include <sys/types.h>
8458 #include <sys/param.h>
8461 main ()
8463 #if BYTE_ORDER != BIG_ENDIAN
8464 not big endian
8465 #endif
8468 return 0;
8470 _ACEOF
8471 if ac_fn_c_try_compile "$LINENO"; then :
8472 ac_cv_c_bigendian=yes
8473 else
8474 ac_cv_c_bigendian=no
8476 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8478 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8480 if test $ac_cv_c_bigendian = unknown; then
8481 # See if <limits.h> defines _LITTLE_ENDIAN or _BIG_ENDIAN (e.g., Solaris).
8482 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8483 /* end confdefs.h. */
8484 #include <limits.h>
8487 main ()
8489 #if ! (defined _LITTLE_ENDIAN || defined _BIG_ENDIAN)
8490 bogus endian macros
8491 #endif
8494 return 0;
8496 _ACEOF
8497 if ac_fn_c_try_compile "$LINENO"; then :
8498 # It does; now see whether it defined to _BIG_ENDIAN or not.
8499 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8500 /* end confdefs.h. */
8501 #include <limits.h>
8504 main ()
8506 #ifndef _BIG_ENDIAN
8507 not big endian
8508 #endif
8511 return 0;
8513 _ACEOF
8514 if ac_fn_c_try_compile "$LINENO"; then :
8515 ac_cv_c_bigendian=yes
8516 else
8517 ac_cv_c_bigendian=no
8519 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8521 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8523 if test $ac_cv_c_bigendian = unknown; then
8524 # Compile a test program.
8525 if test "$cross_compiling" = yes; then :
8526 # Try to guess by grepping values from an object file.
8527 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8528 /* end confdefs.h. */
8529 short int ascii_mm[] =
8530 { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 };
8531 short int ascii_ii[] =
8532 { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 };
8533 int use_ascii (int i) {
8534 return ascii_mm[i] + ascii_ii[i];
8536 short int ebcdic_ii[] =
8537 { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 };
8538 short int ebcdic_mm[] =
8539 { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 };
8540 int use_ebcdic (int i) {
8541 return ebcdic_mm[i] + ebcdic_ii[i];
8543 extern int foo;
8546 main ()
8548 return use_ascii (foo) == use_ebcdic (foo);
8550 return 0;
8552 _ACEOF
8553 if ac_fn_c_try_compile "$LINENO"; then :
8554 if grep BIGenDianSyS conftest.$ac_objext >/dev/null; then
8555 ac_cv_c_bigendian=yes
8557 if grep LiTTleEnDian conftest.$ac_objext >/dev/null ; then
8558 if test "$ac_cv_c_bigendian" = unknown; then
8559 ac_cv_c_bigendian=no
8560 else
8561 # finding both strings is unlikely to happen, but who knows?
8562 ac_cv_c_bigendian=unknown
8566 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8567 else
8568 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8569 /* end confdefs.h. */
8570 $ac_includes_default
8572 main ()
8575 /* Are we little or big endian? From Harbison&Steele. */
8576 union
8578 long int l;
8579 char c[sizeof (long int)];
8580 } u;
8581 u.l = 1;
8582 return u.c[sizeof (long int) - 1] == 1;
8585 return 0;
8587 _ACEOF
8588 if ac_fn_c_try_run "$LINENO"; then :
8589 ac_cv_c_bigendian=no
8590 else
8591 ac_cv_c_bigendian=yes
8593 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
8594 conftest.$ac_objext conftest.beam conftest.$ac_ext
8599 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_bigendian" >&5
8600 $as_echo "$ac_cv_c_bigendian" >&6; }
8601 case $ac_cv_c_bigendian in #(
8602 yes)
8603 $as_echo "#define WORDS_BIGENDIAN 1" >>confdefs.h
8604 ;; #(
8606 ;; #(
8607 universal)
8609 $as_echo "#define AC_APPLE_UNIVERSAL_BUILD 1" >>confdefs.h
8611 ;; #(
8613 as_fn_error "unknown endianness
8614 presetting ac_cv_c_bigendian=no (or yes) will help" "$LINENO" 5 ;;
8615 esac
8618 # ----------------------
8619 # Checks for C++ headers
8620 # ----------------------
8622 ac_ext=cpp
8623 ac_cpp='$CXXCPP $CPPFLAGS'
8624 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8625 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8626 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
8627 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C++ preprocessor" >&5
8628 $as_echo_n "checking how to run the C++ preprocessor... " >&6; }
8629 if test -z "$CXXCPP"; then
8630 if test "${ac_cv_prog_CXXCPP+set}" = set; then :
8631 $as_echo_n "(cached) " >&6
8632 else
8633 # Double quotes because CXXCPP needs to be expanded
8634 for CXXCPP in "$CXX -E" "/lib/cpp"
8636 ac_preproc_ok=false
8637 for ac_cxx_preproc_warn_flag in '' yes
8639 # Use a header file that comes with gcc, so configuring glibc
8640 # with a fresh cross-compiler works.
8641 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
8642 # <limits.h> exists even on freestanding compilers.
8643 # On the NeXT, cc -E runs the code through the compiler's parser,
8644 # not just through cpp. "Syntax error" is here to catch this case.
8645 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8646 /* end confdefs.h. */
8647 #ifdef __STDC__
8648 # include <limits.h>
8649 #else
8650 # include <assert.h>
8651 #endif
8652 Syntax error
8653 _ACEOF
8654 if ac_fn_cxx_try_cpp "$LINENO"; then :
8656 else
8657 # Broken: fails on valid input.
8658 continue
8660 rm -f conftest.err conftest.$ac_ext
8662 # OK, works on sane cases. Now check whether nonexistent headers
8663 # can be detected and how.
8664 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8665 /* end confdefs.h. */
8666 #include <ac_nonexistent.h>
8667 _ACEOF
8668 if ac_fn_cxx_try_cpp "$LINENO"; then :
8669 # Broken: success on invalid input.
8670 continue
8671 else
8672 # Passes both tests.
8673 ac_preproc_ok=:
8674 break
8676 rm -f conftest.err conftest.$ac_ext
8678 done
8679 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
8680 rm -f conftest.err conftest.$ac_ext
8681 if $ac_preproc_ok; then :
8682 break
8685 done
8686 ac_cv_prog_CXXCPP=$CXXCPP
8689 CXXCPP=$ac_cv_prog_CXXCPP
8690 else
8691 ac_cv_prog_CXXCPP=$CXXCPP
8693 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXXCPP" >&5
8694 $as_echo "$CXXCPP" >&6; }
8695 ac_preproc_ok=false
8696 for ac_cxx_preproc_warn_flag in '' yes
8698 # Use a header file that comes with gcc, so configuring glibc
8699 # with a fresh cross-compiler works.
8700 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
8701 # <limits.h> exists even on freestanding compilers.
8702 # On the NeXT, cc -E runs the code through the compiler's parser,
8703 # not just through cpp. "Syntax error" is here to catch this case.
8704 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8705 /* end confdefs.h. */
8706 #ifdef __STDC__
8707 # include <limits.h>
8708 #else
8709 # include <assert.h>
8710 #endif
8711 Syntax error
8712 _ACEOF
8713 if ac_fn_cxx_try_cpp "$LINENO"; then :
8715 else
8716 # Broken: fails on valid input.
8717 continue
8719 rm -f conftest.err conftest.$ac_ext
8721 # OK, works on sane cases. Now check whether nonexistent headers
8722 # can be detected and how.
8723 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8724 /* end confdefs.h. */
8725 #include <ac_nonexistent.h>
8726 _ACEOF
8727 if ac_fn_cxx_try_cpp "$LINENO"; then :
8728 # Broken: success on invalid input.
8729 continue
8730 else
8731 # Passes both tests.
8732 ac_preproc_ok=:
8733 break
8735 rm -f conftest.err conftest.$ac_ext
8737 done
8738 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
8739 rm -f conftest.err conftest.$ac_ext
8740 if $ac_preproc_ok; then :
8742 else
8743 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
8744 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
8745 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: C++ preprocessor \"$CXXCPP\" fails sanity check
8746 See \`config.log' for more details." >&5
8747 $as_echo "$as_me: WARNING: C++ preprocessor \"$CXXCPP\" fails sanity check
8748 See \`config.log' for more details." >&2;}; }
8751 ac_ext=c
8752 ac_cpp='$CPP $CPPFLAGS'
8753 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8754 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8755 ac_compiler_gnu=$ac_cv_c_compiler_gnu
8758 ac_ext=cpp
8759 ac_cpp='$CXXCPP $CPPFLAGS'
8760 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8761 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8762 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
8767 for ac_header in unordered_map
8768 do :
8769 ac_fn_cxx_check_header_preproc "$LINENO" "unordered_map" "ac_cv_header_unordered_map"
8770 if test "x$ac_cv_header_unordered_map" = x""yes; then :
8771 cat >>confdefs.h <<_ACEOF
8772 #define HAVE_UNORDERED_MAP 1
8773 _ACEOF
8776 done
8778 for ac_header in tr1/unordered_map
8779 do :
8780 ac_fn_cxx_check_header_preproc "$LINENO" "tr1/unordered_map" "ac_cv_header_tr1_unordered_map"
8781 if test "x$ac_cv_header_tr1_unordered_map" = x""yes; then :
8782 cat >>confdefs.h <<_ACEOF
8783 #define HAVE_TR1_UNORDERED_MAP 1
8784 _ACEOF
8787 done
8789 for ac_header in ext/hash_map
8790 do :
8791 ac_fn_cxx_check_header_preproc "$LINENO" "ext/hash_map" "ac_cv_header_ext_hash_map"
8792 if test "x$ac_cv_header_ext_hash_map" = x""yes; then :
8793 cat >>confdefs.h <<_ACEOF
8794 #define HAVE_EXT_HASH_MAP 1
8795 _ACEOF
8798 done
8801 ac_ext=c
8802 ac_cpp='$CPP $CPPFLAGS'
8803 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8804 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8805 ac_compiler_gnu=$ac_cv_c_compiler_gnu
8808 # --------
8809 # Dependency checking.
8810 # --------
8812 ac_ext=cpp
8813 ac_cpp='$CXXCPP $CPPFLAGS'
8814 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8815 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8816 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
8818 rm -rf .tst 2>/dev/null
8819 mkdir .tst 2>/dev/null
8820 if test -d .tst; then
8821 am__leading_dot=.
8822 else
8823 am__leading_dot=_
8825 rmdir .tst 2>/dev/null
8827 DEPDIR="${am__leading_dot}deps"
8829 ac_config_commands="$ac_config_commands depdir"
8832 ac_config_commands="$ac_config_commands gccdepdir"
8835 depcc="$CXX" am_compiler_list=
8837 am_depcomp=$ac_aux_dir/depcomp
8838 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
8839 $as_echo_n "checking dependency style of $depcc... " >&6; }
8840 if test "${am_cv_CXX_dependencies_compiler_type+set}" = set; then :
8841 $as_echo_n "(cached) " >&6
8842 else
8843 if test -f "$am_depcomp"; then
8844 # We make a subdir and do the tests there. Otherwise we can end up
8845 # making bogus files that we don't know about and never remove. For
8846 # instance it was reported that on HP-UX the gcc test will end up
8847 # making a dummy file named `D' -- because `-MD' means `put the output
8848 # in D'.
8849 mkdir conftest.dir
8850 # Copy depcomp to subdir because otherwise we won't find it if we're
8851 # using a relative directory.
8852 cp "$am_depcomp" conftest.dir
8853 cd conftest.dir
8854 # We will build objects and dependencies in a subdirectory because
8855 # it helps to detect inapplicable dependency modes. For instance
8856 # both Tru64's cc and ICC support -MD to output dependencies as a
8857 # side effect of compilation, but ICC will put the dependencies in
8858 # the current directory while Tru64 will put them in the object
8859 # directory.
8860 mkdir sub
8862 am_cv_CXX_dependencies_compiler_type=none
8863 if test "$am_compiler_list" = ""; then
8864 am_compiler_list=`sed -n 's/^\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
8866 for depmode in $am_compiler_list; do
8867 if test $depmode = none; then break; fi
8869 $as_echo "$as_me:$LINENO: trying $depmode" >&5
8870 # Setup a source with many dependencies, because some compilers
8871 # like to wrap large dependency lists on column 80 (with \), and
8872 # we should not choose a depcomp mode which is confused by this.
8874 # We need to recreate these files for each test, as the compiler may
8875 # overwrite some of them when testing with obscure command lines.
8876 # This happens at least with the AIX C compiler.
8877 : > sub/conftest.c
8878 for i in 1 2 3 4 5 6; do
8879 echo '#include "conftst'$i'.h"' >> sub/conftest.c
8880 # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
8881 # Solaris 8's {/usr,}/bin/sh.
8882 touch sub/conftst$i.h
8883 done
8884 echo "include sub/conftest.Po" > confmf
8886 # We check with `-c' and `-o' for the sake of the "dashmstdout"
8887 # mode. It turns out that the SunPro C++ compiler does not properly
8888 # handle `-M -o', and we need to detect this.
8889 depcmd="depmode=$depmode \
8890 source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \
8891 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
8892 $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c"
8893 echo "| $depcmd" | sed -e 's/ */ /g' >&5
8894 if env $depcmd > conftest.err 2>&1 &&
8895 grep sub/conftst6.h sub/conftest.Po >>conftest.err 2>&1 &&
8896 grep sub/conftest.${OBJEXT-o} sub/conftest.Po >>conftest.err 2>&1 &&
8897 ${MAKE-make} -s -f confmf >>conftest.err 2>&1; then
8898 # icc doesn't choke on unknown options, it will just issue warnings
8899 # or remarks (even with -Werror). So we grep stderr for any message
8900 # that says an option was ignored or not supported.
8901 # When given -MP, icc 7.0 and 7.1 complain thusly:
8902 # icc: Command line warning: ignoring option '-M'; no argument required
8903 # The diagnosis changed in icc 8.0:
8904 # icc: Command line remark: option '-MP' not supported
8905 if (grep 'ignoring option' conftest.err ||
8906 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
8907 am_cv_CXX_dependencies_compiler_type=$depmode
8908 $as_echo "$as_me:$LINENO: success" >&5
8909 break
8912 $as_echo "$as_me:$LINENO: failure, diagnostics are:" >&5
8913 sed -e 's/^/| /' < conftest.err >&5
8914 done
8916 cd ..
8917 rm -rf conftest.dir
8918 else
8919 am_cv_CXX_dependencies_compiler_type=none
8923 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CXX_dependencies_compiler_type" >&5
8924 $as_echo "$am_cv_CXX_dependencies_compiler_type" >&6; }
8925 if test x${am_cv_CXX_dependencies_compiler_type-none} = xnone
8926 then as_fn_error "no usable dependency style found" "$LINENO" 5
8927 else CXXDEPMODE=depmode=$am_cv_CXX_dependencies_compiler_type
8931 ac_ext=c
8932 ac_cpp='$CPP $CPPFLAGS'
8933 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8934 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8935 ac_compiler_gnu=$ac_cv_c_compiler_gnu
8938 # --------
8939 # UNSORTED
8940 # --------
8943 # These libraries may be used by collect2.
8944 # We may need a special search path to get them linked.
8945 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for collect2 libraries" >&5
8946 $as_echo_n "checking for collect2 libraries... " >&6; }
8947 if test "${gcc_cv_collect2_libs+set}" = set; then :
8948 $as_echo_n "(cached) " >&6
8949 else
8950 save_LIBS="$LIBS"
8951 for libs in '' -lld -lmld \
8952 '-L/usr/lib/cmplrs/cc2.11 -lmld' \
8953 '-L/usr/lib/cmplrs/cc3.11 -lmld'
8955 LIBS="$libs"
8956 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8957 /* end confdefs.h. */
8959 /* Override any GCC internal prototype to avoid an error.
8960 Use char because int might match the return type of a GCC
8961 builtin and then its argument prototype would still apply. */
8962 #ifdef __cplusplus
8963 extern "C"
8964 #endif
8965 char ldopen ();
8967 main ()
8969 return ldopen ();
8971 return 0;
8973 _ACEOF
8974 if ac_fn_c_try_link "$LINENO"; then :
8975 gcc_cv_collect2_libs="$libs"; break
8977 rm -f core conftest.err conftest.$ac_objext \
8978 conftest$ac_exeext conftest.$ac_ext
8979 done
8980 LIBS="$save_LIBS"
8981 test -z "$gcc_cv_collect2_libs" && gcc_cv_collect2_libs='none required'
8983 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_collect2_libs" >&5
8984 $as_echo "$gcc_cv_collect2_libs" >&6; }
8985 case $gcc_cv_collect2_libs in
8986 "none required") ;;
8987 *) COLLECT2_LIBS=$gcc_cv_collect2_libs ;;
8988 esac
8991 # When building Ada code on Alpha, we need exc_resume which is usually in
8992 # -lexc. So test for it.
8993 save_LIBS="$LIBS"
8994 LIBS=
8995 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing exc_resume" >&5
8996 $as_echo_n "checking for library containing exc_resume... " >&6; }
8997 if test "${ac_cv_search_exc_resume+set}" = set; then :
8998 $as_echo_n "(cached) " >&6
8999 else
9000 ac_func_search_save_LIBS=$LIBS
9001 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9002 /* end confdefs.h. */
9004 /* Override any GCC internal prototype to avoid an error.
9005 Use char because int might match the return type of a GCC
9006 builtin and then its argument prototype would still apply. */
9007 #ifdef __cplusplus
9008 extern "C"
9009 #endif
9010 char exc_resume ();
9012 main ()
9014 return exc_resume ();
9016 return 0;
9018 _ACEOF
9019 for ac_lib in '' exc; do
9020 if test -z "$ac_lib"; then
9021 ac_res="none required"
9022 else
9023 ac_res=-l$ac_lib
9024 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
9026 if ac_fn_c_try_link "$LINENO"; then :
9027 ac_cv_search_exc_resume=$ac_res
9029 rm -f core conftest.err conftest.$ac_objext \
9030 conftest$ac_exeext
9031 if test "${ac_cv_search_exc_resume+set}" = set; then :
9032 break
9034 done
9035 if test "${ac_cv_search_exc_resume+set}" = set; then :
9037 else
9038 ac_cv_search_exc_resume=no
9040 rm conftest.$ac_ext
9041 LIBS=$ac_func_search_save_LIBS
9043 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_exc_resume" >&5
9044 $as_echo "$ac_cv_search_exc_resume" >&6; }
9045 ac_res=$ac_cv_search_exc_resume
9046 if test "$ac_res" != no; then :
9047 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
9051 GNAT_LIBEXC="$LIBS"
9052 LIBS="$save_LIBS"
9055 # To support -mcpu=native on Solaris/SPARC, we need libkstat.
9056 save_LIBS="$LIBS"
9057 LIBS=
9058 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing kstat_open" >&5
9059 $as_echo_n "checking for library containing kstat_open... " >&6; }
9060 if test "${ac_cv_search_kstat_open+set}" = set; then :
9061 $as_echo_n "(cached) " >&6
9062 else
9063 ac_func_search_save_LIBS=$LIBS
9064 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9065 /* end confdefs.h. */
9067 /* Override any GCC internal prototype to avoid an error.
9068 Use char because int might match the return type of a GCC
9069 builtin and then its argument prototype would still apply. */
9070 #ifdef __cplusplus
9071 extern "C"
9072 #endif
9073 char kstat_open ();
9075 main ()
9077 return kstat_open ();
9079 return 0;
9081 _ACEOF
9082 for ac_lib in '' kstat; do
9083 if test -z "$ac_lib"; then
9084 ac_res="none required"
9085 else
9086 ac_res=-l$ac_lib
9087 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
9089 if ac_fn_c_try_link "$LINENO"; then :
9090 ac_cv_search_kstat_open=$ac_res
9092 rm -f core conftest.err conftest.$ac_objext \
9093 conftest$ac_exeext
9094 if test "${ac_cv_search_kstat_open+set}" = set; then :
9095 break
9097 done
9098 if test "${ac_cv_search_kstat_open+set}" = set; then :
9100 else
9101 ac_cv_search_kstat_open=no
9103 rm conftest.$ac_ext
9104 LIBS=$ac_func_search_save_LIBS
9106 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_kstat_open" >&5
9107 $as_echo "$ac_cv_search_kstat_open" >&6; }
9108 ac_res=$ac_cv_search_kstat_open
9109 if test "$ac_res" != no; then :
9110 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
9114 EXTRA_GCC_LIBS="$LIBS"
9115 LIBS="$save_LIBS"
9118 # Some systems put ldexp and frexp in libm instead of libc; assume
9119 # they're both in the same place. jcf-dump needs them.
9120 save_LIBS="$LIBS"
9121 LIBS=
9122 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing ldexp" >&5
9123 $as_echo_n "checking for library containing ldexp... " >&6; }
9124 if test "${ac_cv_search_ldexp+set}" = set; then :
9125 $as_echo_n "(cached) " >&6
9126 else
9127 ac_func_search_save_LIBS=$LIBS
9128 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9129 /* end confdefs.h. */
9131 /* Override any GCC internal prototype to avoid an error.
9132 Use char because int might match the return type of a GCC
9133 builtin and then its argument prototype would still apply. */
9134 #ifdef __cplusplus
9135 extern "C"
9136 #endif
9137 char ldexp ();
9139 main ()
9141 return ldexp ();
9143 return 0;
9145 _ACEOF
9146 for ac_lib in '' m; do
9147 if test -z "$ac_lib"; then
9148 ac_res="none required"
9149 else
9150 ac_res=-l$ac_lib
9151 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
9153 if ac_fn_c_try_link "$LINENO"; then :
9154 ac_cv_search_ldexp=$ac_res
9156 rm -f core conftest.err conftest.$ac_objext \
9157 conftest$ac_exeext
9158 if test "${ac_cv_search_ldexp+set}" = set; then :
9159 break
9161 done
9162 if test "${ac_cv_search_ldexp+set}" = set; then :
9164 else
9165 ac_cv_search_ldexp=no
9167 rm conftest.$ac_ext
9168 LIBS=$ac_func_search_save_LIBS
9170 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_ldexp" >&5
9171 $as_echo "$ac_cv_search_ldexp" >&6; }
9172 ac_res=$ac_cv_search_ldexp
9173 if test "$ac_res" != no; then :
9174 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
9178 LDEXP_LIB="$LIBS"
9179 LIBS="$save_LIBS"
9182 # Use <inttypes.h> only if it exists,
9183 # doesn't clash with <sys/types.h>, and declares intmax_t.
9184 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for inttypes.h" >&5
9185 $as_echo_n "checking for inttypes.h... " >&6; }
9186 if test "${gcc_cv_header_inttypes_h+set}" = set; then :
9187 $as_echo_n "(cached) " >&6
9188 else
9189 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9190 /* end confdefs.h. */
9191 #include <sys/types.h>
9192 #include <inttypes.h>
9194 main ()
9196 intmax_t i = -1;
9198 return 0;
9200 _ACEOF
9201 if ac_fn_c_try_compile "$LINENO"; then :
9202 gcc_cv_header_inttypes_h=yes
9203 else
9204 gcc_cv_header_inttypes_h=no
9206 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9209 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_header_inttypes_h" >&5
9210 $as_echo "$gcc_cv_header_inttypes_h" >&6; }
9211 if test $gcc_cv_header_inttypes_h = yes; then
9213 $as_echo "#define HAVE_INTTYPES_H 1" >>confdefs.h
9219 for ac_func in times clock kill getrlimit setrlimit atoll atoq \
9220 sysconf strsignal getrusage nl_langinfo \
9221 gettimeofday mbstowcs wcswidth mmap setlocale \
9222 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
9223 do :
9224 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
9225 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
9226 eval as_val=\$$as_ac_var
9227 if test "x$as_val" = x""yes; then :
9228 cat >>confdefs.h <<_ACEOF
9229 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
9230 _ACEOF
9233 done
9236 if test x$ac_cv_func_mbstowcs = xyes; then
9237 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether mbstowcs works" >&5
9238 $as_echo_n "checking whether mbstowcs works... " >&6; }
9239 if test "${gcc_cv_func_mbstowcs_works+set}" = set; then :
9240 $as_echo_n "(cached) " >&6
9241 else
9242 if test "$cross_compiling" = yes; then :
9243 gcc_cv_func_mbstowcs_works=yes
9244 else
9245 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9246 /* end confdefs.h. */
9247 #include <stdlib.h>
9248 int main()
9250 mbstowcs(0, "", 0);
9251 return 0;
9253 _ACEOF
9254 if ac_fn_c_try_run "$LINENO"; then :
9255 gcc_cv_func_mbstowcs_works=yes
9256 else
9257 gcc_cv_func_mbstowcs_works=no
9259 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
9260 conftest.$ac_objext conftest.beam conftest.$ac_ext
9264 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_func_mbstowcs_works" >&5
9265 $as_echo "$gcc_cv_func_mbstowcs_works" >&6; }
9266 if test x$gcc_cv_func_mbstowcs_works = xyes; then
9268 $as_echo "#define HAVE_WORKING_MBSTOWCS 1" >>confdefs.h
9273 ac_fn_c_check_type "$LINENO" "ssize_t" "ac_cv_type_ssize_t" "$ac_includes_default"
9274 if test "x$ac_cv_type_ssize_t" = x""yes; then :
9276 else
9278 cat >>confdefs.h <<_ACEOF
9279 #define ssize_t int
9280 _ACEOF
9284 ac_fn_c_check_type "$LINENO" "caddr_t" "ac_cv_type_caddr_t" "$ac_includes_default"
9285 if test "x$ac_cv_type_caddr_t" = x""yes; then :
9287 else
9289 cat >>confdefs.h <<_ACEOF
9290 #define caddr_t char *
9291 _ACEOF
9297 ac_fn_c_check_header_preproc "$LINENO" "sys/mman.h" "ac_cv_header_sys_mman_h"
9298 if test "x$ac_cv_header_sys_mman_h" = x""yes; then :
9299 gcc_header_sys_mman_h=yes
9300 else
9301 gcc_header_sys_mman_h=no
9304 ac_fn_c_check_func "$LINENO" "mmap" "ac_cv_func_mmap"
9305 if test "x$ac_cv_func_mmap" = x""yes; then :
9306 gcc_func_mmap=yes
9307 else
9308 gcc_func_mmap=no
9311 if test "$gcc_header_sys_mman_h" != yes \
9312 || test "$gcc_func_mmap" != yes; then
9313 gcc_cv_func_mmap_file=no
9314 gcc_cv_func_mmap_dev_zero=no
9315 gcc_cv_func_mmap_anon=no
9316 else
9317 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether read-only mmap of a plain file works" >&5
9318 $as_echo_n "checking whether read-only mmap of a plain file works... " >&6; }
9319 if test "${gcc_cv_func_mmap_file+set}" = set; then :
9320 $as_echo_n "(cached) " >&6
9321 else
9322 # Add a system to this blacklist if
9323 # mmap(0, stat_size, PROT_READ, MAP_PRIVATE, fd, 0) doesn't return a
9324 # memory area containing the same data that you'd get if you applied
9325 # read() to the same fd. The only system known to have a problem here
9326 # is VMS, where text files have record structure.
9327 case "$host_os" in
9328 *vms* | ultrix*)
9329 gcc_cv_func_mmap_file=no ;;
9331 gcc_cv_func_mmap_file=yes;;
9332 esac
9334 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_func_mmap_file" >&5
9335 $as_echo "$gcc_cv_func_mmap_file" >&6; }
9336 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether mmap from /dev/zero works" >&5
9337 $as_echo_n "checking whether mmap from /dev/zero works... " >&6; }
9338 if test "${gcc_cv_func_mmap_dev_zero+set}" = set; then :
9339 $as_echo_n "(cached) " >&6
9340 else
9341 # Add a system to this blacklist if it has mmap() but /dev/zero
9342 # does not exist, or if mmapping /dev/zero does not give anonymous
9343 # zeroed pages with both the following properties:
9344 # 1. If you map N consecutive pages in with one call, and then
9345 # unmap any subset of those pages, the pages that were not
9346 # explicitly unmapped remain accessible.
9347 # 2. If you map two adjacent blocks of memory and then unmap them
9348 # both at once, they must both go away.
9349 # Systems known to be in this category are Windows (all variants),
9350 # VMS, and Darwin.
9351 case "$host_os" in
9352 *vms* | cygwin* | pe | mingw* | darwin* | ultrix* | hpux10* | hpux11.00)
9353 gcc_cv_func_mmap_dev_zero=no ;;
9355 gcc_cv_func_mmap_dev_zero=yes;;
9356 esac
9358 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_func_mmap_dev_zero" >&5
9359 $as_echo "$gcc_cv_func_mmap_dev_zero" >&6; }
9361 # Unlike /dev/zero, the MAP_ANON(YMOUS) defines can be probed for.
9362 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for MAP_ANON(YMOUS)" >&5
9363 $as_echo_n "checking for MAP_ANON(YMOUS)... " >&6; }
9364 if test "${gcc_cv_decl_map_anon+set}" = set; then :
9365 $as_echo_n "(cached) " >&6
9366 else
9367 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9368 /* end confdefs.h. */
9369 #include <sys/types.h>
9370 #include <sys/mman.h>
9371 #include <unistd.h>
9373 #ifndef MAP_ANONYMOUS
9374 #define MAP_ANONYMOUS MAP_ANON
9375 #endif
9378 main ()
9380 int n = MAP_ANONYMOUS;
9382 return 0;
9384 _ACEOF
9385 if ac_fn_c_try_compile "$LINENO"; then :
9386 gcc_cv_decl_map_anon=yes
9387 else
9388 gcc_cv_decl_map_anon=no
9390 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9392 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_decl_map_anon" >&5
9393 $as_echo "$gcc_cv_decl_map_anon" >&6; }
9395 if test $gcc_cv_decl_map_anon = no; then
9396 gcc_cv_func_mmap_anon=no
9397 else
9398 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether mmap with MAP_ANON(YMOUS) works" >&5
9399 $as_echo_n "checking whether mmap with MAP_ANON(YMOUS) works... " >&6; }
9400 if test "${gcc_cv_func_mmap_anon+set}" = set; then :
9401 $as_echo_n "(cached) " >&6
9402 else
9403 # Add a system to this blacklist if it has mmap() and MAP_ANON or
9404 # MAP_ANONYMOUS, but using mmap(..., MAP_PRIVATE|MAP_ANONYMOUS, -1, 0)
9405 # doesn't give anonymous zeroed pages with the same properties listed
9406 # above for use of /dev/zero.
9407 # Systems known to be in this category are Windows, VMS, and SCO Unix.
9408 case "$host_os" in
9409 *vms* | cygwin* | pe | mingw* | sco* | udk* )
9410 gcc_cv_func_mmap_anon=no ;;
9412 gcc_cv_func_mmap_anon=yes;;
9413 esac
9415 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_func_mmap_anon" >&5
9416 $as_echo "$gcc_cv_func_mmap_anon" >&6; }
9420 if test $gcc_cv_func_mmap_file = yes; then
9422 $as_echo "#define HAVE_MMAP_FILE 1" >>confdefs.h
9425 if test $gcc_cv_func_mmap_dev_zero = yes; then
9427 $as_echo "#define HAVE_MMAP_DEV_ZERO 1" >>confdefs.h
9430 if test $gcc_cv_func_mmap_anon = yes; then
9432 $as_echo "#define HAVE_MMAP_ANON 1" >>confdefs.h
9437 case "${host}" in
9438 *-*-*vms*)
9439 # Under VMS, vfork works very differently than on Unix. The standard test
9440 # won't work, and it isn't easily adaptable. It makes more sense to
9441 # just force it.
9442 ac_cv_func_vfork_works=yes
9444 esac
9445 ac_fn_c_check_type "$LINENO" "pid_t" "ac_cv_type_pid_t" "$ac_includes_default"
9446 if test "x$ac_cv_type_pid_t" = x""yes; then :
9448 else
9450 cat >>confdefs.h <<_ACEOF
9451 #define pid_t int
9452 _ACEOF
9456 for ac_header in vfork.h
9457 do :
9458 ac_fn_c_check_header_preproc "$LINENO" "vfork.h" "ac_cv_header_vfork_h"
9459 if test "x$ac_cv_header_vfork_h" = x""yes; then :
9460 cat >>confdefs.h <<_ACEOF
9461 #define HAVE_VFORK_H 1
9462 _ACEOF
9465 done
9467 for ac_func in fork vfork
9468 do :
9469 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
9470 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
9471 eval as_val=\$$as_ac_var
9472 if test "x$as_val" = x""yes; then :
9473 cat >>confdefs.h <<_ACEOF
9474 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
9475 _ACEOF
9478 done
9480 if test "x$ac_cv_func_fork" = xyes; then
9481 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working fork" >&5
9482 $as_echo_n "checking for working fork... " >&6; }
9483 if test "${ac_cv_func_fork_works+set}" = set; then :
9484 $as_echo_n "(cached) " >&6
9485 else
9486 if test "$cross_compiling" = yes; then :
9487 ac_cv_func_fork_works=cross
9488 else
9489 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9490 /* end confdefs.h. */
9491 $ac_includes_default
9493 main ()
9496 /* By Ruediger Kuhlmann. */
9497 return fork () < 0;
9500 return 0;
9502 _ACEOF
9503 if ac_fn_c_try_run "$LINENO"; then :
9504 ac_cv_func_fork_works=yes
9505 else
9506 ac_cv_func_fork_works=no
9508 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
9509 conftest.$ac_objext conftest.beam conftest.$ac_ext
9513 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_fork_works" >&5
9514 $as_echo "$ac_cv_func_fork_works" >&6; }
9516 else
9517 ac_cv_func_fork_works=$ac_cv_func_fork
9519 if test "x$ac_cv_func_fork_works" = xcross; then
9520 case $host in
9521 *-*-amigaos* | *-*-msdosdjgpp*)
9522 # Override, as these systems have only a dummy fork() stub
9523 ac_cv_func_fork_works=no
9526 ac_cv_func_fork_works=yes
9528 esac
9529 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: result $ac_cv_func_fork_works guessed because of cross compilation" >&5
9530 $as_echo "$as_me: WARNING: result $ac_cv_func_fork_works guessed because of cross compilation" >&2;}
9532 ac_cv_func_vfork_works=$ac_cv_func_vfork
9533 if test "x$ac_cv_func_vfork" = xyes; then
9534 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working vfork" >&5
9535 $as_echo_n "checking for working vfork... " >&6; }
9536 if test "${ac_cv_func_vfork_works+set}" = set; then :
9537 $as_echo_n "(cached) " >&6
9538 else
9539 if test "$cross_compiling" = yes; then :
9540 ac_cv_func_vfork_works=cross
9541 else
9542 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9543 /* end confdefs.h. */
9544 /* Thanks to Paul Eggert for this test. */
9545 $ac_includes_default
9546 #include <sys/wait.h>
9547 #ifdef HAVE_VFORK_H
9548 # include <vfork.h>
9549 #endif
9550 /* On some sparc systems, changes by the child to local and incoming
9551 argument registers are propagated back to the parent. The compiler
9552 is told about this with #include <vfork.h>, but some compilers
9553 (e.g. gcc -O) don't grok <vfork.h>. Test for this by using a
9554 static variable whose address is put into a register that is
9555 clobbered by the vfork. */
9556 static void
9557 #ifdef __cplusplus
9558 sparc_address_test (int arg)
9559 # else
9560 sparc_address_test (arg) int arg;
9561 #endif
9563 static pid_t child;
9564 if (!child) {
9565 child = vfork ();
9566 if (child < 0) {
9567 perror ("vfork");
9568 _exit(2);
9570 if (!child) {
9571 arg = getpid();
9572 write(-1, "", 0);
9573 _exit (arg);
9579 main ()
9581 pid_t parent = getpid ();
9582 pid_t child;
9584 sparc_address_test (0);
9586 child = vfork ();
9588 if (child == 0) {
9589 /* Here is another test for sparc vfork register problems. This
9590 test uses lots of local variables, at least as many local
9591 variables as main has allocated so far including compiler
9592 temporaries. 4 locals are enough for gcc 1.40.3 on a Solaris
9593 4.1.3 sparc, but we use 8 to be safe. A buggy compiler should
9594 reuse the register of parent for one of the local variables,
9595 since it will think that parent can't possibly be used any more
9596 in this routine. Assigning to the local variable will thus
9597 munge parent in the parent process. */
9598 pid_t
9599 p = getpid(), p1 = getpid(), p2 = getpid(), p3 = getpid(),
9600 p4 = getpid(), p5 = getpid(), p6 = getpid(), p7 = getpid();
9601 /* Convince the compiler that p..p7 are live; otherwise, it might
9602 use the same hardware register for all 8 local variables. */
9603 if (p != p1 || p != p2 || p != p3 || p != p4
9604 || p != p5 || p != p6 || p != p7)
9605 _exit(1);
9607 /* On some systems (e.g. IRIX 3.3), vfork doesn't separate parent
9608 from child file descriptors. If the child closes a descriptor
9609 before it execs or exits, this munges the parent's descriptor
9610 as well. Test for this by closing stdout in the child. */
9611 _exit(close(fileno(stdout)) != 0);
9612 } else {
9613 int status;
9614 struct stat st;
9616 while (wait(&status) != child)
9618 return (
9619 /* Was there some problem with vforking? */
9620 child < 0
9622 /* Did the child fail? (This shouldn't happen.) */
9623 || status
9625 /* Did the vfork/compiler bug occur? */
9626 || parent != getpid()
9628 /* Did the file descriptor bug occur? */
9629 || fstat(fileno(stdout), &st) != 0
9633 _ACEOF
9634 if ac_fn_c_try_run "$LINENO"; then :
9635 ac_cv_func_vfork_works=yes
9636 else
9637 ac_cv_func_vfork_works=no
9639 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
9640 conftest.$ac_objext conftest.beam conftest.$ac_ext
9644 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_vfork_works" >&5
9645 $as_echo "$ac_cv_func_vfork_works" >&6; }
9648 if test "x$ac_cv_func_fork_works" = xcross; then
9649 ac_cv_func_vfork_works=$ac_cv_func_vfork
9650 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: result $ac_cv_func_vfork_works guessed because of cross compilation" >&5
9651 $as_echo "$as_me: WARNING: result $ac_cv_func_vfork_works guessed because of cross compilation" >&2;}
9654 if test "x$ac_cv_func_vfork_works" = xyes; then
9656 $as_echo "#define HAVE_WORKING_VFORK 1" >>confdefs.h
9658 else
9660 $as_echo "#define vfork fork" >>confdefs.h
9663 if test "x$ac_cv_func_fork_works" = xyes; then
9665 $as_echo "#define HAVE_WORKING_FORK 1" >>confdefs.h
9670 # g++ on Solaris 10+ defines _XOPEN_SOURCE=600, which exposes a different
9671 # iconv() prototype.
9672 ac_ext=cpp
9673 ac_cpp='$CXXCPP $CPPFLAGS'
9674 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
9675 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
9676 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
9679 if test "X$prefix" = "XNONE"; then
9680 acl_final_prefix="$ac_default_prefix"
9681 else
9682 acl_final_prefix="$prefix"
9684 if test "X$exec_prefix" = "XNONE"; then
9685 acl_final_exec_prefix='${prefix}'
9686 else
9687 acl_final_exec_prefix="$exec_prefix"
9689 acl_save_prefix="$prefix"
9690 prefix="$acl_final_prefix"
9691 eval acl_final_exec_prefix=\"$acl_final_exec_prefix\"
9692 prefix="$acl_save_prefix"
9695 # Check whether --with-gnu-ld was given.
9696 if test "${with_gnu_ld+set}" = set; then :
9697 withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
9698 else
9699 with_gnu_ld=no
9702 # Prepare PATH_SEPARATOR.
9703 # The user is always right.
9704 if test "${PATH_SEPARATOR+set}" != set; then
9705 echo "#! /bin/sh" >conf$$.sh
9706 echo "exit 0" >>conf$$.sh
9707 chmod +x conf$$.sh
9708 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
9709 PATH_SEPARATOR=';'
9710 else
9711 PATH_SEPARATOR=:
9713 rm -f conf$$.sh
9715 ac_prog=ld
9716 if test "$GCC" = yes; then
9717 # Check if gcc -print-prog-name=ld gives a path.
9718 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by GCC" >&5
9719 $as_echo_n "checking for ld used by GCC... " >&6; }
9720 case $host in
9721 *-*-mingw*)
9722 # gcc leaves a trailing carriage return which upsets mingw
9723 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
9725 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
9726 esac
9727 case $ac_prog in
9728 # Accept absolute paths.
9729 [\\/]* | [A-Za-z]:[\\/]*)
9730 re_direlt='/[^/][^/]*/\.\./'
9731 # Canonicalize the path of ld
9732 ac_prog=`echo $ac_prog| sed 's%\\\\%/%g'`
9733 while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
9734 ac_prog=`echo $ac_prog| sed "s%$re_direlt%/%"`
9735 done
9736 test -z "$LD" && LD="$ac_prog"
9739 # If it fails, then pretend we aren't using GCC.
9740 ac_prog=ld
9743 # If it is relative, then search for the first ld in PATH.
9744 with_gnu_ld=unknown
9746 esac
9747 elif test "$with_gnu_ld" = yes; then
9748 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
9749 $as_echo_n "checking for GNU ld... " >&6; }
9750 else
9751 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
9752 $as_echo_n "checking for non-GNU ld... " >&6; }
9754 if test "${acl_cv_path_LD+set}" = set; then :
9755 $as_echo_n "(cached) " >&6
9756 else
9757 if test -z "$LD"; then
9758 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}${PATH_SEPARATOR-:}"
9759 for ac_dir in $PATH; do
9760 test -z "$ac_dir" && ac_dir=.
9761 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
9762 acl_cv_path_LD="$ac_dir/$ac_prog"
9763 # Check to see if the program is GNU ld. I'd rather use --version,
9764 # but apparently some GNU ld's only accept -v.
9765 # Break only if it was the GNU/non-GNU ld that we prefer.
9766 if "$acl_cv_path_LD" -v 2>&1 < /dev/null | egrep '(GNU|with BFD)' > /dev/null; then
9767 test "$with_gnu_ld" != no && break
9768 else
9769 test "$with_gnu_ld" != yes && break
9772 done
9773 IFS="$ac_save_ifs"
9774 else
9775 acl_cv_path_LD="$LD" # Let the user override the test with a path.
9779 LD="$acl_cv_path_LD"
9780 if test -n "$LD"; then
9781 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
9782 $as_echo "$LD" >&6; }
9783 else
9784 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9785 $as_echo "no" >&6; }
9787 test -z "$LD" && as_fn_error "no acceptable ld found in \$PATH" "$LINENO" 5
9788 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
9789 $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
9790 if test "${acl_cv_prog_gnu_ld+set}" = set; then :
9791 $as_echo_n "(cached) " >&6
9792 else
9793 # I'd rather use --version here, but apparently some GNU ld's only accept -v.
9794 if $LD -v 2>&1 </dev/null | egrep '(GNU|with BFD)' 1>&5; then
9795 acl_cv_prog_gnu_ld=yes
9796 else
9797 acl_cv_prog_gnu_ld=no
9800 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $acl_cv_prog_gnu_ld" >&5
9801 $as_echo "$acl_cv_prog_gnu_ld" >&6; }
9802 with_gnu_ld=$acl_cv_prog_gnu_ld
9806 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shared library run path origin" >&5
9807 $as_echo_n "checking for shared library run path origin... " >&6; }
9808 if test "${acl_cv_rpath+set}" = set; then :
9809 $as_echo_n "(cached) " >&6
9810 else
9812 CC="$CC" GCC="$GCC" LDFLAGS="$LDFLAGS" LD="$LD" with_gnu_ld="$with_gnu_ld" \
9813 ${CONFIG_SHELL-/bin/sh} "$ac_aux_dir/config.rpath" "$host" > conftest.sh
9814 . ./conftest.sh
9815 rm -f ./conftest.sh
9816 acl_cv_rpath=done
9819 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $acl_cv_rpath" >&5
9820 $as_echo "$acl_cv_rpath" >&6; }
9821 wl="$acl_cv_wl"
9822 libext="$acl_cv_libext"
9823 shlibext="$acl_cv_shlibext"
9824 hardcode_libdir_flag_spec="$acl_cv_hardcode_libdir_flag_spec"
9825 hardcode_libdir_separator="$acl_cv_hardcode_libdir_separator"
9826 hardcode_direct="$acl_cv_hardcode_direct"
9827 hardcode_minus_L="$acl_cv_hardcode_minus_L"
9828 # Check whether --enable-rpath was given.
9829 if test "${enable_rpath+set}" = set; then :
9830 enableval=$enable_rpath; :
9831 else
9832 enable_rpath=yes
9842 use_additional=yes
9844 acl_save_prefix="$prefix"
9845 prefix="$acl_final_prefix"
9846 acl_save_exec_prefix="$exec_prefix"
9847 exec_prefix="$acl_final_exec_prefix"
9849 eval additional_includedir=\"$includedir\"
9850 eval additional_libdir=\"$libdir\"
9852 exec_prefix="$acl_save_exec_prefix"
9853 prefix="$acl_save_prefix"
9856 # Check whether --with-libiconv-prefix was given.
9857 if test "${with_libiconv_prefix+set}" = set; then :
9858 withval=$with_libiconv_prefix;
9859 if test "X$withval" = "Xno"; then
9860 use_additional=no
9861 else
9862 if test "X$withval" = "X"; then
9864 acl_save_prefix="$prefix"
9865 prefix="$acl_final_prefix"
9866 acl_save_exec_prefix="$exec_prefix"
9867 exec_prefix="$acl_final_exec_prefix"
9869 eval additional_includedir=\"$includedir\"
9870 eval additional_libdir=\"$libdir\"
9872 exec_prefix="$acl_save_exec_prefix"
9873 prefix="$acl_save_prefix"
9875 else
9876 additional_includedir="$withval/include"
9877 additional_libdir="$withval/lib"
9883 LIBICONV=
9884 LTLIBICONV=
9885 INCICONV=
9886 rpathdirs=
9887 ltrpathdirs=
9888 names_already_handled=
9889 names_next_round='iconv '
9890 while test -n "$names_next_round"; do
9891 names_this_round="$names_next_round"
9892 names_next_round=
9893 for name in $names_this_round; do
9894 already_handled=
9895 for n in $names_already_handled; do
9896 if test "$n" = "$name"; then
9897 already_handled=yes
9898 break
9900 done
9901 if test -z "$already_handled"; then
9902 names_already_handled="$names_already_handled $name"
9903 uppername=`echo "$name" | sed -e 'y|abcdefghijklmnopqrstuvwxyz./-|ABCDEFGHIJKLMNOPQRSTUVWXYZ___|'`
9904 eval value=\"\$HAVE_LIB$uppername\"
9905 if test -n "$value"; then
9906 if test "$value" = yes; then
9907 eval value=\"\$LIB$uppername\"
9908 test -z "$value" || LIBICONV="${LIBICONV}${LIBICONV:+ }$value"
9909 eval value=\"\$LTLIB$uppername\"
9910 test -z "$value" || LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }$value"
9911 else
9914 else
9915 found_dir=
9916 found_la=
9917 found_so=
9918 found_a=
9919 if test $use_additional = yes; then
9920 if test -n "$shlibext" && test -f "$additional_libdir/lib$name.$shlibext"; then
9921 found_dir="$additional_libdir"
9922 found_so="$additional_libdir/lib$name.$shlibext"
9923 if test -f "$additional_libdir/lib$name.la"; then
9924 found_la="$additional_libdir/lib$name.la"
9926 else
9927 if test -f "$additional_libdir/lib$name.$libext"; then
9928 found_dir="$additional_libdir"
9929 found_a="$additional_libdir/lib$name.$libext"
9930 if test -f "$additional_libdir/lib$name.la"; then
9931 found_la="$additional_libdir/lib$name.la"
9936 if test "X$found_dir" = "X"; then
9937 for x in $LDFLAGS $LTLIBICONV; do
9939 acl_save_prefix="$prefix"
9940 prefix="$acl_final_prefix"
9941 acl_save_exec_prefix="$exec_prefix"
9942 exec_prefix="$acl_final_exec_prefix"
9943 eval x=\"$x\"
9944 exec_prefix="$acl_save_exec_prefix"
9945 prefix="$acl_save_prefix"
9947 case "$x" in
9948 -L*)
9949 dir=`echo "X$x" | sed -e 's/^X-L//'`
9950 if test -n "$shlibext" && test -f "$dir/lib$name.$shlibext"; then
9951 found_dir="$dir"
9952 found_so="$dir/lib$name.$shlibext"
9953 if test -f "$dir/lib$name.la"; then
9954 found_la="$dir/lib$name.la"
9956 else
9957 if test -f "$dir/lib$name.$libext"; then
9958 found_dir="$dir"
9959 found_a="$dir/lib$name.$libext"
9960 if test -f "$dir/lib$name.la"; then
9961 found_la="$dir/lib$name.la"
9966 esac
9967 if test "X$found_dir" != "X"; then
9968 break
9970 done
9972 if test "X$found_dir" != "X"; then
9973 LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-L$found_dir -l$name"
9974 if test "X$found_so" != "X"; then
9975 if test "$enable_rpath" = no || test "X$found_dir" = "X/usr/lib"; then
9976 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
9977 else
9978 haveit=
9979 for x in $ltrpathdirs; do
9980 if test "X$x" = "X$found_dir"; then
9981 haveit=yes
9982 break
9984 done
9985 if test -z "$haveit"; then
9986 ltrpathdirs="$ltrpathdirs $found_dir"
9988 if test "$hardcode_direct" = yes; then
9989 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
9990 else
9991 if test -n "$hardcode_libdir_flag_spec" && test "$hardcode_minus_L" = no; then
9992 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
9993 haveit=
9994 for x in $rpathdirs; do
9995 if test "X$x" = "X$found_dir"; then
9996 haveit=yes
9997 break
9999 done
10000 if test -z "$haveit"; then
10001 rpathdirs="$rpathdirs $found_dir"
10003 else
10004 haveit=
10005 for x in $LDFLAGS $LIBICONV; do
10007 acl_save_prefix="$prefix"
10008 prefix="$acl_final_prefix"
10009 acl_save_exec_prefix="$exec_prefix"
10010 exec_prefix="$acl_final_exec_prefix"
10011 eval x=\"$x\"
10012 exec_prefix="$acl_save_exec_prefix"
10013 prefix="$acl_save_prefix"
10015 if test "X$x" = "X-L$found_dir"; then
10016 haveit=yes
10017 break
10019 done
10020 if test -z "$haveit"; then
10021 LIBICONV="${LIBICONV}${LIBICONV:+ }-L$found_dir"
10023 if test "$hardcode_minus_L" != no; then
10024 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
10025 else
10026 LIBICONV="${LIBICONV}${LIBICONV:+ }-l$name"
10031 else
10032 if test "X$found_a" != "X"; then
10033 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_a"
10034 else
10035 LIBICONV="${LIBICONV}${LIBICONV:+ }-L$found_dir -l$name"
10038 additional_includedir=
10039 case "$found_dir" in
10040 */lib | */lib/)
10041 basedir=`echo "X$found_dir" | sed -e 's,^X,,' -e 's,/lib/*$,,'`
10042 additional_includedir="$basedir/include"
10044 esac
10045 if test "X$additional_includedir" != "X"; then
10046 if test "X$additional_includedir" != "X/usr/include"; then
10047 haveit=
10048 if test "X$additional_includedir" = "X/usr/local/include"; then
10049 if test -n "$GCC"; then
10050 case $host_os in
10051 linux*) haveit=yes;;
10052 esac
10055 if test -z "$haveit"; then
10056 for x in $CPPFLAGS $INCICONV; do
10058 acl_save_prefix="$prefix"
10059 prefix="$acl_final_prefix"
10060 acl_save_exec_prefix="$exec_prefix"
10061 exec_prefix="$acl_final_exec_prefix"
10062 eval x=\"$x\"
10063 exec_prefix="$acl_save_exec_prefix"
10064 prefix="$acl_save_prefix"
10066 if test "X$x" = "X-I$additional_includedir"; then
10067 haveit=yes
10068 break
10070 done
10071 if test -z "$haveit"; then
10072 if test -d "$additional_includedir"; then
10073 INCICONV="${INCICONV}${INCICONV:+ }-I$additional_includedir"
10079 if test -n "$found_la"; then
10080 save_libdir="$libdir"
10081 case "$found_la" in
10082 */* | *\\*) . "$found_la" ;;
10083 *) . "./$found_la" ;;
10084 esac
10085 libdir="$save_libdir"
10086 for dep in $dependency_libs; do
10087 case "$dep" in
10088 -L*)
10089 additional_libdir=`echo "X$dep" | sed -e 's/^X-L//'`
10090 if test "X$additional_libdir" != "X/usr/lib"; then
10091 haveit=
10092 if test "X$additional_libdir" = "X/usr/local/lib"; then
10093 if test -n "$GCC"; then
10094 case $host_os in
10095 linux*) haveit=yes;;
10096 esac
10099 if test -z "$haveit"; then
10100 haveit=
10101 for x in $LDFLAGS $LIBICONV; do
10103 acl_save_prefix="$prefix"
10104 prefix="$acl_final_prefix"
10105 acl_save_exec_prefix="$exec_prefix"
10106 exec_prefix="$acl_final_exec_prefix"
10107 eval x=\"$x\"
10108 exec_prefix="$acl_save_exec_prefix"
10109 prefix="$acl_save_prefix"
10111 if test "X$x" = "X-L$additional_libdir"; then
10112 haveit=yes
10113 break
10115 done
10116 if test -z "$haveit"; then
10117 if test -d "$additional_libdir"; then
10118 LIBICONV="${LIBICONV}${LIBICONV:+ }-L$additional_libdir"
10121 haveit=
10122 for x in $LDFLAGS $LTLIBICONV; do
10124 acl_save_prefix="$prefix"
10125 prefix="$acl_final_prefix"
10126 acl_save_exec_prefix="$exec_prefix"
10127 exec_prefix="$acl_final_exec_prefix"
10128 eval x=\"$x\"
10129 exec_prefix="$acl_save_exec_prefix"
10130 prefix="$acl_save_prefix"
10132 if test "X$x" = "X-L$additional_libdir"; then
10133 haveit=yes
10134 break
10136 done
10137 if test -z "$haveit"; then
10138 if test -d "$additional_libdir"; then
10139 LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-L$additional_libdir"
10145 -R*)
10146 dir=`echo "X$dep" | sed -e 's/^X-R//'`
10147 if test "$enable_rpath" != no; then
10148 haveit=
10149 for x in $rpathdirs; do
10150 if test "X$x" = "X$dir"; then
10151 haveit=yes
10152 break
10154 done
10155 if test -z "$haveit"; then
10156 rpathdirs="$rpathdirs $dir"
10158 haveit=
10159 for x in $ltrpathdirs; do
10160 if test "X$x" = "X$dir"; then
10161 haveit=yes
10162 break
10164 done
10165 if test -z "$haveit"; then
10166 ltrpathdirs="$ltrpathdirs $dir"
10170 -l*)
10171 names_next_round="$names_next_round "`echo "X$dep" | sed -e 's/^X-l//'`
10173 *.la)
10174 names_next_round="$names_next_round "`echo "X$dep" | sed -e 's,^X.*/,,' -e 's,^lib,,' -e 's,\.la$,,'`
10177 LIBICONV="${LIBICONV}${LIBICONV:+ }$dep"
10178 LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }$dep"
10180 esac
10181 done
10183 else
10184 LIBICONV="${LIBICONV}${LIBICONV:+ }-l$name"
10185 LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-l$name"
10189 done
10190 done
10191 if test "X$rpathdirs" != "X"; then
10192 if test -n "$hardcode_libdir_separator"; then
10193 alldirs=
10194 for found_dir in $rpathdirs; do
10195 alldirs="${alldirs}${alldirs:+$hardcode_libdir_separator}$found_dir"
10196 done
10197 acl_save_libdir="$libdir"
10198 libdir="$alldirs"
10199 eval flag=\"$hardcode_libdir_flag_spec\"
10200 libdir="$acl_save_libdir"
10201 LIBICONV="${LIBICONV}${LIBICONV:+ }$flag"
10202 else
10203 for found_dir in $rpathdirs; do
10204 acl_save_libdir="$libdir"
10205 libdir="$found_dir"
10206 eval flag=\"$hardcode_libdir_flag_spec\"
10207 libdir="$acl_save_libdir"
10208 LIBICONV="${LIBICONV}${LIBICONV:+ }$flag"
10209 done
10212 if test "X$ltrpathdirs" != "X"; then
10213 for found_dir in $ltrpathdirs; do
10214 LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-R$found_dir"
10215 done
10224 am_save_CPPFLAGS="$CPPFLAGS"
10226 for element in $INCICONV; do
10227 haveit=
10228 for x in $CPPFLAGS; do
10230 acl_save_prefix="$prefix"
10231 prefix="$acl_final_prefix"
10232 acl_save_exec_prefix="$exec_prefix"
10233 exec_prefix="$acl_final_exec_prefix"
10234 eval x=\"$x\"
10235 exec_prefix="$acl_save_exec_prefix"
10236 prefix="$acl_save_prefix"
10238 if test "X$x" = "X$element"; then
10239 haveit=yes
10240 break
10242 done
10243 if test -z "$haveit"; then
10244 CPPFLAGS="${CPPFLAGS}${CPPFLAGS:+ }$element"
10246 done
10249 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for iconv" >&5
10250 $as_echo_n "checking for iconv... " >&6; }
10251 if test "${am_cv_func_iconv+set}" = set; then :
10252 $as_echo_n "(cached) " >&6
10253 else
10255 am_cv_func_iconv="no, consider installing GNU libiconv"
10256 am_cv_lib_iconv=no
10257 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10258 /* end confdefs.h. */
10259 #include <stdlib.h>
10260 #include <iconv.h>
10262 main ()
10264 iconv_t cd = iconv_open("","");
10265 iconv(cd,NULL,NULL,NULL,NULL);
10266 iconv_close(cd);
10268 return 0;
10270 _ACEOF
10271 if ac_fn_cxx_try_link "$LINENO"; then :
10272 am_cv_func_iconv=yes
10274 rm -f core conftest.err conftest.$ac_objext \
10275 conftest$ac_exeext conftest.$ac_ext
10276 if test "$am_cv_func_iconv" != yes; then
10277 am_save_LIBS="$LIBS"
10278 LIBS="$LIBS $LIBICONV"
10279 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10280 /* end confdefs.h. */
10281 #include <stdlib.h>
10282 #include <iconv.h>
10284 main ()
10286 iconv_t cd = iconv_open("","");
10287 iconv(cd,NULL,NULL,NULL,NULL);
10288 iconv_close(cd);
10290 return 0;
10292 _ACEOF
10293 if ac_fn_cxx_try_link "$LINENO"; then :
10294 am_cv_lib_iconv=yes
10295 am_cv_func_iconv=yes
10297 rm -f core conftest.err conftest.$ac_objext \
10298 conftest$ac_exeext conftest.$ac_ext
10299 LIBS="$am_save_LIBS"
10303 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_func_iconv" >&5
10304 $as_echo "$am_cv_func_iconv" >&6; }
10305 if test "$am_cv_func_iconv" = yes; then
10307 $as_echo "#define HAVE_ICONV 1" >>confdefs.h
10310 if test "$am_cv_lib_iconv" = yes; then
10311 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to link with libiconv" >&5
10312 $as_echo_n "checking how to link with libiconv... " >&6; }
10313 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIBICONV" >&5
10314 $as_echo "$LIBICONV" >&6; }
10315 else
10316 CPPFLAGS="$am_save_CPPFLAGS"
10317 LIBICONV=
10318 LTLIBICONV=
10323 if test "$am_cv_func_iconv" = yes; then
10324 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for iconv declaration" >&5
10325 $as_echo_n "checking for iconv declaration... " >&6; }
10326 if test "${am_cv_proto_iconv+set}" = set; then :
10327 $as_echo_n "(cached) " >&6
10328 else
10330 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10331 /* end confdefs.h. */
10333 #include <stdlib.h>
10334 #include <iconv.h>
10335 extern
10336 #ifdef __cplusplus
10338 #endif
10339 #if defined(__STDC__) || defined(__cplusplus)
10340 size_t iconv (iconv_t cd, char * *inbuf, size_t *inbytesleft, char * *outbuf, size_t *outbytesleft);
10341 #else
10342 size_t iconv();
10343 #endif
10346 main ()
10350 return 0;
10352 _ACEOF
10353 if ac_fn_cxx_try_compile "$LINENO"; then :
10354 am_cv_proto_iconv_arg1=""
10355 else
10356 am_cv_proto_iconv_arg1="const"
10358 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10359 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);"
10362 am_cv_proto_iconv=`echo "$am_cv_proto_iconv" | tr -s ' ' | sed -e 's/( /(/'`
10363 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${ac_t:-
10364 }$am_cv_proto_iconv" >&5
10365 $as_echo "${ac_t:-
10366 }$am_cv_proto_iconv" >&6; }
10368 cat >>confdefs.h <<_ACEOF
10369 #define ICONV_CONST $am_cv_proto_iconv_arg1
10370 _ACEOF
10374 ac_ext=c
10375 ac_cpp='$CPP $CPPFLAGS'
10376 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
10377 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
10378 ac_compiler_gnu=$ac_cv_c_compiler_gnu
10381 # Until we have in-tree GNU iconv:
10382 LIBICONV_DEP=
10386 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for LC_MESSAGES" >&5
10387 $as_echo_n "checking for LC_MESSAGES... " >&6; }
10388 if test "${am_cv_val_LC_MESSAGES+set}" = set; then :
10389 $as_echo_n "(cached) " >&6
10390 else
10391 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10392 /* end confdefs.h. */
10393 #include <locale.h>
10395 main ()
10397 return LC_MESSAGES
10399 return 0;
10401 _ACEOF
10402 if ac_fn_c_try_link "$LINENO"; then :
10403 am_cv_val_LC_MESSAGES=yes
10404 else
10405 am_cv_val_LC_MESSAGES=no
10407 rm -f core conftest.err conftest.$ac_objext \
10408 conftest$ac_exeext conftest.$ac_ext
10410 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_val_LC_MESSAGES" >&5
10411 $as_echo "$am_cv_val_LC_MESSAGES" >&6; }
10412 if test $am_cv_val_LC_MESSAGES = yes; then
10414 $as_echo "#define HAVE_LC_MESSAGES 1" >>confdefs.h
10420 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for nl_langinfo and CODESET" >&5
10421 $as_echo_n "checking for nl_langinfo and CODESET... " >&6; }
10422 if test "${am_cv_langinfo_codeset+set}" = set; then :
10423 $as_echo_n "(cached) " >&6
10424 else
10425 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10426 /* end confdefs.h. */
10427 #include <langinfo.h>
10429 main ()
10431 char* cs = nl_langinfo(CODESET);
10433 return 0;
10435 _ACEOF
10436 if ac_fn_c_try_link "$LINENO"; then :
10437 am_cv_langinfo_codeset=yes
10438 else
10439 am_cv_langinfo_codeset=no
10441 rm -f core conftest.err conftest.$ac_objext \
10442 conftest$ac_exeext conftest.$ac_ext
10445 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_langinfo_codeset" >&5
10446 $as_echo "$am_cv_langinfo_codeset" >&6; }
10447 if test $am_cv_langinfo_codeset = yes; then
10449 $as_echo "#define HAVE_LANGINFO_CODESET 1" >>confdefs.h
10454 # We will need to find libiberty.h and ansidecl.h
10455 saved_CFLAGS="$CFLAGS"
10456 CFLAGS="$CFLAGS -I${srcdir} -I${srcdir}/../include $GMPINC"
10457 saved_CXXFLAGS="$CXXFLAGS"
10458 CXXFLAGS="$CXXFLAGS -I${srcdir} -I${srcdir}/../include $GMPINC"
10459 for ac_func in getenv atol asprintf sbrk abort atof getcwd getwd \
10460 strsignal strstr stpcpy strverscmp \
10461 errno snprintf vsnprintf vasprintf malloc realloc calloc \
10462 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
10464 ac_tr_decl=`$as_echo "HAVE_DECL_$ac_func" | $as_tr_cpp`
10465 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $ac_func is declared" >&5
10466 $as_echo_n "checking whether $ac_func is declared... " >&6; }
10467 if { as_var=gcc_cv_have_decl_$ac_func; eval "test \"\${$as_var+set}\" = set"; }; then :
10468 $as_echo_n "(cached) " >&6
10469 else
10470 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10471 /* end confdefs.h. */
10472 #undef $ac_tr_decl
10473 #define $ac_tr_decl 1
10475 #include "ansidecl.h"
10476 #include "system.h"
10479 main ()
10481 #ifndef $ac_func
10482 char *(*pfn) = (char *(*)) $ac_func ;
10483 #endif
10485 return 0;
10487 _ACEOF
10488 if ac_fn_c_try_compile "$LINENO"; then :
10489 eval "gcc_cv_have_decl_$ac_func=yes"
10490 else
10491 eval "gcc_cv_have_decl_$ac_func=no"
10493 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10496 if eval "test \"`echo '$gcc_cv_have_decl_'$ac_func`\" = yes"; then
10497 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
10498 $as_echo "yes" >&6; } ; cat >>confdefs.h <<_ACEOF
10499 #define $ac_tr_decl 1
10500 _ACEOF
10502 else
10503 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10504 $as_echo "no" >&6; } ; cat >>confdefs.h <<_ACEOF
10505 #define $ac_tr_decl 0
10506 _ACEOF
10510 done
10513 for ac_func in getrlimit setrlimit getrusage
10515 ac_tr_decl=`$as_echo "HAVE_DECL_$ac_func" | $as_tr_cpp`
10516 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $ac_func is declared" >&5
10517 $as_echo_n "checking whether $ac_func is declared... " >&6; }
10518 if { as_var=gcc_cv_have_decl_$ac_func; eval "test \"\${$as_var+set}\" = set"; }; then :
10519 $as_echo_n "(cached) " >&6
10520 else
10521 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10522 /* end confdefs.h. */
10523 #undef $ac_tr_decl
10524 #define $ac_tr_decl 1
10526 #include "ansidecl.h"
10527 #include "system.h"
10528 #ifdef HAVE_SYS_RESOURCE_H
10529 #include <sys/resource.h>
10530 #endif
10534 main ()
10536 #ifndef $ac_func
10537 char *(*pfn) = (char *(*)) $ac_func ;
10538 #endif
10540 return 0;
10542 _ACEOF
10543 if ac_fn_c_try_compile "$LINENO"; then :
10544 eval "gcc_cv_have_decl_$ac_func=yes"
10545 else
10546 eval "gcc_cv_have_decl_$ac_func=no"
10548 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10551 if eval "test \"`echo '$gcc_cv_have_decl_'$ac_func`\" = yes"; then
10552 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
10553 $as_echo "yes" >&6; } ; cat >>confdefs.h <<_ACEOF
10554 #define $ac_tr_decl 1
10555 _ACEOF
10557 else
10558 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10559 $as_echo "no" >&6; } ; cat >>confdefs.h <<_ACEOF
10560 #define $ac_tr_decl 0
10561 _ACEOF
10565 done
10568 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10569 /* end confdefs.h. */
10571 #include "ansidecl.h"
10572 #include "system.h"
10573 #ifdef HAVE_SYS_RESOURCE_H
10574 #include <sys/resource.h>
10575 #endif
10578 main ()
10580 rlim_t l = 0;
10582 return 0;
10584 _ACEOF
10585 if ac_fn_c_try_compile "$LINENO"; then :
10587 else
10589 $as_echo "#define rlim_t long" >>confdefs.h
10592 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10594 # On AIX 5.2, <ldfcn.h> conflicts with <fcntl.h>, as both define incompatible
10595 # FREAD and FWRITE macros. Fortunately, for GCC's single usage of ldgetname
10596 # in collect2.c, <fcntl.h> isn't visible, but the configure test below needs
10597 # to undef these macros to get the correct value for HAVE_DECL_LDGETNAME.
10598 for ac_func in ldgetname
10600 ac_tr_decl=`$as_echo "HAVE_DECL_$ac_func" | $as_tr_cpp`
10601 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $ac_func is declared" >&5
10602 $as_echo_n "checking whether $ac_func is declared... " >&6; }
10603 if { as_var=gcc_cv_have_decl_$ac_func; eval "test \"\${$as_var+set}\" = set"; }; then :
10604 $as_echo_n "(cached) " >&6
10605 else
10606 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10607 /* end confdefs.h. */
10608 #undef $ac_tr_decl
10609 #define $ac_tr_decl 1
10611 #include "ansidecl.h"
10612 #include "system.h"
10613 #ifdef HAVE_LDFCN_H
10614 #undef FREAD
10615 #undef FWRITE
10616 #include <ldfcn.h>
10617 #endif
10621 main ()
10623 #ifndef $ac_func
10624 char *(*pfn) = (char *(*)) $ac_func ;
10625 #endif
10627 return 0;
10629 _ACEOF
10630 if ac_fn_c_try_compile "$LINENO"; then :
10631 eval "gcc_cv_have_decl_$ac_func=yes"
10632 else
10633 eval "gcc_cv_have_decl_$ac_func=no"
10635 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10638 if eval "test \"`echo '$gcc_cv_have_decl_'$ac_func`\" = yes"; then
10639 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
10640 $as_echo "yes" >&6; } ; cat >>confdefs.h <<_ACEOF
10641 #define $ac_tr_decl 1
10642 _ACEOF
10644 else
10645 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10646 $as_echo "no" >&6; } ; cat >>confdefs.h <<_ACEOF
10647 #define $ac_tr_decl 0
10648 _ACEOF
10652 done
10655 for ac_func in times
10657 ac_tr_decl=`$as_echo "HAVE_DECL_$ac_func" | $as_tr_cpp`
10658 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $ac_func is declared" >&5
10659 $as_echo_n "checking whether $ac_func is declared... " >&6; }
10660 if { as_var=gcc_cv_have_decl_$ac_func; eval "test \"\${$as_var+set}\" = set"; }; then :
10661 $as_echo_n "(cached) " >&6
10662 else
10663 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10664 /* end confdefs.h. */
10665 #undef $ac_tr_decl
10666 #define $ac_tr_decl 1
10668 #include "ansidecl.h"
10669 #include "system.h"
10670 #ifdef HAVE_SYS_TIMES_H
10671 #include <sys/times.h>
10672 #endif
10676 main ()
10678 #ifndef $ac_func
10679 char *(*pfn) = (char *(*)) $ac_func ;
10680 #endif
10682 return 0;
10684 _ACEOF
10685 if ac_fn_c_try_compile "$LINENO"; then :
10686 eval "gcc_cv_have_decl_$ac_func=yes"
10687 else
10688 eval "gcc_cv_have_decl_$ac_func=no"
10690 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10693 if eval "test \"`echo '$gcc_cv_have_decl_'$ac_func`\" = yes"; then
10694 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
10695 $as_echo "yes" >&6; } ; cat >>confdefs.h <<_ACEOF
10696 #define $ac_tr_decl 1
10697 _ACEOF
10699 else
10700 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10701 $as_echo "no" >&6; } ; cat >>confdefs.h <<_ACEOF
10702 #define $ac_tr_decl 0
10703 _ACEOF
10707 done
10710 for ac_func in sigaltstack
10712 ac_tr_decl=`$as_echo "HAVE_DECL_$ac_func" | $as_tr_cpp`
10713 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $ac_func is declared" >&5
10714 $as_echo_n "checking whether $ac_func is declared... " >&6; }
10715 if { as_var=gcc_cv_have_decl_$ac_func; eval "test \"\${$as_var+set}\" = set"; }; then :
10716 $as_echo_n "(cached) " >&6
10717 else
10718 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10719 /* end confdefs.h. */
10720 #undef $ac_tr_decl
10721 #define $ac_tr_decl 1
10723 #include "ansidecl.h"
10724 #include "system.h"
10725 #include <signal.h>
10729 main ()
10731 #ifndef $ac_func
10732 char *(*pfn) = (char *(*)) $ac_func ;
10733 #endif
10735 return 0;
10737 _ACEOF
10738 if ac_fn_c_try_compile "$LINENO"; then :
10739 eval "gcc_cv_have_decl_$ac_func=yes"
10740 else
10741 eval "gcc_cv_have_decl_$ac_func=no"
10743 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10746 if eval "test \"`echo '$gcc_cv_have_decl_'$ac_func`\" = yes"; then
10747 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
10748 $as_echo "yes" >&6; } ; cat >>confdefs.h <<_ACEOF
10749 #define $ac_tr_decl 1
10750 _ACEOF
10752 else
10753 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10754 $as_echo "no" >&6; } ; cat >>confdefs.h <<_ACEOF
10755 #define $ac_tr_decl 0
10756 _ACEOF
10760 done
10763 # g++ on Solaris 10+ defines _XOPEN_SOURCE=600, which hides the madvise()
10764 # prototype.
10765 ac_ext=cpp
10766 ac_cpp='$CXXCPP $CPPFLAGS'
10767 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
10768 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
10769 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
10771 for ac_func in madvise
10773 ac_tr_decl=`$as_echo "HAVE_DECL_$ac_func" | $as_tr_cpp`
10774 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $ac_func is declared" >&5
10775 $as_echo_n "checking whether $ac_func is declared... " >&6; }
10776 if { as_var=gcc_cv_have_decl_$ac_func; eval "test \"\${$as_var+set}\" = set"; }; then :
10777 $as_echo_n "(cached) " >&6
10778 else
10779 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10780 /* end confdefs.h. */
10781 #undef $ac_tr_decl
10782 #define $ac_tr_decl 1
10784 #include "ansidecl.h"
10785 #include "system.h"
10789 main ()
10791 #ifndef $ac_func
10792 char *(*pfn) = (char *(*)) $ac_func ;
10793 #endif
10795 return 0;
10797 _ACEOF
10798 if ac_fn_cxx_try_compile "$LINENO"; then :
10799 eval "gcc_cv_have_decl_$ac_func=yes"
10800 else
10801 eval "gcc_cv_have_decl_$ac_func=no"
10803 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10806 if eval "test \"`echo '$gcc_cv_have_decl_'$ac_func`\" = yes"; then
10807 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
10808 $as_echo "yes" >&6; } ; cat >>confdefs.h <<_ACEOF
10809 #define $ac_tr_decl 1
10810 _ACEOF
10812 else
10813 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10814 $as_echo "no" >&6; } ; cat >>confdefs.h <<_ACEOF
10815 #define $ac_tr_decl 0
10816 _ACEOF
10820 done
10822 ac_ext=c
10823 ac_cpp='$CPP $CPPFLAGS'
10824 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
10825 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
10826 ac_compiler_gnu=$ac_cv_c_compiler_gnu
10829 # More time-related stuff.
10830 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for struct tms" >&5
10831 $as_echo_n "checking for struct tms... " >&6; }
10832 if test "${ac_cv_struct_tms+set}" = set; then :
10833 $as_echo_n "(cached) " >&6
10834 else
10836 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10837 /* end confdefs.h. */
10839 #include "ansidecl.h"
10840 #include "system.h"
10841 #ifdef HAVE_SYS_TIMES_H
10842 #include <sys/times.h>
10843 #endif
10846 main ()
10848 struct tms tms;
10850 return 0;
10852 _ACEOF
10853 if ac_fn_c_try_compile "$LINENO"; then :
10854 ac_cv_struct_tms=yes
10855 else
10856 ac_cv_struct_tms=no
10858 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10860 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_struct_tms" >&5
10861 $as_echo "$ac_cv_struct_tms" >&6; }
10862 if test $ac_cv_struct_tms = yes; then
10864 $as_echo "#define HAVE_STRUCT_TMS 1" >>confdefs.h
10868 # use gcc_cv_* here because this doesn't match the behavior of AC_CHECK_TYPE.
10869 # revisit after autoconf 2.50.
10870 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for clock_t" >&5
10871 $as_echo_n "checking for clock_t... " >&6; }
10872 if test "${gcc_cv_type_clock_t+set}" = set; then :
10873 $as_echo_n "(cached) " >&6
10874 else
10876 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10877 /* end confdefs.h. */
10879 #include "ansidecl.h"
10880 #include "system.h"
10883 main ()
10885 clock_t x;
10887 return 0;
10889 _ACEOF
10890 if ac_fn_c_try_compile "$LINENO"; then :
10891 gcc_cv_type_clock_t=yes
10892 else
10893 gcc_cv_type_clock_t=no
10895 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10897 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_type_clock_t" >&5
10898 $as_echo "$gcc_cv_type_clock_t" >&6; }
10899 if test $gcc_cv_type_clock_t = yes; then
10901 $as_echo "#define HAVE_CLOCK_T 1" >>confdefs.h
10905 # Check if F_SETLKW is supported by fcntl.
10906 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for F_SETLKW" >&5
10907 $as_echo_n "checking for F_SETLKW... " >&6; }
10908 if test "${ac_cv_f_setlkw+set}" = set; then :
10909 $as_echo_n "(cached) " >&6
10910 else
10912 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10913 /* end confdefs.h. */
10915 #include <fcntl.h>
10917 main ()
10920 struct flock fl;
10921 fl.l_whence = 0;
10922 fl.l_start = 0;
10923 fl.l_len = 0;
10924 fl.l_pid = 0;
10925 return fcntl (1, F_SETLKW, &fl);
10927 return 0;
10929 _ACEOF
10930 if ac_fn_c_try_compile "$LINENO"; then :
10931 ac_cv_f_setlkw=yes
10932 else
10933 ac_cv_f_setlkw=no
10935 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10937 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_f_setlkw" >&5
10938 $as_echo "$ac_cv_f_setlkw" >&6; }
10939 if test $ac_cv_f_setlkw = yes; then
10941 $as_echo "#define HOST_HAS_F_SETLKW 1" >>confdefs.h
10945 # Restore CFLAGS, CXXFLAGS from before the gcc_AC_NEED_DECLARATIONS tests.
10946 CFLAGS="$saved_CFLAGS"
10947 CXXFLAGS="$saved_CXXFLAGS"
10949 # mkdir takes a single argument on some systems.
10950 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if mkdir takes one argument" >&5
10951 $as_echo_n "checking if mkdir takes one argument... " >&6; }
10952 if test "${gcc_cv_mkdir_takes_one_arg+set}" = set; then :
10953 $as_echo_n "(cached) " >&6
10954 else
10955 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10956 /* end confdefs.h. */
10958 #include <sys/types.h>
10959 #ifdef HAVE_SYS_STAT_H
10960 # include <sys/stat.h>
10961 #endif
10962 #ifdef HAVE_UNISTD_H
10963 # include <unistd.h>
10964 #endif
10965 #ifdef HAVE_DIRECT_H
10966 # include <direct.h>
10967 #endif
10969 main ()
10971 mkdir ("foo", 0);
10973 return 0;
10975 _ACEOF
10976 if ac_fn_c_try_compile "$LINENO"; then :
10977 gcc_cv_mkdir_takes_one_arg=no
10978 else
10979 gcc_cv_mkdir_takes_one_arg=yes
10981 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10983 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_mkdir_takes_one_arg" >&5
10984 $as_echo "$gcc_cv_mkdir_takes_one_arg" >&6; }
10985 if test $gcc_cv_mkdir_takes_one_arg = yes ; then
10987 $as_echo "#define MKDIR_TAKES_ONE_ARG 1" >>confdefs.h
10992 # File extensions
10993 manext='.1'
10994 objext='.o'
10998 # With Setjmp/Longjmp based exception handling.
10999 # Check whether --enable-sjlj-exceptions was given.
11000 if test "${enable_sjlj_exceptions+set}" = set; then :
11001 enableval=$enable_sjlj_exceptions; case $target in
11002 *-*-hpux10*)
11003 if test $enableval != yes; then
11004 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: dwarf2 exceptions not supported, sjlj exceptions forced" >&5
11005 $as_echo "$as_me: WARNING: dwarf2 exceptions not supported, sjlj exceptions forced" >&2;}
11006 enableval=yes
11009 esac
11010 force_sjlj_exceptions=yes
11011 else
11012 case $target in
11013 *-*-hpux10*)
11014 force_sjlj_exceptions=yes
11015 enableval=yes
11017 lm32*-*-*)
11018 force_sjlj_exceptions=yes
11019 enableval=yes
11022 force_sjlj_exceptions=no
11024 esac
11027 if test $force_sjlj_exceptions = yes; then
11028 sjlj=`if test $enableval = yes; then echo 1; else echo 0; fi`
11030 cat >>confdefs.h <<_ACEOF
11031 #define CONFIG_SJLJ_EXCEPTIONS $sjlj
11032 _ACEOF
11036 # --------------------------------------------------------
11037 # Build, host, and target specific configuration fragments
11038 # --------------------------------------------------------
11040 # Collect build-machine-specific information.
11041 . ${srcdir}/config.build
11043 # Collect host-machine-specific information.
11044 . ${srcdir}/config.host
11046 target_gtfiles=
11048 # Collect target-machine-specific information.
11049 . ${srcdir}/config.gcc
11051 extra_objs="${host_extra_objs} ${extra_objs}"
11052 extra_gcc_objs="${host_extra_gcc_objs} ${extra_gcc_objs}"
11054 # Default the target-machine variables that were not explicitly set.
11055 if test x"$tm_file" = x
11056 then tm_file=$cpu_type/$cpu_type.h; fi
11058 if test x"$extra_headers" = x
11059 then extra_headers=; fi
11061 if test x$md_file = x
11062 then md_file=$cpu_type/$cpu_type.md; fi
11064 if test x$out_file = x
11065 then out_file=$cpu_type/$cpu_type.c; fi
11067 if test x"$tmake_file" = x
11068 then tmake_file=$cpu_type/t-$cpu_type
11071 # Support --enable-initfini-array.
11072 if test x$enable_initfini_array != xno; then
11073 tm_file="${tm_file} initfini-array.h"
11076 if test x"$dwarf2" = xyes
11077 then tm_file="$tm_file tm-dwarf2.h"
11080 # Say what files are being used for the output code and MD file.
11081 echo "Using \`$srcdir/config/$out_file' for machine-specific logic."
11082 echo "Using \`$srcdir/config/$md_file' as machine description file."
11084 # If any of the xm_file variables contain nonexistent files, warn
11085 # about them and drop them.
11088 for x in $build_xm_file; do
11089 if test -f $srcdir/config/$x
11090 then bx="$bx $x"
11091 else { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $srcdir/config/$x does not exist." >&5
11092 $as_echo "$as_me: WARNING: $srcdir/config/$x does not exist." >&2;}
11094 done
11095 build_xm_file="$bx"
11098 for x in $host_xm_file; do
11099 if test -f $srcdir/config/$x
11100 then hx="$hx $x"
11101 else { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $srcdir/config/$x does not exist." >&5
11102 $as_echo "$as_me: WARNING: $srcdir/config/$x does not exist." >&2;}
11104 done
11105 host_xm_file="$hx"
11108 for x in $xm_file; do
11109 if test -f $srcdir/config/$x
11110 then tx="$tx $x"
11111 else { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $srcdir/config/$x does not exist." >&5
11112 $as_echo "$as_me: WARNING: $srcdir/config/$x does not exist." >&2;}
11114 done
11115 xm_file="$tx"
11117 count=a
11118 for f in $tm_file; do
11119 count=${count}x
11120 done
11121 if test $count = ax; then
11122 echo "Using \`$srcdir/config/$tm_file' as target machine macro file."
11123 else
11124 echo "Using the following target machine macro files:"
11125 for f in $tm_file; do
11126 echo " $srcdir/config/$f"
11127 done
11130 if test x$need_64bit_hwint = xyes; then
11132 $as_echo "#define NEED_64BIT_HOST_WIDE_INT 1" >>confdefs.h
11136 if test x$use_long_long_for_widest_fast_int = xyes; then
11138 $as_echo "#define USE_LONG_LONG_FOR_WIDEST_FAST_INT 1" >>confdefs.h
11142 gnu_ld_bool=`if test x"$gnu_ld" = x"yes"; then echo 1; else echo 0; fi`
11144 cat >>confdefs.h <<_ACEOF
11145 #define HAVE_GNU_LD $gnu_ld_bool
11146 _ACEOF
11149 gnu_as_bool=`if test x"$gas" = x"yes"; then echo 1; else echo 0; fi`
11151 cat >>confdefs.h <<_ACEOF
11152 #define HAVE_GNU_AS $gnu_as_bool
11153 _ACEOF
11156 count=a
11157 for f in $host_xm_file; do
11158 count=${count}x
11159 done
11160 if test $count = a; then
11162 elif test $count = ax; then
11163 echo "Using \`$srcdir/config/$host_xm_file' as host machine macro file."
11164 else
11165 echo "Using the following host machine macro files:"
11166 for f in $host_xm_file; do
11167 echo " $srcdir/config/$f"
11168 done
11170 echo "Using ${out_host_hook_obj} for host machine hooks."
11172 if test "$host_xm_file" != "$build_xm_file"; then
11173 count=a
11174 for f in $build_xm_file; do
11175 count=${count}x
11176 done
11177 if test $count = a; then
11179 elif test $count = ax; then
11180 echo "Using \`$srcdir/config/$build_xm_file' as build machine macro file."
11181 else
11182 echo "Using the following build machine macro files:"
11183 for f in $build_xm_file; do
11184 echo " $srcdir/config/$f"
11185 done
11189 if test -n "$configured_native_system_header_dir"; then
11190 native_system_header_dir=$configured_native_system_header_dir
11192 NATIVE_SYSTEM_HEADER_DIR="$native_system_header_dir"
11195 case ${host} in
11196 powerpc*-*-darwin*)
11197 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether mcontext_t fields have underscores" >&5
11198 $as_echo_n "checking whether mcontext_t fields have underscores... " >&6; }
11199 if test "${gcc_cv_mcontext_underscores+set}" = set; then :
11200 $as_echo_n "(cached) " >&6
11201 else
11202 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11203 /* end confdefs.h. */
11205 #include <sys/cdefs.h>
11206 #include <sys/signal.h>
11207 #include <ucontext.h>
11208 int main() { mcontext_t m; if (m->ss.srr0) return 0; return 0; }
11210 _ACEOF
11211 if ac_fn_c_try_compile "$LINENO"; then :
11212 gcc_cv_mcontext_underscores=no
11213 else
11214 gcc_cv_mcontext_underscores=yes
11216 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11218 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_mcontext_underscores" >&5
11219 $as_echo "$gcc_cv_mcontext_underscores" >&6; }
11220 if test $gcc_cv_mcontext_underscores = yes; then
11222 $as_echo "#define HAS_MCONTEXT_T_UNDERSCORES /**/" >>confdefs.h
11226 esac
11228 # ---------
11229 # Threading
11230 # ---------
11232 # Check if a valid thread package
11233 case ${enable_threads} in
11234 "" | no)
11235 # No threads
11236 target_thread_file='single'
11238 yes)
11239 # default
11240 target_thread_file='single'
11242 aix | dce | lynx | mipssde | posix | rtems | \
11243 single | tpf | vxworks | win32)
11244 target_thread_file=${enable_threads}
11247 echo "${enable_threads} is an unknown thread package" 1>&2
11248 exit 1
11250 esac
11252 if test x${thread_file} = x; then
11253 # No thread file set by target-specific clauses in config.gcc,
11254 # so use file chosen by default logic above
11255 thread_file=${target_thread_file}
11258 # --------
11259 # UNSORTED
11260 # --------
11262 use_cxa_atexit=no
11263 if test x$enable___cxa_atexit = xyes || \
11264 test x$enable___cxa_atexit = x -a x$default_use_cxa_atexit = xyes; then
11265 if test x$host = x$target; then
11266 case $host in
11267 # mingw32 doesn't have __cxa_atexit but uses atexit registration
11268 # keyed to flag_use_cxa_atexit
11269 *-*-mingw32*)
11270 use_cxa_atexit=yes
11272 powerpc-ibm-aix*)
11273 use_cxa_atexit=yes
11276 ac_fn_c_check_func "$LINENO" "__cxa_atexit" "ac_cv_func___cxa_atexit"
11277 if test "x$ac_cv_func___cxa_atexit" = x""yes; then :
11278 use_cxa_atexit=yes
11279 else
11280 echo "__cxa_atexit can't be enabled on this target"
11284 esac
11285 else
11286 # We can't check for __cxa_atexit when building a cross, so assume
11287 # it is available
11288 use_cxa_atexit=yes
11290 if test x$use_cxa_atexit = xyes; then
11292 $as_echo "#define DEFAULT_USE_CXA_ATEXIT 2" >>confdefs.h
11297 # Look for a file containing extra machine modes.
11298 if test -n "$extra_modes" && test -f $srcdir/config/$extra_modes; then
11299 extra_modes_file='$(srcdir)'/config/${extra_modes}
11302 cat >>confdefs.h <<_ACEOF
11303 #define EXTRA_MODES_FILE "config/$extra_modes"
11304 _ACEOF
11308 # Convert extra_options into a form suitable for Makefile use.
11309 extra_opt_files=
11310 all_opt_files=
11311 for f in $extra_options; do
11312 extra_opt_files="$extra_opt_files \$(srcdir)/config/$f"
11313 all_opt_files="$all_opt_files $srcdir/config/$f"
11314 done
11317 # auto-host.h is the file containing items generated by autoconf and is
11318 # the first file included by config.h.
11319 # If host=build, it is correct to have bconfig include auto-host.h
11320 # as well. If host!=build, we are in error and need to do more
11321 # work to find out the build config parameters.
11322 if test x$host = x$build
11323 then
11324 build_auto=auto-host.h
11325 else
11326 # We create a subdir, then run autoconf in the subdir.
11327 # To prevent recursion we set host and build for the new
11328 # invocation of configure to the build for this invocation
11329 # of configure.
11330 tempdir=build.$$
11331 rm -rf $tempdir
11332 mkdir $tempdir
11333 cd $tempdir
11334 case ${srcdir} in
11335 /* | A-Za-z:\\/* ) realsrcdir=${srcdir};;
11336 *) realsrcdir=../${srcdir};;
11337 esac
11338 # Clearing GMPINC is necessary to prevent host headers being
11339 # used by the build compiler. Defining GENERATOR_FILE stops
11340 # system.h from including gmp.h.
11341 CC="${CC_FOR_BUILD}" CFLAGS="${CFLAGS_FOR_BUILD}" \
11342 CXX="${CXX_FOR_BUILD}" CXXFLAGS="${CXXFLAGS_FOR_BUILD}" \
11343 LD="${LD_FOR_BUILD}" LDFLAGS="${LDFLAGS_FOR_BUILD}" \
11344 GMPINC="" CPPFLAGS="${CPPFLAGS} -DGENERATOR_FILE" \
11345 ${realsrcdir}/configure \
11346 --enable-languages=${enable_languages-all} \
11347 --target=$target_alias --host=$build_alias --build=$build_alias
11349 # We just finished tests for the build machine, so rename
11350 # the file auto-build.h in the gcc directory.
11351 mv auto-host.h ../auto-build.h
11352 cd ..
11353 rm -rf $tempdir
11354 build_auto=auto-build.h
11358 tm_file="${tm_file} defaults.h"
11359 tm_p_file="${tm_p_file} tm-preds.h"
11360 host_xm_file="auto-host.h ansidecl.h ${host_xm_file}"
11361 build_xm_file="${build_auto} ansidecl.h ${build_xm_file}"
11362 # We don't want ansidecl.h in target files, write code there in ISO/GNU C.
11363 # put this back in temporarily.
11364 xm_file="auto-host.h ansidecl.h ${xm_file}"
11366 # --------
11367 # UNSORTED
11368 # --------
11370 # Compile in configure arguments.
11371 if test -f configargs.h ; then
11372 # Being re-configured.
11373 gcc_config_arguments=`grep configuration_arguments configargs.h | sed -e 's/.*"\([^"]*\)".*/\1/'`
11374 gcc_config_arguments="$gcc_config_arguments : (reconfigured) $TOPLEVEL_CONFIGURE_ARGUMENTS"
11375 else
11376 gcc_config_arguments="$TOPLEVEL_CONFIGURE_ARGUMENTS"
11379 # Double all backslashes and backslash all quotes to turn
11380 # gcc_config_arguments into a C string.
11381 sed -e 's/\\/\\\\/g; s/"/\\"/g' <<EOF >conftest.out
11382 $gcc_config_arguments
11384 gcc_config_arguments_str=`cat conftest.out`
11385 rm -f conftest.out
11387 cat > configargs.h <<EOF
11388 /* Generated automatically. */
11389 static const char configuration_arguments[] = "$gcc_config_arguments_str";
11390 static const char thread_model[] = "$thread_file";
11392 static const struct {
11393 const char *name, *value;
11394 } configure_default_options[] = $configure_default_options;
11397 gcc_BASEVER=`cat $srcdir/BASE-VER`
11398 gcc_DEVPHASE=`cat $srcdir/DEV-PHASE`
11399 gcc_DATESTAMP=`cat $srcdir/DATESTAMP`
11400 if test -f $srcdir/REVISION ; then
11401 gcc_REVISION=`cat $srcdir/REVISION`
11402 else
11403 gcc_REVISION=""
11405 cat > plugin-version.h <<EOF
11406 #include "configargs.h"
11408 #define GCCPLUGIN_VERSION_MAJOR `echo $gcc_BASEVER | sed -e 's/^\([0-9]*\).*$/\1/'`
11409 #define GCCPLUGIN_VERSION_MINOR `echo $gcc_BASEVER | sed -e 's/^[0-9]*\.\([0-9]*\).*$/\1/'`
11410 #define GCCPLUGIN_VERSION_PATCHLEVEL `echo $gcc_BASEVER | sed -e 's/^[0-9]*\.[0-9]*\.\([0-9]*\)$/\1/'`
11411 #define GCCPLUGIN_VERSION (GCCPLUGIN_VERSION_MAJOR*1000 + GCCPLUGIN_VERSION_MINOR)
11413 static char basever[] = "$gcc_BASEVER";
11414 static char datestamp[] = "$gcc_DATESTAMP";
11415 static char devphase[] = "$gcc_DEVPHASE";
11416 static char revision[] = "$gcc_REVISION";
11418 /* FIXME plugins: We should make the version information more precise.
11419 One way to do is to add a checksum. */
11421 static struct plugin_gcc_version gcc_version = {basever, datestamp,
11422 devphase, revision,
11423 configuration_arguments};
11426 # Internationalization
11427 # If we haven't got the data from the intl directory,
11428 # assume NLS is disabled.
11429 USE_NLS=no
11430 LIBINTL=
11431 LIBINTL_DEP=
11432 INCINTL=
11433 XGETTEXT=
11434 GMSGFMT=
11435 POSUB=
11437 if test -f ../intl/config.intl; then
11438 . ../intl/config.intl
11440 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether NLS is requested" >&5
11441 $as_echo_n "checking whether NLS is requested... " >&6; }
11442 if test x"$USE_NLS" != xyes; then
11443 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11444 $as_echo "no" >&6; }
11445 else
11446 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11447 $as_echo "yes" >&6; }
11449 $as_echo "#define ENABLE_NLS 1" >>confdefs.h
11452 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for catalogs to be installed" >&5
11453 $as_echo_n "checking for catalogs to be installed... " >&6; }
11454 # Look for .po and .gmo files in the source directory.
11455 CATALOGS=
11456 XLINGUAS=
11457 for cat in $srcdir/po/*.gmo $srcdir/po/*.po; do
11458 # If there aren't any .gmo files the shell will give us the
11459 # literal string "../path/to/srcdir/po/*.gmo" which has to be
11460 # weeded out.
11461 case "$cat" in *\**)
11462 continue;;
11463 esac
11464 # The quadruple backslash is collapsed to a double backslash
11465 # by the backticks, then collapsed again by the double quotes,
11466 # leaving us with one backslash in the sed expression (right
11467 # before the dot that mustn't act as a wildcard).
11468 cat=`echo $cat | sed -e "s!$srcdir/po/!!" -e "s!\\\\.po!.gmo!"`
11469 lang=`echo $cat | sed -e "s!\\\\.gmo!!"`
11470 # The user is allowed to set LINGUAS to a list of languages to
11471 # install catalogs for. If it's empty that means "all of them."
11472 if test "x$LINGUAS" = x; then
11473 CATALOGS="$CATALOGS $cat"
11474 XLINGUAS="$XLINGUAS $lang"
11475 else
11476 case "$LINGUAS" in *$lang*)
11477 CATALOGS="$CATALOGS $cat"
11478 XLINGUAS="$XLINGUAS $lang"
11480 esac
11482 done
11483 LINGUAS="$XLINGUAS"
11484 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LINGUAS" >&5
11485 $as_echo "$LINGUAS" >&6; }
11488 DATADIRNAME=share
11490 INSTOBJEXT=.mo
11492 GENCAT=gencat
11494 CATOBJEXT=.gmo
11498 # If LIBINTL contains LIBICONV, then clear LIBICONV so we don't get
11499 # -liconv on the link line twice.
11500 case "$LIBINTL" in *$LIBICONV*)
11501 LIBICONV= ;;
11502 esac
11504 # Check whether --enable-secureplt was given.
11505 if test "${enable_secureplt+set}" = set; then :
11506 enableval=$enable_secureplt;
11510 # Check whether --enable-leading-mingw64-underscores was given.
11511 if test "${enable_leading_mingw64_underscores+set}" = set; then :
11512 enableval=$enable_leading_mingw64_underscores;
11515 if test x"$enable_leading_mingw64_underscores" = xyes ; then :
11517 $as_echo "#define USE_MINGW64_LEADING_UNDERSCORES 1" >>confdefs.h
11521 # Check whether --enable-cld was given.
11522 if test "${enable_cld+set}" = set; then :
11523 enableval=$enable_cld;
11524 else
11525 enable_cld=no
11529 # Check whether --enable-frame-pointer was given.
11530 if test "${enable_frame_pointer+set}" = set; then :
11531 enableval=$enable_frame_pointer;
11532 else
11534 case $target_os in
11535 linux* | darwin[8912]*)
11536 # Enable -fomit-frame-pointer by default for Linux and Darwin with
11537 # DWARF2.
11538 enable_frame_pointer=no
11541 enable_frame_pointer=yes
11543 esac
11548 # Windows32 Registry support for specifying GCC installation paths.
11549 # Check whether --enable-win32-registry was given.
11550 if test "${enable_win32_registry+set}" = set; then :
11551 enableval=$enable_win32_registry;
11555 case $host_os in
11556 win32 | pe | cygwin* | mingw32* | uwin*)
11557 if test "x$enable_win32_registry" != xno; then
11558 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing RegOpenKeyExA" >&5
11559 $as_echo_n "checking for library containing RegOpenKeyExA... " >&6; }
11560 if test "${ac_cv_search_RegOpenKeyExA+set}" = set; then :
11561 $as_echo_n "(cached) " >&6
11562 else
11563 ac_func_search_save_LIBS=$LIBS
11564 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11565 /* end confdefs.h. */
11567 /* Override any GCC internal prototype to avoid an error.
11568 Use char because int might match the return type of a GCC
11569 builtin and then its argument prototype would still apply. */
11570 #ifdef __cplusplus
11571 extern "C"
11572 #endif
11573 char RegOpenKeyExA ();
11575 main ()
11577 return RegOpenKeyExA ();
11579 return 0;
11581 _ACEOF
11582 for ac_lib in '' advapi32; do
11583 if test -z "$ac_lib"; then
11584 ac_res="none required"
11585 else
11586 ac_res=-l$ac_lib
11587 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
11589 if ac_fn_c_try_link "$LINENO"; then :
11590 ac_cv_search_RegOpenKeyExA=$ac_res
11592 rm -f core conftest.err conftest.$ac_objext \
11593 conftest$ac_exeext
11594 if test "${ac_cv_search_RegOpenKeyExA+set}" = set; then :
11595 break
11597 done
11598 if test "${ac_cv_search_RegOpenKeyExA+set}" = set; then :
11600 else
11601 ac_cv_search_RegOpenKeyExA=no
11603 rm conftest.$ac_ext
11604 LIBS=$ac_func_search_save_LIBS
11606 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_RegOpenKeyExA" >&5
11607 $as_echo "$ac_cv_search_RegOpenKeyExA" >&6; }
11608 ac_res=$ac_cv_search_RegOpenKeyExA
11609 if test "$ac_res" != no; then :
11610 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
11612 else
11613 enable_win32_registry=no
11618 if test "x$enable_win32_registry" != xno; then
11620 $as_echo "#define ENABLE_WIN32_REGISTRY 1" >>confdefs.h
11623 if test "x$enable_win32_registry" != xyes \
11624 && test "x$enable_win32_registry" != x; then
11626 cat >>confdefs.h <<_ACEOF
11627 #define WIN32_REGISTRY_KEY "$enable_win32_registry"
11628 _ACEOF
11633 esac
11635 # Get an absolute path to the GCC top-level source directory
11636 holddir=`${PWDCMD-pwd}`
11637 cd $srcdir
11638 topdir=`${PWDCMD-pwd}`
11639 cd $holddir
11641 # Conditionalize the makefile for this host machine.
11642 xmake_file=
11643 for f in ${host_xmake_file}
11645 if test -f ${srcdir}/config/$f
11646 then
11647 xmake_file="${xmake_file} \$(srcdir)/config/$f"
11649 done
11651 # Conditionalize the makefile for this target machine.
11652 tmake_file_=
11653 for f in ${tmake_file}
11655 if test -f ${srcdir}/config/$f
11656 then
11657 tmake_file_="${tmake_file_} \$(srcdir)/config/$f"
11659 done
11660 tmake_file="${tmake_file_}"
11662 out_object_file=`basename $out_file .c`.o
11663 common_out_object_file=`basename $common_out_file .c`.o
11665 tm_file_list="options.h"
11666 tm_include_list="options.h insn-constants.h"
11667 for f in $tm_file; do
11668 case $f in
11669 ./* )
11670 f=`echo $f | sed 's/^..//'`
11671 tm_file_list="${tm_file_list} $f"
11672 tm_include_list="${tm_include_list} $f"
11674 defaults.h )
11675 tm_file_list="${tm_file_list} \$(srcdir)/$f"
11676 tm_include_list="${tm_include_list} $f"
11679 tm_file_list="${tm_file_list} \$(srcdir)/config/$f"
11680 tm_include_list="${tm_include_list} config/$f"
11682 esac
11683 done
11685 tm_p_file_list=
11686 tm_p_include_list=
11687 for f in $tm_p_file; do
11688 case $f in
11689 tm-preds.h )
11690 tm_p_file_list="${tm_p_file_list} $f"
11691 tm_p_include_list="${tm_p_include_list} $f"
11694 tm_p_file_list="${tm_p_file_list} \$(srcdir)/config/$f"
11695 tm_p_include_list="${tm_p_include_list} config/$f"
11696 esac
11697 done
11699 xm_file_list=
11700 xm_include_list=
11701 for f in $xm_file; do
11702 case $f in
11703 ansidecl.h )
11704 xm_file_list="${xm_file_list} \$(srcdir)/../include/$f"
11705 xm_include_list="${xm_include_list} $f"
11707 auto-host.h )
11708 xm_file_list="${xm_file_list} $f"
11709 xm_include_list="${xm_include_list} $f"
11712 xm_file_list="${xm_file_list} \$(srcdir)/config/$f"
11713 xm_include_list="${xm_include_list} config/$f"
11715 esac
11716 done
11718 host_xm_file_list=
11719 host_xm_include_list=
11720 for f in $host_xm_file; do
11721 case $f in
11722 ansidecl.h )
11723 host_xm_file_list="${host_xm_file_list} \$(srcdir)/../include/$f"
11724 host_xm_include_list="${host_xm_include_list} $f"
11726 auto-host.h )
11727 host_xm_file_list="${host_xm_file_list} $f"
11728 host_xm_include_list="${host_xm_include_list} $f"
11731 host_xm_file_list="${host_xm_file_list} \$(srcdir)/config/$f"
11732 host_xm_include_list="${host_xm_include_list} config/$f"
11734 esac
11735 done
11737 build_xm_file_list=
11738 for f in $build_xm_file; do
11739 case $f in
11740 ansidecl.h )
11741 build_xm_file_list="${build_xm_file_list} \$(srcdir)/../include/$f"
11742 build_xm_include_list="${build_xm_include_list} $f"
11744 auto-build.h | auto-host.h )
11745 build_xm_file_list="${build_xm_file_list} $f"
11746 build_xm_include_list="${build_xm_include_list} $f"
11749 build_xm_file_list="${build_xm_file_list} \$(srcdir)/config/$f"
11750 build_xm_include_list="${build_xm_include_list} config/$f"
11752 esac
11753 done
11755 # Define macro CROSS_DIRECTORY_STRUCTURE in compilation if this is a
11756 # cross-compiler which does not use the native headers and libraries.
11757 # Also use all.cross instead of all.internal and adjust SYSTEM_HEADER_DIR.
11758 CROSS=
11759 ALL=all.internal
11760 SYSTEM_HEADER_DIR='$(NATIVE_SYSTEM_HEADER_DIR)'
11762 if test "x$with_build_sysroot" != x; then
11763 build_system_header_dir=$with_build_sysroot'$${sysroot_headers_suffix}$(NATIVE_SYSTEM_HEADER_DIR)'
11764 else
11765 # This value is used, even on a native system, because
11766 # CROSS_SYSTEM_HEADER_DIR is just
11767 # $(TARGET_SYSTEM_ROOT)$(NATIVE_SYSTEM_HEADER_DIR).
11768 build_system_header_dir='$(CROSS_SYSTEM_HEADER_DIR)'
11771 if test x$host != x$target
11772 then
11773 CROSS="-DCROSS_DIRECTORY_STRUCTURE"
11774 ALL=all.cross
11775 SYSTEM_HEADER_DIR=$build_system_header_dir
11776 case "$host","$target" in
11777 # Darwin crosses can use the host system's libraries and headers,
11778 # because of the fat library support. Of course, it must be the
11779 # same version of Darwin on both sides. Allow the user to
11780 # just say --target=foo-darwin without a version number to mean
11781 # "the version on this system".
11782 *-*-darwin*,*-*-darwin*)
11783 hostos=`echo $host | sed 's/.*-darwin/darwin/'`
11784 targetos=`echo $target | sed 's/.*-darwin/darwin/'`
11785 if test $hostos = $targetos -o $targetos = darwin ; then
11786 CROSS=
11787 SYSTEM_HEADER_DIR='$(NATIVE_SYSTEM_HEADER_DIR)'
11788 with_headers=yes
11792 i?86-*-*,x86_64-*-* \
11793 | powerpc*-*-*,powerpc64*-*-*)
11794 CROSS="$CROSS -DNATIVE_CROSS" ;;
11795 esac
11797 case $target in
11798 *-*-mingw*)
11799 if test "x$with_headers" = x; then
11800 with_headers=yes
11805 esac
11806 elif test "x$TARGET_SYSTEM_ROOT" != x; then
11807 SYSTEM_HEADER_DIR=$build_system_header_dir
11810 # If this is a cross-compiler that does not
11811 # have its own set of headers then define
11812 # inhibit_libc
11814 # If this is using newlib, without having the headers available now,
11815 # then define inhibit_libc in LIBGCC2_CFLAGS.
11816 # This prevents libgcc2 from containing any code which requires libc
11817 # support.
11818 : ${inhibit_libc=false}
11819 if { { test x$host != x$target && test "x$with_sysroot" = x ; } ||
11820 test x$with_newlib = xyes ; } &&
11821 { test "x$with_headers" = x || test "x$with_headers" = xno ; } ; then
11822 inhibit_libc=true
11826 # When building gcc with a cross-compiler, we need to adjust things so
11827 # that the generator programs are still built with the native compiler.
11828 # Also, we cannot run fixincludes.
11830 # These are the normal (build=host) settings:
11831 CC_FOR_BUILD='$(CC)'
11832 CXX_FOR_BUILD='$(CXX)'
11833 BUILD_CFLAGS='$(ALL_CFLAGS)'
11834 BUILD_CXXFLAGS='$(ALL_CXXFLAGS)'
11835 BUILD_LDFLAGS='$(LDFLAGS)'
11836 STMP_FIXINC=stmp-fixinc
11838 # And these apply if build != host, or we are generating coverage data
11839 if test x$build != x$host || test "x$coverage_flags" != x
11840 then
11841 BUILD_CFLAGS='$(INTERNAL_CFLAGS) $(T_CFLAGS) $(CFLAGS_FOR_BUILD)'
11842 BUILD_CXXFLAGS='$(INTERNAL_CFLAGS) $(T_CFLAGS) $(CXXFLAGS_FOR_BUILD)'
11843 BUILD_LDFLAGS='$(LDFLAGS_FOR_BUILD)'
11846 # Expand extra_headers to include complete path.
11847 # This substitutes for lots of t-* files.
11848 extra_headers_list=
11849 # Prepend $(srcdir)/config/${cpu_type}/ to every entry in extra_headers.
11850 for file in ${extra_headers} ; do
11851 extra_headers_list="${extra_headers_list} \$(srcdir)/config/${cpu_type}/${file}"
11852 done
11854 # If use_gcc_tgmath is set, append ginclude/tgmath.h.
11855 if test x"$use_gcc_tgmath" = xyes
11856 then extra_headers_list="${extra_headers_list} \$(srcdir)/ginclude/tgmath.h"
11859 # Define collect2 in Makefile.
11860 case $host_can_use_collect2 in
11861 no) collect2= ;;
11862 *) collect2='collect2$(exeext)' ;;
11863 esac
11866 # Add a definition of USE_COLLECT2 if system wants one.
11867 case $use_collect2 in
11868 no) use_collect2= ;;
11869 "") ;;
11871 host_xm_defines="${host_xm_defines} USE_COLLECT2"
11872 xm_defines="${xm_defines} USE_COLLECT2"
11873 case $host_can_use_collect2 in
11875 as_fn_error "collect2 is required but cannot be built on this system" "$LINENO" 5
11877 esac
11879 esac
11882 cat >>confdefs.h <<_ACEOF
11883 #define LTOPLUGINSONAME "${host_lto_plugin_soname}"
11884 _ACEOF
11887 # ---------------------------
11888 # Assembler & linker features
11889 # ---------------------------
11891 # During stage 2, ld is actually gcc/collect-ld, which is a small script to
11892 # discern between when to use prev-ld/ld-new and when to use ld/ld-new.
11893 # However when ld-new is first executed from the build tree, libtool will
11894 # relink it as .libs/lt-ld-new, so that it can give it an RPATH that refers
11895 # to the build tree. While doing this we need to use the previous-stage
11896 # linker, or we have an infinite loop. The presence of a shell script as
11897 # ld/ld-new, and the fact that the script *uses ld itself*, is what confuses
11898 # the gcc/collect-ld script. So we need to know how libtool works, or
11899 # exec-tool will fail.
11902 case `pwd` in
11903 *\ * | *\ *)
11904 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&5
11905 $as_echo "$as_me: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&2;} ;;
11906 esac
11910 macro_version='2.2.7a'
11911 macro_revision='1.3134'
11925 ltmain="$ac_aux_dir/ltmain.sh"
11927 # Backslashify metacharacters that are still active within
11928 # double-quoted strings.
11929 sed_quote_subst='s/\(["`$\\]\)/\\\1/g'
11931 # Same as above, but do not quote variable references.
11932 double_quote_subst='s/\(["`\\]\)/\\\1/g'
11934 # Sed substitution to delay expansion of an escaped shell variable in a
11935 # double_quote_subst'ed string.
11936 delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
11938 # Sed substitution to delay expansion of an escaped single quote.
11939 delay_single_quote_subst='s/'\''/'\'\\\\\\\'\''/g'
11941 # Sed substitution to avoid accidental globbing in evaled expressions
11942 no_glob_subst='s/\*/\\\*/g'
11944 ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
11945 ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO
11946 ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO$ECHO
11948 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to print strings" >&5
11949 $as_echo_n "checking how to print strings... " >&6; }
11950 # Test print first, because it will be a builtin if present.
11951 if test "X`print -r -- -n 2>/dev/null`" = X-n && \
11952 test "X`print -r -- $ECHO 2>/dev/null`" = "X$ECHO"; then
11953 ECHO='print -r --'
11954 elif test "X`printf %s $ECHO 2>/dev/null`" = "X$ECHO"; then
11955 ECHO='printf %s\n'
11956 else
11957 # Use this function as a fallback that always works.
11958 func_fallback_echo ()
11960 eval 'cat <<_LTECHO_EOF
11962 _LTECHO_EOF'
11964 ECHO='func_fallback_echo'
11967 # func_echo_all arg...
11968 # Invoke $ECHO with all args, space-separated.
11969 func_echo_all ()
11971 $ECHO ""
11974 case "$ECHO" in
11975 printf*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: printf" >&5
11976 $as_echo "printf" >&6; } ;;
11977 print*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: print -r" >&5
11978 $as_echo "print -r" >&6; } ;;
11979 *) { $as_echo "$as_me:${as_lineno-$LINENO}: result: cat" >&5
11980 $as_echo "cat" >&6; } ;;
11981 esac
11996 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5
11997 $as_echo_n "checking for a sed that does not truncate output... " >&6; }
11998 if test "${ac_cv_path_SED+set}" = set; then :
11999 $as_echo_n "(cached) " >&6
12000 else
12001 ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
12002 for ac_i in 1 2 3 4 5 6 7; do
12003 ac_script="$ac_script$as_nl$ac_script"
12004 done
12005 echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed
12006 { ac_script=; unset ac_script;}
12007 if test -z "$SED"; then
12008 ac_path_SED_found=false
12009 # Loop through the user's path and test for each of PROGNAME-LIST
12010 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12011 for as_dir in $PATH
12013 IFS=$as_save_IFS
12014 test -z "$as_dir" && as_dir=.
12015 for ac_prog in sed gsed; do
12016 for ac_exec_ext in '' $ac_executable_extensions; do
12017 ac_path_SED="$as_dir/$ac_prog$ac_exec_ext"
12018 { test -f "$ac_path_SED" && $as_test_x "$ac_path_SED"; } || continue
12019 # Check for GNU ac_path_SED and select it if it is found.
12020 # Check for GNU $ac_path_SED
12021 case `"$ac_path_SED" --version 2>&1` in
12022 *GNU*)
12023 ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
12025 ac_count=0
12026 $as_echo_n 0123456789 >"conftest.in"
12027 while :
12029 cat "conftest.in" "conftest.in" >"conftest.tmp"
12030 mv "conftest.tmp" "conftest.in"
12031 cp "conftest.in" "conftest.nl"
12032 $as_echo '' >> "conftest.nl"
12033 "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break
12034 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
12035 as_fn_arith $ac_count + 1 && ac_count=$as_val
12036 if test $ac_count -gt ${ac_path_SED_max-0}; then
12037 # Best one so far, save it but keep looking for a better one
12038 ac_cv_path_SED="$ac_path_SED"
12039 ac_path_SED_max=$ac_count
12041 # 10*(2^10) chars as input seems more than enough
12042 test $ac_count -gt 10 && break
12043 done
12044 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
12045 esac
12047 $ac_path_SED_found && break 3
12048 done
12049 done
12050 done
12051 IFS=$as_save_IFS
12052 if test -z "$ac_cv_path_SED"; then
12053 as_fn_error "no acceptable sed could be found in \$PATH" "$LINENO" 5
12055 else
12056 ac_cv_path_SED=$SED
12060 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5
12061 $as_echo "$ac_cv_path_SED" >&6; }
12062 SED="$ac_cv_path_SED"
12063 rm -f conftest.sed
12065 test -z "$SED" && SED=sed
12066 Xsed="$SED -e 1s/^X//"
12078 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for fgrep" >&5
12079 $as_echo_n "checking for fgrep... " >&6; }
12080 if test "${ac_cv_path_FGREP+set}" = set; then :
12081 $as_echo_n "(cached) " >&6
12082 else
12083 if echo 'ab*c' | $GREP -F 'ab*c' >/dev/null 2>&1
12084 then ac_cv_path_FGREP="$GREP -F"
12085 else
12086 if test -z "$FGREP"; then
12087 ac_path_FGREP_found=false
12088 # Loop through the user's path and test for each of PROGNAME-LIST
12089 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12090 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
12092 IFS=$as_save_IFS
12093 test -z "$as_dir" && as_dir=.
12094 for ac_prog in fgrep; do
12095 for ac_exec_ext in '' $ac_executable_extensions; do
12096 ac_path_FGREP="$as_dir/$ac_prog$ac_exec_ext"
12097 { test -f "$ac_path_FGREP" && $as_test_x "$ac_path_FGREP"; } || continue
12098 # Check for GNU ac_path_FGREP and select it if it is found.
12099 # Check for GNU $ac_path_FGREP
12100 case `"$ac_path_FGREP" --version 2>&1` in
12101 *GNU*)
12102 ac_cv_path_FGREP="$ac_path_FGREP" ac_path_FGREP_found=:;;
12104 ac_count=0
12105 $as_echo_n 0123456789 >"conftest.in"
12106 while :
12108 cat "conftest.in" "conftest.in" >"conftest.tmp"
12109 mv "conftest.tmp" "conftest.in"
12110 cp "conftest.in" "conftest.nl"
12111 $as_echo 'FGREP' >> "conftest.nl"
12112 "$ac_path_FGREP" FGREP < "conftest.nl" >"conftest.out" 2>/dev/null || break
12113 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
12114 as_fn_arith $ac_count + 1 && ac_count=$as_val
12115 if test $ac_count -gt ${ac_path_FGREP_max-0}; then
12116 # Best one so far, save it but keep looking for a better one
12117 ac_cv_path_FGREP="$ac_path_FGREP"
12118 ac_path_FGREP_max=$ac_count
12120 # 10*(2^10) chars as input seems more than enough
12121 test $ac_count -gt 10 && break
12122 done
12123 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
12124 esac
12126 $ac_path_FGREP_found && break 3
12127 done
12128 done
12129 done
12130 IFS=$as_save_IFS
12131 if test -z "$ac_cv_path_FGREP"; then
12132 as_fn_error "no acceptable fgrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
12134 else
12135 ac_cv_path_FGREP=$FGREP
12140 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_FGREP" >&5
12141 $as_echo "$ac_cv_path_FGREP" >&6; }
12142 FGREP="$ac_cv_path_FGREP"
12145 test -z "$GREP" && GREP=grep
12165 # Check whether --with-gnu-ld was given.
12166 if test "${with_gnu_ld+set}" = set; then :
12167 withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
12168 else
12169 with_gnu_ld=no
12172 ac_prog=ld
12173 if test "$GCC" = yes; then
12174 # Check if gcc -print-prog-name=ld gives a path.
12175 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
12176 $as_echo_n "checking for ld used by $CC... " >&6; }
12177 case $host in
12178 *-*-mingw*)
12179 # gcc leaves a trailing carriage return which upsets mingw
12180 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
12182 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
12183 esac
12184 case $ac_prog in
12185 # Accept absolute paths.
12186 [\\/]* | ?:[\\/]*)
12187 re_direlt='/[^/][^/]*/\.\./'
12188 # Canonicalize the pathname of ld
12189 ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
12190 while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
12191 ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
12192 done
12193 test -z "$LD" && LD="$ac_prog"
12196 # If it fails, then pretend we aren't using GCC.
12197 ac_prog=ld
12200 # If it is relative, then search for the first ld in PATH.
12201 with_gnu_ld=unknown
12203 esac
12204 elif test "$with_gnu_ld" = yes; then
12205 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
12206 $as_echo_n "checking for GNU ld... " >&6; }
12207 else
12208 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
12209 $as_echo_n "checking for non-GNU ld... " >&6; }
12211 if test "${lt_cv_path_LD+set}" = set; then :
12212 $as_echo_n "(cached) " >&6
12213 else
12214 if test -z "$LD"; then
12215 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
12216 for ac_dir in $PATH; do
12217 IFS="$lt_save_ifs"
12218 test -z "$ac_dir" && ac_dir=.
12219 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
12220 lt_cv_path_LD="$ac_dir/$ac_prog"
12221 # Check to see if the program is GNU ld. I'd rather use --version,
12222 # but apparently some variants of GNU ld only accept -v.
12223 # Break only if it was the GNU/non-GNU ld that we prefer.
12224 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
12225 *GNU* | *'with BFD'*)
12226 test "$with_gnu_ld" != no && break
12229 test "$with_gnu_ld" != yes && break
12231 esac
12233 done
12234 IFS="$lt_save_ifs"
12235 else
12236 lt_cv_path_LD="$LD" # Let the user override the test with a path.
12240 LD="$lt_cv_path_LD"
12241 if test -n "$LD"; then
12242 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
12243 $as_echo "$LD" >&6; }
12244 else
12245 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12246 $as_echo "no" >&6; }
12248 test -z "$LD" && as_fn_error "no acceptable ld found in \$PATH" "$LINENO" 5
12249 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
12250 $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
12251 if test "${lt_cv_prog_gnu_ld+set}" = set; then :
12252 $as_echo_n "(cached) " >&6
12253 else
12254 # I'd rather use --version here, but apparently some GNU lds only accept -v.
12255 case `$LD -v 2>&1 </dev/null` in
12256 *GNU* | *'with BFD'*)
12257 lt_cv_prog_gnu_ld=yes
12260 lt_cv_prog_gnu_ld=no
12262 esac
12264 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
12265 $as_echo "$lt_cv_prog_gnu_ld" >&6; }
12266 with_gnu_ld=$lt_cv_prog_gnu_ld
12276 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for BSD- or MS-compatible name lister (nm)" >&5
12277 $as_echo_n "checking for BSD- or MS-compatible name lister (nm)... " >&6; }
12278 if test "${lt_cv_path_NM+set}" = set; then :
12279 $as_echo_n "(cached) " >&6
12280 else
12281 if test -n "$NM"; then
12282 # Let the user override the test.
12283 lt_cv_path_NM="$NM"
12284 else
12285 lt_nm_to_check="${ac_tool_prefix}nm"
12286 if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
12287 lt_nm_to_check="$lt_nm_to_check nm"
12289 for lt_tmp_nm in $lt_nm_to_check; do
12290 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
12291 for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
12292 IFS="$lt_save_ifs"
12293 test -z "$ac_dir" && ac_dir=.
12294 tmp_nm="$ac_dir/$lt_tmp_nm"
12295 if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
12296 # Check to see if the nm accepts a BSD-compat flag.
12297 # Adding the `sed 1q' prevents false positives on HP-UX, which says:
12298 # nm: unknown option "B" ignored
12299 # Tru64's nm complains that /dev/null is an invalid object file
12300 case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
12301 */dev/null* | *'Invalid file or object type'*)
12302 lt_cv_path_NM="$tmp_nm -B"
12303 break
12306 case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
12307 */dev/null*)
12308 lt_cv_path_NM="$tmp_nm -p"
12309 break
12312 lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
12313 continue # so that we can try to find one that supports BSD flags
12315 esac
12317 esac
12319 done
12320 IFS="$lt_save_ifs"
12321 done
12322 : ${lt_cv_path_NM=no}
12325 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_NM" >&5
12326 $as_echo "$lt_cv_path_NM" >&6; }
12327 if test "$lt_cv_path_NM" != "no"; then
12328 NM="$lt_cv_path_NM"
12329 else
12330 # Didn't find any BSD compatible name lister, look for dumpbin.
12331 if test -n "$DUMPBIN"; then :
12332 # Let the user override the test.
12333 else
12334 if test -n "$ac_tool_prefix"; then
12335 for ac_prog in dumpbin "link -dump"
12337 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
12338 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
12339 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12340 $as_echo_n "checking for $ac_word... " >&6; }
12341 if test "${ac_cv_prog_DUMPBIN+set}" = set; then :
12342 $as_echo_n "(cached) " >&6
12343 else
12344 if test -n "$DUMPBIN"; then
12345 ac_cv_prog_DUMPBIN="$DUMPBIN" # Let the user override the test.
12346 else
12347 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12348 for as_dir in $PATH
12350 IFS=$as_save_IFS
12351 test -z "$as_dir" && as_dir=.
12352 for ac_exec_ext in '' $ac_executable_extensions; do
12353 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12354 ac_cv_prog_DUMPBIN="$ac_tool_prefix$ac_prog"
12355 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12356 break 2
12358 done
12359 done
12360 IFS=$as_save_IFS
12364 DUMPBIN=$ac_cv_prog_DUMPBIN
12365 if test -n "$DUMPBIN"; then
12366 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DUMPBIN" >&5
12367 $as_echo "$DUMPBIN" >&6; }
12368 else
12369 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12370 $as_echo "no" >&6; }
12374 test -n "$DUMPBIN" && break
12375 done
12377 if test -z "$DUMPBIN"; then
12378 ac_ct_DUMPBIN=$DUMPBIN
12379 for ac_prog in dumpbin "link -dump"
12381 # Extract the first word of "$ac_prog", so it can be a program name with args.
12382 set dummy $ac_prog; ac_word=$2
12383 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12384 $as_echo_n "checking for $ac_word... " >&6; }
12385 if test "${ac_cv_prog_ac_ct_DUMPBIN+set}" = set; then :
12386 $as_echo_n "(cached) " >&6
12387 else
12388 if test -n "$ac_ct_DUMPBIN"; then
12389 ac_cv_prog_ac_ct_DUMPBIN="$ac_ct_DUMPBIN" # Let the user override the test.
12390 else
12391 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12392 for as_dir in $PATH
12394 IFS=$as_save_IFS
12395 test -z "$as_dir" && as_dir=.
12396 for ac_exec_ext in '' $ac_executable_extensions; do
12397 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12398 ac_cv_prog_ac_ct_DUMPBIN="$ac_prog"
12399 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12400 break 2
12402 done
12403 done
12404 IFS=$as_save_IFS
12408 ac_ct_DUMPBIN=$ac_cv_prog_ac_ct_DUMPBIN
12409 if test -n "$ac_ct_DUMPBIN"; then
12410 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DUMPBIN" >&5
12411 $as_echo "$ac_ct_DUMPBIN" >&6; }
12412 else
12413 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12414 $as_echo "no" >&6; }
12418 test -n "$ac_ct_DUMPBIN" && break
12419 done
12421 if test "x$ac_ct_DUMPBIN" = x; then
12422 DUMPBIN=":"
12423 else
12424 case $cross_compiling:$ac_tool_warned in
12425 yes:)
12426 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
12427 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
12428 ac_tool_warned=yes ;;
12429 esac
12430 DUMPBIN=$ac_ct_DUMPBIN
12434 case `$DUMPBIN -symbols /dev/null 2>&1 | sed '1q'` in
12435 *COFF*)
12436 DUMPBIN="$DUMPBIN -symbols"
12439 DUMPBIN=:
12441 esac
12444 if test "$DUMPBIN" != ":"; then
12445 NM="$DUMPBIN"
12448 test -z "$NM" && NM=nm
12455 { $as_echo "$as_me:${as_lineno-$LINENO}: checking the name lister ($NM) interface" >&5
12456 $as_echo_n "checking the name lister ($NM) interface... " >&6; }
12457 if test "${lt_cv_nm_interface+set}" = set; then :
12458 $as_echo_n "(cached) " >&6
12459 else
12460 lt_cv_nm_interface="BSD nm"
12461 echo "int some_variable = 0;" > conftest.$ac_ext
12462 (eval echo "\"\$as_me:$LINENO: $ac_compile\"" >&5)
12463 (eval "$ac_compile" 2>conftest.err)
12464 cat conftest.err >&5
12465 (eval echo "\"\$as_me:$LINENO: $NM \\\"conftest.$ac_objext\\\"\"" >&5)
12466 (eval "$NM \"conftest.$ac_objext\"" 2>conftest.err > conftest.out)
12467 cat conftest.err >&5
12468 (eval echo "\"\$as_me:$LINENO: output\"" >&5)
12469 cat conftest.out >&5
12470 if $GREP 'External.*some_variable' conftest.out > /dev/null; then
12471 lt_cv_nm_interface="MS dumpbin"
12473 rm -f conftest*
12475 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_nm_interface" >&5
12476 $as_echo "$lt_cv_nm_interface" >&6; }
12478 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5
12479 $as_echo_n "checking whether ln -s works... " >&6; }
12480 LN_S=$as_ln_s
12481 if test "$LN_S" = "ln -s"; then
12482 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12483 $as_echo "yes" >&6; }
12484 else
12485 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5
12486 $as_echo "no, using $LN_S" >&6; }
12489 # find the maximum length of command line arguments
12490 { $as_echo "$as_me:${as_lineno-$LINENO}: checking the maximum length of command line arguments" >&5
12491 $as_echo_n "checking the maximum length of command line arguments... " >&6; }
12492 if test "${lt_cv_sys_max_cmd_len+set}" = set; then :
12493 $as_echo_n "(cached) " >&6
12494 else
12496 teststring="ABCD"
12498 case $build_os in
12499 msdosdjgpp*)
12500 # On DJGPP, this test can blow up pretty badly due to problems in libc
12501 # (any single argument exceeding 2000 bytes causes a buffer overrun
12502 # during glob expansion). Even if it were fixed, the result of this
12503 # check would be larger than it should be.
12504 lt_cv_sys_max_cmd_len=12288; # 12K is about right
12507 gnu*)
12508 # Under GNU Hurd, this test is not required because there is
12509 # no limit to the length of command line arguments.
12510 # Libtool will interpret -1 as no limit whatsoever
12511 lt_cv_sys_max_cmd_len=-1;
12514 cygwin* | mingw* | cegcc*)
12515 # On Win9x/ME, this test blows up -- it succeeds, but takes
12516 # about 5 minutes as the teststring grows exponentially.
12517 # Worse, since 9x/ME are not pre-emptively multitasking,
12518 # you end up with a "frozen" computer, even though with patience
12519 # the test eventually succeeds (with a max line length of 256k).
12520 # Instead, let's just punt: use the minimum linelength reported by
12521 # all of the supported platforms: 8192 (on NT/2K/XP).
12522 lt_cv_sys_max_cmd_len=8192;
12525 mint*)
12526 # On MiNT this can take a long time and run out of memory.
12527 lt_cv_sys_max_cmd_len=8192;
12530 amigaos*)
12531 # On AmigaOS with pdksh, this test takes hours, literally.
12532 # So we just punt and use a minimum line length of 8192.
12533 lt_cv_sys_max_cmd_len=8192;
12536 netbsd* | freebsd* | openbsd* | darwin* | dragonfly*)
12537 # This has been around since 386BSD, at least. Likely further.
12538 if test -x /sbin/sysctl; then
12539 lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
12540 elif test -x /usr/sbin/sysctl; then
12541 lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
12542 else
12543 lt_cv_sys_max_cmd_len=65536 # usable default for all BSDs
12545 # And add a safety zone
12546 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
12547 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
12550 interix*)
12551 # We know the value 262144 and hardcode it with a safety zone (like BSD)
12552 lt_cv_sys_max_cmd_len=196608
12555 osf*)
12556 # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
12557 # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
12558 # nice to cause kernel panics so lets avoid the loop below.
12559 # First set a reasonable default.
12560 lt_cv_sys_max_cmd_len=16384
12562 if test -x /sbin/sysconfig; then
12563 case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
12564 *1*) lt_cv_sys_max_cmd_len=-1 ;;
12565 esac
12568 sco3.2v5*)
12569 lt_cv_sys_max_cmd_len=102400
12571 sysv5* | sco5v6* | sysv4.2uw2*)
12572 kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
12573 if test -n "$kargmax"; then
12574 lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[ ]//'`
12575 else
12576 lt_cv_sys_max_cmd_len=32768
12580 lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null`
12581 if test -n "$lt_cv_sys_max_cmd_len"; then
12582 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
12583 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
12584 else
12585 # Make teststring a little bigger before we do anything with it.
12586 # a 1K string should be a reasonable start.
12587 for i in 1 2 3 4 5 6 7 8 ; do
12588 teststring=$teststring$teststring
12589 done
12590 SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
12591 # If test is not a shell built-in, we'll probably end up computing a
12592 # maximum length that is only half of the actual maximum length, but
12593 # we can't tell.
12594 while { test "X"`func_fallback_echo "$teststring$teststring" 2>/dev/null` \
12595 = "X$teststring$teststring"; } >/dev/null 2>&1 &&
12596 test $i != 17 # 1/2 MB should be enough
12598 i=`expr $i + 1`
12599 teststring=$teststring$teststring
12600 done
12601 # Only check the string length outside the loop.
12602 lt_cv_sys_max_cmd_len=`expr "X$teststring" : ".*" 2>&1`
12603 teststring=
12604 # Add a significant safety factor because C++ compilers can tack on
12605 # massive amounts of additional arguments before passing them to the
12606 # linker. It appears as though 1/2 is a usable value.
12607 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
12610 esac
12614 if test -n $lt_cv_sys_max_cmd_len ; then
12615 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_max_cmd_len" >&5
12616 $as_echo "$lt_cv_sys_max_cmd_len" >&6; }
12617 else
12618 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none" >&5
12619 $as_echo "none" >&6; }
12621 max_cmd_len=$lt_cv_sys_max_cmd_len
12628 : ${CP="cp -f"}
12629 : ${MV="mv -f"}
12630 : ${RM="rm -f"}
12632 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands some XSI constructs" >&5
12633 $as_echo_n "checking whether the shell understands some XSI constructs... " >&6; }
12634 # Try some XSI features
12635 xsi_shell=no
12636 ( _lt_dummy="a/b/c"
12637 test "${_lt_dummy##*/},${_lt_dummy%/*},"${_lt_dummy%"$_lt_dummy"}, \
12638 = c,a/b,, \
12639 && eval 'test $(( 1 + 1 )) -eq 2 \
12640 && test "${#_lt_dummy}" -eq 5' ) >/dev/null 2>&1 \
12641 && xsi_shell=yes
12642 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xsi_shell" >&5
12643 $as_echo "$xsi_shell" >&6; }
12646 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands \"+=\"" >&5
12647 $as_echo_n "checking whether the shell understands \"+=\"... " >&6; }
12648 lt_shell_append=no
12649 ( foo=bar; set foo baz; eval "$1+=\$2" && test "$foo" = barbaz ) \
12650 >/dev/null 2>&1 \
12651 && lt_shell_append=yes
12652 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_shell_append" >&5
12653 $as_echo "$lt_shell_append" >&6; }
12656 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
12657 lt_unset=unset
12658 else
12659 lt_unset=false
12666 # test EBCDIC or ASCII
12667 case `echo X|tr X '\101'` in
12668 A) # ASCII based system
12669 # \n is not interpreted correctly by Solaris 8 /usr/ucb/tr
12670 lt_SP2NL='tr \040 \012'
12671 lt_NL2SP='tr \015\012 \040\040'
12673 *) # EBCDIC based system
12674 lt_SP2NL='tr \100 \n'
12675 lt_NL2SP='tr \r\n \100\100'
12677 esac
12687 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $LD option to reload object files" >&5
12688 $as_echo_n "checking for $LD option to reload object files... " >&6; }
12689 if test "${lt_cv_ld_reload_flag+set}" = set; then :
12690 $as_echo_n "(cached) " >&6
12691 else
12692 lt_cv_ld_reload_flag='-r'
12694 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_reload_flag" >&5
12695 $as_echo "$lt_cv_ld_reload_flag" >&6; }
12696 reload_flag=$lt_cv_ld_reload_flag
12697 case $reload_flag in
12698 "" | " "*) ;;
12699 *) reload_flag=" $reload_flag" ;;
12700 esac
12701 reload_cmds='$LD$reload_flag -o $output$reload_objs'
12702 case $host_os in
12703 darwin*)
12704 if test "$GCC" = yes; then
12705 reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r -o $output$reload_objs'
12706 else
12707 reload_cmds='$LD$reload_flag -o $output$reload_objs'
12710 esac
12720 if test -n "$ac_tool_prefix"; then
12721 # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args.
12722 set dummy ${ac_tool_prefix}objdump; ac_word=$2
12723 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12724 $as_echo_n "checking for $ac_word... " >&6; }
12725 if test "${ac_cv_prog_OBJDUMP+set}" = set; then :
12726 $as_echo_n "(cached) " >&6
12727 else
12728 if test -n "$OBJDUMP"; then
12729 ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
12730 else
12731 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12732 for as_dir in $PATH
12734 IFS=$as_save_IFS
12735 test -z "$as_dir" && as_dir=.
12736 for ac_exec_ext in '' $ac_executable_extensions; do
12737 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12738 ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump"
12739 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12740 break 2
12742 done
12743 done
12744 IFS=$as_save_IFS
12748 OBJDUMP=$ac_cv_prog_OBJDUMP
12749 if test -n "$OBJDUMP"; then
12750 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5
12751 $as_echo "$OBJDUMP" >&6; }
12752 else
12753 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12754 $as_echo "no" >&6; }
12759 if test -z "$ac_cv_prog_OBJDUMP"; then
12760 ac_ct_OBJDUMP=$OBJDUMP
12761 # Extract the first word of "objdump", so it can be a program name with args.
12762 set dummy objdump; ac_word=$2
12763 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12764 $as_echo_n "checking for $ac_word... " >&6; }
12765 if test "${ac_cv_prog_ac_ct_OBJDUMP+set}" = set; then :
12766 $as_echo_n "(cached) " >&6
12767 else
12768 if test -n "$ac_ct_OBJDUMP"; then
12769 ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test.
12770 else
12771 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12772 for as_dir in $PATH
12774 IFS=$as_save_IFS
12775 test -z "$as_dir" && as_dir=.
12776 for ac_exec_ext in '' $ac_executable_extensions; do
12777 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12778 ac_cv_prog_ac_ct_OBJDUMP="objdump"
12779 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12780 break 2
12782 done
12783 done
12784 IFS=$as_save_IFS
12788 ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP
12789 if test -n "$ac_ct_OBJDUMP"; then
12790 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5
12791 $as_echo "$ac_ct_OBJDUMP" >&6; }
12792 else
12793 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12794 $as_echo "no" >&6; }
12797 if test "x$ac_ct_OBJDUMP" = x; then
12798 OBJDUMP="false"
12799 else
12800 case $cross_compiling:$ac_tool_warned in
12801 yes:)
12802 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
12803 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
12804 ac_tool_warned=yes ;;
12805 esac
12806 OBJDUMP=$ac_ct_OBJDUMP
12808 else
12809 OBJDUMP="$ac_cv_prog_OBJDUMP"
12812 test -z "$OBJDUMP" && OBJDUMP=objdump
12822 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to recognize dependent libraries" >&5
12823 $as_echo_n "checking how to recognize dependent libraries... " >&6; }
12824 if test "${lt_cv_deplibs_check_method+set}" = set; then :
12825 $as_echo_n "(cached) " >&6
12826 else
12827 lt_cv_file_magic_cmd='$MAGIC_CMD'
12828 lt_cv_file_magic_test_file=
12829 lt_cv_deplibs_check_method='unknown'
12830 # Need to set the preceding variable on all platforms that support
12831 # interlibrary dependencies.
12832 # 'none' -- dependencies not supported.
12833 # `unknown' -- same as none, but documents that we really don't know.
12834 # 'pass_all' -- all dependencies passed with no checks.
12835 # 'test_compile' -- check by making test program.
12836 # 'file_magic [[regex]]' -- check by looking for files in library path
12837 # which responds to the $file_magic_cmd with a given extended regex.
12838 # If you have `file' or equivalent on your system and you're not sure
12839 # whether `pass_all' will *always* work, you probably want this one.
12841 case $host_os in
12842 aix[4-9]*)
12843 lt_cv_deplibs_check_method=pass_all
12846 beos*)
12847 lt_cv_deplibs_check_method=pass_all
12850 bsdi[45]*)
12851 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
12852 lt_cv_file_magic_cmd='/usr/bin/file -L'
12853 lt_cv_file_magic_test_file=/shlib/libc.so
12856 cygwin*)
12857 # func_win32_libid is a shell function defined in ltmain.sh
12858 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
12859 lt_cv_file_magic_cmd='func_win32_libid'
12862 mingw* | pw32*)
12863 # Base MSYS/MinGW do not provide the 'file' command needed by
12864 # func_win32_libid shell function, so use a weaker test based on 'objdump',
12865 # unless we find 'file', for example because we are cross-compiling.
12866 # func_win32_libid assumes BSD nm, so disallow it if using MS dumpbin.
12867 if ( test "$lt_cv_nm_interface" = "BSD nm" && file / ) >/dev/null 2>&1; then
12868 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
12869 lt_cv_file_magic_cmd='func_win32_libid'
12870 else
12871 lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?'
12872 lt_cv_file_magic_cmd='$OBJDUMP -f'
12876 cegcc*)
12877 # use the weaker test based on 'objdump'. See mingw*.
12878 lt_cv_deplibs_check_method='file_magic file format pe-arm-.*little(.*architecture: arm)?'
12879 lt_cv_file_magic_cmd='$OBJDUMP -f'
12882 darwin* | rhapsody*)
12883 lt_cv_deplibs_check_method=pass_all
12886 freebsd* | dragonfly*)
12887 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
12888 case $host_cpu in
12889 i*86 )
12890 # Not sure whether the presence of OpenBSD here was a mistake.
12891 # Let's accept both of them until this is cleared up.
12892 lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
12893 lt_cv_file_magic_cmd=/usr/bin/file
12894 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
12896 esac
12897 else
12898 lt_cv_deplibs_check_method=pass_all
12902 gnu*)
12903 lt_cv_deplibs_check_method=pass_all
12906 haiku*)
12907 lt_cv_deplibs_check_method=pass_all
12910 hpux10.20* | hpux11*)
12911 lt_cv_file_magic_cmd=/usr/bin/file
12912 case $host_cpu in
12913 ia64*)
12914 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
12915 lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
12917 hppa*64*)
12918 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]'
12919 lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
12922 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9]\.[0-9]) shared library'
12923 lt_cv_file_magic_test_file=/usr/lib/libc.sl
12925 esac
12928 interix[3-9]*)
12929 # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
12930 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
12933 irix5* | irix6* | nonstopux*)
12934 case $LD in
12935 *-32|*"-32 ") libmagic=32-bit;;
12936 *-n32|*"-n32 ") libmagic=N32;;
12937 *-64|*"-64 ") libmagic=64-bit;;
12938 *) libmagic=never-match;;
12939 esac
12940 lt_cv_deplibs_check_method=pass_all
12943 # This must be Linux ELF.
12944 linux* | k*bsd*-gnu | kopensolaris*-gnu)
12945 lt_cv_deplibs_check_method=pass_all
12948 netbsd*)
12949 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
12950 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
12951 else
12952 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
12956 newos6*)
12957 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
12958 lt_cv_file_magic_cmd=/usr/bin/file
12959 lt_cv_file_magic_test_file=/usr/lib/libnls.so
12962 *nto* | *qnx*)
12963 lt_cv_deplibs_check_method=pass_all
12966 openbsd*)
12967 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
12968 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
12969 else
12970 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
12974 osf3* | osf4* | osf5*)
12975 lt_cv_deplibs_check_method=pass_all
12978 rdos*)
12979 lt_cv_deplibs_check_method=pass_all
12982 solaris*)
12983 lt_cv_deplibs_check_method=pass_all
12986 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
12987 lt_cv_deplibs_check_method=pass_all
12990 sysv4 | sysv4.3*)
12991 case $host_vendor in
12992 motorola)
12993 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]'
12994 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
12996 ncr)
12997 lt_cv_deplibs_check_method=pass_all
12999 sequent)
13000 lt_cv_file_magic_cmd='/bin/file'
13001 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
13003 sni)
13004 lt_cv_file_magic_cmd='/bin/file'
13005 lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
13006 lt_cv_file_magic_test_file=/lib/libc.so
13008 siemens)
13009 lt_cv_deplibs_check_method=pass_all
13012 lt_cv_deplibs_check_method=pass_all
13014 esac
13017 tpf*)
13018 lt_cv_deplibs_check_method=pass_all
13020 esac
13023 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_deplibs_check_method" >&5
13024 $as_echo "$lt_cv_deplibs_check_method" >&6; }
13025 file_magic_cmd=$lt_cv_file_magic_cmd
13026 deplibs_check_method=$lt_cv_deplibs_check_method
13027 test -z "$deplibs_check_method" && deplibs_check_method=unknown
13040 if test -n "$ac_tool_prefix"; then
13041 # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
13042 set dummy ${ac_tool_prefix}ar; ac_word=$2
13043 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13044 $as_echo_n "checking for $ac_word... " >&6; }
13045 if test "${ac_cv_prog_AR+set}" = set; then :
13046 $as_echo_n "(cached) " >&6
13047 else
13048 if test -n "$AR"; then
13049 ac_cv_prog_AR="$AR" # Let the user override the test.
13050 else
13051 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13052 for as_dir in $PATH
13054 IFS=$as_save_IFS
13055 test -z "$as_dir" && as_dir=.
13056 for ac_exec_ext in '' $ac_executable_extensions; do
13057 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
13058 ac_cv_prog_AR="${ac_tool_prefix}ar"
13059 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13060 break 2
13062 done
13063 done
13064 IFS=$as_save_IFS
13068 AR=$ac_cv_prog_AR
13069 if test -n "$AR"; then
13070 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
13071 $as_echo "$AR" >&6; }
13072 else
13073 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13074 $as_echo "no" >&6; }
13079 if test -z "$ac_cv_prog_AR"; then
13080 ac_ct_AR=$AR
13081 # Extract the first word of "ar", so it can be a program name with args.
13082 set dummy ar; ac_word=$2
13083 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13084 $as_echo_n "checking for $ac_word... " >&6; }
13085 if test "${ac_cv_prog_ac_ct_AR+set}" = set; then :
13086 $as_echo_n "(cached) " >&6
13087 else
13088 if test -n "$ac_ct_AR"; then
13089 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
13090 else
13091 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13092 for as_dir in $PATH
13094 IFS=$as_save_IFS
13095 test -z "$as_dir" && as_dir=.
13096 for ac_exec_ext in '' $ac_executable_extensions; do
13097 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
13098 ac_cv_prog_ac_ct_AR="ar"
13099 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13100 break 2
13102 done
13103 done
13104 IFS=$as_save_IFS
13108 ac_ct_AR=$ac_cv_prog_ac_ct_AR
13109 if test -n "$ac_ct_AR"; then
13110 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5
13111 $as_echo "$ac_ct_AR" >&6; }
13112 else
13113 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13114 $as_echo "no" >&6; }
13117 if test "x$ac_ct_AR" = x; then
13118 AR="false"
13119 else
13120 case $cross_compiling:$ac_tool_warned in
13121 yes:)
13122 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
13123 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
13124 ac_tool_warned=yes ;;
13125 esac
13126 AR=$ac_ct_AR
13128 else
13129 AR="$ac_cv_prog_AR"
13132 test -z "$AR" && AR=ar
13133 test -z "$AR_FLAGS" && AR_FLAGS=cru
13145 if test -n "$ac_tool_prefix"; then
13146 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
13147 set dummy ${ac_tool_prefix}strip; ac_word=$2
13148 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13149 $as_echo_n "checking for $ac_word... " >&6; }
13150 if test "${ac_cv_prog_STRIP+set}" = set; then :
13151 $as_echo_n "(cached) " >&6
13152 else
13153 if test -n "$STRIP"; then
13154 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
13155 else
13156 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13157 for as_dir in $PATH
13159 IFS=$as_save_IFS
13160 test -z "$as_dir" && as_dir=.
13161 for ac_exec_ext in '' $ac_executable_extensions; do
13162 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
13163 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
13164 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13165 break 2
13167 done
13168 done
13169 IFS=$as_save_IFS
13173 STRIP=$ac_cv_prog_STRIP
13174 if test -n "$STRIP"; then
13175 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
13176 $as_echo "$STRIP" >&6; }
13177 else
13178 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13179 $as_echo "no" >&6; }
13184 if test -z "$ac_cv_prog_STRIP"; then
13185 ac_ct_STRIP=$STRIP
13186 # Extract the first word of "strip", so it can be a program name with args.
13187 set dummy strip; ac_word=$2
13188 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13189 $as_echo_n "checking for $ac_word... " >&6; }
13190 if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then :
13191 $as_echo_n "(cached) " >&6
13192 else
13193 if test -n "$ac_ct_STRIP"; then
13194 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
13195 else
13196 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13197 for as_dir in $PATH
13199 IFS=$as_save_IFS
13200 test -z "$as_dir" && as_dir=.
13201 for ac_exec_ext in '' $ac_executable_extensions; do
13202 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
13203 ac_cv_prog_ac_ct_STRIP="strip"
13204 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13205 break 2
13207 done
13208 done
13209 IFS=$as_save_IFS
13213 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
13214 if test -n "$ac_ct_STRIP"; then
13215 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
13216 $as_echo "$ac_ct_STRIP" >&6; }
13217 else
13218 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13219 $as_echo "no" >&6; }
13222 if test "x$ac_ct_STRIP" = x; then
13223 STRIP=":"
13224 else
13225 case $cross_compiling:$ac_tool_warned in
13226 yes:)
13227 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
13228 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
13229 ac_tool_warned=yes ;;
13230 esac
13231 STRIP=$ac_ct_STRIP
13233 else
13234 STRIP="$ac_cv_prog_STRIP"
13237 test -z "$STRIP" && STRIP=:
13244 if test -n "$ac_tool_prefix"; then
13245 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
13246 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
13247 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13248 $as_echo_n "checking for $ac_word... " >&6; }
13249 if test "${ac_cv_prog_RANLIB+set}" = set; then :
13250 $as_echo_n "(cached) " >&6
13251 else
13252 if test -n "$RANLIB"; then
13253 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
13254 else
13255 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13256 for as_dir in $PATH
13258 IFS=$as_save_IFS
13259 test -z "$as_dir" && as_dir=.
13260 for ac_exec_ext in '' $ac_executable_extensions; do
13261 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
13262 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
13263 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13264 break 2
13266 done
13267 done
13268 IFS=$as_save_IFS
13272 RANLIB=$ac_cv_prog_RANLIB
13273 if test -n "$RANLIB"; then
13274 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
13275 $as_echo "$RANLIB" >&6; }
13276 else
13277 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13278 $as_echo "no" >&6; }
13283 if test -z "$ac_cv_prog_RANLIB"; then
13284 ac_ct_RANLIB=$RANLIB
13285 # Extract the first word of "ranlib", so it can be a program name with args.
13286 set dummy ranlib; ac_word=$2
13287 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13288 $as_echo_n "checking for $ac_word... " >&6; }
13289 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then :
13290 $as_echo_n "(cached) " >&6
13291 else
13292 if test -n "$ac_ct_RANLIB"; then
13293 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
13294 else
13295 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13296 for as_dir in $PATH
13298 IFS=$as_save_IFS
13299 test -z "$as_dir" && as_dir=.
13300 for ac_exec_ext in '' $ac_executable_extensions; do
13301 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
13302 ac_cv_prog_ac_ct_RANLIB="ranlib"
13303 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13304 break 2
13306 done
13307 done
13308 IFS=$as_save_IFS
13312 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
13313 if test -n "$ac_ct_RANLIB"; then
13314 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
13315 $as_echo "$ac_ct_RANLIB" >&6; }
13316 else
13317 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13318 $as_echo "no" >&6; }
13321 if test "x$ac_ct_RANLIB" = x; then
13322 RANLIB=":"
13323 else
13324 case $cross_compiling:$ac_tool_warned in
13325 yes:)
13326 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
13327 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
13328 ac_tool_warned=yes ;;
13329 esac
13330 RANLIB=$ac_ct_RANLIB
13332 else
13333 RANLIB="$ac_cv_prog_RANLIB"
13336 test -z "$RANLIB" && RANLIB=:
13343 # Determine commands to create old-style static archives.
13344 old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs'
13345 old_postinstall_cmds='chmod 644 $oldlib'
13346 old_postuninstall_cmds=
13348 if test -n "$RANLIB"; then
13349 case $host_os in
13350 openbsd*)
13351 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$oldlib"
13354 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$oldlib"
13356 esac
13357 old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib"
13360 case $host_os in
13361 darwin*)
13362 lock_old_archive_extraction=yes ;;
13364 lock_old_archive_extraction=no ;;
13365 esac
13405 # If no C compiler was specified, use CC.
13406 LTCC=${LTCC-"$CC"}
13408 # If no C compiler flags were specified, use CFLAGS.
13409 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
13411 # Allow CC to be a program name with arguments.
13412 compiler=$CC
13415 # Check for command to grab the raw symbol name followed by C symbol from nm.
13416 { $as_echo "$as_me:${as_lineno-$LINENO}: checking command to parse $NM output from $compiler object" >&5
13417 $as_echo_n "checking command to parse $NM output from $compiler object... " >&6; }
13418 if test "${lt_cv_sys_global_symbol_pipe+set}" = set; then :
13419 $as_echo_n "(cached) " >&6
13420 else
13422 # These are sane defaults that work on at least a few old systems.
13423 # [They come from Ultrix. What could be older than Ultrix?!! ;)]
13425 # Character class describing NM global symbol codes.
13426 symcode='[BCDEGRST]'
13428 # Regexp to match symbols that can be accessed directly from C.
13429 sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
13431 # Define system-specific variables.
13432 case $host_os in
13433 aix*)
13434 symcode='[BCDT]'
13436 cygwin* | mingw* | pw32* | cegcc*)
13437 symcode='[ABCDGISTW]'
13439 hpux*)
13440 if test "$host_cpu" = ia64; then
13441 symcode='[ABCDEGRST]'
13444 irix* | nonstopux*)
13445 symcode='[BCDEGRST]'
13447 osf*)
13448 symcode='[BCDEGQRST]'
13450 solaris*)
13451 symcode='[BDRT]'
13453 sco3.2v5*)
13454 symcode='[DT]'
13456 sysv4.2uw2*)
13457 symcode='[DT]'
13459 sysv5* | sco5v6* | unixware* | OpenUNIX*)
13460 symcode='[ABDT]'
13462 sysv4)
13463 symcode='[DFNSTU]'
13465 esac
13467 # If we're using GNU nm, then use its standard symbol codes.
13468 case `$NM -V 2>&1` in
13469 *GNU* | *'with BFD'*)
13470 symcode='[ABCDGIRSTW]' ;;
13471 esac
13473 # Transform an extracted symbol line into a proper C declaration.
13474 # Some systems (esp. on ia64) link data and code symbols differently,
13475 # so use this general approach.
13476 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
13478 # Transform an extracted symbol line into symbol name and symbol address
13479 lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([^ ]*\) $/ {\\\"\1\\\", (void *) 0},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/ {\"\2\", (void *) \&\2},/p'"
13480 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'"
13482 # Handle CRLF in mingw tool chain
13483 opt_cr=
13484 case $build_os in
13485 mingw*)
13486 opt_cr=`$ECHO 'x\{0,1\}' | tr x '\015'` # option cr in regexp
13488 esac
13490 # Try without a prefix underscore, then with it.
13491 for ac_symprfx in "" "_"; do
13493 # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
13494 symxfrm="\\1 $ac_symprfx\\2 \\2"
13496 # Write the raw and C identifiers.
13497 if test "$lt_cv_nm_interface" = "MS dumpbin"; then
13498 # Fake it for dumpbin and say T for any non-static function
13499 # and D for any global variable.
13500 # Also find C++ and __fastcall symbols from MSVC++,
13501 # which start with @ or ?.
13502 lt_cv_sys_global_symbol_pipe="$AWK '"\
13503 " {last_section=section; section=\$ 3};"\
13504 " /Section length .*#relocs.*(pick any)/{hide[last_section]=1};"\
13505 " \$ 0!~/External *\|/{next};"\
13506 " / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};"\
13507 " {if(hide[section]) next};"\
13508 " {f=0}; \$ 0~/\(\).*\|/{f=1}; {printf f ? \"T \" : \"D \"};"\
13509 " {split(\$ 0, a, /\||\r/); split(a[2], s)};"\
13510 " s[1]~/^[@?]/{print s[1], s[1]; next};"\
13511 " s[1]~prfx {split(s[1],t,\"@\"); print t[1], substr(t[1],length(prfx))}"\
13512 " ' prfx=^$ac_symprfx"
13513 else
13514 lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
13517 # Check to see that the pipe works correctly.
13518 pipe_works=no
13520 rm -f conftest*
13521 cat > conftest.$ac_ext <<_LT_EOF
13522 #ifdef __cplusplus
13523 extern "C" {
13524 #endif
13525 char nm_test_var;
13526 void nm_test_func(void);
13527 void nm_test_func(void){}
13528 #ifdef __cplusplus
13530 #endif
13531 int main(){nm_test_var='a';nm_test_func();return(0);}
13532 _LT_EOF
13534 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
13535 (eval $ac_compile) 2>&5
13536 ac_status=$?
13537 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
13538 test $ac_status = 0; }; then
13539 # Now try to grab the symbols.
13540 nlist=conftest.nm
13541 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist\""; } >&5
13542 (eval $NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist) 2>&5
13543 ac_status=$?
13544 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
13545 test $ac_status = 0; } && test -s "$nlist"; then
13546 # Try sorting and uniquifying the output.
13547 if sort "$nlist" | uniq > "$nlist"T; then
13548 mv -f "$nlist"T "$nlist"
13549 else
13550 rm -f "$nlist"T
13553 # Make sure that we snagged all the symbols we need.
13554 if $GREP ' nm_test_var$' "$nlist" >/dev/null; then
13555 if $GREP ' nm_test_func$' "$nlist" >/dev/null; then
13556 cat <<_LT_EOF > conftest.$ac_ext
13557 #ifdef __cplusplus
13558 extern "C" {
13559 #endif
13561 _LT_EOF
13562 # Now generate the symbol file.
13563 eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | $GREP -v main >> conftest.$ac_ext'
13565 cat <<_LT_EOF >> conftest.$ac_ext
13567 /* The mapping between symbol names and symbols. */
13568 const struct {
13569 const char *name;
13570 void *address;
13572 lt__PROGRAM__LTX_preloaded_symbols[] =
13574 { "@PROGRAM@", (void *) 0 },
13575 _LT_EOF
13576 $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/ {\"\2\", (void *) \&\2},/" < "$nlist" | $GREP -v main >> conftest.$ac_ext
13577 cat <<\_LT_EOF >> conftest.$ac_ext
13578 {0, (void *) 0}
13581 /* This works around a problem in FreeBSD linker */
13582 #ifdef FREEBSD_WORKAROUND
13583 static const void *lt_preloaded_setup() {
13584 return lt__PROGRAM__LTX_preloaded_symbols;
13586 #endif
13588 #ifdef __cplusplus
13590 #endif
13591 _LT_EOF
13592 # Now try linking the two files.
13593 mv conftest.$ac_objext conftstm.$ac_objext
13594 lt_save_LIBS="$LIBS"
13595 lt_save_CFLAGS="$CFLAGS"
13596 LIBS="conftstm.$ac_objext"
13597 CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
13598 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
13599 (eval $ac_link) 2>&5
13600 ac_status=$?
13601 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
13602 test $ac_status = 0; } && test -s conftest${ac_exeext}; then
13603 pipe_works=yes
13605 LIBS="$lt_save_LIBS"
13606 CFLAGS="$lt_save_CFLAGS"
13607 else
13608 echo "cannot find nm_test_func in $nlist" >&5
13610 else
13611 echo "cannot find nm_test_var in $nlist" >&5
13613 else
13614 echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
13616 else
13617 echo "$progname: failed program was:" >&5
13618 cat conftest.$ac_ext >&5
13620 rm -rf conftest* conftst*
13622 # Do not use the global_symbol_pipe unless it works.
13623 if test "$pipe_works" = yes; then
13624 break
13625 else
13626 lt_cv_sys_global_symbol_pipe=
13628 done
13632 if test -z "$lt_cv_sys_global_symbol_pipe"; then
13633 lt_cv_sys_global_symbol_to_cdecl=
13635 if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
13636 { $as_echo "$as_me:${as_lineno-$LINENO}: result: failed" >&5
13637 $as_echo "failed" >&6; }
13638 else
13639 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5
13640 $as_echo "ok" >&6; }
13664 # Check whether --enable-libtool-lock was given.
13665 if test "${enable_libtool_lock+set}" = set; then :
13666 enableval=$enable_libtool_lock;
13669 test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
13671 # Some flags need to be propagated to the compiler or linker for good
13672 # libtool support.
13673 case $host in
13674 ia64-*-hpux*)
13675 # Find out which ABI we are using.
13676 echo 'int i;' > conftest.$ac_ext
13677 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
13678 (eval $ac_compile) 2>&5
13679 ac_status=$?
13680 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
13681 test $ac_status = 0; }; then
13682 case `/usr/bin/file conftest.$ac_objext` in
13683 *ELF-32*)
13684 HPUX_IA64_MODE="32"
13686 *ELF-64*)
13687 HPUX_IA64_MODE="64"
13689 esac
13691 rm -rf conftest*
13693 *-*-irix6*)
13694 # Find out which ABI we are using.
13695 echo '#line '$LINENO' "configure"' > conftest.$ac_ext
13696 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
13697 (eval $ac_compile) 2>&5
13698 ac_status=$?
13699 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
13700 test $ac_status = 0; }; then
13701 if test "$lt_cv_prog_gnu_ld" = yes; then
13702 case `/usr/bin/file conftest.$ac_objext` in
13703 *32-bit*)
13704 LD="${LD-ld} -melf32bsmip"
13706 *N32*)
13707 LD="${LD-ld} -melf32bmipn32"
13709 *64-bit*)
13710 LD="${LD-ld} -melf64bmip"
13712 esac
13713 else
13714 case `/usr/bin/file conftest.$ac_objext` in
13715 *32-bit*)
13716 LD="${LD-ld} -32"
13718 *N32*)
13719 LD="${LD-ld} -n32"
13721 *64-bit*)
13722 LD="${LD-ld} -64"
13724 esac
13727 rm -rf conftest*
13730 x86_64-*kfreebsd*-gnu|x86_64-*linux*|powerpc*-*linux*| \
13731 s390*-*linux*|s390*-*tpf*|sparc*-*linux*)
13732 # Find out which ABI we are using.
13733 echo 'int i;' > conftest.$ac_ext
13734 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
13735 (eval $ac_compile) 2>&5
13736 ac_status=$?
13737 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
13738 test $ac_status = 0; }; then
13739 case `/usr/bin/file conftest.o` in
13740 *32-bit*)
13741 case $host in
13742 x86_64-*kfreebsd*-gnu)
13743 LD="${LD-ld} -m elf_i386_fbsd"
13745 x86_64-*linux*)
13746 case `/usr/bin/file conftest.o` in
13747 *x86-64*)
13748 LD="${LD-ld} -m elf32_x86_64"
13751 LD="${LD-ld} -m elf_i386"
13753 esac
13755 powerpc64le-*linux*)
13756 LD="${LD-ld} -m elf32lppclinux"
13758 powerpc64-*linux*)
13759 LD="${LD-ld} -m elf32ppclinux"
13761 s390x-*linux*)
13762 LD="${LD-ld} -m elf_s390"
13764 sparc64-*linux*)
13765 LD="${LD-ld} -m elf32_sparc"
13767 esac
13769 *64-bit*)
13770 case $host in
13771 x86_64-*kfreebsd*-gnu)
13772 LD="${LD-ld} -m elf_x86_64_fbsd"
13774 x86_64-*linux*)
13775 LD="${LD-ld} -m elf_x86_64"
13777 powerpcle-*linux*)
13778 LD="${LD-ld} -m elf64lppc"
13780 powerpc-*linux*)
13781 LD="${LD-ld} -m elf64ppc"
13783 s390*-*linux*|s390*-*tpf*)
13784 LD="${LD-ld} -m elf64_s390"
13786 sparc*-*linux*)
13787 LD="${LD-ld} -m elf64_sparc"
13789 esac
13791 esac
13793 rm -rf conftest*
13796 *-*-sco3.2v5*)
13797 # On SCO OpenServer 5, we need -belf to get full-featured binaries.
13798 SAVE_CFLAGS="$CFLAGS"
13799 CFLAGS="$CFLAGS -belf"
13800 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler needs -belf" >&5
13801 $as_echo_n "checking whether the C compiler needs -belf... " >&6; }
13802 if test "${lt_cv_cc_needs_belf+set}" = set; then :
13803 $as_echo_n "(cached) " >&6
13804 else
13805 ac_ext=c
13806 ac_cpp='$CPP $CPPFLAGS'
13807 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
13808 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13809 ac_compiler_gnu=$ac_cv_c_compiler_gnu
13811 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13812 /* end confdefs.h. */
13815 main ()
13819 return 0;
13821 _ACEOF
13822 if ac_fn_c_try_link "$LINENO"; then :
13823 lt_cv_cc_needs_belf=yes
13824 else
13825 lt_cv_cc_needs_belf=no
13827 rm -f core conftest.err conftest.$ac_objext \
13828 conftest$ac_exeext conftest.$ac_ext
13829 ac_ext=c
13830 ac_cpp='$CPP $CPPFLAGS'
13831 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
13832 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13833 ac_compiler_gnu=$ac_cv_c_compiler_gnu
13836 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_cc_needs_belf" >&5
13837 $as_echo "$lt_cv_cc_needs_belf" >&6; }
13838 if test x"$lt_cv_cc_needs_belf" != x"yes"; then
13839 # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
13840 CFLAGS="$SAVE_CFLAGS"
13843 sparc*-*solaris*)
13844 # Find out which ABI we are using.
13845 echo 'int i;' > conftest.$ac_ext
13846 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
13847 (eval $ac_compile) 2>&5
13848 ac_status=$?
13849 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
13850 test $ac_status = 0; }; then
13851 case `/usr/bin/file conftest.o` in
13852 *64-bit*)
13853 case $lt_cv_prog_gnu_ld in
13854 yes*) LD="${LD-ld} -m elf64_sparc" ;;
13856 if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then
13857 LD="${LD-ld} -64"
13860 esac
13862 esac
13864 rm -rf conftest*
13866 esac
13868 need_locks="$enable_libtool_lock"
13871 case $host_os in
13872 rhapsody* | darwin*)
13873 if test -n "$ac_tool_prefix"; then
13874 # Extract the first word of "${ac_tool_prefix}dsymutil", so it can be a program name with args.
13875 set dummy ${ac_tool_prefix}dsymutil; ac_word=$2
13876 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13877 $as_echo_n "checking for $ac_word... " >&6; }
13878 if test "${ac_cv_prog_DSYMUTIL+set}" = set; then :
13879 $as_echo_n "(cached) " >&6
13880 else
13881 if test -n "$DSYMUTIL"; then
13882 ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test.
13883 else
13884 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13885 for as_dir in $PATH
13887 IFS=$as_save_IFS
13888 test -z "$as_dir" && as_dir=.
13889 for ac_exec_ext in '' $ac_executable_extensions; do
13890 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
13891 ac_cv_prog_DSYMUTIL="${ac_tool_prefix}dsymutil"
13892 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13893 break 2
13895 done
13896 done
13897 IFS=$as_save_IFS
13901 DSYMUTIL=$ac_cv_prog_DSYMUTIL
13902 if test -n "$DSYMUTIL"; then
13903 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DSYMUTIL" >&5
13904 $as_echo "$DSYMUTIL" >&6; }
13905 else
13906 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13907 $as_echo "no" >&6; }
13912 if test -z "$ac_cv_prog_DSYMUTIL"; then
13913 ac_ct_DSYMUTIL=$DSYMUTIL
13914 # Extract the first word of "dsymutil", so it can be a program name with args.
13915 set dummy dsymutil; ac_word=$2
13916 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13917 $as_echo_n "checking for $ac_word... " >&6; }
13918 if test "${ac_cv_prog_ac_ct_DSYMUTIL+set}" = set; then :
13919 $as_echo_n "(cached) " >&6
13920 else
13921 if test -n "$ac_ct_DSYMUTIL"; then
13922 ac_cv_prog_ac_ct_DSYMUTIL="$ac_ct_DSYMUTIL" # Let the user override the test.
13923 else
13924 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13925 for as_dir in $PATH
13927 IFS=$as_save_IFS
13928 test -z "$as_dir" && as_dir=.
13929 for ac_exec_ext in '' $ac_executable_extensions; do
13930 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
13931 ac_cv_prog_ac_ct_DSYMUTIL="dsymutil"
13932 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13933 break 2
13935 done
13936 done
13937 IFS=$as_save_IFS
13941 ac_ct_DSYMUTIL=$ac_cv_prog_ac_ct_DSYMUTIL
13942 if test -n "$ac_ct_DSYMUTIL"; then
13943 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DSYMUTIL" >&5
13944 $as_echo "$ac_ct_DSYMUTIL" >&6; }
13945 else
13946 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13947 $as_echo "no" >&6; }
13950 if test "x$ac_ct_DSYMUTIL" = x; then
13951 DSYMUTIL=":"
13952 else
13953 case $cross_compiling:$ac_tool_warned in
13954 yes:)
13955 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
13956 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
13957 ac_tool_warned=yes ;;
13958 esac
13959 DSYMUTIL=$ac_ct_DSYMUTIL
13961 else
13962 DSYMUTIL="$ac_cv_prog_DSYMUTIL"
13965 if test -n "$ac_tool_prefix"; then
13966 # Extract the first word of "${ac_tool_prefix}nmedit", so it can be a program name with args.
13967 set dummy ${ac_tool_prefix}nmedit; ac_word=$2
13968 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13969 $as_echo_n "checking for $ac_word... " >&6; }
13970 if test "${ac_cv_prog_NMEDIT+set}" = set; then :
13971 $as_echo_n "(cached) " >&6
13972 else
13973 if test -n "$NMEDIT"; then
13974 ac_cv_prog_NMEDIT="$NMEDIT" # Let the user override the test.
13975 else
13976 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13977 for as_dir in $PATH
13979 IFS=$as_save_IFS
13980 test -z "$as_dir" && as_dir=.
13981 for ac_exec_ext in '' $ac_executable_extensions; do
13982 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
13983 ac_cv_prog_NMEDIT="${ac_tool_prefix}nmedit"
13984 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13985 break 2
13987 done
13988 done
13989 IFS=$as_save_IFS
13993 NMEDIT=$ac_cv_prog_NMEDIT
13994 if test -n "$NMEDIT"; then
13995 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NMEDIT" >&5
13996 $as_echo "$NMEDIT" >&6; }
13997 else
13998 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13999 $as_echo "no" >&6; }
14004 if test -z "$ac_cv_prog_NMEDIT"; then
14005 ac_ct_NMEDIT=$NMEDIT
14006 # Extract the first word of "nmedit", so it can be a program name with args.
14007 set dummy nmedit; ac_word=$2
14008 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
14009 $as_echo_n "checking for $ac_word... " >&6; }
14010 if test "${ac_cv_prog_ac_ct_NMEDIT+set}" = set; then :
14011 $as_echo_n "(cached) " >&6
14012 else
14013 if test -n "$ac_ct_NMEDIT"; then
14014 ac_cv_prog_ac_ct_NMEDIT="$ac_ct_NMEDIT" # Let the user override the test.
14015 else
14016 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14017 for as_dir in $PATH
14019 IFS=$as_save_IFS
14020 test -z "$as_dir" && as_dir=.
14021 for ac_exec_ext in '' $ac_executable_extensions; do
14022 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
14023 ac_cv_prog_ac_ct_NMEDIT="nmedit"
14024 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
14025 break 2
14027 done
14028 done
14029 IFS=$as_save_IFS
14033 ac_ct_NMEDIT=$ac_cv_prog_ac_ct_NMEDIT
14034 if test -n "$ac_ct_NMEDIT"; then
14035 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_NMEDIT" >&5
14036 $as_echo "$ac_ct_NMEDIT" >&6; }
14037 else
14038 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14039 $as_echo "no" >&6; }
14042 if test "x$ac_ct_NMEDIT" = x; then
14043 NMEDIT=":"
14044 else
14045 case $cross_compiling:$ac_tool_warned in
14046 yes:)
14047 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
14048 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
14049 ac_tool_warned=yes ;;
14050 esac
14051 NMEDIT=$ac_ct_NMEDIT
14053 else
14054 NMEDIT="$ac_cv_prog_NMEDIT"
14057 if test -n "$ac_tool_prefix"; then
14058 # Extract the first word of "${ac_tool_prefix}lipo", so it can be a program name with args.
14059 set dummy ${ac_tool_prefix}lipo; ac_word=$2
14060 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
14061 $as_echo_n "checking for $ac_word... " >&6; }
14062 if test "${ac_cv_prog_LIPO+set}" = set; then :
14063 $as_echo_n "(cached) " >&6
14064 else
14065 if test -n "$LIPO"; then
14066 ac_cv_prog_LIPO="$LIPO" # Let the user override the test.
14067 else
14068 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14069 for as_dir in $PATH
14071 IFS=$as_save_IFS
14072 test -z "$as_dir" && as_dir=.
14073 for ac_exec_ext in '' $ac_executable_extensions; do
14074 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
14075 ac_cv_prog_LIPO="${ac_tool_prefix}lipo"
14076 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
14077 break 2
14079 done
14080 done
14081 IFS=$as_save_IFS
14085 LIPO=$ac_cv_prog_LIPO
14086 if test -n "$LIPO"; then
14087 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO" >&5
14088 $as_echo "$LIPO" >&6; }
14089 else
14090 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14091 $as_echo "no" >&6; }
14096 if test -z "$ac_cv_prog_LIPO"; then
14097 ac_ct_LIPO=$LIPO
14098 # Extract the first word of "lipo", so it can be a program name with args.
14099 set dummy lipo; ac_word=$2
14100 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
14101 $as_echo_n "checking for $ac_word... " >&6; }
14102 if test "${ac_cv_prog_ac_ct_LIPO+set}" = set; then :
14103 $as_echo_n "(cached) " >&6
14104 else
14105 if test -n "$ac_ct_LIPO"; then
14106 ac_cv_prog_ac_ct_LIPO="$ac_ct_LIPO" # Let the user override the test.
14107 else
14108 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14109 for as_dir in $PATH
14111 IFS=$as_save_IFS
14112 test -z "$as_dir" && as_dir=.
14113 for ac_exec_ext in '' $ac_executable_extensions; do
14114 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
14115 ac_cv_prog_ac_ct_LIPO="lipo"
14116 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
14117 break 2
14119 done
14120 done
14121 IFS=$as_save_IFS
14125 ac_ct_LIPO=$ac_cv_prog_ac_ct_LIPO
14126 if test -n "$ac_ct_LIPO"; then
14127 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_LIPO" >&5
14128 $as_echo "$ac_ct_LIPO" >&6; }
14129 else
14130 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14131 $as_echo "no" >&6; }
14134 if test "x$ac_ct_LIPO" = x; then
14135 LIPO=":"
14136 else
14137 case $cross_compiling:$ac_tool_warned in
14138 yes:)
14139 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
14140 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
14141 ac_tool_warned=yes ;;
14142 esac
14143 LIPO=$ac_ct_LIPO
14145 else
14146 LIPO="$ac_cv_prog_LIPO"
14149 if test -n "$ac_tool_prefix"; then
14150 # Extract the first word of "${ac_tool_prefix}otool", so it can be a program name with args.
14151 set dummy ${ac_tool_prefix}otool; ac_word=$2
14152 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
14153 $as_echo_n "checking for $ac_word... " >&6; }
14154 if test "${ac_cv_prog_OTOOL+set}" = set; then :
14155 $as_echo_n "(cached) " >&6
14156 else
14157 if test -n "$OTOOL"; then
14158 ac_cv_prog_OTOOL="$OTOOL" # Let the user override the test.
14159 else
14160 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14161 for as_dir in $PATH
14163 IFS=$as_save_IFS
14164 test -z "$as_dir" && as_dir=.
14165 for ac_exec_ext in '' $ac_executable_extensions; do
14166 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
14167 ac_cv_prog_OTOOL="${ac_tool_prefix}otool"
14168 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
14169 break 2
14171 done
14172 done
14173 IFS=$as_save_IFS
14177 OTOOL=$ac_cv_prog_OTOOL
14178 if test -n "$OTOOL"; then
14179 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL" >&5
14180 $as_echo "$OTOOL" >&6; }
14181 else
14182 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14183 $as_echo "no" >&6; }
14188 if test -z "$ac_cv_prog_OTOOL"; then
14189 ac_ct_OTOOL=$OTOOL
14190 # Extract the first word of "otool", so it can be a program name with args.
14191 set dummy otool; ac_word=$2
14192 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
14193 $as_echo_n "checking for $ac_word... " >&6; }
14194 if test "${ac_cv_prog_ac_ct_OTOOL+set}" = set; then :
14195 $as_echo_n "(cached) " >&6
14196 else
14197 if test -n "$ac_ct_OTOOL"; then
14198 ac_cv_prog_ac_ct_OTOOL="$ac_ct_OTOOL" # Let the user override the test.
14199 else
14200 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14201 for as_dir in $PATH
14203 IFS=$as_save_IFS
14204 test -z "$as_dir" && as_dir=.
14205 for ac_exec_ext in '' $ac_executable_extensions; do
14206 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
14207 ac_cv_prog_ac_ct_OTOOL="otool"
14208 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
14209 break 2
14211 done
14212 done
14213 IFS=$as_save_IFS
14217 ac_ct_OTOOL=$ac_cv_prog_ac_ct_OTOOL
14218 if test -n "$ac_ct_OTOOL"; then
14219 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL" >&5
14220 $as_echo "$ac_ct_OTOOL" >&6; }
14221 else
14222 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14223 $as_echo "no" >&6; }
14226 if test "x$ac_ct_OTOOL" = x; then
14227 OTOOL=":"
14228 else
14229 case $cross_compiling:$ac_tool_warned in
14230 yes:)
14231 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
14232 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
14233 ac_tool_warned=yes ;;
14234 esac
14235 OTOOL=$ac_ct_OTOOL
14237 else
14238 OTOOL="$ac_cv_prog_OTOOL"
14241 if test -n "$ac_tool_prefix"; then
14242 # Extract the first word of "${ac_tool_prefix}otool64", so it can be a program name with args.
14243 set dummy ${ac_tool_prefix}otool64; ac_word=$2
14244 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
14245 $as_echo_n "checking for $ac_word... " >&6; }
14246 if test "${ac_cv_prog_OTOOL64+set}" = set; then :
14247 $as_echo_n "(cached) " >&6
14248 else
14249 if test -n "$OTOOL64"; then
14250 ac_cv_prog_OTOOL64="$OTOOL64" # Let the user override the test.
14251 else
14252 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14253 for as_dir in $PATH
14255 IFS=$as_save_IFS
14256 test -z "$as_dir" && as_dir=.
14257 for ac_exec_ext in '' $ac_executable_extensions; do
14258 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
14259 ac_cv_prog_OTOOL64="${ac_tool_prefix}otool64"
14260 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
14261 break 2
14263 done
14264 done
14265 IFS=$as_save_IFS
14269 OTOOL64=$ac_cv_prog_OTOOL64
14270 if test -n "$OTOOL64"; then
14271 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL64" >&5
14272 $as_echo "$OTOOL64" >&6; }
14273 else
14274 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14275 $as_echo "no" >&6; }
14280 if test -z "$ac_cv_prog_OTOOL64"; then
14281 ac_ct_OTOOL64=$OTOOL64
14282 # Extract the first word of "otool64", so it can be a program name with args.
14283 set dummy otool64; ac_word=$2
14284 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
14285 $as_echo_n "checking for $ac_word... " >&6; }
14286 if test "${ac_cv_prog_ac_ct_OTOOL64+set}" = set; then :
14287 $as_echo_n "(cached) " >&6
14288 else
14289 if test -n "$ac_ct_OTOOL64"; then
14290 ac_cv_prog_ac_ct_OTOOL64="$ac_ct_OTOOL64" # Let the user override the test.
14291 else
14292 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14293 for as_dir in $PATH
14295 IFS=$as_save_IFS
14296 test -z "$as_dir" && as_dir=.
14297 for ac_exec_ext in '' $ac_executable_extensions; do
14298 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
14299 ac_cv_prog_ac_ct_OTOOL64="otool64"
14300 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
14301 break 2
14303 done
14304 done
14305 IFS=$as_save_IFS
14309 ac_ct_OTOOL64=$ac_cv_prog_ac_ct_OTOOL64
14310 if test -n "$ac_ct_OTOOL64"; then
14311 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL64" >&5
14312 $as_echo "$ac_ct_OTOOL64" >&6; }
14313 else
14314 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14315 $as_echo "no" >&6; }
14318 if test "x$ac_ct_OTOOL64" = x; then
14319 OTOOL64=":"
14320 else
14321 case $cross_compiling:$ac_tool_warned in
14322 yes:)
14323 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
14324 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
14325 ac_tool_warned=yes ;;
14326 esac
14327 OTOOL64=$ac_ct_OTOOL64
14329 else
14330 OTOOL64="$ac_cv_prog_OTOOL64"
14359 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -single_module linker flag" >&5
14360 $as_echo_n "checking for -single_module linker flag... " >&6; }
14361 if test "${lt_cv_apple_cc_single_mod+set}" = set; then :
14362 $as_echo_n "(cached) " >&6
14363 else
14364 lt_cv_apple_cc_single_mod=no
14365 if test -z "${LT_MULTI_MODULE}"; then
14366 # By default we will add the -single_module flag. You can override
14367 # by either setting the environment variable LT_MULTI_MODULE
14368 # non-empty at configure time, or by adding -multi_module to the
14369 # link flags.
14370 rm -rf libconftest.dylib*
14371 echo "int foo(void){return 1;}" > conftest.c
14372 echo "$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
14373 -dynamiclib -Wl,-single_module conftest.c" >&5
14374 $LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
14375 -dynamiclib -Wl,-single_module conftest.c 2>conftest.err
14376 _lt_result=$?
14377 if test -f libconftest.dylib && test ! -s conftest.err && test $_lt_result = 0; then
14378 lt_cv_apple_cc_single_mod=yes
14379 else
14380 cat conftest.err >&5
14382 rm -rf libconftest.dylib*
14383 rm -f conftest.*
14386 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_apple_cc_single_mod" >&5
14387 $as_echo "$lt_cv_apple_cc_single_mod" >&6; }
14388 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -exported_symbols_list linker flag" >&5
14389 $as_echo_n "checking for -exported_symbols_list linker flag... " >&6; }
14390 if test "${lt_cv_ld_exported_symbols_list+set}" = set; then :
14391 $as_echo_n "(cached) " >&6
14392 else
14393 lt_cv_ld_exported_symbols_list=no
14394 save_LDFLAGS=$LDFLAGS
14395 echo "_main" > conftest.sym
14396 LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym"
14397 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14398 /* end confdefs.h. */
14401 main ()
14405 return 0;
14407 _ACEOF
14408 if ac_fn_c_try_link "$LINENO"; then :
14409 lt_cv_ld_exported_symbols_list=yes
14410 else
14411 lt_cv_ld_exported_symbols_list=no
14413 rm -f core conftest.err conftest.$ac_objext \
14414 conftest$ac_exeext conftest.$ac_ext
14415 LDFLAGS="$save_LDFLAGS"
14418 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_exported_symbols_list" >&5
14419 $as_echo "$lt_cv_ld_exported_symbols_list" >&6; }
14420 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -force_load linker flag" >&5
14421 $as_echo_n "checking for -force_load linker flag... " >&6; }
14422 if test "${lt_cv_ld_force_load+set}" = set; then :
14423 $as_echo_n "(cached) " >&6
14424 else
14425 lt_cv_ld_force_load=no
14426 cat > conftest.c << _LT_EOF
14427 int forced_loaded() { return 2;}
14428 _LT_EOF
14429 echo "$LTCC $LTCFLAGS -c -o conftest.o conftest.c" >&5
14430 $LTCC $LTCFLAGS -c -o conftest.o conftest.c 2>&5
14431 echo "$AR cru libconftest.a conftest.o" >&5
14432 $AR cru libconftest.a conftest.o 2>&5
14433 cat > conftest.c << _LT_EOF
14434 int main() { return 0;}
14435 _LT_EOF
14436 echo "$LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a" >&5
14437 $LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a 2>conftest.err
14438 _lt_result=$?
14439 if test -f conftest && test ! -s conftest.err && test $_lt_result = 0 && $GREP forced_load conftest 2>&1 >/dev/null; then
14440 lt_cv_ld_force_load=yes
14441 else
14442 cat conftest.err >&5
14444 rm -f conftest.err libconftest.a conftest conftest.c
14445 rm -rf conftest.dSYM
14448 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_force_load" >&5
14449 $as_echo "$lt_cv_ld_force_load" >&6; }
14450 case $host_os in
14451 rhapsody* | darwin1.[012])
14452 _lt_dar_allow_undefined='${wl}-undefined ${wl}suppress' ;;
14453 darwin1.*)
14454 _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
14455 darwin*) # darwin 5.x on
14456 # if running on 10.5 or later, the deployment target defaults
14457 # to the OS version, if on x86, and 10.4, the deployment
14458 # target defaults to 10.4. Don't you love it?
14459 case ${MACOSX_DEPLOYMENT_TARGET-10.0},$host in
14460 10.0,*86*-darwin8*|10.0,*-darwin[91]*)
14461 _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
14462 10.[012]*)
14463 _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
14464 10.*)
14465 _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
14466 esac
14468 esac
14469 if test "$lt_cv_apple_cc_single_mod" = "yes"; then
14470 _lt_dar_single_mod='$single_module'
14472 if test "$lt_cv_ld_exported_symbols_list" = "yes"; then
14473 _lt_dar_export_syms=' ${wl}-exported_symbols_list,$output_objdir/${libname}-symbols.expsym'
14474 else
14475 _lt_dar_export_syms='~$NMEDIT -s $output_objdir/${libname}-symbols.expsym ${lib}'
14477 if test "$DSYMUTIL" != ":" && test "$lt_cv_ld_force_load" = "no"; then
14478 _lt_dsymutil='~$DSYMUTIL $lib || :'
14479 else
14480 _lt_dsymutil=
14483 esac
14485 for ac_header in dlfcn.h
14486 do :
14487 ac_fn_c_check_header_preproc "$LINENO" "dlfcn.h" "ac_cv_header_dlfcn_h"
14488 if test "x$ac_cv_header_dlfcn_h" = x""yes; then :
14489 cat >>confdefs.h <<_ACEOF
14490 #define HAVE_DLFCN_H 1
14491 _ACEOF
14494 done
14500 # Set options
14504 enable_dlopen=no
14507 enable_win32_dll=no
14510 # Check whether --enable-shared was given.
14511 if test "${enable_shared+set}" = set; then :
14512 enableval=$enable_shared; p=${PACKAGE-default}
14513 case $enableval in
14514 yes) enable_shared=yes ;;
14515 no) enable_shared=no ;;
14517 enable_shared=no
14518 # Look at the argument we got. We use all the common list separators.
14519 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
14520 for pkg in $enableval; do
14521 IFS="$lt_save_ifs"
14522 if test "X$pkg" = "X$p"; then
14523 enable_shared=yes
14525 done
14526 IFS="$lt_save_ifs"
14528 esac
14529 else
14530 enable_shared=yes
14541 # Check whether --enable-static was given.
14542 if test "${enable_static+set}" = set; then :
14543 enableval=$enable_static; p=${PACKAGE-default}
14544 case $enableval in
14545 yes) enable_static=yes ;;
14546 no) enable_static=no ;;
14548 enable_static=no
14549 # Look at the argument we got. We use all the common list separators.
14550 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
14551 for pkg in $enableval; do
14552 IFS="$lt_save_ifs"
14553 if test "X$pkg" = "X$p"; then
14554 enable_static=yes
14556 done
14557 IFS="$lt_save_ifs"
14559 esac
14560 else
14561 enable_static=yes
14573 # Check whether --with-pic was given.
14574 if test "${with_pic+set}" = set; then :
14575 withval=$with_pic; pic_mode="$withval"
14576 else
14577 pic_mode=default
14581 test -z "$pic_mode" && pic_mode=default
14589 # Check whether --enable-fast-install was given.
14590 if test "${enable_fast_install+set}" = set; then :
14591 enableval=$enable_fast_install; p=${PACKAGE-default}
14592 case $enableval in
14593 yes) enable_fast_install=yes ;;
14594 no) enable_fast_install=no ;;
14596 enable_fast_install=no
14597 # Look at the argument we got. We use all the common list separators.
14598 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
14599 for pkg in $enableval; do
14600 IFS="$lt_save_ifs"
14601 if test "X$pkg" = "X$p"; then
14602 enable_fast_install=yes
14604 done
14605 IFS="$lt_save_ifs"
14607 esac
14608 else
14609 enable_fast_install=yes
14622 # This can be used to rebuild libtool when needed
14623 LIBTOOL_DEPS="$ltmain"
14625 # Always use our own libtool.
14626 LIBTOOL='$(SHELL) $(top_builddir)/libtool'
14653 test -z "$LN_S" && LN_S="ln -s"
14668 if test -n "${ZSH_VERSION+set}" ; then
14669 setopt NO_GLOB_SUBST
14672 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for objdir" >&5
14673 $as_echo_n "checking for objdir... " >&6; }
14674 if test "${lt_cv_objdir+set}" = set; then :
14675 $as_echo_n "(cached) " >&6
14676 else
14677 rm -f .libs 2>/dev/null
14678 mkdir .libs 2>/dev/null
14679 if test -d .libs; then
14680 lt_cv_objdir=.libs
14681 else
14682 # MS-DOS does not allow filenames that begin with a dot.
14683 lt_cv_objdir=_libs
14685 rmdir .libs 2>/dev/null
14687 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_objdir" >&5
14688 $as_echo "$lt_cv_objdir" >&6; }
14689 objdir=$lt_cv_objdir
14695 cat >>confdefs.h <<_ACEOF
14696 #define LT_OBJDIR "$lt_cv_objdir/"
14697 _ACEOF
14702 case $host_os in
14703 aix3*)
14704 # AIX sometimes has problems with the GCC collect2 program. For some
14705 # reason, if we set the COLLECT_NAMES environment variable, the problems
14706 # vanish in a puff of smoke.
14707 if test "X${COLLECT_NAMES+set}" != Xset; then
14708 COLLECT_NAMES=
14709 export COLLECT_NAMES
14712 esac
14714 # Global variables:
14715 ofile=libtool
14716 can_build_shared=yes
14718 # All known linkers require a `.a' archive for static linking (except MSVC,
14719 # which needs '.lib').
14720 libext=a
14722 with_gnu_ld="$lt_cv_prog_gnu_ld"
14724 old_CC="$CC"
14725 old_CFLAGS="$CFLAGS"
14727 # Set sane defaults for various variables
14728 test -z "$CC" && CC=cc
14729 test -z "$LTCC" && LTCC=$CC
14730 test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
14731 test -z "$LD" && LD=ld
14732 test -z "$ac_objext" && ac_objext=o
14734 for cc_temp in $compiler""; do
14735 case $cc_temp in
14736 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
14737 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
14738 \-*) ;;
14739 *) break;;
14740 esac
14741 done
14742 cc_basename=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
14745 # Only perform the check for file, if the check method requires it
14746 test -z "$MAGIC_CMD" && MAGIC_CMD=file
14747 case $deplibs_check_method in
14748 file_magic*)
14749 if test "$file_magic_cmd" = '$MAGIC_CMD'; then
14750 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ac_tool_prefix}file" >&5
14751 $as_echo_n "checking for ${ac_tool_prefix}file... " >&6; }
14752 if test "${lt_cv_path_MAGIC_CMD+set}" = set; then :
14753 $as_echo_n "(cached) " >&6
14754 else
14755 case $MAGIC_CMD in
14756 [\\/*] | ?:[\\/]*)
14757 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
14760 lt_save_MAGIC_CMD="$MAGIC_CMD"
14761 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
14762 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
14763 for ac_dir in $ac_dummy; do
14764 IFS="$lt_save_ifs"
14765 test -z "$ac_dir" && ac_dir=.
14766 if test -f $ac_dir/${ac_tool_prefix}file; then
14767 lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
14768 if test -n "$file_magic_test_file"; then
14769 case $deplibs_check_method in
14770 "file_magic "*)
14771 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
14772 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
14773 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
14774 $EGREP "$file_magic_regex" > /dev/null; then
14776 else
14777 cat <<_LT_EOF 1>&2
14779 *** Warning: the command libtool uses to detect shared libraries,
14780 *** $file_magic_cmd, produces output that libtool cannot recognize.
14781 *** The result is that libtool may fail to recognize shared libraries
14782 *** as such. This will affect the creation of libtool libraries that
14783 *** depend on shared libraries, but programs linked with such libtool
14784 *** libraries will work regardless of this problem. Nevertheless, you
14785 *** may want to report the problem to your system manager and/or to
14786 *** bug-libtool@gnu.org
14788 _LT_EOF
14789 fi ;;
14790 esac
14792 break
14794 done
14795 IFS="$lt_save_ifs"
14796 MAGIC_CMD="$lt_save_MAGIC_CMD"
14798 esac
14801 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
14802 if test -n "$MAGIC_CMD"; then
14803 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
14804 $as_echo "$MAGIC_CMD" >&6; }
14805 else
14806 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14807 $as_echo "no" >&6; }
14814 if test -z "$lt_cv_path_MAGIC_CMD"; then
14815 if test -n "$ac_tool_prefix"; then
14816 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for file" >&5
14817 $as_echo_n "checking for file... " >&6; }
14818 if test "${lt_cv_path_MAGIC_CMD+set}" = set; then :
14819 $as_echo_n "(cached) " >&6
14820 else
14821 case $MAGIC_CMD in
14822 [\\/*] | ?:[\\/]*)
14823 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
14826 lt_save_MAGIC_CMD="$MAGIC_CMD"
14827 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
14828 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
14829 for ac_dir in $ac_dummy; do
14830 IFS="$lt_save_ifs"
14831 test -z "$ac_dir" && ac_dir=.
14832 if test -f $ac_dir/file; then
14833 lt_cv_path_MAGIC_CMD="$ac_dir/file"
14834 if test -n "$file_magic_test_file"; then
14835 case $deplibs_check_method in
14836 "file_magic "*)
14837 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
14838 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
14839 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
14840 $EGREP "$file_magic_regex" > /dev/null; then
14842 else
14843 cat <<_LT_EOF 1>&2
14845 *** Warning: the command libtool uses to detect shared libraries,
14846 *** $file_magic_cmd, produces output that libtool cannot recognize.
14847 *** The result is that libtool may fail to recognize shared libraries
14848 *** as such. This will affect the creation of libtool libraries that
14849 *** depend on shared libraries, but programs linked with such libtool
14850 *** libraries will work regardless of this problem. Nevertheless, you
14851 *** may want to report the problem to your system manager and/or to
14852 *** bug-libtool@gnu.org
14854 _LT_EOF
14855 fi ;;
14856 esac
14858 break
14860 done
14861 IFS="$lt_save_ifs"
14862 MAGIC_CMD="$lt_save_MAGIC_CMD"
14864 esac
14867 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
14868 if test -n "$MAGIC_CMD"; then
14869 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
14870 $as_echo "$MAGIC_CMD" >&6; }
14871 else
14872 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14873 $as_echo "no" >&6; }
14877 else
14878 MAGIC_CMD=:
14884 esac
14886 # Use C for the default configuration in the libtool script
14888 lt_save_CC="$CC"
14889 ac_ext=c
14890 ac_cpp='$CPP $CPPFLAGS'
14891 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
14892 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
14893 ac_compiler_gnu=$ac_cv_c_compiler_gnu
14896 # Source file extension for C test sources.
14897 ac_ext=c
14899 # Object file extension for compiled C test sources.
14900 objext=o
14901 objext=$objext
14903 # Code to be used in simple compile tests
14904 lt_simple_compile_test_code="int some_variable = 0;"
14906 # Code to be used in simple link tests
14907 lt_simple_link_test_code='int main(){return(0);}'
14915 # If no C compiler was specified, use CC.
14916 LTCC=${LTCC-"$CC"}
14918 # If no C compiler flags were specified, use CFLAGS.
14919 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
14921 # Allow CC to be a program name with arguments.
14922 compiler=$CC
14924 # Save the default compiler, since it gets overwritten when the other
14925 # tags are being tested, and _LT_TAGVAR(compiler, []) is a NOP.
14926 compiler_DEFAULT=$CC
14928 # save warnings/boilerplate of simple test code
14929 ac_outfile=conftest.$ac_objext
14930 echo "$lt_simple_compile_test_code" >conftest.$ac_ext
14931 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
14932 _lt_compiler_boilerplate=`cat conftest.err`
14933 $RM conftest*
14935 ac_outfile=conftest.$ac_objext
14936 echo "$lt_simple_link_test_code" >conftest.$ac_ext
14937 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
14938 _lt_linker_boilerplate=`cat conftest.err`
14939 $RM -r conftest*
14942 ## CAVEAT EMPTOR:
14943 ## There is no encapsulation within the following macros, do not change
14944 ## the running order or otherwise move them around unless you know exactly
14945 ## what you are doing...
14946 if test -n "$compiler"; then
14948 lt_prog_compiler_no_builtin_flag=
14950 if test "$GCC" = yes; then
14951 case $cc_basename in
14952 nvcc*)
14953 lt_prog_compiler_no_builtin_flag=' -Xcompiler -fno-builtin' ;;
14955 lt_prog_compiler_no_builtin_flag=' -fno-builtin' ;;
14956 esac
14958 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
14959 $as_echo_n "checking if $compiler supports -fno-rtti -fno-exceptions... " >&6; }
14960 if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then :
14961 $as_echo_n "(cached) " >&6
14962 else
14963 lt_cv_prog_compiler_rtti_exceptions=no
14964 ac_outfile=conftest.$ac_objext
14965 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
14966 lt_compiler_flag="-fno-rtti -fno-exceptions"
14967 # Insert the option either (1) after the last *FLAGS variable, or
14968 # (2) before a word containing "conftest.", or (3) at the end.
14969 # Note that $ac_compile itself does not contain backslashes and begins
14970 # with a dollar sign (not a hyphen), so the echo should work correctly.
14971 # The option is referenced via a variable to avoid confusing sed.
14972 lt_compile=`echo "$ac_compile" | $SED \
14973 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
14974 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
14975 -e 's:$: $lt_compiler_flag:'`
14976 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
14977 (eval "$lt_compile" 2>conftest.err)
14978 ac_status=$?
14979 cat conftest.err >&5
14980 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14981 if (exit $ac_status) && test -s "$ac_outfile"; then
14982 # The compiler can only warn and ignore the option if not recognized
14983 # So say no if there are warnings other than the usual output.
14984 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
14985 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
14986 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
14987 lt_cv_prog_compiler_rtti_exceptions=yes
14990 $RM conftest*
14993 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
14994 $as_echo "$lt_cv_prog_compiler_rtti_exceptions" >&6; }
14996 if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
14997 lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
14998 else
15009 lt_prog_compiler_wl=
15010 lt_prog_compiler_pic=
15011 lt_prog_compiler_static=
15013 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
15014 $as_echo_n "checking for $compiler option to produce PIC... " >&6; }
15016 if test "$GCC" = yes; then
15017 lt_prog_compiler_wl='-Wl,'
15018 lt_prog_compiler_static='-static'
15020 case $host_os in
15021 aix*)
15022 # All AIX code is PIC.
15023 if test "$host_cpu" = ia64; then
15024 # AIX 5 now supports IA64 processor
15025 lt_prog_compiler_static='-Bstatic'
15027 lt_prog_compiler_pic='-fPIC'
15030 amigaos*)
15031 case $host_cpu in
15032 powerpc)
15033 # see comment about AmigaOS4 .so support
15034 lt_prog_compiler_pic='-fPIC'
15036 m68k)
15037 # FIXME: we need at least 68020 code to build shared libraries, but
15038 # adding the `-m68020' flag to GCC prevents building anything better,
15039 # like `-m68040'.
15040 lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
15042 esac
15045 beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
15046 # PIC is the default for these OSes.
15049 mingw* | cygwin* | pw32* | os2* | cegcc*)
15050 # This hack is so that the source file can tell whether it is being
15051 # built for inclusion in a dll (and should export symbols for example).
15052 # Although the cygwin gcc ignores -fPIC, still need this for old-style
15053 # (--disable-auto-import) libraries
15054 lt_prog_compiler_pic='-DDLL_EXPORT'
15057 darwin* | rhapsody*)
15058 # PIC is the default on this platform
15059 # Common symbols not allowed in MH_DYLIB files
15060 lt_prog_compiler_pic='-fno-common'
15063 haiku*)
15064 # PIC is the default for Haiku.
15065 # The "-static" flag exists, but is broken.
15066 lt_prog_compiler_static=
15069 hpux*)
15070 # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
15071 # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag
15072 # sets the default TLS model and affects inlining.
15073 case $host_cpu in
15074 hppa*64*)
15075 # +Z the default
15078 lt_prog_compiler_pic='-fPIC'
15080 esac
15083 interix[3-9]*)
15084 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
15085 # Instead, we relocate shared libraries at runtime.
15088 msdosdjgpp*)
15089 # Just because we use GCC doesn't mean we suddenly get shared libraries
15090 # on systems that don't support them.
15091 lt_prog_compiler_can_build_shared=no
15092 enable_shared=no
15095 *nto* | *qnx*)
15096 # QNX uses GNU C++, but need to define -shared option too, otherwise
15097 # it will coredump.
15098 lt_prog_compiler_pic='-fPIC -shared'
15101 sysv4*MP*)
15102 if test -d /usr/nec; then
15103 lt_prog_compiler_pic=-Kconform_pic
15108 lt_prog_compiler_pic='-fPIC'
15110 esac
15112 case $cc_basename in
15113 nvcc*) # Cuda Compiler Driver 2.2
15114 lt_prog_compiler_wl='-Xlinker '
15115 lt_prog_compiler_pic='-Xcompiler -fPIC'
15117 esac
15118 else
15119 # PORTME Check for flag to pass linker flags through the system compiler.
15120 case $host_os in
15121 aix*)
15122 lt_prog_compiler_wl='-Wl,'
15123 if test "$host_cpu" = ia64; then
15124 # AIX 5 now supports IA64 processor
15125 lt_prog_compiler_static='-Bstatic'
15126 else
15127 lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
15131 mingw* | cygwin* | pw32* | os2* | cegcc*)
15132 # This hack is so that the source file can tell whether it is being
15133 # built for inclusion in a dll (and should export symbols for example).
15134 lt_prog_compiler_pic='-DDLL_EXPORT'
15137 hpux9* | hpux10* | hpux11*)
15138 lt_prog_compiler_wl='-Wl,'
15139 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
15140 # not for PA HP-UX.
15141 case $host_cpu in
15142 hppa*64*|ia64*)
15143 # +Z the default
15146 lt_prog_compiler_pic='+Z'
15148 esac
15149 # Is there a better lt_prog_compiler_static that works with the bundled CC?
15150 lt_prog_compiler_static='${wl}-a ${wl}archive'
15153 irix5* | irix6* | nonstopux*)
15154 lt_prog_compiler_wl='-Wl,'
15155 # PIC (with -KPIC) is the default.
15156 lt_prog_compiler_static='-non_shared'
15159 linux* | k*bsd*-gnu | kopensolaris*-gnu)
15160 case $cc_basename in
15161 # old Intel for x86_64 which still supported -KPIC.
15162 ecc*)
15163 lt_prog_compiler_wl='-Wl,'
15164 lt_prog_compiler_pic='-KPIC'
15165 lt_prog_compiler_static='-static'
15167 # icc used to be incompatible with GCC.
15168 # ICC 10 doesn't accept -KPIC any more.
15169 icc* | ifort*)
15170 lt_prog_compiler_wl='-Wl,'
15171 lt_prog_compiler_pic='-fPIC'
15172 lt_prog_compiler_static='-static'
15174 # Lahey Fortran 8.1.
15175 lf95*)
15176 lt_prog_compiler_wl='-Wl,'
15177 lt_prog_compiler_pic='--shared'
15178 lt_prog_compiler_static='--static'
15180 pgcc* | pgf77* | pgf90* | pgf95* | pgfortran*)
15181 # Portland Group compilers (*not* the Pentium gcc compiler,
15182 # which looks to be a dead project)
15183 lt_prog_compiler_wl='-Wl,'
15184 lt_prog_compiler_pic='-fpic'
15185 lt_prog_compiler_static='-Bstatic'
15187 ccc*)
15188 lt_prog_compiler_wl='-Wl,'
15189 # All Alpha code is PIC.
15190 lt_prog_compiler_static='-non_shared'
15192 xl* | bgxl* | bgf* | mpixl*)
15193 # IBM XL C 8.0/Fortran 10.1, 11.1 on PPC and BlueGene
15194 lt_prog_compiler_wl='-Wl,'
15195 lt_prog_compiler_pic='-qpic'
15196 lt_prog_compiler_static='-qstaticlink'
15199 case `$CC -V 2>&1 | sed 5q` in
15200 *Sun\ F* | *Sun*Fortran*)
15201 # Sun Fortran 8.3 passes all unrecognized flags to the linker
15202 lt_prog_compiler_pic='-KPIC'
15203 lt_prog_compiler_static='-Bstatic'
15204 lt_prog_compiler_wl=''
15206 *Sun\ C*)
15207 # Sun C 5.9
15208 lt_prog_compiler_pic='-KPIC'
15209 lt_prog_compiler_static='-Bstatic'
15210 lt_prog_compiler_wl='-Wl,'
15212 esac
15214 esac
15217 newsos6)
15218 lt_prog_compiler_pic='-KPIC'
15219 lt_prog_compiler_static='-Bstatic'
15222 *nto* | *qnx*)
15223 # QNX uses GNU C++, but need to define -shared option too, otherwise
15224 # it will coredump.
15225 lt_prog_compiler_pic='-fPIC -shared'
15228 osf3* | osf4* | osf5*)
15229 lt_prog_compiler_wl='-Wl,'
15230 # All OSF/1 code is PIC.
15231 lt_prog_compiler_static='-non_shared'
15234 rdos*)
15235 lt_prog_compiler_static='-non_shared'
15238 solaris*)
15239 lt_prog_compiler_pic='-KPIC'
15240 lt_prog_compiler_static='-Bstatic'
15241 case $cc_basename in
15242 f77* | f90* | f95*)
15243 lt_prog_compiler_wl='-Qoption ld ';;
15245 lt_prog_compiler_wl='-Wl,';;
15246 esac
15249 sunos4*)
15250 lt_prog_compiler_wl='-Qoption ld '
15251 lt_prog_compiler_pic='-PIC'
15252 lt_prog_compiler_static='-Bstatic'
15255 sysv4 | sysv4.2uw2* | sysv4.3*)
15256 lt_prog_compiler_wl='-Wl,'
15257 lt_prog_compiler_pic='-KPIC'
15258 lt_prog_compiler_static='-Bstatic'
15261 sysv4*MP*)
15262 if test -d /usr/nec ;then
15263 lt_prog_compiler_pic='-Kconform_pic'
15264 lt_prog_compiler_static='-Bstatic'
15268 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
15269 lt_prog_compiler_wl='-Wl,'
15270 lt_prog_compiler_pic='-KPIC'
15271 lt_prog_compiler_static='-Bstatic'
15274 unicos*)
15275 lt_prog_compiler_wl='-Wl,'
15276 lt_prog_compiler_can_build_shared=no
15279 uts4*)
15280 lt_prog_compiler_pic='-pic'
15281 lt_prog_compiler_static='-Bstatic'
15285 lt_prog_compiler_can_build_shared=no
15287 esac
15290 case $host_os in
15291 # For platforms which do not support PIC, -DPIC is meaningless:
15292 *djgpp*)
15293 lt_prog_compiler_pic=
15296 lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
15298 esac
15299 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_prog_compiler_pic" >&5
15300 $as_echo "$lt_prog_compiler_pic" >&6; }
15308 # Check to make sure the PIC flag actually works.
15310 if test -n "$lt_prog_compiler_pic"; then
15311 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
15312 $as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic works... " >&6; }
15313 if test "${lt_cv_prog_compiler_pic_works+set}" = set; then :
15314 $as_echo_n "(cached) " >&6
15315 else
15316 lt_cv_prog_compiler_pic_works=no
15317 ac_outfile=conftest.$ac_objext
15318 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
15319 lt_compiler_flag="$lt_prog_compiler_pic -DPIC"
15320 # Insert the option either (1) after the last *FLAGS variable, or
15321 # (2) before a word containing "conftest.", or (3) at the end.
15322 # Note that $ac_compile itself does not contain backslashes and begins
15323 # with a dollar sign (not a hyphen), so the echo should work correctly.
15324 # The option is referenced via a variable to avoid confusing sed.
15325 lt_compile=`echo "$ac_compile" | $SED \
15326 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
15327 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
15328 -e 's:$: $lt_compiler_flag:'`
15329 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
15330 (eval "$lt_compile" 2>conftest.err)
15331 ac_status=$?
15332 cat conftest.err >&5
15333 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15334 if (exit $ac_status) && test -s "$ac_outfile"; then
15335 # The compiler can only warn and ignore the option if not recognized
15336 # So say no if there are warnings other than the usual output.
15337 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
15338 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
15339 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
15340 lt_cv_prog_compiler_pic_works=yes
15343 $RM conftest*
15346 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works" >&5
15347 $as_echo "$lt_cv_prog_compiler_pic_works" >&6; }
15349 if test x"$lt_cv_prog_compiler_pic_works" = xyes; then
15350 case $lt_prog_compiler_pic in
15351 "" | " "*) ;;
15352 *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
15353 esac
15354 else
15355 lt_prog_compiler_pic=
15356 lt_prog_compiler_can_build_shared=no
15367 # Check to make sure the static flag actually works.
15369 wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
15370 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
15371 $as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
15372 if test "${lt_cv_prog_compiler_static_works+set}" = set; then :
15373 $as_echo_n "(cached) " >&6
15374 else
15375 lt_cv_prog_compiler_static_works=no
15376 save_LDFLAGS="$LDFLAGS"
15377 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
15378 echo "$lt_simple_link_test_code" > conftest.$ac_ext
15379 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
15380 # The linker can only warn and ignore the option if not recognized
15381 # So say no if there are warnings
15382 if test -s conftest.err; then
15383 # Append any errors to the config.log.
15384 cat conftest.err 1>&5
15385 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
15386 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
15387 if diff conftest.exp conftest.er2 >/dev/null; then
15388 lt_cv_prog_compiler_static_works=yes
15390 else
15391 lt_cv_prog_compiler_static_works=yes
15394 $RM -r conftest*
15395 LDFLAGS="$save_LDFLAGS"
15398 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works" >&5
15399 $as_echo "$lt_cv_prog_compiler_static_works" >&6; }
15401 if test x"$lt_cv_prog_compiler_static_works" = xyes; then
15403 else
15404 lt_prog_compiler_static=
15413 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
15414 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
15415 if test "${lt_cv_prog_compiler_c_o+set}" = set; then :
15416 $as_echo_n "(cached) " >&6
15417 else
15418 lt_cv_prog_compiler_c_o=no
15419 $RM -r conftest 2>/dev/null
15420 mkdir conftest
15421 cd conftest
15422 mkdir out
15423 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
15425 lt_compiler_flag="-o out/conftest2.$ac_objext"
15426 # Insert the option either (1) after the last *FLAGS variable, or
15427 # (2) before a word containing "conftest.", or (3) at the end.
15428 # Note that $ac_compile itself does not contain backslashes and begins
15429 # with a dollar sign (not a hyphen), so the echo should work correctly.
15430 lt_compile=`echo "$ac_compile" | $SED \
15431 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
15432 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
15433 -e 's:$: $lt_compiler_flag:'`
15434 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
15435 (eval "$lt_compile" 2>out/conftest.err)
15436 ac_status=$?
15437 cat out/conftest.err >&5
15438 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15439 if (exit $ac_status) && test -s out/conftest2.$ac_objext
15440 then
15441 # The compiler can only warn and ignore the option if not recognized
15442 # So say no if there are warnings
15443 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
15444 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
15445 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
15446 lt_cv_prog_compiler_c_o=yes
15449 chmod u+w . 2>&5
15450 $RM conftest*
15451 # SGI C++ compiler will create directory out/ii_files/ for
15452 # template instantiation
15453 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
15454 $RM out/* && rmdir out
15455 cd ..
15456 $RM -r conftest
15457 $RM conftest*
15460 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
15461 $as_echo "$lt_cv_prog_compiler_c_o" >&6; }
15468 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
15469 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
15470 if test "${lt_cv_prog_compiler_c_o+set}" = set; then :
15471 $as_echo_n "(cached) " >&6
15472 else
15473 lt_cv_prog_compiler_c_o=no
15474 $RM -r conftest 2>/dev/null
15475 mkdir conftest
15476 cd conftest
15477 mkdir out
15478 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
15480 lt_compiler_flag="-o out/conftest2.$ac_objext"
15481 # Insert the option either (1) after the last *FLAGS variable, or
15482 # (2) before a word containing "conftest.", or (3) at the end.
15483 # Note that $ac_compile itself does not contain backslashes and begins
15484 # with a dollar sign (not a hyphen), so the echo should work correctly.
15485 lt_compile=`echo "$ac_compile" | $SED \
15486 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
15487 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
15488 -e 's:$: $lt_compiler_flag:'`
15489 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
15490 (eval "$lt_compile" 2>out/conftest.err)
15491 ac_status=$?
15492 cat out/conftest.err >&5
15493 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15494 if (exit $ac_status) && test -s out/conftest2.$ac_objext
15495 then
15496 # The compiler can only warn and ignore the option if not recognized
15497 # So say no if there are warnings
15498 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
15499 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
15500 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
15501 lt_cv_prog_compiler_c_o=yes
15504 chmod u+w . 2>&5
15505 $RM conftest*
15506 # SGI C++ compiler will create directory out/ii_files/ for
15507 # template instantiation
15508 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
15509 $RM out/* && rmdir out
15510 cd ..
15511 $RM -r conftest
15512 $RM conftest*
15515 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
15516 $as_echo "$lt_cv_prog_compiler_c_o" >&6; }
15521 hard_links="nottested"
15522 if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then
15523 # do not overwrite the value of need_locks provided by the user
15524 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
15525 $as_echo_n "checking if we can lock with hard links... " >&6; }
15526 hard_links=yes
15527 $RM conftest*
15528 ln conftest.a conftest.b 2>/dev/null && hard_links=no
15529 touch conftest.a
15530 ln conftest.a conftest.b 2>&5 || hard_links=no
15531 ln conftest.a conftest.b 2>/dev/null && hard_links=no
15532 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
15533 $as_echo "$hard_links" >&6; }
15534 if test "$hard_links" = no; then
15535 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
15536 $as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
15537 need_locks=warn
15539 else
15540 need_locks=no
15548 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
15549 $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
15551 runpath_var=
15552 allow_undefined_flag=
15553 always_export_symbols=no
15554 archive_cmds=
15555 archive_expsym_cmds=
15556 compiler_needs_object=no
15557 enable_shared_with_static_runtimes=no
15558 export_dynamic_flag_spec=
15559 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
15560 hardcode_automatic=no
15561 hardcode_direct=no
15562 hardcode_direct_absolute=no
15563 hardcode_libdir_flag_spec=
15564 hardcode_libdir_flag_spec_ld=
15565 hardcode_libdir_separator=
15566 hardcode_minus_L=no
15567 hardcode_shlibpath_var=unsupported
15568 inherit_rpath=no
15569 link_all_deplibs=unknown
15570 module_cmds=
15571 module_expsym_cmds=
15572 old_archive_from_new_cmds=
15573 old_archive_from_expsyms_cmds=
15574 thread_safe_flag_spec=
15575 whole_archive_flag_spec=
15576 # include_expsyms should be a list of space-separated symbols to be *always*
15577 # included in the symbol list
15578 include_expsyms=
15579 # exclude_expsyms can be an extended regexp of symbols to exclude
15580 # it will be wrapped by ` (' and `)$', so one must not match beginning or
15581 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
15582 # as well as any symbol that contains `d'.
15583 exclude_expsyms='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
15584 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
15585 # platforms (ab)use it in PIC code, but their linkers get confused if
15586 # the symbol is explicitly referenced. Since portable code cannot
15587 # rely on this symbol name, it's probably fine to never include it in
15588 # preloaded symbol tables.
15589 # Exclude shared library initialization/finalization symbols.
15590 extract_expsyms_cmds=
15592 case $host_os in
15593 cygwin* | mingw* | pw32* | cegcc*)
15594 # FIXME: the MSVC++ port hasn't been tested in a loooong time
15595 # When not using gcc, we currently assume that we are using
15596 # Microsoft Visual C++.
15597 if test "$GCC" != yes; then
15598 with_gnu_ld=no
15601 interix*)
15602 # we just hope/assume this is gcc and not c89 (= MSVC++)
15603 with_gnu_ld=yes
15605 openbsd*)
15606 with_gnu_ld=no
15608 esac
15610 ld_shlibs=yes
15612 # On some targets, GNU ld is compatible enough with the native linker
15613 # that we're better off using the native interface for both.
15614 lt_use_gnu_ld_interface=no
15615 if test "$with_gnu_ld" = yes; then
15616 case $host_os in
15617 aix*)
15618 # The AIX port of GNU ld has always aspired to compatibility
15619 # with the native linker. However, as the warning in the GNU ld
15620 # block says, versions before 2.19.5* couldn't really create working
15621 # shared libraries, regardless of the interface used.
15622 case `$LD -v 2>&1` in
15623 *\ \(GNU\ Binutils\)\ 2.19.5*) ;;
15624 *\ \(GNU\ Binutils\)\ 2.[2-9]*) ;;
15625 *\ \(GNU\ Binutils\)\ [3-9]*) ;;
15627 lt_use_gnu_ld_interface=yes
15629 esac
15632 lt_use_gnu_ld_interface=yes
15634 esac
15637 if test "$lt_use_gnu_ld_interface" = yes; then
15638 # If archive_cmds runs LD, not CC, wlarc should be empty
15639 wlarc='${wl}'
15641 # Set some defaults for GNU ld with shared library support. These
15642 # are reset later if shared libraries are not supported. Putting them
15643 # here allows them to be overridden if necessary.
15644 runpath_var=LD_RUN_PATH
15645 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
15646 export_dynamic_flag_spec='${wl}--export-dynamic'
15647 # ancient GNU ld didn't support --whole-archive et. al.
15648 if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then
15649 whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
15650 else
15651 whole_archive_flag_spec=
15653 supports_anon_versioning=no
15654 case `$LD -v 2>&1` in
15655 *GNU\ gold*) supports_anon_versioning=yes ;;
15656 *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
15657 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
15658 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
15659 *\ 2.11.*) ;; # other 2.11 versions
15660 *) supports_anon_versioning=yes ;;
15661 esac
15663 # See if GNU ld supports shared libraries.
15664 case $host_os in
15665 aix[3-9]*)
15666 # On AIX/PPC, the GNU linker is very broken
15667 if test "$host_cpu" != ia64; then
15668 ld_shlibs=no
15669 cat <<_LT_EOF 1>&2
15671 *** Warning: the GNU linker, at least up to release 2.19, is reported
15672 *** to be unable to reliably create shared libraries on AIX.
15673 *** Therefore, libtool is disabling shared libraries support. If you
15674 *** really care for shared libraries, you may want to install binutils
15675 *** 2.20 or above, or modify your PATH so that a non-GNU linker is found.
15676 *** You will then need to restart the configuration process.
15678 _LT_EOF
15682 amigaos*)
15683 case $host_cpu in
15684 powerpc)
15685 # see comment about AmigaOS4 .so support
15686 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
15687 archive_expsym_cmds=''
15689 m68k)
15690 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)'
15691 hardcode_libdir_flag_spec='-L$libdir'
15692 hardcode_minus_L=yes
15694 esac
15697 beos*)
15698 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
15699 allow_undefined_flag=unsupported
15700 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
15701 # support --undefined. This deserves some investigation. FIXME
15702 archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
15703 else
15704 ld_shlibs=no
15708 cygwin* | mingw* | pw32* | cegcc*)
15709 # _LT_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
15710 # as there is no search path for DLLs.
15711 hardcode_libdir_flag_spec='-L$libdir'
15712 export_dynamic_flag_spec='${wl}--export-all-symbols'
15713 allow_undefined_flag=unsupported
15714 always_export_symbols=no
15715 enable_shared_with_static_runtimes=yes
15716 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
15718 if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
15719 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
15720 # If the export-symbols file already is a .def file (1st line
15721 # is EXPORTS), use it as is; otherwise, prepend...
15722 archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
15723 cp $export_symbols $output_objdir/$soname.def;
15724 else
15725 echo EXPORTS > $output_objdir/$soname.def;
15726 cat $export_symbols >> $output_objdir/$soname.def;
15728 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
15729 else
15730 ld_shlibs=no
15734 haiku*)
15735 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
15736 link_all_deplibs=yes
15739 interix[3-9]*)
15740 hardcode_direct=no
15741 hardcode_shlibpath_var=no
15742 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
15743 export_dynamic_flag_spec='${wl}-E'
15744 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
15745 # Instead, shared libraries are loaded at an image base (0x10000000 by
15746 # default) and relocated if they conflict, which is a slow very memory
15747 # consuming and fragmenting process. To avoid this, we pick a random,
15748 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
15749 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
15750 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
15751 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'
15754 gnu* | linux* | tpf* | k*bsd*-gnu | kopensolaris*-gnu)
15755 tmp_diet=no
15756 if test "$host_os" = linux-dietlibc; then
15757 case $cc_basename in
15758 diet\ *) tmp_diet=yes;; # linux-dietlibc with static linking (!diet-dyn)
15759 esac
15761 if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \
15762 && test "$tmp_diet" = no
15763 then
15764 tmp_addflag=
15765 tmp_sharedflag='-shared'
15766 case $cc_basename,$host_cpu in
15767 pgcc*) # Portland Group C compiler
15768 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'
15769 tmp_addflag=' $pic_flag'
15771 pgf77* | pgf90* | pgf95* | pgfortran*)
15772 # Portland Group f77 and f90 compilers
15773 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'
15774 tmp_addflag=' $pic_flag -Mnomain' ;;
15775 ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64
15776 tmp_addflag=' -i_dynamic' ;;
15777 efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64
15778 tmp_addflag=' -i_dynamic -nofor_main' ;;
15779 ifc* | ifort*) # Intel Fortran compiler
15780 tmp_addflag=' -nofor_main' ;;
15781 lf95*) # Lahey Fortran 8.1
15782 whole_archive_flag_spec=
15783 tmp_sharedflag='--shared' ;;
15784 xl[cC]* | bgxl[cC]* | mpixl[cC]*) # IBM XL C 8.0 on PPC (deal with xlf below)
15785 tmp_sharedflag='-qmkshrobj'
15786 tmp_addflag= ;;
15787 nvcc*) # Cuda Compiler Driver 2.2
15788 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'
15789 compiler_needs_object=yes
15791 esac
15792 case `$CC -V 2>&1 | sed 5q` in
15793 *Sun\ C*) # Sun C 5.9
15794 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'
15795 compiler_needs_object=yes
15796 tmp_sharedflag='-G' ;;
15797 *Sun\ F*) # Sun Fortran 8.3
15798 tmp_sharedflag='-G' ;;
15799 esac
15800 archive_cmds='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
15802 if test "x$supports_anon_versioning" = xyes; then
15803 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
15804 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
15805 echo "local: *; };" >> $output_objdir/$libname.ver~
15806 $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
15809 case $cc_basename in
15810 xlf* | bgf* | bgxlf* | mpixlf*)
15811 # IBM XL Fortran 10.1 on PPC cannot create shared libs itself
15812 whole_archive_flag_spec='--whole-archive$convenience --no-whole-archive'
15813 hardcode_libdir_flag_spec=
15814 hardcode_libdir_flag_spec_ld='-rpath $libdir'
15815 archive_cmds='$LD -shared $libobjs $deplibs $compiler_flags -soname $soname -o $lib'
15816 if test "x$supports_anon_versioning" = xyes; then
15817 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
15818 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
15819 echo "local: *; };" >> $output_objdir/$libname.ver~
15820 $LD -shared $libobjs $deplibs $compiler_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib'
15823 esac
15824 else
15825 ld_shlibs=no
15829 netbsd*)
15830 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
15831 archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
15832 wlarc=
15833 else
15834 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
15835 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
15839 solaris*)
15840 if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then
15841 ld_shlibs=no
15842 cat <<_LT_EOF 1>&2
15844 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
15845 *** create shared libraries on Solaris systems. Therefore, libtool
15846 *** is disabling shared libraries support. We urge you to upgrade GNU
15847 *** binutils to release 2.9.1 or newer. Another option is to modify
15848 *** your PATH or compiler configuration so that the native linker is
15849 *** used, and then restart.
15851 _LT_EOF
15852 elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
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'
15855 else
15856 ld_shlibs=no
15860 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
15861 case `$LD -v 2>&1` in
15862 *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
15863 ld_shlibs=no
15864 cat <<_LT_EOF 1>&2
15866 *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
15867 *** reliably create shared libraries on SCO systems. Therefore, libtool
15868 *** is disabling shared libraries support. We urge you to upgrade GNU
15869 *** binutils to release 2.16.91.0.3 or newer. Another option is to modify
15870 *** your PATH or compiler configuration so that the native linker is
15871 *** used, and then restart.
15873 _LT_EOF
15876 # For security reasons, it is highly recommended that you always
15877 # use absolute paths for naming shared libraries, and exclude the
15878 # DT_RUNPATH tag from executables and libraries. But doing so
15879 # requires that you compile everything twice, which is a pain.
15880 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
15881 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
15882 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
15883 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
15884 else
15885 ld_shlibs=no
15888 esac
15891 sunos4*)
15892 archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
15893 wlarc=
15894 hardcode_direct=yes
15895 hardcode_shlibpath_var=no
15899 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
15900 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
15901 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
15902 else
15903 ld_shlibs=no
15906 esac
15908 if test "$ld_shlibs" = no; then
15909 runpath_var=
15910 hardcode_libdir_flag_spec=
15911 export_dynamic_flag_spec=
15912 whole_archive_flag_spec=
15914 else
15915 # PORTME fill in a description of your system's linker (not GNU ld)
15916 case $host_os in
15917 aix3*)
15918 allow_undefined_flag=unsupported
15919 always_export_symbols=yes
15920 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'
15921 # Note: this linker hardcodes the directories in LIBPATH if there
15922 # are no directories specified by -L.
15923 hardcode_minus_L=yes
15924 if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
15925 # Neither direct hardcoding nor static linking is supported with a
15926 # broken collect2.
15927 hardcode_direct=unsupported
15931 aix[4-9]*)
15932 if test "$host_cpu" = ia64; then
15933 # On IA64, the linker does run time linking by default, so we don't
15934 # have to do anything special.
15935 aix_use_runtimelinking=no
15936 exp_sym_flag='-Bexport'
15937 no_entry_flag=""
15938 else
15939 # If we're using GNU nm, then we don't want the "-C" option.
15940 # -C means demangle to AIX nm, but means don't demangle with GNU nm
15941 # Also, AIX nm treats weak defined symbols like other global
15942 # defined symbols, whereas GNU nm marks them as "W".
15943 if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
15944 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'
15945 else
15946 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'
15948 aix_use_runtimelinking=no
15950 # Test if we are trying to use run time linking or normal
15951 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
15952 # need to do runtime linking.
15953 case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
15954 for ld_flag in $LDFLAGS; do
15955 if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
15956 aix_use_runtimelinking=yes
15957 break
15959 done
15961 esac
15963 exp_sym_flag='-bexport'
15964 no_entry_flag='-bnoentry'
15967 # When large executables or shared objects are built, AIX ld can
15968 # have problems creating the table of contents. If linking a library
15969 # or program results in "error TOC overflow" add -mminimal-toc to
15970 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
15971 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
15973 archive_cmds=''
15974 hardcode_direct=yes
15975 hardcode_direct_absolute=yes
15976 hardcode_libdir_separator=':'
15977 link_all_deplibs=yes
15978 file_list_spec='${wl}-f,'
15980 if test "$GCC" = yes; then
15981 case $host_os in aix4.[012]|aix4.[012].*)
15982 # We only want to do this on AIX 4.2 and lower, the check
15983 # below for broken collect2 doesn't work under 4.3+
15984 collect2name=`${CC} -print-prog-name=collect2`
15985 if test -f "$collect2name" &&
15986 strings "$collect2name" | $GREP resolve_lib_name >/dev/null
15987 then
15988 # We have reworked collect2
15990 else
15991 # We have old collect2
15992 hardcode_direct=unsupported
15993 # It fails to find uninstalled libraries when the uninstalled
15994 # path is not listed in the libpath. Setting hardcode_minus_L
15995 # to unsupported forces relinking
15996 hardcode_minus_L=yes
15997 hardcode_libdir_flag_spec='-L$libdir'
15998 hardcode_libdir_separator=
16001 esac
16002 shared_flag='-shared'
16003 if test "$aix_use_runtimelinking" = yes; then
16004 shared_flag="$shared_flag "'${wl}-G'
16006 else
16007 # not using gcc
16008 if test "$host_cpu" = ia64; then
16009 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
16010 # chokes on -Wl,-G. The following line is correct:
16011 shared_flag='-G'
16012 else
16013 if test "$aix_use_runtimelinking" = yes; then
16014 shared_flag='${wl}-G'
16015 else
16016 shared_flag='${wl}-bM:SRE'
16021 export_dynamic_flag_spec='${wl}-bexpall'
16022 # It seems that -bexpall does not export symbols beginning with
16023 # underscore (_), so it is better to generate a list of symbols to export.
16024 always_export_symbols=yes
16025 if test "$aix_use_runtimelinking" = yes; then
16026 # Warning - without using the other runtime loading flags (-brtl),
16027 # -berok will link without error, but may produce a broken library.
16028 allow_undefined_flag='-berok'
16029 # Determine the default libpath from the value encoded in an
16030 # empty executable.
16031 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16032 /* end confdefs.h. */
16035 main ()
16039 return 0;
16041 _ACEOF
16042 if ac_fn_c_try_link "$LINENO"; then :
16044 lt_aix_libpath_sed='
16045 /Import File Strings/,/^$/ {
16046 /^0/ {
16047 s/^0 *\(.*\)$/\1/
16051 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
16052 # Check for a 64-bit object if we didn't find anything.
16053 if test -z "$aix_libpath"; then
16054 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
16057 rm -f core conftest.err conftest.$ac_objext \
16058 conftest$ac_exeext conftest.$ac_ext
16059 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
16061 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
16062 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"
16063 else
16064 if test "$host_cpu" = ia64; then
16065 hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
16066 allow_undefined_flag="-z nodefs"
16067 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"
16068 else
16069 # Determine the default libpath from the value encoded in an
16070 # empty executable.
16071 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16072 /* end confdefs.h. */
16075 main ()
16079 return 0;
16081 _ACEOF
16082 if ac_fn_c_try_link "$LINENO"; then :
16084 lt_aix_libpath_sed='
16085 /Import File Strings/,/^$/ {
16086 /^0/ {
16087 s/^0 *\(.*\)$/\1/
16091 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
16092 # Check for a 64-bit object if we didn't find anything.
16093 if test -z "$aix_libpath"; then
16094 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
16097 rm -f core conftest.err conftest.$ac_objext \
16098 conftest$ac_exeext conftest.$ac_ext
16099 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
16101 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
16102 # Warning - without using the other run time loading flags,
16103 # -berok will link without error, but may produce a broken library.
16104 no_undefined_flag=' ${wl}-bernotok'
16105 allow_undefined_flag=' ${wl}-berok'
16106 if test "$with_gnu_ld" = yes; then
16107 # We only use this code for GNU lds that support --whole-archive.
16108 whole_archive_flag_spec='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
16109 else
16110 # Exported symbols can be pulled into shared objects from archives
16111 whole_archive_flag_spec='$convenience'
16113 archive_cmds_need_lc=yes
16114 # This is similar to how AIX traditionally builds its shared libraries.
16115 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'
16120 amigaos*)
16121 case $host_cpu in
16122 powerpc)
16123 # see comment about AmigaOS4 .so support
16124 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
16125 archive_expsym_cmds=''
16127 m68k)
16128 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)'
16129 hardcode_libdir_flag_spec='-L$libdir'
16130 hardcode_minus_L=yes
16132 esac
16135 bsdi[45]*)
16136 export_dynamic_flag_spec=-rdynamic
16139 cygwin* | mingw* | pw32* | cegcc*)
16140 # When not using gcc, we currently assume that we are using
16141 # Microsoft Visual C++.
16142 # hardcode_libdir_flag_spec is actually meaningless, as there is
16143 # no search path for DLLs.
16144 hardcode_libdir_flag_spec=' '
16145 allow_undefined_flag=unsupported
16146 # Tell ltmain to make .lib files, not .a files.
16147 libext=lib
16148 # Tell ltmain to make .dll files, not .so files.
16149 shrext_cmds=".dll"
16150 # FIXME: Setting linknames here is a bad hack.
16151 archive_cmds='$CC -o $lib $libobjs $compiler_flags `func_echo_all "$deplibs" | $SED '\''s/ -lc$//'\''` -link -dll~linknames='
16152 # The linker will automatically build a .lib file if we build a DLL.
16153 old_archive_from_new_cmds='true'
16154 # FIXME: Should let the user specify the lib program.
16155 old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs'
16156 fix_srcfile_path='`cygpath -w "$srcfile"`'
16157 enable_shared_with_static_runtimes=yes
16160 darwin* | rhapsody*)
16163 archive_cmds_need_lc=no
16164 hardcode_direct=no
16165 hardcode_automatic=yes
16166 hardcode_shlibpath_var=unsupported
16167 if test "$lt_cv_ld_force_load" = "yes"; then
16168 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\"`'
16169 else
16170 whole_archive_flag_spec=''
16172 link_all_deplibs=yes
16173 allow_undefined_flag="$_lt_dar_allow_undefined"
16174 case $cc_basename in
16175 ifort*) _lt_dar_can_shared=yes ;;
16176 *) _lt_dar_can_shared=$GCC ;;
16177 esac
16178 if test "$_lt_dar_can_shared" = "yes"; then
16179 output_verbose_link_cmd=func_echo_all
16180 archive_cmds="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod${_lt_dsymutil}"
16181 module_cmds="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
16182 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}"
16183 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}"
16185 else
16186 ld_shlibs=no
16191 dgux*)
16192 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
16193 hardcode_libdir_flag_spec='-L$libdir'
16194 hardcode_shlibpath_var=no
16197 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
16198 # support. Future versions do this automatically, but an explicit c++rt0.o
16199 # does not break anything, and helps significantly (at the cost of a little
16200 # extra space).
16201 freebsd2.2*)
16202 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
16203 hardcode_libdir_flag_spec='-R$libdir'
16204 hardcode_direct=yes
16205 hardcode_shlibpath_var=no
16208 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
16209 freebsd2.*)
16210 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
16211 hardcode_direct=yes
16212 hardcode_minus_L=yes
16213 hardcode_shlibpath_var=no
16216 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
16217 freebsd* | dragonfly*)
16218 archive_cmds='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
16219 hardcode_libdir_flag_spec='-R$libdir'
16220 hardcode_direct=yes
16221 hardcode_shlibpath_var=no
16224 hpux9*)
16225 if test "$GCC" = yes; then
16226 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'
16227 else
16228 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'
16230 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
16231 hardcode_libdir_separator=:
16232 hardcode_direct=yes
16234 # hardcode_minus_L: Not really in the search PATH,
16235 # but as the default location of the library.
16236 hardcode_minus_L=yes
16237 export_dynamic_flag_spec='${wl}-E'
16240 hpux10*)
16241 if test "$GCC" = yes && test "$with_gnu_ld" = no; then
16242 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
16243 else
16244 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
16246 if test "$with_gnu_ld" = no; then
16247 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
16248 hardcode_libdir_flag_spec_ld='+b $libdir'
16249 hardcode_libdir_separator=:
16250 hardcode_direct=yes
16251 hardcode_direct_absolute=yes
16252 export_dynamic_flag_spec='${wl}-E'
16253 # hardcode_minus_L: Not really in the search PATH,
16254 # but as the default location of the library.
16255 hardcode_minus_L=yes
16259 hpux11*)
16260 if test "$GCC" = yes && test "$with_gnu_ld" = no; then
16261 case $host_cpu in
16262 hppa*64*)
16263 archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
16265 ia64*)
16266 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
16269 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
16271 esac
16272 else
16273 case $host_cpu in
16274 hppa*64*)
16275 archive_cmds='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
16277 ia64*)
16278 archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
16282 # Older versions of the 11.00 compiler do not understand -b yet
16283 # (HP92453-01 A.11.01.20 doesn't, HP92453-01 B.11.X.35175-35176.GP does)
16284 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC understands -b" >&5
16285 $as_echo_n "checking if $CC understands -b... " >&6; }
16286 if test "${lt_cv_prog_compiler__b+set}" = set; then :
16287 $as_echo_n "(cached) " >&6
16288 else
16289 lt_cv_prog_compiler__b=no
16290 save_LDFLAGS="$LDFLAGS"
16291 LDFLAGS="$LDFLAGS -b"
16292 echo "$lt_simple_link_test_code" > conftest.$ac_ext
16293 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
16294 # The linker can only warn and ignore the option if not recognized
16295 # So say no if there are warnings
16296 if test -s conftest.err; then
16297 # Append any errors to the config.log.
16298 cat conftest.err 1>&5
16299 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
16300 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
16301 if diff conftest.exp conftest.er2 >/dev/null; then
16302 lt_cv_prog_compiler__b=yes
16304 else
16305 lt_cv_prog_compiler__b=yes
16308 $RM -r conftest*
16309 LDFLAGS="$save_LDFLAGS"
16312 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler__b" >&5
16313 $as_echo "$lt_cv_prog_compiler__b" >&6; }
16315 if test x"$lt_cv_prog_compiler__b" = xyes; then
16316 archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
16317 else
16318 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
16322 esac
16324 if test "$with_gnu_ld" = no; then
16325 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
16326 hardcode_libdir_separator=:
16328 case $host_cpu in
16329 hppa*64*|ia64*)
16330 hardcode_direct=no
16331 hardcode_shlibpath_var=no
16334 hardcode_direct=yes
16335 hardcode_direct_absolute=yes
16336 export_dynamic_flag_spec='${wl}-E'
16338 # hardcode_minus_L: Not really in the search PATH,
16339 # but as the default location of the library.
16340 hardcode_minus_L=yes
16342 esac
16346 irix5* | irix6* | nonstopux*)
16347 if test "$GCC" = yes; then
16348 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'
16349 # Try to use the -exported_symbol ld option, if it does not
16350 # work, assume that -exports_file does not work either and
16351 # implicitly export all symbols.
16352 save_LDFLAGS="$LDFLAGS"
16353 LDFLAGS="$LDFLAGS -shared ${wl}-exported_symbol ${wl}foo ${wl}-update_registry ${wl}/dev/null"
16354 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16355 /* end confdefs.h. */
16356 int foo(void) {}
16357 _ACEOF
16358 if ac_fn_c_try_link "$LINENO"; then :
16359 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'
16362 rm -f core conftest.err conftest.$ac_objext \
16363 conftest$ac_exeext conftest.$ac_ext
16364 LDFLAGS="$save_LDFLAGS"
16365 else
16366 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'
16367 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'
16369 archive_cmds_need_lc='no'
16370 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
16371 hardcode_libdir_separator=:
16372 inherit_rpath=yes
16373 link_all_deplibs=yes
16376 netbsd*)
16377 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
16378 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
16379 else
16380 archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
16382 hardcode_libdir_flag_spec='-R$libdir'
16383 hardcode_direct=yes
16384 hardcode_shlibpath_var=no
16387 newsos6)
16388 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
16389 hardcode_direct=yes
16390 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
16391 hardcode_libdir_separator=:
16392 hardcode_shlibpath_var=no
16395 *nto* | *qnx*)
16398 openbsd*)
16399 if test -f /usr/libexec/ld.so; then
16400 hardcode_direct=yes
16401 hardcode_shlibpath_var=no
16402 hardcode_direct_absolute=yes
16403 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
16404 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
16405 archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
16406 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
16407 export_dynamic_flag_spec='${wl}-E'
16408 else
16409 case $host_os in
16410 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
16411 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
16412 hardcode_libdir_flag_spec='-R$libdir'
16415 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
16416 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
16418 esac
16420 else
16421 ld_shlibs=no
16425 os2*)
16426 hardcode_libdir_flag_spec='-L$libdir'
16427 hardcode_minus_L=yes
16428 allow_undefined_flag=unsupported
16429 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'
16430 old_archive_from_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
16433 osf3*)
16434 if test "$GCC" = yes; then
16435 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
16436 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'
16437 else
16438 allow_undefined_flag=' -expect_unresolved \*'
16439 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'
16441 archive_cmds_need_lc='no'
16442 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
16443 hardcode_libdir_separator=:
16446 osf4* | osf5*) # as osf3* with the addition of -msym flag
16447 if test "$GCC" = yes; then
16448 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
16449 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'
16450 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
16451 else
16452 allow_undefined_flag=' -expect_unresolved \*'
16453 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'
16454 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~
16455 $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'
16457 # Both c and cxx compiler support -rpath directly
16458 hardcode_libdir_flag_spec='-rpath $libdir'
16460 archive_cmds_need_lc='no'
16461 hardcode_libdir_separator=:
16464 solaris*)
16465 no_undefined_flag=' -z defs'
16466 if test "$GCC" = yes; then
16467 wlarc='${wl}'
16468 archive_cmds='$CC -shared ${wl}-z ${wl}text ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
16469 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
16470 $CC -shared ${wl}-z ${wl}text ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
16471 else
16472 case `$CC -V 2>&1` in
16473 *"Compilers 5.0"*)
16474 wlarc=''
16475 archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
16476 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
16477 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp'
16480 wlarc='${wl}'
16481 archive_cmds='$CC -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $compiler_flags'
16482 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
16483 $CC -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
16485 esac
16487 hardcode_libdir_flag_spec='-R$libdir'
16488 hardcode_shlibpath_var=no
16489 case $host_os in
16490 solaris2.[0-5] | solaris2.[0-5].*) ;;
16492 # The compiler driver will combine and reorder linker options,
16493 # but understands `-z linker_flag'. GCC discards it without `$wl',
16494 # but is careful enough not to reorder.
16495 # Supported since Solaris 2.6 (maybe 2.5.1?)
16496 if test "$GCC" = yes; then
16497 whole_archive_flag_spec='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
16498 else
16499 whole_archive_flag_spec='-z allextract$convenience -z defaultextract'
16502 esac
16503 link_all_deplibs=yes
16506 sunos4*)
16507 if test "x$host_vendor" = xsequent; then
16508 # Use $CC to link under sequent, because it throws in some extra .o
16509 # files that make .init and .fini sections work.
16510 archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
16511 else
16512 archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
16514 hardcode_libdir_flag_spec='-L$libdir'
16515 hardcode_direct=yes
16516 hardcode_minus_L=yes
16517 hardcode_shlibpath_var=no
16520 sysv4)
16521 case $host_vendor in
16522 sni)
16523 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
16524 hardcode_direct=yes # is this really true???
16526 siemens)
16527 ## LD is ld it makes a PLAMLIB
16528 ## CC just makes a GrossModule.
16529 archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
16530 reload_cmds='$CC -r -o $output$reload_objs'
16531 hardcode_direct=no
16533 motorola)
16534 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
16535 hardcode_direct=no #Motorola manual says yes, but my tests say they lie
16537 esac
16538 runpath_var='LD_RUN_PATH'
16539 hardcode_shlibpath_var=no
16542 sysv4.3*)
16543 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
16544 hardcode_shlibpath_var=no
16545 export_dynamic_flag_spec='-Bexport'
16548 sysv4*MP*)
16549 if test -d /usr/nec; then
16550 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
16551 hardcode_shlibpath_var=no
16552 runpath_var=LD_RUN_PATH
16553 hardcode_runpath_var=yes
16554 ld_shlibs=yes
16558 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
16559 no_undefined_flag='${wl}-z,text'
16560 archive_cmds_need_lc=no
16561 hardcode_shlibpath_var=no
16562 runpath_var='LD_RUN_PATH'
16564 if test "$GCC" = yes; then
16565 archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
16566 archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
16567 else
16568 archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
16569 archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
16573 sysv5* | sco3.2v5* | sco5v6*)
16574 # Note: We can NOT use -z defs as we might desire, because we do not
16575 # link with -lc, and that would cause any symbols used from libc to
16576 # always be unresolved, which means just about no library would
16577 # ever link correctly. If we're not using GNU ld we use -z text
16578 # though, which does catch some bad symbols but isn't as heavy-handed
16579 # as -z defs.
16580 no_undefined_flag='${wl}-z,text'
16581 allow_undefined_flag='${wl}-z,nodefs'
16582 archive_cmds_need_lc=no
16583 hardcode_shlibpath_var=no
16584 hardcode_libdir_flag_spec='${wl}-R,$libdir'
16585 hardcode_libdir_separator=':'
16586 link_all_deplibs=yes
16587 export_dynamic_flag_spec='${wl}-Bexport'
16588 runpath_var='LD_RUN_PATH'
16590 if test "$GCC" = yes; then
16591 archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
16592 archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
16593 else
16594 archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
16595 archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
16599 uts4*)
16600 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
16601 hardcode_libdir_flag_spec='-L$libdir'
16602 hardcode_shlibpath_var=no
16606 ld_shlibs=no
16608 esac
16610 if test x$host_vendor = xsni; then
16611 case $host in
16612 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
16613 export_dynamic_flag_spec='${wl}-Blargedynsym'
16615 esac
16619 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs" >&5
16620 $as_echo "$ld_shlibs" >&6; }
16621 test "$ld_shlibs" = no && can_build_shared=no
16623 with_gnu_ld=$with_gnu_ld
16640 # Do we need to explicitly link libc?
16642 case "x$archive_cmds_need_lc" in
16643 x|xyes)
16644 # Assume -lc should be added
16645 archive_cmds_need_lc=yes
16647 if test "$enable_shared" = yes && test "$GCC" = yes; then
16648 case $archive_cmds in
16649 *'~'*)
16650 # FIXME: we may have to deal with multi-command sequences.
16652 '$CC '*)
16653 # Test whether the compiler implicitly links with -lc since on some
16654 # systems, -lgcc has to come before -lc. If gcc already passes -lc
16655 # to ld, don't add -lc before -lgcc.
16656 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
16657 $as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
16658 if test "${lt_cv_archive_cmds_need_lc+set}" = set; then :
16659 $as_echo_n "(cached) " >&6
16660 else
16661 $RM conftest*
16662 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
16664 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
16665 (eval $ac_compile) 2>&5
16666 ac_status=$?
16667 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
16668 test $ac_status = 0; } 2>conftest.err; then
16669 soname=conftest
16670 lib=conftest
16671 libobjs=conftest.$ac_objext
16672 deplibs=
16673 wl=$lt_prog_compiler_wl
16674 pic_flag=$lt_prog_compiler_pic
16675 compiler_flags=-v
16676 linker_flags=-v
16677 verstring=
16678 output_objdir=.
16679 libname=conftest
16680 lt_save_allow_undefined_flag=$allow_undefined_flag
16681 allow_undefined_flag=
16682 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5
16683 (eval $archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
16684 ac_status=$?
16685 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
16686 test $ac_status = 0; }
16687 then
16688 lt_cv_archive_cmds_need_lc=no
16689 else
16690 lt_cv_archive_cmds_need_lc=yes
16692 allow_undefined_flag=$lt_save_allow_undefined_flag
16693 else
16694 cat conftest.err 1>&5
16696 $RM conftest*
16699 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc" >&5
16700 $as_echo "$lt_cv_archive_cmds_need_lc" >&6; }
16701 archive_cmds_need_lc=$lt_cv_archive_cmds_need_lc
16703 esac
16706 esac
16864 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
16865 $as_echo_n "checking dynamic linker characteristics... " >&6; }
16867 if test "$GCC" = yes; then
16868 case $host_os in
16869 darwin*) lt_awk_arg="/^libraries:/,/LR/" ;;
16870 *) lt_awk_arg="/^libraries:/" ;;
16871 esac
16872 case $host_os in
16873 mingw* | cegcc*) lt_sed_strip_eq="s,=\([A-Za-z]:\),\1,g" ;;
16874 *) lt_sed_strip_eq="s,=/,/,g" ;;
16875 esac
16876 lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e $lt_sed_strip_eq`
16877 case $lt_search_path_spec in
16878 *\;*)
16879 # if the path contains ";" then we assume it to be the separator
16880 # otherwise default to the standard path separator (i.e. ":") - it is
16881 # assumed that no part of a normal pathname contains ";" but that should
16882 # okay in the real world where ";" in dirpaths is itself problematic.
16883 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED 's/;/ /g'`
16886 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED "s/$PATH_SEPARATOR/ /g"`
16888 esac
16889 # Ok, now we have the path, separated by spaces, we can step through it
16890 # and add multilib dir if necessary.
16891 lt_tmp_lt_search_path_spec=
16892 lt_multi_os_dir=`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null`
16893 for lt_sys_path in $lt_search_path_spec; do
16894 if test -d "$lt_sys_path/$lt_multi_os_dir"; then
16895 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path/$lt_multi_os_dir"
16896 else
16897 test -d "$lt_sys_path" && \
16898 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path"
16900 done
16901 lt_search_path_spec=`$ECHO "$lt_tmp_lt_search_path_spec" | awk '
16902 BEGIN {RS=" "; FS="/|\n";} {
16903 lt_foo="";
16904 lt_count=0;
16905 for (lt_i = NF; lt_i > 0; lt_i--) {
16906 if ($lt_i != "" && $lt_i != ".") {
16907 if ($lt_i == "..") {
16908 lt_count++;
16909 } else {
16910 if (lt_count == 0) {
16911 lt_foo="/" $lt_i lt_foo;
16912 } else {
16913 lt_count--;
16918 if (lt_foo != "") { lt_freq[lt_foo]++; }
16919 if (lt_freq[lt_foo] == 1) { print lt_foo; }
16921 # AWK program above erroneously prepends '/' to C:/dos/paths
16922 # for these hosts.
16923 case $host_os in
16924 mingw* | cegcc*) lt_search_path_spec=`$ECHO "$lt_search_path_spec" |\
16925 $SED 's,/\([A-Za-z]:\),\1,g'` ;;
16926 esac
16927 sys_lib_search_path_spec=`$ECHO "$lt_search_path_spec" | $lt_NL2SP`
16928 else
16929 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
16931 library_names_spec=
16932 libname_spec='lib$name'
16933 soname_spec=
16934 shrext_cmds=".so"
16935 postinstall_cmds=
16936 postuninstall_cmds=
16937 finish_cmds=
16938 finish_eval=
16939 shlibpath_var=
16940 shlibpath_overrides_runpath=unknown
16941 version_type=none
16942 dynamic_linker="$host_os ld.so"
16943 sys_lib_dlsearch_path_spec="/lib /usr/lib"
16944 need_lib_prefix=unknown
16945 hardcode_into_libs=no
16947 # when you set need_version to no, make sure it does not cause -set_version
16948 # flags to be left without arguments
16949 need_version=unknown
16951 case $host_os in
16952 aix3*)
16953 version_type=linux
16954 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
16955 shlibpath_var=LIBPATH
16957 # AIX 3 has no versioning support, so we append a major version to the name.
16958 soname_spec='${libname}${release}${shared_ext}$major'
16961 aix[4-9]*)
16962 version_type=linux
16963 need_lib_prefix=no
16964 need_version=no
16965 hardcode_into_libs=yes
16966 if test "$host_cpu" = ia64; then
16967 # AIX 5 supports IA64
16968 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
16969 shlibpath_var=LD_LIBRARY_PATH
16970 else
16971 # With GCC up to 2.95.x, collect2 would create an import file
16972 # for dependence libraries. The import file would start with
16973 # the line `#! .'. This would cause the generated library to
16974 # depend on `.', always an invalid library. This was fixed in
16975 # development snapshots of GCC prior to 3.0.
16976 case $host_os in
16977 aix4 | aix4.[01] | aix4.[01].*)
16978 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
16979 echo ' yes '
16980 echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then
16982 else
16983 can_build_shared=no
16986 esac
16987 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
16988 # soname into executable. Probably we can add versioning support to
16989 # collect2, so additional links can be useful in future.
16990 if test "$aix_use_runtimelinking" = yes; then
16991 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
16992 # instead of lib<name>.a to let people know that these are not
16993 # typical AIX shared libraries.
16994 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16995 else
16996 # We preserve .a as extension for shared libraries through AIX4.2
16997 # and later when we are not doing run time linking.
16998 library_names_spec='${libname}${release}.a $libname.a'
16999 soname_spec='${libname}${release}${shared_ext}$major'
17001 shlibpath_var=LIBPATH
17005 amigaos*)
17006 case $host_cpu in
17007 powerpc)
17008 # Since July 2007 AmigaOS4 officially supports .so libraries.
17009 # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
17010 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17012 m68k)
17013 library_names_spec='$libname.ixlibrary $libname.a'
17014 # Create ${libname}_ixlibrary.a entries in /sys/libs.
17015 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'
17017 esac
17020 beos*)
17021 library_names_spec='${libname}${shared_ext}'
17022 dynamic_linker="$host_os ld.so"
17023 shlibpath_var=LIBRARY_PATH
17026 bsdi[45]*)
17027 version_type=linux
17028 need_version=no
17029 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17030 soname_spec='${libname}${release}${shared_ext}$major'
17031 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
17032 shlibpath_var=LD_LIBRARY_PATH
17033 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
17034 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
17035 # the default ld.so.conf also contains /usr/contrib/lib and
17036 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
17037 # libtool to hard-code these into programs
17040 cygwin* | mingw* | pw32* | cegcc*)
17041 version_type=windows
17042 shrext_cmds=".dll"
17043 need_version=no
17044 need_lib_prefix=no
17046 case $GCC,$host_os in
17047 yes,cygwin* | yes,mingw* | yes,pw32* | yes,cegcc*)
17048 library_names_spec='$libname.dll.a'
17049 # DLL is installed to $(libdir)/../bin by postinstall_cmds
17050 postinstall_cmds='base_file=`basename \${file}`~
17051 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
17052 dldir=$destdir/`dirname \$dlpath`~
17053 test -d \$dldir || mkdir -p \$dldir~
17054 $install_prog $dir/$dlname \$dldir/$dlname~
17055 chmod a+x \$dldir/$dlname~
17056 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
17057 eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
17059 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
17060 dlpath=$dir/\$dldll~
17061 $RM \$dlpath'
17062 shlibpath_overrides_runpath=yes
17064 case $host_os in
17065 cygwin*)
17066 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
17067 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
17069 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/lib/w32api"
17071 mingw* | cegcc*)
17072 # MinGW DLLs use traditional 'lib' prefix
17073 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
17075 pw32*)
17076 # pw32 DLLs use 'pw' prefix rather than 'lib'
17077 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
17079 esac
17083 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
17085 esac
17086 dynamic_linker='Win32 ld.exe'
17087 # FIXME: first we should search . and the directory the executable is in
17088 shlibpath_var=PATH
17091 darwin* | rhapsody*)
17092 dynamic_linker="$host_os dyld"
17093 version_type=darwin
17094 need_lib_prefix=no
17095 need_version=no
17096 library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext'
17097 soname_spec='${libname}${release}${major}$shared_ext'
17098 shlibpath_overrides_runpath=yes
17099 shlibpath_var=DYLD_LIBRARY_PATH
17100 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
17102 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib"
17103 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
17106 dgux*)
17107 version_type=linux
17108 need_lib_prefix=no
17109 need_version=no
17110 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
17111 soname_spec='${libname}${release}${shared_ext}$major'
17112 shlibpath_var=LD_LIBRARY_PATH
17115 freebsd* | dragonfly*)
17116 # DragonFly does not have aout. When/if they implement a new
17117 # versioning mechanism, adjust this.
17118 if test -x /usr/bin/objformat; then
17119 objformat=`/usr/bin/objformat`
17120 else
17121 case $host_os in
17122 freebsd[23].*) objformat=aout ;;
17123 *) objformat=elf ;;
17124 esac
17126 version_type=freebsd-$objformat
17127 case $version_type in
17128 freebsd-elf*)
17129 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
17130 need_version=no
17131 need_lib_prefix=no
17133 freebsd-*)
17134 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
17135 need_version=yes
17137 esac
17138 shlibpath_var=LD_LIBRARY_PATH
17139 case $host_os in
17140 freebsd2.*)
17141 shlibpath_overrides_runpath=yes
17143 freebsd3.[01]* | freebsdelf3.[01]*)
17144 shlibpath_overrides_runpath=yes
17145 hardcode_into_libs=yes
17147 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
17148 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
17149 shlibpath_overrides_runpath=no
17150 hardcode_into_libs=yes
17152 *) # from 4.6 on, and DragonFly
17153 shlibpath_overrides_runpath=yes
17154 hardcode_into_libs=yes
17156 esac
17159 gnu*)
17160 version_type=linux
17161 need_lib_prefix=no
17162 need_version=no
17163 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
17164 soname_spec='${libname}${release}${shared_ext}$major'
17165 shlibpath_var=LD_LIBRARY_PATH
17166 hardcode_into_libs=yes
17169 haiku*)
17170 version_type=linux
17171 need_lib_prefix=no
17172 need_version=no
17173 dynamic_linker="$host_os runtime_loader"
17174 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
17175 soname_spec='${libname}${release}${shared_ext}$major'
17176 shlibpath_var=LIBRARY_PATH
17177 shlibpath_overrides_runpath=yes
17178 sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/beos/system/lib'
17179 hardcode_into_libs=yes
17182 hpux9* | hpux10* | hpux11*)
17183 # Give a soname corresponding to the major version so that dld.sl refuses to
17184 # link against other versions.
17185 version_type=sunos
17186 need_lib_prefix=no
17187 need_version=no
17188 case $host_cpu in
17189 ia64*)
17190 shrext_cmds='.so'
17191 hardcode_into_libs=yes
17192 dynamic_linker="$host_os dld.so"
17193 shlibpath_var=LD_LIBRARY_PATH
17194 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
17195 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17196 soname_spec='${libname}${release}${shared_ext}$major'
17197 if test "X$HPUX_IA64_MODE" = X32; then
17198 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
17199 else
17200 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
17202 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
17204 hppa*64*)
17205 shrext_cmds='.sl'
17206 hardcode_into_libs=yes
17207 dynamic_linker="$host_os dld.sl"
17208 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
17209 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
17210 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17211 soname_spec='${libname}${release}${shared_ext}$major'
17212 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
17213 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
17216 shrext_cmds='.sl'
17217 dynamic_linker="$host_os dld.sl"
17218 shlibpath_var=SHLIB_PATH
17219 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
17220 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17221 soname_spec='${libname}${release}${shared_ext}$major'
17223 esac
17224 # HP-UX runs *really* slowly unless shared libraries are mode 555, ...
17225 postinstall_cmds='chmod 555 $lib'
17226 # or fails outright, so override atomically:
17227 install_override_mode=555
17230 interix[3-9]*)
17231 version_type=linux
17232 need_lib_prefix=no
17233 need_version=no
17234 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
17235 soname_spec='${libname}${release}${shared_ext}$major'
17236 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
17237 shlibpath_var=LD_LIBRARY_PATH
17238 shlibpath_overrides_runpath=no
17239 hardcode_into_libs=yes
17242 irix5* | irix6* | nonstopux*)
17243 case $host_os in
17244 nonstopux*) version_type=nonstopux ;;
17246 if test "$lt_cv_prog_gnu_ld" = yes; then
17247 version_type=linux
17248 else
17249 version_type=irix
17250 fi ;;
17251 esac
17252 need_lib_prefix=no
17253 need_version=no
17254 soname_spec='${libname}${release}${shared_ext}$major'
17255 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
17256 case $host_os in
17257 irix5* | nonstopux*)
17258 libsuff= shlibsuff=
17261 case $LD in # libtool.m4 will add one of these switches to LD
17262 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
17263 libsuff= shlibsuff= libmagic=32-bit;;
17264 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
17265 libsuff=32 shlibsuff=N32 libmagic=N32;;
17266 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
17267 libsuff=64 shlibsuff=64 libmagic=64-bit;;
17268 *) libsuff= shlibsuff= libmagic=never-match;;
17269 esac
17271 esac
17272 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
17273 shlibpath_overrides_runpath=no
17274 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
17275 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
17276 hardcode_into_libs=yes
17279 # No shared lib support for Linux oldld, aout, or coff.
17280 linux*oldld* | linux*aout* | linux*coff*)
17281 dynamic_linker=no
17284 # This must be Linux ELF.
17285 linux* | k*bsd*-gnu | kopensolaris*-gnu)
17286 version_type=linux
17287 need_lib_prefix=no
17288 need_version=no
17289 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17290 soname_spec='${libname}${release}${shared_ext}$major'
17291 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
17292 shlibpath_var=LD_LIBRARY_PATH
17293 shlibpath_overrides_runpath=no
17295 # Some binutils ld are patched to set DT_RUNPATH
17296 if test "${lt_cv_shlibpath_overrides_runpath+set}" = set; then :
17297 $as_echo_n "(cached) " >&6
17298 else
17299 lt_cv_shlibpath_overrides_runpath=no
17300 save_LDFLAGS=$LDFLAGS
17301 save_libdir=$libdir
17302 eval "libdir=/foo; wl=\"$lt_prog_compiler_wl\"; \
17303 LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec\""
17304 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17305 /* end confdefs.h. */
17308 main ()
17312 return 0;
17314 _ACEOF
17315 if ac_fn_c_try_link "$LINENO"; then :
17316 if ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then :
17317 lt_cv_shlibpath_overrides_runpath=yes
17320 rm -f core conftest.err conftest.$ac_objext \
17321 conftest$ac_exeext conftest.$ac_ext
17322 LDFLAGS=$save_LDFLAGS
17323 libdir=$save_libdir
17327 shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath
17329 # This implies no fast_install, which is unacceptable.
17330 # Some rework will be needed to allow for fast_install
17331 # before this can be enabled.
17332 hardcode_into_libs=yes
17334 # Append ld.so.conf contents to the search path
17335 if test -f /etc/ld.so.conf; then
17336 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' ' '`
17337 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
17340 # We used to test for /lib/ld.so.1 and disable shared libraries on
17341 # powerpc, because MkLinux only supported shared libraries with the
17342 # GNU dynamic linker. Since this was broken with cross compilers,
17343 # most powerpc-linux boxes support dynamic linking these days and
17344 # people can always --disable-shared, the test was removed, and we
17345 # assume the GNU/Linux dynamic linker is in use.
17346 dynamic_linker='GNU/Linux ld.so'
17349 netbsd*)
17350 version_type=sunos
17351 need_lib_prefix=no
17352 need_version=no
17353 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
17354 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
17355 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
17356 dynamic_linker='NetBSD (a.out) ld.so'
17357 else
17358 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
17359 soname_spec='${libname}${release}${shared_ext}$major'
17360 dynamic_linker='NetBSD ld.elf_so'
17362 shlibpath_var=LD_LIBRARY_PATH
17363 shlibpath_overrides_runpath=yes
17364 hardcode_into_libs=yes
17367 newsos6)
17368 version_type=linux
17369 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17370 shlibpath_var=LD_LIBRARY_PATH
17371 shlibpath_overrides_runpath=yes
17374 *nto* | *qnx*)
17375 version_type=qnx
17376 need_lib_prefix=no
17377 need_version=no
17378 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17379 soname_spec='${libname}${release}${shared_ext}$major'
17380 shlibpath_var=LD_LIBRARY_PATH
17381 shlibpath_overrides_runpath=no
17382 hardcode_into_libs=yes
17383 dynamic_linker='ldqnx.so'
17386 openbsd*)
17387 version_type=sunos
17388 sys_lib_dlsearch_path_spec="/usr/lib"
17389 need_lib_prefix=no
17390 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
17391 case $host_os in
17392 openbsd3.3 | openbsd3.3.*) need_version=yes ;;
17393 *) need_version=no ;;
17394 esac
17395 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
17396 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
17397 shlibpath_var=LD_LIBRARY_PATH
17398 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
17399 case $host_os in
17400 openbsd2.[89] | openbsd2.[89].*)
17401 shlibpath_overrides_runpath=no
17404 shlibpath_overrides_runpath=yes
17406 esac
17407 else
17408 shlibpath_overrides_runpath=yes
17412 os2*)
17413 libname_spec='$name'
17414 shrext_cmds=".dll"
17415 need_lib_prefix=no
17416 library_names_spec='$libname${shared_ext} $libname.a'
17417 dynamic_linker='OS/2 ld.exe'
17418 shlibpath_var=LIBPATH
17421 osf3* | osf4* | osf5*)
17422 version_type=osf
17423 need_lib_prefix=no
17424 need_version=no
17425 soname_spec='${libname}${release}${shared_ext}$major'
17426 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17427 shlibpath_var=LD_LIBRARY_PATH
17428 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
17429 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
17432 rdos*)
17433 dynamic_linker=no
17436 solaris*)
17437 version_type=linux
17438 need_lib_prefix=no
17439 need_version=no
17440 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17441 soname_spec='${libname}${release}${shared_ext}$major'
17442 shlibpath_var=LD_LIBRARY_PATH
17443 shlibpath_overrides_runpath=yes
17444 hardcode_into_libs=yes
17445 # ldd complains unless libraries are executable
17446 postinstall_cmds='chmod +x $lib'
17449 sunos4*)
17450 version_type=sunos
17451 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
17452 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
17453 shlibpath_var=LD_LIBRARY_PATH
17454 shlibpath_overrides_runpath=yes
17455 if test "$with_gnu_ld" = yes; then
17456 need_lib_prefix=no
17458 need_version=yes
17461 sysv4 | sysv4.3*)
17462 version_type=linux
17463 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17464 soname_spec='${libname}${release}${shared_ext}$major'
17465 shlibpath_var=LD_LIBRARY_PATH
17466 case $host_vendor in
17467 sni)
17468 shlibpath_overrides_runpath=no
17469 need_lib_prefix=no
17470 runpath_var=LD_RUN_PATH
17472 siemens)
17473 need_lib_prefix=no
17475 motorola)
17476 need_lib_prefix=no
17477 need_version=no
17478 shlibpath_overrides_runpath=no
17479 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
17481 esac
17484 sysv4*MP*)
17485 if test -d /usr/nec ;then
17486 version_type=linux
17487 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
17488 soname_spec='$libname${shared_ext}.$major'
17489 shlibpath_var=LD_LIBRARY_PATH
17493 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
17494 version_type=freebsd-elf
17495 need_lib_prefix=no
17496 need_version=no
17497 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
17498 soname_spec='${libname}${release}${shared_ext}$major'
17499 shlibpath_var=LD_LIBRARY_PATH
17500 shlibpath_overrides_runpath=yes
17501 hardcode_into_libs=yes
17502 if test "$with_gnu_ld" = yes; then
17503 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
17504 else
17505 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
17506 case $host_os in
17507 sco3.2v5*)
17508 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
17510 esac
17512 sys_lib_dlsearch_path_spec='/usr/lib'
17515 tpf*)
17516 # TPF is a cross-target only. Preferred cross-host = GNU/Linux.
17517 version_type=linux
17518 need_lib_prefix=no
17519 need_version=no
17520 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17521 shlibpath_var=LD_LIBRARY_PATH
17522 shlibpath_overrides_runpath=no
17523 hardcode_into_libs=yes
17526 uts4*)
17527 version_type=linux
17528 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17529 soname_spec='${libname}${release}${shared_ext}$major'
17530 shlibpath_var=LD_LIBRARY_PATH
17534 dynamic_linker=no
17536 esac
17537 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
17538 $as_echo "$dynamic_linker" >&6; }
17539 test "$dynamic_linker" = no && can_build_shared=no
17541 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
17542 if test "$GCC" = yes; then
17543 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
17546 if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
17547 sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
17549 if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
17550 sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
17644 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
17645 $as_echo_n "checking how to hardcode library paths into programs... " >&6; }
17646 hardcode_action=
17647 if test -n "$hardcode_libdir_flag_spec" ||
17648 test -n "$runpath_var" ||
17649 test "X$hardcode_automatic" = "Xyes" ; then
17651 # We can hardcode non-existent directories.
17652 if test "$hardcode_direct" != no &&
17653 # If the only mechanism to avoid hardcoding is shlibpath_var, we
17654 # have to relink, otherwise we might link with an installed library
17655 # when we should be linking with a yet-to-be-installed one
17656 ## test "$_LT_TAGVAR(hardcode_shlibpath_var, )" != no &&
17657 test "$hardcode_minus_L" != no; then
17658 # Linking always hardcodes the temporary library directory.
17659 hardcode_action=relink
17660 else
17661 # We can link without hardcoding, and we can hardcode nonexisting dirs.
17662 hardcode_action=immediate
17664 else
17665 # We cannot hardcode anything, or else we can only hardcode existing
17666 # directories.
17667 hardcode_action=unsupported
17669 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action" >&5
17670 $as_echo "$hardcode_action" >&6; }
17672 if test "$hardcode_action" = relink ||
17673 test "$inherit_rpath" = yes; then
17674 # Fast installation is not supported
17675 enable_fast_install=no
17676 elif test "$shlibpath_overrides_runpath" = yes ||
17677 test "$enable_shared" = no; then
17678 # Fast installation is not necessary
17679 enable_fast_install=needless
17687 if test "x$enable_dlopen" != xyes; then
17688 enable_dlopen=unknown
17689 enable_dlopen_self=unknown
17690 enable_dlopen_self_static=unknown
17691 else
17692 lt_cv_dlopen=no
17693 lt_cv_dlopen_libs=
17695 case $host_os in
17696 beos*)
17697 lt_cv_dlopen="load_add_on"
17698 lt_cv_dlopen_libs=
17699 lt_cv_dlopen_self=yes
17702 mingw* | pw32* | cegcc*)
17703 lt_cv_dlopen="LoadLibrary"
17704 lt_cv_dlopen_libs=
17707 cygwin*)
17708 lt_cv_dlopen="dlopen"
17709 lt_cv_dlopen_libs=
17712 darwin*)
17713 # if libdl is installed we need to link against it
17714 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
17715 $as_echo_n "checking for dlopen in -ldl... " >&6; }
17716 if test "${ac_cv_lib_dl_dlopen+set}" = set; then :
17717 $as_echo_n "(cached) " >&6
17718 else
17719 ac_check_lib_save_LIBS=$LIBS
17720 LIBS="-ldl $LIBS"
17721 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17722 /* end confdefs.h. */
17724 /* Override any GCC internal prototype to avoid an error.
17725 Use char because int might match the return type of a GCC
17726 builtin and then its argument prototype would still apply. */
17727 #ifdef __cplusplus
17728 extern "C"
17729 #endif
17730 char dlopen ();
17732 main ()
17734 return dlopen ();
17736 return 0;
17738 _ACEOF
17739 if ac_fn_c_try_link "$LINENO"; then :
17740 ac_cv_lib_dl_dlopen=yes
17741 else
17742 ac_cv_lib_dl_dlopen=no
17744 rm -f core conftest.err conftest.$ac_objext \
17745 conftest$ac_exeext conftest.$ac_ext
17746 LIBS=$ac_check_lib_save_LIBS
17748 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
17749 $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
17750 if test "x$ac_cv_lib_dl_dlopen" = x""yes; then :
17751 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
17752 else
17754 lt_cv_dlopen="dyld"
17755 lt_cv_dlopen_libs=
17756 lt_cv_dlopen_self=yes
17763 ac_fn_c_check_func "$LINENO" "shl_load" "ac_cv_func_shl_load"
17764 if test "x$ac_cv_func_shl_load" = x""yes; then :
17765 lt_cv_dlopen="shl_load"
17766 else
17767 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shl_load in -ldld" >&5
17768 $as_echo_n "checking for shl_load in -ldld... " >&6; }
17769 if test "${ac_cv_lib_dld_shl_load+set}" = set; then :
17770 $as_echo_n "(cached) " >&6
17771 else
17772 ac_check_lib_save_LIBS=$LIBS
17773 LIBS="-ldld $LIBS"
17774 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17775 /* end confdefs.h. */
17777 /* Override any GCC internal prototype to avoid an error.
17778 Use char because int might match the return type of a GCC
17779 builtin and then its argument prototype would still apply. */
17780 #ifdef __cplusplus
17781 extern "C"
17782 #endif
17783 char shl_load ();
17785 main ()
17787 return shl_load ();
17789 return 0;
17791 _ACEOF
17792 if ac_fn_c_try_link "$LINENO"; then :
17793 ac_cv_lib_dld_shl_load=yes
17794 else
17795 ac_cv_lib_dld_shl_load=no
17797 rm -f core conftest.err conftest.$ac_objext \
17798 conftest$ac_exeext conftest.$ac_ext
17799 LIBS=$ac_check_lib_save_LIBS
17801 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_shl_load" >&5
17802 $as_echo "$ac_cv_lib_dld_shl_load" >&6; }
17803 if test "x$ac_cv_lib_dld_shl_load" = x""yes; then :
17804 lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-ldld"
17805 else
17806 ac_fn_c_check_func "$LINENO" "dlopen" "ac_cv_func_dlopen"
17807 if test "x$ac_cv_func_dlopen" = x""yes; then :
17808 lt_cv_dlopen="dlopen"
17809 else
17810 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
17811 $as_echo_n "checking for dlopen in -ldl... " >&6; }
17812 if test "${ac_cv_lib_dl_dlopen+set}" = set; then :
17813 $as_echo_n "(cached) " >&6
17814 else
17815 ac_check_lib_save_LIBS=$LIBS
17816 LIBS="-ldl $LIBS"
17817 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17818 /* end confdefs.h. */
17820 /* Override any GCC internal prototype to avoid an error.
17821 Use char because int might match the return type of a GCC
17822 builtin and then its argument prototype would still apply. */
17823 #ifdef __cplusplus
17824 extern "C"
17825 #endif
17826 char dlopen ();
17828 main ()
17830 return dlopen ();
17832 return 0;
17834 _ACEOF
17835 if ac_fn_c_try_link "$LINENO"; then :
17836 ac_cv_lib_dl_dlopen=yes
17837 else
17838 ac_cv_lib_dl_dlopen=no
17840 rm -f core conftest.err conftest.$ac_objext \
17841 conftest$ac_exeext conftest.$ac_ext
17842 LIBS=$ac_check_lib_save_LIBS
17844 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
17845 $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
17846 if test "x$ac_cv_lib_dl_dlopen" = x""yes; then :
17847 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
17848 else
17849 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -lsvld" >&5
17850 $as_echo_n "checking for dlopen in -lsvld... " >&6; }
17851 if test "${ac_cv_lib_svld_dlopen+set}" = set; then :
17852 $as_echo_n "(cached) " >&6
17853 else
17854 ac_check_lib_save_LIBS=$LIBS
17855 LIBS="-lsvld $LIBS"
17856 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17857 /* end confdefs.h. */
17859 /* Override any GCC internal prototype to avoid an error.
17860 Use char because int might match the return type of a GCC
17861 builtin and then its argument prototype would still apply. */
17862 #ifdef __cplusplus
17863 extern "C"
17864 #endif
17865 char dlopen ();
17867 main ()
17869 return dlopen ();
17871 return 0;
17873 _ACEOF
17874 if ac_fn_c_try_link "$LINENO"; then :
17875 ac_cv_lib_svld_dlopen=yes
17876 else
17877 ac_cv_lib_svld_dlopen=no
17879 rm -f core conftest.err conftest.$ac_objext \
17880 conftest$ac_exeext conftest.$ac_ext
17881 LIBS=$ac_check_lib_save_LIBS
17883 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_svld_dlopen" >&5
17884 $as_echo "$ac_cv_lib_svld_dlopen" >&6; }
17885 if test "x$ac_cv_lib_svld_dlopen" = x""yes; then :
17886 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
17887 else
17888 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dld_link in -ldld" >&5
17889 $as_echo_n "checking for dld_link in -ldld... " >&6; }
17890 if test "${ac_cv_lib_dld_dld_link+set}" = set; then :
17891 $as_echo_n "(cached) " >&6
17892 else
17893 ac_check_lib_save_LIBS=$LIBS
17894 LIBS="-ldld $LIBS"
17895 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17896 /* end confdefs.h. */
17898 /* Override any GCC internal prototype to avoid an error.
17899 Use char because int might match the return type of a GCC
17900 builtin and then its argument prototype would still apply. */
17901 #ifdef __cplusplus
17902 extern "C"
17903 #endif
17904 char dld_link ();
17906 main ()
17908 return dld_link ();
17910 return 0;
17912 _ACEOF
17913 if ac_fn_c_try_link "$LINENO"; then :
17914 ac_cv_lib_dld_dld_link=yes
17915 else
17916 ac_cv_lib_dld_dld_link=no
17918 rm -f core conftest.err conftest.$ac_objext \
17919 conftest$ac_exeext conftest.$ac_ext
17920 LIBS=$ac_check_lib_save_LIBS
17922 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_dld_link" >&5
17923 $as_echo "$ac_cv_lib_dld_dld_link" >&6; }
17924 if test "x$ac_cv_lib_dld_dld_link" = x""yes; then :
17925 lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-ldld"
17944 esac
17946 if test "x$lt_cv_dlopen" != xno; then
17947 enable_dlopen=yes
17948 else
17949 enable_dlopen=no
17952 case $lt_cv_dlopen in
17953 dlopen)
17954 save_CPPFLAGS="$CPPFLAGS"
17955 test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
17957 save_LDFLAGS="$LDFLAGS"
17958 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
17960 save_LIBS="$LIBS"
17961 LIBS="$lt_cv_dlopen_libs $LIBS"
17963 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a program can dlopen itself" >&5
17964 $as_echo_n "checking whether a program can dlopen itself... " >&6; }
17965 if test "${lt_cv_dlopen_self+set}" = set; then :
17966 $as_echo_n "(cached) " >&6
17967 else
17968 if test "$cross_compiling" = yes; then :
17969 lt_cv_dlopen_self=cross
17970 else
17971 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
17972 lt_status=$lt_dlunknown
17973 cat > conftest.$ac_ext <<_LT_EOF
17974 #line 17974 "configure"
17975 #include "confdefs.h"
17977 #if HAVE_DLFCN_H
17978 #include <dlfcn.h>
17979 #endif
17981 #include <stdio.h>
17983 #ifdef RTLD_GLOBAL
17984 # define LT_DLGLOBAL RTLD_GLOBAL
17985 #else
17986 # ifdef DL_GLOBAL
17987 # define LT_DLGLOBAL DL_GLOBAL
17988 # else
17989 # define LT_DLGLOBAL 0
17990 # endif
17991 #endif
17993 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
17994 find out it does not work in some platform. */
17995 #ifndef LT_DLLAZY_OR_NOW
17996 # ifdef RTLD_LAZY
17997 # define LT_DLLAZY_OR_NOW RTLD_LAZY
17998 # else
17999 # ifdef DL_LAZY
18000 # define LT_DLLAZY_OR_NOW DL_LAZY
18001 # else
18002 # ifdef RTLD_NOW
18003 # define LT_DLLAZY_OR_NOW RTLD_NOW
18004 # else
18005 # ifdef DL_NOW
18006 # define LT_DLLAZY_OR_NOW DL_NOW
18007 # else
18008 # define LT_DLLAZY_OR_NOW 0
18009 # endif
18010 # endif
18011 # endif
18012 # endif
18013 #endif
18015 /* When -fvisbility=hidden is used, assume the code has been annotated
18016 correspondingly for the symbols needed. */
18017 #if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
18018 void fnord () __attribute__((visibility("default")));
18019 #endif
18021 void fnord () { int i=42; }
18022 int main ()
18024 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
18025 int status = $lt_dlunknown;
18027 if (self)
18029 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
18030 else
18032 if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
18033 else puts (dlerror ());
18035 /* dlclose (self); */
18037 else
18038 puts (dlerror ());
18040 return status;
18042 _LT_EOF
18043 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
18044 (eval $ac_link) 2>&5
18045 ac_status=$?
18046 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
18047 test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
18048 (./conftest; exit; ) >&5 2>/dev/null
18049 lt_status=$?
18050 case x$lt_status in
18051 x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
18052 x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
18053 x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;;
18054 esac
18055 else :
18056 # compilation failed
18057 lt_cv_dlopen_self=no
18060 rm -fr conftest*
18064 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self" >&5
18065 $as_echo "$lt_cv_dlopen_self" >&6; }
18067 if test "x$lt_cv_dlopen_self" = xyes; then
18068 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
18069 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a statically linked program can dlopen itself" >&5
18070 $as_echo_n "checking whether a statically linked program can dlopen itself... " >&6; }
18071 if test "${lt_cv_dlopen_self_static+set}" = set; then :
18072 $as_echo_n "(cached) " >&6
18073 else
18074 if test "$cross_compiling" = yes; then :
18075 lt_cv_dlopen_self_static=cross
18076 else
18077 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
18078 lt_status=$lt_dlunknown
18079 cat > conftest.$ac_ext <<_LT_EOF
18080 #line 18080 "configure"
18081 #include "confdefs.h"
18083 #if HAVE_DLFCN_H
18084 #include <dlfcn.h>
18085 #endif
18087 #include <stdio.h>
18089 #ifdef RTLD_GLOBAL
18090 # define LT_DLGLOBAL RTLD_GLOBAL
18091 #else
18092 # ifdef DL_GLOBAL
18093 # define LT_DLGLOBAL DL_GLOBAL
18094 # else
18095 # define LT_DLGLOBAL 0
18096 # endif
18097 #endif
18099 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
18100 find out it does not work in some platform. */
18101 #ifndef LT_DLLAZY_OR_NOW
18102 # ifdef RTLD_LAZY
18103 # define LT_DLLAZY_OR_NOW RTLD_LAZY
18104 # else
18105 # ifdef DL_LAZY
18106 # define LT_DLLAZY_OR_NOW DL_LAZY
18107 # else
18108 # ifdef RTLD_NOW
18109 # define LT_DLLAZY_OR_NOW RTLD_NOW
18110 # else
18111 # ifdef DL_NOW
18112 # define LT_DLLAZY_OR_NOW DL_NOW
18113 # else
18114 # define LT_DLLAZY_OR_NOW 0
18115 # endif
18116 # endif
18117 # endif
18118 # endif
18119 #endif
18121 /* When -fvisbility=hidden is used, assume the code has been annotated
18122 correspondingly for the symbols needed. */
18123 #if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
18124 void fnord () __attribute__((visibility("default")));
18125 #endif
18127 void fnord () { int i=42; }
18128 int main ()
18130 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
18131 int status = $lt_dlunknown;
18133 if (self)
18135 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
18136 else
18138 if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
18139 else puts (dlerror ());
18141 /* dlclose (self); */
18143 else
18144 puts (dlerror ());
18146 return status;
18148 _LT_EOF
18149 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
18150 (eval $ac_link) 2>&5
18151 ac_status=$?
18152 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
18153 test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
18154 (./conftest; exit; ) >&5 2>/dev/null
18155 lt_status=$?
18156 case x$lt_status in
18157 x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
18158 x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
18159 x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;;
18160 esac
18161 else :
18162 # compilation failed
18163 lt_cv_dlopen_self_static=no
18166 rm -fr conftest*
18170 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self_static" >&5
18171 $as_echo "$lt_cv_dlopen_self_static" >&6; }
18174 CPPFLAGS="$save_CPPFLAGS"
18175 LDFLAGS="$save_LDFLAGS"
18176 LIBS="$save_LIBS"
18178 esac
18180 case $lt_cv_dlopen_self in
18181 yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
18182 *) enable_dlopen_self=unknown ;;
18183 esac
18185 case $lt_cv_dlopen_self_static in
18186 yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
18187 *) enable_dlopen_self_static=unknown ;;
18188 esac
18207 striplib=
18208 old_striplib=
18209 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stripping libraries is possible" >&5
18210 $as_echo_n "checking whether stripping libraries is possible... " >&6; }
18211 if test -n "$STRIP" && $STRIP -V 2>&1 | $GREP "GNU strip" >/dev/null; then
18212 test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
18213 test -z "$striplib" && striplib="$STRIP --strip-unneeded"
18214 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
18215 $as_echo "yes" >&6; }
18216 else
18217 # FIXME - insert some real tests, host_os isn't really good enough
18218 case $host_os in
18219 darwin*)
18220 if test -n "$STRIP" ; then
18221 striplib="$STRIP -x"
18222 old_striplib="$STRIP -S"
18223 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
18224 $as_echo "yes" >&6; }
18225 else
18226 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
18227 $as_echo "no" >&6; }
18231 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
18232 $as_echo "no" >&6; }
18234 esac
18248 # Report which library types will actually be built
18249 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if libtool supports shared libraries" >&5
18250 $as_echo_n "checking if libtool supports shared libraries... " >&6; }
18251 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $can_build_shared" >&5
18252 $as_echo "$can_build_shared" >&6; }
18254 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build shared libraries" >&5
18255 $as_echo_n "checking whether to build shared libraries... " >&6; }
18256 test "$can_build_shared" = "no" && enable_shared=no
18258 # On AIX, shared libraries and static libraries use the same namespace, and
18259 # are all built from PIC.
18260 case $host_os in
18261 aix3*)
18262 test "$enable_shared" = yes && enable_static=no
18263 if test -n "$RANLIB"; then
18264 archive_cmds="$archive_cmds~\$RANLIB \$lib"
18265 postinstall_cmds='$RANLIB $lib'
18269 aix[4-9]*)
18270 if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
18271 test "$enable_shared" = yes && enable_static=no
18274 esac
18275 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_shared" >&5
18276 $as_echo "$enable_shared" >&6; }
18278 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build static libraries" >&5
18279 $as_echo_n "checking whether to build static libraries... " >&6; }
18280 # Make sure either enable_shared or enable_static is yes.
18281 test "$enable_shared" = yes || enable_static=yes
18282 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_static" >&5
18283 $as_echo "$enable_static" >&6; }
18289 ac_ext=c
18290 ac_cpp='$CPP $CPPFLAGS'
18291 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18292 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18293 ac_compiler_gnu=$ac_cv_c_compiler_gnu
18295 CC="$lt_save_CC"
18297 if test -n "$CXX" && ( test "X$CXX" != "Xno" &&
18298 ( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) ||
18299 (test "X$CXX" != "Xg++"))) ; then
18300 ac_ext=cpp
18301 ac_cpp='$CXXCPP $CPPFLAGS'
18302 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18303 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18304 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
18305 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C++ preprocessor" >&5
18306 $as_echo_n "checking how to run the C++ preprocessor... " >&6; }
18307 if test -z "$CXXCPP"; then
18308 if test "${ac_cv_prog_CXXCPP+set}" = set; then :
18309 $as_echo_n "(cached) " >&6
18310 else
18311 # Double quotes because CXXCPP needs to be expanded
18312 for CXXCPP in "$CXX -E" "/lib/cpp"
18314 ac_preproc_ok=false
18315 for ac_cxx_preproc_warn_flag in '' yes
18317 # Use a header file that comes with gcc, so configuring glibc
18318 # with a fresh cross-compiler works.
18319 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
18320 # <limits.h> exists even on freestanding compilers.
18321 # On the NeXT, cc -E runs the code through the compiler's parser,
18322 # not just through cpp. "Syntax error" is here to catch this case.
18323 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18324 /* end confdefs.h. */
18325 #ifdef __STDC__
18326 # include <limits.h>
18327 #else
18328 # include <assert.h>
18329 #endif
18330 Syntax error
18331 _ACEOF
18332 if ac_fn_cxx_try_cpp "$LINENO"; then :
18334 else
18335 # Broken: fails on valid input.
18336 continue
18338 rm -f conftest.err conftest.$ac_ext
18340 # OK, works on sane cases. Now check whether nonexistent headers
18341 # can be detected and how.
18342 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18343 /* end confdefs.h. */
18344 #include <ac_nonexistent.h>
18345 _ACEOF
18346 if ac_fn_cxx_try_cpp "$LINENO"; then :
18347 # Broken: success on invalid input.
18348 continue
18349 else
18350 # Passes both tests.
18351 ac_preproc_ok=:
18352 break
18354 rm -f conftest.err conftest.$ac_ext
18356 done
18357 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
18358 rm -f conftest.err conftest.$ac_ext
18359 if $ac_preproc_ok; then :
18360 break
18363 done
18364 ac_cv_prog_CXXCPP=$CXXCPP
18367 CXXCPP=$ac_cv_prog_CXXCPP
18368 else
18369 ac_cv_prog_CXXCPP=$CXXCPP
18371 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXXCPP" >&5
18372 $as_echo "$CXXCPP" >&6; }
18373 ac_preproc_ok=false
18374 for ac_cxx_preproc_warn_flag in '' yes
18376 # Use a header file that comes with gcc, so configuring glibc
18377 # with a fresh cross-compiler works.
18378 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
18379 # <limits.h> exists even on freestanding compilers.
18380 # On the NeXT, cc -E runs the code through the compiler's parser,
18381 # not just through cpp. "Syntax error" is here to catch this case.
18382 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18383 /* end confdefs.h. */
18384 #ifdef __STDC__
18385 # include <limits.h>
18386 #else
18387 # include <assert.h>
18388 #endif
18389 Syntax error
18390 _ACEOF
18391 if ac_fn_cxx_try_cpp "$LINENO"; then :
18393 else
18394 # Broken: fails on valid input.
18395 continue
18397 rm -f conftest.err conftest.$ac_ext
18399 # OK, works on sane cases. Now check whether nonexistent headers
18400 # can be detected and how.
18401 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18402 /* end confdefs.h. */
18403 #include <ac_nonexistent.h>
18404 _ACEOF
18405 if ac_fn_cxx_try_cpp "$LINENO"; then :
18406 # Broken: success on invalid input.
18407 continue
18408 else
18409 # Passes both tests.
18410 ac_preproc_ok=:
18411 break
18413 rm -f conftest.err conftest.$ac_ext
18415 done
18416 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
18417 rm -f conftest.err conftest.$ac_ext
18418 if $ac_preproc_ok; then :
18420 else
18421 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
18422 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
18423 as_fn_error "C++ preprocessor \"$CXXCPP\" fails sanity check
18424 See \`config.log' for more details." "$LINENO" 5; }
18427 ac_ext=c
18428 ac_cpp='$CPP $CPPFLAGS'
18429 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18430 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18431 ac_compiler_gnu=$ac_cv_c_compiler_gnu
18433 else
18434 _lt_caught_CXX_error=yes
18437 ac_ext=cpp
18438 ac_cpp='$CXXCPP $CPPFLAGS'
18439 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18440 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18441 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
18443 archive_cmds_need_lc_CXX=no
18444 allow_undefined_flag_CXX=
18445 always_export_symbols_CXX=no
18446 archive_expsym_cmds_CXX=
18447 compiler_needs_object_CXX=no
18448 export_dynamic_flag_spec_CXX=
18449 hardcode_direct_CXX=no
18450 hardcode_direct_absolute_CXX=no
18451 hardcode_libdir_flag_spec_CXX=
18452 hardcode_libdir_flag_spec_ld_CXX=
18453 hardcode_libdir_separator_CXX=
18454 hardcode_minus_L_CXX=no
18455 hardcode_shlibpath_var_CXX=unsupported
18456 hardcode_automatic_CXX=no
18457 inherit_rpath_CXX=no
18458 module_cmds_CXX=
18459 module_expsym_cmds_CXX=
18460 link_all_deplibs_CXX=unknown
18461 old_archive_cmds_CXX=$old_archive_cmds
18462 reload_flag_CXX=$reload_flag
18463 reload_cmds_CXX=$reload_cmds
18464 no_undefined_flag_CXX=
18465 whole_archive_flag_spec_CXX=
18466 enable_shared_with_static_runtimes_CXX=no
18468 # Source file extension for C++ test sources.
18469 ac_ext=cpp
18471 # Object file extension for compiled C++ test sources.
18472 objext=o
18473 objext_CXX=$objext
18475 # No sense in running all these tests if we already determined that
18476 # the CXX compiler isn't working. Some variables (like enable_shared)
18477 # are currently assumed to apply to all compilers on this platform,
18478 # and will be corrupted by setting them based on a non-working compiler.
18479 if test "$_lt_caught_CXX_error" != yes; then
18480 # Code to be used in simple compile tests
18481 lt_simple_compile_test_code="int some_variable = 0;"
18483 # Code to be used in simple link tests
18484 lt_simple_link_test_code='int main(int, char *[]) { return(0); }'
18486 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
18493 # If no C compiler was specified, use CC.
18494 LTCC=${LTCC-"$CC"}
18496 # If no C compiler flags were specified, use CFLAGS.
18497 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
18499 # Allow CC to be a program name with arguments.
18500 compiler=$CC
18503 # save warnings/boilerplate of simple test code
18504 ac_outfile=conftest.$ac_objext
18505 echo "$lt_simple_compile_test_code" >conftest.$ac_ext
18506 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
18507 _lt_compiler_boilerplate=`cat conftest.err`
18508 $RM conftest*
18510 ac_outfile=conftest.$ac_objext
18511 echo "$lt_simple_link_test_code" >conftest.$ac_ext
18512 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
18513 _lt_linker_boilerplate=`cat conftest.err`
18514 $RM -r conftest*
18517 # Allow CC to be a program name with arguments.
18518 lt_save_CC=$CC
18519 lt_save_LD=$LD
18520 lt_save_GCC=$GCC
18521 GCC=$GXX
18522 lt_save_with_gnu_ld=$with_gnu_ld
18523 lt_save_path_LD=$lt_cv_path_LD
18524 if test -n "${lt_cv_prog_gnu_ldcxx+set}"; then
18525 lt_cv_prog_gnu_ld=$lt_cv_prog_gnu_ldcxx
18526 else
18527 $as_unset lt_cv_prog_gnu_ld
18529 if test -n "${lt_cv_path_LDCXX+set}"; then
18530 lt_cv_path_LD=$lt_cv_path_LDCXX
18531 else
18532 $as_unset lt_cv_path_LD
18534 test -z "${LDCXX+set}" || LD=$LDCXX
18535 CC=${CXX-"c++"}
18536 compiler=$CC
18537 compiler_CXX=$CC
18538 for cc_temp in $compiler""; do
18539 case $cc_temp in
18540 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
18541 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
18542 \-*) ;;
18543 *) break;;
18544 esac
18545 done
18546 cc_basename=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
18549 if test -n "$compiler"; then
18550 # We don't want -fno-exception when compiling C++ code, so set the
18551 # no_builtin_flag separately
18552 if test "$GXX" = yes; then
18553 lt_prog_compiler_no_builtin_flag_CXX=' -fno-builtin'
18554 else
18555 lt_prog_compiler_no_builtin_flag_CXX=
18558 if test "$GXX" = yes; then
18559 # Set up default GNU C++ configuration
18563 # Check whether --with-gnu-ld was given.
18564 if test "${with_gnu_ld+set}" = set; then :
18565 withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
18566 else
18567 with_gnu_ld=no
18570 ac_prog=ld
18571 if test "$GCC" = yes; then
18572 # Check if gcc -print-prog-name=ld gives a path.
18573 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
18574 $as_echo_n "checking for ld used by $CC... " >&6; }
18575 case $host in
18576 *-*-mingw*)
18577 # gcc leaves a trailing carriage return which upsets mingw
18578 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
18580 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
18581 esac
18582 case $ac_prog in
18583 # Accept absolute paths.
18584 [\\/]* | ?:[\\/]*)
18585 re_direlt='/[^/][^/]*/\.\./'
18586 # Canonicalize the pathname of ld
18587 ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
18588 while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
18589 ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
18590 done
18591 test -z "$LD" && LD="$ac_prog"
18594 # If it fails, then pretend we aren't using GCC.
18595 ac_prog=ld
18598 # If it is relative, then search for the first ld in PATH.
18599 with_gnu_ld=unknown
18601 esac
18602 elif test "$with_gnu_ld" = yes; then
18603 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
18604 $as_echo_n "checking for GNU ld... " >&6; }
18605 else
18606 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
18607 $as_echo_n "checking for non-GNU ld... " >&6; }
18609 if test "${lt_cv_path_LD+set}" = set; then :
18610 $as_echo_n "(cached) " >&6
18611 else
18612 if test -z "$LD"; then
18613 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
18614 for ac_dir in $PATH; do
18615 IFS="$lt_save_ifs"
18616 test -z "$ac_dir" && ac_dir=.
18617 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
18618 lt_cv_path_LD="$ac_dir/$ac_prog"
18619 # Check to see if the program is GNU ld. I'd rather use --version,
18620 # but apparently some variants of GNU ld only accept -v.
18621 # Break only if it was the GNU/non-GNU ld that we prefer.
18622 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
18623 *GNU* | *'with BFD'*)
18624 test "$with_gnu_ld" != no && break
18627 test "$with_gnu_ld" != yes && break
18629 esac
18631 done
18632 IFS="$lt_save_ifs"
18633 else
18634 lt_cv_path_LD="$LD" # Let the user override the test with a path.
18638 LD="$lt_cv_path_LD"
18639 if test -n "$LD"; then
18640 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
18641 $as_echo "$LD" >&6; }
18642 else
18643 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
18644 $as_echo "no" >&6; }
18646 test -z "$LD" && as_fn_error "no acceptable ld found in \$PATH" "$LINENO" 5
18647 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
18648 $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
18649 if test "${lt_cv_prog_gnu_ld+set}" = set; then :
18650 $as_echo_n "(cached) " >&6
18651 else
18652 # I'd rather use --version here, but apparently some GNU lds only accept -v.
18653 case `$LD -v 2>&1 </dev/null` in
18654 *GNU* | *'with BFD'*)
18655 lt_cv_prog_gnu_ld=yes
18658 lt_cv_prog_gnu_ld=no
18660 esac
18662 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
18663 $as_echo "$lt_cv_prog_gnu_ld" >&6; }
18664 with_gnu_ld=$lt_cv_prog_gnu_ld
18672 # Check if GNU C++ uses GNU ld as the underlying linker, since the
18673 # archiving commands below assume that GNU ld is being used.
18674 if test "$with_gnu_ld" = yes; then
18675 archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
18676 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'
18678 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
18679 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
18681 # If archive_cmds runs LD, not CC, wlarc should be empty
18682 # XXX I think wlarc can be eliminated in ltcf-cxx, but I need to
18683 # investigate it a little bit more. (MM)
18684 wlarc='${wl}'
18686 # ancient GNU ld didn't support --whole-archive et. al.
18687 if eval "`$CC -print-prog-name=ld` --help 2>&1" |
18688 $GREP 'no-whole-archive' > /dev/null; then
18689 whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
18690 else
18691 whole_archive_flag_spec_CXX=
18693 else
18694 with_gnu_ld=no
18695 wlarc=
18697 # A generic and very simple default shared library creation
18698 # command for GNU C++ for the case where it uses the native
18699 # linker, instead of GNU ld. If possible, this setting should
18700 # overridden to take advantage of the native linker features on
18701 # the platform it is being used on.
18702 archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
18705 # Commands to make compiler produce verbose output that lists
18706 # what "hidden" libraries, object files and flags are used when
18707 # linking a shared library.
18708 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
18710 else
18711 GXX=no
18712 with_gnu_ld=no
18713 wlarc=
18716 # PORTME: fill in a description of your system's C++ link characteristics
18717 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
18718 $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
18719 ld_shlibs_CXX=yes
18720 case $host_os in
18721 aix3*)
18722 # FIXME: insert proper C++ library support
18723 ld_shlibs_CXX=no
18725 aix[4-9]*)
18726 if test "$host_cpu" = ia64; then
18727 # On IA64, the linker does run time linking by default, so we don't
18728 # have to do anything special.
18729 aix_use_runtimelinking=no
18730 exp_sym_flag='-Bexport'
18731 no_entry_flag=""
18732 else
18733 aix_use_runtimelinking=no
18735 # Test if we are trying to use run time linking or normal
18736 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
18737 # need to do runtime linking.
18738 case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
18739 for ld_flag in $LDFLAGS; do
18740 case $ld_flag in
18741 *-brtl*)
18742 aix_use_runtimelinking=yes
18743 break
18745 esac
18746 done
18748 esac
18750 exp_sym_flag='-bexport'
18751 no_entry_flag='-bnoentry'
18754 # When large executables or shared objects are built, AIX ld can
18755 # have problems creating the table of contents. If linking a library
18756 # or program results in "error TOC overflow" add -mminimal-toc to
18757 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
18758 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
18760 archive_cmds_CXX=''
18761 hardcode_direct_CXX=yes
18762 hardcode_direct_absolute_CXX=yes
18763 hardcode_libdir_separator_CXX=':'
18764 link_all_deplibs_CXX=yes
18765 file_list_spec_CXX='${wl}-f,'
18767 if test "$GXX" = yes; then
18768 case $host_os in aix4.[012]|aix4.[012].*)
18769 # We only want to do this on AIX 4.2 and lower, the check
18770 # below for broken collect2 doesn't work under 4.3+
18771 collect2name=`${CC} -print-prog-name=collect2`
18772 if test -f "$collect2name" &&
18773 strings "$collect2name" | $GREP resolve_lib_name >/dev/null
18774 then
18775 # We have reworked collect2
18777 else
18778 # We have old collect2
18779 hardcode_direct_CXX=unsupported
18780 # It fails to find uninstalled libraries when the uninstalled
18781 # path is not listed in the libpath. Setting hardcode_minus_L
18782 # to unsupported forces relinking
18783 hardcode_minus_L_CXX=yes
18784 hardcode_libdir_flag_spec_CXX='-L$libdir'
18785 hardcode_libdir_separator_CXX=
18787 esac
18788 shared_flag='-shared'
18789 if test "$aix_use_runtimelinking" = yes; then
18790 shared_flag="$shared_flag "'${wl}-G'
18792 else
18793 # not using gcc
18794 if test "$host_cpu" = ia64; then
18795 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
18796 # chokes on -Wl,-G. The following line is correct:
18797 shared_flag='-G'
18798 else
18799 if test "$aix_use_runtimelinking" = yes; then
18800 shared_flag='${wl}-G'
18801 else
18802 shared_flag='${wl}-bM:SRE'
18807 export_dynamic_flag_spec_CXX='${wl}-bexpall'
18808 # It seems that -bexpall does not export symbols beginning with
18809 # underscore (_), so it is better to generate a list of symbols to
18810 # export.
18811 always_export_symbols_CXX=yes
18812 if test "$aix_use_runtimelinking" = yes; then
18813 # Warning - without using the other runtime loading flags (-brtl),
18814 # -berok will link without error, but may produce a broken library.
18815 allow_undefined_flag_CXX='-berok'
18816 # Determine the default libpath from the value encoded in an empty
18817 # executable.
18818 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18819 /* end confdefs.h. */
18822 main ()
18826 return 0;
18828 _ACEOF
18829 if ac_fn_cxx_try_link "$LINENO"; then :
18831 lt_aix_libpath_sed='
18832 /Import File Strings/,/^$/ {
18833 /^0/ {
18834 s/^0 *\(.*\)$/\1/
18838 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
18839 # Check for a 64-bit object if we didn't find anything.
18840 if test -z "$aix_libpath"; then
18841 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
18844 rm -f core conftest.err conftest.$ac_objext \
18845 conftest$ac_exeext conftest.$ac_ext
18846 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
18848 hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
18850 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"
18851 else
18852 if test "$host_cpu" = ia64; then
18853 hardcode_libdir_flag_spec_CXX='${wl}-R $libdir:/usr/lib:/lib'
18854 allow_undefined_flag_CXX="-z nodefs"
18855 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"
18856 else
18857 # Determine the default libpath from the value encoded in an
18858 # empty executable.
18859 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18860 /* end confdefs.h. */
18863 main ()
18867 return 0;
18869 _ACEOF
18870 if ac_fn_cxx_try_link "$LINENO"; then :
18872 lt_aix_libpath_sed='
18873 /Import File Strings/,/^$/ {
18874 /^0/ {
18875 s/^0 *\(.*\)$/\1/
18879 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
18880 # Check for a 64-bit object if we didn't find anything.
18881 if test -z "$aix_libpath"; then
18882 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
18885 rm -f core conftest.err conftest.$ac_objext \
18886 conftest$ac_exeext conftest.$ac_ext
18887 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
18889 hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
18890 # Warning - without using the other run time loading flags,
18891 # -berok will link without error, but may produce a broken library.
18892 no_undefined_flag_CXX=' ${wl}-bernotok'
18893 allow_undefined_flag_CXX=' ${wl}-berok'
18894 if test "$with_gnu_ld" = yes; then
18895 # We only use this code for GNU lds that support --whole-archive.
18896 whole_archive_flag_spec_CXX='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
18897 else
18898 # Exported symbols can be pulled into shared objects from archives
18899 whole_archive_flag_spec_CXX='$convenience'
18901 archive_cmds_need_lc_CXX=yes
18902 # This is similar to how AIX traditionally builds its shared
18903 # libraries.
18904 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'
18909 beos*)
18910 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
18911 allow_undefined_flag_CXX=unsupported
18912 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
18913 # support --undefined. This deserves some investigation. FIXME
18914 archive_cmds_CXX='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
18915 else
18916 ld_shlibs_CXX=no
18920 chorus*)
18921 case $cc_basename in
18923 # FIXME: insert proper C++ library support
18924 ld_shlibs_CXX=no
18926 esac
18929 cygwin* | mingw* | pw32* | cegcc*)
18930 # _LT_TAGVAR(hardcode_libdir_flag_spec, CXX) is actually meaningless,
18931 # as there is no search path for DLLs.
18932 hardcode_libdir_flag_spec_CXX='-L$libdir'
18933 export_dynamic_flag_spec_CXX='${wl}--export-all-symbols'
18934 allow_undefined_flag_CXX=unsupported
18935 always_export_symbols_CXX=no
18936 enable_shared_with_static_runtimes_CXX=yes
18938 if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
18939 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'
18940 # If the export-symbols file already is a .def file (1st line
18941 # is EXPORTS), use it as is; otherwise, prepend...
18942 archive_expsym_cmds_CXX='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
18943 cp $export_symbols $output_objdir/$soname.def;
18944 else
18945 echo EXPORTS > $output_objdir/$soname.def;
18946 cat $export_symbols >> $output_objdir/$soname.def;
18948 $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'
18949 else
18950 ld_shlibs_CXX=no
18953 darwin* | rhapsody*)
18956 archive_cmds_need_lc_CXX=no
18957 hardcode_direct_CXX=no
18958 hardcode_automatic_CXX=yes
18959 hardcode_shlibpath_var_CXX=unsupported
18960 if test "$lt_cv_ld_force_load" = "yes"; then
18961 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\"`'
18962 else
18963 whole_archive_flag_spec_CXX=''
18965 link_all_deplibs_CXX=yes
18966 allow_undefined_flag_CXX="$_lt_dar_allow_undefined"
18967 case $cc_basename in
18968 ifort*) _lt_dar_can_shared=yes ;;
18969 *) _lt_dar_can_shared=$GCC ;;
18970 esac
18971 if test "$_lt_dar_can_shared" = "yes"; then
18972 output_verbose_link_cmd=func_echo_all
18973 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}"
18974 module_cmds_CXX="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
18975 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}"
18976 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}"
18977 if test "$lt_cv_apple_cc_single_mod" != "yes"; then
18978 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}"
18979 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}"
18982 else
18983 ld_shlibs_CXX=no
18988 dgux*)
18989 case $cc_basename in
18990 ec++*)
18991 # FIXME: insert proper C++ library support
18992 ld_shlibs_CXX=no
18994 ghcx*)
18995 # Green Hills C++ Compiler
18996 # FIXME: insert proper C++ library support
18997 ld_shlibs_CXX=no
19000 # FIXME: insert proper C++ library support
19001 ld_shlibs_CXX=no
19003 esac
19006 freebsd2.*)
19007 # C++ shared libraries reported to be fairly broken before
19008 # switch to ELF
19009 ld_shlibs_CXX=no
19012 freebsd-elf*)
19013 archive_cmds_need_lc_CXX=no
19016 freebsd* | dragonfly*)
19017 # FreeBSD 3 and later use GNU C++ and GNU ld with standard ELF
19018 # conventions
19019 ld_shlibs_CXX=yes
19022 gnu*)
19025 haiku*)
19026 archive_cmds_CXX='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
19027 link_all_deplibs_CXX=yes
19030 hpux9*)
19031 hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
19032 hardcode_libdir_separator_CXX=:
19033 export_dynamic_flag_spec_CXX='${wl}-E'
19034 hardcode_direct_CXX=yes
19035 hardcode_minus_L_CXX=yes # Not in the search PATH,
19036 # but as the default
19037 # location of the library.
19039 case $cc_basename in
19040 CC*)
19041 # FIXME: insert proper C++ library support
19042 ld_shlibs_CXX=no
19044 aCC*)
19045 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'
19046 # Commands to make compiler produce verbose output that lists
19047 # what "hidden" libraries, object files and flags are used when
19048 # linking a shared library.
19050 # There doesn't appear to be a way to prevent this compiler from
19051 # explicitly linking system object files so we need to strip them
19052 # from the output so that they don't get included in the library
19053 # dependencies.
19054 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"'
19057 if test "$GXX" = yes; then
19058 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'
19059 else
19060 # FIXME: insert proper C++ library support
19061 ld_shlibs_CXX=no
19064 esac
19067 hpux10*|hpux11*)
19068 if test $with_gnu_ld = no; then
19069 hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
19070 hardcode_libdir_separator_CXX=:
19072 case $host_cpu in
19073 hppa*64*|ia64*)
19076 export_dynamic_flag_spec_CXX='${wl}-E'
19078 esac
19080 case $host_cpu in
19081 hppa*64*|ia64*)
19082 hardcode_direct_CXX=no
19083 hardcode_shlibpath_var_CXX=no
19086 hardcode_direct_CXX=yes
19087 hardcode_direct_absolute_CXX=yes
19088 hardcode_minus_L_CXX=yes # Not in the search PATH,
19089 # but as the default
19090 # location of the library.
19092 esac
19094 case $cc_basename in
19095 CC*)
19096 # FIXME: insert proper C++ library support
19097 ld_shlibs_CXX=no
19099 aCC*)
19100 case $host_cpu in
19101 hppa*64*)
19102 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
19104 ia64*)
19105 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
19108 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
19110 esac
19111 # Commands to make compiler produce verbose output that lists
19112 # what "hidden" libraries, object files and flags are used when
19113 # linking a shared library.
19115 # There doesn't appear to be a way to prevent this compiler from
19116 # explicitly linking system object files so we need to strip them
19117 # from the output so that they don't get included in the library
19118 # dependencies.
19119 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"'
19122 if test "$GXX" = yes; then
19123 if test $with_gnu_ld = no; then
19124 case $host_cpu in
19125 hppa*64*)
19126 archive_cmds_CXX='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
19128 ia64*)
19129 archive_cmds_CXX='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
19132 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'
19134 esac
19136 else
19137 # FIXME: insert proper C++ library support
19138 ld_shlibs_CXX=no
19141 esac
19144 interix[3-9]*)
19145 hardcode_direct_CXX=no
19146 hardcode_shlibpath_var_CXX=no
19147 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
19148 export_dynamic_flag_spec_CXX='${wl}-E'
19149 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
19150 # Instead, shared libraries are loaded at an image base (0x10000000 by
19151 # default) and relocated if they conflict, which is a slow very memory
19152 # consuming and fragmenting process. To avoid this, we pick a random,
19153 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
19154 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
19155 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'
19156 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'
19158 irix5* | irix6*)
19159 case $cc_basename in
19160 CC*)
19161 # SGI C++
19162 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'
19164 # Archives containing C++ object files must be created using
19165 # "CC -ar", where "CC" is the IRIX C++ compiler. This is
19166 # necessary to make sure instantiated templates are included
19167 # in the archive.
19168 old_archive_cmds_CXX='$CC -ar -WR,-u -o $oldlib $oldobjs'
19171 if test "$GXX" = yes; then
19172 if test "$with_gnu_ld" = no; then
19173 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'
19174 else
19175 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'
19178 link_all_deplibs_CXX=yes
19180 esac
19181 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
19182 hardcode_libdir_separator_CXX=:
19183 inherit_rpath_CXX=yes
19186 linux* | k*bsd*-gnu | kopensolaris*-gnu)
19187 case $cc_basename in
19188 KCC*)
19189 # Kuck and Associates, Inc. (KAI) C++ Compiler
19191 # KCC will only create a shared library if the output file
19192 # ends with ".so" (or ".sl" for HP-UX), so rename the library
19193 # to its proper name (with version) after linking.
19194 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'
19195 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'
19196 # Commands to make compiler produce verbose output that lists
19197 # what "hidden" libraries, object files and flags are used when
19198 # linking a shared library.
19200 # There doesn't appear to be a way to prevent this compiler from
19201 # explicitly linking system object files so we need to strip them
19202 # from the output so that they don't get included in the library
19203 # dependencies.
19204 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"'
19206 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
19207 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
19209 # Archives containing C++ object files must be created using
19210 # "CC -Bstatic", where "CC" is the KAI C++ compiler.
19211 old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs'
19213 icpc* | ecpc* )
19214 # Intel C++
19215 with_gnu_ld=yes
19216 # version 8.0 and above of icpc choke on multiply defined symbols
19217 # if we add $predep_objects and $postdep_objects, however 7.1 and
19218 # earlier do not add the objects themselves.
19219 case `$CC -V 2>&1` in
19220 *"Version 7."*)
19221 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
19222 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'
19224 *) # Version 8.0 or newer
19225 tmp_idyn=
19226 case $host_cpu in
19227 ia64*) tmp_idyn=' -i_dynamic';;
19228 esac
19229 archive_cmds_CXX='$CC -shared'"$tmp_idyn"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
19230 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'
19232 esac
19233 archive_cmds_need_lc_CXX=no
19234 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
19235 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
19236 whole_archive_flag_spec_CXX='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
19238 pgCC* | pgcpp*)
19239 # Portland Group C++ compiler
19240 case `$CC -V` in
19241 *pgCC\ [1-5].* | *pgcpp\ [1-5].*)
19242 prelink_cmds_CXX='tpldir=Template.dir~
19243 rm -rf $tpldir~
19244 $CC --prelink_objects --instantiation_dir $tpldir $objs $libobjs $compile_deplibs~
19245 compile_command="$compile_command `find $tpldir -name \*.o | $NL2SP`"'
19246 old_archive_cmds_CXX='tpldir=Template.dir~
19247 rm -rf $tpldir~
19248 $CC --prelink_objects --instantiation_dir $tpldir $oldobjs$old_deplibs~
19249 $AR $AR_FLAGS $oldlib$oldobjs$old_deplibs `find $tpldir -name \*.o | $NL2SP`~
19250 $RANLIB $oldlib'
19251 archive_cmds_CXX='tpldir=Template.dir~
19252 rm -rf $tpldir~
19253 $CC --prelink_objects --instantiation_dir $tpldir $predep_objects $libobjs $deplibs $convenience $postdep_objects~
19254 $CC -shared $pic_flag $predep_objects $libobjs $deplibs `find $tpldir -name \*.o | $NL2SP` $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname -o $lib'
19255 archive_expsym_cmds_CXX='tpldir=Template.dir~
19256 rm -rf $tpldir~
19257 $CC --prelink_objects --instantiation_dir $tpldir $predep_objects $libobjs $deplibs $convenience $postdep_objects~
19258 $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'
19260 *) # Version 6 and above use weak symbols
19261 archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname -o $lib'
19262 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'
19264 esac
19266 hardcode_libdir_flag_spec_CXX='${wl}--rpath ${wl}$libdir'
19267 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
19268 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'
19270 cxx*)
19271 # Compaq C++
19272 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
19273 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'
19275 runpath_var=LD_RUN_PATH
19276 hardcode_libdir_flag_spec_CXX='-rpath $libdir'
19277 hardcode_libdir_separator_CXX=:
19279 # Commands to make compiler produce verbose output that lists
19280 # what "hidden" libraries, object files and flags are used when
19281 # linking a shared library.
19283 # There doesn't appear to be a way to prevent this compiler from
19284 # explicitly linking system object files so we need to strip them
19285 # from the output so that they don't get included in the library
19286 # dependencies.
19287 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'
19289 xl* | mpixl* | bgxl*)
19290 # IBM XL 8.0 on PPC, with GNU ld
19291 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
19292 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
19293 archive_cmds_CXX='$CC -qmkshrobj $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
19294 if test "x$supports_anon_versioning" = xyes; then
19295 archive_expsym_cmds_CXX='echo "{ global:" > $output_objdir/$libname.ver~
19296 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
19297 echo "local: *; };" >> $output_objdir/$libname.ver~
19298 $CC -qmkshrobj $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
19302 case `$CC -V 2>&1 | sed 5q` in
19303 *Sun\ C*)
19304 # Sun C++ 5.9
19305 no_undefined_flag_CXX=' -zdefs'
19306 archive_cmds_CXX='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
19307 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'
19308 hardcode_libdir_flag_spec_CXX='-R$libdir'
19309 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'
19310 compiler_needs_object_CXX=yes
19312 # Not sure whether something based on
19313 # $CC $CFLAGS -v conftest.$objext -o libconftest$shared_ext 2>&1
19314 # would be better.
19315 output_verbose_link_cmd='func_echo_all'
19317 # Archives containing C++ object files must be created using
19318 # "CC -xar", where "CC" is the Sun C++ compiler. This is
19319 # necessary to make sure instantiated templates are included
19320 # in the archive.
19321 old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs'
19323 esac
19325 esac
19328 lynxos*)
19329 # FIXME: insert proper C++ library support
19330 ld_shlibs_CXX=no
19333 m88k*)
19334 # FIXME: insert proper C++ library support
19335 ld_shlibs_CXX=no
19338 mvs*)
19339 case $cc_basename in
19340 cxx*)
19341 # FIXME: insert proper C++ library support
19342 ld_shlibs_CXX=no
19345 # FIXME: insert proper C++ library support
19346 ld_shlibs_CXX=no
19348 esac
19351 netbsd*)
19352 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
19353 archive_cmds_CXX='$LD -Bshareable -o $lib $predep_objects $libobjs $deplibs $postdep_objects $linker_flags'
19354 wlarc=
19355 hardcode_libdir_flag_spec_CXX='-R$libdir'
19356 hardcode_direct_CXX=yes
19357 hardcode_shlibpath_var_CXX=no
19359 # Workaround some broken pre-1.5 toolchains
19360 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP conftest.$objext | $SED -e "s:-lgcc -lc -lgcc::"'
19363 *nto* | *qnx*)
19364 ld_shlibs_CXX=yes
19367 openbsd2*)
19368 # C++ shared libraries are fairly broken
19369 ld_shlibs_CXX=no
19372 openbsd*)
19373 if test -f /usr/libexec/ld.so; then
19374 hardcode_direct_CXX=yes
19375 hardcode_shlibpath_var_CXX=no
19376 hardcode_direct_absolute_CXX=yes
19377 archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
19378 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
19379 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
19380 archive_expsym_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-retain-symbols-file,$export_symbols -o $lib'
19381 export_dynamic_flag_spec_CXX='${wl}-E'
19382 whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
19384 output_verbose_link_cmd=func_echo_all
19385 else
19386 ld_shlibs_CXX=no
19390 osf3* | osf4* | osf5*)
19391 case $cc_basename in
19392 KCC*)
19393 # Kuck and Associates, Inc. (KAI) C++ Compiler
19395 # KCC will only create a shared library if the output file
19396 # ends with ".so" (or ".sl" for HP-UX), so rename the library
19397 # to its proper name (with version) after linking.
19398 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'
19400 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
19401 hardcode_libdir_separator_CXX=:
19403 # Archives containing C++ object files must be created using
19404 # the KAI C++ compiler.
19405 case $host in
19406 osf3*) old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs' ;;
19407 *) old_archive_cmds_CXX='$CC -o $oldlib $oldobjs' ;;
19408 esac
19410 RCC*)
19411 # Rational C++ 2.4.1
19412 # FIXME: insert proper C++ library support
19413 ld_shlibs_CXX=no
19415 cxx*)
19416 case $host in
19417 osf3*)
19418 allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
19419 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'
19420 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
19423 allow_undefined_flag_CXX=' -expect_unresolved \*'
19424 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'
19425 archive_expsym_cmds_CXX='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done~
19426 echo "-hidden">> $lib.exp~
19427 $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~
19428 $RM $lib.exp'
19429 hardcode_libdir_flag_spec_CXX='-rpath $libdir'
19431 esac
19433 hardcode_libdir_separator_CXX=:
19435 # Commands to make compiler produce verbose output that lists
19436 # what "hidden" libraries, object files and flags are used when
19437 # linking a shared library.
19439 # There doesn't appear to be a way to prevent this compiler from
19440 # explicitly linking system object files so we need to strip them
19441 # from the output so that they don't get included in the library
19442 # dependencies.
19443 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"'
19446 if test "$GXX" = yes && test "$with_gnu_ld" = no; then
19447 allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
19448 case $host in
19449 osf3*)
19450 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'
19453 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'
19455 esac
19457 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
19458 hardcode_libdir_separator_CXX=:
19460 # Commands to make compiler produce verbose output that lists
19461 # what "hidden" libraries, object files and flags are used when
19462 # linking a shared library.
19463 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
19465 else
19466 # FIXME: insert proper C++ library support
19467 ld_shlibs_CXX=no
19470 esac
19473 psos*)
19474 # FIXME: insert proper C++ library support
19475 ld_shlibs_CXX=no
19478 sunos4*)
19479 case $cc_basename in
19480 CC*)
19481 # Sun C++ 4.x
19482 # FIXME: insert proper C++ library support
19483 ld_shlibs_CXX=no
19485 lcc*)
19486 # Lucid
19487 # FIXME: insert proper C++ library support
19488 ld_shlibs_CXX=no
19491 # FIXME: insert proper C++ library support
19492 ld_shlibs_CXX=no
19494 esac
19497 solaris*)
19498 case $cc_basename in
19499 CC*)
19500 # Sun C++ 4.2, 5.x and Centerline C++
19501 archive_cmds_need_lc_CXX=yes
19502 no_undefined_flag_CXX=' -zdefs'
19503 archive_cmds_CXX='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
19504 archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
19505 $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'
19507 hardcode_libdir_flag_spec_CXX='-R$libdir'
19508 hardcode_shlibpath_var_CXX=no
19509 case $host_os in
19510 solaris2.[0-5] | solaris2.[0-5].*) ;;
19512 # The compiler driver will combine and reorder linker options,
19513 # but understands `-z linker_flag'.
19514 # Supported since Solaris 2.6 (maybe 2.5.1?)
19515 whole_archive_flag_spec_CXX='-z allextract$convenience -z defaultextract'
19517 esac
19518 link_all_deplibs_CXX=yes
19520 output_verbose_link_cmd='func_echo_all'
19522 # Archives containing C++ object files must be created using
19523 # "CC -xar", where "CC" is the Sun C++ compiler. This is
19524 # necessary to make sure instantiated templates are included
19525 # in the archive.
19526 old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs'
19528 gcx*)
19529 # Green Hills C++ Compiler
19530 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
19532 # The C++ compiler must be used to create the archive.
19533 old_archive_cmds_CXX='$CC $LDFLAGS -archive -o $oldlib $oldobjs'
19536 # GNU C++ compiler with Solaris linker
19537 if test "$GXX" = yes && test "$with_gnu_ld" = no; then
19538 no_undefined_flag_CXX=' ${wl}-z ${wl}defs'
19539 if $CC --version | $GREP -v '^2\.7' > /dev/null; then
19540 archive_cmds_CXX='$CC -shared -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
19541 archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
19542 $CC -shared -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$RM $lib.exp'
19544 # Commands to make compiler produce verbose output that lists
19545 # what "hidden" libraries, object files and flags are used when
19546 # linking a shared library.
19547 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
19548 else
19549 # g++ 2.7 appears to require `-G' NOT `-shared' on this
19550 # platform.
19551 archive_cmds_CXX='$CC -G -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
19552 archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
19553 $CC -G -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$RM $lib.exp'
19555 # Commands to make compiler produce verbose output that lists
19556 # what "hidden" libraries, object files and flags are used when
19557 # linking a shared library.
19558 output_verbose_link_cmd='$CC -G $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
19561 hardcode_libdir_flag_spec_CXX='${wl}-R $wl$libdir'
19562 case $host_os in
19563 solaris2.[0-5] | solaris2.[0-5].*) ;;
19565 whole_archive_flag_spec_CXX='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
19567 esac
19570 esac
19573 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
19574 no_undefined_flag_CXX='${wl}-z,text'
19575 archive_cmds_need_lc_CXX=no
19576 hardcode_shlibpath_var_CXX=no
19577 runpath_var='LD_RUN_PATH'
19579 case $cc_basename in
19580 CC*)
19581 archive_cmds_CXX='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
19582 archive_expsym_cmds_CXX='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
19585 archive_cmds_CXX='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
19586 archive_expsym_cmds_CXX='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
19588 esac
19591 sysv5* | sco3.2v5* | sco5v6*)
19592 # Note: We can NOT use -z defs as we might desire, because we do not
19593 # link with -lc, and that would cause any symbols used from libc to
19594 # always be unresolved, which means just about no library would
19595 # ever link correctly. If we're not using GNU ld we use -z text
19596 # though, which does catch some bad symbols but isn't as heavy-handed
19597 # as -z defs.
19598 no_undefined_flag_CXX='${wl}-z,text'
19599 allow_undefined_flag_CXX='${wl}-z,nodefs'
19600 archive_cmds_need_lc_CXX=no
19601 hardcode_shlibpath_var_CXX=no
19602 hardcode_libdir_flag_spec_CXX='${wl}-R,$libdir'
19603 hardcode_libdir_separator_CXX=':'
19604 link_all_deplibs_CXX=yes
19605 export_dynamic_flag_spec_CXX='${wl}-Bexport'
19606 runpath_var='LD_RUN_PATH'
19608 case $cc_basename in
19609 CC*)
19610 archive_cmds_CXX='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
19611 archive_expsym_cmds_CXX='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
19612 old_archive_cmds_CXX='$CC -Tprelink_objects $oldobjs~
19613 '"$old_archive_cmds_CXX"
19614 reload_cmds_CXX='$CC -Tprelink_objects $reload_objs~
19615 '"$reload_cmds_CXX"
19618 archive_cmds_CXX='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
19619 archive_expsym_cmds_CXX='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
19621 esac
19624 tandem*)
19625 case $cc_basename in
19626 NCC*)
19627 # NonStop-UX NCC 3.20
19628 # FIXME: insert proper C++ library support
19629 ld_shlibs_CXX=no
19632 # FIXME: insert proper C++ library support
19633 ld_shlibs_CXX=no
19635 esac
19638 vxworks*)
19639 # FIXME: insert proper C++ library support
19640 ld_shlibs_CXX=no
19644 # FIXME: insert proper C++ library support
19645 ld_shlibs_CXX=no
19647 esac
19649 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs_CXX" >&5
19650 $as_echo "$ld_shlibs_CXX" >&6; }
19651 test "$ld_shlibs_CXX" = no && can_build_shared=no
19653 GCC_CXX="$GXX"
19654 LD_CXX="$LD"
19656 ## CAVEAT EMPTOR:
19657 ## There is no encapsulation within the following macros, do not change
19658 ## the running order or otherwise move them around unless you know exactly
19659 ## what you are doing...
19660 # Dependencies to place before and after the object being linked:
19661 predep_objects_CXX=
19662 postdep_objects_CXX=
19663 predeps_CXX=
19664 postdeps_CXX=
19665 compiler_lib_search_path_CXX=
19667 cat > conftest.$ac_ext <<_LT_EOF
19668 class Foo
19670 public:
19671 Foo (void) { a = 0; }
19672 private:
19673 int a;
19675 _LT_EOF
19677 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
19678 (eval $ac_compile) 2>&5
19679 ac_status=$?
19680 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
19681 test $ac_status = 0; }; then
19682 # Parse the compiler output and extract the necessary
19683 # objects, libraries and library flags.
19685 # Sentinel used to keep track of whether or not we are before
19686 # the conftest object file.
19687 pre_test_object_deps_done=no
19689 for p in `eval "$output_verbose_link_cmd"`; do
19690 case $p in
19692 -L* | -R* | -l*)
19693 # Some compilers place space between "-{L,R}" and the path.
19694 # Remove the space.
19695 if test $p = "-L" ||
19696 test $p = "-R"; then
19697 prev=$p
19698 continue
19699 else
19700 prev=
19703 if test "$pre_test_object_deps_done" = no; then
19704 case $p in
19705 -L* | -R*)
19706 # Internal compiler library paths should come after those
19707 # provided the user. The postdeps already come after the
19708 # user supplied libs so there is no need to process them.
19709 if test -z "$compiler_lib_search_path_CXX"; then
19710 compiler_lib_search_path_CXX="${prev}${p}"
19711 else
19712 compiler_lib_search_path_CXX="${compiler_lib_search_path_CXX} ${prev}${p}"
19715 # The "-l" case would never come before the object being
19716 # linked, so don't bother handling this case.
19717 esac
19718 else
19719 if test -z "$postdeps_CXX"; then
19720 postdeps_CXX="${prev}${p}"
19721 else
19722 postdeps_CXX="${postdeps_CXX} ${prev}${p}"
19727 *.$objext)
19728 # This assumes that the test object file only shows up
19729 # once in the compiler output.
19730 if test "$p" = "conftest.$objext"; then
19731 pre_test_object_deps_done=yes
19732 continue
19735 if test "$pre_test_object_deps_done" = no; then
19736 if test -z "$predep_objects_CXX"; then
19737 predep_objects_CXX="$p"
19738 else
19739 predep_objects_CXX="$predep_objects_CXX $p"
19741 else
19742 if test -z "$postdep_objects_CXX"; then
19743 postdep_objects_CXX="$p"
19744 else
19745 postdep_objects_CXX="$postdep_objects_CXX $p"
19750 *) ;; # Ignore the rest.
19752 esac
19753 done
19755 # Clean up.
19756 rm -f a.out a.exe
19757 else
19758 echo "libtool.m4: error: problem compiling CXX test program"
19761 $RM -f confest.$objext
19763 # PORTME: override above test on systems where it is broken
19764 case $host_os in
19765 interix[3-9]*)
19766 # Interix 3.5 installs completely hosed .la files for C++, so rather than
19767 # hack all around it, let's just trust "g++" to DTRT.
19768 predep_objects_CXX=
19769 postdep_objects_CXX=
19770 postdeps_CXX=
19773 linux*)
19774 case `$CC -V 2>&1 | sed 5q` in
19775 *Sun\ C*)
19776 # Sun C++ 5.9
19778 # The more standards-conforming stlport4 library is
19779 # incompatible with the Cstd library. Avoid specifying
19780 # it if it's in CXXFLAGS. Ignore libCrun as
19781 # -library=stlport4 depends on it.
19782 case " $CXX $CXXFLAGS " in
19783 *" -library=stlport4 "*)
19784 solaris_use_stlport4=yes
19786 esac
19788 if test "$solaris_use_stlport4" != yes; then
19789 postdeps_CXX='-library=Cstd -library=Crun'
19792 esac
19795 solaris*)
19796 case $cc_basename in
19797 CC*)
19798 # The more standards-conforming stlport4 library is
19799 # incompatible with the Cstd library. Avoid specifying
19800 # it if it's in CXXFLAGS. Ignore libCrun as
19801 # -library=stlport4 depends on it.
19802 case " $CXX $CXXFLAGS " in
19803 *" -library=stlport4 "*)
19804 solaris_use_stlport4=yes
19806 esac
19808 # Adding this requires a known-good setup of shared libraries for
19809 # Sun compiler versions before 5.6, else PIC objects from an old
19810 # archive will be linked into the output, leading to subtle bugs.
19811 if test "$solaris_use_stlport4" != yes; then
19812 postdeps_CXX='-library=Cstd -library=Crun'
19815 esac
19817 esac
19820 case " $postdeps_CXX " in
19821 *" -lc "*) archive_cmds_need_lc_CXX=no ;;
19822 esac
19823 compiler_lib_search_dirs_CXX=
19824 if test -n "${compiler_lib_search_path_CXX}"; then
19825 compiler_lib_search_dirs_CXX=`echo " ${compiler_lib_search_path_CXX}" | ${SED} -e 's! -L! !g' -e 's!^ !!'`
19858 lt_prog_compiler_wl_CXX=
19859 lt_prog_compiler_pic_CXX=
19860 lt_prog_compiler_static_CXX=
19862 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
19863 $as_echo_n "checking for $compiler option to produce PIC... " >&6; }
19865 # C++ specific cases for pic, static, wl, etc.
19866 if test "$GXX" = yes; then
19867 lt_prog_compiler_wl_CXX='-Wl,'
19868 lt_prog_compiler_static_CXX='-static'
19870 case $host_os in
19871 aix*)
19872 # All AIX code is PIC.
19873 if test "$host_cpu" = ia64; then
19874 # AIX 5 now supports IA64 processor
19875 lt_prog_compiler_static_CXX='-Bstatic'
19877 lt_prog_compiler_pic_CXX='-fPIC'
19880 amigaos*)
19881 case $host_cpu in
19882 powerpc)
19883 # see comment about AmigaOS4 .so support
19884 lt_prog_compiler_pic_CXX='-fPIC'
19886 m68k)
19887 # FIXME: we need at least 68020 code to build shared libraries, but
19888 # adding the `-m68020' flag to GCC prevents building anything better,
19889 # like `-m68040'.
19890 lt_prog_compiler_pic_CXX='-m68020 -resident32 -malways-restore-a4'
19892 esac
19895 beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
19896 # PIC is the default for these OSes.
19898 mingw* | cygwin* | os2* | pw32* | cegcc*)
19899 # This hack is so that the source file can tell whether it is being
19900 # built for inclusion in a dll (and should export symbols for example).
19901 # Although the cygwin gcc ignores -fPIC, still need this for old-style
19902 # (--disable-auto-import) libraries
19903 lt_prog_compiler_pic_CXX='-DDLL_EXPORT'
19905 darwin* | rhapsody*)
19906 # PIC is the default on this platform
19907 # Common symbols not allowed in MH_DYLIB files
19908 lt_prog_compiler_pic_CXX='-fno-common'
19910 *djgpp*)
19911 # DJGPP does not support shared libraries at all
19912 lt_prog_compiler_pic_CXX=
19914 haiku*)
19915 # PIC is the default for Haiku.
19916 # The "-static" flag exists, but is broken.
19917 lt_prog_compiler_static_CXX=
19919 interix[3-9]*)
19920 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
19921 # Instead, we relocate shared libraries at runtime.
19923 sysv4*MP*)
19924 if test -d /usr/nec; then
19925 lt_prog_compiler_pic_CXX=-Kconform_pic
19928 hpux*)
19929 # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
19930 # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag
19931 # sets the default TLS model and affects inlining.
19932 case $host_cpu in
19933 hppa*64*)
19936 lt_prog_compiler_pic_CXX='-fPIC'
19938 esac
19940 *qnx* | *nto*)
19941 # QNX uses GNU C++, but need to define -shared option too, otherwise
19942 # it will coredump.
19943 lt_prog_compiler_pic_CXX='-fPIC -shared'
19946 lt_prog_compiler_pic_CXX='-fPIC'
19948 esac
19949 else
19950 case $host_os in
19951 aix[4-9]*)
19952 # All AIX code is PIC.
19953 if test "$host_cpu" = ia64; then
19954 # AIX 5 now supports IA64 processor
19955 lt_prog_compiler_static_CXX='-Bstatic'
19956 else
19957 lt_prog_compiler_static_CXX='-bnso -bI:/lib/syscalls.exp'
19960 chorus*)
19961 case $cc_basename in
19962 cxch68*)
19963 # Green Hills C++ Compiler
19964 # _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"
19966 esac
19968 dgux*)
19969 case $cc_basename in
19970 ec++*)
19971 lt_prog_compiler_pic_CXX='-KPIC'
19973 ghcx*)
19974 # Green Hills C++ Compiler
19975 lt_prog_compiler_pic_CXX='-pic'
19979 esac
19981 freebsd* | dragonfly*)
19982 # FreeBSD uses GNU C++
19984 hpux9* | hpux10* | hpux11*)
19985 case $cc_basename in
19986 CC*)
19987 lt_prog_compiler_wl_CXX='-Wl,'
19988 lt_prog_compiler_static_CXX='${wl}-a ${wl}archive'
19989 if test "$host_cpu" != ia64; then
19990 lt_prog_compiler_pic_CXX='+Z'
19993 aCC*)
19994 lt_prog_compiler_wl_CXX='-Wl,'
19995 lt_prog_compiler_static_CXX='${wl}-a ${wl}archive'
19996 case $host_cpu in
19997 hppa*64*|ia64*)
19998 # +Z the default
20001 lt_prog_compiler_pic_CXX='+Z'
20003 esac
20007 esac
20009 interix*)
20010 # This is c89, which is MS Visual C++ (no shared libs)
20011 # Anyone wants to do a port?
20013 irix5* | irix6* | nonstopux*)
20014 case $cc_basename in
20015 CC*)
20016 lt_prog_compiler_wl_CXX='-Wl,'
20017 lt_prog_compiler_static_CXX='-non_shared'
20018 # CC pic flag -KPIC is the default.
20022 esac
20024 linux* | k*bsd*-gnu | kopensolaris*-gnu)
20025 case $cc_basename in
20026 KCC*)
20027 # KAI C++ Compiler
20028 lt_prog_compiler_wl_CXX='--backend -Wl,'
20029 lt_prog_compiler_pic_CXX='-fPIC'
20031 ecpc* )
20032 # old Intel C++ for x86_64 which still supported -KPIC.
20033 lt_prog_compiler_wl_CXX='-Wl,'
20034 lt_prog_compiler_pic_CXX='-KPIC'
20035 lt_prog_compiler_static_CXX='-static'
20037 icpc* )
20038 # Intel C++, used to be incompatible with GCC.
20039 # ICC 10 doesn't accept -KPIC any more.
20040 lt_prog_compiler_wl_CXX='-Wl,'
20041 lt_prog_compiler_pic_CXX='-fPIC'
20042 lt_prog_compiler_static_CXX='-static'
20044 pgCC* | pgcpp*)
20045 # Portland Group C++ compiler
20046 lt_prog_compiler_wl_CXX='-Wl,'
20047 lt_prog_compiler_pic_CXX='-fpic'
20048 lt_prog_compiler_static_CXX='-Bstatic'
20050 cxx*)
20051 # Compaq C++
20052 # Make sure the PIC flag is empty. It appears that all Alpha
20053 # Linux and Compaq Tru64 Unix objects are PIC.
20054 lt_prog_compiler_pic_CXX=
20055 lt_prog_compiler_static_CXX='-non_shared'
20057 xlc* | xlC* | bgxl[cC]* | mpixl[cC]*)
20058 # IBM XL 8.0, 9.0 on PPC and BlueGene
20059 lt_prog_compiler_wl_CXX='-Wl,'
20060 lt_prog_compiler_pic_CXX='-qpic'
20061 lt_prog_compiler_static_CXX='-qstaticlink'
20064 case `$CC -V 2>&1 | sed 5q` in
20065 *Sun\ C*)
20066 # Sun C++ 5.9
20067 lt_prog_compiler_pic_CXX='-KPIC'
20068 lt_prog_compiler_static_CXX='-Bstatic'
20069 lt_prog_compiler_wl_CXX='-Qoption ld '
20071 esac
20073 esac
20075 lynxos*)
20077 m88k*)
20079 mvs*)
20080 case $cc_basename in
20081 cxx*)
20082 lt_prog_compiler_pic_CXX='-W c,exportall'
20086 esac
20088 netbsd*)
20090 *qnx* | *nto*)
20091 # QNX uses GNU C++, but need to define -shared option too, otherwise
20092 # it will coredump.
20093 lt_prog_compiler_pic_CXX='-fPIC -shared'
20095 osf3* | osf4* | osf5*)
20096 case $cc_basename in
20097 KCC*)
20098 lt_prog_compiler_wl_CXX='--backend -Wl,'
20100 RCC*)
20101 # Rational C++ 2.4.1
20102 lt_prog_compiler_pic_CXX='-pic'
20104 cxx*)
20105 # Digital/Compaq C++
20106 lt_prog_compiler_wl_CXX='-Wl,'
20107 # Make sure the PIC flag is empty. It appears that all Alpha
20108 # Linux and Compaq Tru64 Unix objects are PIC.
20109 lt_prog_compiler_pic_CXX=
20110 lt_prog_compiler_static_CXX='-non_shared'
20114 esac
20116 psos*)
20118 solaris*)
20119 case $cc_basename in
20120 CC*)
20121 # Sun C++ 4.2, 5.x and Centerline C++
20122 lt_prog_compiler_pic_CXX='-KPIC'
20123 lt_prog_compiler_static_CXX='-Bstatic'
20124 lt_prog_compiler_wl_CXX='-Qoption ld '
20126 gcx*)
20127 # Green Hills C++ Compiler
20128 lt_prog_compiler_pic_CXX='-PIC'
20132 esac
20134 sunos4*)
20135 case $cc_basename in
20136 CC*)
20137 # Sun C++ 4.x
20138 lt_prog_compiler_pic_CXX='-pic'
20139 lt_prog_compiler_static_CXX='-Bstatic'
20141 lcc*)
20142 # Lucid
20143 lt_prog_compiler_pic_CXX='-pic'
20147 esac
20149 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
20150 case $cc_basename in
20151 CC*)
20152 lt_prog_compiler_wl_CXX='-Wl,'
20153 lt_prog_compiler_pic_CXX='-KPIC'
20154 lt_prog_compiler_static_CXX='-Bstatic'
20156 esac
20158 tandem*)
20159 case $cc_basename in
20160 NCC*)
20161 # NonStop-UX NCC 3.20
20162 lt_prog_compiler_pic_CXX='-KPIC'
20166 esac
20168 vxworks*)
20171 lt_prog_compiler_can_build_shared_CXX=no
20173 esac
20176 case $host_os in
20177 # For platforms which do not support PIC, -DPIC is meaningless:
20178 *djgpp*)
20179 lt_prog_compiler_pic_CXX=
20182 lt_prog_compiler_pic_CXX="$lt_prog_compiler_pic_CXX -DPIC"
20184 esac
20185 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_prog_compiler_pic_CXX" >&5
20186 $as_echo "$lt_prog_compiler_pic_CXX" >&6; }
20191 # Check to make sure the PIC flag actually works.
20193 if test -n "$lt_prog_compiler_pic_CXX"; then
20194 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works" >&5
20195 $as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works... " >&6; }
20196 if test "${lt_cv_prog_compiler_pic_works_CXX+set}" = set; then :
20197 $as_echo_n "(cached) " >&6
20198 else
20199 lt_cv_prog_compiler_pic_works_CXX=no
20200 ac_outfile=conftest.$ac_objext
20201 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
20202 lt_compiler_flag="$lt_prog_compiler_pic_CXX -DPIC"
20203 # Insert the option either (1) after the last *FLAGS variable, or
20204 # (2) before a word containing "conftest.", or (3) at the end.
20205 # Note that $ac_compile itself does not contain backslashes and begins
20206 # with a dollar sign (not a hyphen), so the echo should work correctly.
20207 # The option is referenced via a variable to avoid confusing sed.
20208 lt_compile=`echo "$ac_compile" | $SED \
20209 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
20210 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
20211 -e 's:$: $lt_compiler_flag:'`
20212 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
20213 (eval "$lt_compile" 2>conftest.err)
20214 ac_status=$?
20215 cat conftest.err >&5
20216 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20217 if (exit $ac_status) && test -s "$ac_outfile"; then
20218 # The compiler can only warn and ignore the option if not recognized
20219 # So say no if there are warnings other than the usual output.
20220 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
20221 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
20222 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
20223 lt_cv_prog_compiler_pic_works_CXX=yes
20226 $RM conftest*
20229 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works_CXX" >&5
20230 $as_echo "$lt_cv_prog_compiler_pic_works_CXX" >&6; }
20232 if test x"$lt_cv_prog_compiler_pic_works_CXX" = xyes; then
20233 case $lt_prog_compiler_pic_CXX in
20234 "" | " "*) ;;
20235 *) lt_prog_compiler_pic_CXX=" $lt_prog_compiler_pic_CXX" ;;
20236 esac
20237 else
20238 lt_prog_compiler_pic_CXX=
20239 lt_prog_compiler_can_build_shared_CXX=no
20247 # Check to make sure the static flag actually works.
20249 wl=$lt_prog_compiler_wl_CXX eval lt_tmp_static_flag=\"$lt_prog_compiler_static_CXX\"
20250 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
20251 $as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
20252 if test "${lt_cv_prog_compiler_static_works_CXX+set}" = set; then :
20253 $as_echo_n "(cached) " >&6
20254 else
20255 lt_cv_prog_compiler_static_works_CXX=no
20256 save_LDFLAGS="$LDFLAGS"
20257 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
20258 echo "$lt_simple_link_test_code" > conftest.$ac_ext
20259 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
20260 # The linker can only warn and ignore the option if not recognized
20261 # So say no if there are warnings
20262 if test -s conftest.err; then
20263 # Append any errors to the config.log.
20264 cat conftest.err 1>&5
20265 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
20266 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
20267 if diff conftest.exp conftest.er2 >/dev/null; then
20268 lt_cv_prog_compiler_static_works_CXX=yes
20270 else
20271 lt_cv_prog_compiler_static_works_CXX=yes
20274 $RM -r conftest*
20275 LDFLAGS="$save_LDFLAGS"
20278 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works_CXX" >&5
20279 $as_echo "$lt_cv_prog_compiler_static_works_CXX" >&6; }
20281 if test x"$lt_cv_prog_compiler_static_works_CXX" = xyes; then
20283 else
20284 lt_prog_compiler_static_CXX=
20290 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
20291 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
20292 if test "${lt_cv_prog_compiler_c_o_CXX+set}" = set; then :
20293 $as_echo_n "(cached) " >&6
20294 else
20295 lt_cv_prog_compiler_c_o_CXX=no
20296 $RM -r conftest 2>/dev/null
20297 mkdir conftest
20298 cd conftest
20299 mkdir out
20300 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
20302 lt_compiler_flag="-o out/conftest2.$ac_objext"
20303 # Insert the option either (1) after the last *FLAGS variable, or
20304 # (2) before a word containing "conftest.", or (3) at the end.
20305 # Note that $ac_compile itself does not contain backslashes and begins
20306 # with a dollar sign (not a hyphen), so the echo should work correctly.
20307 lt_compile=`echo "$ac_compile" | $SED \
20308 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
20309 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
20310 -e 's:$: $lt_compiler_flag:'`
20311 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
20312 (eval "$lt_compile" 2>out/conftest.err)
20313 ac_status=$?
20314 cat out/conftest.err >&5
20315 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20316 if (exit $ac_status) && test -s out/conftest2.$ac_objext
20317 then
20318 # The compiler can only warn and ignore the option if not recognized
20319 # So say no if there are warnings
20320 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
20321 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
20322 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
20323 lt_cv_prog_compiler_c_o_CXX=yes
20326 chmod u+w . 2>&5
20327 $RM conftest*
20328 # SGI C++ compiler will create directory out/ii_files/ for
20329 # template instantiation
20330 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
20331 $RM out/* && rmdir out
20332 cd ..
20333 $RM -r conftest
20334 $RM conftest*
20337 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o_CXX" >&5
20338 $as_echo "$lt_cv_prog_compiler_c_o_CXX" >&6; }
20342 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
20343 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
20344 if test "${lt_cv_prog_compiler_c_o_CXX+set}" = set; then :
20345 $as_echo_n "(cached) " >&6
20346 else
20347 lt_cv_prog_compiler_c_o_CXX=no
20348 $RM -r conftest 2>/dev/null
20349 mkdir conftest
20350 cd conftest
20351 mkdir out
20352 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
20354 lt_compiler_flag="-o out/conftest2.$ac_objext"
20355 # Insert the option either (1) after the last *FLAGS variable, or
20356 # (2) before a word containing "conftest.", or (3) at the end.
20357 # Note that $ac_compile itself does not contain backslashes and begins
20358 # with a dollar sign (not a hyphen), so the echo should work correctly.
20359 lt_compile=`echo "$ac_compile" | $SED \
20360 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
20361 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
20362 -e 's:$: $lt_compiler_flag:'`
20363 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
20364 (eval "$lt_compile" 2>out/conftest.err)
20365 ac_status=$?
20366 cat out/conftest.err >&5
20367 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20368 if (exit $ac_status) && test -s out/conftest2.$ac_objext
20369 then
20370 # The compiler can only warn and ignore the option if not recognized
20371 # So say no if there are warnings
20372 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
20373 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
20374 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
20375 lt_cv_prog_compiler_c_o_CXX=yes
20378 chmod u+w . 2>&5
20379 $RM conftest*
20380 # SGI C++ compiler will create directory out/ii_files/ for
20381 # template instantiation
20382 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
20383 $RM out/* && rmdir out
20384 cd ..
20385 $RM -r conftest
20386 $RM conftest*
20389 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o_CXX" >&5
20390 $as_echo "$lt_cv_prog_compiler_c_o_CXX" >&6; }
20395 hard_links="nottested"
20396 if test "$lt_cv_prog_compiler_c_o_CXX" = no && test "$need_locks" != no; then
20397 # do not overwrite the value of need_locks provided by the user
20398 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
20399 $as_echo_n "checking if we can lock with hard links... " >&6; }
20400 hard_links=yes
20401 $RM conftest*
20402 ln conftest.a conftest.b 2>/dev/null && hard_links=no
20403 touch conftest.a
20404 ln conftest.a conftest.b 2>&5 || hard_links=no
20405 ln conftest.a conftest.b 2>/dev/null && hard_links=no
20406 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
20407 $as_echo "$hard_links" >&6; }
20408 if test "$hard_links" = no; then
20409 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
20410 $as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
20411 need_locks=warn
20413 else
20414 need_locks=no
20419 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
20420 $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
20422 export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
20423 case $host_os in
20424 aix[4-9]*)
20425 # If we're using GNU nm, then we don't want the "-C" option.
20426 # -C means demangle to AIX nm, but means don't demangle with GNU nm
20427 # Also, AIX nm treats weak defined symbols like other global defined
20428 # symbols, whereas GNU nm marks them as "W".
20429 if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
20430 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'
20431 else
20432 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'
20435 pw32*)
20436 export_symbols_cmds_CXX="$ltdll_cmds"
20438 cygwin* | mingw* | cegcc*)
20439 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'
20442 export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
20444 esac
20445 exclude_expsyms_CXX='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
20447 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs_CXX" >&5
20448 $as_echo "$ld_shlibs_CXX" >&6; }
20449 test "$ld_shlibs_CXX" = no && can_build_shared=no
20451 with_gnu_ld_CXX=$with_gnu_ld
20459 # Do we need to explicitly link libc?
20461 case "x$archive_cmds_need_lc_CXX" in
20462 x|xyes)
20463 # Assume -lc should be added
20464 archive_cmds_need_lc_CXX=yes
20466 if test "$enable_shared" = yes && test "$GCC" = yes; then
20467 case $archive_cmds_CXX in
20468 *'~'*)
20469 # FIXME: we may have to deal with multi-command sequences.
20471 '$CC '*)
20472 # Test whether the compiler implicitly links with -lc since on some
20473 # systems, -lgcc has to come before -lc. If gcc already passes -lc
20474 # to ld, don't add -lc before -lgcc.
20475 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
20476 $as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
20477 if test "${lt_cv_archive_cmds_need_lc_CXX+set}" = set; then :
20478 $as_echo_n "(cached) " >&6
20479 else
20480 $RM conftest*
20481 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
20483 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
20484 (eval $ac_compile) 2>&5
20485 ac_status=$?
20486 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
20487 test $ac_status = 0; } 2>conftest.err; then
20488 soname=conftest
20489 lib=conftest
20490 libobjs=conftest.$ac_objext
20491 deplibs=
20492 wl=$lt_prog_compiler_wl_CXX
20493 pic_flag=$lt_prog_compiler_pic_CXX
20494 compiler_flags=-v
20495 linker_flags=-v
20496 verstring=
20497 output_objdir=.
20498 libname=conftest
20499 lt_save_allow_undefined_flag=$allow_undefined_flag_CXX
20500 allow_undefined_flag_CXX=
20501 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds_CXX 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5
20502 (eval $archive_cmds_CXX 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
20503 ac_status=$?
20504 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
20505 test $ac_status = 0; }
20506 then
20507 lt_cv_archive_cmds_need_lc_CXX=no
20508 else
20509 lt_cv_archive_cmds_need_lc_CXX=yes
20511 allow_undefined_flag_CXX=$lt_save_allow_undefined_flag
20512 else
20513 cat conftest.err 1>&5
20515 $RM conftest*
20518 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc_CXX" >&5
20519 $as_echo "$lt_cv_archive_cmds_need_lc_CXX" >&6; }
20520 archive_cmds_need_lc_CXX=$lt_cv_archive_cmds_need_lc_CXX
20522 esac
20525 esac
20590 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
20591 $as_echo_n "checking dynamic linker characteristics... " >&6; }
20593 library_names_spec=
20594 libname_spec='lib$name'
20595 soname_spec=
20596 shrext_cmds=".so"
20597 postinstall_cmds=
20598 postuninstall_cmds=
20599 finish_cmds=
20600 finish_eval=
20601 shlibpath_var=
20602 shlibpath_overrides_runpath=unknown
20603 version_type=none
20604 dynamic_linker="$host_os ld.so"
20605 sys_lib_dlsearch_path_spec="/lib /usr/lib"
20606 need_lib_prefix=unknown
20607 hardcode_into_libs=no
20609 # when you set need_version to no, make sure it does not cause -set_version
20610 # flags to be left without arguments
20611 need_version=unknown
20613 case $host_os in
20614 aix3*)
20615 version_type=linux
20616 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
20617 shlibpath_var=LIBPATH
20619 # AIX 3 has no versioning support, so we append a major version to the name.
20620 soname_spec='${libname}${release}${shared_ext}$major'
20623 aix[4-9]*)
20624 version_type=linux
20625 need_lib_prefix=no
20626 need_version=no
20627 hardcode_into_libs=yes
20628 if test "$host_cpu" = ia64; then
20629 # AIX 5 supports IA64
20630 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
20631 shlibpath_var=LD_LIBRARY_PATH
20632 else
20633 # With GCC up to 2.95.x, collect2 would create an import file
20634 # for dependence libraries. The import file would start with
20635 # the line `#! .'. This would cause the generated library to
20636 # depend on `.', always an invalid library. This was fixed in
20637 # development snapshots of GCC prior to 3.0.
20638 case $host_os in
20639 aix4 | aix4.[01] | aix4.[01].*)
20640 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
20641 echo ' yes '
20642 echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then
20644 else
20645 can_build_shared=no
20648 esac
20649 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
20650 # soname into executable. Probably we can add versioning support to
20651 # collect2, so additional links can be useful in future.
20652 if test "$aix_use_runtimelinking" = yes; then
20653 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
20654 # instead of lib<name>.a to let people know that these are not
20655 # typical AIX shared libraries.
20656 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20657 else
20658 # We preserve .a as extension for shared libraries through AIX4.2
20659 # and later when we are not doing run time linking.
20660 library_names_spec='${libname}${release}.a $libname.a'
20661 soname_spec='${libname}${release}${shared_ext}$major'
20663 shlibpath_var=LIBPATH
20667 amigaos*)
20668 case $host_cpu in
20669 powerpc)
20670 # Since July 2007 AmigaOS4 officially supports .so libraries.
20671 # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
20672 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20674 m68k)
20675 library_names_spec='$libname.ixlibrary $libname.a'
20676 # Create ${libname}_ixlibrary.a entries in /sys/libs.
20677 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'
20679 esac
20682 beos*)
20683 library_names_spec='${libname}${shared_ext}'
20684 dynamic_linker="$host_os ld.so"
20685 shlibpath_var=LIBRARY_PATH
20688 bsdi[45]*)
20689 version_type=linux
20690 need_version=no
20691 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20692 soname_spec='${libname}${release}${shared_ext}$major'
20693 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
20694 shlibpath_var=LD_LIBRARY_PATH
20695 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
20696 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
20697 # the default ld.so.conf also contains /usr/contrib/lib and
20698 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
20699 # libtool to hard-code these into programs
20702 cygwin* | mingw* | pw32* | cegcc*)
20703 version_type=windows
20704 shrext_cmds=".dll"
20705 need_version=no
20706 need_lib_prefix=no
20708 case $GCC,$host_os in
20709 yes,cygwin* | yes,mingw* | yes,pw32* | yes,cegcc*)
20710 library_names_spec='$libname.dll.a'
20711 # DLL is installed to $(libdir)/../bin by postinstall_cmds
20712 postinstall_cmds='base_file=`basename \${file}`~
20713 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
20714 dldir=$destdir/`dirname \$dlpath`~
20715 test -d \$dldir || mkdir -p \$dldir~
20716 $install_prog $dir/$dlname \$dldir/$dlname~
20717 chmod a+x \$dldir/$dlname~
20718 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
20719 eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
20721 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
20722 dlpath=$dir/\$dldll~
20723 $RM \$dlpath'
20724 shlibpath_overrides_runpath=yes
20726 case $host_os in
20727 cygwin*)
20728 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
20729 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
20732 mingw* | cegcc*)
20733 # MinGW DLLs use traditional 'lib' prefix
20734 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
20736 pw32*)
20737 # pw32 DLLs use 'pw' prefix rather than 'lib'
20738 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
20740 esac
20744 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
20746 esac
20747 dynamic_linker='Win32 ld.exe'
20748 # FIXME: first we should search . and the directory the executable is in
20749 shlibpath_var=PATH
20752 darwin* | rhapsody*)
20753 dynamic_linker="$host_os dyld"
20754 version_type=darwin
20755 need_lib_prefix=no
20756 need_version=no
20757 library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext'
20758 soname_spec='${libname}${release}${major}$shared_ext'
20759 shlibpath_overrides_runpath=yes
20760 shlibpath_var=DYLD_LIBRARY_PATH
20761 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
20763 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
20766 dgux*)
20767 version_type=linux
20768 need_lib_prefix=no
20769 need_version=no
20770 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
20771 soname_spec='${libname}${release}${shared_ext}$major'
20772 shlibpath_var=LD_LIBRARY_PATH
20775 freebsd* | dragonfly*)
20776 # DragonFly does not have aout. When/if they implement a new
20777 # versioning mechanism, adjust this.
20778 if test -x /usr/bin/objformat; then
20779 objformat=`/usr/bin/objformat`
20780 else
20781 case $host_os in
20782 freebsd[23].*) objformat=aout ;;
20783 *) objformat=elf ;;
20784 esac
20786 version_type=freebsd-$objformat
20787 case $version_type in
20788 freebsd-elf*)
20789 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
20790 need_version=no
20791 need_lib_prefix=no
20793 freebsd-*)
20794 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
20795 need_version=yes
20797 esac
20798 shlibpath_var=LD_LIBRARY_PATH
20799 case $host_os in
20800 freebsd2.*)
20801 shlibpath_overrides_runpath=yes
20803 freebsd3.[01]* | freebsdelf3.[01]*)
20804 shlibpath_overrides_runpath=yes
20805 hardcode_into_libs=yes
20807 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
20808 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
20809 shlibpath_overrides_runpath=no
20810 hardcode_into_libs=yes
20812 *) # from 4.6 on, and DragonFly
20813 shlibpath_overrides_runpath=yes
20814 hardcode_into_libs=yes
20816 esac
20819 gnu*)
20820 version_type=linux
20821 need_lib_prefix=no
20822 need_version=no
20823 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
20824 soname_spec='${libname}${release}${shared_ext}$major'
20825 shlibpath_var=LD_LIBRARY_PATH
20826 hardcode_into_libs=yes
20829 haiku*)
20830 version_type=linux
20831 need_lib_prefix=no
20832 need_version=no
20833 dynamic_linker="$host_os runtime_loader"
20834 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
20835 soname_spec='${libname}${release}${shared_ext}$major'
20836 shlibpath_var=LIBRARY_PATH
20837 shlibpath_overrides_runpath=yes
20838 sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/beos/system/lib'
20839 hardcode_into_libs=yes
20842 hpux9* | hpux10* | hpux11*)
20843 # Give a soname corresponding to the major version so that dld.sl refuses to
20844 # link against other versions.
20845 version_type=sunos
20846 need_lib_prefix=no
20847 need_version=no
20848 case $host_cpu in
20849 ia64*)
20850 shrext_cmds='.so'
20851 hardcode_into_libs=yes
20852 dynamic_linker="$host_os dld.so"
20853 shlibpath_var=LD_LIBRARY_PATH
20854 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
20855 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20856 soname_spec='${libname}${release}${shared_ext}$major'
20857 if test "X$HPUX_IA64_MODE" = X32; then
20858 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
20859 else
20860 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
20862 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
20864 hppa*64*)
20865 shrext_cmds='.sl'
20866 hardcode_into_libs=yes
20867 dynamic_linker="$host_os dld.sl"
20868 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
20869 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
20870 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20871 soname_spec='${libname}${release}${shared_ext}$major'
20872 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
20873 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
20876 shrext_cmds='.sl'
20877 dynamic_linker="$host_os dld.sl"
20878 shlibpath_var=SHLIB_PATH
20879 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
20880 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20881 soname_spec='${libname}${release}${shared_ext}$major'
20883 esac
20884 # HP-UX runs *really* slowly unless shared libraries are mode 555, ...
20885 postinstall_cmds='chmod 555 $lib'
20886 # or fails outright, so override atomically:
20887 install_override_mode=555
20890 interix[3-9]*)
20891 version_type=linux
20892 need_lib_prefix=no
20893 need_version=no
20894 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
20895 soname_spec='${libname}${release}${shared_ext}$major'
20896 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
20897 shlibpath_var=LD_LIBRARY_PATH
20898 shlibpath_overrides_runpath=no
20899 hardcode_into_libs=yes
20902 irix5* | irix6* | nonstopux*)
20903 case $host_os in
20904 nonstopux*) version_type=nonstopux ;;
20906 if test "$lt_cv_prog_gnu_ld" = yes; then
20907 version_type=linux
20908 else
20909 version_type=irix
20910 fi ;;
20911 esac
20912 need_lib_prefix=no
20913 need_version=no
20914 soname_spec='${libname}${release}${shared_ext}$major'
20915 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
20916 case $host_os in
20917 irix5* | nonstopux*)
20918 libsuff= shlibsuff=
20921 case $LD in # libtool.m4 will add one of these switches to LD
20922 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
20923 libsuff= shlibsuff= libmagic=32-bit;;
20924 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
20925 libsuff=32 shlibsuff=N32 libmagic=N32;;
20926 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
20927 libsuff=64 shlibsuff=64 libmagic=64-bit;;
20928 *) libsuff= shlibsuff= libmagic=never-match;;
20929 esac
20931 esac
20932 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
20933 shlibpath_overrides_runpath=no
20934 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
20935 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
20936 hardcode_into_libs=yes
20939 # No shared lib support for Linux oldld, aout, or coff.
20940 linux*oldld* | linux*aout* | linux*coff*)
20941 dynamic_linker=no
20944 # This must be Linux ELF.
20945 linux* | k*bsd*-gnu | kopensolaris*-gnu)
20946 version_type=linux
20947 need_lib_prefix=no
20948 need_version=no
20949 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20950 soname_spec='${libname}${release}${shared_ext}$major'
20951 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
20952 shlibpath_var=LD_LIBRARY_PATH
20953 shlibpath_overrides_runpath=no
20955 # Some binutils ld are patched to set DT_RUNPATH
20956 if test "${lt_cv_shlibpath_overrides_runpath+set}" = set; then :
20957 $as_echo_n "(cached) " >&6
20958 else
20959 lt_cv_shlibpath_overrides_runpath=no
20960 save_LDFLAGS=$LDFLAGS
20961 save_libdir=$libdir
20962 eval "libdir=/foo; wl=\"$lt_prog_compiler_wl_CXX\"; \
20963 LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec_CXX\""
20964 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20965 /* end confdefs.h. */
20968 main ()
20972 return 0;
20974 _ACEOF
20975 if ac_fn_cxx_try_link "$LINENO"; then :
20976 if ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then :
20977 lt_cv_shlibpath_overrides_runpath=yes
20980 rm -f core conftest.err conftest.$ac_objext \
20981 conftest$ac_exeext conftest.$ac_ext
20982 LDFLAGS=$save_LDFLAGS
20983 libdir=$save_libdir
20987 shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath
20989 # This implies no fast_install, which is unacceptable.
20990 # Some rework will be needed to allow for fast_install
20991 # before this can be enabled.
20992 hardcode_into_libs=yes
20994 # Append ld.so.conf contents to the search path
20995 if test -f /etc/ld.so.conf; then
20996 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' ' '`
20997 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
21000 # We used to test for /lib/ld.so.1 and disable shared libraries on
21001 # powerpc, because MkLinux only supported shared libraries with the
21002 # GNU dynamic linker. Since this was broken with cross compilers,
21003 # most powerpc-linux boxes support dynamic linking these days and
21004 # people can always --disable-shared, the test was removed, and we
21005 # assume the GNU/Linux dynamic linker is in use.
21006 dynamic_linker='GNU/Linux ld.so'
21009 netbsd*)
21010 version_type=sunos
21011 need_lib_prefix=no
21012 need_version=no
21013 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
21014 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
21015 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
21016 dynamic_linker='NetBSD (a.out) ld.so'
21017 else
21018 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
21019 soname_spec='${libname}${release}${shared_ext}$major'
21020 dynamic_linker='NetBSD ld.elf_so'
21022 shlibpath_var=LD_LIBRARY_PATH
21023 shlibpath_overrides_runpath=yes
21024 hardcode_into_libs=yes
21027 newsos6)
21028 version_type=linux
21029 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
21030 shlibpath_var=LD_LIBRARY_PATH
21031 shlibpath_overrides_runpath=yes
21034 *nto* | *qnx*)
21035 version_type=qnx
21036 need_lib_prefix=no
21037 need_version=no
21038 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
21039 soname_spec='${libname}${release}${shared_ext}$major'
21040 shlibpath_var=LD_LIBRARY_PATH
21041 shlibpath_overrides_runpath=no
21042 hardcode_into_libs=yes
21043 dynamic_linker='ldqnx.so'
21046 openbsd*)
21047 version_type=sunos
21048 sys_lib_dlsearch_path_spec="/usr/lib"
21049 need_lib_prefix=no
21050 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
21051 case $host_os in
21052 openbsd3.3 | openbsd3.3.*) need_version=yes ;;
21053 *) need_version=no ;;
21054 esac
21055 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
21056 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
21057 shlibpath_var=LD_LIBRARY_PATH
21058 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
21059 case $host_os in
21060 openbsd2.[89] | openbsd2.[89].*)
21061 shlibpath_overrides_runpath=no
21064 shlibpath_overrides_runpath=yes
21066 esac
21067 else
21068 shlibpath_overrides_runpath=yes
21072 os2*)
21073 libname_spec='$name'
21074 shrext_cmds=".dll"
21075 need_lib_prefix=no
21076 library_names_spec='$libname${shared_ext} $libname.a'
21077 dynamic_linker='OS/2 ld.exe'
21078 shlibpath_var=LIBPATH
21081 osf3* | osf4* | osf5*)
21082 version_type=osf
21083 need_lib_prefix=no
21084 need_version=no
21085 soname_spec='${libname}${release}${shared_ext}$major'
21086 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
21087 shlibpath_var=LD_LIBRARY_PATH
21088 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
21089 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
21092 rdos*)
21093 dynamic_linker=no
21096 solaris*)
21097 version_type=linux
21098 need_lib_prefix=no
21099 need_version=no
21100 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
21101 soname_spec='${libname}${release}${shared_ext}$major'
21102 shlibpath_var=LD_LIBRARY_PATH
21103 shlibpath_overrides_runpath=yes
21104 hardcode_into_libs=yes
21105 # ldd complains unless libraries are executable
21106 postinstall_cmds='chmod +x $lib'
21109 sunos4*)
21110 version_type=sunos
21111 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
21112 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
21113 shlibpath_var=LD_LIBRARY_PATH
21114 shlibpath_overrides_runpath=yes
21115 if test "$with_gnu_ld" = yes; then
21116 need_lib_prefix=no
21118 need_version=yes
21121 sysv4 | sysv4.3*)
21122 version_type=linux
21123 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
21124 soname_spec='${libname}${release}${shared_ext}$major'
21125 shlibpath_var=LD_LIBRARY_PATH
21126 case $host_vendor in
21127 sni)
21128 shlibpath_overrides_runpath=no
21129 need_lib_prefix=no
21130 runpath_var=LD_RUN_PATH
21132 siemens)
21133 need_lib_prefix=no
21135 motorola)
21136 need_lib_prefix=no
21137 need_version=no
21138 shlibpath_overrides_runpath=no
21139 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
21141 esac
21144 sysv4*MP*)
21145 if test -d /usr/nec ;then
21146 version_type=linux
21147 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
21148 soname_spec='$libname${shared_ext}.$major'
21149 shlibpath_var=LD_LIBRARY_PATH
21153 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
21154 version_type=freebsd-elf
21155 need_lib_prefix=no
21156 need_version=no
21157 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
21158 soname_spec='${libname}${release}${shared_ext}$major'
21159 shlibpath_var=LD_LIBRARY_PATH
21160 shlibpath_overrides_runpath=yes
21161 hardcode_into_libs=yes
21162 if test "$with_gnu_ld" = yes; then
21163 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
21164 else
21165 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
21166 case $host_os in
21167 sco3.2v5*)
21168 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
21170 esac
21172 sys_lib_dlsearch_path_spec='/usr/lib'
21175 tpf*)
21176 # TPF is a cross-target only. Preferred cross-host = GNU/Linux.
21177 version_type=linux
21178 need_lib_prefix=no
21179 need_version=no
21180 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
21181 shlibpath_var=LD_LIBRARY_PATH
21182 shlibpath_overrides_runpath=no
21183 hardcode_into_libs=yes
21186 uts4*)
21187 version_type=linux
21188 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
21189 soname_spec='${libname}${release}${shared_ext}$major'
21190 shlibpath_var=LD_LIBRARY_PATH
21194 dynamic_linker=no
21196 esac
21197 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
21198 $as_echo "$dynamic_linker" >&6; }
21199 test "$dynamic_linker" = no && can_build_shared=no
21201 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
21202 if test "$GCC" = yes; then
21203 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
21206 if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
21207 sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
21209 if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
21210 sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
21250 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
21251 $as_echo_n "checking how to hardcode library paths into programs... " >&6; }
21252 hardcode_action_CXX=
21253 if test -n "$hardcode_libdir_flag_spec_CXX" ||
21254 test -n "$runpath_var_CXX" ||
21255 test "X$hardcode_automatic_CXX" = "Xyes" ; then
21257 # We can hardcode non-existent directories.
21258 if test "$hardcode_direct_CXX" != no &&
21259 # If the only mechanism to avoid hardcoding is shlibpath_var, we
21260 # have to relink, otherwise we might link with an installed library
21261 # when we should be linking with a yet-to-be-installed one
21262 ## test "$_LT_TAGVAR(hardcode_shlibpath_var, CXX)" != no &&
21263 test "$hardcode_minus_L_CXX" != no; then
21264 # Linking always hardcodes the temporary library directory.
21265 hardcode_action_CXX=relink
21266 else
21267 # We can link without hardcoding, and we can hardcode nonexisting dirs.
21268 hardcode_action_CXX=immediate
21270 else
21271 # We cannot hardcode anything, or else we can only hardcode existing
21272 # directories.
21273 hardcode_action_CXX=unsupported
21275 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action_CXX" >&5
21276 $as_echo "$hardcode_action_CXX" >&6; }
21278 if test "$hardcode_action_CXX" = relink ||
21279 test "$inherit_rpath_CXX" = yes; then
21280 # Fast installation is not supported
21281 enable_fast_install=no
21282 elif test "$shlibpath_overrides_runpath" = yes ||
21283 test "$enable_shared" = no; then
21284 # Fast installation is not necessary
21285 enable_fast_install=needless
21294 fi # test -n "$compiler"
21296 CC=$lt_save_CC
21297 LDCXX=$LD
21298 LD=$lt_save_LD
21299 GCC=$lt_save_GCC
21300 with_gnu_ld=$lt_save_with_gnu_ld
21301 lt_cv_path_LDCXX=$lt_cv_path_LD
21302 lt_cv_path_LD=$lt_save_path_LD
21303 lt_cv_prog_gnu_ldcxx=$lt_cv_prog_gnu_ld
21304 lt_cv_prog_gnu_ld=$lt_save_with_gnu_ld
21305 fi # test "$_lt_caught_CXX_error" != yes
21307 ac_ext=c
21308 ac_cpp='$CPP $CPPFLAGS'
21309 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
21310 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
21311 ac_compiler_gnu=$ac_cv_c_compiler_gnu
21328 # Only expand once:
21334 # Identify the assembler which will work hand-in-glove with the newly
21335 # built GCC, so that we can examine its features. This is the assembler
21336 # which will be driven by the driver program.
21338 # If build != host, and we aren't building gas in-tree, we identify a
21339 # build->target assembler and hope that it will have the same features
21340 # as the host->target assembler we'll be using.
21341 gcc_cv_gas_major_version=
21342 gcc_cv_gas_minor_version=
21343 gcc_cv_as_gas_srcdir=`echo $srcdir | sed -e 's,/gcc$,,'`/gas
21345 if test "${gcc_cv_as+set}" = set; then :
21347 else
21349 if test -x "$DEFAULT_ASSEMBLER"; then
21350 gcc_cv_as="$DEFAULT_ASSEMBLER"
21351 elif test -f $gcc_cv_as_gas_srcdir/configure.in \
21352 && test -f ../gas/Makefile \
21353 && test x$build = x$host; then
21354 gcc_cv_as=../gas/as-new$build_exeext
21355 elif test -x as$build_exeext; then
21356 # Build using assembler in the current directory.
21357 gcc_cv_as=./as$build_exeext
21358 elif ( set dummy $AS_FOR_TARGET; test -x $2 ); then
21359 gcc_cv_as="$AS_FOR_TARGET"
21360 else
21361 # Extract the first word of "$AS_FOR_TARGET", so it can be a program name with args.
21362 set dummy $AS_FOR_TARGET; ac_word=$2
21363 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
21364 $as_echo_n "checking for $ac_word... " >&6; }
21365 if test "${ac_cv_path_gcc_cv_as+set}" = set; then :
21366 $as_echo_n "(cached) " >&6
21367 else
21368 case $gcc_cv_as in
21369 [\\/]* | ?:[\\/]*)
21370 ac_cv_path_gcc_cv_as="$gcc_cv_as" # Let the user override the test with a path.
21373 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
21374 for as_dir in $PATH
21376 IFS=$as_save_IFS
21377 test -z "$as_dir" && as_dir=.
21378 for ac_exec_ext in '' $ac_executable_extensions; do
21379 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
21380 ac_cv_path_gcc_cv_as="$as_dir/$ac_word$ac_exec_ext"
21381 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
21382 break 2
21384 done
21385 done
21386 IFS=$as_save_IFS
21389 esac
21391 gcc_cv_as=$ac_cv_path_gcc_cv_as
21392 if test -n "$gcc_cv_as"; then
21393 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as" >&5
21394 $as_echo "$gcc_cv_as" >&6; }
21395 else
21396 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
21397 $as_echo "no" >&6; }
21404 ORIGINAL_AS_FOR_TARGET=$gcc_cv_as
21406 case "$ORIGINAL_AS_FOR_TARGET" in
21407 ./as | ./as$build_exeext) ;;
21408 *) ac_config_files="$ac_config_files as:exec-tool.in"
21410 esac
21412 { $as_echo "$as_me:${as_lineno-$LINENO}: checking what assembler to use" >&5
21413 $as_echo_n "checking what assembler to use... " >&6; }
21414 if test "$gcc_cv_as" = ../gas/as-new$build_exeext; then
21415 # Single tree build which includes gas. We want to prefer it
21416 # over whatever linker top-level may have detected, since
21417 # we'll use what we're building after installation anyway.
21418 { $as_echo "$as_me:${as_lineno-$LINENO}: result: newly built gas" >&5
21419 $as_echo "newly built gas" >&6; }
21420 in_tree_gas=yes
21421 gcc_cv_as_bfd_srcdir=`echo $srcdir | sed -e 's,/gcc$,,'`/bfd
21422 for f in $gcc_cv_as_bfd_srcdir/configure \
21423 $gcc_cv_as_gas_srcdir/configure \
21424 $gcc_cv_as_gas_srcdir/configure.in \
21425 $gcc_cv_as_gas_srcdir/Makefile.in ; do
21426 gcc_cv_gas_version=`sed -n -e 's/^[ ]*VERSION=[^0-9A-Za-z_]*\([0-9]*\.[0-9]*.*\)/VERSION=\1/p' < $f`
21427 if test x$gcc_cv_gas_version != x; then
21428 break
21430 done
21431 case $gcc_cv_gas_version in
21432 VERSION=[0-9]*) ;;
21433 *) as_fn_error "cannot find version of in-tree assembler" "$LINENO" 5;;
21434 esac
21435 gcc_cv_gas_major_version=`expr "$gcc_cv_gas_version" : "VERSION=\([0-9]*\)"`
21436 gcc_cv_gas_minor_version=`expr "$gcc_cv_gas_version" : "VERSION=[0-9]*\.\([0-9]*\)"`
21437 gcc_cv_gas_patch_version=`expr "$gcc_cv_gas_version" : "VERSION=[0-9]*\.[0-9]*\.\([0-9]*\)"`
21438 case $gcc_cv_gas_patch_version in
21439 "") gcc_cv_gas_patch_version="0" ;;
21440 esac
21441 gcc_cv_gas_vers=`expr \( \( $gcc_cv_gas_major_version \* 1000 \) \
21442 + $gcc_cv_gas_minor_version \) \* 1000 \
21443 + $gcc_cv_gas_patch_version`
21445 in_tree_gas_is_elf=no
21446 if grep 'obj_format = elf' ../gas/Makefile > /dev/null \
21447 || (grep 'obj_format = multi' ../gas/Makefile \
21448 && grep 'extra_objects =.* obj-elf' ../gas/Makefile) > /dev/null
21449 then
21450 in_tree_gas_is_elf=yes
21452 else
21453 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as" >&5
21454 $as_echo "$gcc_cv_as" >&6; }
21455 in_tree_gas=no
21458 default_ld=
21459 # Check whether --enable-ld was given.
21460 if test "${enable_ld+set}" = set; then :
21461 enableval=$enable_ld; case "${enableval}" in
21463 default_ld=ld.gold
21465 esac
21469 # Check whether --enable-gold was given.
21470 if test "${enable_gold+set}" = set; then :
21471 enableval=$enable_gold; case "${enableval}" in
21472 default)
21473 install_gold_as_default=yes
21475 yes)
21476 if test x${default_ld} != x; then
21477 install_gold_as_default=yes
21483 as_fn_error "invalid --enable-gold argument" "$LINENO" 5
21485 esac
21486 else
21487 install_gold_as_default=no
21491 # Identify the linker which will work hand-in-glove with the newly
21492 # built GCC, so that we can examine its features. This is the linker
21493 # which will be driven by the driver program.
21495 # If build != host, and we aren't building gas in-tree, we identify a
21496 # build->target linker and hope that it will have the same features
21497 # as the host->target linker we'll be using.
21498 gcc_cv_gld_major_version=
21499 gcc_cv_gld_minor_version=
21500 gcc_cv_ld_gld_srcdir=`echo $srcdir | sed -e 's,/gcc$,,'`/ld
21501 gcc_cv_ld_gold_srcdir=`echo $srcdir | sed -e 's,/gcc$,,'`/gold
21502 gcc_cv_ld_bfd_srcdir=`echo $srcdir | sed -e 's,/gcc$,,'`/bfd
21504 if test "${gcc_cv_ld+set}" = set; then :
21506 else
21508 if test -x "$DEFAULT_LINKER"; then
21509 gcc_cv_ld="$DEFAULT_LINKER"
21510 elif test $install_gold_as_default = yes \
21511 && test -f $gcc_cv_ld_gold_srcdir/configure.ac \
21512 && test -f ../gold/Makefile \
21513 && test x$build = x$host; then
21514 gcc_cv_ld=../gold/ld-new$build_exeext
21515 elif test -f $gcc_cv_ld_gld_srcdir/configure.in \
21516 && test -f ../ld/Makefile \
21517 && test x$build = x$host; then
21518 gcc_cv_ld=../ld/ld-new$build_exeext
21519 elif test -x collect-ld$build_exeext; then
21520 # Build using linker in the current directory.
21521 gcc_cv_ld=./collect-ld$build_exeext
21522 elif ( set dummy $LD_FOR_TARGET; test -x $2 ); then
21523 gcc_cv_ld="$LD_FOR_TARGET"
21524 else
21525 # Extract the first word of "$LD_FOR_TARGET", so it can be a program name with args.
21526 set dummy $LD_FOR_TARGET; ac_word=$2
21527 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
21528 $as_echo_n "checking for $ac_word... " >&6; }
21529 if test "${ac_cv_path_gcc_cv_ld+set}" = set; then :
21530 $as_echo_n "(cached) " >&6
21531 else
21532 case $gcc_cv_ld in
21533 [\\/]* | ?:[\\/]*)
21534 ac_cv_path_gcc_cv_ld="$gcc_cv_ld" # Let the user override the test with a path.
21537 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
21538 for as_dir in $PATH
21540 IFS=$as_save_IFS
21541 test -z "$as_dir" && as_dir=.
21542 for ac_exec_ext in '' $ac_executable_extensions; do
21543 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
21544 ac_cv_path_gcc_cv_ld="$as_dir/$ac_word$ac_exec_ext"
21545 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
21546 break 2
21548 done
21549 done
21550 IFS=$as_save_IFS
21553 esac
21555 gcc_cv_ld=$ac_cv_path_gcc_cv_ld
21556 if test -n "$gcc_cv_ld"; then
21557 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld" >&5
21558 $as_echo "$gcc_cv_ld" >&6; }
21559 else
21560 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
21561 $as_echo "no" >&6; }
21568 ORIGINAL_PLUGIN_LD_FOR_TARGET=$gcc_cv_ld
21569 PLUGIN_LD_SUFFIX=`basename $gcc_cv_ld | sed -e "s,$target_alias-,,"`
21570 # if the PLUGIN_LD is set ld-new, just have it as ld
21571 # as that is the installed named.
21572 if test x$PLUGIN_LD_SUFFIX = xld-new \
21573 || test x$PLUGIN_LD_SUFFIX = xcollect-ld ; then
21574 PLUGIN_LD_SUFFIX=ld
21577 # Check whether --with-plugin-ld was given.
21578 if test "${with_plugin_ld+set}" = set; then :
21579 withval=$with_plugin_ld; if test x"$withval" != x; then
21580 ORIGINAL_PLUGIN_LD_FOR_TARGET="$withval"
21581 PLUGIN_LD_SUFFIX=`echo $withval | sed -e "s,$target_alias-,,"`
21587 cat >>confdefs.h <<_ACEOF
21588 #define PLUGIN_LD_SUFFIX "$PLUGIN_LD_SUFFIX"
21589 _ACEOF
21592 # Check to see if we are using gold instead of ld
21593 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using gold" >&5
21594 $as_echo_n "checking whether we are using gold... " >&6; }
21595 ld_is_gold=no
21596 if test x$gcc_cv_ld != x; then
21597 if $gcc_cv_ld --version 2>/dev/null | sed 1q \
21598 | grep "GNU gold" > /dev/null; then
21599 ld_is_gold=yes
21602 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_is_gold" >&5
21603 $as_echo "$ld_is_gold" >&6; }
21605 ORIGINAL_LD_FOR_TARGET=$gcc_cv_ld
21607 case "$ORIGINAL_LD_FOR_TARGET" in
21608 ./collect-ld | ./collect-ld$build_exeext) ;;
21609 *) ac_config_files="$ac_config_files collect-ld:exec-tool.in"
21611 esac
21613 { $as_echo "$as_me:${as_lineno-$LINENO}: checking what linker to use" >&5
21614 $as_echo_n "checking what linker to use... " >&6; }
21615 if test "$gcc_cv_ld" = ../ld/ld-new$build_exeext \
21616 || test "$gcc_cv_ld" = ../gold/ld-new$build_exeext; then
21617 # Single tree build which includes ld. We want to prefer it
21618 # over whatever linker top-level may have detected, since
21619 # we'll use what we're building after installation anyway.
21620 { $as_echo "$as_me:${as_lineno-$LINENO}: result: newly built ld" >&5
21621 $as_echo "newly built ld" >&6; }
21622 in_tree_ld=yes
21623 in_tree_ld_is_elf=no
21624 if (grep 'EMUL = .*elf' ../ld/Makefile \
21625 || grep 'EMUL = .*linux' ../ld/Makefile \
21626 || grep 'EMUL = .*lynx' ../ld/Makefile) > /dev/null; then
21627 in_tree_ld_is_elf=yes
21628 elif test "$ld_is_gold" = yes; then
21629 in_tree_ld_is_elf=yes
21631 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
21633 gcc_cv_gld_version=`sed -n -e 's/^[ ]*VERSION=[^0-9A-Za-z_]*\([0-9]*\.[0-9]*.*\)/VERSION=\1/p' < $f`
21634 if test x$gcc_cv_gld_version != x; then
21635 break
21637 done
21638 case $gcc_cv_gld_version in
21639 VERSION=[0-9]*) ;;
21640 *) as_fn_error "cannot find version of in-tree linker" "$LINENO" 5 ;;
21641 esac
21642 gcc_cv_gld_major_version=`expr "$gcc_cv_gld_version" : "VERSION=\([0-9]*\)"`
21643 gcc_cv_gld_minor_version=`expr "$gcc_cv_gld_version" : "VERSION=[0-9]*\.\([0-9]*\)"`
21644 ORIGINAL_LD_BFD_FOR_TARGET=../ld/ld-new$build_exeext
21645 ORIGINAL_LD_GOLD_FOR_TARGET=../gold/ld-new$build_exeext
21646 else
21647 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld" >&5
21648 $as_echo "$gcc_cv_ld" >&6; }
21649 in_tree_ld=no
21650 gcc_cvs_ld_program=`dirname $gcc_cv_ld`/`basename $gcc_cv_ld $host_exeext`
21651 ORIGINAL_LD_BFD_FOR_TARGET=${gcc_cvs_ld_program}.bfd$host_exeext
21652 ORIGINAL_LD_GOLD_FOR_TARGET=${gcc_cvs_ld_program}.gold$host_exeext
21658 # Figure out what nm we will be using.
21659 gcc_cv_binutils_srcdir=`echo $srcdir | sed -e 's,/gcc$,,'`/binutils
21660 if test "${gcc_cv_nm+set}" = set; then :
21662 else
21664 if test -f $gcc_cv_binutils_srcdir/configure.in \
21665 && test -f ../binutils/Makefile \
21666 && test x$build = x$host; then
21667 gcc_cv_nm=../binutils/nm-new$build_exeext
21668 elif test -x nm$build_exeext; then
21669 gcc_cv_nm=./nm$build_exeext
21670 elif ( set dummy $NM_FOR_TARGET; test -x $2 ); then
21671 gcc_cv_nm="$NM_FOR_TARGET"
21672 else
21673 # Extract the first word of "$NM_FOR_TARGET", so it can be a program name with args.
21674 set dummy $NM_FOR_TARGET; ac_word=$2
21675 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
21676 $as_echo_n "checking for $ac_word... " >&6; }
21677 if test "${ac_cv_path_gcc_cv_nm+set}" = set; then :
21678 $as_echo_n "(cached) " >&6
21679 else
21680 case $gcc_cv_nm in
21681 [\\/]* | ?:[\\/]*)
21682 ac_cv_path_gcc_cv_nm="$gcc_cv_nm" # Let the user override the test with a path.
21685 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
21686 for as_dir in $PATH
21688 IFS=$as_save_IFS
21689 test -z "$as_dir" && as_dir=.
21690 for ac_exec_ext in '' $ac_executable_extensions; do
21691 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
21692 ac_cv_path_gcc_cv_nm="$as_dir/$ac_word$ac_exec_ext"
21693 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
21694 break 2
21696 done
21697 done
21698 IFS=$as_save_IFS
21701 esac
21703 gcc_cv_nm=$ac_cv_path_gcc_cv_nm
21704 if test -n "$gcc_cv_nm"; then
21705 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_nm" >&5
21706 $as_echo "$gcc_cv_nm" >&6; }
21707 else
21708 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
21709 $as_echo "no" >&6; }
21716 { $as_echo "$as_me:${as_lineno-$LINENO}: checking what nm to use" >&5
21717 $as_echo_n "checking what nm to use... " >&6; }
21718 if test "$gcc_cv_nm" = ../binutils/nm-new$build_exeext; then
21719 # Single tree build which includes binutils.
21720 { $as_echo "$as_me:${as_lineno-$LINENO}: result: newly built nm" >&5
21721 $as_echo "newly built nm" >&6; }
21722 in_tree_nm=yes
21723 else
21724 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_nm" >&5
21725 $as_echo "$gcc_cv_nm" >&6; }
21726 in_tree_nm=no
21729 ORIGINAL_NM_FOR_TARGET=$gcc_cv_nm
21731 case "$ORIGINAL_NM_FOR_TARGET" in
21732 ./nm | ./nm$build_exeext) ;;
21733 *) ac_config_files="$ac_config_files nm:exec-tool.in"
21735 esac
21738 # Figure out what objdump we will be using.
21739 if test "${gcc_cv_objdump+set}" = set; then :
21741 else
21743 if test -f $gcc_cv_binutils_srcdir/configure.in \
21744 && test -f ../binutils/Makefile \
21745 && test x$build = x$host; then
21746 # Single tree build which includes binutils.
21747 gcc_cv_objdump=../binutils/objdump$build_exeext
21748 elif test -x objdump$build_exeext; then
21749 gcc_cv_objdump=./objdump$build_exeext
21750 elif ( set dummy $OBJDUMP_FOR_TARGET; test -x $2 ); then
21751 gcc_cv_objdump="$OBJDUMP_FOR_TARGET"
21752 else
21753 # Extract the first word of "$OBJDUMP_FOR_TARGET", so it can be a program name with args.
21754 set dummy $OBJDUMP_FOR_TARGET; ac_word=$2
21755 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
21756 $as_echo_n "checking for $ac_word... " >&6; }
21757 if test "${ac_cv_path_gcc_cv_objdump+set}" = set; then :
21758 $as_echo_n "(cached) " >&6
21759 else
21760 case $gcc_cv_objdump in
21761 [\\/]* | ?:[\\/]*)
21762 ac_cv_path_gcc_cv_objdump="$gcc_cv_objdump" # Let the user override the test with a path.
21765 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
21766 for as_dir in $PATH
21768 IFS=$as_save_IFS
21769 test -z "$as_dir" && as_dir=.
21770 for ac_exec_ext in '' $ac_executable_extensions; do
21771 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
21772 ac_cv_path_gcc_cv_objdump="$as_dir/$ac_word$ac_exec_ext"
21773 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
21774 break 2
21776 done
21777 done
21778 IFS=$as_save_IFS
21781 esac
21783 gcc_cv_objdump=$ac_cv_path_gcc_cv_objdump
21784 if test -n "$gcc_cv_objdump"; then
21785 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_objdump" >&5
21786 $as_echo "$gcc_cv_objdump" >&6; }
21787 else
21788 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
21789 $as_echo "no" >&6; }
21796 { $as_echo "$as_me:${as_lineno-$LINENO}: checking what objdump to use" >&5
21797 $as_echo_n "checking what objdump to use... " >&6; }
21798 if test "$gcc_cv_objdump" = ../binutils/objdump$build_exeext; then
21799 # Single tree build which includes binutils.
21800 { $as_echo "$as_me:${as_lineno-$LINENO}: result: newly built objdump" >&5
21801 $as_echo "newly built objdump" >&6; }
21802 elif test x$gcc_cv_objdump = x; then
21803 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
21804 $as_echo "not found" >&6; }
21805 else
21806 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_objdump" >&5
21807 $as_echo "$gcc_cv_objdump" >&6; }
21810 # Figure out what readelf we will be using.
21811 if test "${gcc_cv_readelf+set}" = set; then :
21813 else
21815 if test -f $gcc_cv_binutils_srcdir/configure.in \
21816 && test -f ../binutils/Makefile \
21817 && test x$build = x$host; then
21818 # Single tree build which includes binutils.
21819 gcc_cv_readelf=../binutils/readelf$build_exeext
21820 elif test -x readelf$build_exeext; then
21821 gcc_cv_readelf=./readelf$build_exeext
21822 else
21823 # Extract the first word of "readelf", so it can be a program name with args.
21824 set dummy readelf; ac_word=$2
21825 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
21826 $as_echo_n "checking for $ac_word... " >&6; }
21827 if test "${ac_cv_path_gcc_cv_readelf+set}" = set; then :
21828 $as_echo_n "(cached) " >&6
21829 else
21830 case $gcc_cv_readelf in
21831 [\\/]* | ?:[\\/]*)
21832 ac_cv_path_gcc_cv_readelf="$gcc_cv_readelf" # Let the user override the test with a path.
21835 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
21836 for as_dir in $PATH
21838 IFS=$as_save_IFS
21839 test -z "$as_dir" && as_dir=.
21840 for ac_exec_ext in '' $ac_executable_extensions; do
21841 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
21842 ac_cv_path_gcc_cv_readelf="$as_dir/$ac_word$ac_exec_ext"
21843 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
21844 break 2
21846 done
21847 done
21848 IFS=$as_save_IFS
21851 esac
21853 gcc_cv_readelf=$ac_cv_path_gcc_cv_readelf
21854 if test -n "$gcc_cv_readelf"; then
21855 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_readelf" >&5
21856 $as_echo "$gcc_cv_readelf" >&6; }
21857 else
21858 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
21859 $as_echo "no" >&6; }
21866 { $as_echo "$as_me:${as_lineno-$LINENO}: checking what readelf to use" >&5
21867 $as_echo_n "checking what readelf to use... " >&6; }
21868 if test "$gcc_cv_readelf" = ../binutils/readelf$build_exeext; then
21869 # Single tree build which includes binutils.
21870 { $as_echo "$as_me:${as_lineno-$LINENO}: result: newly built readelf" >&5
21871 $as_echo "newly built readelf" >&6; }
21872 elif test x$gcc_cv_readelf = x; then
21873 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
21874 $as_echo "not found" >&6; }
21875 else
21876 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_readelf" >&5
21877 $as_echo "$gcc_cv_readelf" >&6; }
21880 # Figure out what assembler alignment features are present.
21881 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler flags" >&5
21882 $as_echo_n "checking assembler flags... " >&6; }
21883 if test "${gcc_cv_as_flags+set}" = set; then :
21884 $as_echo_n "(cached) " >&6
21885 else
21886 case "$target" in
21887 i[34567]86-*-linux*)
21888 gcc_cv_as_flags=--32
21890 x86_64-*-linux-gnux32)
21891 gcc_cv_as_flags=--x32
21893 x86_64-*-linux*)
21894 gcc_cv_as_flags=--64
21896 powerpc*-*-darwin*)
21897 gcc_cv_as_flags="-arch ppc"
21900 gcc_cv_as_flags=" "
21902 esac
21904 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_flags" >&5
21905 $as_echo "$gcc_cv_as_flags" >&6; }
21907 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .balign and .p2align" >&5
21908 $as_echo_n "checking assembler for .balign and .p2align... " >&6; }
21909 if test "${gcc_cv_as_balign_and_p2align+set}" = set; then :
21910 $as_echo_n "(cached) " >&6
21911 else
21912 gcc_cv_as_balign_and_p2align=no
21913 if test $in_tree_gas = yes; then
21914 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 6 \) \* 1000 + 0`
21915 then gcc_cv_as_balign_and_p2align=yes
21917 elif test x$gcc_cv_as != x; then
21918 $as_echo '.balign 4
21919 .p2align 2' > conftest.s
21920 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
21921 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
21922 (eval $ac_try) 2>&5
21923 ac_status=$?
21924 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
21925 test $ac_status = 0; }; }
21926 then
21927 gcc_cv_as_balign_and_p2align=yes
21928 else
21929 echo "configure: failed program was" >&5
21930 cat conftest.s >&5
21932 rm -f conftest.o conftest.s
21935 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_balign_and_p2align" >&5
21936 $as_echo "$gcc_cv_as_balign_and_p2align" >&6; }
21937 if test $gcc_cv_as_balign_and_p2align = yes; then
21939 $as_echo "#define HAVE_GAS_BALIGN_AND_P2ALIGN 1" >>confdefs.h
21943 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .p2align with maximum skip" >&5
21944 $as_echo_n "checking assembler for .p2align with maximum skip... " >&6; }
21945 if test "${gcc_cv_as_max_skip_p2align+set}" = set; then :
21946 $as_echo_n "(cached) " >&6
21947 else
21948 gcc_cv_as_max_skip_p2align=no
21949 if test $in_tree_gas = yes; then
21950 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 8 \) \* 1000 + 0`
21951 then gcc_cv_as_max_skip_p2align=yes
21953 elif test x$gcc_cv_as != x; then
21954 $as_echo '.p2align 4,,7' > conftest.s
21955 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
21956 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
21957 (eval $ac_try) 2>&5
21958 ac_status=$?
21959 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
21960 test $ac_status = 0; }; }
21961 then
21962 gcc_cv_as_max_skip_p2align=yes
21963 else
21964 echo "configure: failed program was" >&5
21965 cat conftest.s >&5
21967 rm -f conftest.o conftest.s
21970 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_max_skip_p2align" >&5
21971 $as_echo "$gcc_cv_as_max_skip_p2align" >&6; }
21972 if test $gcc_cv_as_max_skip_p2align = yes; then
21974 $as_echo "#define HAVE_GAS_MAX_SKIP_P2ALIGN 1" >>confdefs.h
21978 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .literal16" >&5
21979 $as_echo_n "checking assembler for .literal16... " >&6; }
21980 if test "${gcc_cv_as_literal16+set}" = set; then :
21981 $as_echo_n "(cached) " >&6
21982 else
21983 gcc_cv_as_literal16=no
21984 if test $in_tree_gas = yes; then
21985 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 8 \) \* 1000 + 0`
21986 then gcc_cv_as_literal16=yes
21988 elif test x$gcc_cv_as != x; then
21989 $as_echo '.literal16' > conftest.s
21990 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
21991 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
21992 (eval $ac_try) 2>&5
21993 ac_status=$?
21994 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
21995 test $ac_status = 0; }; }
21996 then
21997 gcc_cv_as_literal16=yes
21998 else
21999 echo "configure: failed program was" >&5
22000 cat conftest.s >&5
22002 rm -f conftest.o conftest.s
22005 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_literal16" >&5
22006 $as_echo "$gcc_cv_as_literal16" >&6; }
22007 if test $gcc_cv_as_literal16 = yes; then
22009 $as_echo "#define HAVE_GAS_LITERAL16 1" >>confdefs.h
22013 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for working .subsection -1" >&5
22014 $as_echo_n "checking assembler for working .subsection -1... " >&6; }
22015 if test "${gcc_cv_as_subsection_m1+set}" = set; then :
22016 $as_echo_n "(cached) " >&6
22017 else
22018 gcc_cv_as_subsection_m1=no
22019 if test $in_tree_gas = yes; then
22020 if test $in_tree_gas_is_elf = yes \
22021 && test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 9 \) \* 1000 + 0`
22022 then gcc_cv_as_subsection_m1=yes
22024 elif test x$gcc_cv_as != x; then
22025 $as_echo 'conftest_label1: .word 0
22026 .subsection -1
22027 conftest_label2: .word 0
22028 .previous' > conftest.s
22029 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
22030 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
22031 (eval $ac_try) 2>&5
22032 ac_status=$?
22033 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
22034 test $ac_status = 0; }; }
22035 then
22036 if test x$gcc_cv_nm != x; then
22037 $gcc_cv_nm conftest.o | grep conftest_label1 > conftest.nm1
22038 $gcc_cv_nm conftest.o | grep conftest_label2 | sed -e 's/label2/label1/' > conftest.nm2
22039 if cmp conftest.nm1 conftest.nm2 > /dev/null 2>&1
22040 then :
22041 else gcc_cv_as_subsection_m1=yes
22043 rm -f conftest.nm1 conftest.nm2
22045 else
22046 echo "configure: failed program was" >&5
22047 cat conftest.s >&5
22049 rm -f conftest.o conftest.s
22052 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_subsection_m1" >&5
22053 $as_echo "$gcc_cv_as_subsection_m1" >&6; }
22054 if test $gcc_cv_as_subsection_m1 = yes; then
22056 $as_echo "#define HAVE_GAS_SUBSECTION_ORDERING 1" >>confdefs.h
22060 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .weak" >&5
22061 $as_echo_n "checking assembler for .weak... " >&6; }
22062 if test "${gcc_cv_as_weak+set}" = set; then :
22063 $as_echo_n "(cached) " >&6
22064 else
22065 gcc_cv_as_weak=no
22066 if test $in_tree_gas = yes; then
22067 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 2 \) \* 1000 + 0`
22068 then gcc_cv_as_weak=yes
22070 elif test x$gcc_cv_as != x; then
22071 $as_echo ' .weak foobar' > conftest.s
22072 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
22073 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
22074 (eval $ac_try) 2>&5
22075 ac_status=$?
22076 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
22077 test $ac_status = 0; }; }
22078 then
22079 gcc_cv_as_weak=yes
22080 else
22081 echo "configure: failed program was" >&5
22082 cat conftest.s >&5
22084 rm -f conftest.o conftest.s
22087 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_weak" >&5
22088 $as_echo "$gcc_cv_as_weak" >&6; }
22089 if test $gcc_cv_as_weak = yes; then
22091 $as_echo "#define HAVE_GAS_WEAK 1" >>confdefs.h
22095 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .weakref" >&5
22096 $as_echo_n "checking assembler for .weakref... " >&6; }
22097 if test "${gcc_cv_as_weakref+set}" = set; then :
22098 $as_echo_n "(cached) " >&6
22099 else
22100 gcc_cv_as_weakref=no
22101 if test $in_tree_gas = yes; then
22102 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 17 \) \* 1000 + 0`
22103 then gcc_cv_as_weakref=yes
22105 elif test x$gcc_cv_as != x; then
22106 $as_echo ' .weakref foobar, barfnot' > conftest.s
22107 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
22108 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
22109 (eval $ac_try) 2>&5
22110 ac_status=$?
22111 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
22112 test $ac_status = 0; }; }
22113 then
22114 gcc_cv_as_weakref=yes
22115 else
22116 echo "configure: failed program was" >&5
22117 cat conftest.s >&5
22119 rm -f conftest.o conftest.s
22122 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_weakref" >&5
22123 $as_echo "$gcc_cv_as_weakref" >&6; }
22124 if test $gcc_cv_as_weakref = yes; then
22126 $as_echo "#define HAVE_GAS_WEAKREF 1" >>confdefs.h
22130 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .nsubspa comdat" >&5
22131 $as_echo_n "checking assembler for .nsubspa comdat... " >&6; }
22132 if test "${gcc_cv_as_nsubspa_comdat+set}" = set; then :
22133 $as_echo_n "(cached) " >&6
22134 else
22135 gcc_cv_as_nsubspa_comdat=no
22136 if test $in_tree_gas = yes; then
22137 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 15 \) \* 1000 + 91`
22138 then gcc_cv_as_nsubspa_comdat=yes
22140 elif test x$gcc_cv_as != x; then
22141 $as_echo ' .SPACE $TEXT$
22142 .NSUBSPA $CODE$,COMDAT' > conftest.s
22143 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
22144 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
22145 (eval $ac_try) 2>&5
22146 ac_status=$?
22147 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
22148 test $ac_status = 0; }; }
22149 then
22150 gcc_cv_as_nsubspa_comdat=yes
22151 else
22152 echo "configure: failed program was" >&5
22153 cat conftest.s >&5
22155 rm -f conftest.o conftest.s
22158 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_nsubspa_comdat" >&5
22159 $as_echo "$gcc_cv_as_nsubspa_comdat" >&6; }
22160 if test $gcc_cv_as_nsubspa_comdat = yes; then
22162 $as_echo "#define HAVE_GAS_NSUBSPA_COMDAT 1" >>confdefs.h
22166 # .hidden needs to be supported in both the assembler and the linker,
22167 # because GNU LD versions before 2.12.1 have buggy support for STV_HIDDEN.
22168 # This is irritatingly difficult to feature test for; we have to check the
22169 # date string after the version number. If we've got an in-tree
22170 # ld, we don't know its patchlevel version, so we set the baseline at 2.13
22171 # to be safe.
22172 # The gcc_GAS_CHECK_FEATURE call just sets a cache variable.
22173 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .hidden" >&5
22174 $as_echo_n "checking assembler for .hidden... " >&6; }
22175 if test "${gcc_cv_as_hidden+set}" = set; then :
22176 $as_echo_n "(cached) " >&6
22177 else
22178 gcc_cv_as_hidden=no
22179 if test $in_tree_gas = yes; then
22180 if test $in_tree_gas_is_elf = yes \
22181 && test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 13 \) \* 1000 + 0`
22182 then gcc_cv_as_hidden=yes
22184 elif test x$gcc_cv_as != x; then
22185 $as_echo ' .hidden foobar
22186 foobar:' > conftest.s
22187 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
22188 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
22189 (eval $ac_try) 2>&5
22190 ac_status=$?
22191 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
22192 test $ac_status = 0; }; }
22193 then
22194 gcc_cv_as_hidden=yes
22195 else
22196 echo "configure: failed program was" >&5
22197 cat conftest.s >&5
22199 rm -f conftest.o conftest.s
22202 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_hidden" >&5
22203 $as_echo "$gcc_cv_as_hidden" >&6; }
22205 case "${target}" in
22206 *-*-darwin*)
22207 # Darwin as has some visibility support, though with a different syntax.
22208 gcc_cv_as_hidden=yes
22210 esac
22212 # gnu_indirect_function type is an extension proposed at
22213 # http://groups.google/com/group/generic-abi/files. It allows dynamic runtime
22214 # selection of function implementation
22215 # Check whether --enable-gnu-indirect-function was given.
22216 if test "${enable_gnu_indirect_function+set}" = set; then :
22217 enableval=$enable_gnu_indirect_function; case $enable_gnu_indirect_function in
22218 yes | no) ;;
22219 *) as_fn_error "'$enable_gnu_indirect_function' is an invalid value for --enable-gnu-indirect-function.
22220 Valid choices are 'yes' and 'no'." "$LINENO" 5 ;;
22221 esac
22222 else
22223 enable_gnu_indirect_function="$default_gnu_indirect_function"
22227 gif=`if test x$enable_gnu_indirect_function = xyes; then echo 1; else echo 0; fi`
22229 cat >>confdefs.h <<_ACEOF
22230 #define HAVE_GNU_INDIRECT_FUNCTION $gif
22231 _ACEOF
22235 if test $in_tree_ld != yes ; then
22236 ld_ver=`$gcc_cv_ld --version 2>/dev/null | sed 1q`
22237 if echo "$ld_ver" | grep GNU > /dev/null; then
22238 if test x"$ld_is_gold" = xyes; then
22239 # GNU gold --version looks like this:
22241 # GNU gold (GNU Binutils 2.21.51.20110225) 1.11
22243 # We extract the binutils version which is more familiar and specific
22244 # than the gold version.
22245 ld_vers=`echo $ld_ver | sed -n \
22246 -e 's,^[^)]*[ ]\([0-9][0-9]*\.[0-9][0-9]*[^)]*\)) .*$,\1,p'`
22247 else
22248 # GNU ld --version looks like this:
22250 # GNU ld (GNU Binutils) 2.21.51.20110225
22251 ld_vers=`echo $ld_ver | sed -n \
22252 -e 's,^.*[ ]\([0-9][0-9]*\.[0-9][0-9]*.*\)$,\1,p'`
22254 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'`
22255 ld_vers_major=`expr "$ld_vers" : '\([0-9]*\)'`
22256 ld_vers_minor=`expr "$ld_vers" : '[0-9]*\.\([0-9]*\)'`
22257 ld_vers_patch=`expr "$ld_vers" : '[0-9]*\.[0-9]*\.\([0-9]*\)'`
22258 else
22259 case "${target}" in
22260 *-*-solaris2*)
22261 # See acinclude.m4 (gcc_SUN_LD_VERSION) for the version number
22262 # format.
22264 # Don't reuse gcc_gv_sun_ld_vers_* in case a linker other than
22265 # /usr/ccs/bin/ld has been configured.
22266 ld_ver=`$gcc_cv_ld -V 2>&1`
22267 if echo "$ld_ver" | grep 'Solaris Link Editors' > /dev/null; then
22268 ld_vers=`echo $ld_ver | sed -n \
22269 -e 's,^.*: 5\.[0-9][0-9]*-\([0-9]\.[0-9][0-9]*\).*$,\1,p'`
22270 ld_vers_major=`expr "$ld_vers" : '\([0-9]*\)'`
22271 ld_vers_minor=`expr "$ld_vers" : '[0-9]*\.\([0-9]*\)'`
22274 esac
22278 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker for .hidden support" >&5
22279 $as_echo_n "checking linker for .hidden support... " >&6; }
22280 if test "${gcc_cv_ld_hidden+set}" = set; then :
22281 $as_echo_n "(cached) " >&6
22282 else
22283 if test $in_tree_ld = yes ; then
22284 gcc_cv_ld_hidden=no
22285 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 \
22286 && test $in_tree_ld_is_elf = yes; then
22287 gcc_cv_ld_hidden=yes
22289 else
22290 gcc_cv_ld_hidden=yes
22291 if test x"$ld_is_gold" = xyes; then
22293 elif echo "$ld_ver" | grep GNU > /dev/null; then
22294 case "${target}" in
22295 mmix-knuth-mmixware)
22296 # The linker emits by default mmo, not ELF, so "no" is appropriate.
22297 gcc_cv_ld_hidden=no
22299 esac
22300 if test 0"$ld_date" -lt 20020404; then
22301 if test -n "$ld_date"; then
22302 # If there was date string, but was earlier than 2002-04-04, fail
22303 gcc_cv_ld_hidden=no
22304 elif test -z "$ld_vers"; then
22305 # If there was no date string nor ld version number, something is wrong
22306 gcc_cv_ld_hidden=no
22307 else
22308 test -z "$ld_vers_patch" && ld_vers_patch=0
22309 if test "$ld_vers_major" -lt 2; then
22310 gcc_cv_ld_hidden=no
22311 elif test "$ld_vers_major" -eq 2 -a "$ld_vers_minor" -lt 12; then
22312 gcc_cv_ld_hidden="no"
22313 elif test "$ld_vers_major" -eq 2 -a "$ld_vers_minor" -eq 12 -a "$ld_vers_patch" -eq 0; then
22314 gcc_cv_ld_hidden=no
22318 else
22319 case "${target}" in
22320 *-*-darwin*)
22321 # Darwin ld has some visibility support.
22322 gcc_cv_ld_hidden=yes
22324 hppa64*-*-hpux* | ia64*-*-hpux*)
22325 gcc_cv_ld_hidden=yes
22327 *-*-solaris2.1[0-9]*)
22328 # Support for .hidden in Sun ld appeared in Solaris 9 FCS, but
22329 # .symbolic was only added in Solaris 9 12/02.
22330 gcc_cv_ld_hidden=yes
22333 gcc_cv_ld_hidden=no
22335 esac
22339 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_hidden" >&5
22340 $as_echo "$gcc_cv_ld_hidden" >&6; }
22341 libgcc_visibility=no
22344 if test $gcc_cv_as_hidden = yes && test $gcc_cv_ld_hidden = yes; then
22345 libgcc_visibility=yes
22347 $as_echo "#define HAVE_GAS_HIDDEN 1" >>confdefs.h
22351 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker read-only and read-write section mixing" >&5
22352 $as_echo_n "checking linker read-only and read-write section mixing... " >&6; }
22353 gcc_cv_ld_ro_rw_mix=unknown
22354 if test $in_tree_ld = yes ; then
22355 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 \
22356 && test $in_tree_ld_is_elf = yes; then
22357 gcc_cv_ld_ro_rw_mix=read-write
22359 elif test x$gcc_cv_as != x -a x$gcc_cv_ld != x -a x$gcc_cv_objdump != x ; then
22360 echo '.section myfoosect, "a"' > conftest1.s
22361 echo '.section myfoosect, "aw"' > conftest2.s
22362 echo '.byte 1' >> conftest2.s
22363 echo '.section myfoosect, "a"' > conftest3.s
22364 echo '.byte 0' >> conftest3.s
22365 if $gcc_cv_as -o conftest1.o conftest1.s > /dev/null 2>&1 \
22366 && $gcc_cv_as -o conftest2.o conftest2.s > /dev/null 2>&1 \
22367 && $gcc_cv_as -o conftest3.o conftest3.s > /dev/null 2>&1 \
22368 && $gcc_cv_ld -shared -o conftest1.so conftest1.o \
22369 conftest2.o conftest3.o > /dev/null 2>&1; then
22370 gcc_cv_ld_ro_rw_mix=`$gcc_cv_objdump -h conftest1.so \
22371 | sed -e '/myfoosect/!d' -e N`
22372 if echo "$gcc_cv_ld_ro_rw_mix" | grep CONTENTS > /dev/null; then
22373 if echo "$gcc_cv_ld_ro_rw_mix" | grep READONLY > /dev/null; then
22374 gcc_cv_ld_ro_rw_mix=read-only
22375 else
22376 gcc_cv_ld_ro_rw_mix=read-write
22380 rm -f conftest.* conftest[123].*
22382 if test x$gcc_cv_ld_ro_rw_mix = xread-write; then
22384 $as_echo "#define HAVE_LD_RO_RW_SECTION_MIXING 1" >>confdefs.h
22387 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_ro_rw_mix" >&5
22388 $as_echo "$gcc_cv_ld_ro_rw_mix" >&6; }
22390 if test "x${build}" = "x${target}" && test "x${build}" = "x${host}"; then
22391 case "${target}" in
22392 *-*-solaris2*)
22394 # Solaris 2 ld -V output looks like this for a regular version:
22396 # ld: Software Generation Utilities - Solaris Link Editors: 5.11-1.1699
22398 # but test versions add stuff at the end:
22400 # ld: Software Generation Utilities - Solaris Link Editors: 5.11-1.1701:onnv-ab196087-6931056-03/25/10
22402 gcc_cv_sun_ld_ver=`/usr/ccs/bin/ld -V 2>&1`
22403 if echo "$gcc_cv_sun_ld_ver" | grep 'Solaris Link Editors' > /dev/null; then
22404 gcc_cv_sun_ld_vers=`echo $gcc_cv_sun_ld_ver | sed -n \
22405 -e 's,^.*: 5\.[0-9][0-9]*-\([0-9]\.[0-9][0-9]*\).*$,\1,p'`
22406 gcc_cv_sun_ld_vers_major=`expr "$gcc_cv_sun_ld_vers" : '\([0-9]*\)'`
22407 gcc_cv_sun_ld_vers_minor=`expr "$gcc_cv_sun_ld_vers" : '[0-9]*\.\([0-9]*\)'`
22410 esac
22413 # Check whether --enable-initfini-array was given.
22414 if test "${enable_initfini_array+set}" = set; then :
22415 enableval=$enable_initfini_array;
22416 else
22418 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for .preinit_array/.init_array/.fini_array support" >&5
22419 $as_echo_n "checking for .preinit_array/.init_array/.fini_array support... " >&6; }
22420 if test "${gcc_cv_initfini_array+set}" = set; then :
22421 $as_echo_n "(cached) " >&6
22422 else
22423 if test "x${build}" = "x${target}" && test "x${build}" = "x${host}"; then
22424 case "${target}" in
22425 ia64-*)
22426 if test "$cross_compiling" = yes; then :
22427 gcc_cv_initfini_array=no
22428 else
22429 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22430 /* end confdefs.h. */
22432 #ifndef __ELF__
22433 #error Not an ELF OS
22434 #endif
22435 /* We turn on .preinit_array/.init_array/.fini_array support for ia64
22436 if it can be used. */
22437 static int x = -1;
22438 int main (void) { return x; }
22439 int foo (void) { x = 0; }
22440 int (*fp) (void) __attribute__ ((section (".init_array"))) = foo;
22442 _ACEOF
22443 if ac_fn_c_try_run "$LINENO"; then :
22444 gcc_cv_initfini_array=yes
22445 else
22446 gcc_cv_initfini_array=no
22448 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
22449 conftest.$ac_objext conftest.beam conftest.$ac_ext
22453 gcc_cv_initfini_array=no
22454 if test $in_tree_ld = yes ; then
22455 if test "$gcc_cv_gld_major_version" -eq 2 \
22456 -a "$gcc_cv_gld_minor_version" -ge 22 \
22457 -o "$gcc_cv_gld_major_version" -gt 2 \
22458 && test $in_tree_ld_is_elf = yes; then
22459 gcc_cv_initfini_array=yes
22461 elif test x$gcc_cv_as != x -a x$gcc_cv_ld != x -a x$gcc_cv_objdump != x ; then
22462 cat > conftest.s <<\EOF
22463 .section .dtors,"a",%progbits
22464 .balign 4
22465 .byte 'A', 'A', 'A', 'A'
22466 .section .ctors,"a",%progbits
22467 .balign 4
22468 .byte 'B', 'B', 'B', 'B'
22469 .section .fini_array.65530,"a",%progbits
22470 .balign 4
22471 .byte 'C', 'C', 'C', 'C'
22472 .section .init_array.65530,"a",%progbits
22473 .balign 4
22474 .byte 'D', 'D', 'D', 'D'
22475 .section .dtors.64528,"a",%progbits
22476 .balign 4
22477 .byte 'E', 'E', 'E', 'E'
22478 .section .ctors.64528,"a",%progbits
22479 .balign 4
22480 .byte 'F', 'F', 'F', 'F'
22481 .section .fini_array.01005,"a",%progbits
22482 .balign 4
22483 .byte 'G', 'G', 'G', 'G'
22484 .section .init_array.01005,"a",%progbits
22485 .balign 4
22486 .byte 'H', 'H', 'H', 'H'
22487 .text
22488 .globl _start
22489 _start:
22491 if $gcc_cv_as -o conftest.o conftest.s > /dev/null 2>&1 \
22492 && $gcc_cv_ld -o conftest conftest.o > /dev/null 2>&1 \
22493 && $gcc_cv_objdump -s -j .init_array conftest \
22494 | grep HHHHFFFFDDDDBBBB > /dev/null 2>&1 \
22495 && $gcc_cv_objdump -s -j .fini_array conftest \
22496 | grep GGGGEEEECCCCAAAA > /dev/null 2>&1; then
22497 gcc_cv_initfini_array=yes
22499 rm -f conftest conftest.*
22501 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22502 /* end confdefs.h. */
22504 #ifndef __ELF__
22505 # error Not an ELF OS
22506 #endif
22507 #include <stdlib.h>
22508 #if defined __GLIBC_PREREQ
22509 # if __GLIBC_PREREQ (2, 4)
22510 # else
22511 # error GLIBC 2.4 required
22512 # endif
22513 #else
22514 # if defined __sun__ && defined __svr4__
22515 /* Solaris ld.so.1 supports .init_array/.fini_array since Solaris 8. */
22516 # else
22517 # error The C library not known to support .init_array/.fini_array
22518 # endif
22519 #endif
22521 _ACEOF
22522 if ac_fn_c_try_cpp "$LINENO"; then :
22524 else
22525 gcc_cv_initfini_array=no
22527 rm -f conftest.err conftest.$ac_ext;;
22528 esac
22529 else
22530 { $as_echo "$as_me:${as_lineno-$LINENO}: checking cross compile... guessing" >&5
22531 $as_echo_n "checking cross compile... guessing... " >&6; }
22532 gcc_cv_initfini_array=no
22535 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_initfini_array" >&5
22536 $as_echo "$gcc_cv_initfini_array" >&6; }
22537 enable_initfini_array=$gcc_cv_initfini_array
22541 if test $enable_initfini_array = yes; then
22543 $as_echo "#define HAVE_INITFINI_ARRAY_SUPPORT 1" >>confdefs.h
22547 # Check if we have .[us]leb128, and support symbol arithmetic with it.
22548 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .sleb128 and .uleb128" >&5
22549 $as_echo_n "checking assembler for .sleb128 and .uleb128... " >&6; }
22550 if test "${gcc_cv_as_leb128+set}" = set; then :
22551 $as_echo_n "(cached) " >&6
22552 else
22553 gcc_cv_as_leb128=no
22554 if test $in_tree_gas = yes; then
22555 if test $in_tree_gas_is_elf = yes \
22556 && test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 11 \) \* 1000 + 0`
22557 then gcc_cv_as_leb128=yes
22559 elif test x$gcc_cv_as != x; then
22560 $as_echo ' .data
22561 .uleb128 L2 - L1
22563 .uleb128 1280
22564 .sleb128 -1010
22565 L2:' > conftest.s
22566 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
22567 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
22568 (eval $ac_try) 2>&5
22569 ac_status=$?
22570 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
22571 test $ac_status = 0; }; }
22572 then
22573 # GAS versions before 2.11 do not support uleb128,
22574 # despite appearing to.
22575 # ??? There exists an elf-specific test that will crash
22576 # the assembler. Perhaps it's better to figure out whether
22577 # arbitrary sections are supported and try the test.
22578 as_ver=`$gcc_cv_as --version 2>/dev/null | sed 1q`
22579 if echo "$as_ver" | grep GNU > /dev/null; then
22580 as_vers=`echo $as_ver | sed -n \
22581 -e 's,^.*[ ]\([0-9][0-9]*\.[0-9][0-9]*.*\)$,\1,p'`
22582 as_major=`expr "$as_vers" : '\([0-9]*\)'`
22583 as_minor=`expr "$as_vers" : '[0-9]*\.\([0-9]*\)'`
22584 if test $as_major -eq 2 && test $as_minor -lt 11
22585 then :
22586 else gcc_cv_as_leb128=yes
22589 else
22590 echo "configure: failed program was" >&5
22591 cat conftest.s >&5
22593 rm -f conftest.o conftest.s
22596 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_leb128" >&5
22597 $as_echo "$gcc_cv_as_leb128" >&6; }
22598 if test $gcc_cv_as_leb128 = yes; then
22600 $as_echo "#define HAVE_AS_LEB128 1" >>confdefs.h
22604 # Check if we have assembler support for unwind directives.
22605 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for cfi directives" >&5
22606 $as_echo_n "checking assembler for cfi directives... " >&6; }
22607 if test "${gcc_cv_as_cfi_directive+set}" = set; then :
22608 $as_echo_n "(cached) " >&6
22609 else
22610 gcc_cv_as_cfi_directive=no
22611 if test x$gcc_cv_as != x; then
22612 $as_echo ' .text
22613 .cfi_startproc
22614 .cfi_offset 0, 0
22615 .cfi_same_value 1
22616 .cfi_def_cfa 1, 2
22617 .cfi_escape 1, 2, 3, 4, 5
22618 .cfi_endproc' > conftest.s
22619 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
22620 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
22621 (eval $ac_try) 2>&5
22622 ac_status=$?
22623 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
22624 test $ac_status = 0; }; }
22625 then
22626 case "$target" in
22627 *-*-solaris*)
22628 # If the linker used on Solaris (like Sun ld) isn't capable of merging
22629 # read-only and read-write sections, we need to make sure that the
22630 # assembler used emits read-write .eh_frame sections.
22631 if test "x$gcc_cv_ld_ro_rw_mix" != xread-write; then
22632 if test "x$gcc_cv_objdump" != x; then
22633 if $gcc_cv_objdump -h conftest.o 2>/dev/null | \
22634 sed -e /.eh_frame/!d -e N | grep READONLY > /dev/null; then
22635 gcc_cv_as_cfi_directive=no
22636 else
22637 case "$target" in
22638 i?86-*-solaris2.1[0-9]* | x86_64-*-solaris2.1[0-9]*)
22639 # On Solaris/x86, make sure that GCC and assembler agree on using
22640 # read-only .eh_frame sections for 64-bit.
22641 if test x$gas = xyes; then
22642 as_ix86_64_opt="--64"
22643 else
22644 as_ix86_64_opt="-xarch=amd64"
22646 if $gcc_cv_as $as_ix86_64_opt -o conftest.o conftest.s > /dev/null 2>&1 && \
22647 $gcc_cv_objdump -h conftest.o 2>/dev/null | \
22648 sed -e /.eh_frame/!d -e N | \
22649 grep READONLY > /dev/null; then
22650 gcc_cv_as_cfi_directive=yes
22651 else
22652 gcc_cv_as_cfi_directive=no
22656 gcc_cv_as_cfi_directive=yes
22658 esac
22660 else
22661 # no objdump, err on the side of caution
22662 gcc_cv_as_cfi_directive=no
22664 else
22665 gcc_cv_as_cfi_directive=yes
22668 *-*-*)
22669 gcc_cv_as_cfi_directive=yes
22671 esac
22672 else
22673 echo "configure: failed program was" >&5
22674 cat conftest.s >&5
22676 rm -f conftest.o conftest.s
22679 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_cfi_directive" >&5
22680 $as_echo "$gcc_cv_as_cfi_directive" >&6; }
22682 if test $gcc_cv_as_cfi_directive = yes && test x$gcc_cv_objdump != x; then
22683 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for working cfi advance" >&5
22684 $as_echo_n "checking assembler for working cfi advance... " >&6; }
22685 if test "${gcc_cv_as_cfi_advance_working+set}" = set; then :
22686 $as_echo_n "(cached) " >&6
22687 else
22688 gcc_cv_as_cfi_advance_working=no
22689 if test x$gcc_cv_as != x; then
22690 $as_echo ' .text
22691 .cfi_startproc
22692 .cfi_adjust_cfa_offset 64
22693 .skip 75040, 0
22694 .cfi_adjust_cfa_offset 128
22695 .cfi_endproc' > conftest.s
22696 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
22697 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
22698 (eval $ac_try) 2>&5
22699 ac_status=$?
22700 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
22701 test $ac_status = 0; }; }
22702 then
22704 if $gcc_cv_objdump -Wf conftest.o 2>/dev/null \
22705 | grep 'DW_CFA_advance_loc[24]:[ ][ ]*75040[ ]' >/dev/null; then
22706 gcc_cv_as_cfi_advance_working=yes
22709 else
22710 echo "configure: failed program was" >&5
22711 cat conftest.s >&5
22713 rm -f conftest.o conftest.s
22716 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_cfi_advance_working" >&5
22717 $as_echo "$gcc_cv_as_cfi_advance_working" >&6; }
22719 else
22720 # no objdump, err on the side of caution
22721 gcc_cv_as_cfi_advance_working=no
22725 cat >>confdefs.h <<_ACEOF
22726 #define HAVE_GAS_CFI_DIRECTIVE `if test $gcc_cv_as_cfi_directive = yes \
22727 && test $gcc_cv_as_cfi_advance_working = yes; then echo 1; else echo 0; fi`
22728 _ACEOF
22732 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for cfi personality directive" >&5
22733 $as_echo_n "checking assembler for cfi personality directive... " >&6; }
22734 if test "${gcc_cv_as_cfi_personality_directive+set}" = set; then :
22735 $as_echo_n "(cached) " >&6
22736 else
22737 gcc_cv_as_cfi_personality_directive=no
22738 if test x$gcc_cv_as != x; then
22739 $as_echo ' .text
22740 .cfi_startproc
22741 .cfi_personality 0, symbol
22742 .cfi_endproc' > conftest.s
22743 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
22744 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
22745 (eval $ac_try) 2>&5
22746 ac_status=$?
22747 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
22748 test $ac_status = 0; }; }
22749 then
22750 gcc_cv_as_cfi_personality_directive=yes
22751 else
22752 echo "configure: failed program was" >&5
22753 cat conftest.s >&5
22755 rm -f conftest.o conftest.s
22758 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_cfi_personality_directive" >&5
22759 $as_echo "$gcc_cv_as_cfi_personality_directive" >&6; }
22762 cat >>confdefs.h <<_ACEOF
22763 #define HAVE_GAS_CFI_PERSONALITY_DIRECTIVE `if test $gcc_cv_as_cfi_personality_directive = yes;
22764 then echo 1; else echo 0; fi`
22765 _ACEOF
22768 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for cfi sections directive" >&5
22769 $as_echo_n "checking assembler for cfi sections directive... " >&6; }
22770 if test "${gcc_cv_as_cfi_sections_directive+set}" = set; then :
22771 $as_echo_n "(cached) " >&6
22772 else
22773 gcc_cv_as_cfi_sections_directive=no
22774 if test x$gcc_cv_as != x; then
22775 $as_echo ' .text
22776 .cfi_sections .debug_frame, .eh_frame
22777 .cfi_startproc
22778 .cfi_endproc' > conftest.s
22779 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
22780 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
22781 (eval $ac_try) 2>&5
22782 ac_status=$?
22783 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
22784 test $ac_status = 0; }; }
22785 then
22786 case $target_os in
22787 win32 | pe | cygwin* | mingw32* | uwin*)
22788 # Need to check that we generated the correct relocation for the
22789 # .debug_frame section. This was fixed for binutils 2.21.
22790 gcc_cv_as_cfi_sections_directive=no
22791 if test "x$gcc_cv_objdump" != x; then
22792 if $gcc_cv_objdump -j .debug_frame -r conftest.o 2>/dev/null | \
22793 grep secrel > /dev/null; then
22794 gcc_cv_as_cfi_sections_directive=yes
22799 gcc_cv_as_cfi_sections_directive=yes
22801 esac
22802 else
22803 echo "configure: failed program was" >&5
22804 cat conftest.s >&5
22806 rm -f conftest.o conftest.s
22809 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_cfi_sections_directive" >&5
22810 $as_echo "$gcc_cv_as_cfi_sections_directive" >&6; }
22814 cat >>confdefs.h <<_ACEOF
22815 #define HAVE_GAS_CFI_SECTIONS_DIRECTIVE `if test $gcc_cv_as_cfi_sections_directive = yes;
22816 then echo 1; else echo 0; fi`
22817 _ACEOF
22820 # GAS versions up to and including 2.11.0 may mis-optimize
22821 # .eh_frame data.
22822 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for eh_frame optimization" >&5
22823 $as_echo_n "checking assembler for eh_frame optimization... " >&6; }
22824 if test "${gcc_cv_as_eh_frame+set}" = set; then :
22825 $as_echo_n "(cached) " >&6
22826 else
22827 gcc_cv_as_eh_frame=no
22828 if test $in_tree_gas = yes; then
22829 if test $in_tree_gas_is_elf = yes \
22830 && test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 12 \) \* 1000 + 0`
22831 then gcc_cv_as_eh_frame=yes
22833 elif test x$gcc_cv_as != x; then
22834 $as_echo ' .text
22835 .LFB1:
22836 .4byte 0
22837 .L1:
22838 .4byte 0
22839 .LFE1:
22840 .section .eh_frame,"aw",@progbits
22841 __FRAME_BEGIN__:
22842 .4byte .LECIE1-.LSCIE1
22843 .LSCIE1:
22844 .4byte 0x0
22845 .byte 0x1
22846 .ascii "z\0"
22847 .byte 0x1
22848 .byte 0x78
22849 .byte 0x1a
22850 .byte 0x0
22851 .byte 0x4
22852 .4byte 1
22853 .p2align 1
22854 .LECIE1:
22855 .LSFDE1:
22856 .4byte .LEFDE1-.LASFDE1
22857 .LASFDE1:
22858 .4byte .LASFDE1-__FRAME_BEGIN__
22859 .4byte .LFB1
22860 .4byte .LFE1-.LFB1
22861 .byte 0x4
22862 .4byte .LFE1-.LFB1
22863 .byte 0x4
22864 .4byte .L1-.LFB1
22865 .LEFDE1:' > conftest.s
22866 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
22867 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
22868 (eval $ac_try) 2>&5
22869 ac_status=$?
22870 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
22871 test $ac_status = 0; }; }
22872 then
22873 cat > conftest.lit <<EOF
22874 0000 10000000 00000000 017a0001 781a0004 .........z..x...
22875 0010 01000000 12000000 18000000 00000000 ................
22876 0020 08000000 04080000 0044 .........D
22878 cat > conftest.big <<EOF
22879 0000 00000010 00000000 017a0001 781a0004 .........z..x...
22880 0010 00000001 00000012 00000018 00000000 ................
22881 0020 00000008 04000000 0844 .........D
22883 # If the assembler didn't choke, and we can objdump,
22884 # and we got the correct data, then succeed.
22885 # The text in the here-document typically retains its unix-style line
22886 # endings, while the output of objdump will use host line endings.
22887 # Therefore, use diff -b for the comparisons.
22888 if test x$gcc_cv_objdump != x \
22889 && $gcc_cv_objdump -s -j .eh_frame conftest.o 2>/dev/null \
22890 | tail -3 > conftest.got \
22891 && { diff -b conftest.lit conftest.got > /dev/null 2>&1 \
22892 || diff -b conftest.big conftest.got > /dev/null 2>&1; }
22893 then
22894 gcc_cv_as_eh_frame=yes
22895 elif { ac_try='$gcc_cv_as -o conftest.o --traditional-format /dev/null'
22896 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
22897 (eval $ac_try) 2>&5
22898 ac_status=$?
22899 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
22900 test $ac_status = 0; }; }; then
22901 gcc_cv_as_eh_frame=buggy
22902 else
22903 # Uh oh, what do we do now?
22904 gcc_cv_as_eh_frame=no
22906 else
22907 echo "configure: failed program was" >&5
22908 cat conftest.s >&5
22910 rm -f conftest.o conftest.s
22913 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_eh_frame" >&5
22914 $as_echo "$gcc_cv_as_eh_frame" >&6; }
22917 if test $gcc_cv_as_eh_frame = buggy; then
22919 $as_echo "#define USE_AS_TRADITIONAL_FORMAT 1" >>confdefs.h
22923 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for section merging support" >&5
22924 $as_echo_n "checking assembler for section merging support... " >&6; }
22925 if test "${gcc_cv_as_shf_merge+set}" = set; then :
22926 $as_echo_n "(cached) " >&6
22927 else
22928 gcc_cv_as_shf_merge=no
22929 if test $in_tree_gas = yes; then
22930 if test $in_tree_gas_is_elf = yes \
22931 && test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 12 \) \* 1000 + 0`
22932 then gcc_cv_as_shf_merge=yes
22934 elif test x$gcc_cv_as != x; then
22935 $as_echo '.section .rodata.str, "aMS", @progbits, 1' > conftest.s
22936 if { ac_try='$gcc_cv_as $gcc_cv_as_flags --fatal-warnings -o conftest.o conftest.s >&5'
22937 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
22938 (eval $ac_try) 2>&5
22939 ac_status=$?
22940 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
22941 test $ac_status = 0; }; }
22942 then
22943 gcc_cv_as_shf_merge=yes
22944 else
22945 echo "configure: failed program was" >&5
22946 cat conftest.s >&5
22948 rm -f conftest.o conftest.s
22951 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_shf_merge" >&5
22952 $as_echo "$gcc_cv_as_shf_merge" >&6; }
22954 if test $gcc_cv_as_shf_merge = no; then
22955 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for section merging support" >&5
22956 $as_echo_n "checking assembler for section merging support... " >&6; }
22957 if test "${gcc_cv_as_shf_merge+set}" = set; then :
22958 $as_echo_n "(cached) " >&6
22959 else
22960 gcc_cv_as_shf_merge=no
22961 if test $in_tree_gas = yes; then
22962 if test $in_tree_gas_is_elf = yes \
22963 && test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 12 \) \* 1000 + 0`
22964 then gcc_cv_as_shf_merge=yes
22966 elif test x$gcc_cv_as != x; then
22967 $as_echo '.section .rodata.str, "aMS", %progbits, 1' > conftest.s
22968 if { ac_try='$gcc_cv_as $gcc_cv_as_flags --fatal-warnings -o conftest.o conftest.s >&5'
22969 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
22970 (eval $ac_try) 2>&5
22971 ac_status=$?
22972 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
22973 test $ac_status = 0; }; }
22974 then
22975 gcc_cv_as_shf_merge=yes
22976 else
22977 echo "configure: failed program was" >&5
22978 cat conftest.s >&5
22980 rm -f conftest.o conftest.s
22983 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_shf_merge" >&5
22984 $as_echo "$gcc_cv_as_shf_merge" >&6; }
22988 cat >>confdefs.h <<_ACEOF
22989 #define HAVE_GAS_SHF_MERGE `if test $gcc_cv_as_shf_merge = yes; then echo 1; else echo 0; fi`
22990 _ACEOF
22993 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for COMDAT group support (GNU as)" >&5
22994 $as_echo_n "checking assembler for COMDAT group support (GNU as)... " >&6; }
22995 if test "${gcc_cv_as_comdat_group+set}" = set; then :
22996 $as_echo_n "(cached) " >&6
22997 else
22998 gcc_cv_as_comdat_group=no
22999 if test $in_tree_gas = yes; then
23000 if test $in_tree_gas_is_elf = yes \
23001 && test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 16 \) \* 1000 + 0`
23002 then gcc_cv_as_comdat_group=yes
23004 elif test x$gcc_cv_as != x; then
23005 $as_echo '.section .text,"axG",@progbits,.foo,comdat' > conftest.s
23006 if { ac_try='$gcc_cv_as $gcc_cv_as_flags --fatal-warnings -o conftest.o conftest.s >&5'
23007 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
23008 (eval $ac_try) 2>&5
23009 ac_status=$?
23010 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
23011 test $ac_status = 0; }; }
23012 then
23013 gcc_cv_as_comdat_group=yes
23014 else
23015 echo "configure: failed program was" >&5
23016 cat conftest.s >&5
23018 rm -f conftest.o conftest.s
23021 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_comdat_group" >&5
23022 $as_echo "$gcc_cv_as_comdat_group" >&6; }
23024 if test $gcc_cv_as_comdat_group = yes; then
23025 gcc_cv_as_comdat_group_percent=no
23026 gcc_cv_as_comdat_group_group=no
23027 else
23028 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for COMDAT group support (GNU as, %type)" >&5
23029 $as_echo_n "checking assembler for COMDAT group support (GNU as, %type)... " >&6; }
23030 if test "${gcc_cv_as_comdat_group_percent+set}" = set; then :
23031 $as_echo_n "(cached) " >&6
23032 else
23033 gcc_cv_as_comdat_group_percent=no
23034 if test $in_tree_gas = yes; then
23035 if test $in_tree_gas_is_elf = yes \
23036 && test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 16 \) \* 1000 + 0`
23037 then gcc_cv_as_comdat_group_percent=yes
23039 elif test x$gcc_cv_as != x; then
23040 $as_echo '.section .text,"axG",%progbits,.foo,comdat' > conftest.s
23041 if { ac_try='$gcc_cv_as $gcc_cv_as_flags --fatal-warnings -o conftest.o conftest.s >&5'
23042 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
23043 (eval $ac_try) 2>&5
23044 ac_status=$?
23045 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
23046 test $ac_status = 0; }; }
23047 then
23048 gcc_cv_as_comdat_group_percent=yes
23049 else
23050 echo "configure: failed program was" >&5
23051 cat conftest.s >&5
23053 rm -f conftest.o conftest.s
23056 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_comdat_group_percent" >&5
23057 $as_echo "$gcc_cv_as_comdat_group_percent" >&6; }
23059 if test $gcc_cv_as_comdat_group_percent = yes; then
23060 gcc_cv_as_comdat_group_group=no
23061 else
23062 if test -z "${gcc_cv_as_comdat_group_group+set}"; then
23063 gcc_cv_as_comdat_group_group=no
23065 case "${target}" in
23066 # Sun as uses a completely different syntax.
23067 *-*-solaris2*)
23068 case "${target}" in
23069 sparc*-*-solaris2*)
23070 conftest_s='
23071 .group foo,".text%foo",#comdat
23072 .section ".text%foo", #alloc,#execinstr,#progbits
23073 .globl foo
23074 foo:
23077 i?86-*-solaris2* | x86_64-*-solaris2.1[0-9]*)
23078 conftest_s='
23079 .group foo,.text%foo,#comdat
23080 .section .text%foo, "ax", @progbits
23081 .globl foo
23082 foo:
23085 esac
23086 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for COMDAT group support (Sun as, .group)" >&5
23087 $as_echo_n "checking assembler for COMDAT group support (Sun as, .group)... " >&6; }
23088 if test "${gcc_cv_as_comdat_group_group+set}" = set; then :
23089 $as_echo_n "(cached) " >&6
23090 else
23091 gcc_cv_as_comdat_group_group=no
23092 if test x$gcc_cv_as != x; then
23093 $as_echo "$conftest_s" > conftest.s
23094 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
23095 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
23096 (eval $ac_try) 2>&5
23097 ac_status=$?
23098 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
23099 test $ac_status = 0; }; }
23100 then
23101 gcc_cv_as_comdat_group_group=yes
23102 else
23103 echo "configure: failed program was" >&5
23104 cat conftest.s >&5
23106 rm -f conftest.o conftest.s
23109 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_comdat_group_group" >&5
23110 $as_echo "$gcc_cv_as_comdat_group_group" >&6; }
23113 esac
23116 if test x"$ld_is_gold" = xyes; then
23117 comdat_group=yes
23118 elif test $in_tree_ld = yes ; then
23119 comdat_group=no
23120 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 \
23121 && test $in_tree_ld_is_elf = yes; then
23122 comdat_group=yes
23124 elif echo "$ld_ver" | grep GNU > /dev/null; then
23125 comdat_group=yes
23126 if test 0"$ld_date" -lt 20050308; then
23127 if test -n "$ld_date"; then
23128 # If there was date string, but was earlier than 2005-03-08, fail
23129 comdat_group=no
23130 elif test "$ld_vers_major" -lt 2; then
23131 comdat_group=no
23132 elif test "$ld_vers_major" -eq 2 -a "$ld_vers_minor" -lt 16; then
23133 comdat_group=no
23136 else
23137 case "${target}" in
23138 *-*-solaris2.1[1-9]*)
23139 comdat_group=no
23140 # Sun ld has COMDAT group support since Solaris 9, but it doesn't
23141 # interoperate with GNU as until Solaris 11 build 130, i.e. ld
23142 # version 1.688.
23144 # If using Sun as for COMDAT group as emitted by GCC, one needs at
23145 # least ld version 1.2267.
23146 if test "$ld_vers_major" -gt 1; then
23147 comdat_group=yes
23148 elif test "x$gas_flag" = xyes && test "$ld_vers_minor" -ge 1688; then
23149 comdat_group=yes
23150 elif test "$ld_vers_minor" -ge 2267; then
23151 comdat_group=yes
23155 # Assume linkers other than GNU ld don't support COMDAT group.
23156 comdat_group=no
23158 esac
23160 # Allow overriding the automatic COMDAT group tests above.
23161 # Check whether --enable-comdat was given.
23162 if test "${enable_comdat+set}" = set; then :
23163 enableval=$enable_comdat; comdat_group="$enable_comdat"
23166 if test $comdat_group = no; then
23167 gcc_cv_as_comdat_group=no
23168 gcc_cv_as_comdat_group_percent=no
23169 gcc_cv_as_comdat_group_group=no
23172 cat >>confdefs.h <<_ACEOF
23173 #define HAVE_COMDAT_GROUP `if test $gcc_cv_as_comdat_group = yes \
23174 || test $gcc_cv_as_comdat_group_percent = yes \
23175 || test $gcc_cv_as_comdat_group_group = yes; then echo 1; else echo 0; fi`
23176 _ACEOF
23179 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for line table discriminator support" >&5
23180 $as_echo_n "checking assembler for line table discriminator support... " >&6; }
23181 if test "${gcc_cv_as_discriminator+set}" = set; then :
23182 $as_echo_n "(cached) " >&6
23183 else
23184 gcc_cv_as_discriminator=no
23185 if test $in_tree_gas = yes; then
23186 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 19 \) \* 1000 + 51`
23187 then gcc_cv_as_discriminator=yes
23189 elif test x$gcc_cv_as != x; then
23190 $as_echo ' .text
23191 .file 1 "conf.c"
23192 .loc 1 1 0 discriminator 1' > conftest.s
23193 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
23194 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
23195 (eval $ac_try) 2>&5
23196 ac_status=$?
23197 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
23198 test $ac_status = 0; }; }
23199 then
23200 gcc_cv_as_discriminator=yes
23201 else
23202 echo "configure: failed program was" >&5
23203 cat conftest.s >&5
23205 rm -f conftest.o conftest.s
23208 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_discriminator" >&5
23209 $as_echo "$gcc_cv_as_discriminator" >&6; }
23210 if test $gcc_cv_as_discriminator = yes; then
23212 $as_echo "#define HAVE_GAS_DISCRIMINATOR 1" >>confdefs.h
23216 # Thread-local storage - the check is heavily parameterized.
23217 conftest_s=
23218 tls_first_major=
23219 tls_first_minor=
23220 tls_as_opt=
23221 case "$target" in
23222 alpha*-*-*)
23223 conftest_s='
23224 .section ".tdata","awT",@progbits
23225 foo: .long 25
23226 .text
23227 ldq $27,__tls_get_addr($29) !literal!1
23228 lda $16,foo($29) !tlsgd!1
23229 jsr $26,($27),__tls_get_addr !lituse_tlsgd!1
23230 ldq $27,__tls_get_addr($29) !literal!2
23231 lda $16,foo($29) !tlsldm!2
23232 jsr $26,($27),__tls_get_addr !lituse_tlsldm!2
23233 ldq $1,foo($29) !gotdtprel
23234 ldah $2,foo($29) !dtprelhi
23235 lda $3,foo($2) !dtprello
23236 lda $4,foo($29) !dtprel
23237 ldq $1,foo($29) !gottprel
23238 ldah $2,foo($29) !tprelhi
23239 lda $3,foo($2) !tprello
23240 lda $4,foo($29) !tprel'
23241 tls_first_major=2
23242 tls_first_minor=13
23243 tls_as_opt=--fatal-warnings
23245 cris-*-*|crisv32-*-*)
23246 conftest_s='
23247 .section ".tdata","awT",@progbits
23248 x: .long 25
23249 .text
23250 move.d x:IE,$r10
23251 nop'
23252 tls_first_major=2
23253 tls_first_minor=20
23254 tls_as_opt=--fatal-warnings
23256 frv*-*-*)
23257 conftest_s='
23258 .section ".tdata","awT",@progbits
23259 x: .long 25
23260 .text
23261 call #gettlsoff(x)'
23262 tls_first_major=2
23263 tls_first_minor=14
23265 hppa*-*-linux*)
23266 conftest_s='
23267 t1: .reg %r20
23268 t2: .reg %r21
23269 gp: .reg %r19
23270 .section ".tdata","awT",@progbits
23271 foo: .long 25
23272 .text
23273 .align 4
23274 addil LT%foo-$tls_gdidx$,gp
23275 ldo RT%foo-$tls_gdidx$(%r1),%arg0
23276 b __tls_get_addr
23278 addil LT%foo-$tls_ldidx$,gp
23279 b __tls_get_addr
23280 ldo RT%foo-$tls_ldidx$(%r1),%arg0
23281 addil LR%foo-$tls_dtpoff$,%ret0
23282 ldo RR%foo-$tls_dtpoff$(%r1),%t1
23283 mfctl %cr27,%t1
23284 addil LT%foo-$tls_ieoff$,gp
23285 ldw RT%foo-$tls_ieoff$(%r1),%t2
23286 add %t1,%t2,%t3
23287 mfctl %cr27,%t1
23288 addil LR%foo-$tls_leoff$,%t1
23289 ldo RR%foo-$tls_leoff$(%r1),%t2'
23290 tls_first_major=2
23291 tls_first_minor=15
23292 tls_as_opt=--fatal-warnings
23294 arm*-*-*)
23295 conftest_s='
23296 .section ".tdata","awT",%progbits
23297 foo: .long 25
23298 .text
23299 .word foo(gottpoff)
23300 .word foo(tpoff)
23301 .word foo(tlsgd)
23302 .word foo(tlsldm)
23303 .word foo(tlsldo)'
23304 tls_first_major=2
23305 tls_first_minor=17
23307 i[34567]86-*-* | x86_64-*-*)
23308 case "$target" in
23309 i[34567]86-*-solaris2.* | x86_64-*-solaris2.1[0-9]*)
23310 on_solaris=yes
23313 on_solaris=no
23315 esac
23316 if test x$on_solaris = xyes && test x$gas_flag = xno; then
23317 conftest_s='
23318 .section .tdata,"awt",@progbits'
23319 tls_first_major=0
23320 tls_first_minor=0
23321 tls_section_flag=t
23323 $as_echo "#define TLS_SECTION_ASM_FLAG 't'" >>confdefs.h
23325 else
23326 conftest_s='
23327 .section ".tdata","awT",@progbits'
23328 tls_first_major=2
23329 tls_first_minor=14
23330 tls_section_flag=T
23331 tls_as_opt="--fatal-warnings"
23333 case "$target" in
23334 i[34567]86-*-*)
23335 conftest_s="$conftest_s
23336 foo: .long 25
23337 .text
23338 movl %gs:0, %eax
23339 leal foo@tlsgd(,%ebx,1), %eax
23340 leal foo@tlsldm(%ebx), %eax
23341 leal foo@dtpoff(%eax), %edx
23342 movl foo@gottpoff(%ebx), %eax
23343 subl foo@gottpoff(%ebx), %eax
23344 addl foo@gotntpoff(%ebx), %eax
23345 movl foo@indntpoff, %eax
23346 movl \$foo@tpoff, %eax
23347 subl \$foo@tpoff, %eax
23348 leal foo@ntpoff(%ecx), %eax"
23350 x86_64-*-*)
23351 if test x$on_solaris = xyes; then
23352 case $gas_flag in
23353 yes) tls_as_opt="$tls_as_opt --64" ;;
23354 no) tls_as_opt="$tls_as_opt -xarch=amd64" ;;
23355 esac
23357 conftest_s="$conftest_s
23358 foo: .long 25
23359 .text
23360 movq %fs:0, %rax
23361 leaq foo@tlsgd(%rip), %rdi
23362 leaq foo@tlsld(%rip), %rdi
23363 leaq foo@dtpoff(%rax), %rdx
23364 movq foo@gottpoff(%rip), %rax
23365 movq \$foo@tpoff, %rax"
23367 esac
23369 ia64-*-*)
23370 conftest_s='
23371 .section ".tdata","awT",@progbits
23372 foo: data8 25
23373 .text
23374 addl r16 = @ltoff(@dtpmod(foo#)), gp
23375 addl r17 = @ltoff(@dtprel(foo#)), gp
23376 addl r18 = @ltoff(@tprel(foo#)), gp
23377 addl r19 = @dtprel(foo#), gp
23378 adds r21 = @dtprel(foo#), r13
23379 movl r23 = @dtprel(foo#)
23380 addl r20 = @tprel(foo#), gp
23381 adds r22 = @tprel(foo#), r13
23382 movl r24 = @tprel(foo#)'
23383 tls_first_major=2
23384 tls_first_minor=13
23385 tls_as_opt=--fatal-warnings
23387 microblaze*-*-*)
23388 conftest_s='
23389 .section .tdata,"awT",@progbits
23391 .word 2
23392 .text
23393 addik r5,r20,x@TLSGD
23394 addik r5,r20,x@TLSLDM'
23395 tls_first_major=2
23396 tls_first_minor=20
23397 tls_as_opt='--fatal-warnings'
23399 mips*-*-*)
23400 conftest_s='
23401 .section .tdata,"awT",@progbits
23403 .word 2
23404 .text
23405 addiu $4, $28, %tlsgd(x)
23406 addiu $4, $28, %tlsldm(x)
23407 lui $4, %dtprel_hi(x)
23408 addiu $4, $4, %dtprel_lo(x)
23409 lw $4, %gottprel(x)($28)
23410 lui $4, %tprel_hi(x)
23411 addiu $4, $4, %tprel_lo(x)'
23412 tls_first_major=2
23413 tls_first_minor=16
23414 tls_as_opt='-32 --fatal-warnings'
23416 m68k-*-*)
23417 conftest_s='
23418 .section .tdata,"awT",@progbits
23420 .word 2
23421 .text
23422 foo:
23423 move.l x@TLSGD(%a5),%a0
23424 move.l x@TLSLDM(%a5),%a0
23425 move.l x@TLSLDO(%a5),%a0
23426 move.l x@TLSIE(%a5),%a0
23427 move.l x@TLSLE(%a5),%a0'
23428 tls_first_major=2
23429 tls_first_minor=19
23430 tls_as_opt='--fatal-warnings'
23432 nios2-*-*)
23433 conftest_s='
23434 .section ".tdata","awT",@progbits'
23435 tls_first_major=2
23436 tls_first_minor=23
23437 tls_as_opt="--fatal-warnings"
23439 aarch64*-*-*)
23440 conftest_s='
23441 .section ".tdata","awT",%progbits
23442 foo: .long 25
23443 .text
23444 adrp x0, :tlsgd:x
23445 add x0, x0, #:tlsgd_lo12:x
23446 bl __tls_get_addr
23447 nop'
23448 tls_first_major=2
23449 tls_first_minor=20
23450 tls_as_opt='--fatal-warnings'
23452 powerpc-ibm-aix*)
23453 conftest_s='
23454 .extern __get_tpointer
23455 .toc
23456 LC..1:
23457 .tc a[TC],a[TL]@le
23458 .csect .text[PR]
23459 .tlstest:
23460 lwz 9,LC..1(2)
23461 bla __get_tpointer
23462 lwzx 3,9,3
23463 .globl a
23464 .csect a[TL],4
23466 .space 4'
23467 tls_first_major=0
23468 tls_first_minor=0
23470 powerpc64*-*-*)
23471 conftest_s='
23472 .section ".tdata","awT",@progbits
23473 .align 3
23474 ld0: .space 8
23475 ld1: .space 8
23476 x1: .space 8
23477 x2: .space 8
23478 x3: .space 8
23479 .text
23480 addi 3,2,ld0@got@tlsgd
23481 bl .__tls_get_addr
23483 addi 3,2,ld1@toc
23484 bl .__tls_get_addr
23486 addi 3,2,x1@got@tlsld
23487 bl .__tls_get_addr
23489 addi 9,3,x1@dtprel
23490 bl .__tls_get_addr
23492 addis 9,3,x2@dtprel@ha
23493 addi 9,9,x2@dtprel@l
23494 bl .__tls_get_addr
23496 ld 9,x3@got@dtprel(2)
23497 add 9,9,3
23498 bl .__tls_get_addr
23499 nop'
23500 tls_first_major=2
23501 tls_first_minor=14
23502 tls_as_opt="-a64 --fatal-warnings"
23504 powerpc*-*-*)
23505 conftest_s='
23506 .section ".tdata","awT",@progbits
23507 .align 2
23508 ld0: .space 4
23509 ld1: .space 4
23510 x1: .space 4
23511 x2: .space 4
23512 x3: .space 4
23513 .text
23514 addi 3,31,ld0@got@tlsgd
23515 bl __tls_get_addr
23516 addi 3,31,x1@got@tlsld
23517 bl __tls_get_addr
23518 addi 9,3,x1@dtprel
23519 addis 9,3,x2@dtprel@ha
23520 addi 9,9,x2@dtprel@l
23521 lwz 9,x3@got@tprel(31)
23522 add 9,9,x@tls
23523 addi 9,2,x1@tprel
23524 addis 9,2,x2@tprel@ha
23525 addi 9,9,x2@tprel@l'
23526 tls_first_major=2
23527 tls_first_minor=14
23528 tls_as_opt="-a32 --fatal-warnings"
23530 s390-*-*)
23531 conftest_s='
23532 .section ".tdata","awT",@progbits
23533 foo: .long 25
23534 .text
23535 .long foo@TLSGD
23536 .long foo@TLSLDM
23537 .long foo@DTPOFF
23538 .long foo@NTPOFF
23539 .long foo@GOTNTPOFF
23540 .long foo@INDNTPOFF
23541 l %r1,foo@GOTNTPOFF(%r12)
23542 l %r1,0(%r1):tls_load:foo
23543 bas %r14,0(%r1,%r13):tls_gdcall:foo
23544 bas %r14,0(%r1,%r13):tls_ldcall:foo'
23545 tls_first_major=2
23546 tls_first_minor=14
23547 tls_as_opt="-m31 --fatal-warnings"
23549 s390x-*-*)
23550 conftest_s='
23551 .section ".tdata","awT",@progbits
23552 foo: .long 25
23553 .text
23554 .quad foo@TLSGD
23555 .quad foo@TLSLDM
23556 .quad foo@DTPOFF
23557 .quad foo@NTPOFF
23558 .quad foo@GOTNTPOFF
23559 lg %r1,foo@GOTNTPOFF(%r12)
23560 larl %r1,foo@INDNTPOFF
23561 brasl %r14,__tls_get_offset@PLT:tls_gdcall:foo
23562 brasl %r14,__tls_get_offset@PLT:tls_ldcall:foo'
23563 tls_first_major=2
23564 tls_first_minor=14
23565 tls_as_opt="-m64 -Aesame --fatal-warnings"
23567 sh-*-* | sh[34]-*-*)
23568 conftest_s='
23569 .section ".tdata","awT",@progbits
23570 foo: .long 25
23571 .text
23572 .long foo@TLSGD
23573 .long foo@TLSLDM
23574 .long foo@DTPOFF
23575 .long foo@GOTTPOFF
23576 .long foo@TPOFF'
23577 tls_first_major=2
23578 tls_first_minor=13
23579 tls_as_opt=--fatal-warnings
23581 sparc*-*-*)
23582 case "$target" in
23583 sparc*-sun-solaris2.*)
23584 on_solaris=yes
23587 on_solaris=no
23589 esac
23590 if test x$on_solaris = xyes && test x$gas_flag = xno; then
23591 conftest_s='
23592 .section ".tdata",#alloc,#write,#tls'
23593 tls_first_major=0
23594 tls_first_minor=0
23595 else
23596 conftest_s='
23597 .section ".tdata","awT",@progbits'
23598 tls_first_major=2
23599 tls_first_minor=14
23600 tls_as_opt="-32 --fatal-warnings"
23602 conftest_s="$conftest_s
23603 foo: .long 25
23604 .text
23605 sethi %tgd_hi22(foo), %o0
23606 add %o0, %tgd_lo10(foo), %o1
23607 add %l7, %o1, %o0, %tgd_add(foo)
23608 call __tls_get_addr, %tgd_call(foo)
23609 sethi %tldm_hi22(foo), %l1
23610 add %l1, %tldm_lo10(foo), %l2
23611 add %l7, %l2, %o0, %tldm_add(foo)
23612 call __tls_get_addr, %tldm_call(foo)
23613 sethi %tldo_hix22(foo), %l3
23614 xor %l3, %tldo_lox10(foo), %l4
23615 add %o0, %l4, %l5, %tldo_add(foo)
23616 sethi %tie_hi22(foo), %o3
23617 add %o3, %tie_lo10(foo), %o3
23618 ld [%l7 + %o3], %o2, %tie_ld(foo)
23619 add %g7, %o2, %o4, %tie_add(foo)
23620 sethi %tle_hix22(foo), %l1
23621 xor %l1, %tle_lox10(foo), %o5
23622 ld [%g7 + %o5], %o1"
23624 tilepro*-*-*)
23625 conftest_s='
23626 .section ".tdata","awT",@progbits
23627 foo: .long 25
23628 .text
23629 addli r0, zero, tls_gd(foo)
23630 auli r0, zero, tls_gd_ha16(foo)
23631 addli r0, r0, tls_gd_lo16(foo)
23632 jal __tls_get_addr
23633 addli r0, zero, tls_ie(foo)
23634 auli r0, r0, tls_ie_ha16(foo)
23635 addli r0, r0, tls_ie_lo16(foo)'
23636 tls_first_major=2
23637 tls_first_minor=22
23638 tls_as_opt="--fatal-warnings"
23640 tilegx*-*-*)
23641 conftest_s='
23642 .section ".tdata","awT",@progbits
23643 foo: .long 25
23644 .text
23645 shl16insli r0, zero, hw0_last_tls_gd(foo)
23646 shl16insli r0, zero, hw1_last_tls_gd(foo)
23647 shl16insli r0, r0, hw0_tls_gd(foo)
23648 jal __tls_get_addr
23649 shl16insli r0, zero, hw1_last_tls_ie(foo)
23650 shl16insli r0, r0, hw0_tls_ie(foo)'
23651 tls_first_major=2
23652 tls_first_minor=22
23653 tls_as_opt="--fatal-warnings"
23655 xtensa*-*-*)
23656 conftest_s='
23657 .section ".tdata","awT",@progbits
23658 foo: .long 25
23659 .text
23660 movi a8, foo@TLSFUNC
23661 movi a10, foo@TLSARG
23662 callx8.tls a8, foo@TLSCALL'
23663 tls_first_major=2
23664 tls_first_minor=19
23666 esac
23667 set_have_as_tls=no
23668 if test "x$enable_tls" = xno ; then
23669 : # TLS explicitly disabled.
23670 elif test "x$enable_tls" = xyes ; then
23671 set_have_as_tls=yes # TLS explicitly enabled.
23672 elif test -z "$tls_first_major"; then
23673 : # If we don't have a check, assume no support.
23674 else
23675 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for thread-local storage support" >&5
23676 $as_echo_n "checking assembler for thread-local storage support... " >&6; }
23677 if test "${gcc_cv_as_tls+set}" = set; then :
23678 $as_echo_n "(cached) " >&6
23679 else
23680 gcc_cv_as_tls=no
23681 if test $in_tree_gas = yes; then
23682 if test $gcc_cv_gas_vers -ge `expr \( \( $tls_first_major \* 1000 \) + $tls_first_minor \) \* 1000 + 0`
23683 then gcc_cv_as_tls=yes
23685 elif test x$gcc_cv_as != x; then
23686 $as_echo "$conftest_s" > conftest.s
23687 if { ac_try='$gcc_cv_as $gcc_cv_as_flags $tls_as_opt -o conftest.o conftest.s >&5'
23688 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
23689 (eval $ac_try) 2>&5
23690 ac_status=$?
23691 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
23692 test $ac_status = 0; }; }
23693 then
23694 gcc_cv_as_tls=yes
23695 else
23696 echo "configure: failed program was" >&5
23697 cat conftest.s >&5
23699 rm -f conftest.o conftest.s
23702 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_tls" >&5
23703 $as_echo "$gcc_cv_as_tls" >&6; }
23704 if test $gcc_cv_as_tls = yes; then
23705 set_have_as_tls=yes
23708 if test $set_have_as_tls = yes ; then
23710 $as_echo "#define HAVE_AS_TLS 1" >>confdefs.h
23714 # Target-specific assembler checks.
23716 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker -Bstatic/-Bdynamic option" >&5
23717 $as_echo_n "checking linker -Bstatic/-Bdynamic option... " >&6; }
23718 gcc_cv_ld_static_dynamic=no
23719 gcc_cv_ld_static_option='-Bstatic'
23720 gcc_cv_ld_dynamic_option='-Bdynamic'
23721 if test $in_tree_ld = yes ; then
23722 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
23723 gcc_cv_ld_static_dynamic=yes
23725 elif test x$gcc_cv_ld != x; then
23726 # Check if linker supports -Bstatic/-Bdynamic option
23727 if $gcc_cv_ld --help 2>/dev/null | grep -- -Bstatic > /dev/null \
23728 && $gcc_cv_ld --help 2>/dev/null | grep -- -Bdynamic > /dev/null; then
23729 gcc_cv_ld_static_dynamic=yes
23730 else
23731 case "$target" in
23732 # AIX ld uses -b flags
23733 *-*-aix4.[23]* | *-*-aix[5-9]*)
23734 gcc_cv_ld_static_dynamic=yes
23735 gcc_cv_ld_static_option="-bstatic"
23736 gcc_cv_ld_dynamic_option="-bdynamic"
23738 # HP-UX ld uses -a flags to select between shared and archive.
23739 *-*-hpux*)
23740 if test x"$gnu_ld" = xno; then
23741 gcc_cv_ld_static_dynamic=yes
23742 gcc_cv_ld_static_option="-aarchive_shared"
23743 gcc_cv_ld_dynamic_option="-adefault"
23746 # Solaris 2 ld always supports -Bstatic/-Bdynamic.
23747 *-*-solaris2*)
23748 gcc_cv_ld_static_dynamic=yes
23750 esac
23753 if test x"$gcc_cv_ld_static_dynamic" = xyes; then
23755 $as_echo "#define HAVE_LD_STATIC_DYNAMIC 1" >>confdefs.h
23758 cat >>confdefs.h <<_ACEOF
23759 #define LD_STATIC_OPTION "$gcc_cv_ld_static_option"
23760 _ACEOF
23763 cat >>confdefs.h <<_ACEOF
23764 #define LD_DYNAMIC_OPTION "$gcc_cv_ld_dynamic_option"
23765 _ACEOF
23768 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_static_dynamic" >&5
23769 $as_echo "$gcc_cv_ld_static_dynamic" >&6; }
23771 if test x"$demangler_in_ld" = xyes; then
23772 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker --demangle support" >&5
23773 $as_echo_n "checking linker --demangle support... " >&6; }
23774 gcc_cv_ld_demangle=no
23775 if test $in_tree_ld = yes; then
23776 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 \
23777 gcc_cv_ld_demangle=yes
23779 elif test x$gcc_cv_ld != x -a x"$gnu_ld" = xyes; then
23780 # Check if the GNU linker supports --demangle option
23781 if $gcc_cv_ld --help 2>/dev/null | grep no-demangle > /dev/null; then
23782 gcc_cv_ld_demangle=yes
23785 if test x"$gcc_cv_ld_demangle" = xyes; then
23787 $as_echo "#define HAVE_LD_DEMANGLE 1" >>confdefs.h
23790 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_demangle" >&5
23791 $as_echo "$gcc_cv_ld_demangle" >&6; }
23794 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker plugin support" >&5
23795 $as_echo_n "checking linker plugin support... " >&6; }
23796 gcc_cv_lto_plugin=0
23797 if test -f liblto_plugin.la; then
23798 save_ld_ver="$ld_ver"
23799 save_ld_vers_major="$ld_vers_major"
23800 save_ld_vers_minor="$ld_vers_minor"
23801 save_ld_is_gold="$ld_is_gold"
23803 ld_is_gold=no
23805 if test $in_tree_ld = yes -a x"$ORIGINAL_PLUGIN_LD_FOR_TARGET" = x"$gcc_cv_ld"; then
23806 ld_ver="GNU ld"
23807 # FIXME: ld_is_gold?
23808 ld_vers_major="$gcc_cv_gld_major_version"
23809 ld_vers_minor="$gcc_cv_gld_minor_version"
23810 else
23811 # Determine plugin linker version.
23812 # FIXME: Partial duplicate from above, generalize.
23813 ld_ver=`$ORIGINAL_PLUGIN_LD_FOR_TARGET --version 2>/dev/null | sed 1q`
23814 if echo "$ld_ver" | grep GNU > /dev/null; then
23815 if echo "$ld_ver" | grep "GNU gold" > /dev/null; then
23816 ld_is_gold=yes
23817 ld_vers=`echo $ld_ver | sed -n \
23818 -e 's,^[^)]*[ ]\([0-9][0-9]*\.[0-9][0-9]*[^)]*\)) .*$,\1,p'`
23819 else
23820 ld_vers=`echo $ld_ver | sed -n \
23821 -e 's,^.*[ ]\([0-9][0-9]*\.[0-9][0-9]*.*\)$,\1,p'`
23823 ld_vers_major=`expr "$ld_vers" : '\([0-9]*\)'`
23824 ld_vers_minor=`expr "$ld_vers" : '[0-9]*\.\([0-9]*\)'`
23828 # Determine plugin support.
23829 if echo "$ld_ver" | grep GNU > /dev/null; then
23830 # Require GNU ld or gold 2.21+ for plugin support by default.
23831 if test "$ld_vers_major" -eq 2 -a "$ld_vers_minor" -ge 21; then
23832 gcc_cv_lto_plugin=2
23833 # Allow -fuse-linker-plugin to enable plugin support in GNU gold 2.20.
23834 elif test "$ld_is_gold" = yes -a "$ld_vers_major" -eq 2 -a "$ld_vers_minor" -eq 20; then
23835 gcc_cv_lto_plugin=1
23839 ld_ver="$save_ld_ver"
23840 ld_vers_major="$save_ld_vers_major"
23841 ld_vers_minor="$save_ld_vers_minor"
23842 ld_is_gold="$save_ld_is_gold"
23845 cat >>confdefs.h <<_ACEOF
23846 #define HAVE_LTO_PLUGIN $gcc_cv_lto_plugin
23847 _ACEOF
23849 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_lto_plugin" >&5
23850 $as_echo "$gcc_cv_lto_plugin" >&6; }
23852 case "$target" in
23853 aarch64*-*-*)
23854 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for -mabi option" >&5
23855 $as_echo_n "checking assembler for -mabi option... " >&6; }
23856 if test "${gcc_cv_as_aarch64_mabi+set}" = set; then :
23857 $as_echo_n "(cached) " >&6
23858 else
23859 gcc_cv_as_aarch64_mabi=no
23860 if test x$gcc_cv_as != x; then
23861 $as_echo '.text' > conftest.s
23862 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -mabi=lp64 -o conftest.o conftest.s >&5'
23863 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
23864 (eval $ac_try) 2>&5
23865 ac_status=$?
23866 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
23867 test $ac_status = 0; }; }
23868 then
23869 gcc_cv_as_aarch64_mabi=yes
23870 else
23871 echo "configure: failed program was" >&5
23872 cat conftest.s >&5
23874 rm -f conftest.o conftest.s
23877 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_aarch64_mabi" >&5
23878 $as_echo "$gcc_cv_as_aarch64_mabi" >&6; }
23880 if test x$gcc_cv_as_aarch64_mabi = xyes; then
23882 $as_echo "#define HAVE_AS_MABI_OPTION 1" >>confdefs.h
23884 else
23885 if test x$with_abi = xilp32; then
23886 as_fn_error "Assembler does not support -mabi=ilp32.\
23887 Upgrade the Assembler." "$LINENO" 5
23889 if test x"$with_multilib_list" = xdefault; then
23890 TM_MULTILIB_CONFIG=lp64
23891 else
23892 aarch64_multilibs=`echo $with_multilib_list | sed -e 's/,/ /g'`
23893 for aarch64_multilib in ${aarch64_multilibs}; do
23894 case ${aarch64_multilib} in
23895 ilp32)
23896 as_fn_error "Assembler does not support -mabi=ilp32.\
23897 Upgrade the Assembler." "$LINENO" 5
23901 esac
23902 done
23907 # All TARGET_ABI_OSF targets.
23908 alpha*-*-linux* | alpha*-*-*bsd*)
23909 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for explicit relocation support" >&5
23910 $as_echo_n "checking assembler for explicit relocation support... " >&6; }
23911 if test "${gcc_cv_as_alpha_explicit_relocs+set}" = set; then :
23912 $as_echo_n "(cached) " >&6
23913 else
23914 gcc_cv_as_alpha_explicit_relocs=no
23915 if test $in_tree_gas = yes; then
23916 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 12 \) \* 1000 + 0`
23917 then gcc_cv_as_alpha_explicit_relocs=yes
23919 elif test x$gcc_cv_as != x; then
23920 $as_echo ' .set nomacro
23921 .text
23922 extbl $3, $2, $3 !lituse_bytoff!1
23923 ldq $2, a($29) !literal!1
23924 ldq $4, b($29) !literal!2
23925 ldq_u $3, 0($2) !lituse_base!1
23926 ldq $27, f($29) !literal!5
23927 jsr $26, ($27), f !lituse_jsr!5
23928 ldah $29, 0($26) !gpdisp!3
23929 lda $0, c($29) !gprel
23930 ldah $1, d($29) !gprelhigh
23931 lda $1, d($1) !gprellow
23932 lda $29, 0($29) !gpdisp!3' > conftest.s
23933 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
23934 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
23935 (eval $ac_try) 2>&5
23936 ac_status=$?
23937 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
23938 test $ac_status = 0; }; }
23939 then
23940 gcc_cv_as_alpha_explicit_relocs=yes
23941 else
23942 echo "configure: failed program was" >&5
23943 cat conftest.s >&5
23945 rm -f conftest.o conftest.s
23948 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_alpha_explicit_relocs" >&5
23949 $as_echo "$gcc_cv_as_alpha_explicit_relocs" >&6; }
23950 if test $gcc_cv_as_alpha_explicit_relocs = yes; then
23952 $as_echo "#define HAVE_AS_EXPLICIT_RELOCS 1" >>confdefs.h
23955 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for jsrdirect relocation support" >&5
23956 $as_echo_n "checking assembler for jsrdirect relocation support... " >&6; }
23957 if test "${gcc_cv_as_alpha_jsrdirect_relocs+set}" = set; then :
23958 $as_echo_n "(cached) " >&6
23959 else
23960 gcc_cv_as_alpha_jsrdirect_relocs=no
23961 if test $in_tree_gas = yes; then
23962 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 16 \) \* 1000 + 90`
23963 then gcc_cv_as_alpha_jsrdirect_relocs=yes
23965 elif test x$gcc_cv_as != x; then
23966 $as_echo ' .set nomacro
23967 .text
23968 ldq $27, a($29) !literal!1
23969 jsr $26, ($27), a !lituse_jsrdirect!1' > conftest.s
23970 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
23971 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
23972 (eval $ac_try) 2>&5
23973 ac_status=$?
23974 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
23975 test $ac_status = 0; }; }
23976 then
23977 gcc_cv_as_alpha_jsrdirect_relocs=yes
23978 else
23979 echo "configure: failed program was" >&5
23980 cat conftest.s >&5
23982 rm -f conftest.o conftest.s
23985 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_alpha_jsrdirect_relocs" >&5
23986 $as_echo "$gcc_cv_as_alpha_jsrdirect_relocs" >&6; }
23987 if test $gcc_cv_as_alpha_jsrdirect_relocs = yes; then
23989 $as_echo "#define HAVE_AS_JSRDIRECT_RELOCS 1" >>confdefs.h
23994 cris-*-*)
23995 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for -no-mul-bug-abort option" >&5
23996 $as_echo_n "checking assembler for -no-mul-bug-abort option... " >&6; }
23997 if test "${gcc_cv_as_cris_no_mul_bug+set}" = set; then :
23998 $as_echo_n "(cached) " >&6
23999 else
24000 gcc_cv_as_cris_no_mul_bug=no
24001 if test $in_tree_gas = yes; then
24002 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 15 \) \* 1000 + 91`
24003 then gcc_cv_as_cris_no_mul_bug=yes
24005 elif test x$gcc_cv_as != x; then
24006 $as_echo '.text' > conftest.s
24007 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -no-mul-bug-abort -o conftest.o conftest.s >&5'
24008 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
24009 (eval $ac_try) 2>&5
24010 ac_status=$?
24011 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24012 test $ac_status = 0; }; }
24013 then
24014 gcc_cv_as_cris_no_mul_bug=yes
24015 else
24016 echo "configure: failed program was" >&5
24017 cat conftest.s >&5
24019 rm -f conftest.o conftest.s
24022 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_cris_no_mul_bug" >&5
24023 $as_echo "$gcc_cv_as_cris_no_mul_bug" >&6; }
24024 if test $gcc_cv_as_cris_no_mul_bug = yes; then
24026 $as_echo "#define HAVE_AS_NO_MUL_BUG_ABORT_OPTION 1" >>confdefs.h
24031 sparc*-*-*)
24032 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .register" >&5
24033 $as_echo_n "checking assembler for .register... " >&6; }
24034 if test "${gcc_cv_as_sparc_register_op+set}" = set; then :
24035 $as_echo_n "(cached) " >&6
24036 else
24037 gcc_cv_as_sparc_register_op=no
24038 if test x$gcc_cv_as != x; then
24039 $as_echo '.register %g2, #scratch' > conftest.s
24040 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
24041 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
24042 (eval $ac_try) 2>&5
24043 ac_status=$?
24044 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24045 test $ac_status = 0; }; }
24046 then
24047 gcc_cv_as_sparc_register_op=yes
24048 else
24049 echo "configure: failed program was" >&5
24050 cat conftest.s >&5
24052 rm -f conftest.o conftest.s
24055 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_sparc_register_op" >&5
24056 $as_echo "$gcc_cv_as_sparc_register_op" >&6; }
24057 if test $gcc_cv_as_sparc_register_op = yes; then
24059 $as_echo "#define HAVE_AS_REGISTER_PSEUDO_OP 1" >>confdefs.h
24063 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for #nobits" >&5
24064 $as_echo_n "checking assembler for #nobits... " >&6; }
24065 if test "${gcc_cv_as_sparc_nobits+set}" = set; then :
24066 $as_echo_n "(cached) " >&6
24067 else
24068 gcc_cv_as_sparc_nobits=no
24069 if test x$gcc_cv_as != x; then
24070 $as_echo '.section "nobits",#alloc,#write,#nobits
24071 .section "progbits",#alloc,#write,#progbits' > conftest.s
24072 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
24073 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
24074 (eval $ac_try) 2>&5
24075 ac_status=$?
24076 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24077 test $ac_status = 0; }; }
24078 then
24079 gcc_cv_as_sparc_nobits=yes
24080 else
24081 echo "configure: failed program was" >&5
24082 cat conftest.s >&5
24084 rm -f conftest.o conftest.s
24087 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_sparc_nobits" >&5
24088 $as_echo "$gcc_cv_as_sparc_nobits" >&6; }
24091 cat >>confdefs.h <<_ACEOF
24092 #define HAVE_AS_SPARC_NOBITS `if test $gcc_cv_as_sparc_nobits = yes; then echo 1; else echo 0; fi`
24093 _ACEOF
24096 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for -relax option" >&5
24097 $as_echo_n "checking assembler for -relax option... " >&6; }
24098 if test "${gcc_cv_as_sparc_relax+set}" = set; then :
24099 $as_echo_n "(cached) " >&6
24100 else
24101 gcc_cv_as_sparc_relax=no
24102 if test x$gcc_cv_as != x; then
24103 $as_echo '.text' > conftest.s
24104 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -relax -o conftest.o conftest.s >&5'
24105 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
24106 (eval $ac_try) 2>&5
24107 ac_status=$?
24108 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24109 test $ac_status = 0; }; }
24110 then
24111 gcc_cv_as_sparc_relax=yes
24112 else
24113 echo "configure: failed program was" >&5
24114 cat conftest.s >&5
24116 rm -f conftest.o conftest.s
24119 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_sparc_relax" >&5
24120 $as_echo "$gcc_cv_as_sparc_relax" >&6; }
24121 if test $gcc_cv_as_sparc_relax = yes; then
24123 $as_echo "#define HAVE_AS_RELAX_OPTION 1" >>confdefs.h
24127 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for GOTDATA_OP relocs" >&5
24128 $as_echo_n "checking assembler for GOTDATA_OP relocs... " >&6; }
24129 if test "${gcc_cv_as_sparc_gotdata_op+set}" = set; then :
24130 $as_echo_n "(cached) " >&6
24131 else
24132 gcc_cv_as_sparc_gotdata_op=no
24133 if test x$gcc_cv_as != x; then
24134 $as_echo '.text
24135 .align 4
24136 foo:
24138 bar:
24139 sethi %gdop_hix22(foo), %g1
24140 xor %g1, %gdop_lox10(foo), %g1
24141 ld [%l7 + %g1], %g2, %gdop(foo)' > conftest.s
24142 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -K PIC -o conftest.o conftest.s >&5'
24143 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
24144 (eval $ac_try) 2>&5
24145 ac_status=$?
24146 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24147 test $ac_status = 0; }; }
24148 then
24149 if test x$gcc_cv_ld != x \
24150 && $gcc_cv_ld -o conftest conftest.o -G > /dev/null 2>&1; then
24151 if test x$gcc_cv_objdump != x; then
24152 if $gcc_cv_objdump -s -j .text conftest 2> /dev/null \
24153 | grep ' 03000004 82186004 c405c001'> /dev/null 2>&1; then
24154 gcc_cv_as_sparc_gotdata_op=no
24155 else
24156 gcc_cv_as_sparc_gotdata_op=yes
24160 rm -f conftest
24161 else
24162 echo "configure: failed program was" >&5
24163 cat conftest.s >&5
24165 rm -f conftest.o conftest.s
24168 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_sparc_gotdata_op" >&5
24169 $as_echo "$gcc_cv_as_sparc_gotdata_op" >&6; }
24170 if test $gcc_cv_as_sparc_gotdata_op = yes; then
24172 $as_echo "#define HAVE_AS_SPARC_GOTDATA_OP 1" >>confdefs.h
24176 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for unaligned pcrel relocs" >&5
24177 $as_echo_n "checking assembler for unaligned pcrel relocs... " >&6; }
24178 if test "${gcc_cv_as_sparc_ua_pcrel+set}" = set; then :
24179 $as_echo_n "(cached) " >&6
24180 else
24181 gcc_cv_as_sparc_ua_pcrel=no
24182 if test x$gcc_cv_as != x; then
24183 $as_echo '.text
24184 foo:
24186 .data
24187 .align 4
24188 .byte 0
24189 .uaword %r_disp32(foo)' > conftest.s
24190 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -K PIC -o conftest.o conftest.s >&5'
24191 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
24192 (eval $ac_try) 2>&5
24193 ac_status=$?
24194 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24195 test $ac_status = 0; }; }
24196 then
24197 if test x$gcc_cv_ld != x \
24198 && $gcc_cv_ld -o conftest conftest.o -G > /dev/null 2>&1; then
24199 gcc_cv_as_sparc_ua_pcrel=yes
24201 rm -f conftest
24202 else
24203 echo "configure: failed program was" >&5
24204 cat conftest.s >&5
24206 rm -f conftest.o conftest.s
24209 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_sparc_ua_pcrel" >&5
24210 $as_echo "$gcc_cv_as_sparc_ua_pcrel" >&6; }
24211 if test $gcc_cv_as_sparc_ua_pcrel = yes; then
24213 $as_echo "#define HAVE_AS_SPARC_UA_PCREL 1" >>confdefs.h
24216 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for unaligned pcrel relocs against hidden symbols" >&5
24217 $as_echo_n "checking assembler for unaligned pcrel relocs against hidden symbols... " >&6; }
24218 if test "${gcc_cv_as_sparc_ua_pcrel_hidden+set}" = set; then :
24219 $as_echo_n "(cached) " >&6
24220 else
24221 gcc_cv_as_sparc_ua_pcrel_hidden=no
24222 if test x$gcc_cv_as != x; then
24223 $as_echo '.data
24224 .align 4
24225 .byte 0x31
24226 .uaword %r_disp32(foo)
24227 .byte 0x32, 0x33, 0x34
24228 .global foo
24229 .hidden foo
24230 foo:
24231 .skip 4' > conftest.s
24232 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -K PIC -o conftest.o conftest.s >&5'
24233 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
24234 (eval $ac_try) 2>&5
24235 ac_status=$?
24236 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24237 test $ac_status = 0; }; }
24238 then
24239 if test x$gcc_cv_ld != x && test x$gcc_cv_objdump != x \
24240 && $gcc_cv_ld -o conftest conftest.o -G > /dev/null 2>&1 \
24241 && $gcc_cv_objdump -s -j .data conftest 2> /dev/null \
24242 | grep ' 31000000 07323334' > /dev/null 2>&1; then
24243 if $gcc_cv_objdump -R conftest 2> /dev/null \
24244 | grep 'DISP32' > /dev/null 2>&1; then
24246 else
24247 gcc_cv_as_sparc_ua_pcrel_hidden=yes
24250 rm -f conftest
24251 else
24252 echo "configure: failed program was" >&5
24253 cat conftest.s >&5
24255 rm -f conftest.o conftest.s
24258 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_sparc_ua_pcrel_hidden" >&5
24259 $as_echo "$gcc_cv_as_sparc_ua_pcrel_hidden" >&6; }
24260 if test $gcc_cv_as_sparc_ua_pcrel_hidden = yes; then
24262 $as_echo "#define HAVE_AS_SPARC_UA_PCREL_HIDDEN 1" >>confdefs.h
24266 fi # unaligned pcrel relocs
24268 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for offsetable %lo()" >&5
24269 $as_echo_n "checking assembler for offsetable %lo()... " >&6; }
24270 if test "${gcc_cv_as_sparc_offsetable_lo10+set}" = set; then :
24271 $as_echo_n "(cached) " >&6
24272 else
24273 gcc_cv_as_sparc_offsetable_lo10=no
24274 if test x$gcc_cv_as != x; then
24275 $as_echo '.text
24276 or %g1, %lo(ab) + 12, %g1
24277 or %g1, %lo(ab + 12), %g1' > conftest.s
24278 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -xarch=v9 -o conftest.o conftest.s >&5'
24279 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
24280 (eval $ac_try) 2>&5
24281 ac_status=$?
24282 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24283 test $ac_status = 0; }; }
24284 then
24285 if test x$gcc_cv_objdump != x \
24286 && $gcc_cv_objdump -s -j .text conftest.o 2> /dev/null \
24287 | grep ' 82106000 82106000' > /dev/null 2>&1; then
24288 gcc_cv_as_sparc_offsetable_lo10=yes
24290 else
24291 echo "configure: failed program was" >&5
24292 cat conftest.s >&5
24294 rm -f conftest.o conftest.s
24297 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_sparc_offsetable_lo10" >&5
24298 $as_echo "$gcc_cv_as_sparc_offsetable_lo10" >&6; }
24299 if test $gcc_cv_as_sparc_offsetable_lo10 = yes; then
24301 $as_echo "#define HAVE_AS_OFFSETABLE_LO10 1" >>confdefs.h
24305 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for FMAF, HPC, and VIS 3.0 instructions" >&5
24306 $as_echo_n "checking assembler for FMAF, HPC, and VIS 3.0 instructions... " >&6; }
24307 if test "${gcc_cv_as_sparc_fmaf+set}" = set; then :
24308 $as_echo_n "(cached) " >&6
24309 else
24310 gcc_cv_as_sparc_fmaf=no
24311 if test x$gcc_cv_as != x; then
24312 $as_echo '.text
24313 .register %g2, #scratch
24314 .register %g3, #scratch
24315 .align 4
24316 fmaddd %f0, %f2, %f4, %f6
24317 addxccc %g1, %g2, %g3
24318 fsrl32 %f2, %f4, %f8
24319 fnaddd %f10, %f12, %f14' > conftest.s
24320 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -xarch=v9d -o conftest.o conftest.s >&5'
24321 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
24322 (eval $ac_try) 2>&5
24323 ac_status=$?
24324 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24325 test $ac_status = 0; }; }
24326 then
24327 gcc_cv_as_sparc_fmaf=yes
24328 else
24329 echo "configure: failed program was" >&5
24330 cat conftest.s >&5
24332 rm -f conftest.o conftest.s
24335 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_sparc_fmaf" >&5
24336 $as_echo "$gcc_cv_as_sparc_fmaf" >&6; }
24337 if test $gcc_cv_as_sparc_fmaf = yes; then
24339 $as_echo "#define HAVE_AS_FMAF_HPC_VIS3 1" >>confdefs.h
24343 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for SPARC4 instructions" >&5
24344 $as_echo_n "checking assembler for SPARC4 instructions... " >&6; }
24345 if test "${gcc_cv_as_sparc_sparc4+set}" = set; then :
24346 $as_echo_n "(cached) " >&6
24347 else
24348 gcc_cv_as_sparc_sparc4=no
24349 if test x$gcc_cv_as != x; then
24350 $as_echo '.text
24351 .register %g2, #scratch
24352 .register %g3, #scratch
24353 .align 4
24354 cxbe %g2, %g3, 1f
24355 1: cwbneg %g2, %g3, 1f
24356 1: sha1
24358 aes_kexpand0 %f4, %f6, %f8
24359 des_round %f38, %f40, %f42, %f44
24360 camellia_f %f54, %f56, %f58, %f60
24361 kasumi_fi_xor %f46, %f48, %f50, %f52' > conftest.s
24362 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -xarch=sparc4 -o conftest.o conftest.s >&5'
24363 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
24364 (eval $ac_try) 2>&5
24365 ac_status=$?
24366 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24367 test $ac_status = 0; }; }
24368 then
24369 gcc_cv_as_sparc_sparc4=yes
24370 else
24371 echo "configure: failed program was" >&5
24372 cat conftest.s >&5
24374 rm -f conftest.o conftest.s
24377 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_sparc_sparc4" >&5
24378 $as_echo "$gcc_cv_as_sparc_sparc4" >&6; }
24379 if test $gcc_cv_as_sparc_sparc4 = yes; then
24381 $as_echo "#define HAVE_AS_SPARC4 1" >>confdefs.h
24385 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for LEON instructions" >&5
24386 $as_echo_n "checking assembler for LEON instructions... " >&6; }
24387 if test "${gcc_cv_as_sparc_leon+set}" = set; then :
24388 $as_echo_n "(cached) " >&6
24389 else
24390 gcc_cv_as_sparc_leon=no
24391 if test x$gcc_cv_as != x; then
24392 $as_echo '.text
24393 .register %g2, #scratch
24394 .register %g3, #scratch
24395 .align 4
24396 smac %g2, %g3, %g1
24397 umac %g2, %g3, %g1
24398 cas [%g2], %g3, %g1' > conftest.s
24399 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -Aleon -o conftest.o conftest.s >&5'
24400 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
24401 (eval $ac_try) 2>&5
24402 ac_status=$?
24403 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24404 test $ac_status = 0; }; }
24405 then
24406 gcc_cv_as_sparc_leon=yes
24407 else
24408 echo "configure: failed program was" >&5
24409 cat conftest.s >&5
24411 rm -f conftest.o conftest.s
24414 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_sparc_leon" >&5
24415 $as_echo "$gcc_cv_as_sparc_leon" >&6; }
24416 if test $gcc_cv_as_sparc_leon = yes; then
24418 $as_echo "#define HAVE_AS_LEON 1" >>confdefs.h
24423 i[34567]86-*-* | x86_64-*-*)
24424 case $target_os in
24425 cygwin*)
24426 # Full C++ conformance when using a shared libstdc++-v3 requires some
24427 # support from the Cygwin DLL, which in more recent versions exports
24428 # wrappers to aid in interposing and redirecting operators new, delete,
24429 # etc., as per n2800 #17.6.4.6 [replacement.functions]. Check if we
24430 # are configuring for a version of Cygwin that exports the wrappers.
24431 if test x$host = x$target && test x$host_cpu = xi686; then
24432 ac_fn_c_check_func "$LINENO" "__wrap__Znaj" "ac_cv_func___wrap__Znaj"
24433 if test "x$ac_cv_func___wrap__Znaj" = x""yes; then :
24434 gcc_ac_cygwin_dll_wrappers=yes
24435 else
24436 gcc_ac_cygwin_dll_wrappers=no
24439 else
24440 # Can't check presence of libc functions during cross-compile, so
24441 # we just have to assume we're building for an up-to-date target.
24442 gcc_ac_cygwin_dll_wrappers=yes
24445 cat >>confdefs.h <<_ACEOF
24446 #define USE_CYGWIN_LIBSTDCXX_WRAPPERS `if test $gcc_ac_cygwin_dll_wrappers = yes; then echo 1; else echo 0; fi`
24447 _ACEOF
24449 esac
24450 case $target_os in
24451 cygwin* | pe | mingw32* | interix*)
24452 # Recent binutils allows the three-operand form of ".comm" on PE. This
24453 # definition is used unconditionally to initialise the default state of
24454 # the target option variable that governs usage of the feature.
24455 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .comm with alignment" >&5
24456 $as_echo_n "checking assembler for .comm with alignment... " >&6; }
24457 if test "${gcc_cv_as_comm_has_align+set}" = set; then :
24458 $as_echo_n "(cached) " >&6
24459 else
24460 gcc_cv_as_comm_has_align=no
24461 if test $in_tree_gas = yes; then
24462 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 19 \) \* 1000 + 52`
24463 then gcc_cv_as_comm_has_align=yes
24465 elif test x$gcc_cv_as != x; then
24466 $as_echo '.comm foo,1,32' > conftest.s
24467 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
24468 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
24469 (eval $ac_try) 2>&5
24470 ac_status=$?
24471 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24472 test $ac_status = 0; }; }
24473 then
24474 gcc_cv_as_comm_has_align=yes
24475 else
24476 echo "configure: failed program was" >&5
24477 cat conftest.s >&5
24479 rm -f conftest.o conftest.s
24482 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_comm_has_align" >&5
24483 $as_echo "$gcc_cv_as_comm_has_align" >&6; }
24486 cat >>confdefs.h <<_ACEOF
24487 #define HAVE_GAS_ALIGNED_COMM `if test $gcc_cv_as_comm_has_align = yes; then echo 1; else echo 0; fi`
24488 _ACEOF
24490 # Used for DWARF 2 in PE
24491 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .secrel32 relocs" >&5
24492 $as_echo_n "checking assembler for .secrel32 relocs... " >&6; }
24493 if test "${gcc_cv_as_ix86_pe_secrel32+set}" = set; then :
24494 $as_echo_n "(cached) " >&6
24495 else
24496 gcc_cv_as_ix86_pe_secrel32=no
24497 if test $in_tree_gas = yes; then
24498 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 15 \) \* 1000 + 91`
24499 then gcc_cv_as_ix86_pe_secrel32=yes
24501 elif test x$gcc_cv_as != x; then
24502 $as_echo '.text
24503 foo: nop
24504 .data
24505 .secrel32 foo' > conftest.s
24506 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -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 if test x$gcc_cv_ld != x \
24514 && $gcc_cv_ld -o conftest conftest.o > /dev/null 2>&1; then
24515 gcc_cv_as_ix86_pe_secrel32=yes
24517 rm -f conftest
24518 else
24519 echo "configure: failed program was" >&5
24520 cat conftest.s >&5
24522 rm -f conftest.o conftest.s
24525 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_ix86_pe_secrel32" >&5
24526 $as_echo "$gcc_cv_as_ix86_pe_secrel32" >&6; }
24527 if test $gcc_cv_as_ix86_pe_secrel32 = yes; then
24529 $as_echo "#define HAVE_GAS_PE_SECREL32_RELOC 1" >>confdefs.h
24532 # Test if the assembler supports the extended form of the .section
24533 # directive that specifies section alignment. LTO support uses this,
24534 # but normally only after installation, so we warn but don't fail the
24535 # configure if LTO is enabled but the assembler does not support it.
24536 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .section with alignment" >&5
24537 $as_echo_n "checking assembler for .section with alignment... " >&6; }
24538 if test "${gcc_cv_as_section_has_align+set}" = set; then :
24539 $as_echo_n "(cached) " >&6
24540 else
24541 gcc_cv_as_section_has_align=no
24542 if test $in_tree_gas = yes; then
24543 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 20 \) \* 1000 + 1`
24544 then gcc_cv_as_section_has_align=yes
24546 elif test x$gcc_cv_as != x; then
24547 $as_echo '.section lto_test,"dr0"' > conftest.s
24548 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -fatal-warnings -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_section_has_align=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_section_has_align" >&5
24564 $as_echo "$gcc_cv_as_section_has_align" >&6; }
24566 if test x$gcc_cv_as_section_has_align != xyes; then
24567 case ",$enable_languages," in
24568 *,lto,*)
24569 { $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
24570 $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;}
24572 esac
24574 # Test if the assembler supports the section flag 'e' for specifying
24575 # an excluded section.
24576 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .section with e" >&5
24577 $as_echo_n "checking assembler for .section with e... " >&6; }
24578 if test "${gcc_cv_as_section_has_e+set}" = set; then :
24579 $as_echo_n "(cached) " >&6
24580 else
24581 gcc_cv_as_section_has_e=no
24582 if test $in_tree_gas = yes; then
24583 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 22 \) \* 1000 + 51`
24584 then gcc_cv_as_section_has_e=yes
24586 elif test x$gcc_cv_as != x; then
24587 $as_echo '.section foo1,"e"
24588 .byte 0,0,0,0' > conftest.s
24589 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
24590 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
24591 (eval $ac_try) 2>&5
24592 ac_status=$?
24593 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24594 test $ac_status = 0; }; }
24595 then
24596 gcc_cv_as_section_has_e=yes
24597 else
24598 echo "configure: failed program was" >&5
24599 cat conftest.s >&5
24601 rm -f conftest.o conftest.s
24604 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_section_has_e" >&5
24605 $as_echo "$gcc_cv_as_section_has_e" >&6; }
24608 cat >>confdefs.h <<_ACEOF
24609 #define HAVE_GAS_SECTION_EXCLUDE `if test $gcc_cv_as_section_has_e = yes; then echo 1; else echo 0; fi`
24610 _ACEOF
24613 esac
24615 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for filds and fists mnemonics" >&5
24616 $as_echo_n "checking assembler for filds and fists mnemonics... " >&6; }
24617 if test "${gcc_cv_as_ix86_filds+set}" = set; then :
24618 $as_echo_n "(cached) " >&6
24619 else
24620 gcc_cv_as_ix86_filds=no
24621 if test x$gcc_cv_as != x; then
24622 $as_echo 'filds mem; fists mem' > conftest.s
24623 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
24624 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
24625 (eval $ac_try) 2>&5
24626 ac_status=$?
24627 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24628 test $ac_status = 0; }; }
24629 then
24630 gcc_cv_as_ix86_filds=yes
24631 else
24632 echo "configure: failed program was" >&5
24633 cat conftest.s >&5
24635 rm -f conftest.o conftest.s
24638 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_ix86_filds" >&5
24639 $as_echo "$gcc_cv_as_ix86_filds" >&6; }
24640 if test $gcc_cv_as_ix86_filds = yes; then
24642 $as_echo "#define HAVE_AS_IX86_FILDS 1" >>confdefs.h
24646 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for fildq and fistpq mnemonics" >&5
24647 $as_echo_n "checking assembler for fildq and fistpq mnemonics... " >&6; }
24648 if test "${gcc_cv_as_ix86_fildq+set}" = set; then :
24649 $as_echo_n "(cached) " >&6
24650 else
24651 gcc_cv_as_ix86_fildq=no
24652 if test x$gcc_cv_as != x; then
24653 $as_echo 'fildq mem; fistpq mem' > conftest.s
24654 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
24655 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
24656 (eval $ac_try) 2>&5
24657 ac_status=$?
24658 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24659 test $ac_status = 0; }; }
24660 then
24661 gcc_cv_as_ix86_fildq=yes
24662 else
24663 echo "configure: failed program was" >&5
24664 cat conftest.s >&5
24666 rm -f conftest.o conftest.s
24669 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_ix86_fildq" >&5
24670 $as_echo "$gcc_cv_as_ix86_fildq" >&6; }
24671 if test $gcc_cv_as_ix86_fildq = yes; then
24673 $as_echo "#define HAVE_AS_IX86_FILDQ 1" >>confdefs.h
24677 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for cmov syntax" >&5
24678 $as_echo_n "checking assembler for cmov syntax... " >&6; }
24679 if test "${gcc_cv_as_ix86_cmov_sun_syntax+set}" = set; then :
24680 $as_echo_n "(cached) " >&6
24681 else
24682 gcc_cv_as_ix86_cmov_sun_syntax=no
24683 if test x$gcc_cv_as != x; then
24684 $as_echo 'cmovl.l %edx, %eax' > conftest.s
24685 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
24686 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
24687 (eval $ac_try) 2>&5
24688 ac_status=$?
24689 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24690 test $ac_status = 0; }; }
24691 then
24692 gcc_cv_as_ix86_cmov_sun_syntax=yes
24693 else
24694 echo "configure: failed program was" >&5
24695 cat conftest.s >&5
24697 rm -f conftest.o conftest.s
24700 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_ix86_cmov_sun_syntax" >&5
24701 $as_echo "$gcc_cv_as_ix86_cmov_sun_syntax" >&6; }
24702 if test $gcc_cv_as_ix86_cmov_sun_syntax = yes; then
24704 $as_echo "#define HAVE_AS_IX86_CMOV_SUN_SYNTAX 1" >>confdefs.h
24708 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for ffreep mnemonic" >&5
24709 $as_echo_n "checking assembler for ffreep mnemonic... " >&6; }
24710 if test "${gcc_cv_as_ix86_ffreep+set}" = set; then :
24711 $as_echo_n "(cached) " >&6
24712 else
24713 gcc_cv_as_ix86_ffreep=no
24714 if test x$gcc_cv_as != x; then
24715 $as_echo 'ffreep %st(1)' > conftest.s
24716 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
24717 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
24718 (eval $ac_try) 2>&5
24719 ac_status=$?
24720 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24721 test $ac_status = 0; }; }
24722 then
24723 gcc_cv_as_ix86_ffreep=yes
24724 else
24725 echo "configure: failed program was" >&5
24726 cat conftest.s >&5
24728 rm -f conftest.o conftest.s
24731 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_ix86_ffreep" >&5
24732 $as_echo "$gcc_cv_as_ix86_ffreep" >&6; }
24733 if test $gcc_cv_as_ix86_ffreep = yes; then
24735 $as_echo "#define HAVE_AS_IX86_FFREEP 1" >>confdefs.h
24739 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .quad directive" >&5
24740 $as_echo_n "checking assembler for .quad directive... " >&6; }
24741 if test "${gcc_cv_as_ix86_quad+set}" = set; then :
24742 $as_echo_n "(cached) " >&6
24743 else
24744 gcc_cv_as_ix86_quad=no
24745 if test x$gcc_cv_as != x; then
24746 $as_echo '.quad 0' > conftest.s
24747 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
24748 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
24749 (eval $ac_try) 2>&5
24750 ac_status=$?
24751 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24752 test $ac_status = 0; }; }
24753 then
24754 gcc_cv_as_ix86_quad=yes
24755 else
24756 echo "configure: failed program was" >&5
24757 cat conftest.s >&5
24759 rm -f conftest.o conftest.s
24762 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_ix86_quad" >&5
24763 $as_echo "$gcc_cv_as_ix86_quad" >&6; }
24764 if test $gcc_cv_as_ix86_quad = yes; then
24766 $as_echo "#define HAVE_AS_IX86_QUAD 1" >>confdefs.h
24770 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for sahf mnemonic" >&5
24771 $as_echo_n "checking assembler for sahf mnemonic... " >&6; }
24772 if test "${gcc_cv_as_ix86_sahf+set}" = set; then :
24773 $as_echo_n "(cached) " >&6
24774 else
24775 gcc_cv_as_ix86_sahf=no
24776 if test x$gcc_cv_as != x; then
24777 $as_echo '.code64
24778 sahf' > conftest.s
24779 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
24780 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
24781 (eval $ac_try) 2>&5
24782 ac_status=$?
24783 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24784 test $ac_status = 0; }; }
24785 then
24786 gcc_cv_as_ix86_sahf=yes
24787 else
24788 echo "configure: failed program was" >&5
24789 cat conftest.s >&5
24791 rm -f conftest.o conftest.s
24794 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_ix86_sahf" >&5
24795 $as_echo "$gcc_cv_as_ix86_sahf" >&6; }
24796 if test $gcc_cv_as_ix86_sahf = yes; then
24798 $as_echo "#define HAVE_AS_IX86_SAHF 1" >>confdefs.h
24802 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for interunit movq mnemonic" >&5
24803 $as_echo_n "checking assembler for interunit movq mnemonic... " >&6; }
24804 if test "${gcc_cv_as_ix86_interunit_movq+set}" = set; then :
24805 $as_echo_n "(cached) " >&6
24806 else
24807 gcc_cv_as_ix86_interunit_movq=no
24808 if test x$gcc_cv_as != x; then
24809 $as_echo '.code64
24810 movq %mm0, %rax
24811 movq %rax, %xmm0' > conftest.s
24812 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
24813 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
24814 (eval $ac_try) 2>&5
24815 ac_status=$?
24816 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24817 test $ac_status = 0; }; }
24818 then
24819 gcc_cv_as_ix86_interunit_movq=yes
24820 else
24821 echo "configure: failed program was" >&5
24822 cat conftest.s >&5
24824 rm -f conftest.o conftest.s
24827 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_ix86_interunit_movq" >&5
24828 $as_echo "$gcc_cv_as_ix86_interunit_movq" >&6; }
24831 cat >>confdefs.h <<_ACEOF
24832 #define HAVE_AS_IX86_INTERUNIT_MOVQ `if test $gcc_cv_as_ix86_interunit_movq = yes; then echo 1; else echo 0; fi`
24833 _ACEOF
24836 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for hle prefixes" >&5
24837 $as_echo_n "checking assembler for hle prefixes... " >&6; }
24838 if test "${gcc_cv_as_ix86_hle+set}" = set; then :
24839 $as_echo_n "(cached) " >&6
24840 else
24841 gcc_cv_as_ix86_hle=no
24842 if test x$gcc_cv_as != x; then
24843 $as_echo 'lock xacquire cmpxchg %esi, (%ecx)' > conftest.s
24844 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
24845 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
24846 (eval $ac_try) 2>&5
24847 ac_status=$?
24848 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24849 test $ac_status = 0; }; }
24850 then
24851 gcc_cv_as_ix86_hle=yes
24852 else
24853 echo "configure: failed program was" >&5
24854 cat conftest.s >&5
24856 rm -f conftest.o conftest.s
24859 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_ix86_hle" >&5
24860 $as_echo "$gcc_cv_as_ix86_hle" >&6; }
24861 if test $gcc_cv_as_ix86_hle = yes; then
24863 $as_echo "#define HAVE_AS_IX86_HLE 1" >>confdefs.h
24867 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for swap suffix" >&5
24868 $as_echo_n "checking assembler for swap suffix... " >&6; }
24869 if test "${gcc_cv_as_ix86_swap+set}" = set; then :
24870 $as_echo_n "(cached) " >&6
24871 else
24872 gcc_cv_as_ix86_swap=no
24873 if test x$gcc_cv_as != x; then
24874 $as_echo 'movl.s %esp, %ebp' > conftest.s
24875 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
24876 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
24877 (eval $ac_try) 2>&5
24878 ac_status=$?
24879 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24880 test $ac_status = 0; }; }
24881 then
24882 gcc_cv_as_ix86_swap=yes
24883 else
24884 echo "configure: failed program was" >&5
24885 cat conftest.s >&5
24887 rm -f conftest.o conftest.s
24890 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_ix86_swap" >&5
24891 $as_echo "$gcc_cv_as_ix86_swap" >&6; }
24892 if test $gcc_cv_as_ix86_swap = yes; then
24894 $as_echo "#define HAVE_AS_IX86_SWAP 1" >>confdefs.h
24898 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for different section symbol subtraction" >&5
24899 $as_echo_n "checking assembler for different section symbol subtraction... " >&6; }
24900 if test "${gcc_cv_as_ix86_diff_sect_delta+set}" = set; then :
24901 $as_echo_n "(cached) " >&6
24902 else
24903 gcc_cv_as_ix86_diff_sect_delta=no
24904 if test x$gcc_cv_as != x; then
24905 $as_echo '.section .rodata
24906 .L1:
24907 .long .L2-.L1
24908 .long .L3-.L1
24909 .text
24910 .L3: nop
24911 .L2: nop' > conftest.s
24912 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
24913 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
24914 (eval $ac_try) 2>&5
24915 ac_status=$?
24916 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24917 test $ac_status = 0; }; }
24918 then
24919 gcc_cv_as_ix86_diff_sect_delta=yes
24920 else
24921 echo "configure: failed program was" >&5
24922 cat conftest.s >&5
24924 rm -f conftest.o conftest.s
24927 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_ix86_diff_sect_delta" >&5
24928 $as_echo "$gcc_cv_as_ix86_diff_sect_delta" >&6; }
24929 if test $gcc_cv_as_ix86_diff_sect_delta = yes; then
24931 $as_echo "#define HAVE_AS_IX86_DIFF_SECT_DELTA 1" >>confdefs.h
24935 # These two are used unconditionally by i386.[ch]; it is to be defined
24936 # to 1 if the feature is present, 0 otherwise.
24937 as_ix86_gotoff_in_data_opt=
24938 if test x$gas = xyes; then
24939 as_ix86_gotoff_in_data_opt="--32"
24941 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for GOTOFF in data" >&5
24942 $as_echo_n "checking assembler for GOTOFF in data... " >&6; }
24943 if test "${gcc_cv_as_ix86_gotoff_in_data+set}" = set; then :
24944 $as_echo_n "(cached) " >&6
24945 else
24946 gcc_cv_as_ix86_gotoff_in_data=no
24947 if test $in_tree_gas = yes; then
24948 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 11 \) \* 1000 + 0`
24949 then gcc_cv_as_ix86_gotoff_in_data=yes
24951 elif test x$gcc_cv_as != x; then
24952 $as_echo ' .text
24953 .L0:
24955 .data
24956 .long .L0@GOTOFF' > conftest.s
24957 if { ac_try='$gcc_cv_as $gcc_cv_as_flags $as_ix86_gotoff_in_data_opt -o conftest.o conftest.s >&5'
24958 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
24959 (eval $ac_try) 2>&5
24960 ac_status=$?
24961 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24962 test $ac_status = 0; }; }
24963 then
24964 gcc_cv_as_ix86_gotoff_in_data=yes
24965 else
24966 echo "configure: failed program was" >&5
24967 cat conftest.s >&5
24969 rm -f conftest.o conftest.s
24972 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_ix86_gotoff_in_data" >&5
24973 $as_echo "$gcc_cv_as_ix86_gotoff_in_data" >&6; }
24976 cat >>confdefs.h <<_ACEOF
24977 #define HAVE_AS_GOTOFF_IN_DATA `if test $gcc_cv_as_ix86_gotoff_in_data = yes; then echo 1; else echo 0; fi`
24978 _ACEOF
24981 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for rep and lock prefix" >&5
24982 $as_echo_n "checking assembler for rep and lock prefix... " >&6; }
24983 if test "${gcc_cv_as_ix86_rep_lock_prefix+set}" = set; then :
24984 $as_echo_n "(cached) " >&6
24985 else
24986 gcc_cv_as_ix86_rep_lock_prefix=no
24987 if test x$gcc_cv_as != x; then
24988 $as_echo 'rep movsl
24989 rep ret
24990 rep nop
24991 rep bsf %ecx, %eax
24992 rep bsr %ecx, %eax
24993 lock addl %edi, (%eax,%esi)
24994 lock orl $0, (%esp)' > conftest.s
24995 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
24996 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
24997 (eval $ac_try) 2>&5
24998 ac_status=$?
24999 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25000 test $ac_status = 0; }; }
25001 then
25002 gcc_cv_as_ix86_rep_lock_prefix=yes
25003 else
25004 echo "configure: failed program was" >&5
25005 cat conftest.s >&5
25007 rm -f conftest.o conftest.s
25010 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_ix86_rep_lock_prefix" >&5
25011 $as_echo "$gcc_cv_as_ix86_rep_lock_prefix" >&6; }
25012 if test $gcc_cv_as_ix86_rep_lock_prefix = yes; then
25014 $as_echo "#define HAVE_AS_IX86_REP_LOCK_PREFIX 1" >>confdefs.h
25018 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for ud2 mnemonic" >&5
25019 $as_echo_n "checking assembler for ud2 mnemonic... " >&6; }
25020 if test "${gcc_cv_as_ix86_ud2+set}" = set; then :
25021 $as_echo_n "(cached) " >&6
25022 else
25023 gcc_cv_as_ix86_ud2=no
25024 if test x$gcc_cv_as != x; then
25025 $as_echo 'ud2' > conftest.s
25026 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
25027 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
25028 (eval $ac_try) 2>&5
25029 ac_status=$?
25030 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25031 test $ac_status = 0; }; }
25032 then
25033 gcc_cv_as_ix86_ud2=yes
25034 else
25035 echo "configure: failed program was" >&5
25036 cat conftest.s >&5
25038 rm -f conftest.o conftest.s
25041 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_ix86_ud2" >&5
25042 $as_echo "$gcc_cv_as_ix86_ud2" >&6; }
25043 if test $gcc_cv_as_ix86_ud2 = yes; then
25045 $as_echo "#define HAVE_AS_IX86_UD2 1" >>confdefs.h
25049 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for R_386_TLS_GD_PLT reloc" >&5
25050 $as_echo_n "checking assembler for R_386_TLS_GD_PLT reloc... " >&6; }
25051 if test "${gcc_cv_as_ix86_tlsgdplt+set}" = set; then :
25052 $as_echo_n "(cached) " >&6
25053 else
25054 gcc_cv_as_ix86_tlsgdplt=no
25055 if test x$gcc_cv_as != x; then
25056 $as_echo 'call tls_gd@tlsgdplt' > conftest.s
25057 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
25058 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
25059 (eval $ac_try) 2>&5
25060 ac_status=$?
25061 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25062 test $ac_status = 0; }; }
25063 then
25064 if test x$gcc_cv_ld != x \
25065 && $gcc_cv_ld -o conftest conftest.o -G > /dev/null 2>&1; then
25066 gcc_cv_as_ix86_tlsgdplt=yes
25068 rm -f conftest
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_tlsgdplt" >&5
25077 $as_echo "$gcc_cv_as_ix86_tlsgdplt" >&6; }
25078 if test $gcc_cv_as_ix86_tlsgdplt = yes; then
25080 $as_echo "#define HAVE_AS_IX86_TLSGDPLT 1" >>confdefs.h
25084 conftest_s='
25085 .section .tdata,"aw'$tls_section_flag'",@progbits
25086 tls_ld:
25087 .section .text,"ax",@progbits
25088 call tls_ld@tlsldmplt'
25089 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for R_386_TLS_LDM_PLT reloc" >&5
25090 $as_echo_n "checking assembler for R_386_TLS_LDM_PLT reloc... " >&6; }
25091 if test "${gcc_cv_as_ix86_tlsldmplt+set}" = set; then :
25092 $as_echo_n "(cached) " >&6
25093 else
25094 gcc_cv_as_ix86_tlsldmplt=no
25095 if test x$gcc_cv_as != x; then
25096 $as_echo "$conftest_s" > conftest.s
25097 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
25098 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
25099 (eval $ac_try) 2>&5
25100 ac_status=$?
25101 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25102 test $ac_status = 0; }; }
25103 then
25104 if test x$gcc_cv_ld != x \
25105 && $gcc_cv_ld -o conftest conftest.o -G > /dev/null 2>&1; then
25106 gcc_cv_as_ix86_tlsldmplt=yes
25108 rm -f conftest
25109 else
25110 echo "configure: failed program was" >&5
25111 cat conftest.s >&5
25113 rm -f conftest.o conftest.s
25116 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_ix86_tlsldmplt" >&5
25117 $as_echo "$gcc_cv_as_ix86_tlsldmplt" >&6; }
25120 cat >>confdefs.h <<_ACEOF
25121 #define HAVE_AS_IX86_TLSLDMPLT `if test $gcc_cv_as_ix86_tlsldmplt = yes; then echo 1; else echo 0; fi`
25122 _ACEOF
25125 # Enforce 32-bit output with gas and gld.
25126 if test x$gas = xyes; then
25127 as_ix86_tls_ldm_opt="--32"
25129 if echo "$ld_ver" | grep GNU > /dev/null; then
25130 if $gcc_cv_ld -V 2>/dev/null | grep elf_i386_sol2 > /dev/null; then
25131 ld_ix86_tls_ldm_opt="-melf_i386_sol2"
25132 else
25133 ld_ix86_tls_ldm_opt="-melf_i386"
25136 conftest_s='
25137 .section .text,"ax",@progbits
25138 .globl _start
25139 .type _start, @function
25140 _start:
25141 leal value@tlsldm(%ebx), %eax
25142 call ___tls_get_addr@plt
25144 .section .tdata,"aw'$tls_section_flag'",@progbits
25145 .type value, @object
25146 value:'
25147 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for R_386_TLS_LDM reloc" >&5
25148 $as_echo_n "checking assembler for R_386_TLS_LDM reloc... " >&6; }
25149 if test "${gcc_cv_as_ix86_tlsldm+set}" = set; then :
25150 $as_echo_n "(cached) " >&6
25151 else
25152 gcc_cv_as_ix86_tlsldm=no
25153 if test x$gcc_cv_as != x; then
25154 $as_echo "$conftest_s" > conftest.s
25155 if { ac_try='$gcc_cv_as $gcc_cv_as_flags $as_ix86_tls_ldm_opt -o conftest.o conftest.s >&5'
25156 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
25157 (eval $ac_try) 2>&5
25158 ac_status=$?
25159 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25160 test $ac_status = 0; }; }
25161 then
25162 if test x$gcc_cv_ld != x && test x$gcc_cv_objdump != x \
25163 && $gcc_cv_ld $ld_ix86_tls_ldm_opt -o conftest conftest.o $ld_tls_libs -lc > /dev/null 2>&1; then
25164 if $gcc_cv_objdump -d conftest 2>/dev/null | grep nop > /dev/null \
25165 || dis conftest 2>/dev/null | grep nop > /dev/null; then
25166 gcc_cv_as_ix86_tlsldm=yes
25169 rm -f conftest
25170 else
25171 echo "configure: failed program was" >&5
25172 cat conftest.s >&5
25174 rm -f conftest.o conftest.s
25177 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_ix86_tlsldm" >&5
25178 $as_echo "$gcc_cv_as_ix86_tlsldm" >&6; }
25181 cat >>confdefs.h <<_ACEOF
25182 #define HAVE_AS_IX86_TLSLDM `if test $gcc_cv_as_ix86_tlsldm = yes; then echo 1; else echo 0; fi`
25183 _ACEOF
25188 ia64*-*-*)
25189 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for ltoffx and ldxmov relocs" >&5
25190 $as_echo_n "checking assembler for ltoffx and ldxmov relocs... " >&6; }
25191 if test "${gcc_cv_as_ia64_ltoffx_ldxmov_relocs+set}" = set; then :
25192 $as_echo_n "(cached) " >&6
25193 else
25194 gcc_cv_as_ia64_ltoffx_ldxmov_relocs=no
25195 if test $in_tree_gas = yes; then
25196 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 14 \) \* 1000 + 0`
25197 then gcc_cv_as_ia64_ltoffx_ldxmov_relocs=yes
25199 elif test x$gcc_cv_as != x; then
25200 $as_echo ' .text
25201 addl r15 = @ltoffx(x#), gp
25203 ld8.mov r16 = [r15], x#' > conftest.s
25204 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
25205 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
25206 (eval $ac_try) 2>&5
25207 ac_status=$?
25208 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25209 test $ac_status = 0; }; }
25210 then
25211 gcc_cv_as_ia64_ltoffx_ldxmov_relocs=yes
25212 else
25213 echo "configure: failed program was" >&5
25214 cat conftest.s >&5
25216 rm -f conftest.o conftest.s
25219 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_ia64_ltoffx_ldxmov_relocs" >&5
25220 $as_echo "$gcc_cv_as_ia64_ltoffx_ldxmov_relocs" >&6; }
25221 if test $gcc_cv_as_ia64_ltoffx_ldxmov_relocs = yes; then
25223 $as_echo "#define HAVE_AS_LTOFFX_LDXMOV_RELOCS 1" >>confdefs.h
25229 powerpc*-*-*)
25230 case $target in
25231 *-*-aix*) conftest_s=' .machine "pwr5"
25232 .csect .text[PR]
25233 mfcr 3,128';;
25234 *-*-darwin*)
25235 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .machine directive support" >&5
25236 $as_echo_n "checking assembler for .machine directive support... " >&6; }
25237 if test "${gcc_cv_as_machine_directive+set}" = set; then :
25238 $as_echo_n "(cached) " >&6
25239 else
25240 gcc_cv_as_machine_directive=no
25241 if test x$gcc_cv_as != x; then
25242 $as_echo ' .machine ppc7400' > 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 gcc_cv_as_machine_directive=yes
25251 else
25252 echo "configure: failed program was" >&5
25253 cat conftest.s >&5
25255 rm -f conftest.o conftest.s
25258 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_machine_directive" >&5
25259 $as_echo "$gcc_cv_as_machine_directive" >&6; }
25261 if test x$gcc_cv_as_machine_directive != xyes; then
25262 echo "*** This target requires an assembler supporting \".machine\"" >&2
25263 echo you can get it from: ftp://gcc.gnu.org/pub/gcc/infrastructure/cctools-528.5.dmg >&2
25264 test x$build = x$target && exit 1
25266 conftest_s=' .text
25267 mfcr r3,128';;
25268 *) conftest_s=' .machine power4
25269 .text
25270 mfcr 3,128';;
25271 esac
25273 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for mfcr field support" >&5
25274 $as_echo_n "checking assembler for mfcr field support... " >&6; }
25275 if test "${gcc_cv_as_powerpc_mfcrf+set}" = set; then :
25276 $as_echo_n "(cached) " >&6
25277 else
25278 gcc_cv_as_powerpc_mfcrf=no
25279 if test $in_tree_gas = yes; then
25280 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 14 \) \* 1000 + 0`
25281 then gcc_cv_as_powerpc_mfcrf=yes
25283 elif test x$gcc_cv_as != x; then
25284 $as_echo "$conftest_s" > conftest.s
25285 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
25286 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
25287 (eval $ac_try) 2>&5
25288 ac_status=$?
25289 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25290 test $ac_status = 0; }; }
25291 then
25292 gcc_cv_as_powerpc_mfcrf=yes
25293 else
25294 echo "configure: failed program was" >&5
25295 cat conftest.s >&5
25297 rm -f conftest.o conftest.s
25300 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_powerpc_mfcrf" >&5
25301 $as_echo "$gcc_cv_as_powerpc_mfcrf" >&6; }
25302 if test $gcc_cv_as_powerpc_mfcrf = yes; then
25304 $as_echo "#define HAVE_AS_MFCRF 1" >>confdefs.h
25308 case $target in
25309 *-*-aix*) conftest_s=' .machine "pwr5"
25310 .csect .text[PR]
25311 popcntb 3,3';;
25312 *) conftest_s=' .machine power5
25313 .text
25314 popcntb 3,3';;
25315 esac
25317 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for popcntb support" >&5
25318 $as_echo_n "checking assembler for popcntb support... " >&6; }
25319 if test "${gcc_cv_as_powerpc_popcntb+set}" = set; then :
25320 $as_echo_n "(cached) " >&6
25321 else
25322 gcc_cv_as_powerpc_popcntb=no
25323 if test $in_tree_gas = yes; then
25324 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 17 \) \* 1000 + 0`
25325 then gcc_cv_as_powerpc_popcntb=yes
25327 elif test x$gcc_cv_as != x; then
25328 $as_echo "$conftest_s" > conftest.s
25329 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
25330 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
25331 (eval $ac_try) 2>&5
25332 ac_status=$?
25333 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25334 test $ac_status = 0; }; }
25335 then
25336 gcc_cv_as_powerpc_popcntb=yes
25337 else
25338 echo "configure: failed program was" >&5
25339 cat conftest.s >&5
25341 rm -f conftest.o conftest.s
25344 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_powerpc_popcntb" >&5
25345 $as_echo "$gcc_cv_as_powerpc_popcntb" >&6; }
25346 if test $gcc_cv_as_powerpc_popcntb = yes; then
25348 $as_echo "#define HAVE_AS_POPCNTB 1" >>confdefs.h
25352 case $target in
25353 *-*-aix*) conftest_s=' .machine "pwr5x"
25354 .csect .text[PR]
25355 frin 1,1';;
25356 *) conftest_s=' .machine power5
25357 .text
25358 frin 1,1';;
25359 esac
25361 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for fp round support" >&5
25362 $as_echo_n "checking assembler for fp round support... " >&6; }
25363 if test "${gcc_cv_as_powerpc_fprnd+set}" = set; then :
25364 $as_echo_n "(cached) " >&6
25365 else
25366 gcc_cv_as_powerpc_fprnd=no
25367 if test $in_tree_gas = yes; then
25368 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 17 \) \* 1000 + 0`
25369 then gcc_cv_as_powerpc_fprnd=yes
25371 elif test x$gcc_cv_as != x; then
25372 $as_echo "$conftest_s" > conftest.s
25373 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
25374 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
25375 (eval $ac_try) 2>&5
25376 ac_status=$?
25377 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25378 test $ac_status = 0; }; }
25379 then
25380 gcc_cv_as_powerpc_fprnd=yes
25381 else
25382 echo "configure: failed program was" >&5
25383 cat conftest.s >&5
25385 rm -f conftest.o conftest.s
25388 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_powerpc_fprnd" >&5
25389 $as_echo "$gcc_cv_as_powerpc_fprnd" >&6; }
25390 if test $gcc_cv_as_powerpc_fprnd = yes; then
25392 $as_echo "#define HAVE_AS_FPRND 1" >>confdefs.h
25396 case $target in
25397 *-*-aix*) conftest_s=' .machine "pwr6"
25398 .csect .text[PR]
25399 mffgpr 1,3';;
25400 *) conftest_s=' .machine power6
25401 .text
25402 mffgpr 1,3';;
25403 esac
25405 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for move fp gpr support" >&5
25406 $as_echo_n "checking assembler for move fp gpr support... " >&6; }
25407 if test "${gcc_cv_as_powerpc_mfpgpr+set}" = set; then :
25408 $as_echo_n "(cached) " >&6
25409 else
25410 gcc_cv_as_powerpc_mfpgpr=no
25411 if test $in_tree_gas = yes; then
25412 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 19 \) \* 1000 + 2`
25413 then gcc_cv_as_powerpc_mfpgpr=yes
25415 elif test x$gcc_cv_as != x; then
25416 $as_echo "$conftest_s" > conftest.s
25417 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
25418 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
25419 (eval $ac_try) 2>&5
25420 ac_status=$?
25421 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25422 test $ac_status = 0; }; }
25423 then
25424 gcc_cv_as_powerpc_mfpgpr=yes
25425 else
25426 echo "configure: failed program was" >&5
25427 cat conftest.s >&5
25429 rm -f conftest.o conftest.s
25432 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_powerpc_mfpgpr" >&5
25433 $as_echo "$gcc_cv_as_powerpc_mfpgpr" >&6; }
25434 if test $gcc_cv_as_powerpc_mfpgpr = yes; then
25436 $as_echo "#define HAVE_AS_MFPGPR 1" >>confdefs.h
25440 case $target in
25441 *-*-aix*) conftest_s=' .csect .text[PR]
25442 LCF..0:
25443 addis 11,30,_GLOBAL_OFFSET_TABLE_-LCF..0@ha';;
25444 *-*-darwin*)
25445 conftest_s=' .text
25446 LCF0:
25447 addis r11,r30,_GLOBAL_OFFSET_TABLE_-LCF0@ha';;
25448 *) conftest_s=' .text
25449 .LCF0:
25450 addis 11,30,_GLOBAL_OFFSET_TABLE_-.LCF0@ha';;
25451 esac
25453 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for rel16 relocs" >&5
25454 $as_echo_n "checking assembler for rel16 relocs... " >&6; }
25455 if test "${gcc_cv_as_powerpc_rel16+set}" = set; then :
25456 $as_echo_n "(cached) " >&6
25457 else
25458 gcc_cv_as_powerpc_rel16=no
25459 if test $in_tree_gas = yes; then
25460 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 17 \) \* 1000 + 0`
25461 then gcc_cv_as_powerpc_rel16=yes
25463 elif test x$gcc_cv_as != x; then
25464 $as_echo "$conftest_s" > conftest.s
25465 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -a32 -o conftest.o conftest.s >&5'
25466 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
25467 (eval $ac_try) 2>&5
25468 ac_status=$?
25469 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25470 test $ac_status = 0; }; }
25471 then
25472 gcc_cv_as_powerpc_rel16=yes
25473 else
25474 echo "configure: failed program was" >&5
25475 cat conftest.s >&5
25477 rm -f conftest.o conftest.s
25480 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_powerpc_rel16" >&5
25481 $as_echo "$gcc_cv_as_powerpc_rel16" >&6; }
25482 if test $gcc_cv_as_powerpc_rel16 = yes; then
25484 $as_echo "#define HAVE_AS_REL16 1" >>confdefs.h
25488 case $target in
25489 *-*-aix*) conftest_s=' .machine "pwr6"
25490 .csect .text[PR]
25491 cmpb 3,4,5';;
25492 *) conftest_s=' .machine power6
25493 .text
25494 cmpb 3,4,5';;
25495 esac
25497 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for compare bytes support" >&5
25498 $as_echo_n "checking assembler for compare bytes support... " >&6; }
25499 if test "${gcc_cv_as_powerpc_cmpb+set}" = set; then :
25500 $as_echo_n "(cached) " >&6
25501 else
25502 gcc_cv_as_powerpc_cmpb=no
25503 if test $in_tree_gas = yes; then
25504 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 19 \) \* 1000 + 2`
25505 then gcc_cv_as_powerpc_cmpb=yes
25507 elif test x$gcc_cv_as != x; then
25508 $as_echo "$conftest_s" > conftest.s
25509 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -a32 -o conftest.o conftest.s >&5'
25510 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
25511 (eval $ac_try) 2>&5
25512 ac_status=$?
25513 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25514 test $ac_status = 0; }; }
25515 then
25516 gcc_cv_as_powerpc_cmpb=yes
25517 else
25518 echo "configure: failed program was" >&5
25519 cat conftest.s >&5
25521 rm -f conftest.o conftest.s
25524 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_powerpc_cmpb" >&5
25525 $as_echo "$gcc_cv_as_powerpc_cmpb" >&6; }
25526 if test $gcc_cv_as_powerpc_cmpb = yes; then
25528 $as_echo "#define HAVE_AS_CMPB 1" >>confdefs.h
25532 case $target in
25533 *-*-aix*) conftest_s=' .machine "pwr6"
25534 .csect .text[PR]
25535 dadd 1,2,3';;
25536 *) conftest_s=' .machine power6
25537 .text
25538 dadd 1,2,3';;
25539 esac
25541 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for decimal float support" >&5
25542 $as_echo_n "checking assembler for decimal float support... " >&6; }
25543 if test "${gcc_cv_as_powerpc_dfp+set}" = set; then :
25544 $as_echo_n "(cached) " >&6
25545 else
25546 gcc_cv_as_powerpc_dfp=no
25547 if test $in_tree_gas = yes; then
25548 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 19 \) \* 1000 + 2`
25549 then gcc_cv_as_powerpc_dfp=yes
25551 elif test x$gcc_cv_as != x; then
25552 $as_echo "$conftest_s" > conftest.s
25553 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -a32 -o conftest.o conftest.s >&5'
25554 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
25555 (eval $ac_try) 2>&5
25556 ac_status=$?
25557 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25558 test $ac_status = 0; }; }
25559 then
25560 gcc_cv_as_powerpc_dfp=yes
25561 else
25562 echo "configure: failed program was" >&5
25563 cat conftest.s >&5
25565 rm -f conftest.o conftest.s
25568 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_powerpc_dfp" >&5
25569 $as_echo "$gcc_cv_as_powerpc_dfp" >&6; }
25570 if test $gcc_cv_as_powerpc_dfp = yes; then
25572 $as_echo "#define HAVE_AS_DFP 1" >>confdefs.h
25576 case $target in
25577 *-*-aix*) conftest_s=' .machine "pwr7"
25578 .csect .text[PR]
25579 lxvd2x 1,2,3';;
25580 *) conftest_s=' .machine power7
25581 .text
25582 lxvd2x 1,2,3';;
25583 esac
25585 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for vector-scalar support" >&5
25586 $as_echo_n "checking assembler for vector-scalar support... " >&6; }
25587 if test "${gcc_cv_as_powerpc_vsx+set}" = set; then :
25588 $as_echo_n "(cached) " >&6
25589 else
25590 gcc_cv_as_powerpc_vsx=no
25591 if test $in_tree_gas = yes; then
25592 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 19 \) \* 1000 + 2`
25593 then gcc_cv_as_powerpc_vsx=yes
25595 elif test x$gcc_cv_as != x; then
25596 $as_echo "$conftest_s" > conftest.s
25597 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -a32 -o conftest.o conftest.s >&5'
25598 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
25599 (eval $ac_try) 2>&5
25600 ac_status=$?
25601 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25602 test $ac_status = 0; }; }
25603 then
25604 gcc_cv_as_powerpc_vsx=yes
25605 else
25606 echo "configure: failed program was" >&5
25607 cat conftest.s >&5
25609 rm -f conftest.o conftest.s
25612 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_powerpc_vsx" >&5
25613 $as_echo "$gcc_cv_as_powerpc_vsx" >&6; }
25614 if test $gcc_cv_as_powerpc_vsx = yes; then
25616 $as_echo "#define HAVE_AS_VSX 1" >>confdefs.h
25620 case $target in
25621 *-*-aix*) conftest_s=' .machine "pwr7"
25622 .csect .text[PR]
25623 popcntd 3,3';;
25624 *) conftest_s=' .machine power7
25625 .text
25626 popcntd 3,3';;
25627 esac
25629 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for popcntd support" >&5
25630 $as_echo_n "checking assembler for popcntd support... " >&6; }
25631 if test "${gcc_cv_as_powerpc_popcntd+set}" = set; then :
25632 $as_echo_n "(cached) " >&6
25633 else
25634 gcc_cv_as_powerpc_popcntd=no
25635 if test $in_tree_gas = yes; then
25636 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 19 \) \* 1000 + 2`
25637 then gcc_cv_as_powerpc_popcntd=yes
25639 elif test x$gcc_cv_as != x; then
25640 $as_echo "$conftest_s" > conftest.s
25641 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -a32 -o conftest.o conftest.s >&5'
25642 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
25643 (eval $ac_try) 2>&5
25644 ac_status=$?
25645 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25646 test $ac_status = 0; }; }
25647 then
25648 gcc_cv_as_powerpc_popcntd=yes
25649 else
25650 echo "configure: failed program was" >&5
25651 cat conftest.s >&5
25653 rm -f conftest.o conftest.s
25656 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_powerpc_popcntd" >&5
25657 $as_echo "$gcc_cv_as_powerpc_popcntd" >&6; }
25658 if test $gcc_cv_as_powerpc_popcntd = yes; then
25660 $as_echo "#define HAVE_AS_POPCNTD 1" >>confdefs.h
25664 case $target in
25665 *-*-aix*) conftest_s=' .machine "pwr8"
25666 .csect .text[PR]';;
25667 *) conftest_s=' .machine power8
25668 .text';;
25669 esac
25671 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for power8 support" >&5
25672 $as_echo_n "checking assembler for power8 support... " >&6; }
25673 if test "${gcc_cv_as_powerpc_power8+set}" = set; then :
25674 $as_echo_n "(cached) " >&6
25675 else
25676 gcc_cv_as_powerpc_power8=no
25677 if test $in_tree_gas = yes; then
25678 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 19 \) \* 1000 + 2`
25679 then gcc_cv_as_powerpc_power8=yes
25681 elif test x$gcc_cv_as != x; then
25682 $as_echo "$conftest_s" > conftest.s
25683 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -a32 -o conftest.o conftest.s >&5'
25684 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
25685 (eval $ac_try) 2>&5
25686 ac_status=$?
25687 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25688 test $ac_status = 0; }; }
25689 then
25690 gcc_cv_as_powerpc_power8=yes
25691 else
25692 echo "configure: failed program was" >&5
25693 cat conftest.s >&5
25695 rm -f conftest.o conftest.s
25698 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_powerpc_power8" >&5
25699 $as_echo "$gcc_cv_as_powerpc_power8" >&6; }
25700 if test $gcc_cv_as_powerpc_power8 = yes; then
25702 $as_echo "#define HAVE_AS_POWER8 1" >>confdefs.h
25706 case $target in
25707 *-*-aix*) conftest_s=' .csect .text[PR]
25708 lwsync';;
25709 *) conftest_s=' .text
25710 lwsync';;
25711 esac
25713 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for lwsync support" >&5
25714 $as_echo_n "checking assembler for lwsync support... " >&6; }
25715 if test "${gcc_cv_as_powerpc_lwsync+set}" = set; then :
25716 $as_echo_n "(cached) " >&6
25717 else
25718 gcc_cv_as_powerpc_lwsync=no
25719 if test $in_tree_gas = yes; then
25720 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 19 \) \* 1000 + 2`
25721 then gcc_cv_as_powerpc_lwsync=yes
25723 elif test x$gcc_cv_as != x; then
25724 $as_echo "$conftest_s" > conftest.s
25725 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -a32 -o conftest.o conftest.s >&5'
25726 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
25727 (eval $ac_try) 2>&5
25728 ac_status=$?
25729 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25730 test $ac_status = 0; }; }
25731 then
25732 gcc_cv_as_powerpc_lwsync=yes
25733 else
25734 echo "configure: failed program was" >&5
25735 cat conftest.s >&5
25737 rm -f conftest.o conftest.s
25740 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_powerpc_lwsync" >&5
25741 $as_echo "$gcc_cv_as_powerpc_lwsync" >&6; }
25742 if test $gcc_cv_as_powerpc_lwsync = yes; then
25744 $as_echo "#define HAVE_AS_LWSYNC 1" >>confdefs.h
25748 case $target in
25749 *-*-aix*) conftest_s=' .machine "476"
25750 .csect .text[PR]
25751 dci 0';;
25752 *) conftest_s=' .machine "476"
25753 .text
25754 dci 0';;
25755 esac
25757 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for data cache invalidate support" >&5
25758 $as_echo_n "checking assembler for data cache invalidate support... " >&6; }
25759 if test "${gcc_cv_as_powerpc_dci+set}" = set; then :
25760 $as_echo_n "(cached) " >&6
25761 else
25762 gcc_cv_as_powerpc_dci=no
25763 if test $in_tree_gas = yes; then
25764 if test $gcc_cv_gas_vers -ge `expr \( \( 9 \* 1000 \) + 99 \) \* 1000 + 0`
25765 then gcc_cv_as_powerpc_dci=yes
25767 elif test x$gcc_cv_as != x; then
25768 $as_echo "$conftest_s" > conftest.s
25769 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -a32 -o conftest.o conftest.s >&5'
25770 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
25771 (eval $ac_try) 2>&5
25772 ac_status=$?
25773 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25774 test $ac_status = 0; }; }
25775 then
25776 gcc_cv_as_powerpc_dci=yes
25777 else
25778 echo "configure: failed program was" >&5
25779 cat conftest.s >&5
25781 rm -f conftest.o conftest.s
25784 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_powerpc_dci" >&5
25785 $as_echo "$gcc_cv_as_powerpc_dci" >&6; }
25786 if test $gcc_cv_as_powerpc_dci = yes; then
25788 $as_echo "#define HAVE_AS_DCI 1" >>confdefs.h
25792 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .gnu_attribute support" >&5
25793 $as_echo_n "checking assembler for .gnu_attribute support... " >&6; }
25794 if test "${gcc_cv_as_powerpc_gnu_attribute+set}" = set; then :
25795 $as_echo_n "(cached) " >&6
25796 else
25797 gcc_cv_as_powerpc_gnu_attribute=no
25798 if test $in_tree_gas = yes; then
25799 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 18 \) \* 1000 + 0`
25800 then gcc_cv_as_powerpc_gnu_attribute=yes
25802 elif test x$gcc_cv_as != x; then
25803 $as_echo '.gnu_attribute 4,1' > conftest.s
25804 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
25805 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
25806 (eval $ac_try) 2>&5
25807 ac_status=$?
25808 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25809 test $ac_status = 0; }; }
25810 then
25811 gcc_cv_as_powerpc_gnu_attribute=yes
25812 else
25813 echo "configure: failed program was" >&5
25814 cat conftest.s >&5
25816 rm -f conftest.o conftest.s
25819 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_powerpc_gnu_attribute" >&5
25820 $as_echo "$gcc_cv_as_powerpc_gnu_attribute" >&6; }
25821 if test $gcc_cv_as_powerpc_gnu_attribute = yes; then
25823 $as_echo "#define HAVE_AS_GNU_ATTRIBUTE 1" >>confdefs.h
25827 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for tls marker support" >&5
25828 $as_echo_n "checking assembler for tls marker support... " >&6; }
25829 if test "${gcc_cv_as_powerpc_tls_markers+set}" = set; then :
25830 $as_echo_n "(cached) " >&6
25831 else
25832 gcc_cv_as_powerpc_tls_markers=no
25833 if test $in_tree_gas = yes; then
25834 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 20 \) \* 1000 + 0`
25835 then gcc_cv_as_powerpc_tls_markers=yes
25837 elif test x$gcc_cv_as != x; then
25838 $as_echo ' bl __tls_get_addr(x@tlsgd)' > conftest.s
25839 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
25840 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
25841 (eval $ac_try) 2>&5
25842 ac_status=$?
25843 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25844 test $ac_status = 0; }; }
25845 then
25846 gcc_cv_as_powerpc_tls_markers=yes
25847 else
25848 echo "configure: failed program was" >&5
25849 cat conftest.s >&5
25851 rm -f conftest.o conftest.s
25854 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_powerpc_tls_markers" >&5
25855 $as_echo "$gcc_cv_as_powerpc_tls_markers" >&6; }
25856 if test $gcc_cv_as_powerpc_tls_markers = yes; then
25858 $as_echo "#define HAVE_AS_TLS_MARKERS 1" >>confdefs.h
25862 case $target in
25863 *-*-aix*)
25864 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .ref support" >&5
25865 $as_echo_n "checking assembler for .ref support... " >&6; }
25866 if test "${gcc_cv_as_aix_ref+set}" = set; then :
25867 $as_echo_n "(cached) " >&6
25868 else
25869 gcc_cv_as_aix_ref=no
25870 if test $in_tree_gas = yes; then
25871 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 21 \) \* 1000 + 0`
25872 then gcc_cv_as_aix_ref=yes
25874 elif test x$gcc_cv_as != x; then
25875 $as_echo ' .csect stuff[rw]
25876 stuff:
25877 .long 1
25878 .extern sym
25879 .ref sym
25880 ' > conftest.s
25881 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
25882 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
25883 (eval $ac_try) 2>&5
25884 ac_status=$?
25885 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25886 test $ac_status = 0; }; }
25887 then
25888 gcc_cv_as_aix_ref=yes
25889 else
25890 echo "configure: failed program was" >&5
25891 cat conftest.s >&5
25893 rm -f conftest.o conftest.s
25896 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_aix_ref" >&5
25897 $as_echo "$gcc_cv_as_aix_ref" >&6; }
25898 if test $gcc_cv_as_aix_ref = yes; then
25900 $as_echo "#define HAVE_AS_REF 1" >>confdefs.h
25904 esac
25907 mips*-*-*)
25908 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for explicit relocation support" >&5
25909 $as_echo_n "checking assembler for explicit relocation support... " >&6; }
25910 if test "${gcc_cv_as_mips_explicit_relocs+set}" = set; then :
25911 $as_echo_n "(cached) " >&6
25912 else
25913 gcc_cv_as_mips_explicit_relocs=no
25914 if test $in_tree_gas = yes; then
25915 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 14 \) \* 1000 + 0`
25916 then gcc_cv_as_mips_explicit_relocs=yes
25918 elif test x$gcc_cv_as != x; then
25919 $as_echo ' lw $4,%gp_rel(foo)($4)' > conftest.s
25920 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
25921 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
25922 (eval $ac_try) 2>&5
25923 ac_status=$?
25924 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25925 test $ac_status = 0; }; }
25926 then
25927 gcc_cv_as_mips_explicit_relocs=yes
25928 else
25929 echo "configure: failed program was" >&5
25930 cat conftest.s >&5
25932 rm -f conftest.o conftest.s
25935 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_mips_explicit_relocs" >&5
25936 $as_echo "$gcc_cv_as_mips_explicit_relocs" >&6; }
25937 if test $gcc_cv_as_mips_explicit_relocs = yes; then
25938 if test x$target_cpu_default = x
25939 then target_cpu_default=MASK_EXPLICIT_RELOCS
25940 else target_cpu_default="($target_cpu_default)|MASK_EXPLICIT_RELOCS"
25943 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for -mno-shared support" >&5
25944 $as_echo_n "checking assembler for -mno-shared support... " >&6; }
25945 if test "${gcc_cv_as_mips_no_shared+set}" = set; then :
25946 $as_echo_n "(cached) " >&6
25947 else
25948 gcc_cv_as_mips_no_shared=no
25949 if test $in_tree_gas = yes; then
25950 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 16 \) \* 1000 + 0`
25951 then gcc_cv_as_mips_no_shared=yes
25953 elif test x$gcc_cv_as != x; then
25954 $as_echo 'nop' > conftest.s
25955 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -mno-shared -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_mips_no_shared=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_mips_no_shared" >&5
25971 $as_echo "$gcc_cv_as_mips_no_shared" >&6; }
25972 if test $gcc_cv_as_mips_no_shared = yes; then
25974 $as_echo "#define HAVE_AS_NO_SHARED 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_mips_gnu_attribute+set}" = set; then :
25981 $as_echo_n "(cached) " >&6
25982 else
25983 gcc_cv_as_mips_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_mips_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_mips_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_mips_gnu_attribute" >&5
26006 $as_echo "$gcc_cv_as_mips_gnu_attribute" >&6; }
26007 if test $gcc_cv_as_mips_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 .micromips support" >&5
26014 $as_echo_n "checking assembler for .micromips support... " >&6; }
26015 if test "${gcc_cv_as_micromips_support+set}" = set; then :
26016 $as_echo_n "(cached) " >&6
26017 else
26018 gcc_cv_as_micromips_support=no
26019 if test x$gcc_cv_as != x; then
26020 $as_echo '.set micromips' > conftest.s
26021 if { ac_try='$gcc_cv_as $gcc_cv_as_flags --fatal-warnings -o conftest.o conftest.s >&5'
26022 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
26023 (eval $ac_try) 2>&5
26024 ac_status=$?
26025 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
26026 test $ac_status = 0; }; }
26027 then
26028 gcc_cv_as_micromips_support=yes
26029 else
26030 echo "configure: failed program was" >&5
26031 cat conftest.s >&5
26033 rm -f conftest.o conftest.s
26036 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_micromips_support" >&5
26037 $as_echo "$gcc_cv_as_micromips_support" >&6; }
26038 if test $gcc_cv_as_micromips_support = yes; then
26040 $as_echo "#define HAVE_GAS_MICROMIPS 1" >>confdefs.h
26044 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .dtprelword support" >&5
26045 $as_echo_n "checking assembler for .dtprelword support... " >&6; }
26046 if test "${gcc_cv_as_mips_dtprelword+set}" = set; then :
26047 $as_echo_n "(cached) " >&6
26048 else
26049 gcc_cv_as_mips_dtprelword=no
26050 if test $in_tree_gas = yes; then
26051 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 18 \) \* 1000 + 0`
26052 then gcc_cv_as_mips_dtprelword=yes
26054 elif test x$gcc_cv_as != x; then
26055 $as_echo '.section .tdata,"awT",@progbits
26057 .word 2
26058 .text
26059 .dtprelword x+0x8000' > conftest.s
26060 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
26061 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
26062 (eval $ac_try) 2>&5
26063 ac_status=$?
26064 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
26065 test $ac_status = 0; }; }
26066 then
26067 gcc_cv_as_mips_dtprelword=yes
26068 else
26069 echo "configure: failed program was" >&5
26070 cat conftest.s >&5
26072 rm -f conftest.o conftest.s
26075 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_mips_dtprelword" >&5
26076 $as_echo "$gcc_cv_as_mips_dtprelword" >&6; }
26077 if test $gcc_cv_as_mips_dtprelword = yes; then
26079 $as_echo "#define HAVE_AS_DTPRELWORD 1" >>confdefs.h
26083 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for DSPR1 mult with four accumulators support" >&5
26084 $as_echo_n "checking assembler for DSPR1 mult with four accumulators support... " >&6; }
26085 if test "${gcc_cv_as_mips_dspr1_mult+set}" = set; then :
26086 $as_echo_n "(cached) " >&6
26087 else
26088 gcc_cv_as_mips_dspr1_mult=no
26089 if test x$gcc_cv_as != x; then
26090 $as_echo ' .set mips32r2
26091 .set nodspr2
26092 .set dsp
26093 madd $ac3,$4,$5
26094 maddu $ac3,$4,$5
26095 msub $ac3,$4,$5
26096 msubu $ac3,$4,$5
26097 mult $ac3,$4,$5
26098 multu $ac3,$4,$5' > conftest.s
26099 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
26100 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
26101 (eval $ac_try) 2>&5
26102 ac_status=$?
26103 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
26104 test $ac_status = 0; }; }
26105 then
26106 gcc_cv_as_mips_dspr1_mult=yes
26107 else
26108 echo "configure: failed program was" >&5
26109 cat conftest.s >&5
26111 rm -f conftest.o conftest.s
26114 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_mips_dspr1_mult" >&5
26115 $as_echo "$gcc_cv_as_mips_dspr1_mult" >&6; }
26116 if test $gcc_cv_as_mips_dspr1_mult = yes; then
26118 $as_echo "#define HAVE_AS_DSPR1_MULT 1" >>confdefs.h
26122 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler and linker for explicit JALR relocation" >&5
26123 $as_echo_n "checking assembler and linker for explicit JALR relocation... " >&6; }
26124 gcc_cv_as_ld_jalr_reloc=no
26125 if test $gcc_cv_as_mips_explicit_relocs = yes; then
26126 if test $in_tree_ld = yes ; then
26127 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 \
26128 && test $in_tree_ld_is_elf = yes; then
26129 gcc_cv_as_ld_jalr_reloc=yes
26131 elif test x$gcc_cv_as != x -a x$gcc_cv_ld != x -a x$gcc_cv_objdump != x; then
26132 echo ' .ent x' > conftest.s
26133 echo 'x: ld $2,%got_disp(y)($3)' >> conftest.s
26134 echo ' ld $25,%call16(y)($28)' >> conftest.s
26135 echo ' .reloc 1f,R_MIPS_JALR,y' >> conftest.s
26136 echo '1: jalr $25' >> conftest.s
26137 echo ' .reloc 1f,R_MIPS_JALR,x' >> conftest.s
26138 echo '1: jalr $25' >> conftest.s
26139 echo ' .end x' >> conftest.s
26140 if $gcc_cv_as -o conftest.o conftest.s >/dev/null 2>&5 \
26141 && $gcc_cv_ld -shared -o conftest.so conftest.o >/dev/null 2>&5; then
26142 if $gcc_cv_objdump -d conftest.so | grep jalr >/dev/null 2>&1 \
26143 && $gcc_cv_objdump -d conftest.so | grep "bal.*<x>" >/dev/null 2>&1; then
26144 gcc_cv_as_ld_jalr_reloc=yes
26147 rm -f conftest.*
26150 if test $gcc_cv_as_ld_jalr_reloc = yes; then
26151 if test x$target_cpu_default = x; then
26152 target_cpu_default=MASK_RELAX_PIC_CALLS
26153 else
26154 target_cpu_default="($target_cpu_default)|MASK_RELAX_PIC_CALLS"
26157 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_ld_jalr_reloc" >&5
26158 $as_echo "$gcc_cv_as_ld_jalr_reloc" >&6; }
26160 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker for .eh_frame personality relaxation" >&5
26161 $as_echo_n "checking linker for .eh_frame personality relaxation... " >&6; }
26162 if test "${gcc_cv_ld_mips_personality_relaxation+set}" = set; then :
26163 $as_echo_n "(cached) " >&6
26164 else
26165 gcc_cv_ld_mips_personality_relaxation=no
26166 if test $in_tree_ld = yes ; then
26167 if test "$gcc_cv_gld_major_version" -eq 2 \
26168 -a "$gcc_cv_gld_minor_version" -ge 21 \
26169 -o "$gcc_cv_gld_major_version" -gt 2; then
26170 gcc_cv_ld_mips_personality_relaxation=yes
26172 elif test x$gcc_cv_as != x \
26173 -a x$gcc_cv_ld != x \
26174 -a x$gcc_cv_readelf != x ; then
26175 cat > conftest.s <<EOF
26176 .cfi_startproc
26177 .cfi_personality 0x80,indirect_ptr
26178 .ent test
26179 test:
26181 .end test
26182 .cfi_endproc
26184 .section .data,"aw",@progbits
26185 indirect_ptr:
26186 .dc.a personality
26188 if $gcc_cv_as -KPIC -o conftest.o conftest.s > /dev/null 2>&1 \
26189 && $gcc_cv_ld -o conftest conftest.o -shared > /dev/null 2>&1; then
26190 if $gcc_cv_readelf -d conftest 2>&1 \
26191 | grep TEXTREL > /dev/null 2>&1; then
26193 elif $gcc_cv_readelf --relocs conftest 2>&1 \
26194 | grep 'R_MIPS_REL32 *$' > /dev/null 2>&1; then
26196 else
26197 gcc_cv_ld_mips_personality_relaxation=yes
26201 rm -f conftest.s conftest.o conftest
26203 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_mips_personality_relaxation" >&5
26204 $as_echo "$gcc_cv_ld_mips_personality_relaxation" >&6; }
26205 if test x$gcc_cv_ld_mips_personality_relaxation = xyes; then
26207 $as_echo "#define HAVE_LD_PERSONALITY_RELAXATION 1" >>confdefs.h
26211 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for -mnan= support" >&5
26212 $as_echo_n "checking assembler for -mnan= support... " >&6; }
26213 if test "${gcc_cv_as_mips_nan+set}" = set; then :
26214 $as_echo_n "(cached) " >&6
26215 else
26216 gcc_cv_as_mips_nan=no
26217 if test x$gcc_cv_as != x; then
26218 $as_echo '' > conftest.s
26219 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -mnan=2008 -o conftest.o conftest.s >&5'
26220 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
26221 (eval $ac_try) 2>&5
26222 ac_status=$?
26223 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
26224 test $ac_status = 0; }; }
26225 then
26226 gcc_cv_as_mips_nan=yes
26227 else
26228 echo "configure: failed program was" >&5
26229 cat conftest.s >&5
26231 rm -f conftest.o conftest.s
26234 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_mips_nan" >&5
26235 $as_echo "$gcc_cv_as_mips_nan" >&6; }
26236 if test $gcc_cv_as_mips_nan = yes; then
26238 $as_echo "#define HAVE_AS_NAN 1" >>confdefs.h
26241 if test x$gcc_cv_as_mips_nan = xno \
26242 && test x$with_nan != x; then
26243 as_fn_error "Requesting --with-nan= requires assembler support for -mnan=" "$LINENO" 5
26246 esac
26248 # Mips and HP-UX need the GNU assembler.
26249 # Linux on IA64 might be able to use the Intel assembler.
26251 case "$target" in
26252 mips*-*-* | *-*-hpux* )
26253 if test x$gas_flag = xyes \
26254 || test x"$host" != x"$build" \
26255 || test ! -x "$gcc_cv_as" \
26256 || "$gcc_cv_as" -v < /dev/null 2>&1 | grep GNU > /dev/null; then
26258 else
26259 echo "*** This configuration requires the GNU assembler" >&2
26260 exit 1
26263 esac
26265 # ??? Not all targets support dwarf2 debug_line, even within a version
26266 # of gas. Moreover, we need to emit a valid instruction to trigger any
26267 # info to the output file. So, as supported targets are added to gas 2.11,
26268 # add some instruction here to (also) show we expect this might work.
26269 # ??? Once 2.11 is released, probably need to add first known working
26270 # version to the per-target configury.
26271 case "$cpu_type" in
26272 aarch64 | alpha | arm | avr | bfin | cris | i386 | m32c | m68k | microblaze \
26273 | mips | nios2 | pa | rs6000 | score | sparc | spu | tilegx | tilepro \
26274 | xstormy16 | xtensa)
26275 insn="nop"
26277 ia64 | s390)
26278 insn="nop 0"
26280 mmix)
26281 insn="swym 0"
26283 esac
26284 if test x"$insn" != x; then
26285 conftest_s="\
26286 .file 1 \"conftest.s\"
26287 .loc 1 3 0
26288 $insn"
26289 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for dwarf2 debug_line support" >&5
26290 $as_echo_n "checking assembler for dwarf2 debug_line support... " >&6; }
26291 if test "${gcc_cv_as_dwarf2_debug_line+set}" = set; then :
26292 $as_echo_n "(cached) " >&6
26293 else
26294 gcc_cv_as_dwarf2_debug_line=no
26295 if test $in_tree_gas = yes; then
26296 if test $in_tree_gas_is_elf = yes \
26297 && test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 11 \) \* 1000 + 0`
26298 then gcc_cv_as_dwarf2_debug_line=yes
26300 elif test x$gcc_cv_as != x; then
26301 $as_echo "$conftest_s" > conftest.s
26302 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
26303 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
26304 (eval $ac_try) 2>&5
26305 ac_status=$?
26306 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
26307 test $ac_status = 0; }; }
26308 then
26309 if test x$gcc_cv_objdump != x \
26310 && $gcc_cv_objdump -h conftest.o 2> /dev/null \
26311 | grep debug_line > /dev/null 2>&1; then
26312 gcc_cv_as_dwarf2_debug_line=yes
26314 else
26315 echo "configure: failed program was" >&5
26316 cat conftest.s >&5
26318 rm -f conftest.o conftest.s
26321 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_dwarf2_debug_line" >&5
26322 $as_echo "$gcc_cv_as_dwarf2_debug_line" >&6; }
26325 # The .debug_line file table must be in the exact order that
26326 # we specified the files, since these indices are also used
26327 # by DW_AT_decl_file. Approximate this test by testing if
26328 # the assembler bitches if the same index is assigned twice.
26329 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for buggy dwarf2 .file directive" >&5
26330 $as_echo_n "checking assembler for buggy dwarf2 .file directive... " >&6; }
26331 if test "${gcc_cv_as_dwarf2_file_buggy+set}" = set; then :
26332 $as_echo_n "(cached) " >&6
26333 else
26334 gcc_cv_as_dwarf2_file_buggy=no
26335 if test x$gcc_cv_as != x; then
26336 $as_echo ' .file 1 "foo.s"
26337 .file 1 "bar.s"' > conftest.s
26338 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
26339 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
26340 (eval $ac_try) 2>&5
26341 ac_status=$?
26342 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
26343 test $ac_status = 0; }; }
26344 then
26345 gcc_cv_as_dwarf2_file_buggy=yes
26346 else
26347 echo "configure: failed program was" >&5
26348 cat conftest.s >&5
26350 rm -f conftest.o conftest.s
26353 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_dwarf2_file_buggy" >&5
26354 $as_echo "$gcc_cv_as_dwarf2_file_buggy" >&6; }
26357 if test $gcc_cv_as_dwarf2_debug_line = yes \
26358 && test $gcc_cv_as_dwarf2_file_buggy = no; then
26360 $as_echo "#define HAVE_AS_DWARF2_DEBUG_LINE 1" >>confdefs.h
26364 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for --gdwarf2 option" >&5
26365 $as_echo_n "checking assembler for --gdwarf2 option... " >&6; }
26366 if test "${gcc_cv_as_gdwarf2_flag+set}" = set; then :
26367 $as_echo_n "(cached) " >&6
26368 else
26369 gcc_cv_as_gdwarf2_flag=no
26370 if test $in_tree_gas = yes; then
26371 if test $in_tree_gas_is_elf = yes \
26372 && test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 11 \) \* 1000 + 0`
26373 then gcc_cv_as_gdwarf2_flag=yes
26375 elif test x$gcc_cv_as != x; then
26376 $as_echo "$insn" > conftest.s
26377 if { ac_try='$gcc_cv_as $gcc_cv_as_flags --gdwarf2 -o conftest.o conftest.s >&5'
26378 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
26379 (eval $ac_try) 2>&5
26380 ac_status=$?
26381 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
26382 test $ac_status = 0; }; }
26383 then
26384 gcc_cv_as_gdwarf2_flag=yes
26385 else
26386 echo "configure: failed program was" >&5
26387 cat conftest.s >&5
26389 rm -f conftest.o conftest.s
26392 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_gdwarf2_flag" >&5
26393 $as_echo "$gcc_cv_as_gdwarf2_flag" >&6; }
26394 if test $gcc_cv_as_gdwarf2_flag = yes; then
26396 $as_echo "#define HAVE_AS_GDWARF2_DEBUG_FLAG 1" >>confdefs.h
26400 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for --gstabs option" >&5
26401 $as_echo_n "checking assembler for --gstabs option... " >&6; }
26402 if test "${gcc_cv_as_gstabs_flag+set}" = set; then :
26403 $as_echo_n "(cached) " >&6
26404 else
26405 gcc_cv_as_gstabs_flag=no
26406 if test $in_tree_gas = yes; then
26407 if test $in_tree_gas_is_elf = yes \
26408 && test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 11 \) \* 1000 + 0`
26409 then gcc_cv_as_gstabs_flag=yes
26411 elif test x$gcc_cv_as != x; then
26412 $as_echo "$insn" > conftest.s
26413 if { ac_try='$gcc_cv_as $gcc_cv_as_flags --gstabs -o conftest.o conftest.s >&5'
26414 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
26415 (eval $ac_try) 2>&5
26416 ac_status=$?
26417 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
26418 test $ac_status = 0; }; }
26419 then
26420 gcc_cv_as_gstabs_flag=yes
26421 else
26422 echo "configure: failed program was" >&5
26423 cat conftest.s >&5
26425 rm -f conftest.o conftest.s
26428 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_gstabs_flag" >&5
26429 $as_echo "$gcc_cv_as_gstabs_flag" >&6; }
26430 if test $gcc_cv_as_gstabs_flag = yes; then
26432 $as_echo "#define HAVE_AS_GSTABS_DEBUG_FLAG 1" >>confdefs.h
26436 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for --debug-prefix-map option" >&5
26437 $as_echo_n "checking assembler for --debug-prefix-map option... " >&6; }
26438 if test "${gcc_cv_as_debug_prefix_map_flag+set}" = set; then :
26439 $as_echo_n "(cached) " >&6
26440 else
26441 gcc_cv_as_debug_prefix_map_flag=no
26442 if test $in_tree_gas = yes; then
26443 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 18 \) \* 1000 + 0`
26444 then gcc_cv_as_debug_prefix_map_flag=yes
26446 elif test x$gcc_cv_as != x; then
26447 $as_echo "$insn" > conftest.s
26448 if { ac_try='$gcc_cv_as $gcc_cv_as_flags --debug-prefix-map /a=/b -o conftest.o conftest.s >&5'
26449 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
26450 (eval $ac_try) 2>&5
26451 ac_status=$?
26452 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
26453 test $ac_status = 0; }; }
26454 then
26455 gcc_cv_as_debug_prefix_map_flag=yes
26456 else
26457 echo "configure: failed program was" >&5
26458 cat conftest.s >&5
26460 rm -f conftest.o conftest.s
26463 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_debug_prefix_map_flag" >&5
26464 $as_echo "$gcc_cv_as_debug_prefix_map_flag" >&6; }
26465 if test $gcc_cv_as_debug_prefix_map_flag = yes; then
26467 $as_echo "#define HAVE_AS_DEBUG_PREFIX_MAP 1" >>confdefs.h
26472 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .lcomm with alignment" >&5
26473 $as_echo_n "checking assembler for .lcomm with alignment... " >&6; }
26474 if test "${gcc_cv_as_lcomm_with_alignment+set}" = set; then :
26475 $as_echo_n "(cached) " >&6
26476 else
26477 gcc_cv_as_lcomm_with_alignment=no
26478 if test x$gcc_cv_as != x; then
26479 $as_echo '.lcomm bar,4,16' > conftest.s
26480 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
26481 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
26482 (eval $ac_try) 2>&5
26483 ac_status=$?
26484 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
26485 test $ac_status = 0; }; }
26486 then
26487 gcc_cv_as_lcomm_with_alignment=yes
26488 else
26489 echo "configure: failed program was" >&5
26490 cat conftest.s >&5
26492 rm -f conftest.o conftest.s
26495 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_lcomm_with_alignment" >&5
26496 $as_echo "$gcc_cv_as_lcomm_with_alignment" >&6; }
26497 if test $gcc_cv_as_lcomm_with_alignment = yes; then
26499 $as_echo "#define HAVE_GAS_LCOMM_WITH_ALIGNMENT 1" >>confdefs.h
26503 if test x$with_sysroot = x && test x$host = x$target \
26504 && test "$prefix" != "/usr" && test "x$prefix" != "x$local_prefix" \
26505 && test "$prefix" != "NONE"; then
26507 cat >>confdefs.h <<_ACEOF
26508 #define PREFIX_INCLUDE_DIR "$prefix/include"
26509 _ACEOF
26513 if test x$host != x$target || test "x$TARGET_SYSTEM_ROOT" != x; then
26514 if test "x$with_headers" != x; then
26515 target_header_dir=$with_headers
26516 elif test "x$with_sysroot" = x; then
26517 target_header_dir="${test_exec_prefix}/${target_noncanonical}/sys-include"
26518 elif test "x$with_build_sysroot" != "x"; then
26519 target_header_dir="${with_build_sysroot}${native_system_header_dir}"
26520 elif test "x$with_sysroot" = xyes; then
26521 target_header_dir="${test_exec_prefix}/${target_noncanonical}/sys-root${native_system_header_dir}"
26522 else
26523 target_header_dir="${with_sysroot}${native_system_header_dir}"
26525 else
26526 target_header_dir=${native_system_header_dir}
26529 # Determine the version of glibc, if any, used on the target.
26530 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for target glibc version" >&5
26531 $as_echo_n "checking for target glibc version... " >&6; }
26533 # Check whether --with-glibc-version was given.
26534 if test "${with_glibc_version+set}" = set; then :
26535 withval=$with_glibc_version;
26536 if echo "$with_glibc_version" | grep '^[0-9][0-9]*\.[0-9][0-9]*$'; then
26537 glibc_version_major=`echo "$with_glibc_version" | sed -e 's/\..*//'`
26538 glibc_version_minor=`echo "$with_glibc_version" | sed -e 's/.*\.//'`
26539 else
26540 as_fn_error "option --with-glibc-version requires a version number M.N" "$LINENO" 5
26542 else
26544 glibc_version_major=0
26545 glibc_version_minor=0
26546 if test -f $target_header_dir/features.h \
26547 && glibc_version_major_define=`$EGREP '^[ ]*#[ ]*define[ ]+__GLIBC__[ ]+[0-9]' $target_header_dir/features.h` \
26548 && glibc_version_minor_define=`$EGREP '^[ ]*#[ ]*define[ ]+__GLIBC_MINOR__[ ]+[0-9]' $target_header_dir/features.h`; then
26549 glibc_version_major=`echo "$glibc_version_major_define" | sed -e 's/.*__GLIBC__[ ]*//'`
26550 glibc_version_minor=`echo "$glibc_version_minor_define" | sed -e 's/.*__GLIBC_MINOR__[ ]*//'`
26554 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $glibc_version_major.$glibc_version_minor" >&5
26555 $as_echo "$glibc_version_major.$glibc_version_minor" >&6; }
26557 # Check whether --enable-gnu-unique-object was given.
26558 if test "${enable_gnu_unique_object+set}" = set; then :
26559 enableval=$enable_gnu_unique_object; case $enable_gnu_unique_object in
26560 yes | no) ;;
26561 *) as_fn_error "'$enable_gnu_unique_object' is an invalid value for --enable-gnu-unique-object.
26562 Valid choices are 'yes' and 'no'." "$LINENO" 5 ;;
26563 esac
26564 else
26565 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for gnu_unique_object" >&5
26566 $as_echo_n "checking assembler for gnu_unique_object... " >&6; }
26567 if test "${gcc_cv_as_gnu_unique_object+set}" = set; then :
26568 $as_echo_n "(cached) " >&6
26569 else
26570 gcc_cv_as_gnu_unique_object=no
26571 if test $in_tree_gas = yes; then
26572 if test $in_tree_gas_is_elf = yes \
26573 && test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 19 \) \* 1000 + 52`
26574 then gcc_cv_as_gnu_unique_object=yes
26576 elif test x$gcc_cv_as != x; then
26577 $as_echo '.type foo, '$target_type_format_char'gnu_unique_object' > conftest.s
26578 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
26579 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
26580 (eval $ac_try) 2>&5
26581 ac_status=$?
26582 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
26583 test $ac_status = 0; }; }
26584 then
26585 gcc_cv_as_gnu_unique_object=yes
26586 else
26587 echo "configure: failed program was" >&5
26588 cat conftest.s >&5
26590 rm -f conftest.o conftest.s
26593 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_gnu_unique_object" >&5
26594 $as_echo "$gcc_cv_as_gnu_unique_object" >&6; }
26595 if test $gcc_cv_as_gnu_unique_object = yes; then
26596 # We need to unquote above to to use the definition from config.gcc.
26597 # Also check for ld.so support, i.e. glibc 2.11 or higher.
26599 if test $glibc_version_major -gt 2 \
26600 || ( test $glibc_version_major -eq 2 && test $glibc_version_minor -ge 11 ); then :
26601 enable_gnu_unique_object=yes
26607 if test x$enable_gnu_unique_object = xyes; then
26609 $as_echo "#define HAVE_GAS_GNU_UNIQUE_OBJECT 1" >>confdefs.h
26613 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for tolerance to line number 0" >&5
26614 $as_echo_n "checking assembler for tolerance to line number 0... " >&6; }
26615 if test "${gcc_cv_as_line_zero+set}" = set; then :
26616 $as_echo_n "(cached) " >&6
26617 else
26618 gcc_cv_as_line_zero=no
26619 if test $in_tree_gas = yes; then
26620 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 16 \) \* 1000 + 91`
26621 then gcc_cv_as_line_zero=yes
26623 elif test "x$gcc_cv_as" != x; then
26624 { echo '# 1 "test.s" 1'; echo '# 0 "" 2'; } > conftest.s
26625 if { ac_try='$gcc_cv_as -o conftest.o conftest.s >&5 2>conftest.out'
26626 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
26627 (eval $ac_try) 2>&5
26628 ac_status=$?
26629 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
26630 test $ac_status = 0; }; } &&
26631 test "x`cat conftest.out`" = x
26632 then
26633 gcc_cv_as_line_zero=yes
26634 else
26635 echo "configure: failed program was" >&5
26636 cat conftest.s >&5
26637 echo "configure: error output was" >&5
26638 cat conftest.out >&5
26640 rm -f conftest.o conftest.s conftest.out
26643 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_line_zero" >&5
26644 $as_echo "$gcc_cv_as_line_zero" >&6; }
26645 if test "x$gcc_cv_as_line_zero" = xyes; then
26647 $as_echo "#define HAVE_AS_LINE_ZERO 1" >>confdefs.h
26651 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker PT_GNU_EH_FRAME support" >&5
26652 $as_echo_n "checking linker PT_GNU_EH_FRAME support... " >&6; }
26653 gcc_cv_ld_eh_frame_hdr=no
26654 if test $in_tree_ld = yes ; then
26655 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 \
26656 && test $in_tree_ld_is_elf = yes; then
26657 gcc_cv_ld_eh_frame_hdr=yes
26659 elif test x$gcc_cv_ld != x; then
26660 if echo "$ld_ver" | grep GNU > /dev/null; then
26661 # Check if linker supports --eh-frame-hdr option
26662 if $gcc_cv_ld --help 2>/dev/null | grep eh-frame-hdr > /dev/null; then
26663 gcc_cv_ld_eh_frame_hdr=yes
26665 else
26666 case "$target" in
26667 *-*-solaris2*)
26668 # Sun ld has various bugs in .eh_frame_hdr support before version 1.2251.
26669 if test "$ld_vers_major" -gt 1 || test "$ld_vers_minor" -ge 2251; then
26670 gcc_cv_ld_eh_frame_hdr=yes
26673 esac
26677 if test x"$gcc_cv_ld_eh_frame_hdr" = xyes; then
26679 $as_echo "#define HAVE_LD_EH_FRAME_HDR 1" >>confdefs.h
26682 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_eh_frame_hdr" >&5
26683 $as_echo "$gcc_cv_ld_eh_frame_hdr" >&6; }
26685 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker CIEv3 in .eh_frame support" >&5
26686 $as_echo_n "checking linker CIEv3 in .eh_frame support... " >&6; }
26687 gcc_cv_ld_eh_frame_ciev3=no
26688 if test $in_tree_ld = yes ; then
26689 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 \
26690 && test $in_tree_ld_is_elf = yes; then
26691 gcc_cv_ld_eh_frame_ciev3=yes
26693 elif test x$gcc_cv_ld != x; then
26694 if echo "$ld_ver" | grep GNU > /dev/null; then
26695 gcc_cv_ld_eh_frame_ciev3=yes
26696 if test 0"$ld_date" -lt 20040513; then
26697 if test -n "$ld_date"; then
26698 # If there was date string, but was earlier than 2004-05-13, fail
26699 gcc_cv_ld_eh_frame_ciev3=no
26700 elif test "$ld_vers_major" -lt 2; then
26701 gcc_cv_ld_eh_frame_ciev3=no
26702 elif test "$ld_vers_major" -eq 2 -a "$ld_vers_minor" -lt 16; then
26703 gcc_cv_ld_eh_frame_ciev3=no
26706 else
26707 case "$target" in
26708 *-*-solaris2*)
26709 # Sun ld added support for CIE v3 in .eh_frame in Solaris 11.1.
26710 if test "$ld_vers_major" -gt 1 || test "$ld_vers_minor" -ge 2324; then
26711 gcc_cv_ld_eh_frame_ciev3=yes
26714 esac
26718 cat >>confdefs.h <<_ACEOF
26719 #define HAVE_LD_EH_FRAME_CIEV3 `if test x"$gcc_cv_ld_eh_frame_ciev3" = xyes; then echo 1; else echo 0; fi`
26720 _ACEOF
26722 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_eh_frame_ciev3" >&5
26723 $as_echo "$gcc_cv_ld_eh_frame_ciev3" >&6; }
26725 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker position independent executable support" >&5
26726 $as_echo_n "checking linker position independent executable support... " >&6; }
26727 gcc_cv_ld_pie=no
26728 if test $in_tree_ld = yes ; then
26729 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 \
26730 && test $in_tree_ld_is_elf = yes; then
26731 gcc_cv_ld_pie=yes
26733 elif test x$gcc_cv_ld != x; then
26734 # Check if linker supports -pie option
26735 if $gcc_cv_ld --help 2>/dev/null | grep -- -pie > /dev/null; then
26736 gcc_cv_ld_pie=yes
26739 if test x"$gcc_cv_ld_pie" = xyes; then
26741 $as_echo "#define HAVE_LD_PIE 1" >>confdefs.h
26744 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_pie" >&5
26745 $as_echo "$gcc_cv_ld_pie" >&6; }
26747 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker EH-compatible garbage collection of sections" >&5
26748 $as_echo_n "checking linker EH-compatible garbage collection of sections... " >&6; }
26749 gcc_cv_ld_eh_gc_sections=no
26750 if test $in_tree_ld = yes ; then
26751 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 \
26752 && test $in_tree_ld_is_elf = yes; then
26753 gcc_cv_ld_eh_gc_sections=yes
26755 elif test x$gcc_cv_as != x -a x$gcc_cv_ld != x -a x$gcc_cv_objdump != x ; then
26756 cat > conftest.s <<EOF
26757 .section .text
26758 .globl _start
26759 .type _start, @function
26760 _start:
26761 .long foo
26762 .size _start, .-_start
26763 .section .text.foo,"ax",@progbits
26764 .type foo, @function
26765 foo:
26766 .long 0
26767 .size foo, .-foo
26768 .section .gcc_except_table.foo,"a",@progbits
26769 .L0:
26770 .long 0
26771 .section .eh_frame,"a",@progbits
26772 .long .L0
26774 if $gcc_cv_as -o conftest.o conftest.s > /dev/null 2>&1; then
26775 if $gcc_cv_ld -o conftest conftest.o --entry=_start --gc-sections 2>&1 \
26776 | grep "gc-sections option ignored" > /dev/null; then
26777 gcc_cv_ld_eh_gc_sections=no
26778 elif $gcc_cv_objdump -h conftest 2> /dev/null \
26779 | grep gcc_except_table > /dev/null; then
26780 gcc_cv_ld_eh_gc_sections=yes
26781 # If no COMDAT groups, the compiler will emit .gnu.linkonce.t. sections.
26782 if test x$gcc_cv_as_comdat_group != xyes; then
26783 gcc_cv_ld_eh_gc_sections=no
26784 cat > conftest.s <<EOF
26785 .section .text
26786 .globl _start
26787 .type _start, @function
26788 _start:
26789 .long foo
26790 .size _start, .-_start
26791 .section .gnu.linkonce.t.foo,"ax",@progbits
26792 .type foo, @function
26793 foo:
26794 .long 0
26795 .size foo, .-foo
26796 .section .gcc_except_table.foo,"a",@progbits
26797 .L0:
26798 .long 0
26799 .section .eh_frame,"a",@progbits
26800 .long .L0
26802 if $gcc_cv_as -o conftest.o conftest.s > /dev/null 2>&1; then
26803 if $gcc_cv_ld -o conftest conftest.o --entry=_start --gc-sections 2>&1 \
26804 | grep "gc-sections option ignored" > /dev/null; then
26805 gcc_cv_ld_eh_gc_sections=no
26806 elif $gcc_cv_objdump -h conftest 2> /dev/null \
26807 | grep gcc_except_table > /dev/null; then
26808 gcc_cv_ld_eh_gc_sections=yes
26814 rm -f conftest.s conftest.o conftest
26816 case "$target" in
26817 hppa*-*-linux*)
26818 # ??? This apparently exposes a binutils bug with PC-relative relocations.
26819 gcc_cv_ld_eh_gc_sections=no
26821 esac
26822 if test x$gcc_cv_ld_eh_gc_sections = xyes; then
26824 $as_echo "#define HAVE_LD_EH_GC_SECTIONS 1" >>confdefs.h
26827 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_eh_gc_sections" >&5
26828 $as_echo "$gcc_cv_ld_eh_gc_sections" >&6; }
26830 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker EH garbage collection of sections bug" >&5
26831 $as_echo_n "checking linker EH garbage collection of sections bug... " >&6; }
26832 gcc_cv_ld_eh_gc_sections_bug=no
26833 if test $in_tree_ld = yes ; then
26834 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 \
26835 && test $in_tree_ld_is_elf = yes; then
26836 gcc_cv_ld_eh_gc_sections_bug=yes
26838 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
26839 gcc_cv_ld_eh_gc_sections_bug=yes
26840 cat > conftest.s <<EOF
26841 .section .text
26842 .globl _start
26843 .type _start, @function
26844 _start:
26845 .long foo
26846 .size _start, .-_start
26847 .section .text.startup.foo,"ax",@progbits
26848 .type foo, @function
26849 foo:
26850 .long 0
26851 .size foo, .-foo
26852 .section .gcc_except_table.foo,"a",@progbits
26853 .L0:
26854 .long 0
26855 .section .eh_frame,"a",@progbits
26856 .long .L0
26858 if $gcc_cv_as -o conftest.o conftest.s > /dev/null 2>&1; then
26859 if $gcc_cv_ld -o conftest conftest.o --entry=_start --gc-sections 2>&1 \
26860 | grep "gc-sections option ignored" > /dev/null; then
26862 elif $gcc_cv_objdump -h conftest 2> /dev/null \
26863 | grep gcc_except_table > /dev/null; then
26864 gcc_cv_ld_eh_gc_sections_bug=no
26867 rm -f conftest.s conftest.o conftest
26869 if test x$gcc_cv_ld_eh_gc_sections_bug = xyes; then
26871 $as_echo "#define HAVE_LD_EH_GC_SECTIONS_BUG 1" >>confdefs.h
26874 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_eh_gc_sections_bug" >&5
26875 $as_echo "$gcc_cv_ld_eh_gc_sections_bug" >&6; }
26877 # --------
26878 # UNSORTED
26879 # --------
26881 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker --as-needed support" >&5
26882 $as_echo_n "checking linker --as-needed support... " >&6; }
26883 if test "${gcc_cv_ld_as_needed+set}" = set; then :
26884 $as_echo_n "(cached) " >&6
26885 else
26886 gcc_cv_ld_as_needed=no
26887 gcc_cv_ld_as_needed_option='--as-needed'
26888 gcc_cv_ld_no_as_needed_option='--no-as-needed'
26889 if test $in_tree_ld = yes ; then
26890 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 \
26891 && test $in_tree_ld_is_elf = yes; then
26892 gcc_cv_ld_as_needed=yes
26894 elif test x$gcc_cv_ld != x; then
26895 # Check if linker supports --as-needed and --no-as-needed options
26896 if $gcc_cv_ld --help 2>/dev/null | grep as-needed > /dev/null; then
26897 gcc_cv_ld_as_needed=yes
26898 else
26899 case "$target" in
26900 # Solaris 2 ld always supports -z ignore/-z record.
26901 *-*-solaris2*)
26902 gcc_cv_ld_as_needed=yes
26903 gcc_cv_ld_as_needed_option="-z ignore"
26904 gcc_cv_ld_no_as_needed_option="-z record"
26906 esac
26909 # --as-needed/-z ignore can only be used if libgcc_s.so.1 uses
26910 # dl_iterate_phdr, i.e. since Solaris 11.
26911 case "$target" in
26912 *-*-solaris2.1[1-9]*)
26913 case "$target" in
26914 i?86-*-* | x86_64-*-*)
26915 if echo "$ld_ver" | grep GNU > /dev/null; then
26916 # Doesn't work with gld on Solaris/x86 due to PR ld/12320.
26917 gcc_cv_ld_as_needed=no
26920 esac
26922 *-*-solaris2*)
26923 gcc_cv_ld_as_needed=no
26925 esac
26928 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_as_needed" >&5
26929 $as_echo "$gcc_cv_ld_as_needed" >&6; }
26930 if test x"$gcc_cv_ld_as_needed" = xyes; then
26932 $as_echo "#define HAVE_LD_AS_NEEDED 1" >>confdefs.h
26935 cat >>confdefs.h <<_ACEOF
26936 #define LD_AS_NEEDED_OPTION "$gcc_cv_ld_as_needed_option"
26937 _ACEOF
26940 cat >>confdefs.h <<_ACEOF
26941 #define LD_NO_AS_NEEDED_OPTION "$gcc_cv_ld_no_as_needed_option"
26942 _ACEOF
26946 case "$target:$tm_file" in
26947 powerpc64-*-freebsd* | powerpc64*-*-linux* | powerpc*-*-linux*rs6000/biarch64.h*)
26948 case "$target" in
26949 *le-*-linux*)
26950 emul_name="-melf64lppc"
26952 *-*-linux*)
26953 emul_name="-melf64ppc"
26955 *-*-freebsd*)
26956 emul_name="-melf64ppc_fbsd"
26958 esac
26959 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker support for omitting dot symbols" >&5
26960 $as_echo_n "checking linker support for omitting dot symbols... " >&6; }
26961 if test "${gcc_cv_ld_no_dot_syms+set}" = set; then :
26962 $as_echo_n "(cached) " >&6
26963 else
26964 gcc_cv_ld_no_dot_syms=no
26965 if test x"$ld_is_gold" = xyes; then
26966 gcc_cv_ld_no_dot_syms=yes
26967 elif test $in_tree_ld = yes ; then
26968 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
26969 gcc_cv_ld_no_dot_syms=yes
26971 elif test x$gcc_cv_as != x -a x$gcc_cv_ld != x ; then
26972 cat > conftest1.s <<EOF
26973 .text
26974 bl .foo
26976 cat > conftest2.s <<EOF
26977 .section ".opd","aw"
26978 .align 3
26979 .globl foo
26980 .type foo,@function
26981 foo:
26982 .quad .LEfoo,.TOC.@tocbase,0
26983 .text
26984 .LEfoo:
26986 .size foo,.-.LEfoo
26988 if $gcc_cv_as -a64 -o conftest1.o conftest1.s > /dev/null 2>&1 \
26989 && $gcc_cv_as -a64 -o conftest2.o conftest2.s > /dev/null 2>&1 \
26990 && $gcc_cv_ld $emul_name -o conftest conftest1.o conftest2.o > /dev/null 2>&1; then
26991 gcc_cv_ld_no_dot_syms=yes
26993 rm -f conftest conftest1.o conftest2.o conftest1.s conftest2.s
26997 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_no_dot_syms" >&5
26998 $as_echo "$gcc_cv_ld_no_dot_syms" >&6; }
26999 if test x"$gcc_cv_ld_no_dot_syms" = xyes; then
27001 $as_echo "#define HAVE_LD_NO_DOT_SYMS 1" >>confdefs.h
27005 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker large toc support" >&5
27006 $as_echo_n "checking linker large toc support... " >&6; }
27007 if test "${gcc_cv_ld_large_toc+set}" = set; then :
27008 $as_echo_n "(cached) " >&6
27009 else
27010 gcc_cv_ld_large_toc=no
27011 if test x"$ld_is_gold" = xyes; then
27012 gcc_cv_ld_large_toc=yes
27013 elif test $in_tree_ld = yes ; then
27014 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
27015 gcc_cv_ld_large_toc=yes
27017 elif test x$gcc_cv_as != x -a x$gcc_cv_ld != x ; then
27018 cat > conftest.s <<EOF
27019 .section ".tbss","awT",@nobits
27020 .align 3
27021 ie0: .space 8
27022 .global _start
27023 .text
27024 _start:
27025 addis 9,13,ie0@got@tprel@ha
27026 ld 9,ie0@got@tprel@l(9)
27028 if $gcc_cv_as -a64 -o conftest.o conftest.s > /dev/null 2>&1 \
27029 && $gcc_cv_ld $emul_name --no-toc-sort -o conftest conftest.o > /dev/null 2>&1; then
27030 gcc_cv_ld_large_toc=yes
27032 rm -f conftest conftest.o conftest.s
27036 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_large_toc" >&5
27037 $as_echo "$gcc_cv_ld_large_toc" >&6; }
27038 if test x"$gcc_cv_ld_large_toc" = xyes; then
27040 $as_echo "#define HAVE_LD_LARGE_TOC 1" >>confdefs.h
27044 esac
27046 case "$target" in
27047 *-*-aix*)
27048 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker large toc support" >&5
27049 $as_echo_n "checking linker large toc support... " >&6; }
27050 if test "${gcc_cv_ld_large_toc+set}" = set; then :
27051 $as_echo_n "(cached) " >&6
27052 else
27053 gcc_cv_ld_large_toc=no
27054 if test x$gcc_cv_as != x ; then
27055 cat > conftest.s <<EOF
27056 .toc
27057 LC..1:
27058 .tc a[TC],a[RW]
27059 .extern a[RW]
27060 .csect .text[PR]
27061 .largetoctest:
27062 addis 9,LC..1@u(2)
27063 ld 3,LC..1@l(9)
27065 if $gcc_cv_as -a64 -o conftest.o conftest.s > /dev/null 2>&1; then
27066 gcc_cv_ld_large_toc=yes
27068 rm -f conftest conftest.o conftest.s
27072 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_large_toc" >&5
27073 $as_echo "$gcc_cv_ld_large_toc" >&6; }
27074 if test x"$gcc_cv_ld_large_toc" = xyes; then
27076 $as_echo "#define HAVE_LD_LARGE_TOC 1" >>confdefs.h
27080 esac
27082 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker --build-id support" >&5
27083 $as_echo_n "checking linker --build-id support... " >&6; }
27084 if test "${gcc_cv_ld_buildid+set}" = set; then :
27085 $as_echo_n "(cached) " >&6
27086 else
27087 gcc_cv_ld_buildid=no
27088 if test $in_tree_ld = yes ; then
27089 if test "$gcc_cv_gld_major_version" -eq 2 -a \
27090 "$gcc_cv_gld_minor_version" -ge 18 -o \
27091 "$gcc_cv_gld_major_version" -gt 2 \
27092 && test $in_tree_ld_is_elf = yes; then
27093 gcc_cv_ld_buildid=yes
27095 elif test x$gcc_cv_ld != x; then
27096 if $gcc_cv_ld --help 2>/dev/null | grep build-id > /dev/null; then
27097 gcc_cv_ld_buildid=yes
27101 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_buildid" >&5
27102 $as_echo "$gcc_cv_ld_buildid" >&6; }
27103 if test x"$gcc_cv_ld_buildid" = xyes; then
27105 $as_echo "#define HAVE_LD_BUILDID 1" >>confdefs.h
27109 # Check whether --enable-linker-build-id was given.
27110 if test "${enable_linker_build_id+set}" = set; then :
27111 enableval=$enable_linker_build_id;
27112 else
27113 enable_linker_build_id=no
27117 if test x"$enable_linker_build_id" = xyes; then
27118 if test x"$gcc_cv_ld_buildid" = xyes; then
27120 $as_echo "#define ENABLE_LD_BUILDID 1" >>confdefs.h
27122 else
27123 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: --build-id is not supported by your linker; --enable-linker-build-id ignored" >&5
27124 $as_echo "$as_me: WARNING: --build-id is not supported by your linker; --enable-linker-build-id ignored" >&2;}
27128 # In binutils 2.21, GNU ld gained support for new emulations fully
27129 # supporting the Solaris 2 ABI. Detect their presence in the linker used.
27130 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker *_sol2 emulation support" >&5
27131 $as_echo_n "checking linker *_sol2 emulation support... " >&6; }
27132 if test "${gcc_cv_ld_sol2_emulation+set}" = set; then :
27133 $as_echo_n "(cached) " >&6
27134 else
27135 gcc_cv_ld_sol2_emulation=no
27136 if test $in_tree_ld = yes ; then
27137 if test "$gcc_cv_gld_major_version" -eq 2 -a \
27138 "$gcc_cv_gld_minor_version" -ge 21 -o \
27139 "$gcc_cv_gld_major_version" -gt 2 \
27140 && test $in_tree_ld_is_elf = yes; then
27141 gcc_cv_ld_sol2_emulation=yes
27143 elif test x$gcc_cv_ld != x; then
27144 if $gcc_cv_ld -V 2>/dev/null | sed -e '1,/Supported emulations/d;q' | \
27145 grep _sol2 > /dev/null; then
27146 gcc_cv_ld_sol2_emulation=yes
27150 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_sol2_emulation" >&5
27151 $as_echo "$gcc_cv_ld_sol2_emulation" >&6; }
27152 if test x"$gcc_cv_ld_sol2_emulation" = xyes; then
27154 $as_echo "#define HAVE_LD_SOL2_EMULATION 1" >>confdefs.h
27158 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker --sysroot support" >&5
27159 $as_echo_n "checking linker --sysroot support... " >&6; }
27160 if test "${gcc_cv_ld_sysroot+set}" = set; then :
27161 $as_echo_n "(cached) " >&6
27162 else
27163 gcc_cv_ld_sysroot=no
27164 if test $in_tree_ld = yes ; then
27165 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
27166 gcc_cv_ld_sysroot=yes
27168 elif test x$gcc_cv_ld != x; then
27169 if $gcc_cv_ld --help 2>/dev/null | grep sysroot > /dev/null; then
27170 gcc_cv_ld_sysroot=yes
27174 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_sysroot" >&5
27175 $as_echo "$gcc_cv_ld_sysroot" >&6; }
27176 if test x"$gcc_cv_ld_sysroot" = xyes; then
27178 $as_echo "#define HAVE_LD_SYSROOT 1" >>confdefs.h
27182 # Test for stack protector support in target C library.
27183 { $as_echo "$as_me:${as_lineno-$LINENO}: checking __stack_chk_fail in target C library" >&5
27184 $as_echo_n "checking __stack_chk_fail in target C library... " >&6; }
27185 if test "${gcc_cv_libc_provides_ssp+set}" = set; then :
27186 $as_echo_n "(cached) " >&6
27187 else
27188 gcc_cv_libc_provides_ssp=no
27189 case "$target" in
27190 *-*-linux* | *-*-kfreebsd*-gnu | *-*-knetbsd*-gnu)
27191 # glibc 2.4 and later provides __stack_chk_fail and
27192 # either __stack_chk_guard, or TLS access to stack guard canary.
27194 if test $glibc_version_major -gt 2 \
27195 || ( test $glibc_version_major -eq 2 && test $glibc_version_minor -ge 4 ); then :
27196 gcc_cv_libc_provides_ssp=yes
27197 else
27199 if test -f $target_header_dir/features.h \
27200 && $EGREP '^[ ]*#[ ]*define[ ]+__GNU_LIBRARY__[ ]+([1-9][0-9]|[6-9])' \
27201 $target_header_dir/features.h > /dev/null; then
27202 if $EGREP '^[ ]*#[ ]*define[ ]+__UCLIBC__[ ]+1' \
27203 $target_header_dir/features.h > /dev/null && \
27204 test -f $target_header_dir/bits/uClibc_config.h && \
27205 $EGREP '^[ ]*#[ ]*define[ ]+__UCLIBC_HAS_SSP__[ ]+1' \
27206 $target_header_dir/bits/uClibc_config.h > /dev/null; then
27207 gcc_cv_libc_provides_ssp=yes
27209 # all versions of Bionic support stack protector
27210 elif test -f $target_header_dir/sys/cdefs.h \
27211 && $EGREP '^[ ]*#[ ]*define[ ]+__BIONIC__[ ]+1' \
27212 $target_header_dir/sys/cdefs.h > /dev/null; then
27213 gcc_cv_libc_provides_ssp=yes
27217 *-*-gnu*)
27218 # Avoid complicated tests (see
27219 # <http://gcc.gnu.org/ml/gcc/2008-10/msg00130.html>) and for now
27220 # simply assert that glibc does provide this, which is true for all
27221 # realistically usable GNU/Hurd configurations.
27222 gcc_cv_libc_provides_ssp=yes;;
27223 *-*-darwin* | *-*-freebsd*)
27224 ac_fn_c_check_func "$LINENO" "__stack_chk_fail" "ac_cv_func___stack_chk_fail"
27225 if test "x$ac_cv_func___stack_chk_fail" = x""yes; then :
27226 gcc_cv_libc_provides_ssp=yes
27227 else
27228 echo "no __stack_chk_fail on this target"
27232 *) gcc_cv_libc_provides_ssp=no ;;
27233 esac
27235 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_libc_provides_ssp" >&5
27236 $as_echo "$gcc_cv_libc_provides_ssp" >&6; }
27238 if test x$gcc_cv_libc_provides_ssp = xyes; then
27240 $as_echo "#define TARGET_LIBC_PROVIDES_SSP 1" >>confdefs.h
27244 # Test for <sys/sdt.h> on the target.
27246 { $as_echo "$as_me:${as_lineno-$LINENO}: checking sys/sdt.h in the target C library" >&5
27247 $as_echo_n "checking sys/sdt.h in the target C library... " >&6; }
27248 have_sys_sdt_h=no
27249 if test -f $target_header_dir/sys/sdt.h; then
27250 have_sys_sdt_h=yes
27252 $as_echo "#define HAVE_SYS_SDT_H 1" >>confdefs.h
27255 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_sys_sdt_h" >&5
27256 $as_echo "$have_sys_sdt_h" >&6; }
27258 # Check if TFmode long double should be used by default or not.
27259 # Some glibc targets used DFmode long double, but with glibc 2.4
27260 # and later they can use TFmode.
27261 case "$target" in
27262 powerpc*-*-linux* | \
27263 sparc*-*-linux* | \
27264 s390*-*-linux* | \
27265 alpha*-*-linux*)
27267 # Check whether --with-long-double-128 was given.
27268 if test "${with_long_double_128+set}" = set; then :
27269 withval=$with_long_double_128; gcc_cv_target_ldbl128="$with_long_double_128"
27270 else
27272 if test $glibc_version_major -gt 2 \
27273 || ( test $glibc_version_major -eq 2 && test $glibc_version_minor -ge 4 ); then :
27274 gcc_cv_target_ldbl128=yes
27275 else
27277 gcc_cv_target_ldbl128=no
27278 grep '^[ ]*#[ ]*define[ ][ ]*__LONG_DOUBLE_MATH_OPTIONAL' \
27279 $target_header_dir/bits/wordsize.h > /dev/null 2>&1 \
27280 && gcc_cv_target_ldbl128=yes
27286 esac
27287 if test x$gcc_cv_target_ldbl128 = xyes; then
27289 $as_echo "#define TARGET_DEFAULT_LONG_DOUBLE_128 1" >>confdefs.h
27293 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dl_iterate_phdr in target C library" >&5
27294 $as_echo_n "checking dl_iterate_phdr in target C library... " >&6; }
27295 gcc_cv_target_dl_iterate_phdr=unknown
27296 case "$target" in
27297 # Restrict to Solaris 11+. While most of the Solaris 11 linker changes
27298 # were backported to Solaris 10 Update 10, dl_iterate_phdr only lives in
27299 # libdl there, both complicating its use and breaking compatibility
27300 # between Solaris 10 updates.
27301 *-*-solaris2.1[1-9]*)
27302 # <link.h> needs both a dl_iterate_phdr declaration and support for
27303 # compilation with largefile support.
27304 if grep dl_iterate_phdr $target_header_dir/link.h > /dev/null 2>&1 \
27305 && grep 'large file capable' $target_header_dir/link.h > /dev/null 2>&1; then
27306 gcc_cv_target_dl_iterate_phdr=yes
27307 else
27308 gcc_cv_target_dl_iterate_phdr=no
27311 esac
27313 if test x$gcc_cv_target_dl_iterate_phdr = xyes; then
27315 $as_echo "#define TARGET_DL_ITERATE_PHDR 1" >>confdefs.h
27318 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_target_dl_iterate_phdr" >&5
27319 $as_echo "$gcc_cv_target_dl_iterate_phdr" >&6; }
27321 # We no longer support different GC mechanisms. Emit an error if
27322 # the user configures with --with-gc.
27324 # Check whether --with-gc was given.
27325 if test "${with_gc+set}" = set; then :
27326 withval=$with_gc; as_fn_error "Configure option --with-gc is only supported up to GCC 4.7.x" "$LINENO" 5
27330 # Libraries to use on the host. This will normally be set by the top
27331 # level Makefile. Here we simply capture the value for our Makefile.
27332 if test -z "${HOST_LIBS+set}"; then
27333 HOST_LIBS=
27337 # Use the system's zlib library.
27338 zlibdir=-L../zlib
27339 zlibinc="-I\$(srcdir)/../zlib"
27341 # Check whether --with-system-zlib was given.
27342 if test "${with_system_zlib+set}" = set; then :
27343 withval=$with_system_zlib; zlibdir=
27344 zlibinc=
27352 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable maintainer-specific portions of Makefiles" >&5
27353 $as_echo_n "checking whether to enable maintainer-specific portions of Makefiles... " >&6; }
27354 # Check whether --enable-maintainer-mode was given.
27355 if test "${enable_maintainer_mode+set}" = set; then :
27356 enableval=$enable_maintainer_mode; maintainer_mode=$enableval
27357 else
27358 maintainer_mode=no
27362 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $maintainer_mode" >&5
27363 $as_echo "$maintainer_mode" >&6; }
27365 if test "$maintainer_mode" = "yes"; then
27366 MAINT=''
27367 else
27368 MAINT='#'
27372 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to avoid linking multiple front-ends at once" >&5
27373 $as_echo_n "checking whether to avoid linking multiple front-ends at once... " >&6; }
27374 # Check whether --enable-link-mutex was given.
27375 if test "${enable_link_mutex+set}" = set; then :
27376 enableval=$enable_link_mutex; do_link_mutex=$enableval
27377 else
27378 do_link_mutex=no
27381 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $do_link_mutex" >&5
27382 $as_echo "$do_link_mutex" >&6; }
27384 if test "$do_link_mutex" = "yes"; then
27385 DO_LINK_MUTEX=true
27386 else
27387 DO_LINK_MUTEX=false
27391 # --------------
27392 # Language hooks
27393 # --------------
27395 # Make empty files to contain the specs and options for each language.
27396 # Then add #include lines to for a compiler that has specs and/or options.
27398 subdirs=
27399 lang_opt_files=
27400 lang_specs_files=
27401 lang_tree_files=
27402 # These (without "all_") are set in each config-lang.in.
27403 # `language' must be a single word so is spelled singularly.
27404 all_languages=
27405 all_compilers=
27406 all_outputs='Makefile'
27407 # List of language makefile fragments.
27408 all_lang_makefrags=
27409 # Additional files for gengtype
27410 all_gtfiles="$target_gtfiles"
27412 # These are the languages that are set in --enable-languages,
27413 # and are available in the GCC tree.
27414 all_selected_languages=
27416 # Add the language fragments.
27417 # Languages are added via two mechanisms. Some information must be
27418 # recorded in makefile variables, these are defined in config-lang.in.
27419 # We accumulate them and plug them into the main Makefile.
27420 # The other mechanism is a set of hooks for each of the main targets
27421 # like `clean', `install', etc.
27423 language_hooks="Make-hooks"
27425 for lang in ${srcdir}/*/config-lang.in
27427 test "$lang" = "${srcdir}/*/config-lang.in" && continue
27429 lang_alias=`sed -n -e 's,^language=['"'"'"'"]\(.*\)["'"'"'"'].*$,\1,p' -e 's,^language=\([^ ]*\).*$,\1,p' $lang`
27430 if test "x$lang_alias" = x
27431 then
27432 echo "$lang doesn't set \$language." 1>&2
27433 exit 1
27435 subdir="`echo $lang | sed -e 's,^.*/\([^/]*\)/config-lang.in$,\1,'`"
27436 subdirs="$subdirs $subdir"
27438 # $gcc_subdir is where the gcc integration files are to be found
27439 # for a language, both for internal compiler purposes (compiler
27440 # sources implementing front-end to GCC tree converters), and for
27441 # build infrastructure purposes (Make-lang.in, etc.)
27443 # This will be <subdir> (relative to $srcdir) if a line like
27444 # gcc_subdir="<subdir>" or gcc_subdir=<subdir>
27445 # is found in <langdir>/config-lang.in, and will remain <langdir>
27446 # otherwise.
27448 # Except for the language alias (fetched above), the regular
27449 # "config-lang.in" contents are always retrieved from $gcc_subdir,
27450 # so a <langdir>/config-lang.in setting gcc_subdir typically sets
27451 # only this and the language alias.
27453 gcc_subdir=`sed -n -e 's,^gcc_subdir=['"'"'"'"]\(.*\)["'"'"'"'].*$,\1,p' -e 's,^gcc_subdir=\([^ ]*\).*$,\1,p' $lang`
27454 if [ "$gcc_subdir" = "" ]; then
27455 gcc_subdir="$subdir"
27458 case ",$enable_languages," in
27459 *,$lang_alias,*)
27460 all_selected_languages="$all_selected_languages $lang_alias"
27461 if test -f $srcdir/$gcc_subdir/lang-specs.h; then
27462 lang_specs_files="$lang_specs_files $srcdir/$gcc_subdir/lang-specs.h"
27465 esac
27467 language=
27468 boot_language=
27469 compilers=
27470 outputs=
27471 gtfiles=
27472 subdir_requires=
27473 . ${srcdir}/$gcc_subdir/config-lang.in
27474 if test "x$language" = x
27475 then
27476 echo "${srcdir}/$gcc_subdir/config-lang.in doesn't set \$language." 1>&2
27477 exit 1
27480 ok=:
27481 case ",$enable_languages," in
27482 *,$lang_alias,*) ;;
27484 for i in $subdir_requires; do
27485 test -f "${srcdir}/$i/config-lang.in" && continue
27486 ok=false
27487 break
27488 done
27490 esac
27491 $ok || continue
27493 all_lang_makefrags="$all_lang_makefrags \$(srcdir)/$gcc_subdir/Make-lang.in"
27494 if test -f $srcdir/$gcc_subdir/lang.opt; then
27495 lang_opt_files="$lang_opt_files $srcdir/$gcc_subdir/lang.opt"
27496 all_opt_files="$all_opt_files $srcdir/$gcc_subdir/lang.opt"
27498 if test -f $srcdir/$gcc_subdir/$subdir-tree.def; then
27499 lang_tree_files="$lang_tree_files $srcdir/$gcc_subdir/$subdir-tree.def"
27501 all_languages="$all_languages $language"
27502 all_compilers="$all_compilers $compilers"
27503 all_outputs="$all_outputs $outputs"
27504 all_gtfiles="$all_gtfiles [$subdir] $gtfiles"
27505 case ",$enable_languages," in
27506 *,lto,*)
27508 $as_echo "#define ENABLE_LTO 1" >>confdefs.h
27510 enable_lto=yes
27513 *) ;;
27514 esac
27515 done
27517 check_languages=
27518 for language in $all_selected_languages
27520 check_languages="$check_languages check-$language"
27521 done
27523 # We link each language in with a set of hooks, reached indirectly via
27524 # lang.${target}. Only do so for selected languages.
27526 rm -f Make-hooks
27527 touch Make-hooks
27528 target_list="all.cross start.encap rest.encap tags \
27529 install-common install-man install-info install-pdf install-html dvi \
27530 pdf html uninstall info man srcextra srcman srcinfo \
27531 mostlyclean clean distclean maintainer-clean install-plugin"
27533 for t in $target_list
27536 for lang in $all_selected_languages
27538 x="$x $lang.$t"
27539 done
27540 echo "lang.$t: $x" >> Make-hooks
27541 done
27543 # --------
27544 # Option include files
27545 # --------
27547 ${AWK} -f $srcdir/opt-include.awk $all_opt_files > option-includes.mk
27548 option_includes="option-includes.mk"
27551 # --------
27552 # UNSORTED
27553 # --------
27555 # Create .gdbinit.
27557 echo "dir ." > .gdbinit
27558 echo "dir ${srcdir}" >> .gdbinit
27559 if test x$gdb_needs_out_file_path = xyes
27560 then
27561 echo "dir ${srcdir}/config/"`dirname ${out_file}` >> .gdbinit
27563 if test "x$subdirs" != x; then
27564 for s in $subdirs
27566 echo "dir ${srcdir}/$s" >> .gdbinit
27567 done
27569 echo "source ${srcdir}/gdbinit.in" >> .gdbinit
27570 echo "python import sys; sys.path.append('${srcdir}'); import gdbhooks" >> .gdbinit
27572 # Put a breakpoint on __asan_report_error to help with debugging buffer
27573 # overflow.
27574 case "$CFLAGS" in
27575 *-fsanitize=address*)
27576 echo "source ${srcdir}/gdbasan.in" >> .gdbinit
27578 esac
27580 gcc_tooldir='$(libsubdir)/$(libsubdir_to_prefix)$(target_noncanonical)'
27584 # Find a directory in which to install a shared libgcc.
27586 # Check whether --enable-version-specific-runtime-libs was given.
27587 if test "${enable_version_specific_runtime_libs+set}" = set; then :
27588 enableval=$enable_version_specific_runtime_libs;
27592 # Substitute configuration variables
27655 # Echo link setup.
27656 if test x${build} = x${host} ; then
27657 if test x${host} = x${target} ; then
27658 echo "Links are now set up to build a native compiler for ${target}." 1>&2
27659 else
27660 echo "Links are now set up to build a cross-compiler" 1>&2
27661 echo " from ${host} to ${target}." 1>&2
27663 else
27664 if test x${host} = x${target} ; then
27665 echo "Links are now set up to build (on ${build}) a native compiler" 1>&2
27666 echo " for ${target}." 1>&2
27667 else
27668 echo "Links are now set up to build (on ${build}) a cross-compiler" 1>&2
27669 echo " from ${host} to ${target}." 1>&2
27681 if test "x${CLOOGLIBS}" != "x" ; then
27683 $as_echo "#define HAVE_cloog 1" >>confdefs.h
27687 # Check for plugin support
27688 # Check whether --enable-plugin was given.
27689 if test "${enable_plugin+set}" = set; then :
27690 enableval=$enable_plugin; enable_plugin=$enableval
27691 else
27692 enable_plugin=yes; default_plugin=yes
27696 pluginlibs=
27698 case "${host}" in
27699 *-*-darwin*)
27700 if test x$build = x$host; then
27701 export_sym_check="nm${exeext} -g"
27702 elif test x$host = x$target; then
27703 export_sym_check="$gcc_cv_nm -g"
27704 else
27705 export_sym_check=
27709 if test x$build = x$host; then
27710 export_sym_check="objdump${exeext} -T"
27711 elif test x$host = x$target; then
27712 export_sym_check="$gcc_cv_objdump -T"
27713 else
27714 export_sym_check=
27717 esac
27719 if test x"$enable_plugin" = x"yes"; then
27721 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for exported symbols" >&5
27722 $as_echo_n "checking for exported symbols... " >&6; }
27723 if test "x$export_sym_check" != x; then
27724 echo "int main() {return 0;} int foobar() {return 0;}" > conftest.c
27725 ${CC} ${CFLAGS} ${LDFLAGS} conftest.c -o conftest$ac_exeext > /dev/null 2>&1
27726 if $export_sym_check conftest$ac_exeext | grep -q foobar > /dev/null; then
27727 : # No need to use a flag
27728 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
27729 $as_echo "yes" >&6; }
27730 else
27731 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
27732 $as_echo "yes" >&6; }
27733 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -rdynamic" >&5
27734 $as_echo_n "checking for -rdynamic... " >&6; }
27735 ${CC} ${CFLAGS} ${LDFLAGS} -rdynamic conftest.c -o conftest$ac_exeext > /dev/null 2>&1
27736 if $export_sym_check conftest$ac_exeext | grep -q foobar > /dev/null; then
27737 plugin_rdynamic=yes
27738 pluginlibs="-rdynamic"
27739 else
27740 plugin_rdynamic=no
27741 enable_plugin=no
27743 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $plugin_rdynamic" >&5
27744 $as_echo "$plugin_rdynamic" >&6; }
27746 else
27747 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unable to check" >&5
27748 $as_echo "unable to check" >&6; }
27751 # Check -ldl
27752 saved_LIBS="$LIBS"
27753 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing dlopen" >&5
27754 $as_echo_n "checking for library containing dlopen... " >&6; }
27755 if test "${ac_cv_search_dlopen+set}" = set; then :
27756 $as_echo_n "(cached) " >&6
27757 else
27758 ac_func_search_save_LIBS=$LIBS
27759 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
27760 /* end confdefs.h. */
27762 /* Override any GCC internal prototype to avoid an error.
27763 Use char because int might match the return type of a GCC
27764 builtin and then its argument prototype would still apply. */
27765 #ifdef __cplusplus
27766 extern "C"
27767 #endif
27768 char dlopen ();
27770 main ()
27772 return dlopen ();
27774 return 0;
27776 _ACEOF
27777 for ac_lib in '' dl; do
27778 if test -z "$ac_lib"; then
27779 ac_res="none required"
27780 else
27781 ac_res=-l$ac_lib
27782 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
27784 if ac_fn_c_try_link "$LINENO"; then :
27785 ac_cv_search_dlopen=$ac_res
27787 rm -f core conftest.err conftest.$ac_objext \
27788 conftest$ac_exeext
27789 if test "${ac_cv_search_dlopen+set}" = set; then :
27790 break
27792 done
27793 if test "${ac_cv_search_dlopen+set}" = set; then :
27795 else
27796 ac_cv_search_dlopen=no
27798 rm conftest.$ac_ext
27799 LIBS=$ac_func_search_save_LIBS
27801 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_dlopen" >&5
27802 $as_echo "$ac_cv_search_dlopen" >&6; }
27803 ac_res=$ac_cv_search_dlopen
27804 if test "$ac_res" != no; then :
27805 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
27809 if test x"$ac_cv_search_dlopen" = x"-ldl"; then
27810 pluginlibs="$pluginlibs -ldl"
27812 LIBS="$saved_LIBS"
27814 # Check that we can build shared objects with -fPIC -shared
27815 saved_LDFLAGS="$LDFLAGS"
27816 saved_CFLAGS="$CFLAGS"
27817 case "${host}" in
27818 *-*-darwin*)
27819 CFLAGS=`echo $CFLAGS | sed s/-mdynamic-no-pic//g`
27820 CFLAGS="$CFLAGS -fPIC"
27821 LDFLAGS="$LDFLAGS -shared -undefined dynamic_lookup"
27824 CFLAGS="$CFLAGS -fPIC"
27825 LDFLAGS="$LDFLAGS -fPIC -shared"
27827 esac
27828 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -fPIC -shared" >&5
27829 $as_echo_n "checking for -fPIC -shared... " >&6; }
27830 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
27831 /* end confdefs.h. */
27832 extern int X;
27834 main ()
27836 return X == 0;
27838 return 0;
27840 _ACEOF
27841 if ac_fn_c_try_link "$LINENO"; then :
27842 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
27843 $as_echo "yes" >&6; }; have_pic_shared=yes
27844 else
27845 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
27846 $as_echo "no" >&6; }; have_pic_shared=no
27848 rm -f core conftest.err conftest.$ac_objext \
27849 conftest$ac_exeext conftest.$ac_ext
27850 if test x"$have_pic_shared" != x"yes" -o x"$ac_cv_search_dlopen" = x"no"; then
27851 pluginlibs=
27852 enable_plugin=no
27854 LDFLAGS="$saved_LDFLAGS"
27855 CFLAGS="$saved_CFLAGS"
27857 # If plugin support had been requested but not available, fail.
27858 if test x"$enable_plugin" = x"no" ; then
27859 if test x"$default_plugin" != x"yes"; then
27860 as_fn_error "
27861 Building GCC with plugin support requires a host that supports
27862 -fPIC, -shared, -ldl and -rdynamic." "$LINENO" 5
27869 if test x"$enable_plugin" = x"yes"; then
27871 $as_echo "#define ENABLE_PLUGIN 1" >>confdefs.h
27876 # Enable --enable-host-shared
27877 # Check whether --enable-host-shared was given.
27878 if test "${enable_host_shared+set}" = set; then :
27879 enableval=$enable_host_shared; PICFLAG=-fPIC
27880 else
27881 PICFLAG=
27888 # Check whether --enable-libquadmath-support was given.
27889 if test "${enable_libquadmath_support+set}" = set; then :
27890 enableval=$enable_libquadmath_support; ENABLE_LIBQUADMATH_SUPPORT=$enableval
27891 else
27892 ENABLE_LIBQUADMATH_SUPPORT=yes
27895 if test "${ENABLE_LIBQUADMATH_SUPPORT}" != "no" ; then
27897 $as_echo "#define ENABLE_LIBQUADMATH_SUPPORT 1" >>confdefs.h
27902 # Specify what hash style to use by default.
27904 # Check whether --with-linker-hash-style was given.
27905 if test "${with_linker_hash_style+set}" = set; then :
27906 withval=$with_linker_hash_style; case x"$withval" in
27907 xsysv)
27908 LINKER_HASH_STYLE=sysv
27910 xgnu)
27911 LINKER_HASH_STYLE=gnu
27913 xboth)
27914 LINKER_HASH_STYLE=both
27917 as_fn_error "$withval is an invalid option to --with-linker-hash-style" "$LINENO" 5
27919 esac
27920 else
27921 LINKER_HASH_STYLE=''
27924 if test x"${LINKER_HASH_STYLE}" != x; then
27926 cat >>confdefs.h <<_ACEOF
27927 #define LINKER_HASH_STYLE "$LINKER_HASH_STYLE"
27928 _ACEOF
27932 # Configure the subdirectories
27933 # AC_CONFIG_SUBDIRS($subdirs)
27935 # Create the Makefile
27936 # and configure language subdirectories
27937 ac_config_files="$ac_config_files $all_outputs"
27940 ac_config_commands="$ac_config_commands default"
27942 cat >confcache <<\_ACEOF
27943 # This file is a shell script that caches the results of configure
27944 # tests run on this system so they can be shared between configure
27945 # scripts and configure runs, see configure's option --config-cache.
27946 # It is not useful on other systems. If it contains results you don't
27947 # want to keep, you may remove or edit it.
27949 # config.status only pays attention to the cache file if you give it
27950 # the --recheck option to rerun configure.
27952 # `ac_cv_env_foo' variables (set or unset) will be overridden when
27953 # loading this file, other *unset* `ac_cv_foo' will be assigned the
27954 # following values.
27956 _ACEOF
27958 # The following way of writing the cache mishandles newlines in values,
27959 # but we know of no workaround that is simple, portable, and efficient.
27960 # So, we kill variables containing newlines.
27961 # Ultrix sh set writes to stderr and can't be redirected directly,
27962 # and sets the high bit in the cache file unless we assign to the vars.
27964 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
27965 eval ac_val=\$$ac_var
27966 case $ac_val in #(
27967 *${as_nl}*)
27968 case $ac_var in #(
27969 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
27970 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
27971 esac
27972 case $ac_var in #(
27973 _ | IFS | as_nl) ;; #(
27974 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
27975 *) { eval $ac_var=; unset $ac_var;} ;;
27976 esac ;;
27977 esac
27978 done
27980 (set) 2>&1 |
27981 case $as_nl`(ac_space=' '; set) 2>&1` in #(
27982 *${as_nl}ac_space=\ *)
27983 # `set' does not quote correctly, so add quotes: double-quote
27984 # substitution turns \\\\ into \\, and sed turns \\ into \.
27985 sed -n \
27986 "s/'/'\\\\''/g;
27987 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
27988 ;; #(
27990 # `set' quotes correctly as required by POSIX, so do not add quotes.
27991 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
27993 esac |
27994 sort
27996 sed '
27997 /^ac_cv_env_/b end
27998 t clear
27999 :clear
28000 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
28001 t end
28002 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
28003 :end' >>confcache
28004 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
28005 if test -w "$cache_file"; then
28006 test "x$cache_file" != "x/dev/null" &&
28007 { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
28008 $as_echo "$as_me: updating cache $cache_file" >&6;}
28009 cat confcache >$cache_file
28010 else
28011 { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
28012 $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
28015 rm -f confcache
28017 test "x$prefix" = xNONE && prefix=$ac_default_prefix
28018 # Let make expand exec_prefix.
28019 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
28021 DEFS=-DHAVE_CONFIG_H
28023 ac_libobjs=
28024 ac_ltlibobjs=
28025 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
28026 # 1. Remove the extension, and $U if already installed.
28027 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
28028 ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
28029 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
28030 # will be set to the directory where LIBOBJS objects are built.
28031 as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
28032 as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
28033 done
28034 LIBOBJS=$ac_libobjs
28036 LTLIBOBJS=$ac_ltlibobjs
28041 : ${CONFIG_STATUS=./config.status}
28042 ac_write_fail=0
28043 ac_clean_files_save=$ac_clean_files
28044 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
28045 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
28046 $as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
28047 as_write_fail=0
28048 cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
28049 #! $SHELL
28050 # Generated by $as_me.
28051 # Run this file to recreate the current configuration.
28052 # Compiler output produced by configure, useful for debugging
28053 # configure, is in config.log if it exists.
28055 debug=false
28056 ac_cs_recheck=false
28057 ac_cs_silent=false
28059 SHELL=\${CONFIG_SHELL-$SHELL}
28060 export SHELL
28061 _ASEOF
28062 cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
28063 ## -------------------- ##
28064 ## M4sh Initialization. ##
28065 ## -------------------- ##
28067 # Be more Bourne compatible
28068 DUALCASE=1; export DUALCASE # for MKS sh
28069 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
28070 emulate sh
28071 NULLCMD=:
28072 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
28073 # is contrary to our usage. Disable this feature.
28074 alias -g '${1+"$@"}'='"$@"'
28075 setopt NO_GLOB_SUBST
28076 else
28077 case `(set -o) 2>/dev/null` in #(
28078 *posix*) :
28079 set -o posix ;; #(
28080 *) :
28082 esac
28086 as_nl='
28088 export as_nl
28089 # Printing a long string crashes Solaris 7 /usr/bin/printf.
28090 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
28091 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
28092 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
28093 # Prefer a ksh shell builtin over an external printf program on Solaris,
28094 # but without wasting forks for bash or zsh.
28095 if test -z "$BASH_VERSION$ZSH_VERSION" \
28096 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
28097 as_echo='print -r --'
28098 as_echo_n='print -rn --'
28099 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
28100 as_echo='printf %s\n'
28101 as_echo_n='printf %s'
28102 else
28103 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
28104 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
28105 as_echo_n='/usr/ucb/echo -n'
28106 else
28107 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
28108 as_echo_n_body='eval
28109 arg=$1;
28110 case $arg in #(
28111 *"$as_nl"*)
28112 expr "X$arg" : "X\\(.*\\)$as_nl";
28113 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
28114 esac;
28115 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
28117 export as_echo_n_body
28118 as_echo_n='sh -c $as_echo_n_body as_echo'
28120 export as_echo_body
28121 as_echo='sh -c $as_echo_body as_echo'
28124 # The user is always right.
28125 if test "${PATH_SEPARATOR+set}" != set; then
28126 PATH_SEPARATOR=:
28127 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
28128 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
28129 PATH_SEPARATOR=';'
28134 # IFS
28135 # We need space, tab and new line, in precisely that order. Quoting is
28136 # there to prevent editors from complaining about space-tab.
28137 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
28138 # splitting by setting IFS to empty value.)
28139 IFS=" "" $as_nl"
28141 # Find who we are. Look in the path if we contain no directory separator.
28142 case $0 in #((
28143 *[\\/]* ) as_myself=$0 ;;
28144 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
28145 for as_dir in $PATH
28147 IFS=$as_save_IFS
28148 test -z "$as_dir" && as_dir=.
28149 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
28150 done
28151 IFS=$as_save_IFS
28154 esac
28155 # We did not find ourselves, most probably we were run as `sh COMMAND'
28156 # in which case we are not to be found in the path.
28157 if test "x$as_myself" = x; then
28158 as_myself=$0
28160 if test ! -f "$as_myself"; then
28161 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
28162 exit 1
28165 # Unset variables that we do not need and which cause bugs (e.g. in
28166 # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
28167 # suppresses any "Segmentation fault" message there. '((' could
28168 # trigger a bug in pdksh 5.2.14.
28169 for as_var in BASH_ENV ENV MAIL MAILPATH
28170 do eval test x\${$as_var+set} = xset \
28171 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
28172 done
28173 PS1='$ '
28174 PS2='> '
28175 PS4='+ '
28177 # NLS nuisances.
28178 LC_ALL=C
28179 export LC_ALL
28180 LANGUAGE=C
28181 export LANGUAGE
28183 # CDPATH.
28184 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
28187 # as_fn_error ERROR [LINENO LOG_FD]
28188 # ---------------------------------
28189 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
28190 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
28191 # script with status $?, using 1 if that was 0.
28192 as_fn_error ()
28194 as_status=$?; test $as_status -eq 0 && as_status=1
28195 if test "$3"; then
28196 as_lineno=${as_lineno-"$2"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
28197 $as_echo "$as_me:${as_lineno-$LINENO}: error: $1" >&$3
28199 $as_echo "$as_me: error: $1" >&2
28200 as_fn_exit $as_status
28201 } # as_fn_error
28204 # as_fn_set_status STATUS
28205 # -----------------------
28206 # Set $? to STATUS, without forking.
28207 as_fn_set_status ()
28209 return $1
28210 } # as_fn_set_status
28212 # as_fn_exit STATUS
28213 # -----------------
28214 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
28215 as_fn_exit ()
28217 set +e
28218 as_fn_set_status $1
28219 exit $1
28220 } # as_fn_exit
28222 # as_fn_unset VAR
28223 # ---------------
28224 # Portably unset VAR.
28225 as_fn_unset ()
28227 { eval $1=; unset $1;}
28229 as_unset=as_fn_unset
28230 # as_fn_append VAR VALUE
28231 # ----------------------
28232 # Append the text in VALUE to the end of the definition contained in VAR. Take
28233 # advantage of any shell optimizations that allow amortized linear growth over
28234 # repeated appends, instead of the typical quadratic growth present in naive
28235 # implementations.
28236 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
28237 eval 'as_fn_append ()
28239 eval $1+=\$2
28241 else
28242 as_fn_append ()
28244 eval $1=\$$1\$2
28246 fi # as_fn_append
28248 # as_fn_arith ARG...
28249 # ------------------
28250 # Perform arithmetic evaluation on the ARGs, and store the result in the
28251 # global $as_val. Take advantage of shells that can avoid forks. The arguments
28252 # must be portable across $(()) and expr.
28253 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
28254 eval 'as_fn_arith ()
28256 as_val=$(( $* ))
28258 else
28259 as_fn_arith ()
28261 as_val=`expr "$@" || test $? -eq 1`
28263 fi # as_fn_arith
28266 if expr a : '\(a\)' >/dev/null 2>&1 &&
28267 test "X`expr 00001 : '.*\(...\)'`" = X001; then
28268 as_expr=expr
28269 else
28270 as_expr=false
28273 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
28274 as_basename=basename
28275 else
28276 as_basename=false
28279 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
28280 as_dirname=dirname
28281 else
28282 as_dirname=false
28285 as_me=`$as_basename -- "$0" ||
28286 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
28287 X"$0" : 'X\(//\)$' \| \
28288 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
28289 $as_echo X/"$0" |
28290 sed '/^.*\/\([^/][^/]*\)\/*$/{
28291 s//\1/
28294 /^X\/\(\/\/\)$/{
28295 s//\1/
28298 /^X\/\(\/\).*/{
28299 s//\1/
28302 s/.*/./; q'`
28304 # Avoid depending upon Character Ranges.
28305 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
28306 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
28307 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
28308 as_cr_digits='0123456789'
28309 as_cr_alnum=$as_cr_Letters$as_cr_digits
28311 ECHO_C= ECHO_N= ECHO_T=
28312 case `echo -n x` in #(((((
28313 -n*)
28314 case `echo 'xy\c'` in
28315 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
28316 xy) ECHO_C='\c';;
28317 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
28318 ECHO_T=' ';;
28319 esac;;
28321 ECHO_N='-n';;
28322 esac
28324 rm -f conf$$ conf$$.exe conf$$.file
28325 if test -d conf$$.dir; then
28326 rm -f conf$$.dir/conf$$.file
28327 else
28328 rm -f conf$$.dir
28329 mkdir conf$$.dir 2>/dev/null
28331 if (echo >conf$$.file) 2>/dev/null; then
28332 if ln -s conf$$.file conf$$ 2>/dev/null; then
28333 as_ln_s='ln -s'
28334 # ... but there are two gotchas:
28335 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
28336 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
28337 # In both cases, we have to default to `cp -p'.
28338 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
28339 as_ln_s='cp -p'
28340 elif ln conf$$.file conf$$ 2>/dev/null; then
28341 as_ln_s=ln
28342 else
28343 as_ln_s='cp -p'
28345 else
28346 as_ln_s='cp -p'
28348 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
28349 rmdir conf$$.dir 2>/dev/null
28352 # as_fn_mkdir_p
28353 # -------------
28354 # Create "$as_dir" as a directory, including parents if necessary.
28355 as_fn_mkdir_p ()
28358 case $as_dir in #(
28359 -*) as_dir=./$as_dir;;
28360 esac
28361 test -d "$as_dir" || eval $as_mkdir_p || {
28362 as_dirs=
28363 while :; do
28364 case $as_dir in #(
28365 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
28366 *) as_qdir=$as_dir;;
28367 esac
28368 as_dirs="'$as_qdir' $as_dirs"
28369 as_dir=`$as_dirname -- "$as_dir" ||
28370 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
28371 X"$as_dir" : 'X\(//\)[^/]' \| \
28372 X"$as_dir" : 'X\(//\)$' \| \
28373 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
28374 $as_echo X"$as_dir" |
28375 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
28376 s//\1/
28379 /^X\(\/\/\)[^/].*/{
28380 s//\1/
28383 /^X\(\/\/\)$/{
28384 s//\1/
28387 /^X\(\/\).*/{
28388 s//\1/
28391 s/.*/./; q'`
28392 test -d "$as_dir" && break
28393 done
28394 test -z "$as_dirs" || eval "mkdir $as_dirs"
28395 } || test -d "$as_dir" || as_fn_error "cannot create directory $as_dir"
28398 } # as_fn_mkdir_p
28399 if mkdir -p . 2>/dev/null; then
28400 as_mkdir_p='mkdir -p "$as_dir"'
28401 else
28402 test -d ./-p && rmdir ./-p
28403 as_mkdir_p=false
28406 if test -x / >/dev/null 2>&1; then
28407 as_test_x='test -x'
28408 else
28409 if ls -dL / >/dev/null 2>&1; then
28410 as_ls_L_option=L
28411 else
28412 as_ls_L_option=
28414 as_test_x='
28415 eval sh -c '\''
28416 if test -d "$1"; then
28417 test -d "$1/.";
28418 else
28419 case $1 in #(
28420 -*)set "./$1";;
28421 esac;
28422 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in #((
28423 ???[sx]*):;;*)false;;esac;fi
28424 '\'' sh
28427 as_executable_p=$as_test_x
28429 # Sed expression to map a string onto a valid CPP name.
28430 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
28432 # Sed expression to map a string onto a valid variable name.
28433 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
28436 exec 6>&1
28437 ## ----------------------------------- ##
28438 ## Main body of $CONFIG_STATUS script. ##
28439 ## ----------------------------------- ##
28440 _ASEOF
28441 test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
28443 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
28444 # Save the log message, to keep $0 and so on meaningful, and to
28445 # report actual input values of CONFIG_FILES etc. instead of their
28446 # values after options handling.
28447 ac_log="
28448 This file was extended by $as_me, which was
28449 generated by GNU Autoconf 2.64. Invocation command line was
28451 CONFIG_FILES = $CONFIG_FILES
28452 CONFIG_HEADERS = $CONFIG_HEADERS
28453 CONFIG_LINKS = $CONFIG_LINKS
28454 CONFIG_COMMANDS = $CONFIG_COMMANDS
28455 $ $0 $@
28457 on `(hostname || uname -n) 2>/dev/null | sed 1q`
28460 _ACEOF
28462 case $ac_config_files in *"
28463 "*) set x $ac_config_files; shift; ac_config_files=$*;;
28464 esac
28466 case $ac_config_headers in *"
28467 "*) set x $ac_config_headers; shift; ac_config_headers=$*;;
28468 esac
28471 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
28472 # Files that config.status was made for.
28473 config_files="$ac_config_files"
28474 config_headers="$ac_config_headers"
28475 config_commands="$ac_config_commands"
28477 _ACEOF
28479 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
28480 ac_cs_usage="\
28481 \`$as_me' instantiates files and other configuration actions
28482 from templates according to the current configuration. Unless the files
28483 and actions are specified as TAGs, all are instantiated by default.
28485 Usage: $0 [OPTION]... [TAG]...
28487 -h, --help print this help, then exit
28488 -V, --version print version number and configuration settings, then exit
28489 -q, --quiet, --silent
28490 do not print progress messages
28491 -d, --debug don't remove temporary files
28492 --recheck update $as_me by reconfiguring in the same conditions
28493 --file=FILE[:TEMPLATE]
28494 instantiate the configuration file FILE
28495 --header=FILE[:TEMPLATE]
28496 instantiate the configuration header FILE
28498 Configuration files:
28499 $config_files
28501 Configuration headers:
28502 $config_headers
28504 Configuration commands:
28505 $config_commands
28507 Report bugs to the package provider."
28509 _ACEOF
28510 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
28511 ac_cs_version="\\
28512 config.status
28513 configured by $0, generated by GNU Autoconf 2.64,
28514 with options \\"`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`\\"
28516 Copyright (C) 2009 Free Software Foundation, Inc.
28517 This config.status script is free software; the Free Software Foundation
28518 gives unlimited permission to copy, distribute and modify it."
28520 ac_pwd='$ac_pwd'
28521 srcdir='$srcdir'
28522 AWK='$AWK'
28523 test -n "\$AWK" || AWK=awk
28524 _ACEOF
28526 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
28527 # The default lists apply if the user does not specify any file.
28528 ac_need_defaults=:
28529 while test $# != 0
28531 case $1 in
28532 --*=*)
28533 ac_option=`expr "X$1" : 'X\([^=]*\)='`
28534 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
28535 ac_shift=:
28538 ac_option=$1
28539 ac_optarg=$2
28540 ac_shift=shift
28542 esac
28544 case $ac_option in
28545 # Handling of the options.
28546 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
28547 ac_cs_recheck=: ;;
28548 --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
28549 $as_echo "$ac_cs_version"; exit ;;
28550 --debug | --debu | --deb | --de | --d | -d )
28551 debug=: ;;
28552 --file | --fil | --fi | --f )
28553 $ac_shift
28554 case $ac_optarg in
28555 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
28556 esac
28557 as_fn_append CONFIG_FILES " '$ac_optarg'"
28558 ac_need_defaults=false;;
28559 --header | --heade | --head | --hea )
28560 $ac_shift
28561 case $ac_optarg in
28562 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
28563 esac
28564 as_fn_append CONFIG_HEADERS " '$ac_optarg'"
28565 ac_need_defaults=false;;
28566 --he | --h)
28567 # Conflict between --help and --header
28568 as_fn_error "ambiguous option: \`$1'
28569 Try \`$0 --help' for more information.";;
28570 --help | --hel | -h )
28571 $as_echo "$ac_cs_usage"; exit ;;
28572 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
28573 | -silent | --silent | --silen | --sile | --sil | --si | --s)
28574 ac_cs_silent=: ;;
28576 # This is an error.
28577 -*) as_fn_error "unrecognized option: \`$1'
28578 Try \`$0 --help' for more information." ;;
28580 *) as_fn_append ac_config_targets " $1"
28581 ac_need_defaults=false ;;
28583 esac
28584 shift
28585 done
28587 ac_configure_extra_args=
28589 if $ac_cs_silent; then
28590 exec 6>/dev/null
28591 ac_configure_extra_args="$ac_configure_extra_args --silent"
28594 _ACEOF
28595 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
28596 if \$ac_cs_recheck; then
28597 set X '$SHELL' '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
28598 shift
28599 \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
28600 CONFIG_SHELL='$SHELL'
28601 export CONFIG_SHELL
28602 exec "\$@"
28605 _ACEOF
28606 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
28607 exec 5>>config.log
28609 echo
28610 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
28611 ## Running $as_me. ##
28612 _ASBOX
28613 $as_echo "$ac_log"
28614 } >&5
28616 _ACEOF
28617 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
28619 # INIT-COMMANDS
28621 ac_aux_dir=$ac_aux_dir DEPDIR=$DEPDIR
28622 subdirs="$subdirs" ac_aux_dir=$ac_aux_dir DEPDIR=$DEPDIR
28623 subdirs='$subdirs'
28625 _ACEOF
28627 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
28629 # Handling of arguments.
28630 for ac_config_target in $ac_config_targets
28632 case $ac_config_target in
28633 "auto-host.h") CONFIG_HEADERS="$CONFIG_HEADERS auto-host.h:config.in" ;;
28634 "depdir") CONFIG_COMMANDS="$CONFIG_COMMANDS depdir" ;;
28635 "gccdepdir") CONFIG_COMMANDS="$CONFIG_COMMANDS gccdepdir" ;;
28636 "as") CONFIG_FILES="$CONFIG_FILES as:exec-tool.in" ;;
28637 "collect-ld") CONFIG_FILES="$CONFIG_FILES collect-ld:exec-tool.in" ;;
28638 "nm") CONFIG_FILES="$CONFIG_FILES nm:exec-tool.in" ;;
28639 "$all_outputs") CONFIG_FILES="$CONFIG_FILES $all_outputs" ;;
28640 "default") CONFIG_COMMANDS="$CONFIG_COMMANDS default" ;;
28642 *) as_fn_error "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
28643 esac
28644 done
28647 # If the user did not use the arguments to specify the items to instantiate,
28648 # then the envvar interface is used. Set only those that are not.
28649 # We use the long form for the default assignment because of an extremely
28650 # bizarre bug on SunOS 4.1.3.
28651 if $ac_need_defaults; then
28652 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
28653 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
28654 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
28657 # Have a temporary directory for convenience. Make it in the build tree
28658 # simply because there is no reason against having it here, and in addition,
28659 # creating and moving files from /tmp can sometimes cause problems.
28660 # Hook for its removal unless debugging.
28661 # Note that there is a small window in which the directory will not be cleaned:
28662 # after its creation but before its name has been assigned to `$tmp'.
28663 $debug ||
28665 tmp=
28666 trap 'exit_status=$?
28667 { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status
28669 trap 'as_fn_exit 1' 1 2 13 15
28671 # Create a (secure) tmp directory for tmp files.
28674 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
28675 test -n "$tmp" && test -d "$tmp"
28676 } ||
28678 tmp=./conf$$-$RANDOM
28679 (umask 077 && mkdir "$tmp")
28680 } || as_fn_error "cannot create a temporary directory in ." "$LINENO" 5
28682 # Set up the scripts for CONFIG_FILES section.
28683 # No need to generate them if there are no CONFIG_FILES.
28684 # This happens for instance with `./config.status config.h'.
28685 if test -n "$CONFIG_FILES"; then
28687 if $AWK 'BEGIN { getline <"/dev/null" }' </dev/null 2>/dev/null; then
28688 ac_cs_awk_getline=:
28689 ac_cs_awk_pipe_init=
28690 ac_cs_awk_read_file='
28691 while ((getline aline < (F[key])) > 0)
28692 print(aline)
28693 close(F[key])'
28694 ac_cs_awk_pipe_fini=
28695 else
28696 ac_cs_awk_getline=false
28697 ac_cs_awk_pipe_init="print \"cat <<'|#_!!_#|' &&\""
28698 ac_cs_awk_read_file='
28699 print "|#_!!_#|"
28700 print "cat " F[key] " &&"
28701 '$ac_cs_awk_pipe_init
28702 # The final `:' finishes the AND list.
28703 ac_cs_awk_pipe_fini='END { print "|#_!!_#|"; print ":" }'
28705 ac_cr=`echo X | tr X '\015'`
28706 # On cygwin, bash can eat \r inside `` if the user requested igncr.
28707 # But we know of no other shell where ac_cr would be empty at this
28708 # point, so we can use a bashism as a fallback.
28709 if test "x$ac_cr" = x; then
28710 eval ac_cr=\$\'\\r\'
28712 ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
28713 if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
28714 ac_cs_awk_cr='\r'
28715 else
28716 ac_cs_awk_cr=$ac_cr
28719 echo 'BEGIN {' >"$tmp/subs1.awk" &&
28720 _ACEOF
28722 # Create commands to substitute file output variables.
28724 echo "cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1" &&
28725 echo 'cat >>"\$tmp/subs1.awk" <<\\_ACAWK &&' &&
28726 echo "$ac_subst_files" | sed 's/.*/F["&"]="$&"/' &&
28727 echo "_ACAWK" &&
28728 echo "_ACEOF"
28729 } >conf$$files.sh &&
28730 . ./conf$$files.sh ||
28731 as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5
28732 rm -f conf$$files.sh
28735 echo "cat >conf$$subs.awk <<_ACEOF" &&
28736 echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
28737 echo "_ACEOF"
28738 } >conf$$subs.sh ||
28739 as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5
28740 ac_delim_num=`echo "$ac_subst_vars" | grep -c '$'`
28741 ac_delim='%!_!# '
28742 for ac_last_try in false false false false false :; do
28743 . ./conf$$subs.sh ||
28744 as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5
28746 ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
28747 if test $ac_delim_n = $ac_delim_num; then
28748 break
28749 elif $ac_last_try; then
28750 as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5
28751 else
28752 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
28754 done
28755 rm -f conf$$subs.sh
28757 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
28758 cat >>"\$tmp/subs1.awk" <<\\_ACAWK &&
28759 _ACEOF
28760 sed -n '
28762 s/^/S["/; s/!.*/"]=/
28765 s/^[^!]*!//
28766 :repl
28767 t repl
28768 s/'"$ac_delim"'$//
28769 t delim
28772 s/\(.\{148\}\).*/\1/
28773 t more1
28774 s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
28777 b repl
28778 :more1
28779 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
28782 s/.\{148\}//
28783 t nl
28784 :delim
28786 s/\(.\{148\}\).*/\1/
28787 t more2
28788 s/["\\]/\\&/g; s/^/"/; s/$/"/
28791 :more2
28792 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
28795 s/.\{148\}//
28796 t delim
28797 ' <conf$$subs.awk | sed '
28798 /^[^""]/{
28800 s/\n//
28802 ' >>$CONFIG_STATUS || ac_write_fail=1
28803 rm -f conf$$subs.awk
28804 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
28805 _ACAWK
28806 cat >>"\$tmp/subs1.awk" <<_ACAWK &&
28807 for (key in S) S_is_set[key] = 1
28808 FS = "\a"
28809 \$ac_cs_awk_pipe_init
28812 line = $ 0
28813 nfields = split(line, field, "@")
28814 substed = 0
28815 len = length(field[1])
28816 for (i = 2; i < nfields; i++) {
28817 key = field[i]
28818 keylen = length(key)
28819 if (S_is_set[key]) {
28820 value = S[key]
28821 line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
28822 len += length(value) + length(field[++i])
28823 substed = 1
28824 } else
28825 len += 1 + keylen
28827 if (nfields == 3 && !substed) {
28828 key = field[2]
28829 if (F[key] != "" && line ~ /^[ ]*@.*@[ ]*$/) {
28830 \$ac_cs_awk_read_file
28831 next
28834 print line
28836 \$ac_cs_awk_pipe_fini
28837 _ACAWK
28838 _ACEOF
28839 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
28840 if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
28841 sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
28842 else
28844 fi < "$tmp/subs1.awk" > "$tmp/subs.awk" \
28845 || as_fn_error "could not setup config files machinery" "$LINENO" 5
28846 _ACEOF
28848 # VPATH may cause trouble with some makes, so we remove $(srcdir),
28849 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
28850 # trailing colons and then remove the whole line if VPATH becomes empty
28851 # (actually we leave an empty line to preserve line numbers).
28852 if test "x$srcdir" = x.; then
28853 ac_vpsub='/^[ ]*VPATH[ ]*=/{
28854 s/:*\$(srcdir):*/:/
28855 s/:*\${srcdir}:*/:/
28856 s/:*@srcdir@:*/:/
28857 s/^\([^=]*=[ ]*\):*/\1/
28858 s/:*$//
28859 s/^[^=]*=[ ]*$//
28863 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
28864 fi # test -n "$CONFIG_FILES"
28866 # Set up the scripts for CONFIG_HEADERS section.
28867 # No need to generate them if there are no CONFIG_HEADERS.
28868 # This happens for instance with `./config.status Makefile'.
28869 if test -n "$CONFIG_HEADERS"; then
28870 cat >"$tmp/defines.awk" <<\_ACAWK ||
28871 BEGIN {
28872 _ACEOF
28874 # Transform confdefs.h into an awk script `defines.awk', embedded as
28875 # here-document in config.status, that substitutes the proper values into
28876 # config.h.in to produce config.h.
28878 # Create a delimiter string that does not exist in confdefs.h, to ease
28879 # handling of long lines.
28880 ac_delim='%!_!# '
28881 for ac_last_try in false false :; do
28882 ac_t=`sed -n "/$ac_delim/p" confdefs.h`
28883 if test -z "$ac_t"; then
28884 break
28885 elif $ac_last_try; then
28886 as_fn_error "could not make $CONFIG_HEADERS" "$LINENO" 5
28887 else
28888 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
28890 done
28892 # For the awk script, D is an array of macro values keyed by name,
28893 # likewise P contains macro parameters if any. Preserve backslash
28894 # newline sequences.
28896 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
28897 sed -n '
28898 s/.\{148\}/&'"$ac_delim"'/g
28899 t rset
28900 :rset
28901 s/^[ ]*#[ ]*define[ ][ ]*/ /
28902 t def
28904 :def
28905 s/\\$//
28906 t bsnl
28907 s/["\\]/\\&/g
28908 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
28909 D["\1"]=" \3"/p
28910 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2"/p
28912 :bsnl
28913 s/["\\]/\\&/g
28914 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
28915 D["\1"]=" \3\\\\\\n"\\/p
28916 t cont
28917 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
28918 t cont
28920 :cont
28922 s/.\{148\}/&'"$ac_delim"'/g
28923 t clear
28924 :clear
28925 s/\\$//
28926 t bsnlc
28927 s/["\\]/\\&/g; s/^/"/; s/$/"/p
28929 :bsnlc
28930 s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
28931 b cont
28932 ' <confdefs.h | sed '
28933 s/'"$ac_delim"'/"\\\
28934 "/g' >>$CONFIG_STATUS || ac_write_fail=1
28936 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
28937 for (key in D) D_is_set[key] = 1
28938 FS = "\a"
28940 /^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
28941 line = \$ 0
28942 split(line, arg, " ")
28943 if (arg[1] == "#") {
28944 defundef = arg[2]
28945 mac1 = arg[3]
28946 } else {
28947 defundef = substr(arg[1], 2)
28948 mac1 = arg[2]
28950 split(mac1, mac2, "(") #)
28951 macro = mac2[1]
28952 prefix = substr(line, 1, index(line, defundef) - 1)
28953 if (D_is_set[macro]) {
28954 # Preserve the white space surrounding the "#".
28955 print prefix "define", macro P[macro] D[macro]
28956 next
28957 } else {
28958 # Replace #undef with comments. This is necessary, for example,
28959 # in the case of _POSIX_SOURCE, which is predefined and required
28960 # on some systems where configure will not decide to define it.
28961 if (defundef == "undef") {
28962 print "/*", prefix defundef, macro, "*/"
28963 next
28967 { print }
28968 _ACAWK
28969 _ACEOF
28970 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
28971 as_fn_error "could not setup config headers machinery" "$LINENO" 5
28972 fi # test -n "$CONFIG_HEADERS"
28975 eval set X " :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS"
28976 shift
28977 for ac_tag
28979 case $ac_tag in
28980 :[FHLC]) ac_mode=$ac_tag; continue;;
28981 esac
28982 case $ac_mode$ac_tag in
28983 :[FHL]*:*);;
28984 :L* | :C*:*) as_fn_error "invalid tag \`$ac_tag'" "$LINENO" 5;;
28985 :[FH]-) ac_tag=-:-;;
28986 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
28987 esac
28988 ac_save_IFS=$IFS
28989 IFS=:
28990 set x $ac_tag
28991 IFS=$ac_save_IFS
28992 shift
28993 ac_file=$1
28994 shift
28996 case $ac_mode in
28997 :L) ac_source=$1;;
28998 :[FH])
28999 ac_file_inputs=
29000 for ac_f
29002 case $ac_f in
29003 -) ac_f="$tmp/stdin";;
29004 *) # Look for the file first in the build tree, then in the source tree
29005 # (if the path is not absolute). The absolute path cannot be DOS-style,
29006 # because $ac_f cannot contain `:'.
29007 test -f "$ac_f" ||
29008 case $ac_f in
29009 [\\/$]*) false;;
29010 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
29011 esac ||
29012 as_fn_error "cannot find input file: \`$ac_f'" "$LINENO" 5;;
29013 esac
29014 case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
29015 as_fn_append ac_file_inputs " '$ac_f'"
29016 done
29018 # Let's still pretend it is `configure' which instantiates (i.e., don't
29019 # use $as_me), people would be surprised to read:
29020 # /* config.h. Generated by config.status. */
29021 configure_input='Generated from '`
29022 $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
29023 `' by configure.'
29024 if test x"$ac_file" != x-; then
29025 configure_input="$ac_file. $configure_input"
29026 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
29027 $as_echo "$as_me: creating $ac_file" >&6;}
29029 # Neutralize special characters interpreted by sed in replacement strings.
29030 case $configure_input in #(
29031 *\&* | *\|* | *\\* )
29032 ac_sed_conf_input=`$as_echo "$configure_input" |
29033 sed 's/[\\\\&|]/\\\\&/g'`;; #(
29034 *) ac_sed_conf_input=$configure_input;;
29035 esac
29037 case $ac_tag in
29038 *:-:* | *:-) cat >"$tmp/stdin" \
29039 || as_fn_error "could not create $ac_file" "$LINENO" 5 ;;
29040 esac
29042 esac
29044 ac_dir=`$as_dirname -- "$ac_file" ||
29045 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
29046 X"$ac_file" : 'X\(//\)[^/]' \| \
29047 X"$ac_file" : 'X\(//\)$' \| \
29048 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
29049 $as_echo X"$ac_file" |
29050 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
29051 s//\1/
29054 /^X\(\/\/\)[^/].*/{
29055 s//\1/
29058 /^X\(\/\/\)$/{
29059 s//\1/
29062 /^X\(\/\).*/{
29063 s//\1/
29066 s/.*/./; q'`
29067 as_dir="$ac_dir"; as_fn_mkdir_p
29068 ac_builddir=.
29070 case "$ac_dir" in
29071 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
29073 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
29074 # A ".." for each directory in $ac_dir_suffix.
29075 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
29076 case $ac_top_builddir_sub in
29077 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
29078 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
29079 esac ;;
29080 esac
29081 ac_abs_top_builddir=$ac_pwd
29082 ac_abs_builddir=$ac_pwd$ac_dir_suffix
29083 # for backward compatibility:
29084 ac_top_builddir=$ac_top_build_prefix
29086 case $srcdir in
29087 .) # We are building in place.
29088 ac_srcdir=.
29089 ac_top_srcdir=$ac_top_builddir_sub
29090 ac_abs_top_srcdir=$ac_pwd ;;
29091 [\\/]* | ?:[\\/]* ) # Absolute name.
29092 ac_srcdir=$srcdir$ac_dir_suffix;
29093 ac_top_srcdir=$srcdir
29094 ac_abs_top_srcdir=$srcdir ;;
29095 *) # Relative name.
29096 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
29097 ac_top_srcdir=$ac_top_build_prefix$srcdir
29098 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
29099 esac
29100 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
29103 case $ac_mode in
29106 # CONFIG_FILE
29109 _ACEOF
29111 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
29112 # If the template does not know about datarootdir, expand it.
29113 # FIXME: This hack should be removed a few years after 2.60.
29114 ac_datarootdir_hack=; ac_datarootdir_seen=
29115 ac_sed_dataroot='
29116 /datarootdir/ {
29120 /@datadir@/p
29121 /@docdir@/p
29122 /@infodir@/p
29123 /@localedir@/p
29124 /@mandir@/p'
29125 case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
29126 *datarootdir*) ac_datarootdir_seen=yes;;
29127 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
29128 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
29129 $as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
29130 _ACEOF
29131 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
29132 ac_datarootdir_hack='
29133 s&@datadir@&$datadir&g
29134 s&@docdir@&$docdir&g
29135 s&@infodir@&$infodir&g
29136 s&@localedir@&$localedir&g
29137 s&@mandir@&$mandir&g
29138 s&\\\${datarootdir}&$datarootdir&g' ;;
29139 esac
29140 _ACEOF
29142 # Neutralize VPATH when `$srcdir' = `.'.
29143 # Shell code in configure.ac might set extrasub.
29144 # FIXME: do we really want to maintain this feature?
29145 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
29146 ac_sed_extra="$ac_vpsub
29147 $extrasub
29148 _ACEOF
29149 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
29151 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
29152 s|@configure_input@|$ac_sed_conf_input|;t t
29153 s&@top_builddir@&$ac_top_builddir_sub&;t t
29154 s&@top_build_prefix@&$ac_top_build_prefix&;t t
29155 s&@srcdir@&$ac_srcdir&;t t
29156 s&@abs_srcdir@&$ac_abs_srcdir&;t t
29157 s&@top_srcdir@&$ac_top_srcdir&;t t
29158 s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
29159 s&@builddir@&$ac_builddir&;t t
29160 s&@abs_builddir@&$ac_abs_builddir&;t t
29161 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
29162 $ac_datarootdir_hack
29164 eval sed \"\$ac_sed_extra\" "$ac_file_inputs" |
29165 if $ac_cs_awk_getline; then
29166 $AWK -f "$tmp/subs.awk"
29167 else
29168 $AWK -f "$tmp/subs.awk" | $SHELL
29169 fi >$tmp/out \
29170 || as_fn_error "could not create $ac_file" "$LINENO" 5
29172 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
29173 { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out"`; test -n "$ac_out"; } &&
29174 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' "$tmp/out"`; test -z "$ac_out"; } &&
29175 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
29176 which seems to be undefined. Please make sure it is defined." >&5
29177 $as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
29178 which seems to be undefined. Please make sure it is defined." >&2;}
29180 rm -f "$tmp/stdin"
29181 case $ac_file in
29182 -) cat "$tmp/out" && rm -f "$tmp/out";;
29183 *) rm -f "$ac_file" && mv "$tmp/out" "$ac_file";;
29184 esac \
29185 || as_fn_error "could not create $ac_file" "$LINENO" 5
29189 # CONFIG_HEADER
29191 if test x"$ac_file" != x-; then
29193 $as_echo "/* $configure_input */" \
29194 && eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs"
29195 } >"$tmp/config.h" \
29196 || as_fn_error "could not create $ac_file" "$LINENO" 5
29197 if diff "$ac_file" "$tmp/config.h" >/dev/null 2>&1; then
29198 { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
29199 $as_echo "$as_me: $ac_file is unchanged" >&6;}
29200 else
29201 rm -f "$ac_file"
29202 mv "$tmp/config.h" "$ac_file" \
29203 || as_fn_error "could not create $ac_file" "$LINENO" 5
29205 else
29206 $as_echo "/* $configure_input */" \
29207 && eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs" \
29208 || as_fn_error "could not create -" "$LINENO" 5
29212 :C) { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
29213 $as_echo "$as_me: executing $ac_file commands" >&6;}
29215 esac
29218 case $ac_file$ac_mode in
29219 "depdir":C) $SHELL $ac_aux_dir/mkinstalldirs $DEPDIR ;;
29220 "gccdepdir":C)
29221 ${CONFIG_SHELL-/bin/sh} $ac_aux_dir/mkinstalldirs build/$DEPDIR
29222 for lang in $subdirs c-family common
29224 ${CONFIG_SHELL-/bin/sh} $ac_aux_dir/mkinstalldirs $lang/$DEPDIR
29225 done ;;
29226 "as":F) chmod +x as ;;
29227 "collect-ld":F) chmod +x collect-ld ;;
29228 "nm":F) chmod +x nm ;;
29229 "default":C)
29230 case ${CONFIG_HEADERS} in
29231 *auto-host.h:config.in*)
29232 echo > cstamp-h ;;
29233 esac
29234 # Make sure all the subdirs exist.
29235 for d in $subdirs doc build common c-family
29237 test -d $d || mkdir $d
29238 done
29241 esac
29242 done # for ac_tag
29245 as_fn_exit 0
29246 _ACEOF
29247 ac_clean_files=$ac_clean_files_save
29249 test $ac_write_fail = 0 ||
29250 as_fn_error "write failure creating $CONFIG_STATUS" "$LINENO" 5
29253 # configure is writing to config.log, and then calls config.status.
29254 # config.status does its own redirection, appending to config.log.
29255 # Unfortunately, on DOS this fails, as config.log is still kept open
29256 # by configure, so config.status won't be able to write to it; its
29257 # output is simply discarded. So we exec the FD to /dev/null,
29258 # effectively closing config.log, so it can be properly (re)opened and
29259 # appended to by config.status. When coming back to configure, we
29260 # need to make the FD available again.
29261 if test "$no_create" != yes; then
29262 ac_cs_success=:
29263 ac_config_status_args=
29264 test "$silent" = yes &&
29265 ac_config_status_args="$ac_config_status_args --quiet"
29266 exec 5>/dev/null
29267 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
29268 exec 5>>config.log
29269 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
29270 # would make configure fail if this is the last instruction.
29271 $ac_cs_success || as_fn_exit $?
29273 if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
29274 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
29275 $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}