Mark ChangeLog
[official-gcc.git] / gcc / configure
blobf247c8a357c0e32d2edf925f83fafbff6df35ed7
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 enable_plugin
604 pluginlibs
605 CLOOGINC
606 CLOOGLIBS
607 ISLINC
608 ISLLIBS
609 GMPINC
610 GMPLIBS
611 target_cpu_default
612 fortran_target_objs
613 cxx_target_objs
614 c_target_objs
615 use_gcc_stdint
616 xm_defines
617 xm_include_list
618 xm_file_list
619 tm_p_include_list
620 tm_p_file_list
621 tm_defines
622 tm_include_list
623 tm_file_list
624 common_out_object_file
625 common_out_file
626 out_object_file
627 out_file
628 objc_boehm_gc
629 md_file
630 local_prefix
631 lang_tree_files
632 lang_specs_files
633 lang_opt_files
634 install
635 out_host_hook_obj
636 host_xm_defines
637 host_xm_include_list
638 host_xm_file_list
639 host_exeext
640 gcc_gxx_include_dir_add_sysroot
641 gcc_gxx_include_dir
642 gcc_config_arguments
643 float_h_file
644 extra_programs
645 extra_objs
646 extra_headers_list
647 user_headers_inc_next_post
648 user_headers_inc_next_pre
649 extra_gcc_objs
650 TM_MULTILIB_EXCEPTIONS_CONFIG
651 TM_MULTILIB_CONFIG
652 TM_ENDIAN_CONFIG
653 tmake_file
654 xmake_file
655 cpp_install_dir
656 check_languages
657 build_file_translate
658 build_xm_defines
659 build_xm_include_list
660 build_xm_file_list
661 build_install_headers_dir
662 build_exeext
663 all_selected_languages
664 all_languages
665 all_lang_makefrags
666 all_gtfiles
667 all_compilers
668 srcdir
669 subdirs
670 dollar
671 gcc_tooldir
672 enable_lto
673 MAINT
674 zlibinc
675 zlibdir
676 HOST_LIBS
677 libgcc_visibility
678 gcc_cv_readelf
679 gcc_cv_objdump
680 ORIGINAL_NM_FOR_TARGET
681 gcc_cv_nm
682 ORIGINAL_LD_FOR_TARGET
683 ORIGINAL_PLUGIN_LD_FOR_TARGET
684 gcc_cv_ld
685 ORIGINAL_AS_FOR_TARGET
686 gcc_cv_as
687 enable_fast_install
688 objdir
689 OTOOL64
690 OTOOL
691 LIPO
692 NMEDIT
693 DSYMUTIL
694 STRIP
695 OBJDUMP
696 ac_ct_DUMPBIN
697 DUMPBIN
699 FGREP
701 LIBTOOL
702 collect2
703 STMP_FIXINC
704 BUILD_LDFLAGS
705 BUILD_CXXFLAGS
706 BUILD_CFLAGS
707 CXX_FOR_BUILD
708 CC_FOR_BUILD
709 inhibit_libc
710 SYSTEM_HEADER_DIR
712 CROSS
713 CATOBJEXT
714 GENCAT
715 INSTOBJEXT
716 DATADIRNAME
717 CATALOGS
718 POSUB
719 GMSGFMT
720 XGETTEXT
721 INCINTL
722 LIBINTL_DEP
723 LIBINTL
724 USE_NLS
725 extra_opt_files
726 extra_modes_file
727 NATIVE_SYSTEM_HEADER_DIR
728 objext
729 manext
730 LIBICONV_DEP
731 LTLIBICONV
732 LIBICONV
733 LDEXP_LIB
734 EXTRA_GCC_LIBS
735 GNAT_LIBEXC
736 COLLECT2_LIBS
737 CXXCPP
740 BISON
741 FLEX
742 GENERATED_MANPAGES
743 BUILD_INFO
744 MAKEINFO
745 have_mktemp_command
746 make_compare_target
747 INSTALL_DATA
748 INSTALL_PROGRAM
749 INSTALL
750 ranlib_flags
751 RANLIB
753 LN_S
755 SET_MAKE
756 REPORT_BUGS_TEXI
757 REPORT_BUGS_TO
758 PKGVERSION
759 CONFIGURE_SPECS
760 CROSS_SYSTEM_HEADER_DIR
761 TARGET_SYSTEM_ROOT_DEFINE
762 TARGET_SYSTEM_ROOT
763 SYSROOT_CFLAGS_FOR_TARGET
764 enable_shared
765 enable_fixed_point
766 enable_decimal_float
767 with_float
768 with_cpu
769 enable_multiarch
770 enable_multilib
771 coverage_flags
772 valgrind_command
773 valgrind_path_defines
774 valgrind_path
775 TREECHECKING
776 TREEBROWSER
777 nocommon_flag
778 noexception_flags
779 warn_cxxflags
780 warn_cflags
781 c_strict_warn
782 strict_warn
783 c_loose_warn
784 loose_warn
785 EGREP
786 GREP
788 PICFLAG_FOR_TARGET
789 OUTPUT_OPTION
790 NO_MINUS_C_MINUS_O
791 GNATMAKE
792 GNATBIND
793 ac_ct_CXX
794 CXXFLAGS
796 OBJEXT
797 EXEEXT
798 ac_ct_CC
799 CPPFLAGS
800 LDFLAGS
801 CFLAGS
803 GENINSRC
804 target_subdir
805 host_subdir
806 build_subdir
807 build_libsubdir
808 target_noncanonical
809 target_os
810 target_vendor
811 target_cpu
812 target
813 host_os
814 host_vendor
815 host_cpu
816 host
817 build_os
818 build_vendor
819 build_cpu
820 build
821 target_alias
822 host_alias
823 build_alias
824 LIBS
825 ECHO_T
826 ECHO_N
827 ECHO_C
828 DEFS
829 mandir
830 localedir
831 libdir
832 psdir
833 pdfdir
834 dvidir
835 htmldir
836 infodir
837 docdir
838 oldincludedir
839 includedir
840 localstatedir
841 sharedstatedir
842 sysconfdir
843 datadir
844 datarootdir
845 libexecdir
846 sbindir
847 bindir
848 program_transform_name
849 prefix
850 exec_prefix
851 PACKAGE_URL
852 PACKAGE_BUGREPORT
853 PACKAGE_STRING
854 PACKAGE_VERSION
855 PACKAGE_TARNAME
856 PACKAGE_NAME
857 PATH_SEPARATOR
858 SHELL'
859 ac_subst_files='option_includes
860 language_hooks'
861 ac_user_opts='
862 enable_option_checking
863 with_build_libsubdir
864 with_local_prefix
865 with_gxx_include_dir
866 with_cpp_install_dir
867 enable_generated_files_in_srcdir
868 with_gnu_ld
869 with_ld
870 with_demangler_in_ld
871 with_gnu_as
872 with_as
873 enable_largefile
874 enable_werror_always
875 enable_checking
876 enable_coverage
877 enable_gather_detailed_mem_stats
878 with_stabs
879 enable_multilib
880 enable_multiarch
881 enable___cxa_atexit
882 enable_decimal_float
883 enable_fixed_point
884 enable_threads
885 enable_tls
886 enable_objc_gc
887 with_dwarf2
888 enable_shared
889 with_native_system_header_dir
890 with_build_sysroot
891 with_sysroot
892 with_specs
893 with_pkgversion
894 with_bugurl
895 enable_languages
896 with_multilib_list
897 enable_rpath
898 with_libiconv_prefix
899 enable_sjlj_exceptions
900 enable_secureplt
901 enable_leading_mingw64_underscores
902 enable_cld
903 enable_frame_pointer
904 enable_win32_registry
905 enable_static
906 with_pic
907 enable_fast_install
908 enable_libtool_lock
909 with_plugin_ld
910 enable_gnu_indirect_function
911 enable_initfini_array
912 enable_comdat
913 enable_fix_cortex_a53_835769
914 enable_gnu_unique_object
915 enable_linker_build_id
916 with_long_double_128
917 with_gc
918 with_system_zlib
919 enable_maintainer_mode
920 enable_version_specific_runtime_libs
921 enable_plugin
922 enable_libquadmath_support
923 with_linker_hash_style
925 ac_precious_vars='build_alias
926 host_alias
927 target_alias
929 CFLAGS
930 LDFLAGS
931 LIBS
932 CPPFLAGS
934 CXXFLAGS
937 CXXCPP
938 GMPLIBS
939 GMPINC
940 ISLLIBS
941 ISLINC
942 CLOOGLIBS
943 CLOOGINC'
946 # Initialize some variables set by options.
947 ac_init_help=
948 ac_init_version=false
949 ac_unrecognized_opts=
950 ac_unrecognized_sep=
951 # The variables have the same names as the options, with
952 # dashes changed to underlines.
953 cache_file=/dev/null
954 exec_prefix=NONE
955 no_create=
956 no_recursion=
957 prefix=NONE
958 program_prefix=NONE
959 program_suffix=NONE
960 program_transform_name=s,x,x,
961 silent=
962 site=
963 srcdir=
964 verbose=
965 x_includes=NONE
966 x_libraries=NONE
968 # Installation directory options.
969 # These are left unexpanded so users can "make install exec_prefix=/foo"
970 # and all the variables that are supposed to be based on exec_prefix
971 # by default will actually change.
972 # Use braces instead of parens because sh, perl, etc. also accept them.
973 # (The list follows the same order as the GNU Coding Standards.)
974 bindir='${exec_prefix}/bin'
975 sbindir='${exec_prefix}/sbin'
976 libexecdir='${exec_prefix}/libexec'
977 datarootdir='${prefix}/share'
978 datadir='${datarootdir}'
979 sysconfdir='${prefix}/etc'
980 sharedstatedir='${prefix}/com'
981 localstatedir='${prefix}/var'
982 includedir='${prefix}/include'
983 oldincludedir='/usr/include'
984 docdir='${datarootdir}/doc/${PACKAGE}'
985 infodir='${datarootdir}/info'
986 htmldir='${docdir}'
987 dvidir='${docdir}'
988 pdfdir='${docdir}'
989 psdir='${docdir}'
990 libdir='${exec_prefix}/lib'
991 localedir='${datarootdir}/locale'
992 mandir='${datarootdir}/man'
994 ac_prev=
995 ac_dashdash=
996 for ac_option
998 # If the previous option needs an argument, assign it.
999 if test -n "$ac_prev"; then
1000 eval $ac_prev=\$ac_option
1001 ac_prev=
1002 continue
1005 case $ac_option in
1006 *=*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
1007 *) ac_optarg=yes ;;
1008 esac
1010 # Accept the important Cygnus configure options, so we can diagnose typos.
1012 case $ac_dashdash$ac_option in
1014 ac_dashdash=yes ;;
1016 -bindir | --bindir | --bindi | --bind | --bin | --bi)
1017 ac_prev=bindir ;;
1018 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
1019 bindir=$ac_optarg ;;
1021 -build | --build | --buil | --bui | --bu)
1022 ac_prev=build_alias ;;
1023 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
1024 build_alias=$ac_optarg ;;
1026 -cache-file | --cache-file | --cache-fil | --cache-fi \
1027 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
1028 ac_prev=cache_file ;;
1029 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
1030 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
1031 cache_file=$ac_optarg ;;
1033 --config-cache | -C)
1034 cache_file=config.cache ;;
1036 -datadir | --datadir | --datadi | --datad)
1037 ac_prev=datadir ;;
1038 -datadir=* | --datadir=* | --datadi=* | --datad=*)
1039 datadir=$ac_optarg ;;
1041 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
1042 | --dataroo | --dataro | --datar)
1043 ac_prev=datarootdir ;;
1044 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
1045 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
1046 datarootdir=$ac_optarg ;;
1048 -disable-* | --disable-*)
1049 ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
1050 # Reject names that are not valid shell variable names.
1051 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1052 as_fn_error "invalid feature name: $ac_useropt"
1053 ac_useropt_orig=$ac_useropt
1054 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1055 case $ac_user_opts in
1057 "enable_$ac_useropt"
1058 "*) ;;
1059 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
1060 ac_unrecognized_sep=', ';;
1061 esac
1062 eval enable_$ac_useropt=no ;;
1064 -docdir | --docdir | --docdi | --doc | --do)
1065 ac_prev=docdir ;;
1066 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
1067 docdir=$ac_optarg ;;
1069 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
1070 ac_prev=dvidir ;;
1071 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
1072 dvidir=$ac_optarg ;;
1074 -enable-* | --enable-*)
1075 ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
1076 # Reject names that are not valid shell variable names.
1077 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1078 as_fn_error "invalid feature name: $ac_useropt"
1079 ac_useropt_orig=$ac_useropt
1080 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1081 case $ac_user_opts in
1083 "enable_$ac_useropt"
1084 "*) ;;
1085 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
1086 ac_unrecognized_sep=', ';;
1087 esac
1088 eval enable_$ac_useropt=\$ac_optarg ;;
1090 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
1091 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
1092 | --exec | --exe | --ex)
1093 ac_prev=exec_prefix ;;
1094 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
1095 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
1096 | --exec=* | --exe=* | --ex=*)
1097 exec_prefix=$ac_optarg ;;
1099 -gas | --gas | --ga | --g)
1100 # Obsolete; use --with-gas.
1101 with_gas=yes ;;
1103 -help | --help | --hel | --he | -h)
1104 ac_init_help=long ;;
1105 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
1106 ac_init_help=recursive ;;
1107 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
1108 ac_init_help=short ;;
1110 -host | --host | --hos | --ho)
1111 ac_prev=host_alias ;;
1112 -host=* | --host=* | --hos=* | --ho=*)
1113 host_alias=$ac_optarg ;;
1115 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
1116 ac_prev=htmldir ;;
1117 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
1118 | --ht=*)
1119 htmldir=$ac_optarg ;;
1121 -includedir | --includedir | --includedi | --included | --include \
1122 | --includ | --inclu | --incl | --inc)
1123 ac_prev=includedir ;;
1124 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
1125 | --includ=* | --inclu=* | --incl=* | --inc=*)
1126 includedir=$ac_optarg ;;
1128 -infodir | --infodir | --infodi | --infod | --info | --inf)
1129 ac_prev=infodir ;;
1130 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
1131 infodir=$ac_optarg ;;
1133 -libdir | --libdir | --libdi | --libd)
1134 ac_prev=libdir ;;
1135 -libdir=* | --libdir=* | --libdi=* | --libd=*)
1136 libdir=$ac_optarg ;;
1138 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
1139 | --libexe | --libex | --libe)
1140 ac_prev=libexecdir ;;
1141 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
1142 | --libexe=* | --libex=* | --libe=*)
1143 libexecdir=$ac_optarg ;;
1145 -localedir | --localedir | --localedi | --localed | --locale)
1146 ac_prev=localedir ;;
1147 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
1148 localedir=$ac_optarg ;;
1150 -localstatedir | --localstatedir | --localstatedi | --localstated \
1151 | --localstate | --localstat | --localsta | --localst | --locals)
1152 ac_prev=localstatedir ;;
1153 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
1154 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
1155 localstatedir=$ac_optarg ;;
1157 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1158 ac_prev=mandir ;;
1159 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1160 mandir=$ac_optarg ;;
1162 -nfp | --nfp | --nf)
1163 # Obsolete; use --without-fp.
1164 with_fp=no ;;
1166 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1167 | --no-cr | --no-c | -n)
1168 no_create=yes ;;
1170 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1171 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1172 no_recursion=yes ;;
1174 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1175 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1176 | --oldin | --oldi | --old | --ol | --o)
1177 ac_prev=oldincludedir ;;
1178 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1179 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1180 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1181 oldincludedir=$ac_optarg ;;
1183 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1184 ac_prev=prefix ;;
1185 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1186 prefix=$ac_optarg ;;
1188 -program-prefix | --program-prefix | --program-prefi | --program-pref \
1189 | --program-pre | --program-pr | --program-p)
1190 ac_prev=program_prefix ;;
1191 -program-prefix=* | --program-prefix=* | --program-prefi=* \
1192 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1193 program_prefix=$ac_optarg ;;
1195 -program-suffix | --program-suffix | --program-suffi | --program-suff \
1196 | --program-suf | --program-su | --program-s)
1197 ac_prev=program_suffix ;;
1198 -program-suffix=* | --program-suffix=* | --program-suffi=* \
1199 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1200 program_suffix=$ac_optarg ;;
1202 -program-transform-name | --program-transform-name \
1203 | --program-transform-nam | --program-transform-na \
1204 | --program-transform-n | --program-transform- \
1205 | --program-transform | --program-transfor \
1206 | --program-transfo | --program-transf \
1207 | --program-trans | --program-tran \
1208 | --progr-tra | --program-tr | --program-t)
1209 ac_prev=program_transform_name ;;
1210 -program-transform-name=* | --program-transform-name=* \
1211 | --program-transform-nam=* | --program-transform-na=* \
1212 | --program-transform-n=* | --program-transform-=* \
1213 | --program-transform=* | --program-transfor=* \
1214 | --program-transfo=* | --program-transf=* \
1215 | --program-trans=* | --program-tran=* \
1216 | --progr-tra=* | --program-tr=* | --program-t=*)
1217 program_transform_name=$ac_optarg ;;
1219 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1220 ac_prev=pdfdir ;;
1221 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1222 pdfdir=$ac_optarg ;;
1224 -psdir | --psdir | --psdi | --psd | --ps)
1225 ac_prev=psdir ;;
1226 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1227 psdir=$ac_optarg ;;
1229 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1230 | -silent | --silent | --silen | --sile | --sil)
1231 silent=yes ;;
1233 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1234 ac_prev=sbindir ;;
1235 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1236 | --sbi=* | --sb=*)
1237 sbindir=$ac_optarg ;;
1239 -sharedstatedir | --sharedstatedir | --sharedstatedi \
1240 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1241 | --sharedst | --shareds | --shared | --share | --shar \
1242 | --sha | --sh)
1243 ac_prev=sharedstatedir ;;
1244 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1245 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1246 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1247 | --sha=* | --sh=*)
1248 sharedstatedir=$ac_optarg ;;
1250 -site | --site | --sit)
1251 ac_prev=site ;;
1252 -site=* | --site=* | --sit=*)
1253 site=$ac_optarg ;;
1255 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1256 ac_prev=srcdir ;;
1257 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1258 srcdir=$ac_optarg ;;
1260 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1261 | --syscon | --sysco | --sysc | --sys | --sy)
1262 ac_prev=sysconfdir ;;
1263 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1264 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1265 sysconfdir=$ac_optarg ;;
1267 -target | --target | --targe | --targ | --tar | --ta | --t)
1268 ac_prev=target_alias ;;
1269 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1270 target_alias=$ac_optarg ;;
1272 -v | -verbose | --verbose | --verbos | --verbo | --verb)
1273 verbose=yes ;;
1275 -version | --version | --versio | --versi | --vers | -V)
1276 ac_init_version=: ;;
1278 -with-* | --with-*)
1279 ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1280 # Reject names that are not valid shell variable names.
1281 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1282 as_fn_error "invalid package name: $ac_useropt"
1283 ac_useropt_orig=$ac_useropt
1284 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1285 case $ac_user_opts in
1287 "with_$ac_useropt"
1288 "*) ;;
1289 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1290 ac_unrecognized_sep=', ';;
1291 esac
1292 eval with_$ac_useropt=\$ac_optarg ;;
1294 -without-* | --without-*)
1295 ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1296 # Reject names that are not valid shell variable names.
1297 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1298 as_fn_error "invalid package name: $ac_useropt"
1299 ac_useropt_orig=$ac_useropt
1300 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1301 case $ac_user_opts in
1303 "with_$ac_useropt"
1304 "*) ;;
1305 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1306 ac_unrecognized_sep=', ';;
1307 esac
1308 eval with_$ac_useropt=no ;;
1310 --x)
1311 # Obsolete; use --with-x.
1312 with_x=yes ;;
1314 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1315 | --x-incl | --x-inc | --x-in | --x-i)
1316 ac_prev=x_includes ;;
1317 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1318 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1319 x_includes=$ac_optarg ;;
1321 -x-libraries | --x-libraries | --x-librarie | --x-librari \
1322 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1323 ac_prev=x_libraries ;;
1324 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1325 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1326 x_libraries=$ac_optarg ;;
1328 -*) as_fn_error "unrecognized option: \`$ac_option'
1329 Try \`$0 --help' for more information."
1332 *=*)
1333 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1334 # Reject names that are not valid shell variable names.
1335 case $ac_envvar in #(
1336 '' | [0-9]* | *[!_$as_cr_alnum]* )
1337 as_fn_error "invalid variable name: \`$ac_envvar'" ;;
1338 esac
1339 eval $ac_envvar=\$ac_optarg
1340 export $ac_envvar ;;
1343 # FIXME: should be removed in autoconf 3.0.
1344 $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1345 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1346 $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1347 : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
1350 esac
1351 done
1353 if test -n "$ac_prev"; then
1354 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1355 as_fn_error "missing argument to $ac_option"
1358 if test -n "$ac_unrecognized_opts"; then
1359 case $enable_option_checking in
1360 no) ;;
1361 fatal) as_fn_error "unrecognized options: $ac_unrecognized_opts" ;;
1362 *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1363 esac
1366 # Check all directory arguments for consistency.
1367 for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1368 datadir sysconfdir sharedstatedir localstatedir includedir \
1369 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1370 libdir localedir mandir
1372 eval ac_val=\$$ac_var
1373 # Remove trailing slashes.
1374 case $ac_val in
1375 */ )
1376 ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1377 eval $ac_var=\$ac_val;;
1378 esac
1379 # Be sure to have absolute directory names.
1380 case $ac_val in
1381 [\\/$]* | ?:[\\/]* ) continue;;
1382 NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1383 esac
1384 as_fn_error "expected an absolute directory name for --$ac_var: $ac_val"
1385 done
1387 # There might be people who depend on the old broken behavior: `$host'
1388 # used to hold the argument of --host etc.
1389 # FIXME: To remove some day.
1390 build=$build_alias
1391 host=$host_alias
1392 target=$target_alias
1394 # FIXME: To remove some day.
1395 if test "x$host_alias" != x; then
1396 if test "x$build_alias" = x; then
1397 cross_compiling=maybe
1398 $as_echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
1399 If a cross compiler is detected then cross compile mode will be used." >&2
1400 elif test "x$build_alias" != "x$host_alias"; then
1401 cross_compiling=yes
1405 ac_tool_prefix=
1406 test -n "$host_alias" && ac_tool_prefix=$host_alias-
1408 test "$silent" = yes && exec 6>/dev/null
1411 ac_pwd=`pwd` && test -n "$ac_pwd" &&
1412 ac_ls_di=`ls -di .` &&
1413 ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1414 as_fn_error "working directory cannot be determined"
1415 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1416 as_fn_error "pwd does not report name of working directory"
1419 # Find the source files, if location was not specified.
1420 if test -z "$srcdir"; then
1421 ac_srcdir_defaulted=yes
1422 # Try the directory containing this script, then the parent directory.
1423 ac_confdir=`$as_dirname -- "$as_myself" ||
1424 $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1425 X"$as_myself" : 'X\(//\)[^/]' \| \
1426 X"$as_myself" : 'X\(//\)$' \| \
1427 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1428 $as_echo X"$as_myself" |
1429 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1430 s//\1/
1433 /^X\(\/\/\)[^/].*/{
1434 s//\1/
1437 /^X\(\/\/\)$/{
1438 s//\1/
1441 /^X\(\/\).*/{
1442 s//\1/
1445 s/.*/./; q'`
1446 srcdir=$ac_confdir
1447 if test ! -r "$srcdir/$ac_unique_file"; then
1448 srcdir=..
1450 else
1451 ac_srcdir_defaulted=no
1453 if test ! -r "$srcdir/$ac_unique_file"; then
1454 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1455 as_fn_error "cannot find sources ($ac_unique_file) in $srcdir"
1457 ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1458 ac_abs_confdir=`(
1459 cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error "$ac_msg"
1460 pwd)`
1461 # When building in place, set srcdir=.
1462 if test "$ac_abs_confdir" = "$ac_pwd"; then
1463 srcdir=.
1465 # Remove unnecessary trailing slashes from srcdir.
1466 # Double slashes in file names in object file debugging info
1467 # mess up M-x gdb in Emacs.
1468 case $srcdir in
1469 */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1470 esac
1471 for ac_var in $ac_precious_vars; do
1472 eval ac_env_${ac_var}_set=\${${ac_var}+set}
1473 eval ac_env_${ac_var}_value=\$${ac_var}
1474 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1475 eval ac_cv_env_${ac_var}_value=\$${ac_var}
1476 done
1479 # Report the --help message.
1481 if test "$ac_init_help" = "long"; then
1482 # Omit some internal or obsolete options to make the list less imposing.
1483 # This message is too long to be a string in the A/UX 3.1 sh.
1484 cat <<_ACEOF
1485 \`configure' configures this package to adapt to many kinds of systems.
1487 Usage: $0 [OPTION]... [VAR=VALUE]...
1489 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1490 VAR=VALUE. See below for descriptions of some of the useful variables.
1492 Defaults for the options are specified in brackets.
1494 Configuration:
1495 -h, --help display this help and exit
1496 --help=short display options specific to this package
1497 --help=recursive display the short help of all the included packages
1498 -V, --version display version information and exit
1499 -q, --quiet, --silent do not print \`checking...' messages
1500 --cache-file=FILE cache test results in FILE [disabled]
1501 -C, --config-cache alias for \`--cache-file=config.cache'
1502 -n, --no-create do not create output files
1503 --srcdir=DIR find the sources in DIR [configure dir or \`..']
1505 Installation directories:
1506 --prefix=PREFIX install architecture-independent files in PREFIX
1507 [$ac_default_prefix]
1508 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
1509 [PREFIX]
1511 By default, \`make install' will install all the files in
1512 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1513 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1514 for instance \`--prefix=\$HOME'.
1516 For better control, use the options below.
1518 Fine tuning of the installation directories:
1519 --bindir=DIR user executables [EPREFIX/bin]
1520 --sbindir=DIR system admin executables [EPREFIX/sbin]
1521 --libexecdir=DIR program executables [EPREFIX/libexec]
1522 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1523 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1524 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1525 --libdir=DIR object code libraries [EPREFIX/lib]
1526 --includedir=DIR C header files [PREFIX/include]
1527 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1528 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1529 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1530 --infodir=DIR info documentation [DATAROOTDIR/info]
1531 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1532 --mandir=DIR man documentation [DATAROOTDIR/man]
1533 --docdir=DIR documentation root [DATAROOTDIR/doc/PACKAGE]
1534 --htmldir=DIR html documentation [DOCDIR]
1535 --dvidir=DIR dvi documentation [DOCDIR]
1536 --pdfdir=DIR pdf documentation [DOCDIR]
1537 --psdir=DIR ps documentation [DOCDIR]
1538 _ACEOF
1540 cat <<\_ACEOF
1542 Program names:
1543 --program-prefix=PREFIX prepend PREFIX to installed program names
1544 --program-suffix=SUFFIX append SUFFIX to installed program names
1545 --program-transform-name=PROGRAM run sed PROGRAM on installed program names
1547 System types:
1548 --build=BUILD configure for building on BUILD [guessed]
1549 --host=HOST cross-compile to build programs to run on HOST [BUILD]
1550 --target=TARGET configure for building compilers for TARGET [HOST]
1551 _ACEOF
1554 if test -n "$ac_init_help"; then
1556 cat <<\_ACEOF
1558 Optional Features:
1559 --disable-option-checking ignore unrecognized --enable/--with options
1560 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
1561 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
1562 --enable-generated-files-in-srcdir
1563 put copies of generated files in source dir intended
1564 for creating source tarballs for users without
1565 texinfo bison or flex
1566 --disable-largefile omit support for large files
1567 --enable-werror-always enable -Werror despite compiler version
1568 --enable-checking[=LIST]
1569 enable expensive run-time checks. With LIST, enable
1570 only specific categories of checks. Categories are:
1571 yes,no,all,none,release. Flags are:
1572 assert,df,fold,gc,gcac,gimple,misc,
1573 rtlflag,rtl,runtime,tree,valgrind,types
1574 --enable-coverage[=LEVEL]
1575 enable compiler's code coverage collection. Use to
1576 measure compiler performance and locate unused parts
1577 of the compiler. With LEVEL, specify optimization.
1578 Values are opt, noopt, default is noopt
1579 --enable-gather-detailed-mem-stats
1580 enable detailed memory allocation stats gathering
1581 --enable-multilib enable library support for multiple ABIs
1582 --enable-multiarch enable support for multiarch paths
1583 --enable-__cxa_atexit enable __cxa_atexit for C++
1584 --enable-decimal-float={no,yes,bid,dpd}
1585 enable decimal float extension to C. Selecting 'bid'
1586 or 'dpd' choses which decimal floating point format
1587 to use
1588 --enable-fixed-point enable fixed-point arithmetic extension to C
1589 --enable-threads[=LIB] enable thread usage for target GCC, using LIB thread
1590 package
1591 --enable-tls enable or disable generation of tls code overriding
1592 the assembler check for tls support
1593 --enable-objc-gc enable the use of Boehm's garbage collector with the
1594 GNU Objective-C runtime
1595 --disable-shared don't provide a shared libgcc
1596 --enable-languages=LIST specify which front-ends to build
1597 --disable-rpath do not hardcode runtime library paths
1598 --enable-sjlj-exceptions
1599 arrange to use setjmp/longjmp exception handling
1600 --enable-secureplt enable -msecure-plt by default for PowerPC
1601 --enable-leading-mingw64-underscores
1602 enable leading underscores on 64 bit mingw targets
1603 --enable-cld enable -mcld by default for 32bit x86
1604 --enable-frame-pointer enable -fno-omit-frame-pointer by default for 32bit
1606 --disable-win32-registry
1607 disable lookup of installation paths in the Registry
1608 on Windows hosts
1609 --enable-win32-registry enable registry lookup (default)
1610 --enable-win32-registry=KEY
1611 use KEY instead of GCC version as the last portion
1612 of the registry key
1613 --enable-shared[=PKGS] build shared libraries [default=yes]
1614 --enable-static[=PKGS] build static libraries [default=yes]
1615 --enable-fast-install[=PKGS]
1616 optimize for fast installation [default=yes]
1617 --disable-libtool-lock avoid locking (might break parallel builds)
1618 --enable-gnu-indirect-function
1619 enable the use of the @gnu_indirect_function to
1620 glibc systems
1621 --enable-initfini-array use .init_array/.fini_array sections
1622 --enable-comdat enable COMDAT group support
1624 --enable-fix-cortex-a53-835769
1625 enable workaround for AArch64 Cortex-A53 erratum
1626 835769 by default
1627 --disable-fix-cortex-a53-835769
1628 disable workaround for AArch64 Cortex-A53 erratum
1629 835769 by default
1631 --enable-gnu-unique-object
1632 enable the use of the @gnu_unique_object ELF
1633 extension on glibc systems
1634 --enable-linker-build-id
1635 compiler will always pass --build-id to linker
1636 --enable-maintainer-mode
1637 enable make rules and dependencies not useful (and
1638 sometimes confusing) to the casual installer
1639 --enable-version-specific-runtime-libs
1640 specify that runtime libraries should be installed
1641 in a compiler-specific directory
1642 --enable-plugin enable plugin support
1643 --disable-libquadmath-support
1644 disable libquadmath support for Fortran
1646 Optional Packages:
1647 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1648 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
1649 --with-build-libsubdir=DIR Directory where to find libraries for build system
1650 --with-local-prefix=DIR specifies directory to put local include
1651 --with-gxx-include-dir=DIR
1652 specifies directory to put g++ header files
1653 --with-cpp-install-dir=DIR
1654 install the user visible C preprocessor in DIR
1655 (relative to PREFIX) as well as PREFIX/bin
1656 --with-gnu-ld arrange to work with GNU ld
1657 --with-ld arrange to use the specified ld (full pathname)
1658 --with-demangler-in-ld try to use demangler in GNU ld
1659 --with-gnu-as arrange to work with GNU as
1660 --with-as arrange to use the specified as (full pathname)
1661 --with-stabs arrange to use stabs instead of host debug format
1662 --with-dwarf2 force the default debug format to be DWARF 2
1663 --with-native-system-header-dir=dir
1664 use dir as the directory to look for standard
1665 system header files in. Defaults to /usr/include.
1666 --with-build-sysroot=sysroot
1667 use sysroot as the system root during the build
1668 --with-sysroot[=DIR] search for usr/lib, usr/include, et al, within DIR
1669 --with-specs=SPECS add SPECS to driver command-line processing
1670 --with-pkgversion=PKG Use PKG in the version string in place of "GCC"
1671 --with-bugurl=URL Direct users to URL to report a bug
1672 --with-multilib-list select multilibs (SH and x86-64 only)
1673 --with-gnu-ld assume the C compiler uses GNU ld default=no
1674 --with-libiconv-prefix[=DIR] search for libiconv in DIR/include and DIR/lib
1675 --without-libiconv-prefix don't search for libiconv in includedir and libdir
1676 --with-pic try to use only PIC/non-PIC objects [default=use
1677 both]
1678 --with-gnu-ld assume the C compiler uses GNU ld [default=no]
1679 --with-plugin-ld=[ARG] specify the plugin linker
1680 --with-long-double-128 use 128-bit long double by default
1681 --with-gc={page,zone} this option is not supported anymore. It used to
1682 choose the garbage collection mechanism to use with
1683 the compiler
1684 --with-system-zlib use installed libz
1685 --with-linker-hash-style={sysv,gnu,both}
1686 specify the linker hash style
1688 Some influential environment variables:
1689 CC C compiler command
1690 CFLAGS C compiler flags
1691 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1692 nonstandard directory <lib dir>
1693 LIBS libraries to pass to the linker, e.g. -l<library>
1694 CPPFLAGS C/C++/Objective C preprocessor flags, e.g. -I<include dir> if
1695 you have headers in a nonstandard directory <include dir>
1696 CXX C++ compiler command
1697 CXXFLAGS C++ compiler flags
1698 CPP C preprocessor
1699 CXXCPP C++ preprocessor
1700 GMPLIBS How to link GMP
1701 GMPINC How to find GMP include files
1702 ISLLIBS How to link ISL
1703 ISLINC How to find ISL include files
1704 CLOOGLIBS How to link CLOOG
1705 CLOOGINC How to find CLOOG include files
1707 Use these variables to override the choices made by `configure' or to help
1708 it to find libraries and programs with nonstandard names/locations.
1710 Report bugs to the package provider.
1711 _ACEOF
1712 ac_status=$?
1715 if test "$ac_init_help" = "recursive"; then
1716 # If there are subdirs, report their specific --help.
1717 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1718 test -d "$ac_dir" ||
1719 { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1720 continue
1721 ac_builddir=.
1723 case "$ac_dir" in
1724 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1726 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
1727 # A ".." for each directory in $ac_dir_suffix.
1728 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
1729 case $ac_top_builddir_sub in
1730 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1731 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1732 esac ;;
1733 esac
1734 ac_abs_top_builddir=$ac_pwd
1735 ac_abs_builddir=$ac_pwd$ac_dir_suffix
1736 # for backward compatibility:
1737 ac_top_builddir=$ac_top_build_prefix
1739 case $srcdir in
1740 .) # We are building in place.
1741 ac_srcdir=.
1742 ac_top_srcdir=$ac_top_builddir_sub
1743 ac_abs_top_srcdir=$ac_pwd ;;
1744 [\\/]* | ?:[\\/]* ) # Absolute name.
1745 ac_srcdir=$srcdir$ac_dir_suffix;
1746 ac_top_srcdir=$srcdir
1747 ac_abs_top_srcdir=$srcdir ;;
1748 *) # Relative name.
1749 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1750 ac_top_srcdir=$ac_top_build_prefix$srcdir
1751 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1752 esac
1753 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1755 cd "$ac_dir" || { ac_status=$?; continue; }
1756 # Check for guested configure.
1757 if test -f "$ac_srcdir/configure.gnu"; then
1758 echo &&
1759 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1760 elif test -f "$ac_srcdir/configure"; then
1761 echo &&
1762 $SHELL "$ac_srcdir/configure" --help=recursive
1763 else
1764 $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1765 fi || ac_status=$?
1766 cd "$ac_pwd" || { ac_status=$?; break; }
1767 done
1770 test -n "$ac_init_help" && exit $ac_status
1771 if $ac_init_version; then
1772 cat <<\_ACEOF
1773 configure
1774 generated by GNU Autoconf 2.64
1776 Copyright (C) 2009 Free Software Foundation, Inc.
1777 This configure script is free software; the Free Software Foundation
1778 gives unlimited permission to copy, distribute and modify it.
1779 _ACEOF
1780 exit
1783 ## ------------------------ ##
1784 ## Autoconf initialization. ##
1785 ## ------------------------ ##
1787 # ac_fn_c_try_compile LINENO
1788 # --------------------------
1789 # Try to compile conftest.$ac_ext, and return whether this succeeded.
1790 ac_fn_c_try_compile ()
1792 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1793 rm -f conftest.$ac_objext
1794 if { { ac_try="$ac_compile"
1795 case "(($ac_try" in
1796 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1797 *) ac_try_echo=$ac_try;;
1798 esac
1799 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1800 $as_echo "$ac_try_echo"; } >&5
1801 (eval "$ac_compile") 2>conftest.err
1802 ac_status=$?
1803 if test -s conftest.err; then
1804 grep -v '^ *+' conftest.err >conftest.er1
1805 cat conftest.er1 >&5
1806 mv -f conftest.er1 conftest.err
1808 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1809 test $ac_status = 0; } && {
1810 test -z "$ac_c_werror_flag" ||
1811 test ! -s conftest.err
1812 } && test -s conftest.$ac_objext; then :
1813 ac_retval=0
1814 else
1815 $as_echo "$as_me: failed program was:" >&5
1816 sed 's/^/| /' conftest.$ac_ext >&5
1818 ac_retval=1
1820 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1821 return $ac_retval
1823 } # ac_fn_c_try_compile
1825 # ac_fn_cxx_try_compile LINENO
1826 # ----------------------------
1827 # Try to compile conftest.$ac_ext, and return whether this succeeded.
1828 ac_fn_cxx_try_compile ()
1830 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1831 rm -f conftest.$ac_objext
1832 if { { ac_try="$ac_compile"
1833 case "(($ac_try" in
1834 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1835 *) ac_try_echo=$ac_try;;
1836 esac
1837 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1838 $as_echo "$ac_try_echo"; } >&5
1839 (eval "$ac_compile") 2>conftest.err
1840 ac_status=$?
1841 if test -s conftest.err; then
1842 grep -v '^ *+' conftest.err >conftest.er1
1843 cat conftest.er1 >&5
1844 mv -f conftest.er1 conftest.err
1846 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1847 test $ac_status = 0; } && {
1848 test -z "$ac_cxx_werror_flag" ||
1849 test ! -s conftest.err
1850 } && test -s conftest.$ac_objext; then :
1851 ac_retval=0
1852 else
1853 $as_echo "$as_me: failed program was:" >&5
1854 sed 's/^/| /' conftest.$ac_ext >&5
1856 ac_retval=1
1858 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1859 return $ac_retval
1861 } # ac_fn_cxx_try_compile
1863 # ac_fn_c_try_cpp LINENO
1864 # ----------------------
1865 # Try to preprocess conftest.$ac_ext, and return whether this succeeded.
1866 ac_fn_c_try_cpp ()
1868 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1869 if { { ac_try="$ac_cpp conftest.$ac_ext"
1870 case "(($ac_try" in
1871 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1872 *) ac_try_echo=$ac_try;;
1873 esac
1874 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1875 $as_echo "$ac_try_echo"; } >&5
1876 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
1877 ac_status=$?
1878 if test -s conftest.err; then
1879 grep -v '^ *+' conftest.err >conftest.er1
1880 cat conftest.er1 >&5
1881 mv -f conftest.er1 conftest.err
1883 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1884 test $ac_status = 0; } >/dev/null && {
1885 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
1886 test ! -s conftest.err
1887 }; then :
1888 ac_retval=0
1889 else
1890 $as_echo "$as_me: failed program was:" >&5
1891 sed 's/^/| /' conftest.$ac_ext >&5
1893 ac_retval=1
1895 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1896 return $ac_retval
1898 } # ac_fn_c_try_cpp
1900 # ac_fn_c_check_header_mongrel LINENO HEADER VAR INCLUDES
1901 # -------------------------------------------------------
1902 # Tests whether HEADER exists, giving a warning if it cannot be compiled using
1903 # the include files in INCLUDES and setting the cache variable VAR
1904 # accordingly.
1905 ac_fn_c_check_header_mongrel ()
1907 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1908 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
1909 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1910 $as_echo_n "checking for $2... " >&6; }
1911 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
1912 $as_echo_n "(cached) " >&6
1914 eval ac_res=\$$3
1915 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1916 $as_echo "$ac_res" >&6; }
1917 else
1918 # Is the header compilable?
1919 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5
1920 $as_echo_n "checking $2 usability... " >&6; }
1921 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1922 /* end confdefs.h. */
1924 #include <$2>
1925 _ACEOF
1926 if ac_fn_c_try_compile "$LINENO"; then :
1927 ac_header_compiler=yes
1928 else
1929 ac_header_compiler=no
1931 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1932 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5
1933 $as_echo "$ac_header_compiler" >&6; }
1935 # Is the header present?
1936 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5
1937 $as_echo_n "checking $2 presence... " >&6; }
1938 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1939 /* end confdefs.h. */
1940 #include <$2>
1941 _ACEOF
1942 if ac_fn_c_try_cpp "$LINENO"; then :
1943 ac_header_preproc=yes
1944 else
1945 ac_header_preproc=no
1947 rm -f conftest.err conftest.$ac_ext
1948 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5
1949 $as_echo "$ac_header_preproc" >&6; }
1951 # So? What about this header?
1952 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in #((
1953 yes:no: )
1954 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5
1955 $as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;}
1956 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
1957 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
1959 no:yes:* )
1960 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5
1961 $as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;}
1962 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: check for missing prerequisite headers?" >&5
1963 $as_echo "$as_me: WARNING: $2: check for missing prerequisite headers?" >&2;}
1964 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5
1965 $as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;}
1966 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&5
1967 $as_echo "$as_me: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&2;}
1968 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
1969 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
1971 esac
1972 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1973 $as_echo_n "checking for $2... " >&6; }
1974 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
1975 $as_echo_n "(cached) " >&6
1976 else
1977 eval "$3=\$ac_header_compiler"
1979 eval ac_res=\$$3
1980 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1981 $as_echo "$ac_res" >&6; }
1983 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1985 } # ac_fn_c_check_header_mongrel
1987 # ac_fn_c_try_run LINENO
1988 # ----------------------
1989 # Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
1990 # that executables *can* be run.
1991 ac_fn_c_try_run ()
1993 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1994 if { { ac_try="$ac_link"
1995 case "(($ac_try" in
1996 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1997 *) ac_try_echo=$ac_try;;
1998 esac
1999 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2000 $as_echo "$ac_try_echo"; } >&5
2001 (eval "$ac_link") 2>&5
2002 ac_status=$?
2003 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2004 test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
2005 { { case "(($ac_try" in
2006 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2007 *) ac_try_echo=$ac_try;;
2008 esac
2009 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2010 $as_echo "$ac_try_echo"; } >&5
2011 (eval "$ac_try") 2>&5
2012 ac_status=$?
2013 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2014 test $ac_status = 0; }; }; then :
2015 ac_retval=0
2016 else
2017 $as_echo "$as_me: program exited with status $ac_status" >&5
2018 $as_echo "$as_me: failed program was:" >&5
2019 sed 's/^/| /' conftest.$ac_ext >&5
2021 ac_retval=$ac_status
2023 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
2024 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2025 return $ac_retval
2027 } # ac_fn_c_try_run
2029 # ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
2030 # -------------------------------------------------------
2031 # Tests whether HEADER exists and can be compiled using the include files in
2032 # INCLUDES, setting the cache variable VAR accordingly.
2033 ac_fn_c_check_header_compile ()
2035 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2036 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2037 $as_echo_n "checking for $2... " >&6; }
2038 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
2039 $as_echo_n "(cached) " >&6
2040 else
2041 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2042 /* end confdefs.h. */
2044 #include <$2>
2045 _ACEOF
2046 if ac_fn_c_try_compile "$LINENO"; then :
2047 eval "$3=yes"
2048 else
2049 eval "$3=no"
2051 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2053 eval ac_res=\$$3
2054 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2055 $as_echo "$ac_res" >&6; }
2056 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2058 } # ac_fn_c_check_header_compile
2060 # ac_fn_c_compute_int LINENO EXPR VAR INCLUDES
2061 # --------------------------------------------
2062 # Tries to find the compile-time value of EXPR in a program that includes
2063 # INCLUDES, setting VAR accordingly. Returns whether the value could be
2064 # computed
2065 ac_fn_c_compute_int ()
2067 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2068 if test "$cross_compiling" = yes; then
2069 # Depending upon the size, compute the lo and hi bounds.
2070 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2071 /* end confdefs.h. */
2074 main ()
2076 static int test_array [1 - 2 * !(($2) >= 0)];
2077 test_array [0] = 0
2080 return 0;
2082 _ACEOF
2083 if ac_fn_c_try_compile "$LINENO"; then :
2084 ac_lo=0 ac_mid=0
2085 while :; do
2086 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2087 /* end confdefs.h. */
2090 main ()
2092 static int test_array [1 - 2 * !(($2) <= $ac_mid)];
2093 test_array [0] = 0
2096 return 0;
2098 _ACEOF
2099 if ac_fn_c_try_compile "$LINENO"; then :
2100 ac_hi=$ac_mid; break
2101 else
2102 as_fn_arith $ac_mid + 1 && ac_lo=$as_val
2103 if test $ac_lo -le $ac_mid; then
2104 ac_lo= ac_hi=
2105 break
2107 as_fn_arith 2 '*' $ac_mid + 1 && ac_mid=$as_val
2109 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2110 done
2111 else
2112 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2113 /* end confdefs.h. */
2116 main ()
2118 static int test_array [1 - 2 * !(($2) < 0)];
2119 test_array [0] = 0
2122 return 0;
2124 _ACEOF
2125 if ac_fn_c_try_compile "$LINENO"; then :
2126 ac_hi=-1 ac_mid=-1
2127 while :; do
2128 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2129 /* end confdefs.h. */
2132 main ()
2134 static int test_array [1 - 2 * !(($2) >= $ac_mid)];
2135 test_array [0] = 0
2138 return 0;
2140 _ACEOF
2141 if ac_fn_c_try_compile "$LINENO"; then :
2142 ac_lo=$ac_mid; break
2143 else
2144 as_fn_arith '(' $ac_mid ')' - 1 && ac_hi=$as_val
2145 if test $ac_mid -le $ac_hi; then
2146 ac_lo= ac_hi=
2147 break
2149 as_fn_arith 2 '*' $ac_mid && ac_mid=$as_val
2151 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2152 done
2153 else
2154 ac_lo= ac_hi=
2156 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2158 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2159 # Binary search between lo and hi bounds.
2160 while test "x$ac_lo" != "x$ac_hi"; do
2161 as_fn_arith '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo && ac_mid=$as_val
2162 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2163 /* end confdefs.h. */
2166 main ()
2168 static int test_array [1 - 2 * !(($2) <= $ac_mid)];
2169 test_array [0] = 0
2172 return 0;
2174 _ACEOF
2175 if ac_fn_c_try_compile "$LINENO"; then :
2176 ac_hi=$ac_mid
2177 else
2178 as_fn_arith '(' $ac_mid ')' + 1 && ac_lo=$as_val
2180 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2181 done
2182 case $ac_lo in #((
2183 ?*) eval "$3=\$ac_lo"; ac_retval=0 ;;
2184 '') ac_retval=1 ;;
2185 esac
2186 else
2187 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2188 /* end confdefs.h. */
2190 static long int longval () { return $2; }
2191 static unsigned long int ulongval () { return $2; }
2192 #include <stdio.h>
2193 #include <stdlib.h>
2195 main ()
2198 FILE *f = fopen ("conftest.val", "w");
2199 if (! f)
2200 return 1;
2201 if (($2) < 0)
2203 long int i = longval ();
2204 if (i != ($2))
2205 return 1;
2206 fprintf (f, "%ld", i);
2208 else
2210 unsigned long int i = ulongval ();
2211 if (i != ($2))
2212 return 1;
2213 fprintf (f, "%lu", i);
2215 /* Do not output a trailing newline, as this causes \r\n confusion
2216 on some platforms. */
2217 return ferror (f) || fclose (f) != 0;
2220 return 0;
2222 _ACEOF
2223 if ac_fn_c_try_run "$LINENO"; then :
2224 echo >>conftest.val; read $3 <conftest.val; ac_retval=0
2225 else
2226 ac_retval=1
2228 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
2229 conftest.$ac_objext conftest.beam conftest.$ac_ext
2230 rm -f conftest.val
2233 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2234 return $ac_retval
2236 } # ac_fn_c_compute_int
2238 # ac_fn_c_check_type LINENO TYPE VAR INCLUDES
2239 # -------------------------------------------
2240 # Tests whether TYPE exists after having included INCLUDES, setting cache
2241 # variable VAR accordingly.
2242 ac_fn_c_check_type ()
2244 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2245 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2246 $as_echo_n "checking for $2... " >&6; }
2247 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
2248 $as_echo_n "(cached) " >&6
2249 else
2250 eval "$3=no"
2251 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2252 /* end confdefs.h. */
2255 main ()
2257 if (sizeof ($2))
2258 return 0;
2260 return 0;
2262 _ACEOF
2263 if ac_fn_c_try_compile "$LINENO"; then :
2264 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2265 /* end confdefs.h. */
2268 main ()
2270 if (sizeof (($2)))
2271 return 0;
2273 return 0;
2275 _ACEOF
2276 if ac_fn_c_try_compile "$LINENO"; then :
2278 else
2279 eval "$3=yes"
2281 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2283 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2285 eval ac_res=\$$3
2286 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2287 $as_echo "$ac_res" >&6; }
2288 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2290 } # ac_fn_c_check_type
2292 # ac_fn_c_find_intX_t LINENO BITS VAR
2293 # -----------------------------------
2294 # Finds a signed integer type with width BITS, setting cache variable VAR
2295 # accordingly.
2296 ac_fn_c_find_intX_t ()
2298 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2299 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for int$2_t" >&5
2300 $as_echo_n "checking for int$2_t... " >&6; }
2301 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
2302 $as_echo_n "(cached) " >&6
2303 else
2304 eval "$3=no"
2305 for ac_type in int$2_t 'int' 'long int' \
2306 'long long int' 'short int' 'signed char'; do
2307 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2308 /* end confdefs.h. */
2309 $ac_includes_default
2311 main ()
2313 static int test_array [1 - 2 * !(0 < ($ac_type) (((($ac_type) 1 << ($2 - 2)) - 1) * 2 + 1))];
2314 test_array [0] = 0
2317 return 0;
2319 _ACEOF
2320 if ac_fn_c_try_compile "$LINENO"; then :
2321 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2322 /* end confdefs.h. */
2323 $ac_includes_default
2325 main ()
2327 static int test_array [1 - 2 * !(($ac_type) (((($ac_type) 1 << ($2 - 2)) - 1) * 2 + 1)
2328 < ($ac_type) (((($ac_type) 1 << ($2 - 2)) - 1) * 2 + 2))];
2329 test_array [0] = 0
2332 return 0;
2334 _ACEOF
2335 if ac_fn_c_try_compile "$LINENO"; then :
2337 else
2338 case $ac_type in #(
2339 int$2_t) :
2340 eval "$3=yes" ;; #(
2341 *) :
2342 eval "$3=\$ac_type" ;;
2343 esac
2345 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2347 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2348 eval as_val=\$$3
2349 if test "x$as_val" = x""no; then :
2351 else
2352 break
2354 done
2356 eval ac_res=\$$3
2357 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2358 $as_echo "$ac_res" >&6; }
2359 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2361 } # ac_fn_c_find_intX_t
2363 # ac_fn_c_try_link LINENO
2364 # -----------------------
2365 # Try to link conftest.$ac_ext, and return whether this succeeded.
2366 ac_fn_c_try_link ()
2368 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2369 rm -f conftest.$ac_objext conftest$ac_exeext
2370 if { { ac_try="$ac_link"
2371 case "(($ac_try" in
2372 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2373 *) ac_try_echo=$ac_try;;
2374 esac
2375 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2376 $as_echo "$ac_try_echo"; } >&5
2377 (eval "$ac_link") 2>conftest.err
2378 ac_status=$?
2379 if test -s conftest.err; then
2380 grep -v '^ *+' conftest.err >conftest.er1
2381 cat conftest.er1 >&5
2382 mv -f conftest.er1 conftest.err
2384 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2385 test $ac_status = 0; } && {
2386 test -z "$ac_c_werror_flag" ||
2387 test ! -s conftest.err
2388 } && test -s conftest$ac_exeext && {
2389 test "$cross_compiling" = yes ||
2390 $as_test_x conftest$ac_exeext
2391 }; then :
2392 ac_retval=0
2393 else
2394 $as_echo "$as_me: failed program was:" >&5
2395 sed 's/^/| /' conftest.$ac_ext >&5
2397 ac_retval=1
2399 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
2400 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
2401 # interfere with the next link command; also delete a directory that is
2402 # left behind by Apple's compiler. We do this before executing the actions.
2403 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
2404 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2405 return $ac_retval
2407 } # ac_fn_c_try_link
2409 # ac_fn_c_find_uintX_t LINENO BITS VAR
2410 # ------------------------------------
2411 # Finds an unsigned integer type with width BITS, setting cache variable VAR
2412 # accordingly.
2413 ac_fn_c_find_uintX_t ()
2415 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2416 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for uint$2_t" >&5
2417 $as_echo_n "checking for uint$2_t... " >&6; }
2418 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
2419 $as_echo_n "(cached) " >&6
2420 else
2421 eval "$3=no"
2422 for ac_type in uint$2_t 'unsigned int' 'unsigned long int' \
2423 'unsigned long long int' 'unsigned short int' 'unsigned char'; do
2424 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2425 /* end confdefs.h. */
2426 $ac_includes_default
2428 main ()
2430 static int test_array [1 - 2 * !(($ac_type) -1 >> ($2 - 1) == 1)];
2431 test_array [0] = 0
2434 return 0;
2436 _ACEOF
2437 if ac_fn_c_try_compile "$LINENO"; then :
2438 case $ac_type in #(
2439 uint$2_t) :
2440 eval "$3=yes" ;; #(
2441 *) :
2442 eval "$3=\$ac_type" ;;
2443 esac
2445 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2446 eval as_val=\$$3
2447 if test "x$as_val" = x""no; then :
2449 else
2450 break
2452 done
2454 eval ac_res=\$$3
2455 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2456 $as_echo "$ac_res" >&6; }
2457 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2459 } # ac_fn_c_find_uintX_t
2461 # ac_fn_c_check_header_preproc LINENO HEADER VAR
2462 # ----------------------------------------------
2463 # Tests whether HEADER is present, setting the cache variable VAR accordingly.
2464 ac_fn_c_check_header_preproc ()
2466 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2467 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2468 $as_echo_n "checking for $2... " >&6; }
2469 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
2470 $as_echo_n "(cached) " >&6
2471 else
2472 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2473 /* end confdefs.h. */
2474 #include <$2>
2475 _ACEOF
2476 if ac_fn_c_try_cpp "$LINENO"; then :
2477 eval "$3=yes"
2478 else
2479 eval "$3=no"
2481 rm -f conftest.err conftest.$ac_ext
2483 eval ac_res=\$$3
2484 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2485 $as_echo "$ac_res" >&6; }
2486 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2488 } # ac_fn_c_check_header_preproc
2490 # ac_fn_cxx_try_cpp LINENO
2491 # ------------------------
2492 # Try to preprocess conftest.$ac_ext, and return whether this succeeded.
2493 ac_fn_cxx_try_cpp ()
2495 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2496 if { { ac_try="$ac_cpp conftest.$ac_ext"
2497 case "(($ac_try" in
2498 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2499 *) ac_try_echo=$ac_try;;
2500 esac
2501 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2502 $as_echo "$ac_try_echo"; } >&5
2503 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
2504 ac_status=$?
2505 if test -s conftest.err; then
2506 grep -v '^ *+' conftest.err >conftest.er1
2507 cat conftest.er1 >&5
2508 mv -f conftest.er1 conftest.err
2510 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2511 test $ac_status = 0; } >/dev/null && {
2512 test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
2513 test ! -s conftest.err
2514 }; then :
2515 ac_retval=0
2516 else
2517 $as_echo "$as_me: failed program was:" >&5
2518 sed 's/^/| /' conftest.$ac_ext >&5
2520 ac_retval=1
2522 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2523 return $ac_retval
2525 } # ac_fn_cxx_try_cpp
2527 # ac_fn_cxx_check_header_preproc LINENO HEADER VAR
2528 # ------------------------------------------------
2529 # Tests whether HEADER is present, setting the cache variable VAR accordingly.
2530 ac_fn_cxx_check_header_preproc ()
2532 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2533 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2534 $as_echo_n "checking for $2... " >&6; }
2535 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
2536 $as_echo_n "(cached) " >&6
2537 else
2538 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2539 /* end confdefs.h. */
2540 #include <$2>
2541 _ACEOF
2542 if ac_fn_cxx_try_cpp "$LINENO"; then :
2543 eval "$3=yes"
2544 else
2545 eval "$3=no"
2547 rm -f conftest.err conftest.$ac_ext
2549 eval ac_res=\$$3
2550 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2551 $as_echo "$ac_res" >&6; }
2552 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2554 } # ac_fn_cxx_check_header_preproc
2556 # ac_fn_c_check_func LINENO FUNC VAR
2557 # ----------------------------------
2558 # Tests whether FUNC exists, setting the cache variable VAR accordingly
2559 ac_fn_c_check_func ()
2561 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2562 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2563 $as_echo_n "checking for $2... " >&6; }
2564 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
2565 $as_echo_n "(cached) " >&6
2566 else
2567 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2568 /* end confdefs.h. */
2569 /* Define $2 to an innocuous variant, in case <limits.h> declares $2.
2570 For example, HP-UX 11i <limits.h> declares gettimeofday. */
2571 #define $2 innocuous_$2
2573 /* System header to define __stub macros and hopefully few prototypes,
2574 which can conflict with char $2 (); below.
2575 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
2576 <limits.h> exists even on freestanding compilers. */
2578 #ifdef __STDC__
2579 # include <limits.h>
2580 #else
2581 # include <assert.h>
2582 #endif
2584 #undef $2
2586 /* Override any GCC internal prototype to avoid an error.
2587 Use char because int might match the return type of a GCC
2588 builtin and then its argument prototype would still apply. */
2589 #ifdef __cplusplus
2590 extern "C"
2591 #endif
2592 char $2 ();
2593 /* The GNU C library defines this for functions which it implements
2594 to always fail with ENOSYS. Some functions are actually named
2595 something starting with __ and the normal name is an alias. */
2596 #if defined __stub_$2 || defined __stub___$2
2597 choke me
2598 #endif
2601 main ()
2603 return $2 ();
2605 return 0;
2607 _ACEOF
2608 if ac_fn_c_try_link "$LINENO"; then :
2609 eval "$3=yes"
2610 else
2611 eval "$3=no"
2613 rm -f core conftest.err conftest.$ac_objext \
2614 conftest$ac_exeext conftest.$ac_ext
2616 eval ac_res=\$$3
2617 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2618 $as_echo "$ac_res" >&6; }
2619 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2621 } # ac_fn_c_check_func
2623 # ac_fn_cxx_try_link LINENO
2624 # -------------------------
2625 # Try to link conftest.$ac_ext, and return whether this succeeded.
2626 ac_fn_cxx_try_link ()
2628 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2629 rm -f conftest.$ac_objext conftest$ac_exeext
2630 if { { ac_try="$ac_link"
2631 case "(($ac_try" in
2632 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2633 *) ac_try_echo=$ac_try;;
2634 esac
2635 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2636 $as_echo "$ac_try_echo"; } >&5
2637 (eval "$ac_link") 2>conftest.err
2638 ac_status=$?
2639 if test -s conftest.err; then
2640 grep -v '^ *+' conftest.err >conftest.er1
2641 cat conftest.er1 >&5
2642 mv -f conftest.er1 conftest.err
2644 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2645 test $ac_status = 0; } && {
2646 test -z "$ac_cxx_werror_flag" ||
2647 test ! -s conftest.err
2648 } && test -s conftest$ac_exeext && {
2649 test "$cross_compiling" = yes ||
2650 $as_test_x conftest$ac_exeext
2651 }; then :
2652 ac_retval=0
2653 else
2654 $as_echo "$as_me: failed program was:" >&5
2655 sed 's/^/| /' conftest.$ac_ext >&5
2657 ac_retval=1
2659 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
2660 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
2661 # interfere with the next link command; also delete a directory that is
2662 # left behind by Apple's compiler. We do this before executing the actions.
2663 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
2664 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2665 return $ac_retval
2667 } # ac_fn_cxx_try_link
2668 cat >config.log <<_ACEOF
2669 This file contains any messages produced by compilers while
2670 running configure, to aid debugging if configure makes a mistake.
2672 It was created by $as_me, which was
2673 generated by GNU Autoconf 2.64. Invocation command line was
2675 $ $0 $@
2677 _ACEOF
2678 exec 5>>config.log
2680 cat <<_ASUNAME
2681 ## --------- ##
2682 ## Platform. ##
2683 ## --------- ##
2685 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
2686 uname -m = `(uname -m) 2>/dev/null || echo unknown`
2687 uname -r = `(uname -r) 2>/dev/null || echo unknown`
2688 uname -s = `(uname -s) 2>/dev/null || echo unknown`
2689 uname -v = `(uname -v) 2>/dev/null || echo unknown`
2691 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
2692 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
2694 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
2695 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
2696 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
2697 /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
2698 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
2699 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
2700 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
2702 _ASUNAME
2704 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2705 for as_dir in $PATH
2707 IFS=$as_save_IFS
2708 test -z "$as_dir" && as_dir=.
2709 $as_echo "PATH: $as_dir"
2710 done
2711 IFS=$as_save_IFS
2713 } >&5
2715 cat >&5 <<_ACEOF
2718 ## ----------- ##
2719 ## Core tests. ##
2720 ## ----------- ##
2722 _ACEOF
2725 # Keep a trace of the command line.
2726 # Strip out --no-create and --no-recursion so they do not pile up.
2727 # Strip out --silent because we don't want to record it for future runs.
2728 # Also quote any args containing shell meta-characters.
2729 # Make two passes to allow for proper duplicate-argument suppression.
2730 ac_configure_args=
2731 ac_configure_args0=
2732 ac_configure_args1=
2733 ac_must_keep_next=false
2734 for ac_pass in 1 2
2736 for ac_arg
2738 case $ac_arg in
2739 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
2740 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
2741 | -silent | --silent | --silen | --sile | --sil)
2742 continue ;;
2743 *\'*)
2744 ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
2745 esac
2746 case $ac_pass in
2747 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
2749 as_fn_append ac_configure_args1 " '$ac_arg'"
2750 if test $ac_must_keep_next = true; then
2751 ac_must_keep_next=false # Got value, back to normal.
2752 else
2753 case $ac_arg in
2754 *=* | --config-cache | -C | -disable-* | --disable-* \
2755 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
2756 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
2757 | -with-* | --with-* | -without-* | --without-* | --x)
2758 case "$ac_configure_args0 " in
2759 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
2760 esac
2762 -* ) ac_must_keep_next=true ;;
2763 esac
2765 as_fn_append ac_configure_args " '$ac_arg'"
2767 esac
2768 done
2769 done
2770 { ac_configure_args0=; unset ac_configure_args0;}
2771 { ac_configure_args1=; unset ac_configure_args1;}
2773 # When interrupted or exit'd, cleanup temporary files, and complete
2774 # config.log. We remove comments because anyway the quotes in there
2775 # would cause problems or look ugly.
2776 # WARNING: Use '\'' to represent an apostrophe within the trap.
2777 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
2778 trap 'exit_status=$?
2779 # Save into config.log some information that might help in debugging.
2781 echo
2783 cat <<\_ASBOX
2784 ## ---------------- ##
2785 ## Cache variables. ##
2786 ## ---------------- ##
2787 _ASBOX
2788 echo
2789 # The following way of writing the cache mishandles newlines in values,
2791 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
2792 eval ac_val=\$$ac_var
2793 case $ac_val in #(
2794 *${as_nl}*)
2795 case $ac_var in #(
2796 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
2797 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
2798 esac
2799 case $ac_var in #(
2800 _ | IFS | as_nl) ;; #(
2801 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
2802 *) { eval $ac_var=; unset $ac_var;} ;;
2803 esac ;;
2804 esac
2805 done
2806 (set) 2>&1 |
2807 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
2808 *${as_nl}ac_space=\ *)
2809 sed -n \
2810 "s/'\''/'\''\\\\'\'''\''/g;
2811 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
2812 ;; #(
2814 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
2816 esac |
2817 sort
2819 echo
2821 cat <<\_ASBOX
2822 ## ----------------- ##
2823 ## Output variables. ##
2824 ## ----------------- ##
2825 _ASBOX
2826 echo
2827 for ac_var in $ac_subst_vars
2829 eval ac_val=\$$ac_var
2830 case $ac_val in
2831 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2832 esac
2833 $as_echo "$ac_var='\''$ac_val'\''"
2834 done | sort
2835 echo
2837 if test -n "$ac_subst_files"; then
2838 cat <<\_ASBOX
2839 ## ------------------- ##
2840 ## File substitutions. ##
2841 ## ------------------- ##
2842 _ASBOX
2843 echo
2844 for ac_var in $ac_subst_files
2846 eval ac_val=\$$ac_var
2847 case $ac_val in
2848 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2849 esac
2850 $as_echo "$ac_var='\''$ac_val'\''"
2851 done | sort
2852 echo
2855 if test -s confdefs.h; then
2856 cat <<\_ASBOX
2857 ## ----------- ##
2858 ## confdefs.h. ##
2859 ## ----------- ##
2860 _ASBOX
2861 echo
2862 cat confdefs.h
2863 echo
2865 test "$ac_signal" != 0 &&
2866 $as_echo "$as_me: caught signal $ac_signal"
2867 $as_echo "$as_me: exit $exit_status"
2868 } >&5
2869 rm -f core *.core core.conftest.* &&
2870 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
2871 exit $exit_status
2873 for ac_signal in 1 2 13 15; do
2874 trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
2875 done
2876 ac_signal=0
2878 # confdefs.h avoids OS command line length limits that DEFS can exceed.
2879 rm -f -r conftest* confdefs.h
2881 $as_echo "/* confdefs.h */" > confdefs.h
2883 # Predefined preprocessor variables.
2885 cat >>confdefs.h <<_ACEOF
2886 #define PACKAGE_NAME "$PACKAGE_NAME"
2887 _ACEOF
2889 cat >>confdefs.h <<_ACEOF
2890 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
2891 _ACEOF
2893 cat >>confdefs.h <<_ACEOF
2894 #define PACKAGE_VERSION "$PACKAGE_VERSION"
2895 _ACEOF
2897 cat >>confdefs.h <<_ACEOF
2898 #define PACKAGE_STRING "$PACKAGE_STRING"
2899 _ACEOF
2901 cat >>confdefs.h <<_ACEOF
2902 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
2903 _ACEOF
2905 cat >>confdefs.h <<_ACEOF
2906 #define PACKAGE_URL "$PACKAGE_URL"
2907 _ACEOF
2910 # Let the site file select an alternate cache file if it wants to.
2911 # Prefer an explicitly selected file to automatically selected ones.
2912 ac_site_file1=NONE
2913 ac_site_file2=NONE
2914 if test -n "$CONFIG_SITE"; then
2915 ac_site_file1=$CONFIG_SITE
2916 elif test "x$prefix" != xNONE; then
2917 ac_site_file1=$prefix/share/config.site
2918 ac_site_file2=$prefix/etc/config.site
2919 else
2920 ac_site_file1=$ac_default_prefix/share/config.site
2921 ac_site_file2=$ac_default_prefix/etc/config.site
2923 for ac_site_file in "$ac_site_file1" "$ac_site_file2"
2925 test "x$ac_site_file" = xNONE && continue
2926 if test -r "$ac_site_file"; then
2927 { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
2928 $as_echo "$as_me: loading site script $ac_site_file" >&6;}
2929 sed 's/^/| /' "$ac_site_file" >&5
2930 . "$ac_site_file"
2932 done
2934 if test -r "$cache_file"; then
2935 # Some versions of bash will fail to source /dev/null (special
2936 # files actually), so we avoid doing that.
2937 if test -f "$cache_file"; then
2938 { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
2939 $as_echo "$as_me: loading cache $cache_file" >&6;}
2940 case $cache_file in
2941 [\\/]* | ?:[\\/]* ) . "$cache_file";;
2942 *) . "./$cache_file";;
2943 esac
2945 else
2946 { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
2947 $as_echo "$as_me: creating cache $cache_file" >&6;}
2948 >$cache_file
2951 # Check that the precious variables saved in the cache have kept the same
2952 # value.
2953 ac_cache_corrupted=false
2954 for ac_var in $ac_precious_vars; do
2955 eval ac_old_set=\$ac_cv_env_${ac_var}_set
2956 eval ac_new_set=\$ac_env_${ac_var}_set
2957 eval ac_old_val=\$ac_cv_env_${ac_var}_value
2958 eval ac_new_val=\$ac_env_${ac_var}_value
2959 case $ac_old_set,$ac_new_set in
2960 set,)
2961 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
2962 $as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
2963 ac_cache_corrupted=: ;;
2964 ,set)
2965 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
2966 $as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
2967 ac_cache_corrupted=: ;;
2968 ,);;
2970 if test "x$ac_old_val" != "x$ac_new_val"; then
2971 # differences in whitespace do not lead to failure.
2972 ac_old_val_w=`echo x $ac_old_val`
2973 ac_new_val_w=`echo x $ac_new_val`
2974 if test "$ac_old_val_w" != "$ac_new_val_w"; then
2975 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
2976 $as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
2977 ac_cache_corrupted=:
2978 else
2979 { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
2980 $as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
2981 eval $ac_var=\$ac_old_val
2983 { $as_echo "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5
2984 $as_echo "$as_me: former value: \`$ac_old_val'" >&2;}
2985 { $as_echo "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5
2986 $as_echo "$as_me: current value: \`$ac_new_val'" >&2;}
2987 fi;;
2988 esac
2989 # Pass precious variables to config.status.
2990 if test "$ac_new_set" = set; then
2991 case $ac_new_val in
2992 *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
2993 *) ac_arg=$ac_var=$ac_new_val ;;
2994 esac
2995 case " $ac_configure_args " in
2996 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
2997 *) as_fn_append ac_configure_args " '$ac_arg'" ;;
2998 esac
3000 done
3001 if $ac_cache_corrupted; then
3002 { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3003 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3004 { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
3005 $as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
3006 as_fn_error "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
3008 ## -------------------- ##
3009 ## Main body of script. ##
3010 ## -------------------- ##
3012 ac_ext=c
3013 ac_cpp='$CPP $CPPFLAGS'
3014 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3015 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3016 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3023 ac_config_headers="$ac_config_headers auto-host.h:config.in"
3026 gcc_version=`cat $srcdir/BASE-VER`
3028 # Determine the host, build, and target systems
3029 ac_aux_dir=
3030 for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do
3031 for ac_t in install-sh install.sh shtool; do
3032 if test -f "$ac_dir/$ac_t"; then
3033 ac_aux_dir=$ac_dir
3034 ac_install_sh="$ac_aux_dir/$ac_t -c"
3035 break 2
3037 done
3038 done
3039 if test -z "$ac_aux_dir"; then
3040 as_fn_error "cannot find install-sh, install.sh, or shtool in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" "$LINENO" 5
3043 # These three variables are undocumented and unsupported,
3044 # and are intended to be withdrawn in a future Autoconf release.
3045 # They can cause serious problems if a builder's source tree is in a directory
3046 # whose full name contains unusual characters.
3047 ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
3048 ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
3049 ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
3052 # Make sure we can run config.sub.
3053 $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
3054 as_fn_error "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
3056 { $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
3057 $as_echo_n "checking build system type... " >&6; }
3058 if test "${ac_cv_build+set}" = set; then :
3059 $as_echo_n "(cached) " >&6
3060 else
3061 ac_build_alias=$build_alias
3062 test "x$ac_build_alias" = x &&
3063 ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
3064 test "x$ac_build_alias" = x &&
3065 as_fn_error "cannot guess build type; you must specify one" "$LINENO" 5
3066 ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
3067 as_fn_error "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
3070 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
3071 $as_echo "$ac_cv_build" >&6; }
3072 case $ac_cv_build in
3073 *-*-*) ;;
3074 *) as_fn_error "invalid value of canonical build" "$LINENO" 5;;
3075 esac
3076 build=$ac_cv_build
3077 ac_save_IFS=$IFS; IFS='-'
3078 set x $ac_cv_build
3079 shift
3080 build_cpu=$1
3081 build_vendor=$2
3082 shift; shift
3083 # Remember, the first character of IFS is used to create $*,
3084 # except with old shells:
3085 build_os=$*
3086 IFS=$ac_save_IFS
3087 case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
3090 { $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
3091 $as_echo_n "checking host system type... " >&6; }
3092 if test "${ac_cv_host+set}" = set; then :
3093 $as_echo_n "(cached) " >&6
3094 else
3095 if test "x$host_alias" = x; then
3096 ac_cv_host=$ac_cv_build
3097 else
3098 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
3099 as_fn_error "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
3103 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
3104 $as_echo "$ac_cv_host" >&6; }
3105 case $ac_cv_host in
3106 *-*-*) ;;
3107 *) as_fn_error "invalid value of canonical host" "$LINENO" 5;;
3108 esac
3109 host=$ac_cv_host
3110 ac_save_IFS=$IFS; IFS='-'
3111 set x $ac_cv_host
3112 shift
3113 host_cpu=$1
3114 host_vendor=$2
3115 shift; shift
3116 # Remember, the first character of IFS is used to create $*,
3117 # except with old shells:
3118 host_os=$*
3119 IFS=$ac_save_IFS
3120 case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
3123 { $as_echo "$as_me:${as_lineno-$LINENO}: checking target system type" >&5
3124 $as_echo_n "checking target system type... " >&6; }
3125 if test "${ac_cv_target+set}" = set; then :
3126 $as_echo_n "(cached) " >&6
3127 else
3128 if test "x$target_alias" = x; then
3129 ac_cv_target=$ac_cv_host
3130 else
3131 ac_cv_target=`$SHELL "$ac_aux_dir/config.sub" $target_alias` ||
3132 as_fn_error "$SHELL $ac_aux_dir/config.sub $target_alias failed" "$LINENO" 5
3136 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_target" >&5
3137 $as_echo "$ac_cv_target" >&6; }
3138 case $ac_cv_target in
3139 *-*-*) ;;
3140 *) as_fn_error "invalid value of canonical target" "$LINENO" 5;;
3141 esac
3142 target=$ac_cv_target
3143 ac_save_IFS=$IFS; IFS='-'
3144 set x $ac_cv_target
3145 shift
3146 target_cpu=$1
3147 target_vendor=$2
3148 shift; shift
3149 # Remember, the first character of IFS is used to create $*,
3150 # except with old shells:
3151 target_os=$*
3152 IFS=$ac_save_IFS
3153 case $target_os in *\ *) target_os=`echo "$target_os" | sed 's/ /-/g'`;; esac
3156 # The aliases save the names the user supplied, while $host etc.
3157 # will get canonicalized.
3158 test -n "$target_alias" &&
3159 test "$program_prefix$program_suffix$program_transform_name" = \
3160 NONENONEs,x,x, &&
3161 program_prefix=${target_alias}-
3163 # Determine the noncanonical target name, for directory use.
3164 case ${build_alias} in
3165 "") build_noncanonical=${build} ;;
3166 *) build_noncanonical=${build_alias} ;;
3167 esac
3169 case ${host_alias} in
3170 "") host_noncanonical=${build_noncanonical} ;;
3171 *) host_noncanonical=${host_alias} ;;
3172 esac
3174 case ${target_alias} in
3175 "") target_noncanonical=${host_noncanonical} ;;
3176 *) target_noncanonical=${target_alias} ;;
3177 esac
3182 # Determine the target- and build-specific subdirectories
3184 # post-stage1 host modules use a different CC_FOR_BUILD so, in order to
3185 # have matching libraries, they should use host libraries: Makefile.tpl
3186 # arranges to pass --with-build-libsubdir=$(HOST_SUBDIR).
3187 # However, they still use the build modules, because the corresponding
3188 # host modules (e.g. bison) are only built for the host when bootstrap
3189 # finishes. So:
3190 # - build_subdir is where we find build modules, and never changes.
3191 # - build_libsubdir is where we find build libraries, and can be overridden.
3193 # Prefix 'build-' so this never conflicts with target_subdir.
3194 build_subdir="build-${build_noncanonical}"
3196 # Check whether --with-build-libsubdir was given.
3197 if test "${with_build_libsubdir+set}" = set; then :
3198 withval=$with_build_libsubdir; build_libsubdir="$withval"
3199 else
3200 build_libsubdir="$build_subdir"
3203 # --srcdir=. covers the toplevel, while "test -d" covers the subdirectories
3204 if ( test $srcdir = . && test -d gcc ) \
3205 || test -d $srcdir/../host-${host_noncanonical}; then
3206 host_subdir="host-${host_noncanonical}"
3207 else
3208 host_subdir=.
3210 # No prefix.
3211 target_subdir=${target_noncanonical}
3214 # Set program_transform_name
3215 test "$program_prefix" != NONE &&
3216 program_transform_name="s&^&$program_prefix&;$program_transform_name"
3217 # Use a double $ so make ignores it.
3218 test "$program_suffix" != NONE &&
3219 program_transform_name="s&\$&$program_suffix&;$program_transform_name"
3220 # Double any \ or $.
3221 # By default was `s,x,x', remove it if useless.
3222 ac_script='s/[\\$]/&&/g;s/;s,x,x,$//'
3223 program_transform_name=`$as_echo "$program_transform_name" | sed "$ac_script"`
3226 # Check for bogus environment variables.
3227 # Test if LIBRARY_PATH contains the notation for the current directory
3228 # since this would lead to problems installing/building glibc.
3229 # LIBRARY_PATH contains the current directory if one of the following
3230 # is true:
3231 # - one of the terminals (":" and ";") is the first or last sign
3232 # - two terminals occur directly after each other
3233 # - the path contains an element with a dot in it
3234 { $as_echo "$as_me:${as_lineno-$LINENO}: checking LIBRARY_PATH variable" >&5
3235 $as_echo_n "checking LIBRARY_PATH variable... " >&6; }
3236 case ${LIBRARY_PATH} in
3237 [:\;]* | *[:\;] | *[:\;][:\;]* | *[:\;]. | .[:\;]*| . | *[:\;].[:\;]* )
3238 library_path_setting="contains current directory"
3241 library_path_setting="ok"
3243 esac
3244 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $library_path_setting" >&5
3245 $as_echo "$library_path_setting" >&6; }
3246 if test "$library_path_setting" != "ok"; then
3247 as_fn_error "
3248 *** LIBRARY_PATH shouldn't contain the current directory when
3249 *** building gcc. Please change the environment variable
3250 *** and run configure again." "$LINENO" 5
3253 # Test if GCC_EXEC_PREFIX contains the notation for the current directory
3254 # since this would lead to problems installing/building glibc.
3255 # GCC_EXEC_PREFIX contains the current directory if one of the following
3256 # is true:
3257 # - one of the terminals (":" and ";") is the first or last sign
3258 # - two terminals occur directly after each other
3259 # - the path contains an element with a dot in it
3260 { $as_echo "$as_me:${as_lineno-$LINENO}: checking GCC_EXEC_PREFIX variable" >&5
3261 $as_echo_n "checking GCC_EXEC_PREFIX variable... " >&6; }
3262 case ${GCC_EXEC_PREFIX} in
3263 [:\;]* | *[:\;] | *[:\;][:\;]* | *[:\;]. | .[:\;]*| . | *[:\;].[:\;]* )
3264 gcc_exec_prefix_setting="contains current directory"
3267 gcc_exec_prefix_setting="ok"
3269 esac
3270 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_exec_prefix_setting" >&5
3271 $as_echo "$gcc_exec_prefix_setting" >&6; }
3272 if test "$gcc_exec_prefix_setting" != "ok"; then
3273 as_fn_error "
3274 *** GCC_EXEC_PREFIX shouldn't contain the current directory when
3275 *** building gcc. Please change the environment variable
3276 *** and run configure again." "$LINENO" 5
3279 # -----------
3280 # Directories
3281 # -----------
3283 # Specify the local prefix
3284 local_prefix=
3286 # Check whether --with-local-prefix was given.
3287 if test "${with_local_prefix+set}" = set; then :
3288 withval=$with_local_prefix; case "${withval}" in
3289 yes) as_fn_error "bad value ${withval} given for local include directory prefix" "$LINENO" 5 ;;
3290 no) ;;
3291 *) local_prefix=$with_local_prefix ;;
3292 esac
3296 # Default local prefix if it is empty
3297 if test x$local_prefix = x; then
3298 local_prefix=/usr/local
3301 # Don't set gcc_gxx_include_dir to gxx_include_dir since that's only
3302 # passed in by the toplevel make and thus we'd get different behavior
3303 # depending on where we built the sources.
3304 gcc_gxx_include_dir=
3305 # Specify the g++ header file directory
3307 # Check whether --with-gxx-include-dir was given.
3308 if test "${with_gxx_include_dir+set}" = set; then :
3309 withval=$with_gxx_include_dir; case "${withval}" in
3310 yes) as_fn_error "bad value ${withval} given for g++ include directory" "$LINENO" 5 ;;
3311 no) ;;
3312 *) gcc_gxx_include_dir=$with_gxx_include_dir ;;
3313 esac
3317 # This logic must match libstdc++-v3/acinclude.m4:GLIBCXX_EXPORT_INSTALL_INFO.
3318 if test x${gcc_gxx_include_dir} = x; then
3319 if test x${enable_version_specific_runtime_libs} = xyes; then
3320 gcc_gxx_include_dir='${libsubdir}/include/c++'
3321 else
3322 libstdcxx_incdir='include/c++/$(version)'
3323 if test x$host != x$target; then
3324 libstdcxx_incdir="$target_alias/$libstdcxx_incdir"
3326 gcc_gxx_include_dir="\$(libsubdir)/\$(libsubdir_to_prefix)$libstdcxx_incdir"
3330 gcc_gxx_include_dir_add_sysroot=0
3331 if test "${with_sysroot+set}" = set; then
3332 gcc_gxx_without_sysroot=`expr "${gcc_gxx_include_dir}" : "${with_sysroot}"'\(.*\)'`
3333 if test "${gcc_gxx_without_sysroot}"; then
3334 gcc_gxx_include_dir="${gcc_gxx_without_sysroot}"
3335 gcc_gxx_include_dir_add_sysroot=1
3340 # Check whether --with-cpp_install_dir was given.
3341 if test "${with_cpp_install_dir+set}" = set; then :
3342 withval=$with_cpp_install_dir; if test x$withval = xyes; then
3343 as_fn_error "option --with-cpp-install-dir requires an argument" "$LINENO" 5
3344 elif test x$withval != xno; then
3345 cpp_install_dir=$withval
3350 # We would like to our source tree to be readonly. However when releases or
3351 # pre-releases are generated, the flex/bison generated files as well as the
3352 # various formats of manuals need to be included along with the rest of the
3353 # sources. Therefore we have --enable-generated-files-in-srcdir to do
3354 # just that.
3356 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to place generated files in the source directory" >&5
3357 $as_echo_n "checking whether to place generated files in the source directory... " >&6; }
3358 # Check whether --enable-generated-files-in-srcdir was given.
3359 if test "${enable_generated_files_in_srcdir+set}" = set; then :
3360 enableval=$enable_generated_files_in_srcdir; generated_files_in_srcdir=$enableval
3361 else
3362 generated_files_in_srcdir=no
3366 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $generated_files_in_srcdir" >&5
3367 $as_echo "$generated_files_in_srcdir" >&6; }
3369 if test "$generated_files_in_srcdir" = "yes"; then
3370 GENINSRC=''
3371 else
3372 GENINSRC='#'
3376 # -------------------
3377 # Find default linker
3378 # -------------------
3380 # With GNU ld
3382 # Check whether --with-gnu-ld was given.
3383 if test "${with_gnu_ld+set}" = set; then :
3384 withval=$with_gnu_ld; gnu_ld_flag="$with_gnu_ld"
3385 else
3386 gnu_ld_flag=no
3390 # With pre-defined ld
3392 # Check whether --with-ld was given.
3393 if test "${with_ld+set}" = set; then :
3394 withval=$with_ld; DEFAULT_LINKER="$with_ld"
3397 if test x"${DEFAULT_LINKER+set}" = x"set"; then
3398 if test ! -x "$DEFAULT_LINKER"; then
3399 as_fn_error "cannot execute: $DEFAULT_LINKER: check --with-ld or env. var. DEFAULT_LINKER" "$LINENO" 5
3400 elif $DEFAULT_LINKER -v < /dev/null 2>&1 | grep GNU > /dev/null; then
3401 gnu_ld_flag=yes
3404 cat >>confdefs.h <<_ACEOF
3405 #define DEFAULT_LINKER "$DEFAULT_LINKER"
3406 _ACEOF
3410 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a default linker was specified" >&5
3411 $as_echo_n "checking whether a default linker was specified... " >&6; }
3412 if test x"${DEFAULT_LINKER+set}" = x"set"; then
3413 if test x"$gnu_ld_flag" = x"no"; then
3414 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes ($DEFAULT_LINKER)" >&5
3415 $as_echo "yes ($DEFAULT_LINKER)" >&6; }
3416 else
3417 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes ($DEFAULT_LINKER - GNU ld)" >&5
3418 $as_echo "yes ($DEFAULT_LINKER - GNU ld)" >&6; }
3420 else
3421 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3422 $as_echo "no" >&6; }
3425 # With demangler in GNU ld
3427 # Check whether --with-demangler-in-ld was given.
3428 if test "${with_demangler_in_ld+set}" = set; then :
3429 withval=$with_demangler_in_ld; demangler_in_ld="$with_demangler_in_ld"
3430 else
3431 demangler_in_ld=yes
3435 # ----------------------
3436 # Find default assembler
3437 # ----------------------
3439 # With GNU as
3441 # Check whether --with-gnu-as was given.
3442 if test "${with_gnu_as+set}" = set; then :
3443 withval=$with_gnu_as; gas_flag="$with_gnu_as"
3444 else
3445 gas_flag=no
3450 # Check whether --with-as was given.
3451 if test "${with_as+set}" = set; then :
3452 withval=$with_as; DEFAULT_ASSEMBLER="$with_as"
3455 if test x"${DEFAULT_ASSEMBLER+set}" = x"set"; then
3456 if test ! -x "$DEFAULT_ASSEMBLER"; then
3457 as_fn_error "cannot execute: $DEFAULT_ASSEMBLER: check --with-as or env. var. DEFAULT_ASSEMBLER" "$LINENO" 5
3458 elif $DEFAULT_ASSEMBLER -v < /dev/null 2>&1 | grep GNU > /dev/null; then
3459 gas_flag=yes
3462 cat >>confdefs.h <<_ACEOF
3463 #define DEFAULT_ASSEMBLER "$DEFAULT_ASSEMBLER"
3464 _ACEOF
3468 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a default assembler was specified" >&5
3469 $as_echo_n "checking whether a default assembler was specified... " >&6; }
3470 if test x"${DEFAULT_ASSEMBLER+set}" = x"set"; then
3471 if test x"$gas_flag" = x"no"; then
3472 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes ($DEFAULT_ASSEMBLER)" >&5
3473 $as_echo "yes ($DEFAULT_ASSEMBLER)" >&6; }
3474 else
3475 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes ($DEFAULT_ASSEMBLER - GNU as)" >&5
3476 $as_echo "yes ($DEFAULT_ASSEMBLER - GNU as)" >&6; }
3478 else
3479 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3480 $as_echo "no" >&6; }
3483 # ---------------
3484 # Find C compiler
3485 # ---------------
3487 # If a non-executable a.out is present (e.g. created by GNU as above even if
3488 # invoked with -v only), the IRIX 6 native ld just overwrites the existing
3489 # file, even when creating an executable, so an execution test fails.
3490 # Remove possible default executable files to avoid this.
3492 # FIXME: This really belongs into AC_PROG_CC and can be removed once
3493 # Autoconf includes it.
3494 rm -f a.out a.exe b.out
3496 # Find the native compiler
3497 ac_ext=c
3498 ac_cpp='$CPP $CPPFLAGS'
3499 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3500 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3501 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3502 if test -n "$ac_tool_prefix"; then
3503 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
3504 set dummy ${ac_tool_prefix}gcc; ac_word=$2
3505 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3506 $as_echo_n "checking for $ac_word... " >&6; }
3507 if test "${ac_cv_prog_CC+set}" = set; then :
3508 $as_echo_n "(cached) " >&6
3509 else
3510 if test -n "$CC"; then
3511 ac_cv_prog_CC="$CC" # Let the user override the test.
3512 else
3513 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3514 for as_dir in $PATH
3516 IFS=$as_save_IFS
3517 test -z "$as_dir" && as_dir=.
3518 for ac_exec_ext in '' $ac_executable_extensions; do
3519 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3520 ac_cv_prog_CC="${ac_tool_prefix}gcc"
3521 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3522 break 2
3524 done
3525 done
3526 IFS=$as_save_IFS
3530 CC=$ac_cv_prog_CC
3531 if test -n "$CC"; then
3532 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3533 $as_echo "$CC" >&6; }
3534 else
3535 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3536 $as_echo "no" >&6; }
3541 if test -z "$ac_cv_prog_CC"; then
3542 ac_ct_CC=$CC
3543 # Extract the first word of "gcc", so it can be a program name with args.
3544 set dummy gcc; ac_word=$2
3545 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3546 $as_echo_n "checking for $ac_word... " >&6; }
3547 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then :
3548 $as_echo_n "(cached) " >&6
3549 else
3550 if test -n "$ac_ct_CC"; then
3551 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3552 else
3553 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3554 for as_dir in $PATH
3556 IFS=$as_save_IFS
3557 test -z "$as_dir" && as_dir=.
3558 for ac_exec_ext in '' $ac_executable_extensions; do
3559 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3560 ac_cv_prog_ac_ct_CC="gcc"
3561 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3562 break 2
3564 done
3565 done
3566 IFS=$as_save_IFS
3570 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3571 if test -n "$ac_ct_CC"; then
3572 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3573 $as_echo "$ac_ct_CC" >&6; }
3574 else
3575 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3576 $as_echo "no" >&6; }
3579 if test "x$ac_ct_CC" = x; then
3580 CC=""
3581 else
3582 case $cross_compiling:$ac_tool_warned in
3583 yes:)
3584 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3585 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3586 ac_tool_warned=yes ;;
3587 esac
3588 CC=$ac_ct_CC
3590 else
3591 CC="$ac_cv_prog_CC"
3594 if test -z "$CC"; then
3595 if test -n "$ac_tool_prefix"; then
3596 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
3597 set dummy ${ac_tool_prefix}cc; ac_word=$2
3598 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3599 $as_echo_n "checking for $ac_word... " >&6; }
3600 if test "${ac_cv_prog_CC+set}" = set; then :
3601 $as_echo_n "(cached) " >&6
3602 else
3603 if test -n "$CC"; then
3604 ac_cv_prog_CC="$CC" # Let the user override the test.
3605 else
3606 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3607 for as_dir in $PATH
3609 IFS=$as_save_IFS
3610 test -z "$as_dir" && as_dir=.
3611 for ac_exec_ext in '' $ac_executable_extensions; do
3612 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3613 ac_cv_prog_CC="${ac_tool_prefix}cc"
3614 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3615 break 2
3617 done
3618 done
3619 IFS=$as_save_IFS
3623 CC=$ac_cv_prog_CC
3624 if test -n "$CC"; then
3625 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3626 $as_echo "$CC" >&6; }
3627 else
3628 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3629 $as_echo "no" >&6; }
3635 if test -z "$CC"; then
3636 # Extract the first word of "cc", so it can be a program name with args.
3637 set dummy cc; ac_word=$2
3638 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3639 $as_echo_n "checking for $ac_word... " >&6; }
3640 if test "${ac_cv_prog_CC+set}" = set; then :
3641 $as_echo_n "(cached) " >&6
3642 else
3643 if test -n "$CC"; then
3644 ac_cv_prog_CC="$CC" # Let the user override the test.
3645 else
3646 ac_prog_rejected=no
3647 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3648 for as_dir in $PATH
3650 IFS=$as_save_IFS
3651 test -z "$as_dir" && as_dir=.
3652 for ac_exec_ext in '' $ac_executable_extensions; do
3653 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3654 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
3655 ac_prog_rejected=yes
3656 continue
3658 ac_cv_prog_CC="cc"
3659 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3660 break 2
3662 done
3663 done
3664 IFS=$as_save_IFS
3666 if test $ac_prog_rejected = yes; then
3667 # We found a bogon in the path, so make sure we never use it.
3668 set dummy $ac_cv_prog_CC
3669 shift
3670 if test $# != 0; then
3671 # We chose a different compiler from the bogus one.
3672 # However, it has the same basename, so the bogon will be chosen
3673 # first if we set CC to just the basename; use the full file name.
3674 shift
3675 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
3680 CC=$ac_cv_prog_CC
3681 if test -n "$CC"; then
3682 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3683 $as_echo "$CC" >&6; }
3684 else
3685 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3686 $as_echo "no" >&6; }
3691 if test -z "$CC"; then
3692 if test -n "$ac_tool_prefix"; then
3693 for ac_prog in cl.exe
3695 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3696 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
3697 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3698 $as_echo_n "checking for $ac_word... " >&6; }
3699 if test "${ac_cv_prog_CC+set}" = set; then :
3700 $as_echo_n "(cached) " >&6
3701 else
3702 if test -n "$CC"; then
3703 ac_cv_prog_CC="$CC" # Let the user override the test.
3704 else
3705 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3706 for as_dir in $PATH
3708 IFS=$as_save_IFS
3709 test -z "$as_dir" && as_dir=.
3710 for ac_exec_ext in '' $ac_executable_extensions; do
3711 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3712 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
3713 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3714 break 2
3716 done
3717 done
3718 IFS=$as_save_IFS
3722 CC=$ac_cv_prog_CC
3723 if test -n "$CC"; then
3724 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3725 $as_echo "$CC" >&6; }
3726 else
3727 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3728 $as_echo "no" >&6; }
3732 test -n "$CC" && break
3733 done
3735 if test -z "$CC"; then
3736 ac_ct_CC=$CC
3737 for ac_prog in cl.exe
3739 # Extract the first word of "$ac_prog", so it can be a program name with args.
3740 set dummy $ac_prog; ac_word=$2
3741 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3742 $as_echo_n "checking for $ac_word... " >&6; }
3743 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then :
3744 $as_echo_n "(cached) " >&6
3745 else
3746 if test -n "$ac_ct_CC"; then
3747 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3748 else
3749 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3750 for as_dir in $PATH
3752 IFS=$as_save_IFS
3753 test -z "$as_dir" && as_dir=.
3754 for ac_exec_ext in '' $ac_executable_extensions; do
3755 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3756 ac_cv_prog_ac_ct_CC="$ac_prog"
3757 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3758 break 2
3760 done
3761 done
3762 IFS=$as_save_IFS
3766 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3767 if test -n "$ac_ct_CC"; then
3768 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3769 $as_echo "$ac_ct_CC" >&6; }
3770 else
3771 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3772 $as_echo "no" >&6; }
3776 test -n "$ac_ct_CC" && break
3777 done
3779 if test "x$ac_ct_CC" = x; then
3780 CC=""
3781 else
3782 case $cross_compiling:$ac_tool_warned in
3783 yes:)
3784 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3785 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3786 ac_tool_warned=yes ;;
3787 esac
3788 CC=$ac_ct_CC
3795 test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3796 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3797 as_fn_error "no acceptable C compiler found in \$PATH
3798 See \`config.log' for more details." "$LINENO" 5; }
3800 # Provide some information about the compiler.
3801 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
3802 set X $ac_compile
3803 ac_compiler=$2
3804 for ac_option in --version -v -V -qversion; do
3805 { { ac_try="$ac_compiler $ac_option >&5"
3806 case "(($ac_try" in
3807 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3808 *) ac_try_echo=$ac_try;;
3809 esac
3810 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3811 $as_echo "$ac_try_echo"; } >&5
3812 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
3813 ac_status=$?
3814 if test -s conftest.err; then
3815 sed '10a\
3816 ... rest of stderr output deleted ...
3817 10q' conftest.err >conftest.er1
3818 cat conftest.er1 >&5
3819 rm -f conftest.er1 conftest.err
3821 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3822 test $ac_status = 0; }
3823 done
3825 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3826 /* end confdefs.h. */
3829 main ()
3833 return 0;
3835 _ACEOF
3836 ac_clean_files_save=$ac_clean_files
3837 ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out conftest.out"
3838 # Try to create an executable without -o first, disregard a.out.
3839 # It will help us diagnose broken compilers, and finding out an intuition
3840 # of exeext.
3841 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
3842 $as_echo_n "checking for C compiler default output file name... " >&6; }
3843 ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
3845 # The possible output files:
3846 ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
3848 ac_rmfiles=
3849 for ac_file in $ac_files
3851 case $ac_file in
3852 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3853 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
3854 esac
3855 done
3856 rm -f $ac_rmfiles
3858 if { { ac_try="$ac_link_default"
3859 case "(($ac_try" in
3860 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3861 *) ac_try_echo=$ac_try;;
3862 esac
3863 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3864 $as_echo "$ac_try_echo"; } >&5
3865 (eval "$ac_link_default") 2>&5
3866 ac_status=$?
3867 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3868 test $ac_status = 0; }; then :
3869 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
3870 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
3871 # in a Makefile. We should not override ac_cv_exeext if it was cached,
3872 # so that the user can short-circuit this test for compilers unknown to
3873 # Autoconf.
3874 for ac_file in $ac_files ''
3876 test -f "$ac_file" || continue
3877 case $ac_file in
3878 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
3880 [ab].out )
3881 # We found the default executable, but exeext='' is most
3882 # certainly right.
3883 break;;
3884 *.* )
3885 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
3886 then :; else
3887 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3889 # We set ac_cv_exeext here because the later test for it is not
3890 # safe: cross compilers may not add the suffix if given an `-o'
3891 # argument, so we may need to know it at that point already.
3892 # Even if this section looks crufty: it has the advantage of
3893 # actually working.
3894 break;;
3896 break;;
3897 esac
3898 done
3899 test "$ac_cv_exeext" = no && ac_cv_exeext=
3901 else
3902 ac_file=''
3904 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
3905 $as_echo "$ac_file" >&6; }
3906 if test -z "$ac_file"; then :
3907 $as_echo "$as_me: failed program was:" >&5
3908 sed 's/^/| /' conftest.$ac_ext >&5
3910 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3911 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3912 { as_fn_set_status 77
3913 as_fn_error "C compiler cannot create executables
3914 See \`config.log' for more details." "$LINENO" 5; }; }
3916 ac_exeext=$ac_cv_exeext
3918 # Check that the compiler produces executables we can run. If not, either
3919 # the compiler is broken, or we cross compile.
3920 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
3921 $as_echo_n "checking whether the C compiler works... " >&6; }
3922 # If not cross compiling, check that we can run a simple program.
3923 if test "$cross_compiling" != yes; then
3924 if { ac_try='./$ac_file'
3925 { { case "(($ac_try" in
3926 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3927 *) ac_try_echo=$ac_try;;
3928 esac
3929 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3930 $as_echo "$ac_try_echo"; } >&5
3931 (eval "$ac_try") 2>&5
3932 ac_status=$?
3933 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3934 test $ac_status = 0; }; }; then
3935 cross_compiling=no
3936 else
3937 if test "$cross_compiling" = maybe; then
3938 cross_compiling=yes
3939 else
3940 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3941 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3942 as_fn_error "cannot run C compiled programs.
3943 If you meant to cross compile, use \`--host'.
3944 See \`config.log' for more details." "$LINENO" 5; }
3948 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3949 $as_echo "yes" >&6; }
3951 rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out conftest.out
3952 ac_clean_files=$ac_clean_files_save
3953 # Check that the compiler produces executables we can run. If not, either
3954 # the compiler is broken, or we cross compile.
3955 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
3956 $as_echo_n "checking whether we are cross compiling... " >&6; }
3957 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
3958 $as_echo "$cross_compiling" >&6; }
3960 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
3961 $as_echo_n "checking for suffix of executables... " >&6; }
3962 if { { ac_try="$ac_link"
3963 case "(($ac_try" in
3964 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3965 *) ac_try_echo=$ac_try;;
3966 esac
3967 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3968 $as_echo "$ac_try_echo"; } >&5
3969 (eval "$ac_link") 2>&5
3970 ac_status=$?
3971 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3972 test $ac_status = 0; }; then :
3973 # If both `conftest.exe' and `conftest' are `present' (well, observable)
3974 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
3975 # work properly (i.e., refer to `conftest.exe'), while it won't with
3976 # `rm'.
3977 for ac_file in conftest.exe conftest conftest.*; do
3978 test -f "$ac_file" || continue
3979 case $ac_file in
3980 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3981 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3982 break;;
3983 * ) break;;
3984 esac
3985 done
3986 else
3987 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3988 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3989 as_fn_error "cannot compute suffix of executables: cannot compile and link
3990 See \`config.log' for more details." "$LINENO" 5; }
3992 rm -f conftest$ac_cv_exeext
3993 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
3994 $as_echo "$ac_cv_exeext" >&6; }
3996 rm -f conftest.$ac_ext
3997 EXEEXT=$ac_cv_exeext
3998 ac_exeext=$EXEEXT
3999 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
4000 $as_echo_n "checking for suffix of object files... " >&6; }
4001 if test "${ac_cv_objext+set}" = set; then :
4002 $as_echo_n "(cached) " >&6
4003 else
4004 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4005 /* end confdefs.h. */
4008 main ()
4012 return 0;
4014 _ACEOF
4015 rm -f conftest.o conftest.obj
4016 if { { ac_try="$ac_compile"
4017 case "(($ac_try" in
4018 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4019 *) ac_try_echo=$ac_try;;
4020 esac
4021 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4022 $as_echo "$ac_try_echo"; } >&5
4023 (eval "$ac_compile") 2>&5
4024 ac_status=$?
4025 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4026 test $ac_status = 0; }; then :
4027 for ac_file in conftest.o conftest.obj conftest.*; do
4028 test -f "$ac_file" || continue;
4029 case $ac_file in
4030 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
4031 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
4032 break;;
4033 esac
4034 done
4035 else
4036 $as_echo "$as_me: failed program was:" >&5
4037 sed 's/^/| /' conftest.$ac_ext >&5
4039 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4040 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4041 as_fn_error "cannot compute suffix of object files: cannot compile
4042 See \`config.log' for more details." "$LINENO" 5; }
4044 rm -f conftest.$ac_cv_objext conftest.$ac_ext
4046 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
4047 $as_echo "$ac_cv_objext" >&6; }
4048 OBJEXT=$ac_cv_objext
4049 ac_objext=$OBJEXT
4050 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
4051 $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
4052 if test "${ac_cv_c_compiler_gnu+set}" = set; then :
4053 $as_echo_n "(cached) " >&6
4054 else
4055 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4056 /* end confdefs.h. */
4059 main ()
4061 #ifndef __GNUC__
4062 choke me
4063 #endif
4066 return 0;
4068 _ACEOF
4069 if ac_fn_c_try_compile "$LINENO"; then :
4070 ac_compiler_gnu=yes
4071 else
4072 ac_compiler_gnu=no
4074 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4075 ac_cv_c_compiler_gnu=$ac_compiler_gnu
4078 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
4079 $as_echo "$ac_cv_c_compiler_gnu" >&6; }
4080 if test $ac_compiler_gnu = yes; then
4081 GCC=yes
4082 else
4083 GCC=
4085 ac_test_CFLAGS=${CFLAGS+set}
4086 ac_save_CFLAGS=$CFLAGS
4087 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
4088 $as_echo_n "checking whether $CC accepts -g... " >&6; }
4089 if test "${ac_cv_prog_cc_g+set}" = set; then :
4090 $as_echo_n "(cached) " >&6
4091 else
4092 ac_save_c_werror_flag=$ac_c_werror_flag
4093 ac_c_werror_flag=yes
4094 ac_cv_prog_cc_g=no
4095 CFLAGS="-g"
4096 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4097 /* end confdefs.h. */
4100 main ()
4104 return 0;
4106 _ACEOF
4107 if ac_fn_c_try_compile "$LINENO"; then :
4108 ac_cv_prog_cc_g=yes
4109 else
4110 CFLAGS=""
4111 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4112 /* end confdefs.h. */
4115 main ()
4119 return 0;
4121 _ACEOF
4122 if ac_fn_c_try_compile "$LINENO"; then :
4124 else
4125 ac_c_werror_flag=$ac_save_c_werror_flag
4126 CFLAGS="-g"
4127 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4128 /* end confdefs.h. */
4131 main ()
4135 return 0;
4137 _ACEOF
4138 if ac_fn_c_try_compile "$LINENO"; then :
4139 ac_cv_prog_cc_g=yes
4141 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4143 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4145 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4146 ac_c_werror_flag=$ac_save_c_werror_flag
4148 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
4149 $as_echo "$ac_cv_prog_cc_g" >&6; }
4150 if test "$ac_test_CFLAGS" = set; then
4151 CFLAGS=$ac_save_CFLAGS
4152 elif test $ac_cv_prog_cc_g = yes; then
4153 if test "$GCC" = yes; then
4154 CFLAGS="-g -O2"
4155 else
4156 CFLAGS="-g"
4158 else
4159 if test "$GCC" = yes; then
4160 CFLAGS="-O2"
4161 else
4162 CFLAGS=
4165 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
4166 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
4167 if test "${ac_cv_prog_cc_c89+set}" = set; then :
4168 $as_echo_n "(cached) " >&6
4169 else
4170 ac_cv_prog_cc_c89=no
4171 ac_save_CC=$CC
4172 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4173 /* end confdefs.h. */
4174 #include <stdarg.h>
4175 #include <stdio.h>
4176 #include <sys/types.h>
4177 #include <sys/stat.h>
4178 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
4179 struct buf { int x; };
4180 FILE * (*rcsopen) (struct buf *, struct stat *, int);
4181 static char *e (p, i)
4182 char **p;
4183 int i;
4185 return p[i];
4187 static char *f (char * (*g) (char **, int), char **p, ...)
4189 char *s;
4190 va_list v;
4191 va_start (v,p);
4192 s = g (p, va_arg (v,int));
4193 va_end (v);
4194 return s;
4197 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
4198 function prototypes and stuff, but not '\xHH' hex character constants.
4199 These don't provoke an error unfortunately, instead are silently treated
4200 as 'x'. The following induces an error, until -std is added to get
4201 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
4202 array size at least. It's necessary to write '\x00'==0 to get something
4203 that's true only with -std. */
4204 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
4206 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
4207 inside strings and character constants. */
4208 #define FOO(x) 'x'
4209 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
4211 int test (int i, double x);
4212 struct s1 {int (*f) (int a);};
4213 struct s2 {int (*f) (double a);};
4214 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
4215 int argc;
4216 char **argv;
4218 main ()
4220 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
4222 return 0;
4224 _ACEOF
4225 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
4226 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
4228 CC="$ac_save_CC $ac_arg"
4229 if ac_fn_c_try_compile "$LINENO"; then :
4230 ac_cv_prog_cc_c89=$ac_arg
4232 rm -f core conftest.err conftest.$ac_objext
4233 test "x$ac_cv_prog_cc_c89" != "xno" && break
4234 done
4235 rm -f conftest.$ac_ext
4236 CC=$ac_save_CC
4239 # AC_CACHE_VAL
4240 case "x$ac_cv_prog_cc_c89" in
4242 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
4243 $as_echo "none needed" >&6; } ;;
4244 xno)
4245 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
4246 $as_echo "unsupported" >&6; } ;;
4248 CC="$CC $ac_cv_prog_cc_c89"
4249 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
4250 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
4251 esac
4252 if test "x$ac_cv_prog_cc_c89" != xno; then :
4256 ac_ext=c
4257 ac_cpp='$CPP $CPPFLAGS'
4258 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4259 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4260 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4262 if test "x$CC" != xcc; then
4263 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC and cc understand -c and -o together" >&5
4264 $as_echo_n "checking whether $CC and cc understand -c and -o together... " >&6; }
4265 else
4266 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether cc understands -c and -o together" >&5
4267 $as_echo_n "checking whether cc understands -c and -o together... " >&6; }
4269 set dummy $CC; ac_cc=`$as_echo "$2" |
4270 sed 's/[^a-zA-Z0-9_]/_/g;s/^[0-9]/_/'`
4271 if { as_var=ac_cv_prog_cc_${ac_cc}_c_o; eval "test \"\${$as_var+set}\" = set"; }; then :
4272 $as_echo_n "(cached) " >&6
4273 else
4274 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4275 /* end confdefs.h. */
4278 main ()
4282 return 0;
4284 _ACEOF
4285 # Make sure it works both with $CC and with simple cc.
4286 # We do the test twice because some compilers refuse to overwrite an
4287 # existing .o file with -o, though they will create one.
4288 ac_try='$CC -c conftest.$ac_ext -o conftest2.$ac_objext >&5'
4289 rm -f conftest2.*
4290 if { { case "(($ac_try" in
4291 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4292 *) ac_try_echo=$ac_try;;
4293 esac
4294 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4295 $as_echo "$ac_try_echo"; } >&5
4296 (eval "$ac_try") 2>&5
4297 ac_status=$?
4298 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4299 test $ac_status = 0; } &&
4300 test -f conftest2.$ac_objext && { { case "(($ac_try" in
4301 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4302 *) ac_try_echo=$ac_try;;
4303 esac
4304 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4305 $as_echo "$ac_try_echo"; } >&5
4306 (eval "$ac_try") 2>&5
4307 ac_status=$?
4308 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4309 test $ac_status = 0; };
4310 then
4311 eval ac_cv_prog_cc_${ac_cc}_c_o=yes
4312 if test "x$CC" != xcc; then
4313 # Test first that cc exists at all.
4314 if { ac_try='cc -c conftest.$ac_ext >&5'
4315 { { case "(($ac_try" in
4316 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4317 *) ac_try_echo=$ac_try;;
4318 esac
4319 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4320 $as_echo "$ac_try_echo"; } >&5
4321 (eval "$ac_try") 2>&5
4322 ac_status=$?
4323 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4324 test $ac_status = 0; }; }; then
4325 ac_try='cc -c conftest.$ac_ext -o conftest2.$ac_objext >&5'
4326 rm -f conftest2.*
4327 if { { case "(($ac_try" in
4328 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4329 *) ac_try_echo=$ac_try;;
4330 esac
4331 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4332 $as_echo "$ac_try_echo"; } >&5
4333 (eval "$ac_try") 2>&5
4334 ac_status=$?
4335 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4336 test $ac_status = 0; } &&
4337 test -f conftest2.$ac_objext && { { case "(($ac_try" in
4338 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4339 *) ac_try_echo=$ac_try;;
4340 esac
4341 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4342 $as_echo "$ac_try_echo"; } >&5
4343 (eval "$ac_try") 2>&5
4344 ac_status=$?
4345 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4346 test $ac_status = 0; };
4347 then
4348 # cc works too.
4350 else
4351 # cc exists but doesn't like -o.
4352 eval ac_cv_prog_cc_${ac_cc}_c_o=no
4356 else
4357 eval ac_cv_prog_cc_${ac_cc}_c_o=no
4359 rm -f core conftest*
4362 if eval test \$ac_cv_prog_cc_${ac_cc}_c_o = yes; then
4363 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4364 $as_echo "yes" >&6; }
4365 else
4366 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4367 $as_echo "no" >&6; }
4369 $as_echo "#define NO_MINUS_C_MINUS_O 1" >>confdefs.h
4373 # expand $ac_aux_dir to an absolute path
4374 am_aux_dir=`cd $ac_aux_dir && pwd`
4376 # FIXME: we rely on the cache variable name because
4377 # there is no other way.
4378 set dummy $CC
4379 am_cc=`echo $2 | sed 's/[^a-zA-Z0-9_]/_/g;s/^[0-9]/_/'`
4380 eval am_t=\$ac_cv_prog_cc_${am_cc}_c_o
4381 if test "$am_t" != yes; then
4382 # Losing compiler, so override with the script.
4383 # FIXME: It is wrong to rewrite CC.
4384 # But if we don't then we get into trouble of one sort or another.
4385 # A longer-term fix would be to have automake use am__CC in this case,
4386 # and then we could set am__CC="\$(top_srcdir)/compile \$(CC)"
4387 CC="$am_aux_dir/compile $CC"
4391 ac_ext=cpp
4392 ac_cpp='$CXXCPP $CPPFLAGS'
4393 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4394 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4395 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
4396 if test -z "$CXX"; then
4397 if test -n "$CCC"; then
4398 CXX=$CCC
4399 else
4400 if test -n "$ac_tool_prefix"; then
4401 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
4403 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
4404 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
4405 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4406 $as_echo_n "checking for $ac_word... " >&6; }
4407 if test "${ac_cv_prog_CXX+set}" = set; then :
4408 $as_echo_n "(cached) " >&6
4409 else
4410 if test -n "$CXX"; then
4411 ac_cv_prog_CXX="$CXX" # Let the user override the test.
4412 else
4413 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4414 for as_dir in $PATH
4416 IFS=$as_save_IFS
4417 test -z "$as_dir" && as_dir=.
4418 for ac_exec_ext in '' $ac_executable_extensions; do
4419 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4420 ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
4421 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4422 break 2
4424 done
4425 done
4426 IFS=$as_save_IFS
4430 CXX=$ac_cv_prog_CXX
4431 if test -n "$CXX"; then
4432 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXX" >&5
4433 $as_echo "$CXX" >&6; }
4434 else
4435 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4436 $as_echo "no" >&6; }
4440 test -n "$CXX" && break
4441 done
4443 if test -z "$CXX"; then
4444 ac_ct_CXX=$CXX
4445 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
4447 # Extract the first word of "$ac_prog", so it can be a program name with args.
4448 set dummy $ac_prog; ac_word=$2
4449 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4450 $as_echo_n "checking for $ac_word... " >&6; }
4451 if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then :
4452 $as_echo_n "(cached) " >&6
4453 else
4454 if test -n "$ac_ct_CXX"; then
4455 ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
4456 else
4457 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4458 for as_dir in $PATH
4460 IFS=$as_save_IFS
4461 test -z "$as_dir" && as_dir=.
4462 for ac_exec_ext in '' $ac_executable_extensions; do
4463 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4464 ac_cv_prog_ac_ct_CXX="$ac_prog"
4465 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4466 break 2
4468 done
4469 done
4470 IFS=$as_save_IFS
4474 ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
4475 if test -n "$ac_ct_CXX"; then
4476 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CXX" >&5
4477 $as_echo "$ac_ct_CXX" >&6; }
4478 else
4479 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4480 $as_echo "no" >&6; }
4484 test -n "$ac_ct_CXX" && break
4485 done
4487 if test "x$ac_ct_CXX" = x; then
4488 CXX="g++"
4489 else
4490 case $cross_compiling:$ac_tool_warned in
4491 yes:)
4492 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4493 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4494 ac_tool_warned=yes ;;
4495 esac
4496 CXX=$ac_ct_CXX
4502 # Provide some information about the compiler.
4503 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C++ compiler version" >&5
4504 set X $ac_compile
4505 ac_compiler=$2
4506 for ac_option in --version -v -V -qversion; do
4507 { { ac_try="$ac_compiler $ac_option >&5"
4508 case "(($ac_try" in
4509 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4510 *) ac_try_echo=$ac_try;;
4511 esac
4512 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4513 $as_echo "$ac_try_echo"; } >&5
4514 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
4515 ac_status=$?
4516 if test -s conftest.err; then
4517 sed '10a\
4518 ... rest of stderr output deleted ...
4519 10q' conftest.err >conftest.er1
4520 cat conftest.er1 >&5
4521 rm -f conftest.er1 conftest.err
4523 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4524 test $ac_status = 0; }
4525 done
4527 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C++ compiler" >&5
4528 $as_echo_n "checking whether we are using the GNU C++ compiler... " >&6; }
4529 if test "${ac_cv_cxx_compiler_gnu+set}" = set; then :
4530 $as_echo_n "(cached) " >&6
4531 else
4532 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4533 /* end confdefs.h. */
4536 main ()
4538 #ifndef __GNUC__
4539 choke me
4540 #endif
4543 return 0;
4545 _ACEOF
4546 if ac_fn_cxx_try_compile "$LINENO"; then :
4547 ac_compiler_gnu=yes
4548 else
4549 ac_compiler_gnu=no
4551 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4552 ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
4555 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cxx_compiler_gnu" >&5
4556 $as_echo "$ac_cv_cxx_compiler_gnu" >&6; }
4557 if test $ac_compiler_gnu = yes; then
4558 GXX=yes
4559 else
4560 GXX=
4562 ac_test_CXXFLAGS=${CXXFLAGS+set}
4563 ac_save_CXXFLAGS=$CXXFLAGS
4564 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CXX accepts -g" >&5
4565 $as_echo_n "checking whether $CXX accepts -g... " >&6; }
4566 if test "${ac_cv_prog_cxx_g+set}" = set; then :
4567 $as_echo_n "(cached) " >&6
4568 else
4569 ac_save_cxx_werror_flag=$ac_cxx_werror_flag
4570 ac_cxx_werror_flag=yes
4571 ac_cv_prog_cxx_g=no
4572 CXXFLAGS="-g"
4573 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4574 /* end confdefs.h. */
4577 main ()
4581 return 0;
4583 _ACEOF
4584 if ac_fn_cxx_try_compile "$LINENO"; then :
4585 ac_cv_prog_cxx_g=yes
4586 else
4587 CXXFLAGS=""
4588 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4589 /* end confdefs.h. */
4592 main ()
4596 return 0;
4598 _ACEOF
4599 if ac_fn_cxx_try_compile "$LINENO"; then :
4601 else
4602 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
4603 CXXFLAGS="-g"
4604 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4605 /* end confdefs.h. */
4608 main ()
4612 return 0;
4614 _ACEOF
4615 if ac_fn_cxx_try_compile "$LINENO"; then :
4616 ac_cv_prog_cxx_g=yes
4618 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4620 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4622 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4623 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
4625 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cxx_g" >&5
4626 $as_echo "$ac_cv_prog_cxx_g" >&6; }
4627 if test "$ac_test_CXXFLAGS" = set; then
4628 CXXFLAGS=$ac_save_CXXFLAGS
4629 elif test $ac_cv_prog_cxx_g = yes; then
4630 if test "$GXX" = yes; then
4631 CXXFLAGS="-g -O2"
4632 else
4633 CXXFLAGS="-g"
4635 else
4636 if test "$GXX" = yes; then
4637 CXXFLAGS="-O2"
4638 else
4639 CXXFLAGS=
4642 ac_ext=c
4643 ac_cpp='$CPP $CPPFLAGS'
4644 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4645 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4646 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4651 if test -n "$ac_tool_prefix"; then
4652 # Extract the first word of "${ac_tool_prefix}gnatbind", so it can be a program name with args.
4653 set dummy ${ac_tool_prefix}gnatbind; ac_word=$2
4654 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4655 $as_echo_n "checking for $ac_word... " >&6; }
4656 if test "${ac_cv_prog_GNATBIND+set}" = set; then :
4657 $as_echo_n "(cached) " >&6
4658 else
4659 if test -n "$GNATBIND"; then
4660 ac_cv_prog_GNATBIND="$GNATBIND" # Let the user override the test.
4661 else
4662 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4663 for as_dir in $PATH
4665 IFS=$as_save_IFS
4666 test -z "$as_dir" && as_dir=.
4667 for ac_exec_ext in '' $ac_executable_extensions; do
4668 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4669 ac_cv_prog_GNATBIND="${ac_tool_prefix}gnatbind"
4670 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4671 break 2
4673 done
4674 done
4675 IFS=$as_save_IFS
4679 GNATBIND=$ac_cv_prog_GNATBIND
4680 if test -n "$GNATBIND"; then
4681 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GNATBIND" >&5
4682 $as_echo "$GNATBIND" >&6; }
4683 else
4684 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4685 $as_echo "no" >&6; }
4690 if test -z "$ac_cv_prog_GNATBIND"; then
4691 ac_ct_GNATBIND=$GNATBIND
4692 # Extract the first word of "gnatbind", so it can be a program name with args.
4693 set dummy gnatbind; ac_word=$2
4694 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4695 $as_echo_n "checking for $ac_word... " >&6; }
4696 if test "${ac_cv_prog_ac_ct_GNATBIND+set}" = set; then :
4697 $as_echo_n "(cached) " >&6
4698 else
4699 if test -n "$ac_ct_GNATBIND"; then
4700 ac_cv_prog_ac_ct_GNATBIND="$ac_ct_GNATBIND" # Let the user override the test.
4701 else
4702 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4703 for as_dir in $PATH
4705 IFS=$as_save_IFS
4706 test -z "$as_dir" && as_dir=.
4707 for ac_exec_ext in '' $ac_executable_extensions; do
4708 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4709 ac_cv_prog_ac_ct_GNATBIND="gnatbind"
4710 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4711 break 2
4713 done
4714 done
4715 IFS=$as_save_IFS
4719 ac_ct_GNATBIND=$ac_cv_prog_ac_ct_GNATBIND
4720 if test -n "$ac_ct_GNATBIND"; then
4721 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_GNATBIND" >&5
4722 $as_echo "$ac_ct_GNATBIND" >&6; }
4723 else
4724 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4725 $as_echo "no" >&6; }
4728 if test "x$ac_ct_GNATBIND" = x; then
4729 GNATBIND="no"
4730 else
4731 case $cross_compiling:$ac_tool_warned in
4732 yes:)
4733 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4734 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4735 ac_tool_warned=yes ;;
4736 esac
4737 GNATBIND=$ac_ct_GNATBIND
4739 else
4740 GNATBIND="$ac_cv_prog_GNATBIND"
4743 if test -n "$ac_tool_prefix"; then
4744 # Extract the first word of "${ac_tool_prefix}gnatmake", so it can be a program name with args.
4745 set dummy ${ac_tool_prefix}gnatmake; ac_word=$2
4746 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4747 $as_echo_n "checking for $ac_word... " >&6; }
4748 if test "${ac_cv_prog_GNATMAKE+set}" = set; then :
4749 $as_echo_n "(cached) " >&6
4750 else
4751 if test -n "$GNATMAKE"; then
4752 ac_cv_prog_GNATMAKE="$GNATMAKE" # Let the user override the test.
4753 else
4754 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4755 for as_dir in $PATH
4757 IFS=$as_save_IFS
4758 test -z "$as_dir" && as_dir=.
4759 for ac_exec_ext in '' $ac_executable_extensions; do
4760 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4761 ac_cv_prog_GNATMAKE="${ac_tool_prefix}gnatmake"
4762 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4763 break 2
4765 done
4766 done
4767 IFS=$as_save_IFS
4771 GNATMAKE=$ac_cv_prog_GNATMAKE
4772 if test -n "$GNATMAKE"; then
4773 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GNATMAKE" >&5
4774 $as_echo "$GNATMAKE" >&6; }
4775 else
4776 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4777 $as_echo "no" >&6; }
4782 if test -z "$ac_cv_prog_GNATMAKE"; then
4783 ac_ct_GNATMAKE=$GNATMAKE
4784 # Extract the first word of "gnatmake", so it can be a program name with args.
4785 set dummy gnatmake; ac_word=$2
4786 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4787 $as_echo_n "checking for $ac_word... " >&6; }
4788 if test "${ac_cv_prog_ac_ct_GNATMAKE+set}" = set; then :
4789 $as_echo_n "(cached) " >&6
4790 else
4791 if test -n "$ac_ct_GNATMAKE"; then
4792 ac_cv_prog_ac_ct_GNATMAKE="$ac_ct_GNATMAKE" # Let the user override the test.
4793 else
4794 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4795 for as_dir in $PATH
4797 IFS=$as_save_IFS
4798 test -z "$as_dir" && as_dir=.
4799 for ac_exec_ext in '' $ac_executable_extensions; do
4800 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4801 ac_cv_prog_ac_ct_GNATMAKE="gnatmake"
4802 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4803 break 2
4805 done
4806 done
4807 IFS=$as_save_IFS
4811 ac_ct_GNATMAKE=$ac_cv_prog_ac_ct_GNATMAKE
4812 if test -n "$ac_ct_GNATMAKE"; then
4813 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_GNATMAKE" >&5
4814 $as_echo "$ac_ct_GNATMAKE" >&6; }
4815 else
4816 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4817 $as_echo "no" >&6; }
4820 if test "x$ac_ct_GNATMAKE" = x; then
4821 GNATMAKE="no"
4822 else
4823 case $cross_compiling:$ac_tool_warned in
4824 yes:)
4825 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4826 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4827 ac_tool_warned=yes ;;
4828 esac
4829 GNATMAKE=$ac_ct_GNATMAKE
4831 else
4832 GNATMAKE="$ac_cv_prog_GNATMAKE"
4835 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether compiler driver understands Ada" >&5
4836 $as_echo_n "checking whether compiler driver understands Ada... " >&6; }
4837 if test "${acx_cv_cc_gcc_supports_ada+set}" = set; then :
4838 $as_echo_n "(cached) " >&6
4839 else
4840 cat >conftest.adb <<EOF
4841 procedure conftest is begin null; end conftest;
4843 acx_cv_cc_gcc_supports_ada=no
4844 # There is a bug in old released versions of GCC which causes the
4845 # driver to exit successfully when the appropriate language module
4846 # has not been installed. This is fixed in 2.95.4, 3.0.2, and 3.1.
4847 # Therefore we must check for the error message as well as an
4848 # unsuccessful exit.
4849 # Other compilers, like HP Tru64 UNIX cc, exit successfully when
4850 # given a .adb file, but produce no object file. So we must check
4851 # if an object file was really produced to guard against this.
4852 errors=`(${CC} -I"$srcdir"/ada -c conftest.adb) 2>&1 || echo failure`
4853 if test x"$errors" = x && test -f conftest.$ac_objext; then
4854 acx_cv_cc_gcc_supports_ada=yes
4856 rm -f conftest.*
4858 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $acx_cv_cc_gcc_supports_ada" >&5
4859 $as_echo "$acx_cv_cc_gcc_supports_ada" >&6; }
4861 if test "x$GNATBIND" != xno && test "x$GNATMAKE" != xno && test x$acx_cv_cc_gcc_supports_ada != xno; then
4862 have_gnat=yes
4863 else
4864 have_gnat=no
4868 # autoconf is lame and doesn't give us any substitution variable for this.
4869 if eval "test \"`echo '$ac_cv_prog_cc_'${ac_cc}_c_o`\" = no"; then
4870 NO_MINUS_C_MINUS_O=yes
4871 else
4872 OUTPUT_OPTION='-o $@'
4877 # Remove the -O2: for historical reasons, unless bootstrapping we prefer
4878 # optimizations to be activated explicitly by the toplevel.
4879 case "$CC" in
4880 */prev-gcc/xgcc*) ;;
4881 *) CFLAGS=`echo "$CFLAGS " | sed -e "s/-Ofast[ ]//" -e "s/-O[gs][ ]//" -e "s/-O[0-9]*[ ]//" `
4882 CXXFLAGS=`echo "$CXXFLAGS " | sed -e "s/-Ofast[ ]//" -e "s/-O[gs][ ]//" -e "s/-O[0-9]*[ ]//" ` ;;
4883 esac
4887 # Determine PICFLAG for target gnatlib.
4892 case "${target}" in
4893 # PIC is the default on some targets or must not be used.
4894 *-*-darwin*)
4895 # PIC is the default on this platform
4896 # Common symbols not allowed in MH_DYLIB files
4897 PICFLAG_FOR_TARGET=-fno-common
4899 alpha*-dec-osf5*)
4900 # PIC is the default.
4902 hppa*64*-*-hpux*)
4903 # PIC is the default for 64-bit PA HP-UX.
4905 i[34567]86-*-cygwin* | i[34567]86-*-mingw* | x86_64-*-mingw*)
4907 i[34567]86-*-interix[3-9]*)
4908 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
4909 # Instead, we relocate shared libraries at runtime.
4911 i[34567]86-*-nto-qnx*)
4912 # QNX uses GNU C++, but need to define -shared option too, otherwise
4913 # it will coredump.
4914 PICFLAG_FOR_TARGET='-fPIC -shared'
4916 i[34567]86-pc-msdosdjgpp*)
4917 # DJGPP does not support shared libraries at all.
4919 ia64*-*-hpux*)
4920 # On IA64 HP-UX, PIC is the default but the pic flag
4921 # sets the default TLS model and affects inlining.
4922 PICFLAG_FOR_TARGET=-fPIC
4924 mips-sgi-irix6*)
4925 # PIC is the default.
4927 rs6000-ibm-aix* | powerpc-ibm-aix*)
4928 # All AIX code is PIC.
4931 # Some targets support both -fPIC and -fpic, but prefer the latter.
4932 # FIXME: Why?
4933 i[34567]86-*-* | x86_64-*-*)
4934 PICFLAG_FOR_TARGET=-fpic
4936 m68k-*-*)
4937 PICFLAG_FOR_TARGET=-fpic
4939 # FIXME: Override -fPIC default in libgcc only?
4940 sh-*-linux* | sh[2346lbe]*-*-linux*)
4941 PICFLAG_FOR_TARGET=-fpic
4943 # FIXME: Simplify to sh*-*-netbsd*?
4944 sh-*-netbsdelf* | shl*-*-netbsdelf* | sh5-*-netbsd* | sh5l*-*-netbsd* | \
4945 sh64-*-netbsd* | sh64l*-*-netbsd*)
4946 PICFLAG_FOR_TARGET=-fpic
4948 # Default to -fPIC unless specified otherwise.
4950 PICFLAG_FOR_TARGET=-fPIC
4952 esac
4954 # If the user explicitly uses -fpic/-fPIC, keep that.
4955 case "${CFLAGS_FOR_TARGET}" in
4956 *-fpic*)
4957 PICFLAG_FOR_TARGET=-fpic
4959 *-fPIC*)
4960 PICFLAG_FOR_TARGET=-fPIC
4962 esac
4966 # -------------------------
4967 # Check C compiler features
4968 # -------------------------
4971 ac_ext=c
4972 ac_cpp='$CPP $CPPFLAGS'
4973 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4974 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4975 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4976 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
4977 $as_echo_n "checking how to run the C preprocessor... " >&6; }
4978 # On Suns, sometimes $CPP names a directory.
4979 if test -n "$CPP" && test -d "$CPP"; then
4980 CPP=
4982 if test -z "$CPP"; then
4983 if test "${ac_cv_prog_CPP+set}" = set; then :
4984 $as_echo_n "(cached) " >&6
4985 else
4986 # Double quotes because CPP needs to be expanded
4987 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
4989 ac_preproc_ok=false
4990 for ac_c_preproc_warn_flag in '' yes
4992 # Use a header file that comes with gcc, so configuring glibc
4993 # with a fresh cross-compiler works.
4994 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4995 # <limits.h> exists even on freestanding compilers.
4996 # On the NeXT, cc -E runs the code through the compiler's parser,
4997 # not just through cpp. "Syntax error" is here to catch this case.
4998 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4999 /* end confdefs.h. */
5000 #ifdef __STDC__
5001 # include <limits.h>
5002 #else
5003 # include <assert.h>
5004 #endif
5005 Syntax error
5006 _ACEOF
5007 if ac_fn_c_try_cpp "$LINENO"; then :
5009 else
5010 # Broken: fails on valid input.
5011 continue
5013 rm -f conftest.err conftest.$ac_ext
5015 # OK, works on sane cases. Now check whether nonexistent headers
5016 # can be detected and how.
5017 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5018 /* end confdefs.h. */
5019 #include <ac_nonexistent.h>
5020 _ACEOF
5021 if ac_fn_c_try_cpp "$LINENO"; then :
5022 # Broken: success on invalid input.
5023 continue
5024 else
5025 # Passes both tests.
5026 ac_preproc_ok=:
5027 break
5029 rm -f conftest.err conftest.$ac_ext
5031 done
5032 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5033 rm -f conftest.err conftest.$ac_ext
5034 if $ac_preproc_ok; then :
5035 break
5038 done
5039 ac_cv_prog_CPP=$CPP
5042 CPP=$ac_cv_prog_CPP
5043 else
5044 ac_cv_prog_CPP=$CPP
5046 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
5047 $as_echo "$CPP" >&6; }
5048 ac_preproc_ok=false
5049 for ac_c_preproc_warn_flag in '' yes
5051 # Use a header file that comes with gcc, so configuring glibc
5052 # with a fresh cross-compiler works.
5053 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5054 # <limits.h> exists even on freestanding compilers.
5055 # On the NeXT, cc -E runs the code through the compiler's parser,
5056 # not just through cpp. "Syntax error" is here to catch this case.
5057 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5058 /* end confdefs.h. */
5059 #ifdef __STDC__
5060 # include <limits.h>
5061 #else
5062 # include <assert.h>
5063 #endif
5064 Syntax error
5065 _ACEOF
5066 if ac_fn_c_try_cpp "$LINENO"; then :
5068 else
5069 # Broken: fails on valid input.
5070 continue
5072 rm -f conftest.err conftest.$ac_ext
5074 # OK, works on sane cases. Now check whether nonexistent headers
5075 # can be detected and how.
5076 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5077 /* end confdefs.h. */
5078 #include <ac_nonexistent.h>
5079 _ACEOF
5080 if ac_fn_c_try_cpp "$LINENO"; then :
5081 # Broken: success on invalid input.
5082 continue
5083 else
5084 # Passes both tests.
5085 ac_preproc_ok=:
5086 break
5088 rm -f conftest.err conftest.$ac_ext
5090 done
5091 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5092 rm -f conftest.err conftest.$ac_ext
5093 if $ac_preproc_ok; then :
5095 else
5096 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
5097 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
5098 as_fn_error "C preprocessor \"$CPP\" fails sanity check
5099 See \`config.log' for more details." "$LINENO" 5; }
5102 ac_ext=c
5103 ac_cpp='$CPP $CPPFLAGS'
5104 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5105 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5106 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5109 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
5110 $as_echo_n "checking for grep that handles long lines and -e... " >&6; }
5111 if test "${ac_cv_path_GREP+set}" = set; then :
5112 $as_echo_n "(cached) " >&6
5113 else
5114 if test -z "$GREP"; then
5115 ac_path_GREP_found=false
5116 # Loop through the user's path and test for each of PROGNAME-LIST
5117 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5118 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
5120 IFS=$as_save_IFS
5121 test -z "$as_dir" && as_dir=.
5122 for ac_prog in grep ggrep; do
5123 for ac_exec_ext in '' $ac_executable_extensions; do
5124 ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
5125 { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } || continue
5126 # Check for GNU ac_path_GREP and select it if it is found.
5127 # Check for GNU $ac_path_GREP
5128 case `"$ac_path_GREP" --version 2>&1` in
5129 *GNU*)
5130 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
5132 ac_count=0
5133 $as_echo_n 0123456789 >"conftest.in"
5134 while :
5136 cat "conftest.in" "conftest.in" >"conftest.tmp"
5137 mv "conftest.tmp" "conftest.in"
5138 cp "conftest.in" "conftest.nl"
5139 $as_echo 'GREP' >> "conftest.nl"
5140 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
5141 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
5142 as_fn_arith $ac_count + 1 && ac_count=$as_val
5143 if test $ac_count -gt ${ac_path_GREP_max-0}; then
5144 # Best one so far, save it but keep looking for a better one
5145 ac_cv_path_GREP="$ac_path_GREP"
5146 ac_path_GREP_max=$ac_count
5148 # 10*(2^10) chars as input seems more than enough
5149 test $ac_count -gt 10 && break
5150 done
5151 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
5152 esac
5154 $ac_path_GREP_found && break 3
5155 done
5156 done
5157 done
5158 IFS=$as_save_IFS
5159 if test -z "$ac_cv_path_GREP"; then
5160 as_fn_error "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
5162 else
5163 ac_cv_path_GREP=$GREP
5167 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
5168 $as_echo "$ac_cv_path_GREP" >&6; }
5169 GREP="$ac_cv_path_GREP"
5172 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
5173 $as_echo_n "checking for egrep... " >&6; }
5174 if test "${ac_cv_path_EGREP+set}" = set; then :
5175 $as_echo_n "(cached) " >&6
5176 else
5177 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
5178 then ac_cv_path_EGREP="$GREP -E"
5179 else
5180 if test -z "$EGREP"; then
5181 ac_path_EGREP_found=false
5182 # Loop through the user's path and test for each of PROGNAME-LIST
5183 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5184 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
5186 IFS=$as_save_IFS
5187 test -z "$as_dir" && as_dir=.
5188 for ac_prog in egrep; do
5189 for ac_exec_ext in '' $ac_executable_extensions; do
5190 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
5191 { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } || continue
5192 # Check for GNU ac_path_EGREP and select it if it is found.
5193 # Check for GNU $ac_path_EGREP
5194 case `"$ac_path_EGREP" --version 2>&1` in
5195 *GNU*)
5196 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
5198 ac_count=0
5199 $as_echo_n 0123456789 >"conftest.in"
5200 while :
5202 cat "conftest.in" "conftest.in" >"conftest.tmp"
5203 mv "conftest.tmp" "conftest.in"
5204 cp "conftest.in" "conftest.nl"
5205 $as_echo 'EGREP' >> "conftest.nl"
5206 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
5207 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
5208 as_fn_arith $ac_count + 1 && ac_count=$as_val
5209 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
5210 # Best one so far, save it but keep looking for a better one
5211 ac_cv_path_EGREP="$ac_path_EGREP"
5212 ac_path_EGREP_max=$ac_count
5214 # 10*(2^10) chars as input seems more than enough
5215 test $ac_count -gt 10 && break
5216 done
5217 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
5218 esac
5220 $ac_path_EGREP_found && break 3
5221 done
5222 done
5223 done
5224 IFS=$as_save_IFS
5225 if test -z "$ac_cv_path_EGREP"; then
5226 as_fn_error "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
5228 else
5229 ac_cv_path_EGREP=$EGREP
5234 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
5235 $as_echo "$ac_cv_path_EGREP" >&6; }
5236 EGREP="$ac_cv_path_EGREP"
5239 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
5240 $as_echo_n "checking for ANSI C header files... " >&6; }
5241 if test "${ac_cv_header_stdc+set}" = set; then :
5242 $as_echo_n "(cached) " >&6
5243 else
5244 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5245 /* end confdefs.h. */
5246 #include <stdlib.h>
5247 #include <stdarg.h>
5248 #include <string.h>
5249 #include <float.h>
5252 main ()
5256 return 0;
5258 _ACEOF
5259 if ac_fn_c_try_compile "$LINENO"; then :
5260 ac_cv_header_stdc=yes
5261 else
5262 ac_cv_header_stdc=no
5264 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5266 if test $ac_cv_header_stdc = yes; then
5267 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
5268 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5269 /* end confdefs.h. */
5270 #include <string.h>
5272 _ACEOF
5273 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5274 $EGREP "memchr" >/dev/null 2>&1; then :
5276 else
5277 ac_cv_header_stdc=no
5279 rm -f conftest*
5283 if test $ac_cv_header_stdc = yes; then
5284 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
5285 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5286 /* end confdefs.h. */
5287 #include <stdlib.h>
5289 _ACEOF
5290 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5291 $EGREP "free" >/dev/null 2>&1; then :
5293 else
5294 ac_cv_header_stdc=no
5296 rm -f conftest*
5300 if test $ac_cv_header_stdc = yes; then
5301 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
5302 if test "$cross_compiling" = yes; then :
5304 else
5305 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5306 /* end confdefs.h. */
5307 #include <ctype.h>
5308 #include <stdlib.h>
5309 #if ((' ' & 0x0FF) == 0x020)
5310 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
5311 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
5312 #else
5313 # define ISLOWER(c) \
5314 (('a' <= (c) && (c) <= 'i') \
5315 || ('j' <= (c) && (c) <= 'r') \
5316 || ('s' <= (c) && (c) <= 'z'))
5317 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
5318 #endif
5320 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
5322 main ()
5324 int i;
5325 for (i = 0; i < 256; i++)
5326 if (XOR (islower (i), ISLOWER (i))
5327 || toupper (i) != TOUPPER (i))
5328 return 2;
5329 return 0;
5331 _ACEOF
5332 if ac_fn_c_try_run "$LINENO"; then :
5334 else
5335 ac_cv_header_stdc=no
5337 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
5338 conftest.$ac_objext conftest.beam conftest.$ac_ext
5343 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
5344 $as_echo "$ac_cv_header_stdc" >&6; }
5345 if test $ac_cv_header_stdc = yes; then
5347 $as_echo "#define STDC_HEADERS 1" >>confdefs.h
5351 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
5352 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
5353 inttypes.h stdint.h unistd.h
5354 do :
5355 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
5356 ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
5358 eval as_val=\$$as_ac_Header
5359 if test "x$as_val" = x""yes; then :
5360 cat >>confdefs.h <<_ACEOF
5361 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
5362 _ACEOF
5366 done
5370 ac_fn_c_check_header_mongrel "$LINENO" "minix/config.h" "ac_cv_header_minix_config_h" "$ac_includes_default"
5371 if test "x$ac_cv_header_minix_config_h" = x""yes; then :
5372 MINIX=yes
5373 else
5374 MINIX=
5378 if test "$MINIX" = yes; then
5380 $as_echo "#define _POSIX_SOURCE 1" >>confdefs.h
5383 $as_echo "#define _POSIX_1_SOURCE 2" >>confdefs.h
5386 $as_echo "#define _MINIX 1" >>confdefs.h
5391 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether it is safe to define __EXTENSIONS__" >&5
5392 $as_echo_n "checking whether it is safe to define __EXTENSIONS__... " >&6; }
5393 if test "${ac_cv_safe_to_define___extensions__+set}" = set; then :
5394 $as_echo_n "(cached) " >&6
5395 else
5396 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5397 /* end confdefs.h. */
5399 # define __EXTENSIONS__ 1
5400 $ac_includes_default
5402 main ()
5406 return 0;
5408 _ACEOF
5409 if ac_fn_c_try_compile "$LINENO"; then :
5410 ac_cv_safe_to_define___extensions__=yes
5411 else
5412 ac_cv_safe_to_define___extensions__=no
5414 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5416 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_safe_to_define___extensions__" >&5
5417 $as_echo "$ac_cv_safe_to_define___extensions__" >&6; }
5418 test $ac_cv_safe_to_define___extensions__ = yes &&
5419 $as_echo "#define __EXTENSIONS__ 1" >>confdefs.h
5421 $as_echo "#define _ALL_SOURCE 1" >>confdefs.h
5423 $as_echo "#define _GNU_SOURCE 1" >>confdefs.h
5425 $as_echo "#define _POSIX_PTHREAD_SEMANTICS 1" >>confdefs.h
5427 $as_echo "#define _TANDEM_SOURCE 1" >>confdefs.h
5430 ac_ext=c
5431 ac_cpp='$CPP $CPPFLAGS'
5432 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5433 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5434 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5435 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
5436 $as_echo_n "checking how to run the C preprocessor... " >&6; }
5437 # On Suns, sometimes $CPP names a directory.
5438 if test -n "$CPP" && test -d "$CPP"; then
5439 CPP=
5441 if test -z "$CPP"; then
5442 if test "${ac_cv_prog_CPP+set}" = set; then :
5443 $as_echo_n "(cached) " >&6
5444 else
5445 # Double quotes because CPP needs to be expanded
5446 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
5448 ac_preproc_ok=false
5449 for ac_c_preproc_warn_flag in '' yes
5451 # Use a header file that comes with gcc, so configuring glibc
5452 # with a fresh cross-compiler works.
5453 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5454 # <limits.h> exists even on freestanding compilers.
5455 # On the NeXT, cc -E runs the code through the compiler's parser,
5456 # not just through cpp. "Syntax error" is here to catch this case.
5457 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5458 /* end confdefs.h. */
5459 #ifdef __STDC__
5460 # include <limits.h>
5461 #else
5462 # include <assert.h>
5463 #endif
5464 Syntax error
5465 _ACEOF
5466 if ac_fn_c_try_cpp "$LINENO"; then :
5468 else
5469 # Broken: fails on valid input.
5470 continue
5472 rm -f conftest.err conftest.$ac_ext
5474 # OK, works on sane cases. Now check whether nonexistent headers
5475 # can be detected and how.
5476 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5477 /* end confdefs.h. */
5478 #include <ac_nonexistent.h>
5479 _ACEOF
5480 if ac_fn_c_try_cpp "$LINENO"; then :
5481 # Broken: success on invalid input.
5482 continue
5483 else
5484 # Passes both tests.
5485 ac_preproc_ok=:
5486 break
5488 rm -f conftest.err conftest.$ac_ext
5490 done
5491 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5492 rm -f conftest.err conftest.$ac_ext
5493 if $ac_preproc_ok; then :
5494 break
5497 done
5498 ac_cv_prog_CPP=$CPP
5501 CPP=$ac_cv_prog_CPP
5502 else
5503 ac_cv_prog_CPP=$CPP
5505 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
5506 $as_echo "$CPP" >&6; }
5507 ac_preproc_ok=false
5508 for ac_c_preproc_warn_flag in '' yes
5510 # Use a header file that comes with gcc, so configuring glibc
5511 # with a fresh cross-compiler works.
5512 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5513 # <limits.h> exists even on freestanding compilers.
5514 # On the NeXT, cc -E runs the code through the compiler's parser,
5515 # not just through cpp. "Syntax error" is here to catch this case.
5516 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5517 /* end confdefs.h. */
5518 #ifdef __STDC__
5519 # include <limits.h>
5520 #else
5521 # include <assert.h>
5522 #endif
5523 Syntax error
5524 _ACEOF
5525 if ac_fn_c_try_cpp "$LINENO"; then :
5527 else
5528 # Broken: fails on valid input.
5529 continue
5531 rm -f conftest.err conftest.$ac_ext
5533 # OK, works on sane cases. Now check whether nonexistent headers
5534 # can be detected and how.
5535 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5536 /* end confdefs.h. */
5537 #include <ac_nonexistent.h>
5538 _ACEOF
5539 if ac_fn_c_try_cpp "$LINENO"; then :
5540 # Broken: success on invalid input.
5541 continue
5542 else
5543 # Passes both tests.
5544 ac_preproc_ok=:
5545 break
5547 rm -f conftest.err conftest.$ac_ext
5549 done
5550 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5551 rm -f conftest.err conftest.$ac_ext
5552 if $ac_preproc_ok; then :
5554 else
5555 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
5556 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
5557 as_fn_error "C preprocessor \"$CPP\" fails sanity check
5558 See \`config.log' for more details." "$LINENO" 5; }
5561 ac_ext=c
5562 ac_cpp='$CPP $CPPFLAGS'
5563 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5564 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5565 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5567 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for inline" >&5
5568 $as_echo_n "checking for inline... " >&6; }
5569 if test "${ac_cv_c_inline+set}" = set; then :
5570 $as_echo_n "(cached) " >&6
5571 else
5572 ac_cv_c_inline=no
5573 for ac_kw in inline __inline__ __inline; do
5574 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5575 /* end confdefs.h. */
5576 #ifndef __cplusplus
5577 typedef int foo_t;
5578 static $ac_kw foo_t static_foo () {return 0; }
5579 $ac_kw foo_t foo () {return 0; }
5580 #endif
5582 _ACEOF
5583 if ac_fn_c_try_compile "$LINENO"; then :
5584 ac_cv_c_inline=$ac_kw
5586 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5587 test "$ac_cv_c_inline" != no && break
5588 done
5591 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_inline" >&5
5592 $as_echo "$ac_cv_c_inline" >&6; }
5594 case $ac_cv_c_inline in
5595 inline | yes) ;;
5597 case $ac_cv_c_inline in
5598 no) ac_val=;;
5599 *) ac_val=$ac_cv_c_inline;;
5600 esac
5601 cat >>confdefs.h <<_ACEOF
5602 #ifndef __cplusplus
5603 #define inline $ac_val
5604 #endif
5605 _ACEOF
5607 esac
5610 # Check whether --enable-largefile was given.
5611 if test "${enable_largefile+set}" = set; then :
5612 enableval=$enable_largefile;
5615 if test "$enable_largefile" != no; then
5617 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for special C compiler options needed for large files" >&5
5618 $as_echo_n "checking for special C compiler options needed for large files... " >&6; }
5619 if test "${ac_cv_sys_largefile_CC+set}" = set; then :
5620 $as_echo_n "(cached) " >&6
5621 else
5622 ac_cv_sys_largefile_CC=no
5623 if test "$GCC" != yes; then
5624 ac_save_CC=$CC
5625 while :; do
5626 # IRIX 6.2 and later do not support large files by default,
5627 # so use the C compiler's -n32 option if that helps.
5628 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5629 /* end confdefs.h. */
5630 #include <sys/types.h>
5631 /* Check that off_t can represent 2**63 - 1 correctly.
5632 We can't simply define LARGE_OFF_T to be 9223372036854775807,
5633 since some C++ compilers masquerading as C compilers
5634 incorrectly reject 9223372036854775807. */
5635 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
5636 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
5637 && LARGE_OFF_T % 2147483647 == 1)
5638 ? 1 : -1];
5640 main ()
5644 return 0;
5646 _ACEOF
5647 if ac_fn_c_try_compile "$LINENO"; then :
5648 break
5650 rm -f core conftest.err conftest.$ac_objext
5651 CC="$CC -n32"
5652 if ac_fn_c_try_compile "$LINENO"; then :
5653 ac_cv_sys_largefile_CC=' -n32'; break
5655 rm -f core conftest.err conftest.$ac_objext
5656 break
5657 done
5658 CC=$ac_save_CC
5659 rm -f conftest.$ac_ext
5662 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_largefile_CC" >&5
5663 $as_echo "$ac_cv_sys_largefile_CC" >&6; }
5664 if test "$ac_cv_sys_largefile_CC" != no; then
5665 CC=$CC$ac_cv_sys_largefile_CC
5668 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _FILE_OFFSET_BITS value needed for large files" >&5
5669 $as_echo_n "checking for _FILE_OFFSET_BITS value needed for large files... " >&6; }
5670 if test "${ac_cv_sys_file_offset_bits+set}" = set; then :
5671 $as_echo_n "(cached) " >&6
5672 else
5673 while :; do
5674 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5675 /* end confdefs.h. */
5676 #include <sys/types.h>
5677 /* Check that off_t can represent 2**63 - 1 correctly.
5678 We can't simply define LARGE_OFF_T to be 9223372036854775807,
5679 since some C++ compilers masquerading as C compilers
5680 incorrectly reject 9223372036854775807. */
5681 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
5682 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
5683 && LARGE_OFF_T % 2147483647 == 1)
5684 ? 1 : -1];
5686 main ()
5690 return 0;
5692 _ACEOF
5693 if ac_fn_c_try_compile "$LINENO"; then :
5694 ac_cv_sys_file_offset_bits=no; break
5696 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5697 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5698 /* end confdefs.h. */
5699 #define _FILE_OFFSET_BITS 64
5700 #include <sys/types.h>
5701 /* Check that off_t can represent 2**63 - 1 correctly.
5702 We can't simply define LARGE_OFF_T to be 9223372036854775807,
5703 since some C++ compilers masquerading as C compilers
5704 incorrectly reject 9223372036854775807. */
5705 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
5706 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
5707 && LARGE_OFF_T % 2147483647 == 1)
5708 ? 1 : -1];
5710 main ()
5714 return 0;
5716 _ACEOF
5717 if ac_fn_c_try_compile "$LINENO"; then :
5718 ac_cv_sys_file_offset_bits=64; break
5720 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5721 ac_cv_sys_file_offset_bits=unknown
5722 break
5723 done
5725 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_file_offset_bits" >&5
5726 $as_echo "$ac_cv_sys_file_offset_bits" >&6; }
5727 case $ac_cv_sys_file_offset_bits in #(
5728 no | unknown) ;;
5730 cat >>confdefs.h <<_ACEOF
5731 #define _FILE_OFFSET_BITS $ac_cv_sys_file_offset_bits
5732 _ACEOF
5734 esac
5735 rm -rf conftest*
5736 if test $ac_cv_sys_file_offset_bits = unknown; then
5737 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _LARGE_FILES value needed for large files" >&5
5738 $as_echo_n "checking for _LARGE_FILES value needed for large files... " >&6; }
5739 if test "${ac_cv_sys_large_files+set}" = set; then :
5740 $as_echo_n "(cached) " >&6
5741 else
5742 while :; do
5743 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5744 /* end confdefs.h. */
5745 #include <sys/types.h>
5746 /* Check that off_t can represent 2**63 - 1 correctly.
5747 We can't simply define LARGE_OFF_T to be 9223372036854775807,
5748 since some C++ compilers masquerading as C compilers
5749 incorrectly reject 9223372036854775807. */
5750 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
5751 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
5752 && LARGE_OFF_T % 2147483647 == 1)
5753 ? 1 : -1];
5755 main ()
5759 return 0;
5761 _ACEOF
5762 if ac_fn_c_try_compile "$LINENO"; then :
5763 ac_cv_sys_large_files=no; break
5765 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5766 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5767 /* end confdefs.h. */
5768 #define _LARGE_FILES 1
5769 #include <sys/types.h>
5770 /* Check that off_t can represent 2**63 - 1 correctly.
5771 We can't simply define LARGE_OFF_T to be 9223372036854775807,
5772 since some C++ compilers masquerading as C compilers
5773 incorrectly reject 9223372036854775807. */
5774 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
5775 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
5776 && LARGE_OFF_T % 2147483647 == 1)
5777 ? 1 : -1];
5779 main ()
5783 return 0;
5785 _ACEOF
5786 if ac_fn_c_try_compile "$LINENO"; then :
5787 ac_cv_sys_large_files=1; break
5789 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5790 ac_cv_sys_large_files=unknown
5791 break
5792 done
5794 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_large_files" >&5
5795 $as_echo "$ac_cv_sys_large_files" >&6; }
5796 case $ac_cv_sys_large_files in #(
5797 no | unknown) ;;
5799 cat >>confdefs.h <<_ACEOF
5800 #define _LARGE_FILES $ac_cv_sys_large_files
5801 _ACEOF
5803 esac
5804 rm -rf conftest*
5809 # sizeof(char) is 1 by definition.
5810 # The cast to long int works around a bug in the HP C Compiler
5811 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
5812 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
5813 # This bug is HP SR number 8606223364.
5814 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of void *" >&5
5815 $as_echo_n "checking size of void *... " >&6; }
5816 if test "${ac_cv_sizeof_void_p+set}" = set; then :
5817 $as_echo_n "(cached) " >&6
5818 else
5819 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (void *))" "ac_cv_sizeof_void_p" "$ac_includes_default"; then :
5821 else
5822 if test "$ac_cv_type_void_p" = yes; then
5823 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
5824 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
5825 { as_fn_set_status 77
5826 as_fn_error "cannot compute sizeof (void *)
5827 See \`config.log' for more details." "$LINENO" 5; }; }
5828 else
5829 ac_cv_sizeof_void_p=0
5834 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_void_p" >&5
5835 $as_echo "$ac_cv_sizeof_void_p" >&6; }
5839 cat >>confdefs.h <<_ACEOF
5840 #define SIZEOF_VOID_P $ac_cv_sizeof_void_p
5841 _ACEOF
5844 # The cast to long int works around a bug in the HP C Compiler
5845 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
5846 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
5847 # This bug is HP SR number 8606223364.
5848 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of short" >&5
5849 $as_echo_n "checking size of short... " >&6; }
5850 if test "${ac_cv_sizeof_short+set}" = set; then :
5851 $as_echo_n "(cached) " >&6
5852 else
5853 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (short))" "ac_cv_sizeof_short" "$ac_includes_default"; then :
5855 else
5856 if test "$ac_cv_type_short" = yes; then
5857 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
5858 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
5859 { as_fn_set_status 77
5860 as_fn_error "cannot compute sizeof (short)
5861 See \`config.log' for more details." "$LINENO" 5; }; }
5862 else
5863 ac_cv_sizeof_short=0
5868 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_short" >&5
5869 $as_echo "$ac_cv_sizeof_short" >&6; }
5873 cat >>confdefs.h <<_ACEOF
5874 #define SIZEOF_SHORT $ac_cv_sizeof_short
5875 _ACEOF
5878 # The cast to long int works around a bug in the HP C Compiler
5879 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
5880 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
5881 # This bug is HP SR number 8606223364.
5882 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of int" >&5
5883 $as_echo_n "checking size of int... " >&6; }
5884 if test "${ac_cv_sizeof_int+set}" = set; then :
5885 $as_echo_n "(cached) " >&6
5886 else
5887 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (int))" "ac_cv_sizeof_int" "$ac_includes_default"; then :
5889 else
5890 if test "$ac_cv_type_int" = yes; then
5891 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
5892 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
5893 { as_fn_set_status 77
5894 as_fn_error "cannot compute sizeof (int)
5895 See \`config.log' for more details." "$LINENO" 5; }; }
5896 else
5897 ac_cv_sizeof_int=0
5902 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_int" >&5
5903 $as_echo "$ac_cv_sizeof_int" >&6; }
5907 cat >>confdefs.h <<_ACEOF
5908 #define SIZEOF_INT $ac_cv_sizeof_int
5909 _ACEOF
5912 # The cast to long int works around a bug in the HP C Compiler
5913 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
5914 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
5915 # This bug is HP SR number 8606223364.
5916 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of long" >&5
5917 $as_echo_n "checking size of long... " >&6; }
5918 if test "${ac_cv_sizeof_long+set}" = set; then :
5919 $as_echo_n "(cached) " >&6
5920 else
5921 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (long))" "ac_cv_sizeof_long" "$ac_includes_default"; then :
5923 else
5924 if test "$ac_cv_type_long" = yes; then
5925 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
5926 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
5927 { as_fn_set_status 77
5928 as_fn_error "cannot compute sizeof (long)
5929 See \`config.log' for more details." "$LINENO" 5; }; }
5930 else
5931 ac_cv_sizeof_long=0
5936 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_long" >&5
5937 $as_echo "$ac_cv_sizeof_long" >&6; }
5941 cat >>confdefs.h <<_ACEOF
5942 #define SIZEOF_LONG $ac_cv_sizeof_long
5943 _ACEOF
5946 ac_fn_c_check_type "$LINENO" "long long" "ac_cv_type_long_long" "$ac_includes_default"
5947 if test "x$ac_cv_type_long_long" = x""yes; then :
5949 cat >>confdefs.h <<_ACEOF
5950 #define HAVE_LONG_LONG 1
5951 _ACEOF
5953 # The cast to long int works around a bug in the HP C Compiler
5954 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
5955 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
5956 # This bug is HP SR number 8606223364.
5957 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of long long" >&5
5958 $as_echo_n "checking size of long long... " >&6; }
5959 if test "${ac_cv_sizeof_long_long+set}" = set; then :
5960 $as_echo_n "(cached) " >&6
5961 else
5962 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (long long))" "ac_cv_sizeof_long_long" "$ac_includes_default"; then :
5964 else
5965 if test "$ac_cv_type_long_long" = yes; then
5966 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
5967 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
5968 { as_fn_set_status 77
5969 as_fn_error "cannot compute sizeof (long long)
5970 See \`config.log' for more details." "$LINENO" 5; }; }
5971 else
5972 ac_cv_sizeof_long_long=0
5977 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_long_long" >&5
5978 $as_echo "$ac_cv_sizeof_long_long" >&6; }
5982 cat >>confdefs.h <<_ACEOF
5983 #define SIZEOF_LONG_LONG $ac_cv_sizeof_long_long
5984 _ACEOF
5989 ac_fn_c_check_type "$LINENO" "__int64" "ac_cv_type___int64" "$ac_includes_default"
5990 if test "x$ac_cv_type___int64" = x""yes; then :
5992 cat >>confdefs.h <<_ACEOF
5993 #define HAVE___INT64 1
5994 _ACEOF
5996 # The cast to long int works around a bug in the HP C Compiler
5997 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
5998 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
5999 # This bug is HP SR number 8606223364.
6000 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of __int64" >&5
6001 $as_echo_n "checking size of __int64... " >&6; }
6002 if test "${ac_cv_sizeof___int64+set}" = set; then :
6003 $as_echo_n "(cached) " >&6
6004 else
6005 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (__int64))" "ac_cv_sizeof___int64" "$ac_includes_default"; then :
6007 else
6008 if test "$ac_cv_type___int64" = yes; then
6009 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
6010 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
6011 { as_fn_set_status 77
6012 as_fn_error "cannot compute sizeof (__int64)
6013 See \`config.log' for more details." "$LINENO" 5; }; }
6014 else
6015 ac_cv_sizeof___int64=0
6020 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof___int64" >&5
6021 $as_echo "$ac_cv_sizeof___int64" >&6; }
6025 cat >>confdefs.h <<_ACEOF
6026 #define SIZEOF___INT64 $ac_cv_sizeof___int64
6027 _ACEOF
6032 ac_fn_c_find_intX_t "$LINENO" "8" "ac_cv_c_int8_t"
6033 case $ac_cv_c_int8_t in #(
6034 no|yes) ;; #(
6037 cat >>confdefs.h <<_ACEOF
6038 #define int8_t $ac_cv_c_int8_t
6039 _ACEOF
6041 esac
6043 ac_fn_c_find_intX_t "$LINENO" "16" "ac_cv_c_int16_t"
6044 case $ac_cv_c_int16_t in #(
6045 no|yes) ;; #(
6048 cat >>confdefs.h <<_ACEOF
6049 #define int16_t $ac_cv_c_int16_t
6050 _ACEOF
6052 esac
6054 ac_fn_c_find_intX_t "$LINENO" "32" "ac_cv_c_int32_t"
6055 case $ac_cv_c_int32_t in #(
6056 no|yes) ;; #(
6059 cat >>confdefs.h <<_ACEOF
6060 #define int32_t $ac_cv_c_int32_t
6061 _ACEOF
6063 esac
6065 ac_fn_c_find_intX_t "$LINENO" "64" "ac_cv_c_int64_t"
6066 case $ac_cv_c_int64_t in #(
6067 no|yes) ;; #(
6070 cat >>confdefs.h <<_ACEOF
6071 #define int64_t $ac_cv_c_int64_t
6072 _ACEOF
6074 esac
6077 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for long long int" >&5
6078 $as_echo_n "checking for long long int... " >&6; }
6079 if test "${ac_cv_type_long_long_int+set}" = set; then :
6080 $as_echo_n "(cached) " >&6
6081 else
6082 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6083 /* end confdefs.h. */
6085 /* For now, do not test the preprocessor; as of 2007 there are too many
6086 implementations with broken preprocessors. Perhaps this can
6087 be revisited in 2012. In the meantime, code should not expect
6088 #if to work with literals wider than 32 bits. */
6089 /* Test literals. */
6090 long long int ll = 9223372036854775807ll;
6091 long long int nll = -9223372036854775807LL;
6092 unsigned long long int ull = 18446744073709551615ULL;
6093 /* Test constant expressions. */
6094 typedef int a[((-9223372036854775807LL < 0 && 0 < 9223372036854775807ll)
6095 ? 1 : -1)];
6096 typedef int b[(18446744073709551615ULL <= (unsigned long long int) -1
6097 ? 1 : -1)];
6098 int i = 63;
6100 main ()
6102 /* Test availability of runtime routines for shift and division. */
6103 long long int llmax = 9223372036854775807ll;
6104 unsigned long long int ullmax = 18446744073709551615ull;
6105 return ((ll << 63) | (ll >> 63) | (ll < i) | (ll > i)
6106 | (llmax / ll) | (llmax % ll)
6107 | (ull << 63) | (ull >> 63) | (ull << i) | (ull >> i)
6108 | (ullmax / ull) | (ullmax % ull));
6110 return 0;
6113 _ACEOF
6114 if ac_fn_c_try_link "$LINENO"; then :
6115 if test "$cross_compiling" = yes; then :
6116 ac_cv_type_long_long_int=yes
6117 else
6118 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6119 /* end confdefs.h. */
6120 #include <limits.h>
6121 #ifndef LLONG_MAX
6122 # define HALF \
6123 (1LL << (sizeof (long long int) * CHAR_BIT - 2))
6124 # define LLONG_MAX (HALF - 1 + HALF)
6125 #endif
6127 main ()
6129 long long int n = 1;
6130 int i;
6131 for (i = 0; ; i++)
6133 long long int m = n << i;
6134 if (m >> i != n)
6135 return 1;
6136 if (LLONG_MAX / 2 < m)
6137 break;
6139 return 0;
6141 return 0;
6143 _ACEOF
6144 if ac_fn_c_try_run "$LINENO"; then :
6145 ac_cv_type_long_long_int=yes
6146 else
6147 ac_cv_type_long_long_int=no
6149 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
6150 conftest.$ac_objext conftest.beam conftest.$ac_ext
6153 else
6154 ac_cv_type_long_long_int=no
6156 rm -f core conftest.err conftest.$ac_objext \
6157 conftest$ac_exeext conftest.$ac_ext
6159 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_long_long_int" >&5
6160 $as_echo "$ac_cv_type_long_long_int" >&6; }
6161 if test $ac_cv_type_long_long_int = yes; then
6163 $as_echo "#define HAVE_LONG_LONG_INT 1" >>confdefs.h
6169 ac_fn_c_check_type "$LINENO" "intmax_t" "ac_cv_type_intmax_t" "$ac_includes_default"
6170 if test "x$ac_cv_type_intmax_t" = x""yes; then :
6172 $as_echo "#define HAVE_INTMAX_T 1" >>confdefs.h
6174 else
6175 test $ac_cv_type_long_long_int = yes \
6176 && ac_type='long long int' \
6177 || ac_type='long int'
6179 cat >>confdefs.h <<_ACEOF
6180 #define intmax_t $ac_type
6181 _ACEOF
6187 ac_fn_c_check_type "$LINENO" "intptr_t" "ac_cv_type_intptr_t" "$ac_includes_default"
6188 if test "x$ac_cv_type_intptr_t" = x""yes; then :
6190 $as_echo "#define HAVE_INTPTR_T 1" >>confdefs.h
6192 else
6193 for ac_type in 'int' 'long int' 'long long int'; do
6194 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6195 /* end confdefs.h. */
6196 $ac_includes_default
6198 main ()
6200 static int test_array [1 - 2 * !(sizeof (void *) <= sizeof ($ac_type))];
6201 test_array [0] = 0
6204 return 0;
6206 _ACEOF
6207 if ac_fn_c_try_compile "$LINENO"; then :
6209 cat >>confdefs.h <<_ACEOF
6210 #define intptr_t $ac_type
6211 _ACEOF
6213 ac_type=
6215 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6216 test -z "$ac_type" && break
6217 done
6221 ac_fn_c_find_uintX_t "$LINENO" "8" "ac_cv_c_uint8_t"
6222 case $ac_cv_c_uint8_t in #(
6223 no|yes) ;; #(
6226 $as_echo "#define _UINT8_T 1" >>confdefs.h
6229 cat >>confdefs.h <<_ACEOF
6230 #define uint8_t $ac_cv_c_uint8_t
6231 _ACEOF
6233 esac
6235 ac_fn_c_find_uintX_t "$LINENO" "16" "ac_cv_c_uint16_t"
6236 case $ac_cv_c_uint16_t in #(
6237 no|yes) ;; #(
6241 cat >>confdefs.h <<_ACEOF
6242 #define uint16_t $ac_cv_c_uint16_t
6243 _ACEOF
6245 esac
6247 ac_fn_c_find_uintX_t "$LINENO" "32" "ac_cv_c_uint32_t"
6248 case $ac_cv_c_uint32_t in #(
6249 no|yes) ;; #(
6252 $as_echo "#define _UINT32_T 1" >>confdefs.h
6255 cat >>confdefs.h <<_ACEOF
6256 #define uint32_t $ac_cv_c_uint32_t
6257 _ACEOF
6259 esac
6261 ac_fn_c_find_uintX_t "$LINENO" "64" "ac_cv_c_uint64_t"
6262 case $ac_cv_c_uint64_t in #(
6263 no|yes) ;; #(
6266 $as_echo "#define _UINT64_T 1" >>confdefs.h
6269 cat >>confdefs.h <<_ACEOF
6270 #define uint64_t $ac_cv_c_uint64_t
6271 _ACEOF
6273 esac
6276 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for unsigned long long int" >&5
6277 $as_echo_n "checking for unsigned long long int... " >&6; }
6278 if test "${ac_cv_type_unsigned_long_long_int+set}" = set; then :
6279 $as_echo_n "(cached) " >&6
6280 else
6281 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6282 /* end confdefs.h. */
6284 /* For now, do not test the preprocessor; as of 2007 there are too many
6285 implementations with broken preprocessors. Perhaps this can
6286 be revisited in 2012. In the meantime, code should not expect
6287 #if to work with literals wider than 32 bits. */
6288 /* Test literals. */
6289 long long int ll = 9223372036854775807ll;
6290 long long int nll = -9223372036854775807LL;
6291 unsigned long long int ull = 18446744073709551615ULL;
6292 /* Test constant expressions. */
6293 typedef int a[((-9223372036854775807LL < 0 && 0 < 9223372036854775807ll)
6294 ? 1 : -1)];
6295 typedef int b[(18446744073709551615ULL <= (unsigned long long int) -1
6296 ? 1 : -1)];
6297 int i = 63;
6299 main ()
6301 /* Test availability of runtime routines for shift and division. */
6302 long long int llmax = 9223372036854775807ll;
6303 unsigned long long int ullmax = 18446744073709551615ull;
6304 return ((ll << 63) | (ll >> 63) | (ll < i) | (ll > i)
6305 | (llmax / ll) | (llmax % ll)
6306 | (ull << 63) | (ull >> 63) | (ull << i) | (ull >> i)
6307 | (ullmax / ull) | (ullmax % ull));
6309 return 0;
6312 _ACEOF
6313 if ac_fn_c_try_link "$LINENO"; then :
6314 ac_cv_type_unsigned_long_long_int=yes
6315 else
6316 ac_cv_type_unsigned_long_long_int=no
6318 rm -f core conftest.err conftest.$ac_objext \
6319 conftest$ac_exeext conftest.$ac_ext
6321 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_unsigned_long_long_int" >&5
6322 $as_echo "$ac_cv_type_unsigned_long_long_int" >&6; }
6323 if test $ac_cv_type_unsigned_long_long_int = yes; then
6325 $as_echo "#define HAVE_UNSIGNED_LONG_LONG_INT 1" >>confdefs.h
6331 ac_fn_c_check_type "$LINENO" "uintmax_t" "ac_cv_type_uintmax_t" "$ac_includes_default"
6332 if test "x$ac_cv_type_uintmax_t" = x""yes; then :
6334 $as_echo "#define HAVE_UINTMAX_T 1" >>confdefs.h
6336 else
6337 test $ac_cv_type_unsigned_long_long_int = yes \
6338 && ac_type='unsigned long long int' \
6339 || ac_type='unsigned long int'
6341 cat >>confdefs.h <<_ACEOF
6342 #define uintmax_t $ac_type
6343 _ACEOF
6349 ac_fn_c_check_type "$LINENO" "uintptr_t" "ac_cv_type_uintptr_t" "$ac_includes_default"
6350 if test "x$ac_cv_type_uintptr_t" = x""yes; then :
6352 $as_echo "#define HAVE_UINTPTR_T 1" >>confdefs.h
6354 else
6355 for ac_type in 'unsigned int' 'unsigned long int' \
6356 'unsigned long long int'; do
6357 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6358 /* end confdefs.h. */
6359 $ac_includes_default
6361 main ()
6363 static int test_array [1 - 2 * !(sizeof (void *) <= sizeof ($ac_type))];
6364 test_array [0] = 0
6367 return 0;
6369 _ACEOF
6370 if ac_fn_c_try_compile "$LINENO"; then :
6372 cat >>confdefs.h <<_ACEOF
6373 #define uintptr_t $ac_type
6374 _ACEOF
6376 ac_type=
6378 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6379 test -z "$ac_type" && break
6380 done
6397 # ---------------------
6398 # Warnings and checking
6399 # ---------------------
6401 # Check $CC warning features (if it's GCC).
6402 # We want to use -pedantic, but we don't want warnings about
6403 # * 'long long'
6404 # * variadic macros
6405 # * overlong strings
6406 # * C++11 narrowing conversions in { }
6407 # So, we only use -pedantic if we can disable those warnings.
6409 loose_warn=
6410 save_CFLAGS="$CFLAGS"
6411 for real_option in -W -Wall -Wno-narrowing -Wwrite-strings -Wcast-qual; do
6412 # Do the check with the no- prefix removed since gcc silently
6413 # accepts any -Wno-* option on purpose
6414 case $real_option in
6415 -Wno-*) option=-W`expr x$real_option : 'x-Wno-\(.*\)'` ;;
6416 *) option=$real_option ;;
6417 esac
6418 as_acx_Woption=`$as_echo "acx_cv_prog_cc_warning_$option" | $as_tr_sh`
6420 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC supports $option" >&5
6421 $as_echo_n "checking whether $CC supports $option... " >&6; }
6422 if { as_var=$as_acx_Woption; eval "test \"\${$as_var+set}\" = set"; }; then :
6423 $as_echo_n "(cached) " >&6
6424 else
6425 CFLAGS="$option"
6426 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6427 /* end confdefs.h. */
6430 main ()
6434 return 0;
6436 _ACEOF
6437 if ac_fn_c_try_compile "$LINENO"; then :
6438 eval "$as_acx_Woption=yes"
6439 else
6440 eval "$as_acx_Woption=no"
6442 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6445 eval ac_res=\$$as_acx_Woption
6446 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
6447 $as_echo "$ac_res" >&6; }
6448 if test `eval 'as_val=${'$as_acx_Woption'};$as_echo "$as_val"'` = yes; then :
6449 loose_warn="$loose_warn${loose_warn:+ }$real_option"
6451 done
6452 CFLAGS="$save_CFLAGS"
6454 c_loose_warn=
6455 save_CFLAGS="$CFLAGS"
6456 for real_option in -Wstrict-prototypes -Wmissing-prototypes; do
6457 # Do the check with the no- prefix removed since gcc silently
6458 # accepts any -Wno-* option on purpose
6459 case $real_option in
6460 -Wno-*) option=-W`expr x$real_option : 'x-Wno-\(.*\)'` ;;
6461 *) option=$real_option ;;
6462 esac
6463 as_acx_Woption=`$as_echo "acx_cv_prog_cc_warning_$option" | $as_tr_sh`
6465 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC supports $option" >&5
6466 $as_echo_n "checking whether $CC supports $option... " >&6; }
6467 if { as_var=$as_acx_Woption; eval "test \"\${$as_var+set}\" = set"; }; then :
6468 $as_echo_n "(cached) " >&6
6469 else
6470 CFLAGS="$option"
6471 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6472 /* end confdefs.h. */
6475 main ()
6479 return 0;
6481 _ACEOF
6482 if ac_fn_c_try_compile "$LINENO"; then :
6483 eval "$as_acx_Woption=yes"
6484 else
6485 eval "$as_acx_Woption=no"
6487 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6490 eval ac_res=\$$as_acx_Woption
6491 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
6492 $as_echo "$ac_res" >&6; }
6493 if test `eval 'as_val=${'$as_acx_Woption'};$as_echo "$as_val"'` = yes; then :
6494 c_loose_warn="$c_loose_warn${c_loose_warn:+ }$real_option"
6496 done
6497 CFLAGS="$save_CFLAGS"
6499 strict_warn=
6500 save_CFLAGS="$CFLAGS"
6501 for real_option in -Wmissing-format-attribute; do
6502 # Do the check with the no- prefix removed since gcc silently
6503 # accepts any -Wno-* option on purpose
6504 case $real_option in
6505 -Wno-*) option=-W`expr x$real_option : 'x-Wno-\(.*\)'` ;;
6506 *) option=$real_option ;;
6507 esac
6508 as_acx_Woption=`$as_echo "acx_cv_prog_cc_warning_$option" | $as_tr_sh`
6510 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC supports $option" >&5
6511 $as_echo_n "checking whether $CC supports $option... " >&6; }
6512 if { as_var=$as_acx_Woption; eval "test \"\${$as_var+set}\" = set"; }; then :
6513 $as_echo_n "(cached) " >&6
6514 else
6515 CFLAGS="$option"
6516 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6517 /* end confdefs.h. */
6520 main ()
6524 return 0;
6526 _ACEOF
6527 if ac_fn_c_try_compile "$LINENO"; then :
6528 eval "$as_acx_Woption=yes"
6529 else
6530 eval "$as_acx_Woption=no"
6532 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6535 eval ac_res=\$$as_acx_Woption
6536 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
6537 $as_echo "$ac_res" >&6; }
6538 if test `eval 'as_val=${'$as_acx_Woption'};$as_echo "$as_val"'` = yes; then :
6539 strict_warn="$strict_warn${strict_warn:+ }$real_option"
6541 done
6542 CFLAGS="$save_CFLAGS"
6544 c_strict_warn=
6545 save_CFLAGS="$CFLAGS"
6546 for real_option in -Wold-style-definition -Wc++-compat; do
6547 # Do the check with the no- prefix removed since gcc silently
6548 # accepts any -Wno-* option on purpose
6549 case $real_option in
6550 -Wno-*) option=-W`expr x$real_option : 'x-Wno-\(.*\)'` ;;
6551 *) option=$real_option ;;
6552 esac
6553 as_acx_Woption=`$as_echo "acx_cv_prog_cc_warning_$option" | $as_tr_sh`
6555 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC supports $option" >&5
6556 $as_echo_n "checking whether $CC supports $option... " >&6; }
6557 if { as_var=$as_acx_Woption; eval "test \"\${$as_var+set}\" = set"; }; then :
6558 $as_echo_n "(cached) " >&6
6559 else
6560 CFLAGS="$option"
6561 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6562 /* end confdefs.h. */
6565 main ()
6569 return 0;
6571 _ACEOF
6572 if ac_fn_c_try_compile "$LINENO"; then :
6573 eval "$as_acx_Woption=yes"
6574 else
6575 eval "$as_acx_Woption=no"
6577 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6580 eval ac_res=\$$as_acx_Woption
6581 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
6582 $as_echo "$ac_res" >&6; }
6583 if test `eval 'as_val=${'$as_acx_Woption'};$as_echo "$as_val"'` = yes; then :
6584 c_strict_warn="$c_strict_warn${c_strict_warn:+ }$real_option"
6586 done
6587 CFLAGS="$save_CFLAGS"
6589 # Do the check with the no- prefix removed from the warning options
6590 # since gcc silently accepts any -Wno-* option on purpose
6591 if test "$GCC" = yes; then :
6592 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC supports -pedantic -Wlong-long -Wvariadic-macros -Woverlength-strings" >&5
6593 $as_echo_n "checking whether $CC supports -pedantic -Wlong-long -Wvariadic-macros -Woverlength-strings... " >&6; }
6594 if test "${acx_cv_prog_cc_pedantic__Wlong_long__Wvariadic_macros__Woverlength_strings+set}" = set; then :
6595 $as_echo_n "(cached) " >&6
6596 else
6597 save_CFLAGS="$CFLAGS"
6598 CFLAGS="-pedantic -Wlong-long -Wvariadic-macros -Woverlength-strings"
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 acx_cv_prog_cc_pedantic__Wlong_long__Wvariadic_macros__Woverlength_strings=yes
6612 else
6613 acx_cv_prog_cc_pedantic__Wlong_long__Wvariadic_macros__Woverlength_strings=no
6615 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6616 CFLAGS="$save_CFLAGS"
6618 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $acx_cv_prog_cc_pedantic__Wlong_long__Wvariadic_macros__Woverlength_strings" >&5
6619 $as_echo "$acx_cv_prog_cc_pedantic__Wlong_long__Wvariadic_macros__Woverlength_strings" >&6; }
6620 if test $acx_cv_prog_cc_pedantic__Wlong_long__Wvariadic_macros__Woverlength_strings = yes; then :
6621 strict_warn="$strict_warn${strict_warn:+ }-pedantic -Wno-long-long -Wno-variadic-macros -Wno-overlength-strings"
6626 # Check whether --enable-werror-always was given.
6627 if test "${enable_werror_always+set}" = set; then :
6628 enableval=$enable_werror_always;
6629 else
6630 enable_werror_always=no
6633 if test $enable_werror_always = yes; then :
6634 strict_warn="$strict_warn${strict_warn:+ }-Werror"
6639 # The above macros do nothing if the compiler is not GCC. However, the
6640 # Makefile has more goo to add other flags, so these variables are used
6641 # to enable warnings only for GCC.
6642 warn_cflags=
6643 warn_cxxflags=
6644 if test "x$GCC" = "xyes"; then
6645 warn_cflags='$(GCC_WARN_CFLAGS)'
6646 warn_cxxflags='$(GCC_WARN_CXXFLAGS)'
6651 # Disable exceptions and RTTI if building with g++
6652 noexception_flags=
6653 save_CFLAGS="$CFLAGS"
6654 for real_option in -fno-exceptions -fno-rtti -fasynchronous-unwind-tables; do
6655 # Do the check with the no- prefix removed since gcc silently
6656 # accepts any -Wno-* option on purpose
6657 case $real_option in
6658 -Wno-*) option=-W`expr x$real_option : 'x-Wno-\(.*\)'` ;;
6659 *) option=$real_option ;;
6660 esac
6661 as_acx_Woption=`$as_echo "acx_cv_prog_cc_warning_$option" | $as_tr_sh`
6663 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC supports $option" >&5
6664 $as_echo_n "checking whether $CC supports $option... " >&6; }
6665 if { as_var=$as_acx_Woption; eval "test \"\${$as_var+set}\" = set"; }; then :
6666 $as_echo_n "(cached) " >&6
6667 else
6668 CFLAGS="$option"
6669 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6670 /* end confdefs.h. */
6673 main ()
6677 return 0;
6679 _ACEOF
6680 if ac_fn_c_try_compile "$LINENO"; then :
6681 eval "$as_acx_Woption=yes"
6682 else
6683 eval "$as_acx_Woption=no"
6685 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6688 eval ac_res=\$$as_acx_Woption
6689 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
6690 $as_echo "$ac_res" >&6; }
6691 if test `eval 'as_val=${'$as_acx_Woption'};$as_echo "$as_val"'` = yes; then :
6692 noexception_flags="$noexception_flags${noexception_flags:+ }$real_option"
6694 done
6695 CFLAGS="$save_CFLAGS"
6698 # Enable expensive internal checks
6699 is_release=
6700 if test x"`cat $srcdir/DEV-PHASE`" != xexperimental; then
6701 is_release=yes
6704 # Check whether --enable-checking was given.
6705 if test "${enable_checking+set}" = set; then :
6706 enableval=$enable_checking; ac_checking_flags="${enableval}"
6707 else
6709 # Determine the default checks.
6710 if test x$is_release = x ; then
6711 ac_checking_flags=yes
6712 else
6713 ac_checking_flags=release
6717 IFS="${IFS= }"; ac_save_IFS="$IFS"; IFS="$IFS,"
6718 for check in release $ac_checking_flags
6720 case $check in
6721 # these set all the flags to specific states
6722 yes) ac_assert_checking=1 ; ac_checking=1 ; ac_df_checking= ;
6723 ac_fold_checking= ; ac_gc_checking=1 ;
6724 ac_gc_always_collect= ; ac_gimple_checking=1 ; ac_rtl_checking= ;
6725 ac_rtlflag_checking=1 ; ac_runtime_checking=1 ;
6726 ac_tree_checking=1 ; ac_valgrind_checking= ;
6727 ac_types_checking=1 ;;
6728 no|none) ac_assert_checking= ; ac_checking= ; ac_df_checking= ;
6729 ac_fold_checking= ; ac_gc_checking= ;
6730 ac_gc_always_collect= ; ac_gimple_checking= ; ac_rtl_checking= ;
6731 ac_rtlflag_checking= ; ac_runtime_checking= ;
6732 ac_tree_checking= ; ac_valgrind_checking= ;
6733 ac_types_checking= ;;
6734 all) ac_assert_checking=1 ; ac_checking=1 ; ac_df_checking=1 ;
6735 ac_fold_checking=1 ; ac_gc_checking=1 ;
6736 ac_gc_always_collect=1 ; ac_gimple_checking=1 ; ac_rtl_checking=1 ;
6737 ac_rtlflag_checking=1 ; ac_runtime_checking=1 ;
6738 ac_tree_checking=1 ; ac_valgrind_checking= ;
6739 ac_types_checking=1 ;;
6740 release) ac_assert_checking=1 ; ac_checking= ; ac_df_checking= ;
6741 ac_fold_checking= ; ac_gc_checking= ;
6742 ac_gc_always_collect= ; ac_gimple_checking= ; ac_rtl_checking= ;
6743 ac_rtlflag_checking= ; ac_runtime_checking=1 ;
6744 ac_tree_checking= ; ac_valgrind_checking= ;
6745 ac_types_checking= ;;
6746 # these enable particular checks
6747 assert) ac_assert_checking=1 ;;
6748 df) ac_df_checking=1 ;;
6749 fold) ac_fold_checking=1 ;;
6750 gc) ac_gc_checking=1 ;;
6751 gcac) ac_gc_always_collect=1 ;;
6752 gimple) ac_gimple_checking=1 ;;
6753 misc) ac_checking=1 ;;
6754 rtl) ac_rtl_checking=1 ;;
6755 rtlflag) ac_rtlflag_checking=1 ;;
6756 runtime) ac_runtime_checking=1 ;;
6757 tree) ac_tree_checking=1 ;;
6758 types) ac_types_checking=1 ;;
6759 valgrind) ac_valgrind_checking=1 ;;
6760 *) as_fn_error "unknown check category $check" "$LINENO" 5 ;;
6761 esac
6762 done
6763 IFS="$ac_save_IFS"
6765 nocommon_flag=""
6766 if test x$ac_checking != x ; then
6768 $as_echo "#define ENABLE_CHECKING 1" >>confdefs.h
6770 nocommon_flag=-fno-common
6773 if test x$ac_df_checking != x ; then
6775 $as_echo "#define ENABLE_DF_CHECKING 1" >>confdefs.h
6778 if test x$ac_assert_checking != x ; then
6780 $as_echo "#define ENABLE_ASSERT_CHECKING 1" >>confdefs.h
6783 if test x$ac_gimple_checking != x ; then
6785 $as_echo "#define ENABLE_GIMPLE_CHECKING 1" >>confdefs.h
6789 if test x$ac_runtime_checking != x ; then
6791 $as_echo "#define ENABLE_RUNTIME_CHECKING 1" >>confdefs.h
6794 if test x$ac_tree_checking != x ; then
6796 $as_echo "#define ENABLE_TREE_CHECKING 1" >>confdefs.h
6798 TREEBROWSER=tree-browser.o
6799 TREECHECKING=yes
6801 if test x$ac_types_checking != x ; then
6803 $as_echo "#define ENABLE_TYPES_CHECKING 1" >>confdefs.h
6808 if test x$ac_rtl_checking != x ; then
6810 $as_echo "#define ENABLE_RTL_CHECKING 1" >>confdefs.h
6813 if test x$ac_rtlflag_checking != x ; then
6815 $as_echo "#define ENABLE_RTL_FLAG_CHECKING 1" >>confdefs.h
6818 if test x$ac_gc_checking != x ; then
6820 $as_echo "#define ENABLE_GC_CHECKING 1" >>confdefs.h
6823 if test x$ac_gc_always_collect != x ; then
6825 $as_echo "#define ENABLE_GC_ALWAYS_COLLECT 1" >>confdefs.h
6828 if test x$ac_fold_checking != x ; then
6830 $as_echo "#define ENABLE_FOLD_CHECKING 1" >>confdefs.h
6833 valgrind_path_defines=
6834 valgrind_command=
6836 ac_fn_c_check_header_mongrel "$LINENO" "valgrind.h" "ac_cv_header_valgrind_h" "$ac_includes_default"
6837 if test "x$ac_cv_header_valgrind_h" = x""yes; then :
6838 have_valgrind_h=yes
6839 else
6840 have_valgrind_h=no
6845 if test x$ac_valgrind_checking != x ; then
6846 # It is certainly possible that there's valgrind but no valgrind.h.
6847 # GCC relies on making annotations so we must have both.
6848 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for VALGRIND_DISCARD in <valgrind/memcheck.h>" >&5
6849 $as_echo_n "checking for VALGRIND_DISCARD in <valgrind/memcheck.h>... " >&6; }
6850 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6851 /* end confdefs.h. */
6852 #include <valgrind/memcheck.h>
6853 #ifndef VALGRIND_DISCARD
6854 #error VALGRIND_DISCARD not defined
6855 #endif
6856 _ACEOF
6857 if ac_fn_c_try_cpp "$LINENO"; then :
6858 gcc_cv_header_valgrind_memcheck_h=yes
6859 else
6860 gcc_cv_header_valgrind_memcheck_h=no
6862 rm -f conftest.err conftest.$ac_ext
6863 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_header_valgrind_memcheck_h" >&5
6864 $as_echo "$gcc_cv_header_valgrind_memcheck_h" >&6; }
6865 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for VALGRIND_DISCARD in <memcheck.h>" >&5
6866 $as_echo_n "checking for VALGRIND_DISCARD in <memcheck.h>... " >&6; }
6867 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6868 /* end confdefs.h. */
6869 #include <memcheck.h>
6870 #ifndef VALGRIND_DISCARD
6871 #error VALGRIND_DISCARD not defined
6872 #endif
6873 _ACEOF
6874 if ac_fn_c_try_cpp "$LINENO"; then :
6875 gcc_cv_header_memcheck_h=yes
6876 else
6877 gcc_cv_header_memcheck_h=no
6879 rm -f conftest.err conftest.$ac_ext
6880 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_header_memcheck_h" >&5
6881 $as_echo "$gcc_cv_header_memcheck_h" >&6; }
6883 # Prepare PATH_SEPARATOR.
6884 # The user is always right.
6885 if test "${PATH_SEPARATOR+set}" != set; then
6886 echo "#! /bin/sh" >conf$$.sh
6887 echo "exit 0" >>conf$$.sh
6888 chmod +x conf$$.sh
6889 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
6890 PATH_SEPARATOR=';'
6891 else
6892 PATH_SEPARATOR=:
6894 rm -f conf$$.sh
6897 # Find out how to test for executable files. Don't use a zero-byte file,
6898 # as systems may use methods other than mode bits to determine executability.
6899 cat >conf$$.file <<_ASEOF
6900 #! /bin/sh
6901 exit 0
6902 _ASEOF
6903 chmod +x conf$$.file
6904 if test -x conf$$.file >/dev/null 2>&1; then
6905 ac_executable_p="test -x"
6906 else
6907 ac_executable_p="test -f"
6909 rm -f conf$$.file
6911 # Extract the first word of "valgrind", so it can be a program name with args.
6912 set dummy valgrind; ac_word=$2
6913 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6914 $as_echo_n "checking for $ac_word... " >&6; }
6915 if test "${ac_cv_path_valgrind_path+set}" = set; then :
6916 $as_echo_n "(cached) " >&6
6917 else
6918 case "$valgrind_path" in
6919 [\\/]* | ?:[\\/]*)
6920 ac_cv_path_valgrind_path="$valgrind_path" # Let the user override the test with a path.
6923 ac_save_IFS="$IFS"; IFS=$PATH_SEPARATOR
6924 for ac_dir in $PATH; do
6925 IFS="$ac_save_IFS"
6926 test -z "$ac_dir" && ac_dir=.
6927 for ac_exec_ext in '' $ac_executable_extensions; do
6928 if $ac_executable_p "$ac_dir/$ac_word$ac_exec_ext"; then
6929 if $ac_dir/$ac_word --version | grep valgrind- >/dev/null 2>&1; then
6930 ac_cv_path_valgrind_path="$ac_dir/$ac_word$ac_exec_ext"
6931 break 2
6934 done
6935 done
6936 IFS="$ac_save_IFS"
6938 esac
6940 valgrind_path="$ac_cv_path_valgrind_path"
6941 if test -n "$valgrind_path"; then
6942 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $valgrind_path" >&5
6943 $as_echo "$valgrind_path" >&6; }
6944 else
6945 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6946 $as_echo "no" >&6; }
6949 if test "x$valgrind_path" = "x" \
6950 || (test $have_valgrind_h = no \
6951 && test $gcc_cv_header_memcheck_h = no \
6952 && test $gcc_cv_header_valgrind_memcheck_h = no); then
6953 as_fn_error "*** Can't find both valgrind and valgrind/memcheck.h, memcheck.h or valgrind.h" "$LINENO" 5
6955 valgrind_path_defines=-DVALGRIND_PATH='\"'$valgrind_path'\"'
6956 valgrind_command="$valgrind_path -q"
6958 $as_echo "#define ENABLE_VALGRIND_CHECKING 1" >>confdefs.h
6960 if test $gcc_cv_header_valgrind_memcheck_h = yes; then
6962 $as_echo "#define HAVE_VALGRIND_MEMCHECK_H 1" >>confdefs.h
6965 if test $gcc_cv_header_memcheck_h = yes; then
6967 $as_echo "#define HAVE_MEMCHECK_H 1" >>confdefs.h
6974 # Enable code coverage collection
6975 # Check whether --enable-coverage was given.
6976 if test "${enable_coverage+set}" = set; then :
6977 enableval=$enable_coverage; case "${enableval}" in
6978 yes|noopt)
6979 coverage_flags="-fprofile-arcs -ftest-coverage -frandom-seed=\$@ -O0"
6981 opt)
6982 coverage_flags="-fprofile-arcs -ftest-coverage -frandom-seed=\$@ -O2"
6985 # a.k.a. --disable-coverage
6986 coverage_flags=""
6989 as_fn_error "unknown coverage setting $enableval" "$LINENO" 5
6991 esac
6992 else
6993 coverage_flags=""
6998 # Check whether --enable-gather-detailed-mem-stats was given.
6999 if test "${enable_gather_detailed_mem_stats+set}" = set; then :
7000 enableval=$enable_gather_detailed_mem_stats;
7001 else
7002 enable_gather_detailed_mem_stats=no
7005 gather_stats=`if test $enable_gather_detailed_mem_stats != no; then echo 1; else echo 0; fi`
7007 cat >>confdefs.h <<_ACEOF
7008 #define GATHER_STATISTICS $gather_stats
7009 _ACEOF
7012 # -------------------------------
7013 # Miscenalleous configure options
7014 # -------------------------------
7016 # With stabs
7018 # Check whether --with-stabs was given.
7019 if test "${with_stabs+set}" = set; then :
7020 withval=$with_stabs; stabs="$with_stabs"
7021 else
7022 stabs=no
7026 # Determine whether or not multilibs are enabled.
7027 # Check whether --enable-multilib was given.
7028 if test "${enable_multilib+set}" = set; then :
7029 enableval=$enable_multilib;
7030 else
7031 enable_multilib=yes
7036 # Determine whether or not multiarch is enabled.
7037 # Check whether --enable-multiarch was given.
7038 if test "${enable_multiarch+set}" = set; then :
7039 enableval=$enable_multiarch; case "${enableval}" in
7040 yes|no|auto) enable_multiarch=$enableval;;
7041 *) as_fn_error "bad value ${enableval} given for --enable-multiarch option" "$LINENO" 5 ;;
7042 esac
7043 else
7044 enable_multiarch=auto
7047 if test x${enable_multiarch} = xauto; then
7048 if test x${with_native_system_header_dir} != x; then
7049 ma_msg_suffix=", disabled auto check (configured with --native-system-header-dir)"
7050 enable_multiarch=no
7052 if test x$host != x$target && test "x$with_sysroot" = x; then
7053 ma_msg_suffix=", disabled auto check (cross build configured without --with-sysroot)"
7054 enable_multiarch=no
7057 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for multiarch configuration" >&5
7058 $as_echo_n "checking for multiarch configuration... " >&6; }
7060 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_multiarch$ma_msg_suffix" >&5
7061 $as_echo "$enable_multiarch$ma_msg_suffix" >&6; }
7063 # needed for setting the multiarch name for soft-float/hard-float ABIs
7067 # Enable __cxa_atexit for C++.
7068 # Check whether --enable-__cxa_atexit was given.
7069 if test "${enable___cxa_atexit+set}" = set; then :
7070 enableval=$enable___cxa_atexit;
7074 # Enable C extension for decimal float if target supports it.
7076 # Check whether --enable-decimal-float was given.
7077 if test "${enable_decimal_float+set}" = set; then :
7078 enableval=$enable_decimal_float;
7079 case $enable_decimal_float in
7080 yes | no | bid | dpd) default_decimal_float=$enable_decimal_float ;;
7081 *) as_fn_error "'$enable_decimal_float' is an invalid value for --enable-decimal-float.
7082 Valid choices are 'yes', 'bid', 'dpd', and 'no'." "$LINENO" 5 ;;
7083 esac
7085 else
7087 case $target in
7088 powerpc*-*-linux* | i?86*-*-linux* | x86_64*-*-linux* | s390*-*-linux* | \
7089 i?86*-*-gnu* | \
7090 i?86*-*-mingw* | x86_64*-*-mingw* | \
7091 i?86*-*-cygwin*)
7092 enable_decimal_float=yes
7095 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: decimal float is not supported for this target, ignored" >&5
7096 $as_echo "$as_me: WARNING: decimal float is not supported for this target, ignored" >&2;}
7097 enable_decimal_float=no
7099 esac
7104 # x86's use BID format instead of DPD
7105 case x$enable_decimal_float in
7106 xyes)
7107 case $target in
7108 i?86*-*-* | x86_64*-*-*)
7109 enable_decimal_float=bid
7112 enable_decimal_float=dpd
7114 esac
7115 default_decimal_float=$enable_decimal_float
7117 xno)
7118 # ENABLE_DECIMAL_FLOAT is set to 0. But we have to have proper
7119 # dependency on libdecnumber.
7120 default_decimal_float=dpd
7122 esac
7127 dfp=`if test $enable_decimal_float != no; then echo 1; else echo 0; fi`
7129 cat >>confdefs.h <<_ACEOF
7130 #define ENABLE_DECIMAL_FLOAT $dfp
7131 _ACEOF
7134 # Use default_decimal_float for dependency.
7135 enable_decimal_float=$default_decimal_float
7137 bid=`if test $enable_decimal_float = bid; then echo 1; else echo 0; fi`
7139 cat >>confdefs.h <<_ACEOF
7140 #define ENABLE_DECIMAL_BID_FORMAT $bid
7141 _ACEOF
7144 # Enable C extension for fixed-point arithmetic.
7145 # Check whether --enable-fixed-point was given.
7146 if test "${enable_fixed_point+set}" = set; then :
7147 enableval=$enable_fixed_point;
7148 else
7150 case $target in
7151 arm*)
7152 enable_fixed_point=yes
7155 mips*-*-*)
7156 enable_fixed_point=yes
7159 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: fixed-point is not supported for this target, ignored" >&5
7160 $as_echo "$as_me: WARNING: fixed-point is not supported for this target, ignored" >&2;}
7161 enable_fixed_point=no
7163 esac
7169 fixedpoint=`if test $enable_fixed_point = yes; then echo 1; else echo 0; fi`
7171 cat >>confdefs.h <<_ACEOF
7172 #define ENABLE_FIXED_POINT $fixedpoint
7173 _ACEOF
7176 # Enable threads
7177 # Pass with no value to take the default
7178 # Pass with a value to specify a thread package
7179 # Check whether --enable-threads was given.
7180 if test "${enable_threads+set}" = set; then :
7181 enableval=$enable_threads;
7182 else
7183 enable_threads=''
7187 # Check whether --enable-tls was given.
7188 if test "${enable_tls+set}" = set; then :
7189 enableval=$enable_tls;
7190 case $enable_tls in
7191 yes | no) ;;
7192 *) as_fn_error "'$enable_tls' is an invalid value for --enable-tls.
7193 Valid choices are 'yes' and 'no'." "$LINENO" 5 ;;
7194 esac
7196 else
7197 enable_tls=''
7201 # Check whether --enable-objc-gc was given.
7202 if test "${enable_objc_gc+set}" = set; then :
7203 enableval=$enable_objc_gc; if test x$enable_objc_gc = xno; then
7204 objc_boehm_gc=''
7205 else
7206 objc_boehm_gc=1
7208 else
7209 objc_boehm_gc=''
7214 # Check whether --with-dwarf2 was given.
7215 if test "${with_dwarf2+set}" = set; then :
7216 withval=$with_dwarf2; dwarf2="$with_dwarf2"
7217 else
7218 dwarf2=no
7222 # Check whether --enable-shared was given.
7223 if test "${enable_shared+set}" = set; then :
7224 enableval=$enable_shared;
7225 case $enable_shared in
7226 yes | no) ;;
7228 enable_shared=no
7229 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:,"
7230 for pkg in $enableval; do
7231 if test "X$pkg" = "Xgcc" || test "X$pkg" = "Xlibgcc"; then
7232 enable_shared=yes
7234 done
7235 IFS="$ac_save_ifs"
7237 esac
7239 else
7240 enable_shared=yes
7246 # Check whether --with-native-system-header-dir was given.
7247 if test "${with_native_system_header_dir+set}" = set; then :
7248 withval=$with_native_system_header_dir;
7249 case ${with_native_system_header_dir} in
7250 yes|no) as_fn_error "bad value ${withval} given for --with-native-system-header-dir" "$LINENO" 5 ;;
7251 /* | [A-Za-z]:[\\/]*) ;;
7252 *) as_fn_error "--with-native-system-header-dir argument ${withval} must be an absolute directory" "$LINENO" 5 ;;
7253 esac
7254 configured_native_system_header_dir="${withval}"
7256 else
7257 configured_native_system_header_dir=
7262 # Check whether --with-build-sysroot was given.
7263 if test "${with_build_sysroot+set}" = set; then :
7264 withval=$with_build_sysroot; if test x"$withval" != x ; then
7265 SYSROOT_CFLAGS_FOR_TARGET="--sysroot=$withval"
7267 else
7268 SYSROOT_CFLAGS_FOR_TARGET=
7273 if test "x$prefix" = xNONE; then
7274 test_prefix=/usr/local
7275 else
7276 test_prefix=$prefix
7278 if test "x$exec_prefix" = xNONE; then
7279 test_exec_prefix=$test_prefix
7280 else
7281 test_exec_prefix=$exec_prefix
7285 # Check whether --with-sysroot was given.
7286 if test "${with_sysroot+set}" = set; then :
7287 withval=$with_sysroot;
7288 case ${with_sysroot} in
7289 yes) TARGET_SYSTEM_ROOT='${exec_prefix}/${target_noncanonical}/sys-root' ;;
7290 *) TARGET_SYSTEM_ROOT=$with_sysroot ;;
7291 esac
7293 TARGET_SYSTEM_ROOT_DEFINE='-DTARGET_SYSTEM_ROOT=\"$(TARGET_SYSTEM_ROOT)\"'
7294 CROSS_SYSTEM_HEADER_DIR='$(TARGET_SYSTEM_ROOT)$${sysroot_headers_suffix}$(NATIVE_SYSTEM_HEADER_DIR)'
7296 case ${TARGET_SYSTEM_ROOT} in
7297 "${test_prefix}"|"${test_prefix}/"*|\
7298 "${test_exec_prefix}"|"${test_exec_prefix}/"*|\
7299 '${prefix}'|'${prefix}/'*|\
7300 '${exec_prefix}'|'${exec_prefix}/'*)
7301 t="$TARGET_SYSTEM_ROOT_DEFINE -DTARGET_SYSTEM_ROOT_RELOCATABLE"
7302 TARGET_SYSTEM_ROOT_DEFINE="$t"
7304 esac
7306 else
7308 TARGET_SYSTEM_ROOT=
7309 TARGET_SYSTEM_ROOT_DEFINE=
7310 CROSS_SYSTEM_HEADER_DIR='$(gcc_tooldir)/sys-include'
7319 # Check whether --with-specs was given.
7320 if test "${with_specs+set}" = set; then :
7321 withval=$with_specs; CONFIGURE_SPECS=$withval
7322 else
7323 CONFIGURE_SPECS=
7331 # Check whether --with-pkgversion was given.
7332 if test "${with_pkgversion+set}" = set; then :
7333 withval=$with_pkgversion; case "$withval" in
7334 yes) as_fn_error "package version not specified" "$LINENO" 5 ;;
7335 no) PKGVERSION= ;;
7336 *) PKGVERSION="($withval) " ;;
7337 esac
7338 else
7339 PKGVERSION="(GCC) "
7347 # Check whether --with-bugurl was given.
7348 if test "${with_bugurl+set}" = set; then :
7349 withval=$with_bugurl; case "$withval" in
7350 yes) as_fn_error "bug URL not specified" "$LINENO" 5 ;;
7351 no) BUGURL=
7353 *) BUGURL="$withval"
7355 esac
7356 else
7357 BUGURL="http://gcc.gnu.org/bugs.html"
7361 case ${BUGURL} in
7363 REPORT_BUGS_TO=
7364 REPORT_BUGS_TEXI=
7367 REPORT_BUGS_TO="<$BUGURL>"
7368 REPORT_BUGS_TEXI=@uref{`echo "$BUGURL" | sed 's/@/@@/g'`}
7370 esac;
7375 # Sanity check enable_languages in case someone does not run the toplevel
7376 # configure # script.
7377 # Check whether --enable-languages was given.
7378 if test "${enable_languages+set}" = set; then :
7379 enableval=$enable_languages; case ,${enable_languages}, in
7380 ,,|,yes,)
7381 # go safe -- we cannot be much sure without the toplevel
7382 # configure's
7383 # analysis of which target libs are present and usable
7384 enable_languages=c
7386 *,all,*)
7387 as_fn_error "only the toplevel supports --enable-languages=all" "$LINENO" 5
7389 *,c,*)
7392 enable_languages=c,${enable_languages}
7394 esac
7395 else
7396 enable_languages=c
7401 # Check whether --with-multilib-list was given.
7402 if test "${with_multilib_list+set}" = set; then :
7403 withval=$with_multilib_list; :
7404 else
7405 with_multilib_list=default
7409 # -------------------------
7410 # Checks for other programs
7411 # -------------------------
7413 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
7414 $as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
7415 set x ${MAKE-make}
7416 ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
7417 if { as_var=ac_cv_prog_make_${ac_make}_set; eval "test \"\${$as_var+set}\" = set"; }; then :
7418 $as_echo_n "(cached) " >&6
7419 else
7420 cat >conftest.make <<\_ACEOF
7421 SHELL = /bin/sh
7422 all:
7423 @echo '@@@%%%=$(MAKE)=@@@%%%'
7424 _ACEOF
7425 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
7426 case `${MAKE-make} -f conftest.make 2>/dev/null` in
7427 *@@@%%%=?*=@@@%%%*)
7428 eval ac_cv_prog_make_${ac_make}_set=yes;;
7430 eval ac_cv_prog_make_${ac_make}_set=no;;
7431 esac
7432 rm -f conftest.make
7434 if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
7435 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
7436 $as_echo "yes" >&6; }
7437 SET_MAKE=
7438 else
7439 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7440 $as_echo "no" >&6; }
7441 SET_MAKE="MAKE=${MAKE-make}"
7445 # Find some useful tools
7446 for ac_prog in gawk mawk nawk awk
7448 # Extract the first word of "$ac_prog", so it can be a program name with args.
7449 set dummy $ac_prog; ac_word=$2
7450 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7451 $as_echo_n "checking for $ac_word... " >&6; }
7452 if test "${ac_cv_prog_AWK+set}" = set; then :
7453 $as_echo_n "(cached) " >&6
7454 else
7455 if test -n "$AWK"; then
7456 ac_cv_prog_AWK="$AWK" # Let the user override the test.
7457 else
7458 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7459 for as_dir in $PATH
7461 IFS=$as_save_IFS
7462 test -z "$as_dir" && as_dir=.
7463 for ac_exec_ext in '' $ac_executable_extensions; do
7464 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7465 ac_cv_prog_AWK="$ac_prog"
7466 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7467 break 2
7469 done
7470 done
7471 IFS=$as_save_IFS
7475 AWK=$ac_cv_prog_AWK
7476 if test -n "$AWK"; then
7477 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
7478 $as_echo "$AWK" >&6; }
7479 else
7480 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7481 $as_echo "no" >&6; }
7485 test -n "$AWK" && break
7486 done
7488 # We need awk to create options.c and options.h.
7489 # Bail out if it's missing.
7490 case ${AWK} in
7491 "") as_fn_error "can't build without awk, bailing out" "$LINENO" 5 ;;
7492 esac
7494 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5
7495 $as_echo_n "checking whether ln -s works... " >&6; }
7496 if test "${gcc_cv_prog_LN_S+set}" = set; then :
7497 $as_echo_n "(cached) " >&6
7498 else
7499 rm -f conftestdata_t
7500 echo >conftestdata_f
7501 if ln -s conftestdata_f conftestdata_t 2>/dev/null
7502 then
7503 gcc_cv_prog_LN_S="ln -s"
7504 else
7505 if ln conftestdata_f conftestdata_t 2>/dev/null
7506 then
7507 gcc_cv_prog_LN_S=ln
7508 else
7509 if cp -p conftestdata_f conftestdata_t 2>/dev/null
7510 then
7511 gcc_cv_prog_LN_S="cp -p"
7512 else
7513 gcc_cv_prog_LN_S=cp
7517 rm -f conftestdata_f conftestdata_t
7520 LN_S="$gcc_cv_prog_LN_S"
7521 if test "$gcc_cv_prog_LN_S" = "ln -s"; then
7522 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
7523 $as_echo "yes" >&6; }
7524 else
7525 if test "$gcc_cv_prog_LN_S" = "ln"; then
7526 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using ln" >&5
7527 $as_echo "no, using ln" >&6; }
7528 else
7529 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, and neither does ln, so using $gcc_cv_prog_LN_S" >&5
7530 $as_echo "no, and neither does ln, so using $gcc_cv_prog_LN_S" >&6; }
7534 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln works" >&5
7535 $as_echo_n "checking whether ln works... " >&6; }
7536 if test "${acx_cv_prog_LN+set}" = set; then :
7537 $as_echo_n "(cached) " >&6
7538 else
7539 rm -f conftestdata_t
7540 echo >conftestdata_f
7541 if ln conftestdata_f conftestdata_t 2>/dev/null
7542 then
7543 acx_cv_prog_LN=ln
7544 else
7545 acx_cv_prog_LN=no
7547 rm -f conftestdata_f conftestdata_t
7550 if test $acx_cv_prog_LN = no; then
7551 LN="$LN_S"
7552 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN" >&5
7553 $as_echo "no, using $LN" >&6; }
7554 else
7555 LN="$acx_cv_prog_LN"
7556 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
7557 $as_echo "yes" >&6; }
7560 if test -n "$ac_tool_prefix"; then
7561 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
7562 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
7563 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7564 $as_echo_n "checking for $ac_word... " >&6; }
7565 if test "${ac_cv_prog_RANLIB+set}" = set; then :
7566 $as_echo_n "(cached) " >&6
7567 else
7568 if test -n "$RANLIB"; then
7569 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
7570 else
7571 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7572 for as_dir in $PATH
7574 IFS=$as_save_IFS
7575 test -z "$as_dir" && as_dir=.
7576 for ac_exec_ext in '' $ac_executable_extensions; do
7577 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7578 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
7579 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7580 break 2
7582 done
7583 done
7584 IFS=$as_save_IFS
7588 RANLIB=$ac_cv_prog_RANLIB
7589 if test -n "$RANLIB"; then
7590 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
7591 $as_echo "$RANLIB" >&6; }
7592 else
7593 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7594 $as_echo "no" >&6; }
7599 if test -z "$ac_cv_prog_RANLIB"; then
7600 ac_ct_RANLIB=$RANLIB
7601 # Extract the first word of "ranlib", so it can be a program name with args.
7602 set dummy ranlib; ac_word=$2
7603 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7604 $as_echo_n "checking for $ac_word... " >&6; }
7605 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then :
7606 $as_echo_n "(cached) " >&6
7607 else
7608 if test -n "$ac_ct_RANLIB"; then
7609 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
7610 else
7611 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7612 for as_dir in $PATH
7614 IFS=$as_save_IFS
7615 test -z "$as_dir" && as_dir=.
7616 for ac_exec_ext in '' $ac_executable_extensions; do
7617 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7618 ac_cv_prog_ac_ct_RANLIB="ranlib"
7619 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7620 break 2
7622 done
7623 done
7624 IFS=$as_save_IFS
7628 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
7629 if test -n "$ac_ct_RANLIB"; then
7630 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
7631 $as_echo "$ac_ct_RANLIB" >&6; }
7632 else
7633 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7634 $as_echo "no" >&6; }
7637 if test "x$ac_ct_RANLIB" = x; then
7638 RANLIB=":"
7639 else
7640 case $cross_compiling:$ac_tool_warned in
7641 yes:)
7642 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7643 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7644 ac_tool_warned=yes ;;
7645 esac
7646 RANLIB=$ac_ct_RANLIB
7648 else
7649 RANLIB="$ac_cv_prog_RANLIB"
7652 ranlib_flags=""
7655 # Find a good install program. We prefer a C program (faster),
7656 # so one script is as good as another. But avoid the broken or
7657 # incompatible versions:
7658 # SysV /etc/install, /usr/sbin/install
7659 # SunOS /usr/etc/install
7660 # IRIX /sbin/install
7661 # AIX /bin/install
7662 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
7663 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
7664 # ./install, which can be erroneously created by make from ./install.sh.
7665 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD compatible install" >&5
7666 $as_echo_n "checking for a BSD compatible install... " >&6; }
7667 if test -z "$INSTALL"; then
7668 if test "${ac_cv_path_install+set}" = set; then :
7669 $as_echo_n "(cached) " >&6
7670 else
7671 IFS="${IFS= }"; ac_save_IFS="$IFS"; IFS="${IFS}:"
7672 for ac_dir in $PATH; do
7673 # Account for people who put trailing slashes in PATH elements.
7674 case "$ac_dir/" in
7675 /|./|.//|/etc/*|/usr/sbin/*|/usr/etc/*|/sbin/*|/usr/afsws/bin/*|/usr/ucb/*) ;;
7677 # OSF1 and SCO ODT 3.0 have their own names for install.
7678 for ac_prog in ginstall scoinst install; do
7679 if test -f $ac_dir/$ac_prog; then
7680 if test $ac_prog = install &&
7681 grep dspmsg $ac_dir/$ac_prog >/dev/null 2>&1; then
7682 # AIX install. It has an incompatible calling convention.
7683 # OSF/1 installbsd also uses dspmsg, but is usable.
7685 else
7686 ac_cv_path_install="$ac_dir/$ac_prog -c"
7687 break 2
7690 done
7692 esac
7693 done
7694 IFS="$ac_save_IFS"
7697 if test "${ac_cv_path_install+set}" = set; then
7698 INSTALL="$ac_cv_path_install"
7699 else
7700 # As a last resort, use the slow shell script. We don't cache a
7701 # path for INSTALL within a source directory, because that will
7702 # break other packages using the cache if that directory is
7703 # removed, or if the path is relative.
7704 INSTALL="$ac_install_sh"
7707 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
7708 $as_echo "$INSTALL" >&6; }
7710 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
7711 # It thinks the first close brace ends the variable substitution.
7712 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
7714 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
7717 # See if cmp has --ignore-initial.
7718 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for cmp's capabilities" >&5
7719 $as_echo_n "checking for cmp's capabilities... " >&6; }
7720 if test "${gcc_cv_prog_cmp_skip+set}" = set; then :
7721 $as_echo_n "(cached) " >&6
7722 else
7723 echo abfoo >t1
7724 echo cdfoo >t2
7725 gcc_cv_prog_cmp_skip=slowcompare
7726 if cmp --ignore-initial=2 t1 t2 > /dev/null 2>&1; then
7727 if cmp --ignore-initial=1 t1 t2 > /dev/null 2>&1; then
7729 else
7730 gcc_cv_prog_cmp_skip=gnucompare
7733 if test $gcc_cv_prog_cmp_skip = slowcompare ; then
7734 if cmp t1 t2 2 2 > /dev/null 2>&1; then
7735 if cmp t1 t2 1 1 > /dev/null 2>&1; then
7737 else
7738 gcc_cv_prog_cmp_skip=fastcompare
7742 rm t1 t2
7745 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_prog_cmp_skip" >&5
7746 $as_echo "$gcc_cv_prog_cmp_skip" >&6; }
7747 make_compare_target=$gcc_cv_prog_cmp_skip
7751 # See if we have the mktemp command.
7752 # Extract the first word of "mktemp", so it can be a program name with args.
7753 set dummy mktemp; ac_word=$2
7754 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7755 $as_echo_n "checking for $ac_word... " >&6; }
7756 if test "${ac_cv_prog_have_mktemp_command+set}" = set; then :
7757 $as_echo_n "(cached) " >&6
7758 else
7759 if test -n "$have_mktemp_command"; then
7760 ac_cv_prog_have_mktemp_command="$have_mktemp_command" # Let the user override the test.
7761 else
7762 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7763 for as_dir in $PATH
7765 IFS=$as_save_IFS
7766 test -z "$as_dir" && as_dir=.
7767 for ac_exec_ext in '' $ac_executable_extensions; do
7768 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7769 ac_cv_prog_have_mktemp_command="yes"
7770 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7771 break 2
7773 done
7774 done
7775 IFS=$as_save_IFS
7777 test -z "$ac_cv_prog_have_mktemp_command" && ac_cv_prog_have_mktemp_command="no"
7780 have_mktemp_command=$ac_cv_prog_have_mktemp_command
7781 if test -n "$have_mktemp_command"; then
7782 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_mktemp_command" >&5
7783 $as_echo "$have_mktemp_command" >&6; }
7784 else
7785 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7786 $as_echo "no" >&6; }
7791 # See if makeinfo has been installed and is modern enough
7792 # that we can use it.
7794 # Extract the first word of "makeinfo", so it can be a program name with args.
7795 set dummy makeinfo; ac_word=$2
7796 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7797 $as_echo_n "checking for $ac_word... " >&6; }
7798 if test "${ac_cv_prog_MAKEINFO+set}" = set; then :
7799 $as_echo_n "(cached) " >&6
7800 else
7801 if test -n "$MAKEINFO"; then
7802 ac_cv_prog_MAKEINFO="$MAKEINFO" # Let the user override the test.
7803 else
7804 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7805 for as_dir in $PATH
7807 IFS=$as_save_IFS
7808 test -z "$as_dir" && as_dir=.
7809 for ac_exec_ext in '' $ac_executable_extensions; do
7810 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7811 ac_cv_prog_MAKEINFO="makeinfo"
7812 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7813 break 2
7815 done
7816 done
7817 IFS=$as_save_IFS
7821 MAKEINFO=$ac_cv_prog_MAKEINFO
7822 if test -n "$MAKEINFO"; then
7823 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAKEINFO" >&5
7824 $as_echo "$MAKEINFO" >&6; }
7825 else
7826 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7827 $as_echo "no" >&6; }
7831 if test -n "$MAKEINFO"; then
7832 # Found it, now check the version.
7833 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for modern makeinfo" >&5
7834 $as_echo_n "checking for modern makeinfo... " >&6; }
7835 if test "${gcc_cv_prog_makeinfo_modern+set}" = set; then :
7836 $as_echo_n "(cached) " >&6
7837 else
7838 ac_prog_version=`eval $MAKEINFO --version 2>&1 |
7839 sed -n 's/^.*GNU texinfo.* \([0-9][0-9.]*\).*$/\1/p'`
7841 case $ac_prog_version in
7842 '') gcc_cv_prog_makeinfo_modern=no;;
7843 4.[7-9]*|4.[1-9][0-9]*|[5-9]*|[1-9][0-9]*) gcc_cv_prog_makeinfo_modern=yes;;
7844 *) gcc_cv_prog_makeinfo_modern=no;;
7845 esac
7848 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_prog_makeinfo_modern" >&5
7849 $as_echo "$gcc_cv_prog_makeinfo_modern" >&6; }
7850 else
7851 gcc_cv_prog_makeinfo_modern=no
7853 if test $gcc_cv_prog_makeinfo_modern = no; then
7854 MAKEINFO="${CONFIG_SHELL-/bin/sh} $ac_aux_dir/missing makeinfo"
7857 if test $gcc_cv_prog_makeinfo_modern = no; then
7858 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING:
7859 *** Makeinfo is missing or too old.
7860 *** Info documentation will not be built." >&5
7861 $as_echo "$as_me: WARNING:
7862 *** Makeinfo is missing or too old.
7863 *** Info documentation will not be built." >&2;}
7864 BUILD_INFO=
7865 else
7866 BUILD_INFO=info
7870 # Is pod2man recent enough to regenerate manpages?
7871 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for recent Pod::Man" >&5
7872 $as_echo_n "checking for recent Pod::Man... " >&6; }
7873 if (perl -e 'use 1.10 Pod::Man') >/dev/null 2>&1; then
7874 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
7875 $as_echo "yes" >&6; }
7876 GENERATED_MANPAGES=generated-manpages
7877 else
7878 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7879 $as_echo "no" >&6; }
7880 GENERATED_MANPAGES=
7884 MISSING="${CONFIG_SHELL-/bin/sh} $ac_aux_dir/missing"
7886 # How about lex?
7887 for ac_prog in flex
7889 # Extract the first word of "$ac_prog", so it can be a program name with args.
7890 set dummy $ac_prog; ac_word=$2
7891 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7892 $as_echo_n "checking for $ac_word... " >&6; }
7893 if test "${ac_cv_prog_FLEX+set}" = set; then :
7894 $as_echo_n "(cached) " >&6
7895 else
7896 if test -n "$FLEX"; then
7897 ac_cv_prog_FLEX="$FLEX" # Let the user override the test.
7898 else
7899 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7900 for as_dir in $PATH
7902 IFS=$as_save_IFS
7903 test -z "$as_dir" && as_dir=.
7904 for ac_exec_ext in '' $ac_executable_extensions; do
7905 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7906 ac_cv_prog_FLEX="$ac_prog"
7907 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7908 break 2
7910 done
7911 done
7912 IFS=$as_save_IFS
7916 FLEX=$ac_cv_prog_FLEX
7917 if test -n "$FLEX"; then
7918 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $FLEX" >&5
7919 $as_echo "$FLEX" >&6; }
7920 else
7921 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7922 $as_echo "no" >&6; }
7926 test -n "$FLEX" && break
7927 done
7928 test -n "$FLEX" || FLEX="$MISSING flex"
7931 # Bison?
7932 for ac_prog in bison
7934 # Extract the first word of "$ac_prog", so it can be a program name with args.
7935 set dummy $ac_prog; ac_word=$2
7936 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7937 $as_echo_n "checking for $ac_word... " >&6; }
7938 if test "${ac_cv_prog_BISON+set}" = set; then :
7939 $as_echo_n "(cached) " >&6
7940 else
7941 if test -n "$BISON"; then
7942 ac_cv_prog_BISON="$BISON" # Let the user override the test.
7943 else
7944 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7945 for as_dir in $PATH
7947 IFS=$as_save_IFS
7948 test -z "$as_dir" && as_dir=.
7949 for ac_exec_ext in '' $ac_executable_extensions; do
7950 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7951 ac_cv_prog_BISON="$ac_prog"
7952 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7953 break 2
7955 done
7956 done
7957 IFS=$as_save_IFS
7961 BISON=$ac_cv_prog_BISON
7962 if test -n "$BISON"; then
7963 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BISON" >&5
7964 $as_echo "$BISON" >&6; }
7965 else
7966 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7967 $as_echo "no" >&6; }
7971 test -n "$BISON" && break
7972 done
7973 test -n "$BISON" || BISON="$MISSING bison"
7976 # Binutils are not build modules, unlike bison/flex/makeinfo. So we
7977 # check for build == host before using them.
7979 # NM
7980 if test x${build} = x${host} && test -f $srcdir/../binutils/nm.c \
7981 && test -d ../binutils ; then
7982 NM='${objdir}/../binutils/nm-new'
7983 else
7984 # Extract the first word of "nm", so it can be a program name with args.
7985 set dummy nm; ac_word=$2
7986 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7987 $as_echo_n "checking for $ac_word... " >&6; }
7988 if test "${ac_cv_prog_NM+set}" = set; then :
7989 $as_echo_n "(cached) " >&6
7990 else
7991 if test -n "$NM"; then
7992 ac_cv_prog_NM="$NM" # Let the user override the test.
7993 else
7994 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7995 for as_dir in $PATH
7997 IFS=$as_save_IFS
7998 test -z "$as_dir" && as_dir=.
7999 for ac_exec_ext in '' $ac_executable_extensions; do
8000 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8001 ac_cv_prog_NM="nm"
8002 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8003 break 2
8005 done
8006 done
8007 IFS=$as_save_IFS
8009 test -z "$ac_cv_prog_NM" && ac_cv_prog_NM="${CONFIG_SHELL-/bin/sh} ${srcdir}/../missing nm"
8012 NM=$ac_cv_prog_NM
8013 if test -n "$NM"; then
8014 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NM" >&5
8015 $as_echo "$NM" >&6; }
8016 else
8017 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8018 $as_echo "no" >&6; }
8024 # AR
8025 if test x${build} = x${host} && test -f $srcdir/../binutils/ar.c \
8026 && test -d ../binutils ; then
8027 AR='${objdir}/../binutils/ar'
8028 else
8029 # Extract the first word of "ar", so it can be a program name with args.
8030 set dummy ar; ac_word=$2
8031 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8032 $as_echo_n "checking for $ac_word... " >&6; }
8033 if test "${ac_cv_prog_AR+set}" = set; then :
8034 $as_echo_n "(cached) " >&6
8035 else
8036 if test -n "$AR"; then
8037 ac_cv_prog_AR="$AR" # Let the user override the test.
8038 else
8039 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8040 for as_dir in $PATH
8042 IFS=$as_save_IFS
8043 test -z "$as_dir" && as_dir=.
8044 for ac_exec_ext in '' $ac_executable_extensions; do
8045 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8046 ac_cv_prog_AR="ar"
8047 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8048 break 2
8050 done
8051 done
8052 IFS=$as_save_IFS
8054 test -z "$ac_cv_prog_AR" && ac_cv_prog_AR="${CONFIG_SHELL-/bin/sh} ${srcdir}/../missing ar"
8057 AR=$ac_cv_prog_AR
8058 if test -n "$AR"; then
8059 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
8060 $as_echo "$AR" >&6; }
8061 else
8062 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8063 $as_echo "no" >&6; }
8070 # --------------------
8071 # Checks for C headers
8072 # --------------------
8074 # Need to reject headers which give warnings, so that the -Werror bootstrap
8075 # works later. *sigh* This needs to come before all header checks.
8077 ac_c_preproc_warn_flag=yes
8079 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
8080 $as_echo_n "checking for ANSI C header files... " >&6; }
8081 if test "${ac_cv_header_stdc+set}" = set; then :
8082 $as_echo_n "(cached) " >&6
8083 else
8084 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8085 /* end confdefs.h. */
8086 #include <stdlib.h>
8087 #include <stdarg.h>
8088 #include <string.h>
8089 #include <float.h>
8092 main ()
8096 return 0;
8098 _ACEOF
8099 if ac_fn_c_try_compile "$LINENO"; then :
8100 ac_cv_header_stdc=yes
8101 else
8102 ac_cv_header_stdc=no
8104 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8106 if test $ac_cv_header_stdc = yes; then
8107 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
8108 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8109 /* end confdefs.h. */
8110 #include <string.h>
8112 _ACEOF
8113 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
8114 $EGREP "memchr" >/dev/null 2>&1; then :
8116 else
8117 ac_cv_header_stdc=no
8119 rm -f conftest*
8123 if test $ac_cv_header_stdc = yes; then
8124 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
8125 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8126 /* end confdefs.h. */
8127 #include <stdlib.h>
8129 _ACEOF
8130 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
8131 $EGREP "free" >/dev/null 2>&1; then :
8133 else
8134 ac_cv_header_stdc=no
8136 rm -f conftest*
8140 if test $ac_cv_header_stdc = yes; then
8141 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
8142 if test "$cross_compiling" = yes; then :
8144 else
8145 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8146 /* end confdefs.h. */
8147 #include <ctype.h>
8148 #include <stdlib.h>
8149 #if ((' ' & 0x0FF) == 0x020)
8150 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
8151 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
8152 #else
8153 # define ISLOWER(c) \
8154 (('a' <= (c) && (c) <= 'i') \
8155 || ('j' <= (c) && (c) <= 'r') \
8156 || ('s' <= (c) && (c) <= 'z'))
8157 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
8158 #endif
8160 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
8162 main ()
8164 int i;
8165 for (i = 0; i < 256; i++)
8166 if (XOR (islower (i), ISLOWER (i))
8167 || toupper (i) != TOUPPER (i))
8168 return 2;
8169 return 0;
8171 _ACEOF
8172 if ac_fn_c_try_run "$LINENO"; then :
8174 else
8175 ac_cv_header_stdc=no
8177 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
8178 conftest.$ac_objext conftest.beam conftest.$ac_ext
8183 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
8184 $as_echo "$ac_cv_header_stdc" >&6; }
8185 if test $ac_cv_header_stdc = yes; then
8187 $as_echo "#define STDC_HEADERS 1" >>confdefs.h
8191 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether time.h and sys/time.h may both be included" >&5
8192 $as_echo_n "checking whether time.h and sys/time.h may both be included... " >&6; }
8193 if test "${ac_cv_header_time+set}" = set; then :
8194 $as_echo_n "(cached) " >&6
8195 else
8196 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8197 /* end confdefs.h. */
8198 #include <sys/types.h>
8199 #include <sys/time.h>
8200 #include <time.h>
8203 main ()
8205 if ((struct tm *) 0)
8206 return 0;
8208 return 0;
8210 _ACEOF
8211 if ac_fn_c_try_compile "$LINENO"; then :
8212 ac_cv_header_time=yes
8213 else
8214 ac_cv_header_time=no
8216 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8218 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_time" >&5
8219 $as_echo "$ac_cv_header_time" >&6; }
8220 if test $ac_cv_header_time = yes; then
8222 $as_echo "#define TIME_WITH_SYS_TIME 1" >>confdefs.h
8226 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether string.h and strings.h may both be included" >&5
8227 $as_echo_n "checking whether string.h and strings.h may both be included... " >&6; }
8228 if test "${gcc_cv_header_string+set}" = set; then :
8229 $as_echo_n "(cached) " >&6
8230 else
8231 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8232 /* end confdefs.h. */
8233 #include <string.h>
8234 #include <strings.h>
8236 main ()
8240 return 0;
8242 _ACEOF
8243 if ac_fn_c_try_compile "$LINENO"; then :
8244 gcc_cv_header_string=yes
8245 else
8246 gcc_cv_header_string=no
8248 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8250 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_header_string" >&5
8251 $as_echo "$gcc_cv_header_string" >&6; }
8252 if test $gcc_cv_header_string = yes; then
8254 $as_echo "#define STRING_WITH_STRINGS 1" >>confdefs.h
8258 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sys/wait.h that is POSIX.1 compatible" >&5
8259 $as_echo_n "checking for sys/wait.h that is POSIX.1 compatible... " >&6; }
8260 if test "${ac_cv_header_sys_wait_h+set}" = set; then :
8261 $as_echo_n "(cached) " >&6
8262 else
8263 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8264 /* end confdefs.h. */
8265 #include <sys/types.h>
8266 #include <sys/wait.h>
8267 #ifndef WEXITSTATUS
8268 # define WEXITSTATUS(stat_val) ((unsigned int) (stat_val) >> 8)
8269 #endif
8270 #ifndef WIFEXITED
8271 # define WIFEXITED(stat_val) (((stat_val) & 255) == 0)
8272 #endif
8275 main ()
8277 int s;
8278 wait (&s);
8279 s = WIFEXITED (s) ? WEXITSTATUS (s) : 1;
8281 return 0;
8283 _ACEOF
8284 if ac_fn_c_try_compile "$LINENO"; then :
8285 ac_cv_header_sys_wait_h=yes
8286 else
8287 ac_cv_header_sys_wait_h=no
8289 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8291 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_sys_wait_h" >&5
8292 $as_echo "$ac_cv_header_sys_wait_h" >&6; }
8293 if test $ac_cv_header_sys_wait_h = yes; then
8295 $as_echo "#define HAVE_SYS_WAIT_H 1" >>confdefs.h
8299 for ac_header in limits.h stddef.h string.h strings.h stdlib.h time.h iconv.h \
8300 fcntl.h unistd.h sys/file.h sys/time.h sys/mman.h \
8301 sys/resource.h sys/param.h sys/times.h sys/stat.h \
8302 direct.h malloc.h langinfo.h ldfcn.h locale.h wchar.h
8303 do :
8304 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
8305 ac_fn_c_check_header_preproc "$LINENO" "$ac_header" "$as_ac_Header"
8306 eval as_val=\$$as_ac_Header
8307 if test "x$as_val" = x""yes; then :
8308 cat >>confdefs.h <<_ACEOF
8309 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
8310 _ACEOF
8313 done
8316 # Check for thread headers.
8317 ac_fn_c_check_header_preproc "$LINENO" "thread.h" "ac_cv_header_thread_h"
8318 if test "x$ac_cv_header_thread_h" = x""yes; then :
8319 have_thread_h=yes
8320 else
8321 have_thread_h=
8324 ac_fn_c_check_header_preproc "$LINENO" "pthread.h" "ac_cv_header_pthread_h"
8325 if test "x$ac_cv_header_pthread_h" = x""yes; then :
8326 have_pthread_h=yes
8327 else
8328 have_pthread_h=
8332 # These tests can't be done till we know if we have limits.h.
8333 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for CHAR_BIT" >&5
8334 $as_echo_n "checking for CHAR_BIT... " >&6; }
8335 if test "${gcc_cv_decl_char_bit+set}" = set; then :
8336 $as_echo_n "(cached) " >&6
8337 else
8338 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8339 /* end confdefs.h. */
8340 #ifdef HAVE_LIMITS_H
8341 #include <limits.h>
8342 #endif
8343 #ifdef CHAR_BIT
8344 found
8345 #endif
8346 _ACEOF
8347 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
8348 $EGREP "found" >/dev/null 2>&1; then :
8349 gcc_cv_decl_char_bit=yes
8350 else
8351 gcc_cv_decl_char_bit=no
8353 rm -f conftest*
8357 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_decl_char_bit" >&5
8358 $as_echo "$gcc_cv_decl_char_bit" >&6; }
8359 if test $gcc_cv_decl_char_bit = no; then
8360 { $as_echo "$as_me:${as_lineno-$LINENO}: checking number of bits in a byte" >&5
8361 $as_echo_n "checking number of bits in a byte... " >&6; }
8362 if test "${gcc_cv_c_nbby+set}" = set; then :
8363 $as_echo_n "(cached) " >&6
8364 else
8366 gcc_cv_c_nbby=
8367 while test $i -lt 65; do
8368 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8369 /* end confdefs.h. */
8372 main ()
8374 switch(0) {
8375 case (unsigned char)((unsigned long)1 << $i) == ((unsigned long)1 << $i):
8376 case (unsigned char)((unsigned long)1<<($i-1)) == ((unsigned long)1<<($i-1)):
8379 return 0;
8381 _ACEOF
8382 if ac_fn_c_try_compile "$LINENO"; then :
8383 gcc_cv_c_nbby=$i; break
8385 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8386 i=`expr $i + 1`
8387 done
8388 test -z "$gcc_cv_c_nbby" && gcc_cv_c_nbby=failed
8391 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_c_nbby" >&5
8392 $as_echo "$gcc_cv_c_nbby" >&6; }
8393 if test $gcc_cv_c_nbby = failed; then
8394 as_fn_error "cannot determine number of bits in a byte" "$LINENO" 5
8395 else
8397 cat >>confdefs.h <<_ACEOF
8398 #define CHAR_BIT $gcc_cv_c_nbby
8399 _ACEOF
8403 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether byte ordering is bigendian" >&5
8404 $as_echo_n "checking whether byte ordering is bigendian... " >&6; }
8405 if test "${ac_cv_c_bigendian+set}" = set; then :
8406 $as_echo_n "(cached) " >&6
8407 else
8408 ac_cv_c_bigendian=unknown
8409 # See if we're dealing with a universal compiler.
8410 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8411 /* end confdefs.h. */
8412 #ifndef __APPLE_CC__
8413 not a universal capable compiler
8414 #endif
8415 typedef int dummy;
8417 _ACEOF
8418 if ac_fn_c_try_compile "$LINENO"; then :
8420 # Check for potential -arch flags. It is not universal unless
8421 # there are at least two -arch flags with different values.
8422 ac_arch=
8423 ac_prev=
8424 for ac_word in $CC $CFLAGS $CPPFLAGS $LDFLAGS; do
8425 if test -n "$ac_prev"; then
8426 case $ac_word in
8427 i?86 | x86_64 | ppc | ppc64)
8428 if test -z "$ac_arch" || test "$ac_arch" = "$ac_word"; then
8429 ac_arch=$ac_word
8430 else
8431 ac_cv_c_bigendian=universal
8432 break
8435 esac
8436 ac_prev=
8437 elif test "x$ac_word" = "x-arch"; then
8438 ac_prev=arch
8440 done
8442 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8443 if test $ac_cv_c_bigendian = unknown; then
8444 # See if sys/param.h defines the BYTE_ORDER macro.
8445 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8446 /* end confdefs.h. */
8447 #include <sys/types.h>
8448 #include <sys/param.h>
8451 main ()
8453 #if ! (defined BYTE_ORDER && defined BIG_ENDIAN \
8454 && defined LITTLE_ENDIAN && BYTE_ORDER && BIG_ENDIAN \
8455 && LITTLE_ENDIAN)
8456 bogus endian macros
8457 #endif
8460 return 0;
8462 _ACEOF
8463 if ac_fn_c_try_compile "$LINENO"; then :
8464 # It does; now see whether it defined to BIG_ENDIAN or not.
8465 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8466 /* end confdefs.h. */
8467 #include <sys/types.h>
8468 #include <sys/param.h>
8471 main ()
8473 #if BYTE_ORDER != BIG_ENDIAN
8474 not big endian
8475 #endif
8478 return 0;
8480 _ACEOF
8481 if ac_fn_c_try_compile "$LINENO"; then :
8482 ac_cv_c_bigendian=yes
8483 else
8484 ac_cv_c_bigendian=no
8486 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8488 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8490 if test $ac_cv_c_bigendian = unknown; then
8491 # See if <limits.h> defines _LITTLE_ENDIAN or _BIG_ENDIAN (e.g., Solaris).
8492 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8493 /* end confdefs.h. */
8494 #include <limits.h>
8497 main ()
8499 #if ! (defined _LITTLE_ENDIAN || defined _BIG_ENDIAN)
8500 bogus endian macros
8501 #endif
8504 return 0;
8506 _ACEOF
8507 if ac_fn_c_try_compile "$LINENO"; then :
8508 # It does; now see whether it defined to _BIG_ENDIAN or not.
8509 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8510 /* end confdefs.h. */
8511 #include <limits.h>
8514 main ()
8516 #ifndef _BIG_ENDIAN
8517 not big endian
8518 #endif
8521 return 0;
8523 _ACEOF
8524 if ac_fn_c_try_compile "$LINENO"; then :
8525 ac_cv_c_bigendian=yes
8526 else
8527 ac_cv_c_bigendian=no
8529 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8531 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8533 if test $ac_cv_c_bigendian = unknown; then
8534 # Compile a test program.
8535 if test "$cross_compiling" = yes; then :
8536 # Try to guess by grepping values from an object file.
8537 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8538 /* end confdefs.h. */
8539 short int ascii_mm[] =
8540 { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 };
8541 short int ascii_ii[] =
8542 { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 };
8543 int use_ascii (int i) {
8544 return ascii_mm[i] + ascii_ii[i];
8546 short int ebcdic_ii[] =
8547 { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 };
8548 short int ebcdic_mm[] =
8549 { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 };
8550 int use_ebcdic (int i) {
8551 return ebcdic_mm[i] + ebcdic_ii[i];
8553 extern int foo;
8556 main ()
8558 return use_ascii (foo) == use_ebcdic (foo);
8560 return 0;
8562 _ACEOF
8563 if ac_fn_c_try_compile "$LINENO"; then :
8564 if grep BIGenDianSyS conftest.$ac_objext >/dev/null; then
8565 ac_cv_c_bigendian=yes
8567 if grep LiTTleEnDian conftest.$ac_objext >/dev/null ; then
8568 if test "$ac_cv_c_bigendian" = unknown; then
8569 ac_cv_c_bigendian=no
8570 else
8571 # finding both strings is unlikely to happen, but who knows?
8572 ac_cv_c_bigendian=unknown
8576 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8577 else
8578 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8579 /* end confdefs.h. */
8580 $ac_includes_default
8582 main ()
8585 /* Are we little or big endian? From Harbison&Steele. */
8586 union
8588 long int l;
8589 char c[sizeof (long int)];
8590 } u;
8591 u.l = 1;
8592 return u.c[sizeof (long int) - 1] == 1;
8595 return 0;
8597 _ACEOF
8598 if ac_fn_c_try_run "$LINENO"; then :
8599 ac_cv_c_bigendian=no
8600 else
8601 ac_cv_c_bigendian=yes
8603 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
8604 conftest.$ac_objext conftest.beam conftest.$ac_ext
8609 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_bigendian" >&5
8610 $as_echo "$ac_cv_c_bigendian" >&6; }
8611 case $ac_cv_c_bigendian in #(
8612 yes)
8613 $as_echo "#define WORDS_BIGENDIAN 1" >>confdefs.h
8614 ;; #(
8616 ;; #(
8617 universal)
8619 $as_echo "#define AC_APPLE_UNIVERSAL_BUILD 1" >>confdefs.h
8621 ;; #(
8623 as_fn_error "unknown endianness
8624 presetting ac_cv_c_bigendian=no (or yes) will help" "$LINENO" 5 ;;
8625 esac
8628 # ----------------------
8629 # Checks for C++ headers
8630 # ----------------------
8632 ac_ext=cpp
8633 ac_cpp='$CXXCPP $CPPFLAGS'
8634 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8635 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8636 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
8637 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C++ preprocessor" >&5
8638 $as_echo_n "checking how to run the C++ preprocessor... " >&6; }
8639 if test -z "$CXXCPP"; then
8640 if test "${ac_cv_prog_CXXCPP+set}" = set; then :
8641 $as_echo_n "(cached) " >&6
8642 else
8643 # Double quotes because CXXCPP needs to be expanded
8644 for CXXCPP in "$CXX -E" "/lib/cpp"
8646 ac_preproc_ok=false
8647 for ac_cxx_preproc_warn_flag in '' yes
8649 # Use a header file that comes with gcc, so configuring glibc
8650 # with a fresh cross-compiler works.
8651 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
8652 # <limits.h> exists even on freestanding compilers.
8653 # On the NeXT, cc -E runs the code through the compiler's parser,
8654 # not just through cpp. "Syntax error" is here to catch this case.
8655 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8656 /* end confdefs.h. */
8657 #ifdef __STDC__
8658 # include <limits.h>
8659 #else
8660 # include <assert.h>
8661 #endif
8662 Syntax error
8663 _ACEOF
8664 if ac_fn_cxx_try_cpp "$LINENO"; then :
8666 else
8667 # Broken: fails on valid input.
8668 continue
8670 rm -f conftest.err conftest.$ac_ext
8672 # OK, works on sane cases. Now check whether nonexistent headers
8673 # can be detected and how.
8674 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8675 /* end confdefs.h. */
8676 #include <ac_nonexistent.h>
8677 _ACEOF
8678 if ac_fn_cxx_try_cpp "$LINENO"; then :
8679 # Broken: success on invalid input.
8680 continue
8681 else
8682 # Passes both tests.
8683 ac_preproc_ok=:
8684 break
8686 rm -f conftest.err conftest.$ac_ext
8688 done
8689 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
8690 rm -f conftest.err conftest.$ac_ext
8691 if $ac_preproc_ok; then :
8692 break
8695 done
8696 ac_cv_prog_CXXCPP=$CXXCPP
8699 CXXCPP=$ac_cv_prog_CXXCPP
8700 else
8701 ac_cv_prog_CXXCPP=$CXXCPP
8703 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXXCPP" >&5
8704 $as_echo "$CXXCPP" >&6; }
8705 ac_preproc_ok=false
8706 for ac_cxx_preproc_warn_flag in '' yes
8708 # Use a header file that comes with gcc, so configuring glibc
8709 # with a fresh cross-compiler works.
8710 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
8711 # <limits.h> exists even on freestanding compilers.
8712 # On the NeXT, cc -E runs the code through the compiler's parser,
8713 # not just through cpp. "Syntax error" is here to catch this case.
8714 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8715 /* end confdefs.h. */
8716 #ifdef __STDC__
8717 # include <limits.h>
8718 #else
8719 # include <assert.h>
8720 #endif
8721 Syntax error
8722 _ACEOF
8723 if ac_fn_cxx_try_cpp "$LINENO"; then :
8725 else
8726 # Broken: fails on valid input.
8727 continue
8729 rm -f conftest.err conftest.$ac_ext
8731 # OK, works on sane cases. Now check whether nonexistent headers
8732 # can be detected and how.
8733 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8734 /* end confdefs.h. */
8735 #include <ac_nonexistent.h>
8736 _ACEOF
8737 if ac_fn_cxx_try_cpp "$LINENO"; then :
8738 # Broken: success on invalid input.
8739 continue
8740 else
8741 # Passes both tests.
8742 ac_preproc_ok=:
8743 break
8745 rm -f conftest.err conftest.$ac_ext
8747 done
8748 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
8749 rm -f conftest.err conftest.$ac_ext
8750 if $ac_preproc_ok; then :
8752 else
8753 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
8754 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
8755 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: C++ preprocessor \"$CXXCPP\" fails sanity check
8756 See \`config.log' for more details." >&5
8757 $as_echo "$as_me: WARNING: C++ preprocessor \"$CXXCPP\" fails sanity check
8758 See \`config.log' for more details." >&2;}; }
8761 ac_ext=c
8762 ac_cpp='$CPP $CPPFLAGS'
8763 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8764 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8765 ac_compiler_gnu=$ac_cv_c_compiler_gnu
8768 ac_ext=cpp
8769 ac_cpp='$CXXCPP $CPPFLAGS'
8770 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8771 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8772 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
8777 for ac_header in unordered_map
8778 do :
8779 ac_fn_cxx_check_header_preproc "$LINENO" "unordered_map" "ac_cv_header_unordered_map"
8780 if test "x$ac_cv_header_unordered_map" = x""yes; then :
8781 cat >>confdefs.h <<_ACEOF
8782 #define HAVE_UNORDERED_MAP 1
8783 _ACEOF
8786 done
8788 for ac_header in tr1/unordered_map
8789 do :
8790 ac_fn_cxx_check_header_preproc "$LINENO" "tr1/unordered_map" "ac_cv_header_tr1_unordered_map"
8791 if test "x$ac_cv_header_tr1_unordered_map" = x""yes; then :
8792 cat >>confdefs.h <<_ACEOF
8793 #define HAVE_TR1_UNORDERED_MAP 1
8794 _ACEOF
8797 done
8799 for ac_header in ext/hash_map
8800 do :
8801 ac_fn_cxx_check_header_preproc "$LINENO" "ext/hash_map" "ac_cv_header_ext_hash_map"
8802 if test "x$ac_cv_header_ext_hash_map" = x""yes; then :
8803 cat >>confdefs.h <<_ACEOF
8804 #define HAVE_EXT_HASH_MAP 1
8805 _ACEOF
8808 done
8811 ac_ext=c
8812 ac_cpp='$CPP $CPPFLAGS'
8813 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8814 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8815 ac_compiler_gnu=$ac_cv_c_compiler_gnu
8818 # --------
8819 # UNSORTED
8820 # --------
8823 # These libraries may be used by collect2.
8824 # We may need a special search path to get them linked.
8825 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for collect2 libraries" >&5
8826 $as_echo_n "checking for collect2 libraries... " >&6; }
8827 if test "${gcc_cv_collect2_libs+set}" = set; then :
8828 $as_echo_n "(cached) " >&6
8829 else
8830 save_LIBS="$LIBS"
8831 for libs in '' -lld -lmld \
8832 '-L/usr/lib/cmplrs/cc2.11 -lmld' \
8833 '-L/usr/lib/cmplrs/cc3.11 -lmld'
8835 LIBS="$libs"
8836 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8837 /* end confdefs.h. */
8839 /* Override any GCC internal prototype to avoid an error.
8840 Use char because int might match the return type of a GCC
8841 builtin and then its argument prototype would still apply. */
8842 #ifdef __cplusplus
8843 extern "C"
8844 #endif
8845 char ldopen ();
8847 main ()
8849 return ldopen ();
8851 return 0;
8853 _ACEOF
8854 if ac_fn_c_try_link "$LINENO"; then :
8855 gcc_cv_collect2_libs="$libs"; break
8857 rm -f core conftest.err conftest.$ac_objext \
8858 conftest$ac_exeext conftest.$ac_ext
8859 done
8860 LIBS="$save_LIBS"
8861 test -z "$gcc_cv_collect2_libs" && gcc_cv_collect2_libs='none required'
8863 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_collect2_libs" >&5
8864 $as_echo "$gcc_cv_collect2_libs" >&6; }
8865 case $gcc_cv_collect2_libs in
8866 "none required") ;;
8867 *) COLLECT2_LIBS=$gcc_cv_collect2_libs ;;
8868 esac
8871 # When building Ada code on Alpha, we need exc_resume which is usually in
8872 # -lexc. So test for it.
8873 save_LIBS="$LIBS"
8874 LIBS=
8875 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing exc_resume" >&5
8876 $as_echo_n "checking for library containing exc_resume... " >&6; }
8877 if test "${ac_cv_search_exc_resume+set}" = set; then :
8878 $as_echo_n "(cached) " >&6
8879 else
8880 ac_func_search_save_LIBS=$LIBS
8881 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8882 /* end confdefs.h. */
8884 /* Override any GCC internal prototype to avoid an error.
8885 Use char because int might match the return type of a GCC
8886 builtin and then its argument prototype would still apply. */
8887 #ifdef __cplusplus
8888 extern "C"
8889 #endif
8890 char exc_resume ();
8892 main ()
8894 return exc_resume ();
8896 return 0;
8898 _ACEOF
8899 for ac_lib in '' exc; do
8900 if test -z "$ac_lib"; then
8901 ac_res="none required"
8902 else
8903 ac_res=-l$ac_lib
8904 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
8906 if ac_fn_c_try_link "$LINENO"; then :
8907 ac_cv_search_exc_resume=$ac_res
8909 rm -f core conftest.err conftest.$ac_objext \
8910 conftest$ac_exeext
8911 if test "${ac_cv_search_exc_resume+set}" = set; then :
8912 break
8914 done
8915 if test "${ac_cv_search_exc_resume+set}" = set; then :
8917 else
8918 ac_cv_search_exc_resume=no
8920 rm conftest.$ac_ext
8921 LIBS=$ac_func_search_save_LIBS
8923 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_exc_resume" >&5
8924 $as_echo "$ac_cv_search_exc_resume" >&6; }
8925 ac_res=$ac_cv_search_exc_resume
8926 if test "$ac_res" != no; then :
8927 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
8931 GNAT_LIBEXC="$LIBS"
8932 LIBS="$save_LIBS"
8935 # To support -mcpu=native on Solaris/SPARC, we need libkstat.
8936 save_LIBS="$LIBS"
8937 LIBS=
8938 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing kstat_open" >&5
8939 $as_echo_n "checking for library containing kstat_open... " >&6; }
8940 if test "${ac_cv_search_kstat_open+set}" = set; then :
8941 $as_echo_n "(cached) " >&6
8942 else
8943 ac_func_search_save_LIBS=$LIBS
8944 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8945 /* end confdefs.h. */
8947 /* Override any GCC internal prototype to avoid an error.
8948 Use char because int might match the return type of a GCC
8949 builtin and then its argument prototype would still apply. */
8950 #ifdef __cplusplus
8951 extern "C"
8952 #endif
8953 char kstat_open ();
8955 main ()
8957 return kstat_open ();
8959 return 0;
8961 _ACEOF
8962 for ac_lib in '' kstat; do
8963 if test -z "$ac_lib"; then
8964 ac_res="none required"
8965 else
8966 ac_res=-l$ac_lib
8967 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
8969 if ac_fn_c_try_link "$LINENO"; then :
8970 ac_cv_search_kstat_open=$ac_res
8972 rm -f core conftest.err conftest.$ac_objext \
8973 conftest$ac_exeext
8974 if test "${ac_cv_search_kstat_open+set}" = set; then :
8975 break
8977 done
8978 if test "${ac_cv_search_kstat_open+set}" = set; then :
8980 else
8981 ac_cv_search_kstat_open=no
8983 rm conftest.$ac_ext
8984 LIBS=$ac_func_search_save_LIBS
8986 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_kstat_open" >&5
8987 $as_echo "$ac_cv_search_kstat_open" >&6; }
8988 ac_res=$ac_cv_search_kstat_open
8989 if test "$ac_res" != no; then :
8990 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
8994 EXTRA_GCC_LIBS="$LIBS"
8995 LIBS="$save_LIBS"
8998 # Some systems put ldexp and frexp in libm instead of libc; assume
8999 # they're both in the same place. jcf-dump needs them.
9000 save_LIBS="$LIBS"
9001 LIBS=
9002 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing ldexp" >&5
9003 $as_echo_n "checking for library containing ldexp... " >&6; }
9004 if test "${ac_cv_search_ldexp+set}" = set; then :
9005 $as_echo_n "(cached) " >&6
9006 else
9007 ac_func_search_save_LIBS=$LIBS
9008 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9009 /* end confdefs.h. */
9011 /* Override any GCC internal prototype to avoid an error.
9012 Use char because int might match the return type of a GCC
9013 builtin and then its argument prototype would still apply. */
9014 #ifdef __cplusplus
9015 extern "C"
9016 #endif
9017 char ldexp ();
9019 main ()
9021 return ldexp ();
9023 return 0;
9025 _ACEOF
9026 for ac_lib in '' m; do
9027 if test -z "$ac_lib"; then
9028 ac_res="none required"
9029 else
9030 ac_res=-l$ac_lib
9031 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
9033 if ac_fn_c_try_link "$LINENO"; then :
9034 ac_cv_search_ldexp=$ac_res
9036 rm -f core conftest.err conftest.$ac_objext \
9037 conftest$ac_exeext
9038 if test "${ac_cv_search_ldexp+set}" = set; then :
9039 break
9041 done
9042 if test "${ac_cv_search_ldexp+set}" = set; then :
9044 else
9045 ac_cv_search_ldexp=no
9047 rm conftest.$ac_ext
9048 LIBS=$ac_func_search_save_LIBS
9050 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_ldexp" >&5
9051 $as_echo "$ac_cv_search_ldexp" >&6; }
9052 ac_res=$ac_cv_search_ldexp
9053 if test "$ac_res" != no; then :
9054 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
9058 LDEXP_LIB="$LIBS"
9059 LIBS="$save_LIBS"
9062 # Use <inttypes.h> only if it exists,
9063 # doesn't clash with <sys/types.h>, and declares intmax_t.
9064 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for inttypes.h" >&5
9065 $as_echo_n "checking for inttypes.h... " >&6; }
9066 if test "${gcc_cv_header_inttypes_h+set}" = set; then :
9067 $as_echo_n "(cached) " >&6
9068 else
9069 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9070 /* end confdefs.h. */
9071 #include <sys/types.h>
9072 #include <inttypes.h>
9074 main ()
9076 intmax_t i = -1;
9078 return 0;
9080 _ACEOF
9081 if ac_fn_c_try_compile "$LINENO"; then :
9082 gcc_cv_header_inttypes_h=yes
9083 else
9084 gcc_cv_header_inttypes_h=no
9086 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9089 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_header_inttypes_h" >&5
9090 $as_echo "$gcc_cv_header_inttypes_h" >&6; }
9091 if test $gcc_cv_header_inttypes_h = yes; then
9093 $as_echo "#define HAVE_INTTYPES_H 1" >>confdefs.h
9099 for ac_func in times clock kill getrlimit setrlimit atoll atoq \
9100 sysconf strsignal getrusage nl_langinfo \
9101 gettimeofday mbstowcs wcswidth mmap setlocale \
9102 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
9103 do :
9104 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
9105 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
9106 eval as_val=\$$as_ac_var
9107 if test "x$as_val" = x""yes; then :
9108 cat >>confdefs.h <<_ACEOF
9109 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
9110 _ACEOF
9113 done
9116 if test x$ac_cv_func_mbstowcs = xyes; then
9117 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether mbstowcs works" >&5
9118 $as_echo_n "checking whether mbstowcs works... " >&6; }
9119 if test "${gcc_cv_func_mbstowcs_works+set}" = set; then :
9120 $as_echo_n "(cached) " >&6
9121 else
9122 if test "$cross_compiling" = yes; then :
9123 gcc_cv_func_mbstowcs_works=yes
9124 else
9125 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9126 /* end confdefs.h. */
9127 #include <stdlib.h>
9128 int main()
9130 mbstowcs(0, "", 0);
9131 return 0;
9133 _ACEOF
9134 if ac_fn_c_try_run "$LINENO"; then :
9135 gcc_cv_func_mbstowcs_works=yes
9136 else
9137 gcc_cv_func_mbstowcs_works=no
9139 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
9140 conftest.$ac_objext conftest.beam conftest.$ac_ext
9144 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_func_mbstowcs_works" >&5
9145 $as_echo "$gcc_cv_func_mbstowcs_works" >&6; }
9146 if test x$gcc_cv_func_mbstowcs_works = xyes; then
9148 $as_echo "#define HAVE_WORKING_MBSTOWCS 1" >>confdefs.h
9153 ac_fn_c_check_type "$LINENO" "ssize_t" "ac_cv_type_ssize_t" "$ac_includes_default"
9154 if test "x$ac_cv_type_ssize_t" = x""yes; then :
9156 else
9158 cat >>confdefs.h <<_ACEOF
9159 #define ssize_t int
9160 _ACEOF
9164 ac_fn_c_check_type "$LINENO" "caddr_t" "ac_cv_type_caddr_t" "$ac_includes_default"
9165 if test "x$ac_cv_type_caddr_t" = x""yes; then :
9167 else
9169 cat >>confdefs.h <<_ACEOF
9170 #define caddr_t char *
9171 _ACEOF
9177 ac_fn_c_check_header_preproc "$LINENO" "sys/mman.h" "ac_cv_header_sys_mman_h"
9178 if test "x$ac_cv_header_sys_mman_h" = x""yes; then :
9179 gcc_header_sys_mman_h=yes
9180 else
9181 gcc_header_sys_mman_h=no
9184 ac_fn_c_check_func "$LINENO" "mmap" "ac_cv_func_mmap"
9185 if test "x$ac_cv_func_mmap" = x""yes; then :
9186 gcc_func_mmap=yes
9187 else
9188 gcc_func_mmap=no
9191 if test "$gcc_header_sys_mman_h" != yes \
9192 || test "$gcc_func_mmap" != yes; then
9193 gcc_cv_func_mmap_file=no
9194 gcc_cv_func_mmap_dev_zero=no
9195 gcc_cv_func_mmap_anon=no
9196 else
9197 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether read-only mmap of a plain file works" >&5
9198 $as_echo_n "checking whether read-only mmap of a plain file works... " >&6; }
9199 if test "${gcc_cv_func_mmap_file+set}" = set; then :
9200 $as_echo_n "(cached) " >&6
9201 else
9202 # Add a system to this blacklist if
9203 # mmap(0, stat_size, PROT_READ, MAP_PRIVATE, fd, 0) doesn't return a
9204 # memory area containing the same data that you'd get if you applied
9205 # read() to the same fd. The only system known to have a problem here
9206 # is VMS, where text files have record structure.
9207 case "$host_os" in
9208 *vms* | ultrix*)
9209 gcc_cv_func_mmap_file=no ;;
9211 gcc_cv_func_mmap_file=yes;;
9212 esac
9214 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_func_mmap_file" >&5
9215 $as_echo "$gcc_cv_func_mmap_file" >&6; }
9216 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether mmap from /dev/zero works" >&5
9217 $as_echo_n "checking whether mmap from /dev/zero works... " >&6; }
9218 if test "${gcc_cv_func_mmap_dev_zero+set}" = set; then :
9219 $as_echo_n "(cached) " >&6
9220 else
9221 # Add a system to this blacklist if it has mmap() but /dev/zero
9222 # does not exist, or if mmapping /dev/zero does not give anonymous
9223 # zeroed pages with both the following properties:
9224 # 1. If you map N consecutive pages in with one call, and then
9225 # unmap any subset of those pages, the pages that were not
9226 # explicitly unmapped remain accessible.
9227 # 2. If you map two adjacent blocks of memory and then unmap them
9228 # both at once, they must both go away.
9229 # Systems known to be in this category are Windows (all variants),
9230 # VMS, and Darwin.
9231 case "$host_os" in
9232 *vms* | cygwin* | pe | mingw* | darwin* | ultrix* | hpux10* | hpux11.00)
9233 gcc_cv_func_mmap_dev_zero=no ;;
9235 gcc_cv_func_mmap_dev_zero=yes;;
9236 esac
9238 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_func_mmap_dev_zero" >&5
9239 $as_echo "$gcc_cv_func_mmap_dev_zero" >&6; }
9241 # Unlike /dev/zero, the MAP_ANON(YMOUS) defines can be probed for.
9242 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for MAP_ANON(YMOUS)" >&5
9243 $as_echo_n "checking for MAP_ANON(YMOUS)... " >&6; }
9244 if test "${gcc_cv_decl_map_anon+set}" = set; then :
9245 $as_echo_n "(cached) " >&6
9246 else
9247 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9248 /* end confdefs.h. */
9249 #include <sys/types.h>
9250 #include <sys/mman.h>
9251 #include <unistd.h>
9253 #ifndef MAP_ANONYMOUS
9254 #define MAP_ANONYMOUS MAP_ANON
9255 #endif
9258 main ()
9260 int n = MAP_ANONYMOUS;
9262 return 0;
9264 _ACEOF
9265 if ac_fn_c_try_compile "$LINENO"; then :
9266 gcc_cv_decl_map_anon=yes
9267 else
9268 gcc_cv_decl_map_anon=no
9270 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9272 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_decl_map_anon" >&5
9273 $as_echo "$gcc_cv_decl_map_anon" >&6; }
9275 if test $gcc_cv_decl_map_anon = no; then
9276 gcc_cv_func_mmap_anon=no
9277 else
9278 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether mmap with MAP_ANON(YMOUS) works" >&5
9279 $as_echo_n "checking whether mmap with MAP_ANON(YMOUS) works... " >&6; }
9280 if test "${gcc_cv_func_mmap_anon+set}" = set; then :
9281 $as_echo_n "(cached) " >&6
9282 else
9283 # Add a system to this blacklist if it has mmap() and MAP_ANON or
9284 # MAP_ANONYMOUS, but using mmap(..., MAP_PRIVATE|MAP_ANONYMOUS, -1, 0)
9285 # doesn't give anonymous zeroed pages with the same properties listed
9286 # above for use of /dev/zero.
9287 # Systems known to be in this category are Windows, VMS, and SCO Unix.
9288 case "$host_os" in
9289 *vms* | cygwin* | pe | mingw* | sco* | udk* )
9290 gcc_cv_func_mmap_anon=no ;;
9292 gcc_cv_func_mmap_anon=yes;;
9293 esac
9295 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_func_mmap_anon" >&5
9296 $as_echo "$gcc_cv_func_mmap_anon" >&6; }
9300 if test $gcc_cv_func_mmap_file = yes; then
9302 $as_echo "#define HAVE_MMAP_FILE 1" >>confdefs.h
9305 if test $gcc_cv_func_mmap_dev_zero = yes; then
9307 $as_echo "#define HAVE_MMAP_DEV_ZERO 1" >>confdefs.h
9310 if test $gcc_cv_func_mmap_anon = yes; then
9312 $as_echo "#define HAVE_MMAP_ANON 1" >>confdefs.h
9317 case "${host}" in
9318 *-*-*vms*)
9319 # Under VMS, vfork works very differently than on Unix. The standard test
9320 # won't work, and it isn't easily adaptable. It makes more sense to
9321 # just force it.
9322 ac_cv_func_vfork_works=yes
9324 esac
9325 ac_fn_c_check_type "$LINENO" "pid_t" "ac_cv_type_pid_t" "$ac_includes_default"
9326 if test "x$ac_cv_type_pid_t" = x""yes; then :
9328 else
9330 cat >>confdefs.h <<_ACEOF
9331 #define pid_t int
9332 _ACEOF
9336 for ac_header in vfork.h
9337 do :
9338 ac_fn_c_check_header_preproc "$LINENO" "vfork.h" "ac_cv_header_vfork_h"
9339 if test "x$ac_cv_header_vfork_h" = x""yes; then :
9340 cat >>confdefs.h <<_ACEOF
9341 #define HAVE_VFORK_H 1
9342 _ACEOF
9345 done
9347 for ac_func in fork vfork
9348 do :
9349 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
9350 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
9351 eval as_val=\$$as_ac_var
9352 if test "x$as_val" = x""yes; then :
9353 cat >>confdefs.h <<_ACEOF
9354 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
9355 _ACEOF
9358 done
9360 if test "x$ac_cv_func_fork" = xyes; then
9361 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working fork" >&5
9362 $as_echo_n "checking for working fork... " >&6; }
9363 if test "${ac_cv_func_fork_works+set}" = set; then :
9364 $as_echo_n "(cached) " >&6
9365 else
9366 if test "$cross_compiling" = yes; then :
9367 ac_cv_func_fork_works=cross
9368 else
9369 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9370 /* end confdefs.h. */
9371 $ac_includes_default
9373 main ()
9376 /* By Ruediger Kuhlmann. */
9377 return fork () < 0;
9380 return 0;
9382 _ACEOF
9383 if ac_fn_c_try_run "$LINENO"; then :
9384 ac_cv_func_fork_works=yes
9385 else
9386 ac_cv_func_fork_works=no
9388 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
9389 conftest.$ac_objext conftest.beam conftest.$ac_ext
9393 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_fork_works" >&5
9394 $as_echo "$ac_cv_func_fork_works" >&6; }
9396 else
9397 ac_cv_func_fork_works=$ac_cv_func_fork
9399 if test "x$ac_cv_func_fork_works" = xcross; then
9400 case $host in
9401 *-*-amigaos* | *-*-msdosdjgpp*)
9402 # Override, as these systems have only a dummy fork() stub
9403 ac_cv_func_fork_works=no
9406 ac_cv_func_fork_works=yes
9408 esac
9409 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: result $ac_cv_func_fork_works guessed because of cross compilation" >&5
9410 $as_echo "$as_me: WARNING: result $ac_cv_func_fork_works guessed because of cross compilation" >&2;}
9412 ac_cv_func_vfork_works=$ac_cv_func_vfork
9413 if test "x$ac_cv_func_vfork" = xyes; then
9414 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working vfork" >&5
9415 $as_echo_n "checking for working vfork... " >&6; }
9416 if test "${ac_cv_func_vfork_works+set}" = set; then :
9417 $as_echo_n "(cached) " >&6
9418 else
9419 if test "$cross_compiling" = yes; then :
9420 ac_cv_func_vfork_works=cross
9421 else
9422 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9423 /* end confdefs.h. */
9424 /* Thanks to Paul Eggert for this test. */
9425 $ac_includes_default
9426 #include <sys/wait.h>
9427 #ifdef HAVE_VFORK_H
9428 # include <vfork.h>
9429 #endif
9430 /* On some sparc systems, changes by the child to local and incoming
9431 argument registers are propagated back to the parent. The compiler
9432 is told about this with #include <vfork.h>, but some compilers
9433 (e.g. gcc -O) don't grok <vfork.h>. Test for this by using a
9434 static variable whose address is put into a register that is
9435 clobbered by the vfork. */
9436 static void
9437 #ifdef __cplusplus
9438 sparc_address_test (int arg)
9439 # else
9440 sparc_address_test (arg) int arg;
9441 #endif
9443 static pid_t child;
9444 if (!child) {
9445 child = vfork ();
9446 if (child < 0) {
9447 perror ("vfork");
9448 _exit(2);
9450 if (!child) {
9451 arg = getpid();
9452 write(-1, "", 0);
9453 _exit (arg);
9459 main ()
9461 pid_t parent = getpid ();
9462 pid_t child;
9464 sparc_address_test (0);
9466 child = vfork ();
9468 if (child == 0) {
9469 /* Here is another test for sparc vfork register problems. This
9470 test uses lots of local variables, at least as many local
9471 variables as main has allocated so far including compiler
9472 temporaries. 4 locals are enough for gcc 1.40.3 on a Solaris
9473 4.1.3 sparc, but we use 8 to be safe. A buggy compiler should
9474 reuse the register of parent for one of the local variables,
9475 since it will think that parent can't possibly be used any more
9476 in this routine. Assigning to the local variable will thus
9477 munge parent in the parent process. */
9478 pid_t
9479 p = getpid(), p1 = getpid(), p2 = getpid(), p3 = getpid(),
9480 p4 = getpid(), p5 = getpid(), p6 = getpid(), p7 = getpid();
9481 /* Convince the compiler that p..p7 are live; otherwise, it might
9482 use the same hardware register for all 8 local variables. */
9483 if (p != p1 || p != p2 || p != p3 || p != p4
9484 || p != p5 || p != p6 || p != p7)
9485 _exit(1);
9487 /* On some systems (e.g. IRIX 3.3), vfork doesn't separate parent
9488 from child file descriptors. If the child closes a descriptor
9489 before it execs or exits, this munges the parent's descriptor
9490 as well. Test for this by closing stdout in the child. */
9491 _exit(close(fileno(stdout)) != 0);
9492 } else {
9493 int status;
9494 struct stat st;
9496 while (wait(&status) != child)
9498 return (
9499 /* Was there some problem with vforking? */
9500 child < 0
9502 /* Did the child fail? (This shouldn't happen.) */
9503 || status
9505 /* Did the vfork/compiler bug occur? */
9506 || parent != getpid()
9508 /* Did the file descriptor bug occur? */
9509 || fstat(fileno(stdout), &st) != 0
9513 _ACEOF
9514 if ac_fn_c_try_run "$LINENO"; then :
9515 ac_cv_func_vfork_works=yes
9516 else
9517 ac_cv_func_vfork_works=no
9519 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
9520 conftest.$ac_objext conftest.beam conftest.$ac_ext
9524 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_vfork_works" >&5
9525 $as_echo "$ac_cv_func_vfork_works" >&6; }
9528 if test "x$ac_cv_func_fork_works" = xcross; then
9529 ac_cv_func_vfork_works=$ac_cv_func_vfork
9530 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: result $ac_cv_func_vfork_works guessed because of cross compilation" >&5
9531 $as_echo "$as_me: WARNING: result $ac_cv_func_vfork_works guessed because of cross compilation" >&2;}
9534 if test "x$ac_cv_func_vfork_works" = xyes; then
9536 $as_echo "#define HAVE_WORKING_VFORK 1" >>confdefs.h
9538 else
9540 $as_echo "#define vfork fork" >>confdefs.h
9543 if test "x$ac_cv_func_fork_works" = xyes; then
9545 $as_echo "#define HAVE_WORKING_FORK 1" >>confdefs.h
9550 # g++ on Solaris 10+ defines _XOPEN_SOURCE=600, which exposes a different
9551 # iconv() prototype.
9552 ac_ext=cpp
9553 ac_cpp='$CXXCPP $CPPFLAGS'
9554 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
9555 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
9556 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
9559 if test "X$prefix" = "XNONE"; then
9560 acl_final_prefix="$ac_default_prefix"
9561 else
9562 acl_final_prefix="$prefix"
9564 if test "X$exec_prefix" = "XNONE"; then
9565 acl_final_exec_prefix='${prefix}'
9566 else
9567 acl_final_exec_prefix="$exec_prefix"
9569 acl_save_prefix="$prefix"
9570 prefix="$acl_final_prefix"
9571 eval acl_final_exec_prefix=\"$acl_final_exec_prefix\"
9572 prefix="$acl_save_prefix"
9575 # Check whether --with-gnu-ld was given.
9576 if test "${with_gnu_ld+set}" = set; then :
9577 withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
9578 else
9579 with_gnu_ld=no
9582 # Prepare PATH_SEPARATOR.
9583 # The user is always right.
9584 if test "${PATH_SEPARATOR+set}" != set; then
9585 echo "#! /bin/sh" >conf$$.sh
9586 echo "exit 0" >>conf$$.sh
9587 chmod +x conf$$.sh
9588 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
9589 PATH_SEPARATOR=';'
9590 else
9591 PATH_SEPARATOR=:
9593 rm -f conf$$.sh
9595 ac_prog=ld
9596 if test "$GCC" = yes; then
9597 # Check if gcc -print-prog-name=ld gives a path.
9598 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by GCC" >&5
9599 $as_echo_n "checking for ld used by GCC... " >&6; }
9600 case $host in
9601 *-*-mingw*)
9602 # gcc leaves a trailing carriage return which upsets mingw
9603 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
9605 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
9606 esac
9607 case $ac_prog in
9608 # Accept absolute paths.
9609 [\\/]* | [A-Za-z]:[\\/]*)
9610 re_direlt='/[^/][^/]*/\.\./'
9611 # Canonicalize the path of ld
9612 ac_prog=`echo $ac_prog| sed 's%\\\\%/%g'`
9613 while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
9614 ac_prog=`echo $ac_prog| sed "s%$re_direlt%/%"`
9615 done
9616 test -z "$LD" && LD="$ac_prog"
9619 # If it fails, then pretend we aren't using GCC.
9620 ac_prog=ld
9623 # If it is relative, then search for the first ld in PATH.
9624 with_gnu_ld=unknown
9626 esac
9627 elif test "$with_gnu_ld" = yes; then
9628 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
9629 $as_echo_n "checking for GNU ld... " >&6; }
9630 else
9631 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
9632 $as_echo_n "checking for non-GNU ld... " >&6; }
9634 if test "${acl_cv_path_LD+set}" = set; then :
9635 $as_echo_n "(cached) " >&6
9636 else
9637 if test -z "$LD"; then
9638 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}${PATH_SEPARATOR-:}"
9639 for ac_dir in $PATH; do
9640 test -z "$ac_dir" && ac_dir=.
9641 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
9642 acl_cv_path_LD="$ac_dir/$ac_prog"
9643 # Check to see if the program is GNU ld. I'd rather use --version,
9644 # but apparently some GNU ld's only accept -v.
9645 # Break only if it was the GNU/non-GNU ld that we prefer.
9646 if "$acl_cv_path_LD" -v 2>&1 < /dev/null | egrep '(GNU|with BFD)' > /dev/null; then
9647 test "$with_gnu_ld" != no && break
9648 else
9649 test "$with_gnu_ld" != yes && break
9652 done
9653 IFS="$ac_save_ifs"
9654 else
9655 acl_cv_path_LD="$LD" # Let the user override the test with a path.
9659 LD="$acl_cv_path_LD"
9660 if test -n "$LD"; then
9661 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
9662 $as_echo "$LD" >&6; }
9663 else
9664 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9665 $as_echo "no" >&6; }
9667 test -z "$LD" && as_fn_error "no acceptable ld found in \$PATH" "$LINENO" 5
9668 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
9669 $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
9670 if test "${acl_cv_prog_gnu_ld+set}" = set; then :
9671 $as_echo_n "(cached) " >&6
9672 else
9673 # I'd rather use --version here, but apparently some GNU ld's only accept -v.
9674 if $LD -v 2>&1 </dev/null | egrep '(GNU|with BFD)' 1>&5; then
9675 acl_cv_prog_gnu_ld=yes
9676 else
9677 acl_cv_prog_gnu_ld=no
9680 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $acl_cv_prog_gnu_ld" >&5
9681 $as_echo "$acl_cv_prog_gnu_ld" >&6; }
9682 with_gnu_ld=$acl_cv_prog_gnu_ld
9686 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shared library run path origin" >&5
9687 $as_echo_n "checking for shared library run path origin... " >&6; }
9688 if test "${acl_cv_rpath+set}" = set; then :
9689 $as_echo_n "(cached) " >&6
9690 else
9692 CC="$CC" GCC="$GCC" LDFLAGS="$LDFLAGS" LD="$LD" with_gnu_ld="$with_gnu_ld" \
9693 ${CONFIG_SHELL-/bin/sh} "$ac_aux_dir/config.rpath" "$host" > conftest.sh
9694 . ./conftest.sh
9695 rm -f ./conftest.sh
9696 acl_cv_rpath=done
9699 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $acl_cv_rpath" >&5
9700 $as_echo "$acl_cv_rpath" >&6; }
9701 wl="$acl_cv_wl"
9702 libext="$acl_cv_libext"
9703 shlibext="$acl_cv_shlibext"
9704 hardcode_libdir_flag_spec="$acl_cv_hardcode_libdir_flag_spec"
9705 hardcode_libdir_separator="$acl_cv_hardcode_libdir_separator"
9706 hardcode_direct="$acl_cv_hardcode_direct"
9707 hardcode_minus_L="$acl_cv_hardcode_minus_L"
9708 # Check whether --enable-rpath was given.
9709 if test "${enable_rpath+set}" = set; then :
9710 enableval=$enable_rpath; :
9711 else
9712 enable_rpath=yes
9722 use_additional=yes
9724 acl_save_prefix="$prefix"
9725 prefix="$acl_final_prefix"
9726 acl_save_exec_prefix="$exec_prefix"
9727 exec_prefix="$acl_final_exec_prefix"
9729 eval additional_includedir=\"$includedir\"
9730 eval additional_libdir=\"$libdir\"
9732 exec_prefix="$acl_save_exec_prefix"
9733 prefix="$acl_save_prefix"
9736 # Check whether --with-libiconv-prefix was given.
9737 if test "${with_libiconv_prefix+set}" = set; then :
9738 withval=$with_libiconv_prefix;
9739 if test "X$withval" = "Xno"; then
9740 use_additional=no
9741 else
9742 if test "X$withval" = "X"; then
9744 acl_save_prefix="$prefix"
9745 prefix="$acl_final_prefix"
9746 acl_save_exec_prefix="$exec_prefix"
9747 exec_prefix="$acl_final_exec_prefix"
9749 eval additional_includedir=\"$includedir\"
9750 eval additional_libdir=\"$libdir\"
9752 exec_prefix="$acl_save_exec_prefix"
9753 prefix="$acl_save_prefix"
9755 else
9756 additional_includedir="$withval/include"
9757 additional_libdir="$withval/lib"
9763 LIBICONV=
9764 LTLIBICONV=
9765 INCICONV=
9766 rpathdirs=
9767 ltrpathdirs=
9768 names_already_handled=
9769 names_next_round='iconv '
9770 while test -n "$names_next_round"; do
9771 names_this_round="$names_next_round"
9772 names_next_round=
9773 for name in $names_this_round; do
9774 already_handled=
9775 for n in $names_already_handled; do
9776 if test "$n" = "$name"; then
9777 already_handled=yes
9778 break
9780 done
9781 if test -z "$already_handled"; then
9782 names_already_handled="$names_already_handled $name"
9783 uppername=`echo "$name" | sed -e 'y|abcdefghijklmnopqrstuvwxyz./-|ABCDEFGHIJKLMNOPQRSTUVWXYZ___|'`
9784 eval value=\"\$HAVE_LIB$uppername\"
9785 if test -n "$value"; then
9786 if test "$value" = yes; then
9787 eval value=\"\$LIB$uppername\"
9788 test -z "$value" || LIBICONV="${LIBICONV}${LIBICONV:+ }$value"
9789 eval value=\"\$LTLIB$uppername\"
9790 test -z "$value" || LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }$value"
9791 else
9794 else
9795 found_dir=
9796 found_la=
9797 found_so=
9798 found_a=
9799 if test $use_additional = yes; then
9800 if test -n "$shlibext" && test -f "$additional_libdir/lib$name.$shlibext"; then
9801 found_dir="$additional_libdir"
9802 found_so="$additional_libdir/lib$name.$shlibext"
9803 if test -f "$additional_libdir/lib$name.la"; then
9804 found_la="$additional_libdir/lib$name.la"
9806 else
9807 if test -f "$additional_libdir/lib$name.$libext"; then
9808 found_dir="$additional_libdir"
9809 found_a="$additional_libdir/lib$name.$libext"
9810 if test -f "$additional_libdir/lib$name.la"; then
9811 found_la="$additional_libdir/lib$name.la"
9816 if test "X$found_dir" = "X"; then
9817 for x in $LDFLAGS $LTLIBICONV; do
9819 acl_save_prefix="$prefix"
9820 prefix="$acl_final_prefix"
9821 acl_save_exec_prefix="$exec_prefix"
9822 exec_prefix="$acl_final_exec_prefix"
9823 eval x=\"$x\"
9824 exec_prefix="$acl_save_exec_prefix"
9825 prefix="$acl_save_prefix"
9827 case "$x" in
9828 -L*)
9829 dir=`echo "X$x" | sed -e 's/^X-L//'`
9830 if test -n "$shlibext" && test -f "$dir/lib$name.$shlibext"; then
9831 found_dir="$dir"
9832 found_so="$dir/lib$name.$shlibext"
9833 if test -f "$dir/lib$name.la"; then
9834 found_la="$dir/lib$name.la"
9836 else
9837 if test -f "$dir/lib$name.$libext"; then
9838 found_dir="$dir"
9839 found_a="$dir/lib$name.$libext"
9840 if test -f "$dir/lib$name.la"; then
9841 found_la="$dir/lib$name.la"
9846 esac
9847 if test "X$found_dir" != "X"; then
9848 break
9850 done
9852 if test "X$found_dir" != "X"; then
9853 LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-L$found_dir -l$name"
9854 if test "X$found_so" != "X"; then
9855 if test "$enable_rpath" = no || test "X$found_dir" = "X/usr/lib"; then
9856 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
9857 else
9858 haveit=
9859 for x in $ltrpathdirs; do
9860 if test "X$x" = "X$found_dir"; then
9861 haveit=yes
9862 break
9864 done
9865 if test -z "$haveit"; then
9866 ltrpathdirs="$ltrpathdirs $found_dir"
9868 if test "$hardcode_direct" = yes; then
9869 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
9870 else
9871 if test -n "$hardcode_libdir_flag_spec" && test "$hardcode_minus_L" = no; then
9872 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
9873 haveit=
9874 for x in $rpathdirs; do
9875 if test "X$x" = "X$found_dir"; then
9876 haveit=yes
9877 break
9879 done
9880 if test -z "$haveit"; then
9881 rpathdirs="$rpathdirs $found_dir"
9883 else
9884 haveit=
9885 for x in $LDFLAGS $LIBICONV; do
9887 acl_save_prefix="$prefix"
9888 prefix="$acl_final_prefix"
9889 acl_save_exec_prefix="$exec_prefix"
9890 exec_prefix="$acl_final_exec_prefix"
9891 eval x=\"$x\"
9892 exec_prefix="$acl_save_exec_prefix"
9893 prefix="$acl_save_prefix"
9895 if test "X$x" = "X-L$found_dir"; then
9896 haveit=yes
9897 break
9899 done
9900 if test -z "$haveit"; then
9901 LIBICONV="${LIBICONV}${LIBICONV:+ }-L$found_dir"
9903 if test "$hardcode_minus_L" != no; then
9904 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
9905 else
9906 LIBICONV="${LIBICONV}${LIBICONV:+ }-l$name"
9911 else
9912 if test "X$found_a" != "X"; then
9913 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_a"
9914 else
9915 LIBICONV="${LIBICONV}${LIBICONV:+ }-L$found_dir -l$name"
9918 additional_includedir=
9919 case "$found_dir" in
9920 */lib | */lib/)
9921 basedir=`echo "X$found_dir" | sed -e 's,^X,,' -e 's,/lib/*$,,'`
9922 additional_includedir="$basedir/include"
9924 esac
9925 if test "X$additional_includedir" != "X"; then
9926 if test "X$additional_includedir" != "X/usr/include"; then
9927 haveit=
9928 if test "X$additional_includedir" = "X/usr/local/include"; then
9929 if test -n "$GCC"; then
9930 case $host_os in
9931 linux*) haveit=yes;;
9932 esac
9935 if test -z "$haveit"; then
9936 for x in $CPPFLAGS $INCICONV; do
9938 acl_save_prefix="$prefix"
9939 prefix="$acl_final_prefix"
9940 acl_save_exec_prefix="$exec_prefix"
9941 exec_prefix="$acl_final_exec_prefix"
9942 eval x=\"$x\"
9943 exec_prefix="$acl_save_exec_prefix"
9944 prefix="$acl_save_prefix"
9946 if test "X$x" = "X-I$additional_includedir"; then
9947 haveit=yes
9948 break
9950 done
9951 if test -z "$haveit"; then
9952 if test -d "$additional_includedir"; then
9953 INCICONV="${INCICONV}${INCICONV:+ }-I$additional_includedir"
9959 if test -n "$found_la"; then
9960 save_libdir="$libdir"
9961 case "$found_la" in
9962 */* | *\\*) . "$found_la" ;;
9963 *) . "./$found_la" ;;
9964 esac
9965 libdir="$save_libdir"
9966 for dep in $dependency_libs; do
9967 case "$dep" in
9968 -L*)
9969 additional_libdir=`echo "X$dep" | sed -e 's/^X-L//'`
9970 if test "X$additional_libdir" != "X/usr/lib"; then
9971 haveit=
9972 if test "X$additional_libdir" = "X/usr/local/lib"; then
9973 if test -n "$GCC"; then
9974 case $host_os in
9975 linux*) haveit=yes;;
9976 esac
9979 if test -z "$haveit"; then
9980 haveit=
9981 for x in $LDFLAGS $LIBICONV; do
9983 acl_save_prefix="$prefix"
9984 prefix="$acl_final_prefix"
9985 acl_save_exec_prefix="$exec_prefix"
9986 exec_prefix="$acl_final_exec_prefix"
9987 eval x=\"$x\"
9988 exec_prefix="$acl_save_exec_prefix"
9989 prefix="$acl_save_prefix"
9991 if test "X$x" = "X-L$additional_libdir"; then
9992 haveit=yes
9993 break
9995 done
9996 if test -z "$haveit"; then
9997 if test -d "$additional_libdir"; then
9998 LIBICONV="${LIBICONV}${LIBICONV:+ }-L$additional_libdir"
10001 haveit=
10002 for x in $LDFLAGS $LTLIBICONV; do
10004 acl_save_prefix="$prefix"
10005 prefix="$acl_final_prefix"
10006 acl_save_exec_prefix="$exec_prefix"
10007 exec_prefix="$acl_final_exec_prefix"
10008 eval x=\"$x\"
10009 exec_prefix="$acl_save_exec_prefix"
10010 prefix="$acl_save_prefix"
10012 if test "X$x" = "X-L$additional_libdir"; then
10013 haveit=yes
10014 break
10016 done
10017 if test -z "$haveit"; then
10018 if test -d "$additional_libdir"; then
10019 LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-L$additional_libdir"
10025 -R*)
10026 dir=`echo "X$dep" | sed -e 's/^X-R//'`
10027 if test "$enable_rpath" != no; then
10028 haveit=
10029 for x in $rpathdirs; do
10030 if test "X$x" = "X$dir"; then
10031 haveit=yes
10032 break
10034 done
10035 if test -z "$haveit"; then
10036 rpathdirs="$rpathdirs $dir"
10038 haveit=
10039 for x in $ltrpathdirs; do
10040 if test "X$x" = "X$dir"; then
10041 haveit=yes
10042 break
10044 done
10045 if test -z "$haveit"; then
10046 ltrpathdirs="$ltrpathdirs $dir"
10050 -l*)
10051 names_next_round="$names_next_round "`echo "X$dep" | sed -e 's/^X-l//'`
10053 *.la)
10054 names_next_round="$names_next_round "`echo "X$dep" | sed -e 's,^X.*/,,' -e 's,^lib,,' -e 's,\.la$,,'`
10057 LIBICONV="${LIBICONV}${LIBICONV:+ }$dep"
10058 LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }$dep"
10060 esac
10061 done
10063 else
10064 LIBICONV="${LIBICONV}${LIBICONV:+ }-l$name"
10065 LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-l$name"
10069 done
10070 done
10071 if test "X$rpathdirs" != "X"; then
10072 if test -n "$hardcode_libdir_separator"; then
10073 alldirs=
10074 for found_dir in $rpathdirs; do
10075 alldirs="${alldirs}${alldirs:+$hardcode_libdir_separator}$found_dir"
10076 done
10077 acl_save_libdir="$libdir"
10078 libdir="$alldirs"
10079 eval flag=\"$hardcode_libdir_flag_spec\"
10080 libdir="$acl_save_libdir"
10081 LIBICONV="${LIBICONV}${LIBICONV:+ }$flag"
10082 else
10083 for found_dir in $rpathdirs; do
10084 acl_save_libdir="$libdir"
10085 libdir="$found_dir"
10086 eval flag=\"$hardcode_libdir_flag_spec\"
10087 libdir="$acl_save_libdir"
10088 LIBICONV="${LIBICONV}${LIBICONV:+ }$flag"
10089 done
10092 if test "X$ltrpathdirs" != "X"; then
10093 for found_dir in $ltrpathdirs; do
10094 LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-R$found_dir"
10095 done
10104 am_save_CPPFLAGS="$CPPFLAGS"
10106 for element in $INCICONV; do
10107 haveit=
10108 for x in $CPPFLAGS; do
10110 acl_save_prefix="$prefix"
10111 prefix="$acl_final_prefix"
10112 acl_save_exec_prefix="$exec_prefix"
10113 exec_prefix="$acl_final_exec_prefix"
10114 eval x=\"$x\"
10115 exec_prefix="$acl_save_exec_prefix"
10116 prefix="$acl_save_prefix"
10118 if test "X$x" = "X$element"; then
10119 haveit=yes
10120 break
10122 done
10123 if test -z "$haveit"; then
10124 CPPFLAGS="${CPPFLAGS}${CPPFLAGS:+ }$element"
10126 done
10129 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for iconv" >&5
10130 $as_echo_n "checking for iconv... " >&6; }
10131 if test "${am_cv_func_iconv+set}" = set; then :
10132 $as_echo_n "(cached) " >&6
10133 else
10135 am_cv_func_iconv="no, consider installing GNU libiconv"
10136 am_cv_lib_iconv=no
10137 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10138 /* end confdefs.h. */
10139 #include <stdlib.h>
10140 #include <iconv.h>
10142 main ()
10144 iconv_t cd = iconv_open("","");
10145 iconv(cd,NULL,NULL,NULL,NULL);
10146 iconv_close(cd);
10148 return 0;
10150 _ACEOF
10151 if ac_fn_cxx_try_link "$LINENO"; then :
10152 am_cv_func_iconv=yes
10154 rm -f core conftest.err conftest.$ac_objext \
10155 conftest$ac_exeext conftest.$ac_ext
10156 if test "$am_cv_func_iconv" != yes; then
10157 am_save_LIBS="$LIBS"
10158 LIBS="$LIBS $LIBICONV"
10159 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10160 /* end confdefs.h. */
10161 #include <stdlib.h>
10162 #include <iconv.h>
10164 main ()
10166 iconv_t cd = iconv_open("","");
10167 iconv(cd,NULL,NULL,NULL,NULL);
10168 iconv_close(cd);
10170 return 0;
10172 _ACEOF
10173 if ac_fn_cxx_try_link "$LINENO"; then :
10174 am_cv_lib_iconv=yes
10175 am_cv_func_iconv=yes
10177 rm -f core conftest.err conftest.$ac_objext \
10178 conftest$ac_exeext conftest.$ac_ext
10179 LIBS="$am_save_LIBS"
10183 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_func_iconv" >&5
10184 $as_echo "$am_cv_func_iconv" >&6; }
10185 if test "$am_cv_func_iconv" = yes; then
10187 $as_echo "#define HAVE_ICONV 1" >>confdefs.h
10190 if test "$am_cv_lib_iconv" = yes; then
10191 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to link with libiconv" >&5
10192 $as_echo_n "checking how to link with libiconv... " >&6; }
10193 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIBICONV" >&5
10194 $as_echo "$LIBICONV" >&6; }
10195 else
10196 CPPFLAGS="$am_save_CPPFLAGS"
10197 LIBICONV=
10198 LTLIBICONV=
10203 if test "$am_cv_func_iconv" = yes; then
10204 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for iconv declaration" >&5
10205 $as_echo_n "checking for iconv declaration... " >&6; }
10206 if test "${am_cv_proto_iconv+set}" = set; then :
10207 $as_echo_n "(cached) " >&6
10208 else
10210 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10211 /* end confdefs.h. */
10213 #include <stdlib.h>
10214 #include <iconv.h>
10215 extern
10216 #ifdef __cplusplus
10218 #endif
10219 #if defined(__STDC__) || defined(__cplusplus)
10220 size_t iconv (iconv_t cd, char * *inbuf, size_t *inbytesleft, char * *outbuf, size_t *outbytesleft);
10221 #else
10222 size_t iconv();
10223 #endif
10226 main ()
10230 return 0;
10232 _ACEOF
10233 if ac_fn_cxx_try_compile "$LINENO"; then :
10234 am_cv_proto_iconv_arg1=""
10235 else
10236 am_cv_proto_iconv_arg1="const"
10238 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10239 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);"
10242 am_cv_proto_iconv=`echo "$am_cv_proto_iconv" | tr -s ' ' | sed -e 's/( /(/'`
10243 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${ac_t:-
10244 }$am_cv_proto_iconv" >&5
10245 $as_echo "${ac_t:-
10246 }$am_cv_proto_iconv" >&6; }
10248 cat >>confdefs.h <<_ACEOF
10249 #define ICONV_CONST $am_cv_proto_iconv_arg1
10250 _ACEOF
10254 ac_ext=c
10255 ac_cpp='$CPP $CPPFLAGS'
10256 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
10257 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
10258 ac_compiler_gnu=$ac_cv_c_compiler_gnu
10261 # Until we have in-tree GNU iconv:
10262 LIBICONV_DEP=
10266 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for LC_MESSAGES" >&5
10267 $as_echo_n "checking for LC_MESSAGES... " >&6; }
10268 if test "${am_cv_val_LC_MESSAGES+set}" = set; then :
10269 $as_echo_n "(cached) " >&6
10270 else
10271 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10272 /* end confdefs.h. */
10273 #include <locale.h>
10275 main ()
10277 return LC_MESSAGES
10279 return 0;
10281 _ACEOF
10282 if ac_fn_c_try_link "$LINENO"; then :
10283 am_cv_val_LC_MESSAGES=yes
10284 else
10285 am_cv_val_LC_MESSAGES=no
10287 rm -f core conftest.err conftest.$ac_objext \
10288 conftest$ac_exeext conftest.$ac_ext
10290 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_val_LC_MESSAGES" >&5
10291 $as_echo "$am_cv_val_LC_MESSAGES" >&6; }
10292 if test $am_cv_val_LC_MESSAGES = yes; then
10294 $as_echo "#define HAVE_LC_MESSAGES 1" >>confdefs.h
10300 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for nl_langinfo and CODESET" >&5
10301 $as_echo_n "checking for nl_langinfo and CODESET... " >&6; }
10302 if test "${am_cv_langinfo_codeset+set}" = set; then :
10303 $as_echo_n "(cached) " >&6
10304 else
10305 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10306 /* end confdefs.h. */
10307 #include <langinfo.h>
10309 main ()
10311 char* cs = nl_langinfo(CODESET);
10313 return 0;
10315 _ACEOF
10316 if ac_fn_c_try_link "$LINENO"; then :
10317 am_cv_langinfo_codeset=yes
10318 else
10319 am_cv_langinfo_codeset=no
10321 rm -f core conftest.err conftest.$ac_objext \
10322 conftest$ac_exeext conftest.$ac_ext
10325 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_langinfo_codeset" >&5
10326 $as_echo "$am_cv_langinfo_codeset" >&6; }
10327 if test $am_cv_langinfo_codeset = yes; then
10329 $as_echo "#define HAVE_LANGINFO_CODESET 1" >>confdefs.h
10334 # We will need to find libiberty.h and ansidecl.h
10335 saved_CFLAGS="$CFLAGS"
10336 CFLAGS="$CFLAGS -I${srcdir} -I${srcdir}/../include $GMPINC"
10337 saved_CXXFLAGS="$CXXFLAGS"
10338 CXXFLAGS="$CXXFLAGS -I${srcdir} -I${srcdir}/../include $GMPINC"
10339 for ac_func in getenv atol asprintf sbrk abort atof getcwd getwd \
10340 strsignal strstr stpcpy strverscmp \
10341 errno snprintf vsnprintf vasprintf malloc realloc calloc \
10342 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
10344 ac_tr_decl=`$as_echo "HAVE_DECL_$ac_func" | $as_tr_cpp`
10345 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $ac_func is declared" >&5
10346 $as_echo_n "checking whether $ac_func is declared... " >&6; }
10347 if { as_var=gcc_cv_have_decl_$ac_func; eval "test \"\${$as_var+set}\" = set"; }; then :
10348 $as_echo_n "(cached) " >&6
10349 else
10350 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10351 /* end confdefs.h. */
10352 #undef $ac_tr_decl
10353 #define $ac_tr_decl 1
10355 #include "ansidecl.h"
10356 #include "system.h"
10359 main ()
10361 #ifndef $ac_func
10362 char *(*pfn) = (char *(*)) $ac_func ;
10363 #endif
10365 return 0;
10367 _ACEOF
10368 if ac_fn_c_try_compile "$LINENO"; then :
10369 eval "gcc_cv_have_decl_$ac_func=yes"
10370 else
10371 eval "gcc_cv_have_decl_$ac_func=no"
10373 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10376 if eval "test \"`echo '$gcc_cv_have_decl_'$ac_func`\" = yes"; then
10377 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
10378 $as_echo "yes" >&6; } ; cat >>confdefs.h <<_ACEOF
10379 #define $ac_tr_decl 1
10380 _ACEOF
10382 else
10383 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10384 $as_echo "no" >&6; } ; cat >>confdefs.h <<_ACEOF
10385 #define $ac_tr_decl 0
10386 _ACEOF
10390 done
10393 for ac_func in getrlimit setrlimit getrusage
10395 ac_tr_decl=`$as_echo "HAVE_DECL_$ac_func" | $as_tr_cpp`
10396 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $ac_func is declared" >&5
10397 $as_echo_n "checking whether $ac_func is declared... " >&6; }
10398 if { as_var=gcc_cv_have_decl_$ac_func; eval "test \"\${$as_var+set}\" = set"; }; then :
10399 $as_echo_n "(cached) " >&6
10400 else
10401 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10402 /* end confdefs.h. */
10403 #undef $ac_tr_decl
10404 #define $ac_tr_decl 1
10406 #include "ansidecl.h"
10407 #include "system.h"
10408 #ifdef HAVE_SYS_RESOURCE_H
10409 #include <sys/resource.h>
10410 #endif
10414 main ()
10416 #ifndef $ac_func
10417 char *(*pfn) = (char *(*)) $ac_func ;
10418 #endif
10420 return 0;
10422 _ACEOF
10423 if ac_fn_c_try_compile "$LINENO"; then :
10424 eval "gcc_cv_have_decl_$ac_func=yes"
10425 else
10426 eval "gcc_cv_have_decl_$ac_func=no"
10428 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10431 if eval "test \"`echo '$gcc_cv_have_decl_'$ac_func`\" = yes"; then
10432 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
10433 $as_echo "yes" >&6; } ; cat >>confdefs.h <<_ACEOF
10434 #define $ac_tr_decl 1
10435 _ACEOF
10437 else
10438 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10439 $as_echo "no" >&6; } ; cat >>confdefs.h <<_ACEOF
10440 #define $ac_tr_decl 0
10441 _ACEOF
10445 done
10448 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10449 /* end confdefs.h. */
10451 #include "ansidecl.h"
10452 #include "system.h"
10453 #ifdef HAVE_SYS_RESOURCE_H
10454 #include <sys/resource.h>
10455 #endif
10458 main ()
10460 rlim_t l = 0;
10462 return 0;
10464 _ACEOF
10465 if ac_fn_c_try_compile "$LINENO"; then :
10467 else
10469 $as_echo "#define rlim_t long" >>confdefs.h
10472 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10474 # On AIX 5.2, <ldfcn.h> conflicts with <fcntl.h>, as both define incompatible
10475 # FREAD and FWRITE macros. Fortunately, for GCC's single usage of ldgetname
10476 # in collect2.c, <fcntl.h> isn't visible, but the configure test below needs
10477 # to undef these macros to get the correct value for HAVE_DECL_LDGETNAME.
10478 for ac_func in ldgetname
10480 ac_tr_decl=`$as_echo "HAVE_DECL_$ac_func" | $as_tr_cpp`
10481 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $ac_func is declared" >&5
10482 $as_echo_n "checking whether $ac_func is declared... " >&6; }
10483 if { as_var=gcc_cv_have_decl_$ac_func; eval "test \"\${$as_var+set}\" = set"; }; then :
10484 $as_echo_n "(cached) " >&6
10485 else
10486 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10487 /* end confdefs.h. */
10488 #undef $ac_tr_decl
10489 #define $ac_tr_decl 1
10491 #include "ansidecl.h"
10492 #include "system.h"
10493 #ifdef HAVE_LDFCN_H
10494 #undef FREAD
10495 #undef FWRITE
10496 #include <ldfcn.h>
10497 #endif
10501 main ()
10503 #ifndef $ac_func
10504 char *(*pfn) = (char *(*)) $ac_func ;
10505 #endif
10507 return 0;
10509 _ACEOF
10510 if ac_fn_c_try_compile "$LINENO"; then :
10511 eval "gcc_cv_have_decl_$ac_func=yes"
10512 else
10513 eval "gcc_cv_have_decl_$ac_func=no"
10515 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10518 if eval "test \"`echo '$gcc_cv_have_decl_'$ac_func`\" = yes"; then
10519 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
10520 $as_echo "yes" >&6; } ; cat >>confdefs.h <<_ACEOF
10521 #define $ac_tr_decl 1
10522 _ACEOF
10524 else
10525 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10526 $as_echo "no" >&6; } ; cat >>confdefs.h <<_ACEOF
10527 #define $ac_tr_decl 0
10528 _ACEOF
10532 done
10535 for ac_func in times
10537 ac_tr_decl=`$as_echo "HAVE_DECL_$ac_func" | $as_tr_cpp`
10538 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $ac_func is declared" >&5
10539 $as_echo_n "checking whether $ac_func is declared... " >&6; }
10540 if { as_var=gcc_cv_have_decl_$ac_func; eval "test \"\${$as_var+set}\" = set"; }; then :
10541 $as_echo_n "(cached) " >&6
10542 else
10543 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10544 /* end confdefs.h. */
10545 #undef $ac_tr_decl
10546 #define $ac_tr_decl 1
10548 #include "ansidecl.h"
10549 #include "system.h"
10550 #ifdef HAVE_SYS_TIMES_H
10551 #include <sys/times.h>
10552 #endif
10556 main ()
10558 #ifndef $ac_func
10559 char *(*pfn) = (char *(*)) $ac_func ;
10560 #endif
10562 return 0;
10564 _ACEOF
10565 if ac_fn_c_try_compile "$LINENO"; then :
10566 eval "gcc_cv_have_decl_$ac_func=yes"
10567 else
10568 eval "gcc_cv_have_decl_$ac_func=no"
10570 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10573 if eval "test \"`echo '$gcc_cv_have_decl_'$ac_func`\" = yes"; then
10574 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
10575 $as_echo "yes" >&6; } ; cat >>confdefs.h <<_ACEOF
10576 #define $ac_tr_decl 1
10577 _ACEOF
10579 else
10580 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10581 $as_echo "no" >&6; } ; cat >>confdefs.h <<_ACEOF
10582 #define $ac_tr_decl 0
10583 _ACEOF
10587 done
10590 for ac_func in sigaltstack
10592 ac_tr_decl=`$as_echo "HAVE_DECL_$ac_func" | $as_tr_cpp`
10593 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $ac_func is declared" >&5
10594 $as_echo_n "checking whether $ac_func is declared... " >&6; }
10595 if { as_var=gcc_cv_have_decl_$ac_func; eval "test \"\${$as_var+set}\" = set"; }; then :
10596 $as_echo_n "(cached) " >&6
10597 else
10598 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10599 /* end confdefs.h. */
10600 #undef $ac_tr_decl
10601 #define $ac_tr_decl 1
10603 #include "ansidecl.h"
10604 #include "system.h"
10605 #include <signal.h>
10609 main ()
10611 #ifndef $ac_func
10612 char *(*pfn) = (char *(*)) $ac_func ;
10613 #endif
10615 return 0;
10617 _ACEOF
10618 if ac_fn_c_try_compile "$LINENO"; then :
10619 eval "gcc_cv_have_decl_$ac_func=yes"
10620 else
10621 eval "gcc_cv_have_decl_$ac_func=no"
10623 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10626 if eval "test \"`echo '$gcc_cv_have_decl_'$ac_func`\" = yes"; then
10627 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
10628 $as_echo "yes" >&6; } ; cat >>confdefs.h <<_ACEOF
10629 #define $ac_tr_decl 1
10630 _ACEOF
10632 else
10633 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10634 $as_echo "no" >&6; } ; cat >>confdefs.h <<_ACEOF
10635 #define $ac_tr_decl 0
10636 _ACEOF
10640 done
10643 # g++ on Solaris 10+ defines _XOPEN_SOURCE=600, which hides the madvise()
10644 # prototype.
10645 ac_ext=cpp
10646 ac_cpp='$CXXCPP $CPPFLAGS'
10647 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
10648 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
10649 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
10651 for ac_func in madvise
10653 ac_tr_decl=`$as_echo "HAVE_DECL_$ac_func" | $as_tr_cpp`
10654 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $ac_func is declared" >&5
10655 $as_echo_n "checking whether $ac_func is declared... " >&6; }
10656 if { as_var=gcc_cv_have_decl_$ac_func; eval "test \"\${$as_var+set}\" = set"; }; then :
10657 $as_echo_n "(cached) " >&6
10658 else
10659 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10660 /* end confdefs.h. */
10661 #undef $ac_tr_decl
10662 #define $ac_tr_decl 1
10664 #include "ansidecl.h"
10665 #include "system.h"
10669 main ()
10671 #ifndef $ac_func
10672 char *(*pfn) = (char *(*)) $ac_func ;
10673 #endif
10675 return 0;
10677 _ACEOF
10678 if ac_fn_cxx_try_compile "$LINENO"; then :
10679 eval "gcc_cv_have_decl_$ac_func=yes"
10680 else
10681 eval "gcc_cv_have_decl_$ac_func=no"
10683 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10686 if eval "test \"`echo '$gcc_cv_have_decl_'$ac_func`\" = yes"; then
10687 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
10688 $as_echo "yes" >&6; } ; cat >>confdefs.h <<_ACEOF
10689 #define $ac_tr_decl 1
10690 _ACEOF
10692 else
10693 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10694 $as_echo "no" >&6; } ; cat >>confdefs.h <<_ACEOF
10695 #define $ac_tr_decl 0
10696 _ACEOF
10700 done
10702 ac_ext=c
10703 ac_cpp='$CPP $CPPFLAGS'
10704 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
10705 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
10706 ac_compiler_gnu=$ac_cv_c_compiler_gnu
10709 # More time-related stuff.
10710 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for struct tms" >&5
10711 $as_echo_n "checking for struct tms... " >&6; }
10712 if test "${ac_cv_struct_tms+set}" = set; then :
10713 $as_echo_n "(cached) " >&6
10714 else
10716 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10717 /* end confdefs.h. */
10719 #include "ansidecl.h"
10720 #include "system.h"
10721 #ifdef HAVE_SYS_TIMES_H
10722 #include <sys/times.h>
10723 #endif
10726 main ()
10728 struct tms tms;
10730 return 0;
10732 _ACEOF
10733 if ac_fn_c_try_compile "$LINENO"; then :
10734 ac_cv_struct_tms=yes
10735 else
10736 ac_cv_struct_tms=no
10738 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10740 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_struct_tms" >&5
10741 $as_echo "$ac_cv_struct_tms" >&6; }
10742 if test $ac_cv_struct_tms = yes; then
10744 $as_echo "#define HAVE_STRUCT_TMS 1" >>confdefs.h
10748 # use gcc_cv_* here because this doesn't match the behavior of AC_CHECK_TYPE.
10749 # revisit after autoconf 2.50.
10750 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for clock_t" >&5
10751 $as_echo_n "checking for clock_t... " >&6; }
10752 if test "${gcc_cv_type_clock_t+set}" = set; then :
10753 $as_echo_n "(cached) " >&6
10754 else
10756 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10757 /* end confdefs.h. */
10759 #include "ansidecl.h"
10760 #include "system.h"
10763 main ()
10765 clock_t x;
10767 return 0;
10769 _ACEOF
10770 if ac_fn_c_try_compile "$LINENO"; then :
10771 gcc_cv_type_clock_t=yes
10772 else
10773 gcc_cv_type_clock_t=no
10775 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10777 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_type_clock_t" >&5
10778 $as_echo "$gcc_cv_type_clock_t" >&6; }
10779 if test $gcc_cv_type_clock_t = yes; then
10781 $as_echo "#define HAVE_CLOCK_T 1" >>confdefs.h
10785 # Check if F_SETLKW is supported by fcntl.
10786 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for F_SETLKW" >&5
10787 $as_echo_n "checking for F_SETLKW... " >&6; }
10788 if test "${ac_cv_f_setlkw+set}" = set; then :
10789 $as_echo_n "(cached) " >&6
10790 else
10792 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10793 /* end confdefs.h. */
10795 #include <fcntl.h>
10797 main ()
10800 struct flock fl;
10801 fl.l_whence = 0;
10802 fl.l_start = 0;
10803 fl.l_len = 0;
10804 fl.l_pid = 0;
10805 return fcntl (1, F_SETLKW, &fl);
10807 return 0;
10809 _ACEOF
10810 if ac_fn_c_try_compile "$LINENO"; then :
10811 ac_cv_f_setlkw=yes
10812 else
10813 ac_cv_f_setlkw=no
10815 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10817 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_f_setlkw" >&5
10818 $as_echo "$ac_cv_f_setlkw" >&6; }
10819 if test $ac_cv_f_setlkw = yes; then
10821 $as_echo "#define HOST_HAS_F_SETLKW 1" >>confdefs.h
10825 # Restore CFLAGS, CXXFLAGS from before the gcc_AC_NEED_DECLARATIONS tests.
10826 CFLAGS="$saved_CFLAGS"
10827 CXXFLAGS="$saved_CXXFLAGS"
10829 # mkdir takes a single argument on some systems.
10830 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if mkdir takes one argument" >&5
10831 $as_echo_n "checking if mkdir takes one argument... " >&6; }
10832 if test "${gcc_cv_mkdir_takes_one_arg+set}" = set; then :
10833 $as_echo_n "(cached) " >&6
10834 else
10835 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10836 /* end confdefs.h. */
10838 #include <sys/types.h>
10839 #ifdef HAVE_SYS_STAT_H
10840 # include <sys/stat.h>
10841 #endif
10842 #ifdef HAVE_UNISTD_H
10843 # include <unistd.h>
10844 #endif
10845 #ifdef HAVE_DIRECT_H
10846 # include <direct.h>
10847 #endif
10849 main ()
10851 mkdir ("foo", 0);
10853 return 0;
10855 _ACEOF
10856 if ac_fn_c_try_compile "$LINENO"; then :
10857 gcc_cv_mkdir_takes_one_arg=no
10858 else
10859 gcc_cv_mkdir_takes_one_arg=yes
10861 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10863 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_mkdir_takes_one_arg" >&5
10864 $as_echo "$gcc_cv_mkdir_takes_one_arg" >&6; }
10865 if test $gcc_cv_mkdir_takes_one_arg = yes ; then
10867 $as_echo "#define MKDIR_TAKES_ONE_ARG 1" >>confdefs.h
10872 # File extensions
10873 manext='.1'
10874 objext='.o'
10878 # With Setjmp/Longjmp based exception handling.
10879 # Check whether --enable-sjlj-exceptions was given.
10880 if test "${enable_sjlj_exceptions+set}" = set; then :
10881 enableval=$enable_sjlj_exceptions; case $target in
10882 *-*-hpux10*)
10883 if test $enableval != yes; then
10884 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: dwarf2 exceptions not supported, sjlj exceptions forced" >&5
10885 $as_echo "$as_me: WARNING: dwarf2 exceptions not supported, sjlj exceptions forced" >&2;}
10886 enableval=yes
10889 esac
10890 force_sjlj_exceptions=yes
10891 else
10892 case $target in
10893 *-*-hpux10*)
10894 force_sjlj_exceptions=yes
10895 enableval=yes
10898 force_sjlj_exceptions=no
10900 esac
10903 if test $force_sjlj_exceptions = yes; then
10904 sjlj=`if test $enableval = yes; then echo 1; else echo 0; fi`
10906 cat >>confdefs.h <<_ACEOF
10907 #define CONFIG_SJLJ_EXCEPTIONS $sjlj
10908 _ACEOF
10912 # --------------------------------------------------------
10913 # Build, host, and target specific configuration fragments
10914 # --------------------------------------------------------
10916 # Collect build-machine-specific information.
10917 . ${srcdir}/config.build
10919 # Collect host-machine-specific information.
10920 . ${srcdir}/config.host
10922 target_gtfiles=
10924 # Collect target-machine-specific information.
10925 . ${srcdir}/config.gcc
10927 extra_objs="${host_extra_objs} ${extra_objs}"
10928 extra_gcc_objs="${host_extra_gcc_objs} ${extra_gcc_objs}"
10930 # Default the target-machine variables that were not explicitly set.
10931 if test x"$tm_file" = x
10932 then tm_file=$cpu_type/$cpu_type.h; fi
10934 if test x"$extra_headers" = x
10935 then extra_headers=; fi
10937 if test x$md_file = x
10938 then md_file=$cpu_type/$cpu_type.md; fi
10940 if test x$out_file = x
10941 then out_file=$cpu_type/$cpu_type.c; fi
10943 if test x"$tmake_file" = x
10944 then tmake_file=$cpu_type/t-$cpu_type
10947 # Support --enable-initfini-array.
10948 if test x$enable_initfini_array != xno; then
10949 tm_file="${tm_file} initfini-array.h"
10952 if test x"$dwarf2" = xyes
10953 then tm_file="$tm_file tm-dwarf2.h"
10956 # Say what files are being used for the output code and MD file.
10957 echo "Using \`$srcdir/config/$out_file' for machine-specific logic."
10958 echo "Using \`$srcdir/config/$md_file' as machine description file."
10960 # If any of the xm_file variables contain nonexistent files, warn
10961 # about them and drop them.
10964 for x in $build_xm_file; do
10965 if test -f $srcdir/config/$x
10966 then bx="$bx $x"
10967 else { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $srcdir/config/$x does not exist." >&5
10968 $as_echo "$as_me: WARNING: $srcdir/config/$x does not exist." >&2;}
10970 done
10971 build_xm_file="$bx"
10974 for x in $host_xm_file; do
10975 if test -f $srcdir/config/$x
10976 then hx="$hx $x"
10977 else { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $srcdir/config/$x does not exist." >&5
10978 $as_echo "$as_me: WARNING: $srcdir/config/$x does not exist." >&2;}
10980 done
10981 host_xm_file="$hx"
10984 for x in $xm_file; do
10985 if test -f $srcdir/config/$x
10986 then tx="$tx $x"
10987 else { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $srcdir/config/$x does not exist." >&5
10988 $as_echo "$as_me: WARNING: $srcdir/config/$x does not exist." >&2;}
10990 done
10991 xm_file="$tx"
10993 count=a
10994 for f in $tm_file; do
10995 count=${count}x
10996 done
10997 if test $count = ax; then
10998 echo "Using \`$srcdir/config/$tm_file' as target machine macro file."
10999 else
11000 echo "Using the following target machine macro files:"
11001 for f in $tm_file; do
11002 echo " $srcdir/config/$f"
11003 done
11006 if test x$need_64bit_hwint = xyes; then
11008 $as_echo "#define NEED_64BIT_HOST_WIDE_INT 1" >>confdefs.h
11012 if test x$use_long_long_for_widest_fast_int = xyes; then
11014 $as_echo "#define USE_LONG_LONG_FOR_WIDEST_FAST_INT 1" >>confdefs.h
11018 gnu_ld_bool=`if test x"$gnu_ld" = x"yes"; then echo 1; else echo 0; fi`
11020 cat >>confdefs.h <<_ACEOF
11021 #define HAVE_GNU_LD $gnu_ld_bool
11022 _ACEOF
11025 gnu_as_bool=`if test x"$gas" = x"yes"; then echo 1; else echo 0; fi`
11027 cat >>confdefs.h <<_ACEOF
11028 #define HAVE_GNU_AS $gnu_as_bool
11029 _ACEOF
11032 count=a
11033 for f in $host_xm_file; do
11034 count=${count}x
11035 done
11036 if test $count = a; then
11038 elif test $count = ax; then
11039 echo "Using \`$srcdir/config/$host_xm_file' as host machine macro file."
11040 else
11041 echo "Using the following host machine macro files:"
11042 for f in $host_xm_file; do
11043 echo " $srcdir/config/$f"
11044 done
11046 echo "Using ${out_host_hook_obj} for host machine hooks."
11048 if test "$host_xm_file" != "$build_xm_file"; then
11049 count=a
11050 for f in $build_xm_file; do
11051 count=${count}x
11052 done
11053 if test $count = a; then
11055 elif test $count = ax; then
11056 echo "Using \`$srcdir/config/$build_xm_file' as build machine macro file."
11057 else
11058 echo "Using the following build machine macro files:"
11059 for f in $build_xm_file; do
11060 echo " $srcdir/config/$f"
11061 done
11065 if test -n "$configured_native_system_header_dir"; then
11066 native_system_header_dir=$configured_native_system_header_dir
11068 NATIVE_SYSTEM_HEADER_DIR="$native_system_header_dir"
11071 case ${host} in
11072 powerpc*-*-darwin*)
11073 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether mcontext_t fields have underscores" >&5
11074 $as_echo_n "checking whether mcontext_t fields have underscores... " >&6; }
11075 if test "${gcc_cv_mcontext_underscores+set}" = set; then :
11076 $as_echo_n "(cached) " >&6
11077 else
11078 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11079 /* end confdefs.h. */
11081 #include <sys/cdefs.h>
11082 #include <sys/signal.h>
11083 #include <ucontext.h>
11084 int main() { mcontext_t m; if (m->ss.srr0) return 0; return 0; }
11086 _ACEOF
11087 if ac_fn_c_try_compile "$LINENO"; then :
11088 gcc_cv_mcontext_underscores=no
11089 else
11090 gcc_cv_mcontext_underscores=yes
11092 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11094 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_mcontext_underscores" >&5
11095 $as_echo "$gcc_cv_mcontext_underscores" >&6; }
11096 if test $gcc_cv_mcontext_underscores = yes; then
11098 $as_echo "#define HAS_MCONTEXT_T_UNDERSCORES /**/" >>confdefs.h
11102 esac
11104 # ---------
11105 # Threading
11106 # ---------
11108 # Check if a valid thread package
11109 case ${enable_threads} in
11110 "" | no)
11111 # No threads
11112 target_thread_file='single'
11114 yes)
11115 # default
11116 target_thread_file='single'
11118 aix | dce | lynx | mipssde | posix | rtems | \
11119 single | tpf | vxworks | win32)
11120 target_thread_file=${enable_threads}
11123 echo "${enable_threads} is an unknown thread package" 1>&2
11124 exit 1
11126 esac
11128 if test x${thread_file} = x; then
11129 # No thread file set by target-specific clauses in config.gcc,
11130 # so use file chosen by default logic above
11131 thread_file=${target_thread_file}
11134 # --------
11135 # UNSORTED
11136 # --------
11138 use_cxa_atexit=no
11139 if test x$enable___cxa_atexit = xyes || \
11140 test x$enable___cxa_atexit = x -a x$default_use_cxa_atexit = xyes; then
11141 if test x$host = x$target; then
11142 case $host in
11143 # mingw32 doesn't have __cxa_atexit but uses atexit registration
11144 # keyed to flag_use_cxa_atexit
11145 *-*-mingw32*)
11146 use_cxa_atexit=yes
11148 powerpc-ibm-aix*)
11149 use_cxa_atexit=yes
11152 ac_fn_c_check_func "$LINENO" "__cxa_atexit" "ac_cv_func___cxa_atexit"
11153 if test "x$ac_cv_func___cxa_atexit" = x""yes; then :
11154 use_cxa_atexit=yes
11155 else
11156 echo "__cxa_atexit can't be enabled on this target"
11160 esac
11161 else
11162 # We can't check for __cxa_atexit when building a cross, so assume
11163 # it is available
11164 use_cxa_atexit=yes
11166 if test x$use_cxa_atexit = xyes; then
11168 $as_echo "#define DEFAULT_USE_CXA_ATEXIT 2" >>confdefs.h
11173 # Look for a file containing extra machine modes.
11174 if test -n "$extra_modes" && test -f $srcdir/config/$extra_modes; then
11175 extra_modes_file='$(srcdir)'/config/${extra_modes}
11178 cat >>confdefs.h <<_ACEOF
11179 #define EXTRA_MODES_FILE "config/$extra_modes"
11180 _ACEOF
11184 # Convert extra_options into a form suitable for Makefile use.
11185 extra_opt_files=
11186 all_opt_files=
11187 for f in $extra_options; do
11188 extra_opt_files="$extra_opt_files \$(srcdir)/config/$f"
11189 all_opt_files="$all_opt_files $srcdir/config/$f"
11190 done
11193 # auto-host.h is the file containing items generated by autoconf and is
11194 # the first file included by config.h.
11195 # If host=build, it is correct to have bconfig include auto-host.h
11196 # as well. If host!=build, we are in error and need to do more
11197 # work to find out the build config parameters.
11198 if test x$host = x$build
11199 then
11200 build_auto=auto-host.h
11201 else
11202 # We create a subdir, then run autoconf in the subdir.
11203 # To prevent recursion we set host and build for the new
11204 # invocation of configure to the build for this invocation
11205 # of configure.
11206 tempdir=build.$$
11207 rm -rf $tempdir
11208 mkdir $tempdir
11209 cd $tempdir
11210 case ${srcdir} in
11211 /* | A-Za-z:\\/* ) realsrcdir=${srcdir};;
11212 *) realsrcdir=../${srcdir};;
11213 esac
11214 # Clearing GMPINC is necessary to prevent host headers being
11215 # used by the build compiler. Defining GENERATOR_FILE stops
11216 # system.h from including gmp.h.
11217 CC="${CC_FOR_BUILD}" CFLAGS="${CFLAGS_FOR_BUILD}" \
11218 CXX="${CXX_FOR_BUILD}" CXXFLAGS="${CXXFLAGS_FOR_BUILD}" \
11219 LD="${LD_FOR_BUILD}" LDFLAGS="${LDFLAGS_FOR_BUILD}" \
11220 GMPINC="" CPPFLAGS="${CPPFLAGS} -DGENERATOR_FILE" \
11221 ${realsrcdir}/configure \
11222 --enable-languages=${enable_languages-all} \
11223 --target=$target_alias --host=$build_alias --build=$build_alias
11225 # We just finished tests for the build machine, so rename
11226 # the file auto-build.h in the gcc directory.
11227 mv auto-host.h ../auto-build.h
11228 cd ..
11229 rm -rf $tempdir
11230 build_auto=auto-build.h
11234 tm_file="${tm_file} defaults.h"
11235 tm_p_file="${tm_p_file} tm-preds.h"
11236 host_xm_file="auto-host.h ansidecl.h ${host_xm_file}"
11237 build_xm_file="${build_auto} ansidecl.h ${build_xm_file}"
11238 # We don't want ansidecl.h in target files, write code there in ISO/GNU C.
11239 # put this back in temporarily.
11240 xm_file="auto-host.h ansidecl.h ${xm_file}"
11242 # --------
11243 # UNSORTED
11244 # --------
11246 # Compile in configure arguments.
11247 if test -f configargs.h ; then
11248 # Being re-configured.
11249 gcc_config_arguments=`grep configuration_arguments configargs.h | sed -e 's/.*"\([^"]*\)".*/\1/'`
11250 gcc_config_arguments="$gcc_config_arguments : (reconfigured) $TOPLEVEL_CONFIGURE_ARGUMENTS"
11251 else
11252 gcc_config_arguments="$TOPLEVEL_CONFIGURE_ARGUMENTS"
11255 # Double all backslashes and backslash all quotes to turn
11256 # gcc_config_arguments into a C string.
11257 sed -e 's/\\/\\\\/g; s/"/\\"/g' <<EOF >conftest.out
11258 $gcc_config_arguments
11260 gcc_config_arguments_str=`cat conftest.out`
11261 rm -f conftest.out
11263 cat > configargs.h <<EOF
11264 /* Generated automatically. */
11265 static const char configuration_arguments[] = "$gcc_config_arguments_str";
11266 static const char thread_model[] = "$thread_file";
11268 static const struct {
11269 const char *name, *value;
11270 } configure_default_options[] = $configure_default_options;
11273 gcc_BASEVER=`cat $srcdir/BASE-VER`
11274 gcc_DEVPHASE=`cat $srcdir/DEV-PHASE`
11275 gcc_DATESTAMP=`cat $srcdir/DATESTAMP`
11276 if test -f $srcdir/REVISION ; then
11277 gcc_REVISION=`cat $srcdir/REVISION`
11278 else
11279 gcc_REVISION=""
11281 cat > plugin-version.h <<EOF
11282 #include "configargs.h"
11284 #define GCCPLUGIN_VERSION_MAJOR `echo $gcc_BASEVER | sed -e 's/^\([0-9]*\).*$/\1/'`
11285 #define GCCPLUGIN_VERSION_MINOR `echo $gcc_BASEVER | sed -e 's/^[0-9]*\.\([0-9]*\).*$/\1/'`
11286 #define GCCPLUGIN_VERSION_PATCHLEVEL `echo $gcc_BASEVER | sed -e 's/^[0-9]*\.[0-9]*\.\([0-9]*\)$/\1/'`
11287 #define GCCPLUGIN_VERSION (GCCPLUGIN_VERSION_MAJOR*1000 + GCCPLUGIN_VERSION_MINOR)
11289 static char basever[] = "$gcc_BASEVER";
11290 static char datestamp[] = "$gcc_DATESTAMP";
11291 static char devphase[] = "$gcc_DEVPHASE";
11292 static char revision[] = "$gcc_REVISION";
11294 /* FIXME plugins: We should make the version information more precise.
11295 One way to do is to add a checksum. */
11297 static struct plugin_gcc_version gcc_version = {basever, datestamp,
11298 devphase, revision,
11299 configuration_arguments};
11302 # Internationalization
11303 # If we haven't got the data from the intl directory,
11304 # assume NLS is disabled.
11305 USE_NLS=no
11306 LIBINTL=
11307 LIBINTL_DEP=
11308 INCINTL=
11309 XGETTEXT=
11310 GMSGFMT=
11311 POSUB=
11313 if test -f ../intl/config.intl; then
11314 . ../intl/config.intl
11316 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether NLS is requested" >&5
11317 $as_echo_n "checking whether NLS is requested... " >&6; }
11318 if test x"$USE_NLS" != xyes; then
11319 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11320 $as_echo "no" >&6; }
11321 else
11322 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11323 $as_echo "yes" >&6; }
11325 $as_echo "#define ENABLE_NLS 1" >>confdefs.h
11328 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for catalogs to be installed" >&5
11329 $as_echo_n "checking for catalogs to be installed... " >&6; }
11330 # Look for .po and .gmo files in the source directory.
11331 CATALOGS=
11332 XLINGUAS=
11333 for cat in $srcdir/po/*.gmo $srcdir/po/*.po; do
11334 # If there aren't any .gmo files the shell will give us the
11335 # literal string "../path/to/srcdir/po/*.gmo" which has to be
11336 # weeded out.
11337 case "$cat" in *\**)
11338 continue;;
11339 esac
11340 # The quadruple backslash is collapsed to a double backslash
11341 # by the backticks, then collapsed again by the double quotes,
11342 # leaving us with one backslash in the sed expression (right
11343 # before the dot that mustn't act as a wildcard).
11344 cat=`echo $cat | sed -e "s!$srcdir/po/!!" -e "s!\\\\.po!.gmo!"`
11345 lang=`echo $cat | sed -e "s!\\\\.gmo!!"`
11346 # The user is allowed to set LINGUAS to a list of languages to
11347 # install catalogs for. If it's empty that means "all of them."
11348 if test "x$LINGUAS" = x; then
11349 CATALOGS="$CATALOGS $cat"
11350 XLINGUAS="$XLINGUAS $lang"
11351 else
11352 case "$LINGUAS" in *$lang*)
11353 CATALOGS="$CATALOGS $cat"
11354 XLINGUAS="$XLINGUAS $lang"
11356 esac
11358 done
11359 LINGUAS="$XLINGUAS"
11360 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LINGUAS" >&5
11361 $as_echo "$LINGUAS" >&6; }
11364 DATADIRNAME=share
11366 INSTOBJEXT=.mo
11368 GENCAT=gencat
11370 CATOBJEXT=.gmo
11374 # If LIBINTL contains LIBICONV, then clear LIBICONV so we don't get
11375 # -liconv on the link line twice.
11376 case "$LIBINTL" in *$LIBICONV*)
11377 LIBICONV= ;;
11378 esac
11380 # Check whether --enable-secureplt was given.
11381 if test "${enable_secureplt+set}" = set; then :
11382 enableval=$enable_secureplt;
11386 # Check whether --enable-leading-mingw64-underscores was given.
11387 if test "${enable_leading_mingw64_underscores+set}" = set; then :
11388 enableval=$enable_leading_mingw64_underscores;
11391 if test x"$enable_leading_mingw64_underscores" = xyes ; then :
11393 $as_echo "#define USE_MINGW64_LEADING_UNDERSCORES 1" >>confdefs.h
11397 # Check whether --enable-cld was given.
11398 if test "${enable_cld+set}" = set; then :
11399 enableval=$enable_cld;
11400 else
11401 enable_cld=no
11405 # Check whether --enable-frame-pointer was given.
11406 if test "${enable_frame_pointer+set}" = set; then :
11407 enableval=$enable_frame_pointer;
11408 else
11410 case $target_os in
11411 linux* | darwin[8912]*)
11412 # Enable -fomit-frame-pointer by default for Linux and Darwin with
11413 # DWARF2.
11414 enable_frame_pointer=no
11417 enable_frame_pointer=yes
11419 esac
11424 # Windows32 Registry support for specifying GCC installation paths.
11425 # Check whether --enable-win32-registry was given.
11426 if test "${enable_win32_registry+set}" = set; then :
11427 enableval=$enable_win32_registry;
11431 case $host_os in
11432 win32 | pe | cygwin* | mingw32* | uwin*)
11433 if test "x$enable_win32_registry" != xno; then
11434 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing RegOpenKeyExA" >&5
11435 $as_echo_n "checking for library containing RegOpenKeyExA... " >&6; }
11436 if test "${ac_cv_search_RegOpenKeyExA+set}" = set; then :
11437 $as_echo_n "(cached) " >&6
11438 else
11439 ac_func_search_save_LIBS=$LIBS
11440 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11441 /* end confdefs.h. */
11443 /* Override any GCC internal prototype to avoid an error.
11444 Use char because int might match the return type of a GCC
11445 builtin and then its argument prototype would still apply. */
11446 #ifdef __cplusplus
11447 extern "C"
11448 #endif
11449 char RegOpenKeyExA ();
11451 main ()
11453 return RegOpenKeyExA ();
11455 return 0;
11457 _ACEOF
11458 for ac_lib in '' advapi32; do
11459 if test -z "$ac_lib"; then
11460 ac_res="none required"
11461 else
11462 ac_res=-l$ac_lib
11463 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
11465 if ac_fn_c_try_link "$LINENO"; then :
11466 ac_cv_search_RegOpenKeyExA=$ac_res
11468 rm -f core conftest.err conftest.$ac_objext \
11469 conftest$ac_exeext
11470 if test "${ac_cv_search_RegOpenKeyExA+set}" = set; then :
11471 break
11473 done
11474 if test "${ac_cv_search_RegOpenKeyExA+set}" = set; then :
11476 else
11477 ac_cv_search_RegOpenKeyExA=no
11479 rm conftest.$ac_ext
11480 LIBS=$ac_func_search_save_LIBS
11482 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_RegOpenKeyExA" >&5
11483 $as_echo "$ac_cv_search_RegOpenKeyExA" >&6; }
11484 ac_res=$ac_cv_search_RegOpenKeyExA
11485 if test "$ac_res" != no; then :
11486 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
11488 else
11489 enable_win32_registry=no
11494 if test "x$enable_win32_registry" != xno; then
11496 $as_echo "#define ENABLE_WIN32_REGISTRY 1" >>confdefs.h
11499 if test "x$enable_win32_registry" != xyes \
11500 && test "x$enable_win32_registry" != x; then
11502 cat >>confdefs.h <<_ACEOF
11503 #define WIN32_REGISTRY_KEY "$enable_win32_registry"
11504 _ACEOF
11509 esac
11511 # Get an absolute path to the GCC top-level source directory
11512 holddir=`${PWDCMD-pwd}`
11513 cd $srcdir
11514 topdir=`${PWDCMD-pwd}`
11515 cd $holddir
11517 # Conditionalize the makefile for this host machine.
11518 xmake_file=
11519 for f in ${host_xmake_file}
11521 if test -f ${srcdir}/config/$f
11522 then
11523 xmake_file="${xmake_file} \$(srcdir)/config/$f"
11525 done
11527 # Conditionalize the makefile for this target machine.
11528 tmake_file_=
11529 for f in ${tmake_file}
11531 if test -f ${srcdir}/config/$f
11532 then
11533 tmake_file_="${tmake_file_} \$(srcdir)/config/$f"
11535 done
11536 tmake_file="${tmake_file_}"
11538 out_object_file=`basename $out_file .c`.o
11539 common_out_object_file=`basename $common_out_file .c`.o
11541 tm_file_list="options.h"
11542 tm_include_list="options.h insn-constants.h"
11543 for f in $tm_file; do
11544 case $f in
11545 ./* )
11546 f=`echo $f | sed 's/^..//'`
11547 tm_file_list="${tm_file_list} $f"
11548 tm_include_list="${tm_include_list} $f"
11550 defaults.h )
11551 tm_file_list="${tm_file_list} \$(srcdir)/$f"
11552 tm_include_list="${tm_include_list} $f"
11555 tm_file_list="${tm_file_list} \$(srcdir)/config/$f"
11556 tm_include_list="${tm_include_list} config/$f"
11558 esac
11559 done
11561 tm_p_file_list=
11562 tm_p_include_list=
11563 for f in $tm_p_file; do
11564 case $f in
11565 tm-preds.h )
11566 tm_p_file_list="${tm_p_file_list} $f"
11567 tm_p_include_list="${tm_p_include_list} $f"
11570 tm_p_file_list="${tm_p_file_list} \$(srcdir)/config/$f"
11571 tm_p_include_list="${tm_p_include_list} config/$f"
11572 esac
11573 done
11575 xm_file_list=
11576 xm_include_list=
11577 for f in $xm_file; do
11578 case $f in
11579 ansidecl.h )
11580 xm_file_list="${xm_file_list} \$(srcdir)/../include/$f"
11581 xm_include_list="${xm_include_list} $f"
11583 auto-host.h )
11584 xm_file_list="${xm_file_list} $f"
11585 xm_include_list="${xm_include_list} $f"
11588 xm_file_list="${xm_file_list} \$(srcdir)/config/$f"
11589 xm_include_list="${xm_include_list} config/$f"
11591 esac
11592 done
11594 host_xm_file_list=
11595 host_xm_include_list=
11596 for f in $host_xm_file; do
11597 case $f in
11598 ansidecl.h )
11599 host_xm_file_list="${host_xm_file_list} \$(srcdir)/../include/$f"
11600 host_xm_include_list="${host_xm_include_list} $f"
11602 auto-host.h )
11603 host_xm_file_list="${host_xm_file_list} $f"
11604 host_xm_include_list="${host_xm_include_list} $f"
11607 host_xm_file_list="${host_xm_file_list} \$(srcdir)/config/$f"
11608 host_xm_include_list="${host_xm_include_list} config/$f"
11610 esac
11611 done
11613 build_xm_file_list=
11614 for f in $build_xm_file; do
11615 case $f in
11616 ansidecl.h )
11617 build_xm_file_list="${build_xm_file_list} \$(srcdir)/../include/$f"
11618 build_xm_include_list="${build_xm_include_list} $f"
11620 auto-build.h | auto-host.h )
11621 build_xm_file_list="${build_xm_file_list} $f"
11622 build_xm_include_list="${build_xm_include_list} $f"
11625 build_xm_file_list="${build_xm_file_list} \$(srcdir)/config/$f"
11626 build_xm_include_list="${build_xm_include_list} config/$f"
11628 esac
11629 done
11631 # Define macro CROSS_DIRECTORY_STRUCTURE in compilation if this is a
11632 # cross-compiler which does not use the native headers and libraries.
11633 # Also use all.cross instead of all.internal and adjust SYSTEM_HEADER_DIR.
11634 CROSS=
11635 ALL=all.internal
11636 SYSTEM_HEADER_DIR='$(NATIVE_SYSTEM_HEADER_DIR)'
11638 if test "x$with_build_sysroot" != x; then
11639 build_system_header_dir=$with_build_sysroot'$${sysroot_headers_suffix}$(NATIVE_SYSTEM_HEADER_DIR)'
11640 else
11641 # This value is used, even on a native system, because
11642 # CROSS_SYSTEM_HEADER_DIR is just
11643 # $(TARGET_SYSTEM_ROOT)$(NATIVE_SYSTEM_HEADER_DIR).
11644 build_system_header_dir='$(CROSS_SYSTEM_HEADER_DIR)'
11647 if test x$host != x$target
11648 then
11649 CROSS="-DCROSS_DIRECTORY_STRUCTURE"
11650 ALL=all.cross
11651 SYSTEM_HEADER_DIR=$build_system_header_dir
11652 case "$host","$target" in
11653 # Darwin crosses can use the host system's libraries and headers,
11654 # because of the fat library support. Of course, it must be the
11655 # same version of Darwin on both sides. Allow the user to
11656 # just say --target=foo-darwin without a version number to mean
11657 # "the version on this system".
11658 *-*-darwin*,*-*-darwin*)
11659 hostos=`echo $host | sed 's/.*-darwin/darwin/'`
11660 targetos=`echo $target | sed 's/.*-darwin/darwin/'`
11661 if test $hostos = $targetos -o $targetos = darwin ; then
11662 CROSS=
11663 SYSTEM_HEADER_DIR='$(NATIVE_SYSTEM_HEADER_DIR)'
11664 with_headers=yes
11668 i?86-*-*,x86_64-*-* \
11669 | powerpc*-*-*,powerpc64*-*-*)
11670 CROSS="$CROSS -DNATIVE_CROSS" ;;
11671 esac
11673 case $target in
11674 *-*-mingw*)
11675 if test "x$with_headers" = x; then
11676 with_headers=yes
11681 esac
11682 elif test "x$TARGET_SYSTEM_ROOT" != x; then
11683 SYSTEM_HEADER_DIR=$build_system_header_dir
11686 # If this is a cross-compiler that does not
11687 # have its own set of headers then define
11688 # inhibit_libc
11690 # If this is using newlib, without having the headers available now,
11691 # then define inhibit_libc in LIBGCC2_CFLAGS.
11692 # This prevents libgcc2 from containing any code which requires libc
11693 # support.
11694 : ${inhibit_libc=false}
11695 if { { test x$host != x$target && test "x$with_sysroot" = x ; } ||
11696 test x$with_newlib = xyes ; } &&
11697 { test "x$with_headers" = x || test "x$with_headers" = xno ; } ; then
11698 inhibit_libc=true
11702 # When building gcc with a cross-compiler, we need to adjust things so
11703 # that the generator programs are still built with the native compiler.
11704 # Also, we cannot run fixincludes.
11706 # These are the normal (build=host) settings:
11707 CC_FOR_BUILD='$(CC)'
11708 CXX_FOR_BUILD='$(CXX)'
11709 BUILD_CFLAGS='$(ALL_CFLAGS)'
11710 BUILD_CXXFLAGS='$(ALL_CXXFLAGS)'
11711 BUILD_LDFLAGS='$(LDFLAGS)'
11712 STMP_FIXINC=stmp-fixinc
11714 # And these apply if build != host, or we are generating coverage data
11715 if test x$build != x$host || test "x$coverage_flags" != x
11716 then
11717 BUILD_CFLAGS='$(INTERNAL_CFLAGS) $(T_CFLAGS) $(CFLAGS_FOR_BUILD)'
11718 BUILD_CXXFLAGS='$(INTERNAL_CFLAGS) $(T_CFLAGS) $(CXXFLAGS_FOR_BUILD)'
11719 BUILD_LDFLAGS='$(LDFLAGS_FOR_BUILD)'
11722 # Expand extra_headers to include complete path.
11723 # This substitutes for lots of t-* files.
11724 extra_headers_list=
11725 # Prepend $(srcdir)/config/${cpu_type}/ to every entry in extra_headers.
11726 for file in ${extra_headers} ; do
11727 extra_headers_list="${extra_headers_list} \$(srcdir)/config/${cpu_type}/${file}"
11728 done
11730 # If use_gcc_tgmath is set, append ginclude/tgmath.h.
11731 if test x"$use_gcc_tgmath" = xyes
11732 then extra_headers_list="${extra_headers_list} \$(srcdir)/ginclude/tgmath.h"
11735 # Define collect2 in Makefile.
11736 case $host_can_use_collect2 in
11737 no) collect2= ;;
11738 *) collect2='collect2$(exeext)' ;;
11739 esac
11742 # Add a definition of USE_COLLECT2 if system wants one.
11743 case $use_collect2 in
11744 no) use_collect2= ;;
11745 "") ;;
11747 host_xm_defines="${host_xm_defines} USE_COLLECT2"
11748 xm_defines="${xm_defines} USE_COLLECT2"
11749 case $host_can_use_collect2 in
11751 as_fn_error "collect2 is required but cannot be built on this system" "$LINENO" 5
11753 esac
11755 esac
11758 cat >>confdefs.h <<_ACEOF
11759 #define LTOPLUGINSONAME "${host_lto_plugin_soname}"
11760 _ACEOF
11763 # ---------------------------
11764 # Assembler & linker features
11765 # ---------------------------
11767 # During stage 2, ld is actually gcc/collect-ld, which is a small script to
11768 # discern between when to use prev-ld/ld-new and when to use ld/ld-new.
11769 # However when ld-new is first executed from the build tree, libtool will
11770 # relink it as .libs/lt-ld-new, so that it can give it an RPATH that refers
11771 # to the build tree. While doing this we need to use the previous-stage
11772 # linker, or we have an infinite loop. The presence of a shell script as
11773 # ld/ld-new, and the fact that the script *uses ld itself*, is what confuses
11774 # the gcc/collect-ld script. So we need to know how libtool works, or
11775 # exec-tool will fail.
11778 case `pwd` in
11779 *\ * | *\ *)
11780 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&5
11781 $as_echo "$as_me: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&2;} ;;
11782 esac
11786 macro_version='2.2.7a'
11787 macro_revision='1.3134'
11801 ltmain="$ac_aux_dir/ltmain.sh"
11803 # Backslashify metacharacters that are still active within
11804 # double-quoted strings.
11805 sed_quote_subst='s/\(["`$\\]\)/\\\1/g'
11807 # Same as above, but do not quote variable references.
11808 double_quote_subst='s/\(["`\\]\)/\\\1/g'
11810 # Sed substitution to delay expansion of an escaped shell variable in a
11811 # double_quote_subst'ed string.
11812 delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
11814 # Sed substitution to delay expansion of an escaped single quote.
11815 delay_single_quote_subst='s/'\''/'\'\\\\\\\'\''/g'
11817 # Sed substitution to avoid accidental globbing in evaled expressions
11818 no_glob_subst='s/\*/\\\*/g'
11820 ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
11821 ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO
11822 ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO$ECHO
11824 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to print strings" >&5
11825 $as_echo_n "checking how to print strings... " >&6; }
11826 # Test print first, because it will be a builtin if present.
11827 if test "X`print -r -- -n 2>/dev/null`" = X-n && \
11828 test "X`print -r -- $ECHO 2>/dev/null`" = "X$ECHO"; then
11829 ECHO='print -r --'
11830 elif test "X`printf %s $ECHO 2>/dev/null`" = "X$ECHO"; then
11831 ECHO='printf %s\n'
11832 else
11833 # Use this function as a fallback that always works.
11834 func_fallback_echo ()
11836 eval 'cat <<_LTECHO_EOF
11838 _LTECHO_EOF'
11840 ECHO='func_fallback_echo'
11843 # func_echo_all arg...
11844 # Invoke $ECHO with all args, space-separated.
11845 func_echo_all ()
11847 $ECHO ""
11850 case "$ECHO" in
11851 printf*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: printf" >&5
11852 $as_echo "printf" >&6; } ;;
11853 print*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: print -r" >&5
11854 $as_echo "print -r" >&6; } ;;
11855 *) { $as_echo "$as_me:${as_lineno-$LINENO}: result: cat" >&5
11856 $as_echo "cat" >&6; } ;;
11857 esac
11872 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5
11873 $as_echo_n "checking for a sed that does not truncate output... " >&6; }
11874 if test "${ac_cv_path_SED+set}" = set; then :
11875 $as_echo_n "(cached) " >&6
11876 else
11877 ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
11878 for ac_i in 1 2 3 4 5 6 7; do
11879 ac_script="$ac_script$as_nl$ac_script"
11880 done
11881 echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed
11882 { ac_script=; unset ac_script;}
11883 if test -z "$SED"; then
11884 ac_path_SED_found=false
11885 # Loop through the user's path and test for each of PROGNAME-LIST
11886 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11887 for as_dir in $PATH
11889 IFS=$as_save_IFS
11890 test -z "$as_dir" && as_dir=.
11891 for ac_prog in sed gsed; do
11892 for ac_exec_ext in '' $ac_executable_extensions; do
11893 ac_path_SED="$as_dir/$ac_prog$ac_exec_ext"
11894 { test -f "$ac_path_SED" && $as_test_x "$ac_path_SED"; } || continue
11895 # Check for GNU ac_path_SED and select it if it is found.
11896 # Check for GNU $ac_path_SED
11897 case `"$ac_path_SED" --version 2>&1` in
11898 *GNU*)
11899 ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
11901 ac_count=0
11902 $as_echo_n 0123456789 >"conftest.in"
11903 while :
11905 cat "conftest.in" "conftest.in" >"conftest.tmp"
11906 mv "conftest.tmp" "conftest.in"
11907 cp "conftest.in" "conftest.nl"
11908 $as_echo '' >> "conftest.nl"
11909 "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break
11910 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
11911 as_fn_arith $ac_count + 1 && ac_count=$as_val
11912 if test $ac_count -gt ${ac_path_SED_max-0}; then
11913 # Best one so far, save it but keep looking for a better one
11914 ac_cv_path_SED="$ac_path_SED"
11915 ac_path_SED_max=$ac_count
11917 # 10*(2^10) chars as input seems more than enough
11918 test $ac_count -gt 10 && break
11919 done
11920 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
11921 esac
11923 $ac_path_SED_found && break 3
11924 done
11925 done
11926 done
11927 IFS=$as_save_IFS
11928 if test -z "$ac_cv_path_SED"; then
11929 as_fn_error "no acceptable sed could be found in \$PATH" "$LINENO" 5
11931 else
11932 ac_cv_path_SED=$SED
11936 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5
11937 $as_echo "$ac_cv_path_SED" >&6; }
11938 SED="$ac_cv_path_SED"
11939 rm -f conftest.sed
11941 test -z "$SED" && SED=sed
11942 Xsed="$SED -e 1s/^X//"
11954 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for fgrep" >&5
11955 $as_echo_n "checking for fgrep... " >&6; }
11956 if test "${ac_cv_path_FGREP+set}" = set; then :
11957 $as_echo_n "(cached) " >&6
11958 else
11959 if echo 'ab*c' | $GREP -F 'ab*c' >/dev/null 2>&1
11960 then ac_cv_path_FGREP="$GREP -F"
11961 else
11962 if test -z "$FGREP"; then
11963 ac_path_FGREP_found=false
11964 # Loop through the user's path and test for each of PROGNAME-LIST
11965 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11966 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
11968 IFS=$as_save_IFS
11969 test -z "$as_dir" && as_dir=.
11970 for ac_prog in fgrep; do
11971 for ac_exec_ext in '' $ac_executable_extensions; do
11972 ac_path_FGREP="$as_dir/$ac_prog$ac_exec_ext"
11973 { test -f "$ac_path_FGREP" && $as_test_x "$ac_path_FGREP"; } || continue
11974 # Check for GNU ac_path_FGREP and select it if it is found.
11975 # Check for GNU $ac_path_FGREP
11976 case `"$ac_path_FGREP" --version 2>&1` in
11977 *GNU*)
11978 ac_cv_path_FGREP="$ac_path_FGREP" ac_path_FGREP_found=:;;
11980 ac_count=0
11981 $as_echo_n 0123456789 >"conftest.in"
11982 while :
11984 cat "conftest.in" "conftest.in" >"conftest.tmp"
11985 mv "conftest.tmp" "conftest.in"
11986 cp "conftest.in" "conftest.nl"
11987 $as_echo 'FGREP' >> "conftest.nl"
11988 "$ac_path_FGREP" FGREP < "conftest.nl" >"conftest.out" 2>/dev/null || break
11989 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
11990 as_fn_arith $ac_count + 1 && ac_count=$as_val
11991 if test $ac_count -gt ${ac_path_FGREP_max-0}; then
11992 # Best one so far, save it but keep looking for a better one
11993 ac_cv_path_FGREP="$ac_path_FGREP"
11994 ac_path_FGREP_max=$ac_count
11996 # 10*(2^10) chars as input seems more than enough
11997 test $ac_count -gt 10 && break
11998 done
11999 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
12000 esac
12002 $ac_path_FGREP_found && break 3
12003 done
12004 done
12005 done
12006 IFS=$as_save_IFS
12007 if test -z "$ac_cv_path_FGREP"; then
12008 as_fn_error "no acceptable fgrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
12010 else
12011 ac_cv_path_FGREP=$FGREP
12016 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_FGREP" >&5
12017 $as_echo "$ac_cv_path_FGREP" >&6; }
12018 FGREP="$ac_cv_path_FGREP"
12021 test -z "$GREP" && GREP=grep
12041 # Check whether --with-gnu-ld was given.
12042 if test "${with_gnu_ld+set}" = set; then :
12043 withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
12044 else
12045 with_gnu_ld=no
12048 ac_prog=ld
12049 if test "$GCC" = yes; then
12050 # Check if gcc -print-prog-name=ld gives a path.
12051 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
12052 $as_echo_n "checking for ld used by $CC... " >&6; }
12053 case $host in
12054 *-*-mingw*)
12055 # gcc leaves a trailing carriage return which upsets mingw
12056 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
12058 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
12059 esac
12060 case $ac_prog in
12061 # Accept absolute paths.
12062 [\\/]* | ?:[\\/]*)
12063 re_direlt='/[^/][^/]*/\.\./'
12064 # Canonicalize the pathname of ld
12065 ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
12066 while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
12067 ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
12068 done
12069 test -z "$LD" && LD="$ac_prog"
12072 # If it fails, then pretend we aren't using GCC.
12073 ac_prog=ld
12076 # If it is relative, then search for the first ld in PATH.
12077 with_gnu_ld=unknown
12079 esac
12080 elif test "$with_gnu_ld" = yes; then
12081 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
12082 $as_echo_n "checking for GNU ld... " >&6; }
12083 else
12084 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
12085 $as_echo_n "checking for non-GNU ld... " >&6; }
12087 if test "${lt_cv_path_LD+set}" = set; then :
12088 $as_echo_n "(cached) " >&6
12089 else
12090 if test -z "$LD"; then
12091 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
12092 for ac_dir in $PATH; do
12093 IFS="$lt_save_ifs"
12094 test -z "$ac_dir" && ac_dir=.
12095 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
12096 lt_cv_path_LD="$ac_dir/$ac_prog"
12097 # Check to see if the program is GNU ld. I'd rather use --version,
12098 # but apparently some variants of GNU ld only accept -v.
12099 # Break only if it was the GNU/non-GNU ld that we prefer.
12100 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
12101 *GNU* | *'with BFD'*)
12102 test "$with_gnu_ld" != no && break
12105 test "$with_gnu_ld" != yes && break
12107 esac
12109 done
12110 IFS="$lt_save_ifs"
12111 else
12112 lt_cv_path_LD="$LD" # Let the user override the test with a path.
12116 LD="$lt_cv_path_LD"
12117 if test -n "$LD"; then
12118 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
12119 $as_echo "$LD" >&6; }
12120 else
12121 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12122 $as_echo "no" >&6; }
12124 test -z "$LD" && as_fn_error "no acceptable ld found in \$PATH" "$LINENO" 5
12125 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
12126 $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
12127 if test "${lt_cv_prog_gnu_ld+set}" = set; then :
12128 $as_echo_n "(cached) " >&6
12129 else
12130 # I'd rather use --version here, but apparently some GNU lds only accept -v.
12131 case `$LD -v 2>&1 </dev/null` in
12132 *GNU* | *'with BFD'*)
12133 lt_cv_prog_gnu_ld=yes
12136 lt_cv_prog_gnu_ld=no
12138 esac
12140 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
12141 $as_echo "$lt_cv_prog_gnu_ld" >&6; }
12142 with_gnu_ld=$lt_cv_prog_gnu_ld
12152 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for BSD- or MS-compatible name lister (nm)" >&5
12153 $as_echo_n "checking for BSD- or MS-compatible name lister (nm)... " >&6; }
12154 if test "${lt_cv_path_NM+set}" = set; then :
12155 $as_echo_n "(cached) " >&6
12156 else
12157 if test -n "$NM"; then
12158 # Let the user override the test.
12159 lt_cv_path_NM="$NM"
12160 else
12161 lt_nm_to_check="${ac_tool_prefix}nm"
12162 if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
12163 lt_nm_to_check="$lt_nm_to_check nm"
12165 for lt_tmp_nm in $lt_nm_to_check; do
12166 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
12167 for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
12168 IFS="$lt_save_ifs"
12169 test -z "$ac_dir" && ac_dir=.
12170 tmp_nm="$ac_dir/$lt_tmp_nm"
12171 if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
12172 # Check to see if the nm accepts a BSD-compat flag.
12173 # Adding the `sed 1q' prevents false positives on HP-UX, which says:
12174 # nm: unknown option "B" ignored
12175 # Tru64's nm complains that /dev/null is an invalid object file
12176 case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
12177 */dev/null* | *'Invalid file or object type'*)
12178 lt_cv_path_NM="$tmp_nm -B"
12179 break
12182 case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
12183 */dev/null*)
12184 lt_cv_path_NM="$tmp_nm -p"
12185 break
12188 lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
12189 continue # so that we can try to find one that supports BSD flags
12191 esac
12193 esac
12195 done
12196 IFS="$lt_save_ifs"
12197 done
12198 : ${lt_cv_path_NM=no}
12201 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_NM" >&5
12202 $as_echo "$lt_cv_path_NM" >&6; }
12203 if test "$lt_cv_path_NM" != "no"; then
12204 NM="$lt_cv_path_NM"
12205 else
12206 # Didn't find any BSD compatible name lister, look for dumpbin.
12207 if test -n "$DUMPBIN"; then :
12208 # Let the user override the test.
12209 else
12210 if test -n "$ac_tool_prefix"; then
12211 for ac_prog in dumpbin "link -dump"
12213 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
12214 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
12215 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12216 $as_echo_n "checking for $ac_word... " >&6; }
12217 if test "${ac_cv_prog_DUMPBIN+set}" = set; then :
12218 $as_echo_n "(cached) " >&6
12219 else
12220 if test -n "$DUMPBIN"; then
12221 ac_cv_prog_DUMPBIN="$DUMPBIN" # Let the user override the test.
12222 else
12223 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12224 for as_dir in $PATH
12226 IFS=$as_save_IFS
12227 test -z "$as_dir" && as_dir=.
12228 for ac_exec_ext in '' $ac_executable_extensions; do
12229 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12230 ac_cv_prog_DUMPBIN="$ac_tool_prefix$ac_prog"
12231 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12232 break 2
12234 done
12235 done
12236 IFS=$as_save_IFS
12240 DUMPBIN=$ac_cv_prog_DUMPBIN
12241 if test -n "$DUMPBIN"; then
12242 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DUMPBIN" >&5
12243 $as_echo "$DUMPBIN" >&6; }
12244 else
12245 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12246 $as_echo "no" >&6; }
12250 test -n "$DUMPBIN" && break
12251 done
12253 if test -z "$DUMPBIN"; then
12254 ac_ct_DUMPBIN=$DUMPBIN
12255 for ac_prog in dumpbin "link -dump"
12257 # Extract the first word of "$ac_prog", so it can be a program name with args.
12258 set dummy $ac_prog; ac_word=$2
12259 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12260 $as_echo_n "checking for $ac_word... " >&6; }
12261 if test "${ac_cv_prog_ac_ct_DUMPBIN+set}" = set; then :
12262 $as_echo_n "(cached) " >&6
12263 else
12264 if test -n "$ac_ct_DUMPBIN"; then
12265 ac_cv_prog_ac_ct_DUMPBIN="$ac_ct_DUMPBIN" # Let the user override the test.
12266 else
12267 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12268 for as_dir in $PATH
12270 IFS=$as_save_IFS
12271 test -z "$as_dir" && as_dir=.
12272 for ac_exec_ext in '' $ac_executable_extensions; do
12273 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12274 ac_cv_prog_ac_ct_DUMPBIN="$ac_prog"
12275 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12276 break 2
12278 done
12279 done
12280 IFS=$as_save_IFS
12284 ac_ct_DUMPBIN=$ac_cv_prog_ac_ct_DUMPBIN
12285 if test -n "$ac_ct_DUMPBIN"; then
12286 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DUMPBIN" >&5
12287 $as_echo "$ac_ct_DUMPBIN" >&6; }
12288 else
12289 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12290 $as_echo "no" >&6; }
12294 test -n "$ac_ct_DUMPBIN" && break
12295 done
12297 if test "x$ac_ct_DUMPBIN" = x; then
12298 DUMPBIN=":"
12299 else
12300 case $cross_compiling:$ac_tool_warned in
12301 yes:)
12302 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
12303 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
12304 ac_tool_warned=yes ;;
12305 esac
12306 DUMPBIN=$ac_ct_DUMPBIN
12310 case `$DUMPBIN -symbols /dev/null 2>&1 | sed '1q'` in
12311 *COFF*)
12312 DUMPBIN="$DUMPBIN -symbols"
12315 DUMPBIN=:
12317 esac
12320 if test "$DUMPBIN" != ":"; then
12321 NM="$DUMPBIN"
12324 test -z "$NM" && NM=nm
12331 { $as_echo "$as_me:${as_lineno-$LINENO}: checking the name lister ($NM) interface" >&5
12332 $as_echo_n "checking the name lister ($NM) interface... " >&6; }
12333 if test "${lt_cv_nm_interface+set}" = set; then :
12334 $as_echo_n "(cached) " >&6
12335 else
12336 lt_cv_nm_interface="BSD nm"
12337 echo "int some_variable = 0;" > conftest.$ac_ext
12338 (eval echo "\"\$as_me:$LINENO: $ac_compile\"" >&5)
12339 (eval "$ac_compile" 2>conftest.err)
12340 cat conftest.err >&5
12341 (eval echo "\"\$as_me:$LINENO: $NM \\\"conftest.$ac_objext\\\"\"" >&5)
12342 (eval "$NM \"conftest.$ac_objext\"" 2>conftest.err > conftest.out)
12343 cat conftest.err >&5
12344 (eval echo "\"\$as_me:$LINENO: output\"" >&5)
12345 cat conftest.out >&5
12346 if $GREP 'External.*some_variable' conftest.out > /dev/null; then
12347 lt_cv_nm_interface="MS dumpbin"
12349 rm -f conftest*
12351 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_nm_interface" >&5
12352 $as_echo "$lt_cv_nm_interface" >&6; }
12354 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5
12355 $as_echo_n "checking whether ln -s works... " >&6; }
12356 LN_S=$as_ln_s
12357 if test "$LN_S" = "ln -s"; then
12358 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12359 $as_echo "yes" >&6; }
12360 else
12361 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5
12362 $as_echo "no, using $LN_S" >&6; }
12365 # find the maximum length of command line arguments
12366 { $as_echo "$as_me:${as_lineno-$LINENO}: checking the maximum length of command line arguments" >&5
12367 $as_echo_n "checking the maximum length of command line arguments... " >&6; }
12368 if test "${lt_cv_sys_max_cmd_len+set}" = set; then :
12369 $as_echo_n "(cached) " >&6
12370 else
12372 teststring="ABCD"
12374 case $build_os in
12375 msdosdjgpp*)
12376 # On DJGPP, this test can blow up pretty badly due to problems in libc
12377 # (any single argument exceeding 2000 bytes causes a buffer overrun
12378 # during glob expansion). Even if it were fixed, the result of this
12379 # check would be larger than it should be.
12380 lt_cv_sys_max_cmd_len=12288; # 12K is about right
12383 gnu*)
12384 # Under GNU Hurd, this test is not required because there is
12385 # no limit to the length of command line arguments.
12386 # Libtool will interpret -1 as no limit whatsoever
12387 lt_cv_sys_max_cmd_len=-1;
12390 cygwin* | mingw* | cegcc*)
12391 # On Win9x/ME, this test blows up -- it succeeds, but takes
12392 # about 5 minutes as the teststring grows exponentially.
12393 # Worse, since 9x/ME are not pre-emptively multitasking,
12394 # you end up with a "frozen" computer, even though with patience
12395 # the test eventually succeeds (with a max line length of 256k).
12396 # Instead, let's just punt: use the minimum linelength reported by
12397 # all of the supported platforms: 8192 (on NT/2K/XP).
12398 lt_cv_sys_max_cmd_len=8192;
12401 mint*)
12402 # On MiNT this can take a long time and run out of memory.
12403 lt_cv_sys_max_cmd_len=8192;
12406 amigaos*)
12407 # On AmigaOS with pdksh, this test takes hours, literally.
12408 # So we just punt and use a minimum line length of 8192.
12409 lt_cv_sys_max_cmd_len=8192;
12412 netbsd* | freebsd* | openbsd* | darwin* | dragonfly*)
12413 # This has been around since 386BSD, at least. Likely further.
12414 if test -x /sbin/sysctl; then
12415 lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
12416 elif test -x /usr/sbin/sysctl; then
12417 lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
12418 else
12419 lt_cv_sys_max_cmd_len=65536 # usable default for all BSDs
12421 # And add a safety zone
12422 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
12423 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
12426 interix*)
12427 # We know the value 262144 and hardcode it with a safety zone (like BSD)
12428 lt_cv_sys_max_cmd_len=196608
12431 osf*)
12432 # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
12433 # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
12434 # nice to cause kernel panics so lets avoid the loop below.
12435 # First set a reasonable default.
12436 lt_cv_sys_max_cmd_len=16384
12438 if test -x /sbin/sysconfig; then
12439 case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
12440 *1*) lt_cv_sys_max_cmd_len=-1 ;;
12441 esac
12444 sco3.2v5*)
12445 lt_cv_sys_max_cmd_len=102400
12447 sysv5* | sco5v6* | sysv4.2uw2*)
12448 kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
12449 if test -n "$kargmax"; then
12450 lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[ ]//'`
12451 else
12452 lt_cv_sys_max_cmd_len=32768
12456 lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null`
12457 if test -n "$lt_cv_sys_max_cmd_len"; then
12458 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
12459 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
12460 else
12461 # Make teststring a little bigger before we do anything with it.
12462 # a 1K string should be a reasonable start.
12463 for i in 1 2 3 4 5 6 7 8 ; do
12464 teststring=$teststring$teststring
12465 done
12466 SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
12467 # If test is not a shell built-in, we'll probably end up computing a
12468 # maximum length that is only half of the actual maximum length, but
12469 # we can't tell.
12470 while { test "X"`func_fallback_echo "$teststring$teststring" 2>/dev/null` \
12471 = "X$teststring$teststring"; } >/dev/null 2>&1 &&
12472 test $i != 17 # 1/2 MB should be enough
12474 i=`expr $i + 1`
12475 teststring=$teststring$teststring
12476 done
12477 # Only check the string length outside the loop.
12478 lt_cv_sys_max_cmd_len=`expr "X$teststring" : ".*" 2>&1`
12479 teststring=
12480 # Add a significant safety factor because C++ compilers can tack on
12481 # massive amounts of additional arguments before passing them to the
12482 # linker. It appears as though 1/2 is a usable value.
12483 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
12486 esac
12490 if test -n $lt_cv_sys_max_cmd_len ; then
12491 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_max_cmd_len" >&5
12492 $as_echo "$lt_cv_sys_max_cmd_len" >&6; }
12493 else
12494 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none" >&5
12495 $as_echo "none" >&6; }
12497 max_cmd_len=$lt_cv_sys_max_cmd_len
12504 : ${CP="cp -f"}
12505 : ${MV="mv -f"}
12506 : ${RM="rm -f"}
12508 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands some XSI constructs" >&5
12509 $as_echo_n "checking whether the shell understands some XSI constructs... " >&6; }
12510 # Try some XSI features
12511 xsi_shell=no
12512 ( _lt_dummy="a/b/c"
12513 test "${_lt_dummy##*/},${_lt_dummy%/*},"${_lt_dummy%"$_lt_dummy"}, \
12514 = c,a/b,, \
12515 && eval 'test $(( 1 + 1 )) -eq 2 \
12516 && test "${#_lt_dummy}" -eq 5' ) >/dev/null 2>&1 \
12517 && xsi_shell=yes
12518 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xsi_shell" >&5
12519 $as_echo "$xsi_shell" >&6; }
12522 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands \"+=\"" >&5
12523 $as_echo_n "checking whether the shell understands \"+=\"... " >&6; }
12524 lt_shell_append=no
12525 ( foo=bar; set foo baz; eval "$1+=\$2" && test "$foo" = barbaz ) \
12526 >/dev/null 2>&1 \
12527 && lt_shell_append=yes
12528 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_shell_append" >&5
12529 $as_echo "$lt_shell_append" >&6; }
12532 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
12533 lt_unset=unset
12534 else
12535 lt_unset=false
12542 # test EBCDIC or ASCII
12543 case `echo X|tr X '\101'` in
12544 A) # ASCII based system
12545 # \n is not interpreted correctly by Solaris 8 /usr/ucb/tr
12546 lt_SP2NL='tr \040 \012'
12547 lt_NL2SP='tr \015\012 \040\040'
12549 *) # EBCDIC based system
12550 lt_SP2NL='tr \100 \n'
12551 lt_NL2SP='tr \r\n \100\100'
12553 esac
12563 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $LD option to reload object files" >&5
12564 $as_echo_n "checking for $LD option to reload object files... " >&6; }
12565 if test "${lt_cv_ld_reload_flag+set}" = set; then :
12566 $as_echo_n "(cached) " >&6
12567 else
12568 lt_cv_ld_reload_flag='-r'
12570 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_reload_flag" >&5
12571 $as_echo "$lt_cv_ld_reload_flag" >&6; }
12572 reload_flag=$lt_cv_ld_reload_flag
12573 case $reload_flag in
12574 "" | " "*) ;;
12575 *) reload_flag=" $reload_flag" ;;
12576 esac
12577 reload_cmds='$LD$reload_flag -o $output$reload_objs'
12578 case $host_os in
12579 darwin*)
12580 if test "$GCC" = yes; then
12581 reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r -o $output$reload_objs'
12582 else
12583 reload_cmds='$LD$reload_flag -o $output$reload_objs'
12586 esac
12596 if test -n "$ac_tool_prefix"; then
12597 # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args.
12598 set dummy ${ac_tool_prefix}objdump; ac_word=$2
12599 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12600 $as_echo_n "checking for $ac_word... " >&6; }
12601 if test "${ac_cv_prog_OBJDUMP+set}" = set; then :
12602 $as_echo_n "(cached) " >&6
12603 else
12604 if test -n "$OBJDUMP"; then
12605 ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
12606 else
12607 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12608 for as_dir in $PATH
12610 IFS=$as_save_IFS
12611 test -z "$as_dir" && as_dir=.
12612 for ac_exec_ext in '' $ac_executable_extensions; do
12613 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12614 ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump"
12615 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12616 break 2
12618 done
12619 done
12620 IFS=$as_save_IFS
12624 OBJDUMP=$ac_cv_prog_OBJDUMP
12625 if test -n "$OBJDUMP"; then
12626 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5
12627 $as_echo "$OBJDUMP" >&6; }
12628 else
12629 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12630 $as_echo "no" >&6; }
12635 if test -z "$ac_cv_prog_OBJDUMP"; then
12636 ac_ct_OBJDUMP=$OBJDUMP
12637 # Extract the first word of "objdump", so it can be a program name with args.
12638 set dummy objdump; ac_word=$2
12639 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12640 $as_echo_n "checking for $ac_word... " >&6; }
12641 if test "${ac_cv_prog_ac_ct_OBJDUMP+set}" = set; then :
12642 $as_echo_n "(cached) " >&6
12643 else
12644 if test -n "$ac_ct_OBJDUMP"; then
12645 ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test.
12646 else
12647 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12648 for as_dir in $PATH
12650 IFS=$as_save_IFS
12651 test -z "$as_dir" && as_dir=.
12652 for ac_exec_ext in '' $ac_executable_extensions; do
12653 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12654 ac_cv_prog_ac_ct_OBJDUMP="objdump"
12655 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12656 break 2
12658 done
12659 done
12660 IFS=$as_save_IFS
12664 ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP
12665 if test -n "$ac_ct_OBJDUMP"; then
12666 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5
12667 $as_echo "$ac_ct_OBJDUMP" >&6; }
12668 else
12669 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12670 $as_echo "no" >&6; }
12673 if test "x$ac_ct_OBJDUMP" = x; then
12674 OBJDUMP="false"
12675 else
12676 case $cross_compiling:$ac_tool_warned in
12677 yes:)
12678 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
12679 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
12680 ac_tool_warned=yes ;;
12681 esac
12682 OBJDUMP=$ac_ct_OBJDUMP
12684 else
12685 OBJDUMP="$ac_cv_prog_OBJDUMP"
12688 test -z "$OBJDUMP" && OBJDUMP=objdump
12698 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to recognize dependent libraries" >&5
12699 $as_echo_n "checking how to recognize dependent libraries... " >&6; }
12700 if test "${lt_cv_deplibs_check_method+set}" = set; then :
12701 $as_echo_n "(cached) " >&6
12702 else
12703 lt_cv_file_magic_cmd='$MAGIC_CMD'
12704 lt_cv_file_magic_test_file=
12705 lt_cv_deplibs_check_method='unknown'
12706 # Need to set the preceding variable on all platforms that support
12707 # interlibrary dependencies.
12708 # 'none' -- dependencies not supported.
12709 # `unknown' -- same as none, but documents that we really don't know.
12710 # 'pass_all' -- all dependencies passed with no checks.
12711 # 'test_compile' -- check by making test program.
12712 # 'file_magic [[regex]]' -- check by looking for files in library path
12713 # which responds to the $file_magic_cmd with a given extended regex.
12714 # If you have `file' or equivalent on your system and you're not sure
12715 # whether `pass_all' will *always* work, you probably want this one.
12717 case $host_os in
12718 aix[4-9]*)
12719 lt_cv_deplibs_check_method=pass_all
12722 beos*)
12723 lt_cv_deplibs_check_method=pass_all
12726 bsdi[45]*)
12727 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
12728 lt_cv_file_magic_cmd='/usr/bin/file -L'
12729 lt_cv_file_magic_test_file=/shlib/libc.so
12732 cygwin*)
12733 # func_win32_libid is a shell function defined in ltmain.sh
12734 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
12735 lt_cv_file_magic_cmd='func_win32_libid'
12738 mingw* | pw32*)
12739 # Base MSYS/MinGW do not provide the 'file' command needed by
12740 # func_win32_libid shell function, so use a weaker test based on 'objdump',
12741 # unless we find 'file', for example because we are cross-compiling.
12742 # func_win32_libid assumes BSD nm, so disallow it if using MS dumpbin.
12743 if ( test "$lt_cv_nm_interface" = "BSD nm" && file / ) >/dev/null 2>&1; then
12744 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
12745 lt_cv_file_magic_cmd='func_win32_libid'
12746 else
12747 lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?'
12748 lt_cv_file_magic_cmd='$OBJDUMP -f'
12752 cegcc*)
12753 # use the weaker test based on 'objdump'. See mingw*.
12754 lt_cv_deplibs_check_method='file_magic file format pe-arm-.*little(.*architecture: arm)?'
12755 lt_cv_file_magic_cmd='$OBJDUMP -f'
12758 darwin* | rhapsody*)
12759 lt_cv_deplibs_check_method=pass_all
12762 freebsd* | dragonfly*)
12763 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
12764 case $host_cpu in
12765 i*86 )
12766 # Not sure whether the presence of OpenBSD here was a mistake.
12767 # Let's accept both of them until this is cleared up.
12768 lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
12769 lt_cv_file_magic_cmd=/usr/bin/file
12770 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
12772 esac
12773 else
12774 lt_cv_deplibs_check_method=pass_all
12778 gnu*)
12779 lt_cv_deplibs_check_method=pass_all
12782 haiku*)
12783 lt_cv_deplibs_check_method=pass_all
12786 hpux10.20* | hpux11*)
12787 lt_cv_file_magic_cmd=/usr/bin/file
12788 case $host_cpu in
12789 ia64*)
12790 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
12791 lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
12793 hppa*64*)
12794 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]'
12795 lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
12798 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9]\.[0-9]) shared library'
12799 lt_cv_file_magic_test_file=/usr/lib/libc.sl
12801 esac
12804 interix[3-9]*)
12805 # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
12806 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
12809 irix5* | irix6* | nonstopux*)
12810 case $LD in
12811 *-32|*"-32 ") libmagic=32-bit;;
12812 *-n32|*"-n32 ") libmagic=N32;;
12813 *-64|*"-64 ") libmagic=64-bit;;
12814 *) libmagic=never-match;;
12815 esac
12816 lt_cv_deplibs_check_method=pass_all
12819 # This must be Linux ELF.
12820 linux* | k*bsd*-gnu | kopensolaris*-gnu)
12821 lt_cv_deplibs_check_method=pass_all
12824 netbsd*)
12825 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
12826 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
12827 else
12828 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
12832 newos6*)
12833 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
12834 lt_cv_file_magic_cmd=/usr/bin/file
12835 lt_cv_file_magic_test_file=/usr/lib/libnls.so
12838 *nto* | *qnx*)
12839 lt_cv_deplibs_check_method=pass_all
12842 openbsd*)
12843 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
12844 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
12845 else
12846 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
12850 osf3* | osf4* | osf5*)
12851 lt_cv_deplibs_check_method=pass_all
12854 rdos*)
12855 lt_cv_deplibs_check_method=pass_all
12858 solaris*)
12859 lt_cv_deplibs_check_method=pass_all
12862 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
12863 lt_cv_deplibs_check_method=pass_all
12866 sysv4 | sysv4.3*)
12867 case $host_vendor in
12868 motorola)
12869 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]'
12870 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
12872 ncr)
12873 lt_cv_deplibs_check_method=pass_all
12875 sequent)
12876 lt_cv_file_magic_cmd='/bin/file'
12877 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
12879 sni)
12880 lt_cv_file_magic_cmd='/bin/file'
12881 lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
12882 lt_cv_file_magic_test_file=/lib/libc.so
12884 siemens)
12885 lt_cv_deplibs_check_method=pass_all
12888 lt_cv_deplibs_check_method=pass_all
12890 esac
12893 tpf*)
12894 lt_cv_deplibs_check_method=pass_all
12896 esac
12899 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_deplibs_check_method" >&5
12900 $as_echo "$lt_cv_deplibs_check_method" >&6; }
12901 file_magic_cmd=$lt_cv_file_magic_cmd
12902 deplibs_check_method=$lt_cv_deplibs_check_method
12903 test -z "$deplibs_check_method" && deplibs_check_method=unknown
12916 if test -n "$ac_tool_prefix"; then
12917 # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
12918 set dummy ${ac_tool_prefix}ar; ac_word=$2
12919 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12920 $as_echo_n "checking for $ac_word... " >&6; }
12921 if test "${ac_cv_prog_AR+set}" = set; then :
12922 $as_echo_n "(cached) " >&6
12923 else
12924 if test -n "$AR"; then
12925 ac_cv_prog_AR="$AR" # Let the user override the test.
12926 else
12927 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12928 for as_dir in $PATH
12930 IFS=$as_save_IFS
12931 test -z "$as_dir" && as_dir=.
12932 for ac_exec_ext in '' $ac_executable_extensions; do
12933 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12934 ac_cv_prog_AR="${ac_tool_prefix}ar"
12935 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12936 break 2
12938 done
12939 done
12940 IFS=$as_save_IFS
12944 AR=$ac_cv_prog_AR
12945 if test -n "$AR"; then
12946 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
12947 $as_echo "$AR" >&6; }
12948 else
12949 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12950 $as_echo "no" >&6; }
12955 if test -z "$ac_cv_prog_AR"; then
12956 ac_ct_AR=$AR
12957 # Extract the first word of "ar", so it can be a program name with args.
12958 set dummy ar; ac_word=$2
12959 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12960 $as_echo_n "checking for $ac_word... " >&6; }
12961 if test "${ac_cv_prog_ac_ct_AR+set}" = set; then :
12962 $as_echo_n "(cached) " >&6
12963 else
12964 if test -n "$ac_ct_AR"; then
12965 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
12966 else
12967 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12968 for as_dir in $PATH
12970 IFS=$as_save_IFS
12971 test -z "$as_dir" && as_dir=.
12972 for ac_exec_ext in '' $ac_executable_extensions; do
12973 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12974 ac_cv_prog_ac_ct_AR="ar"
12975 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12976 break 2
12978 done
12979 done
12980 IFS=$as_save_IFS
12984 ac_ct_AR=$ac_cv_prog_ac_ct_AR
12985 if test -n "$ac_ct_AR"; then
12986 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5
12987 $as_echo "$ac_ct_AR" >&6; }
12988 else
12989 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12990 $as_echo "no" >&6; }
12993 if test "x$ac_ct_AR" = x; then
12994 AR="false"
12995 else
12996 case $cross_compiling:$ac_tool_warned in
12997 yes:)
12998 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
12999 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
13000 ac_tool_warned=yes ;;
13001 esac
13002 AR=$ac_ct_AR
13004 else
13005 AR="$ac_cv_prog_AR"
13008 test -z "$AR" && AR=ar
13009 test -z "$AR_FLAGS" && AR_FLAGS=cru
13021 if test -n "$ac_tool_prefix"; then
13022 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
13023 set dummy ${ac_tool_prefix}strip; ac_word=$2
13024 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13025 $as_echo_n "checking for $ac_word... " >&6; }
13026 if test "${ac_cv_prog_STRIP+set}" = set; then :
13027 $as_echo_n "(cached) " >&6
13028 else
13029 if test -n "$STRIP"; then
13030 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
13031 else
13032 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13033 for as_dir in $PATH
13035 IFS=$as_save_IFS
13036 test -z "$as_dir" && as_dir=.
13037 for ac_exec_ext in '' $ac_executable_extensions; do
13038 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
13039 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
13040 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13041 break 2
13043 done
13044 done
13045 IFS=$as_save_IFS
13049 STRIP=$ac_cv_prog_STRIP
13050 if test -n "$STRIP"; then
13051 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
13052 $as_echo "$STRIP" >&6; }
13053 else
13054 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13055 $as_echo "no" >&6; }
13060 if test -z "$ac_cv_prog_STRIP"; then
13061 ac_ct_STRIP=$STRIP
13062 # Extract the first word of "strip", so it can be a program name with args.
13063 set dummy strip; ac_word=$2
13064 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13065 $as_echo_n "checking for $ac_word... " >&6; }
13066 if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then :
13067 $as_echo_n "(cached) " >&6
13068 else
13069 if test -n "$ac_ct_STRIP"; then
13070 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
13071 else
13072 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13073 for as_dir in $PATH
13075 IFS=$as_save_IFS
13076 test -z "$as_dir" && as_dir=.
13077 for ac_exec_ext in '' $ac_executable_extensions; do
13078 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
13079 ac_cv_prog_ac_ct_STRIP="strip"
13080 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13081 break 2
13083 done
13084 done
13085 IFS=$as_save_IFS
13089 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
13090 if test -n "$ac_ct_STRIP"; then
13091 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
13092 $as_echo "$ac_ct_STRIP" >&6; }
13093 else
13094 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13095 $as_echo "no" >&6; }
13098 if test "x$ac_ct_STRIP" = x; then
13099 STRIP=":"
13100 else
13101 case $cross_compiling:$ac_tool_warned in
13102 yes:)
13103 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
13104 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
13105 ac_tool_warned=yes ;;
13106 esac
13107 STRIP=$ac_ct_STRIP
13109 else
13110 STRIP="$ac_cv_prog_STRIP"
13113 test -z "$STRIP" && STRIP=:
13120 if test -n "$ac_tool_prefix"; then
13121 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
13122 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
13123 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13124 $as_echo_n "checking for $ac_word... " >&6; }
13125 if test "${ac_cv_prog_RANLIB+set}" = set; then :
13126 $as_echo_n "(cached) " >&6
13127 else
13128 if test -n "$RANLIB"; then
13129 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
13130 else
13131 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13132 for as_dir in $PATH
13134 IFS=$as_save_IFS
13135 test -z "$as_dir" && as_dir=.
13136 for ac_exec_ext in '' $ac_executable_extensions; do
13137 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
13138 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
13139 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13140 break 2
13142 done
13143 done
13144 IFS=$as_save_IFS
13148 RANLIB=$ac_cv_prog_RANLIB
13149 if test -n "$RANLIB"; then
13150 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
13151 $as_echo "$RANLIB" >&6; }
13152 else
13153 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13154 $as_echo "no" >&6; }
13159 if test -z "$ac_cv_prog_RANLIB"; then
13160 ac_ct_RANLIB=$RANLIB
13161 # Extract the first word of "ranlib", so it can be a program name with args.
13162 set dummy ranlib; ac_word=$2
13163 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13164 $as_echo_n "checking for $ac_word... " >&6; }
13165 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then :
13166 $as_echo_n "(cached) " >&6
13167 else
13168 if test -n "$ac_ct_RANLIB"; then
13169 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
13170 else
13171 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13172 for as_dir in $PATH
13174 IFS=$as_save_IFS
13175 test -z "$as_dir" && as_dir=.
13176 for ac_exec_ext in '' $ac_executable_extensions; do
13177 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
13178 ac_cv_prog_ac_ct_RANLIB="ranlib"
13179 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13180 break 2
13182 done
13183 done
13184 IFS=$as_save_IFS
13188 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
13189 if test -n "$ac_ct_RANLIB"; then
13190 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
13191 $as_echo "$ac_ct_RANLIB" >&6; }
13192 else
13193 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13194 $as_echo "no" >&6; }
13197 if test "x$ac_ct_RANLIB" = x; then
13198 RANLIB=":"
13199 else
13200 case $cross_compiling:$ac_tool_warned in
13201 yes:)
13202 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
13203 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
13204 ac_tool_warned=yes ;;
13205 esac
13206 RANLIB=$ac_ct_RANLIB
13208 else
13209 RANLIB="$ac_cv_prog_RANLIB"
13212 test -z "$RANLIB" && RANLIB=:
13219 # Determine commands to create old-style static archives.
13220 old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs'
13221 old_postinstall_cmds='chmod 644 $oldlib'
13222 old_postuninstall_cmds=
13224 if test -n "$RANLIB"; then
13225 case $host_os in
13226 openbsd*)
13227 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$oldlib"
13230 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$oldlib"
13232 esac
13233 old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib"
13236 case $host_os in
13237 darwin*)
13238 lock_old_archive_extraction=yes ;;
13240 lock_old_archive_extraction=no ;;
13241 esac
13281 # If no C compiler was specified, use CC.
13282 LTCC=${LTCC-"$CC"}
13284 # If no C compiler flags were specified, use CFLAGS.
13285 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
13287 # Allow CC to be a program name with arguments.
13288 compiler=$CC
13291 # Check for command to grab the raw symbol name followed by C symbol from nm.
13292 { $as_echo "$as_me:${as_lineno-$LINENO}: checking command to parse $NM output from $compiler object" >&5
13293 $as_echo_n "checking command to parse $NM output from $compiler object... " >&6; }
13294 if test "${lt_cv_sys_global_symbol_pipe+set}" = set; then :
13295 $as_echo_n "(cached) " >&6
13296 else
13298 # These are sane defaults that work on at least a few old systems.
13299 # [They come from Ultrix. What could be older than Ultrix?!! ;)]
13301 # Character class describing NM global symbol codes.
13302 symcode='[BCDEGRST]'
13304 # Regexp to match symbols that can be accessed directly from C.
13305 sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
13307 # Define system-specific variables.
13308 case $host_os in
13309 aix*)
13310 symcode='[BCDT]'
13312 cygwin* | mingw* | pw32* | cegcc*)
13313 symcode='[ABCDGISTW]'
13315 hpux*)
13316 if test "$host_cpu" = ia64; then
13317 symcode='[ABCDEGRST]'
13320 irix* | nonstopux*)
13321 symcode='[BCDEGRST]'
13323 osf*)
13324 symcode='[BCDEGQRST]'
13326 solaris*)
13327 symcode='[BDRT]'
13329 sco3.2v5*)
13330 symcode='[DT]'
13332 sysv4.2uw2*)
13333 symcode='[DT]'
13335 sysv5* | sco5v6* | unixware* | OpenUNIX*)
13336 symcode='[ABDT]'
13338 sysv4)
13339 symcode='[DFNSTU]'
13341 esac
13343 # If we're using GNU nm, then use its standard symbol codes.
13344 case `$NM -V 2>&1` in
13345 *GNU* | *'with BFD'*)
13346 symcode='[ABCDGIRSTW]' ;;
13347 esac
13349 # Transform an extracted symbol line into a proper C declaration.
13350 # Some systems (esp. on ia64) link data and code symbols differently,
13351 # so use this general approach.
13352 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
13354 # Transform an extracted symbol line into symbol name and symbol address
13355 lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([^ ]*\) $/ {\\\"\1\\\", (void *) 0},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/ {\"\2\", (void *) \&\2},/p'"
13356 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'"
13358 # Handle CRLF in mingw tool chain
13359 opt_cr=
13360 case $build_os in
13361 mingw*)
13362 opt_cr=`$ECHO 'x\{0,1\}' | tr x '\015'` # option cr in regexp
13364 esac
13366 # Try without a prefix underscore, then with it.
13367 for ac_symprfx in "" "_"; do
13369 # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
13370 symxfrm="\\1 $ac_symprfx\\2 \\2"
13372 # Write the raw and C identifiers.
13373 if test "$lt_cv_nm_interface" = "MS dumpbin"; then
13374 # Fake it for dumpbin and say T for any non-static function
13375 # and D for any global variable.
13376 # Also find C++ and __fastcall symbols from MSVC++,
13377 # which start with @ or ?.
13378 lt_cv_sys_global_symbol_pipe="$AWK '"\
13379 " {last_section=section; section=\$ 3};"\
13380 " /Section length .*#relocs.*(pick any)/{hide[last_section]=1};"\
13381 " \$ 0!~/External *\|/{next};"\
13382 " / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};"\
13383 " {if(hide[section]) next};"\
13384 " {f=0}; \$ 0~/\(\).*\|/{f=1}; {printf f ? \"T \" : \"D \"};"\
13385 " {split(\$ 0, a, /\||\r/); split(a[2], s)};"\
13386 " s[1]~/^[@?]/{print s[1], s[1]; next};"\
13387 " s[1]~prfx {split(s[1],t,\"@\"); print t[1], substr(t[1],length(prfx))}"\
13388 " ' prfx=^$ac_symprfx"
13389 else
13390 lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
13393 # Check to see that the pipe works correctly.
13394 pipe_works=no
13396 rm -f conftest*
13397 cat > conftest.$ac_ext <<_LT_EOF
13398 #ifdef __cplusplus
13399 extern "C" {
13400 #endif
13401 char nm_test_var;
13402 void nm_test_func(void);
13403 void nm_test_func(void){}
13404 #ifdef __cplusplus
13406 #endif
13407 int main(){nm_test_var='a';nm_test_func();return(0);}
13408 _LT_EOF
13410 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
13411 (eval $ac_compile) 2>&5
13412 ac_status=$?
13413 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
13414 test $ac_status = 0; }; then
13415 # Now try to grab the symbols.
13416 nlist=conftest.nm
13417 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist\""; } >&5
13418 (eval $NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist) 2>&5
13419 ac_status=$?
13420 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
13421 test $ac_status = 0; } && test -s "$nlist"; then
13422 # Try sorting and uniquifying the output.
13423 if sort "$nlist" | uniq > "$nlist"T; then
13424 mv -f "$nlist"T "$nlist"
13425 else
13426 rm -f "$nlist"T
13429 # Make sure that we snagged all the symbols we need.
13430 if $GREP ' nm_test_var$' "$nlist" >/dev/null; then
13431 if $GREP ' nm_test_func$' "$nlist" >/dev/null; then
13432 cat <<_LT_EOF > conftest.$ac_ext
13433 #ifdef __cplusplus
13434 extern "C" {
13435 #endif
13437 _LT_EOF
13438 # Now generate the symbol file.
13439 eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | $GREP -v main >> conftest.$ac_ext'
13441 cat <<_LT_EOF >> conftest.$ac_ext
13443 /* The mapping between symbol names and symbols. */
13444 const struct {
13445 const char *name;
13446 void *address;
13448 lt__PROGRAM__LTX_preloaded_symbols[] =
13450 { "@PROGRAM@", (void *) 0 },
13451 _LT_EOF
13452 $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/ {\"\2\", (void *) \&\2},/" < "$nlist" | $GREP -v main >> conftest.$ac_ext
13453 cat <<\_LT_EOF >> conftest.$ac_ext
13454 {0, (void *) 0}
13457 /* This works around a problem in FreeBSD linker */
13458 #ifdef FREEBSD_WORKAROUND
13459 static const void *lt_preloaded_setup() {
13460 return lt__PROGRAM__LTX_preloaded_symbols;
13462 #endif
13464 #ifdef __cplusplus
13466 #endif
13467 _LT_EOF
13468 # Now try linking the two files.
13469 mv conftest.$ac_objext conftstm.$ac_objext
13470 lt_save_LIBS="$LIBS"
13471 lt_save_CFLAGS="$CFLAGS"
13472 LIBS="conftstm.$ac_objext"
13473 CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
13474 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
13475 (eval $ac_link) 2>&5
13476 ac_status=$?
13477 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
13478 test $ac_status = 0; } && test -s conftest${ac_exeext}; then
13479 pipe_works=yes
13481 LIBS="$lt_save_LIBS"
13482 CFLAGS="$lt_save_CFLAGS"
13483 else
13484 echo "cannot find nm_test_func in $nlist" >&5
13486 else
13487 echo "cannot find nm_test_var in $nlist" >&5
13489 else
13490 echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
13492 else
13493 echo "$progname: failed program was:" >&5
13494 cat conftest.$ac_ext >&5
13496 rm -rf conftest* conftst*
13498 # Do not use the global_symbol_pipe unless it works.
13499 if test "$pipe_works" = yes; then
13500 break
13501 else
13502 lt_cv_sys_global_symbol_pipe=
13504 done
13508 if test -z "$lt_cv_sys_global_symbol_pipe"; then
13509 lt_cv_sys_global_symbol_to_cdecl=
13511 if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
13512 { $as_echo "$as_me:${as_lineno-$LINENO}: result: failed" >&5
13513 $as_echo "failed" >&6; }
13514 else
13515 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5
13516 $as_echo "ok" >&6; }
13540 # Check whether --enable-libtool-lock was given.
13541 if test "${enable_libtool_lock+set}" = set; then :
13542 enableval=$enable_libtool_lock;
13545 test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
13547 # Some flags need to be propagated to the compiler or linker for good
13548 # libtool support.
13549 case $host in
13550 ia64-*-hpux*)
13551 # Find out which ABI we are using.
13552 echo 'int i;' > conftest.$ac_ext
13553 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
13554 (eval $ac_compile) 2>&5
13555 ac_status=$?
13556 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
13557 test $ac_status = 0; }; then
13558 case `/usr/bin/file conftest.$ac_objext` in
13559 *ELF-32*)
13560 HPUX_IA64_MODE="32"
13562 *ELF-64*)
13563 HPUX_IA64_MODE="64"
13565 esac
13567 rm -rf conftest*
13569 *-*-irix6*)
13570 # Find out which ABI we are using.
13571 echo '#line '$LINENO' "configure"' > conftest.$ac_ext
13572 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
13573 (eval $ac_compile) 2>&5
13574 ac_status=$?
13575 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
13576 test $ac_status = 0; }; then
13577 if test "$lt_cv_prog_gnu_ld" = yes; then
13578 case `/usr/bin/file conftest.$ac_objext` in
13579 *32-bit*)
13580 LD="${LD-ld} -melf32bsmip"
13582 *N32*)
13583 LD="${LD-ld} -melf32bmipn32"
13585 *64-bit*)
13586 LD="${LD-ld} -melf64bmip"
13588 esac
13589 else
13590 case `/usr/bin/file conftest.$ac_objext` in
13591 *32-bit*)
13592 LD="${LD-ld} -32"
13594 *N32*)
13595 LD="${LD-ld} -n32"
13597 *64-bit*)
13598 LD="${LD-ld} -64"
13600 esac
13603 rm -rf conftest*
13606 x86_64-*kfreebsd*-gnu|x86_64-*linux*|powerpc*-*linux*| \
13607 s390*-*linux*|s390*-*tpf*|sparc*-*linux*)
13608 # Find out which ABI we are using.
13609 echo 'int i;' > conftest.$ac_ext
13610 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
13611 (eval $ac_compile) 2>&5
13612 ac_status=$?
13613 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
13614 test $ac_status = 0; }; then
13615 case `/usr/bin/file conftest.o` in
13616 *32-bit*)
13617 case $host in
13618 x86_64-*kfreebsd*-gnu)
13619 LD="${LD-ld} -m elf_i386_fbsd"
13621 x86_64-*linux*)
13622 case `/usr/bin/file conftest.o` in
13623 *x86-64*)
13624 LD="${LD-ld} -m elf32_x86_64"
13627 LD="${LD-ld} -m elf_i386"
13629 esac
13631 powerpc64le-*linux*)
13632 LD="${LD-ld} -m elf32lppclinux"
13634 powerpc64-*linux*)
13635 LD="${LD-ld} -m elf32ppclinux"
13637 s390x-*linux*)
13638 LD="${LD-ld} -m elf_s390"
13640 sparc64-*linux*)
13641 LD="${LD-ld} -m elf32_sparc"
13643 esac
13645 *64-bit*)
13646 case $host in
13647 x86_64-*kfreebsd*-gnu)
13648 LD="${LD-ld} -m elf_x86_64_fbsd"
13650 x86_64-*linux*)
13651 LD="${LD-ld} -m elf_x86_64"
13653 powerpcle-*linux*)
13654 LD="${LD-ld} -m elf64lppc"
13656 powerpc-*linux*)
13657 LD="${LD-ld} -m elf64ppc"
13659 s390*-*linux*|s390*-*tpf*)
13660 LD="${LD-ld} -m elf64_s390"
13662 sparc*-*linux*)
13663 LD="${LD-ld} -m elf64_sparc"
13665 esac
13667 esac
13669 rm -rf conftest*
13672 *-*-sco3.2v5*)
13673 # On SCO OpenServer 5, we need -belf to get full-featured binaries.
13674 SAVE_CFLAGS="$CFLAGS"
13675 CFLAGS="$CFLAGS -belf"
13676 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler needs -belf" >&5
13677 $as_echo_n "checking whether the C compiler needs -belf... " >&6; }
13678 if test "${lt_cv_cc_needs_belf+set}" = set; then :
13679 $as_echo_n "(cached) " >&6
13680 else
13681 ac_ext=c
13682 ac_cpp='$CPP $CPPFLAGS'
13683 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
13684 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13685 ac_compiler_gnu=$ac_cv_c_compiler_gnu
13687 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13688 /* end confdefs.h. */
13691 main ()
13695 return 0;
13697 _ACEOF
13698 if ac_fn_c_try_link "$LINENO"; then :
13699 lt_cv_cc_needs_belf=yes
13700 else
13701 lt_cv_cc_needs_belf=no
13703 rm -f core conftest.err conftest.$ac_objext \
13704 conftest$ac_exeext conftest.$ac_ext
13705 ac_ext=c
13706 ac_cpp='$CPP $CPPFLAGS'
13707 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
13708 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13709 ac_compiler_gnu=$ac_cv_c_compiler_gnu
13712 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_cc_needs_belf" >&5
13713 $as_echo "$lt_cv_cc_needs_belf" >&6; }
13714 if test x"$lt_cv_cc_needs_belf" != x"yes"; then
13715 # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
13716 CFLAGS="$SAVE_CFLAGS"
13719 sparc*-*solaris*)
13720 # Find out which ABI we are using.
13721 echo 'int i;' > conftest.$ac_ext
13722 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
13723 (eval $ac_compile) 2>&5
13724 ac_status=$?
13725 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
13726 test $ac_status = 0; }; then
13727 case `/usr/bin/file conftest.o` in
13728 *64-bit*)
13729 case $lt_cv_prog_gnu_ld in
13730 yes*) LD="${LD-ld} -m elf64_sparc" ;;
13732 if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then
13733 LD="${LD-ld} -64"
13736 esac
13738 esac
13740 rm -rf conftest*
13742 esac
13744 need_locks="$enable_libtool_lock"
13747 case $host_os in
13748 rhapsody* | darwin*)
13749 if test -n "$ac_tool_prefix"; then
13750 # Extract the first word of "${ac_tool_prefix}dsymutil", so it can be a program name with args.
13751 set dummy ${ac_tool_prefix}dsymutil; ac_word=$2
13752 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13753 $as_echo_n "checking for $ac_word... " >&6; }
13754 if test "${ac_cv_prog_DSYMUTIL+set}" = set; then :
13755 $as_echo_n "(cached) " >&6
13756 else
13757 if test -n "$DSYMUTIL"; then
13758 ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test.
13759 else
13760 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13761 for as_dir in $PATH
13763 IFS=$as_save_IFS
13764 test -z "$as_dir" && as_dir=.
13765 for ac_exec_ext in '' $ac_executable_extensions; do
13766 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
13767 ac_cv_prog_DSYMUTIL="${ac_tool_prefix}dsymutil"
13768 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13769 break 2
13771 done
13772 done
13773 IFS=$as_save_IFS
13777 DSYMUTIL=$ac_cv_prog_DSYMUTIL
13778 if test -n "$DSYMUTIL"; then
13779 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DSYMUTIL" >&5
13780 $as_echo "$DSYMUTIL" >&6; }
13781 else
13782 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13783 $as_echo "no" >&6; }
13788 if test -z "$ac_cv_prog_DSYMUTIL"; then
13789 ac_ct_DSYMUTIL=$DSYMUTIL
13790 # Extract the first word of "dsymutil", so it can be a program name with args.
13791 set dummy dsymutil; ac_word=$2
13792 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13793 $as_echo_n "checking for $ac_word... " >&6; }
13794 if test "${ac_cv_prog_ac_ct_DSYMUTIL+set}" = set; then :
13795 $as_echo_n "(cached) " >&6
13796 else
13797 if test -n "$ac_ct_DSYMUTIL"; then
13798 ac_cv_prog_ac_ct_DSYMUTIL="$ac_ct_DSYMUTIL" # Let the user override the test.
13799 else
13800 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13801 for as_dir in $PATH
13803 IFS=$as_save_IFS
13804 test -z "$as_dir" && as_dir=.
13805 for ac_exec_ext in '' $ac_executable_extensions; do
13806 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
13807 ac_cv_prog_ac_ct_DSYMUTIL="dsymutil"
13808 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13809 break 2
13811 done
13812 done
13813 IFS=$as_save_IFS
13817 ac_ct_DSYMUTIL=$ac_cv_prog_ac_ct_DSYMUTIL
13818 if test -n "$ac_ct_DSYMUTIL"; then
13819 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DSYMUTIL" >&5
13820 $as_echo "$ac_ct_DSYMUTIL" >&6; }
13821 else
13822 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13823 $as_echo "no" >&6; }
13826 if test "x$ac_ct_DSYMUTIL" = x; then
13827 DSYMUTIL=":"
13828 else
13829 case $cross_compiling:$ac_tool_warned in
13830 yes:)
13831 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
13832 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
13833 ac_tool_warned=yes ;;
13834 esac
13835 DSYMUTIL=$ac_ct_DSYMUTIL
13837 else
13838 DSYMUTIL="$ac_cv_prog_DSYMUTIL"
13841 if test -n "$ac_tool_prefix"; then
13842 # Extract the first word of "${ac_tool_prefix}nmedit", so it can be a program name with args.
13843 set dummy ${ac_tool_prefix}nmedit; ac_word=$2
13844 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13845 $as_echo_n "checking for $ac_word... " >&6; }
13846 if test "${ac_cv_prog_NMEDIT+set}" = set; then :
13847 $as_echo_n "(cached) " >&6
13848 else
13849 if test -n "$NMEDIT"; then
13850 ac_cv_prog_NMEDIT="$NMEDIT" # Let the user override the test.
13851 else
13852 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13853 for as_dir in $PATH
13855 IFS=$as_save_IFS
13856 test -z "$as_dir" && as_dir=.
13857 for ac_exec_ext in '' $ac_executable_extensions; do
13858 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
13859 ac_cv_prog_NMEDIT="${ac_tool_prefix}nmedit"
13860 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13861 break 2
13863 done
13864 done
13865 IFS=$as_save_IFS
13869 NMEDIT=$ac_cv_prog_NMEDIT
13870 if test -n "$NMEDIT"; then
13871 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NMEDIT" >&5
13872 $as_echo "$NMEDIT" >&6; }
13873 else
13874 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13875 $as_echo "no" >&6; }
13880 if test -z "$ac_cv_prog_NMEDIT"; then
13881 ac_ct_NMEDIT=$NMEDIT
13882 # Extract the first word of "nmedit", so it can be a program name with args.
13883 set dummy nmedit; ac_word=$2
13884 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13885 $as_echo_n "checking for $ac_word... " >&6; }
13886 if test "${ac_cv_prog_ac_ct_NMEDIT+set}" = set; then :
13887 $as_echo_n "(cached) " >&6
13888 else
13889 if test -n "$ac_ct_NMEDIT"; then
13890 ac_cv_prog_ac_ct_NMEDIT="$ac_ct_NMEDIT" # Let the user override the test.
13891 else
13892 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13893 for as_dir in $PATH
13895 IFS=$as_save_IFS
13896 test -z "$as_dir" && as_dir=.
13897 for ac_exec_ext in '' $ac_executable_extensions; do
13898 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
13899 ac_cv_prog_ac_ct_NMEDIT="nmedit"
13900 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13901 break 2
13903 done
13904 done
13905 IFS=$as_save_IFS
13909 ac_ct_NMEDIT=$ac_cv_prog_ac_ct_NMEDIT
13910 if test -n "$ac_ct_NMEDIT"; then
13911 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_NMEDIT" >&5
13912 $as_echo "$ac_ct_NMEDIT" >&6; }
13913 else
13914 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13915 $as_echo "no" >&6; }
13918 if test "x$ac_ct_NMEDIT" = x; then
13919 NMEDIT=":"
13920 else
13921 case $cross_compiling:$ac_tool_warned in
13922 yes:)
13923 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
13924 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
13925 ac_tool_warned=yes ;;
13926 esac
13927 NMEDIT=$ac_ct_NMEDIT
13929 else
13930 NMEDIT="$ac_cv_prog_NMEDIT"
13933 if test -n "$ac_tool_prefix"; then
13934 # Extract the first word of "${ac_tool_prefix}lipo", so it can be a program name with args.
13935 set dummy ${ac_tool_prefix}lipo; ac_word=$2
13936 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13937 $as_echo_n "checking for $ac_word... " >&6; }
13938 if test "${ac_cv_prog_LIPO+set}" = set; then :
13939 $as_echo_n "(cached) " >&6
13940 else
13941 if test -n "$LIPO"; then
13942 ac_cv_prog_LIPO="$LIPO" # Let the user override the test.
13943 else
13944 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13945 for as_dir in $PATH
13947 IFS=$as_save_IFS
13948 test -z "$as_dir" && as_dir=.
13949 for ac_exec_ext in '' $ac_executable_extensions; do
13950 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
13951 ac_cv_prog_LIPO="${ac_tool_prefix}lipo"
13952 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13953 break 2
13955 done
13956 done
13957 IFS=$as_save_IFS
13961 LIPO=$ac_cv_prog_LIPO
13962 if test -n "$LIPO"; then
13963 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO" >&5
13964 $as_echo "$LIPO" >&6; }
13965 else
13966 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13967 $as_echo "no" >&6; }
13972 if test -z "$ac_cv_prog_LIPO"; then
13973 ac_ct_LIPO=$LIPO
13974 # Extract the first word of "lipo", so it can be a program name with args.
13975 set dummy lipo; ac_word=$2
13976 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13977 $as_echo_n "checking for $ac_word... " >&6; }
13978 if test "${ac_cv_prog_ac_ct_LIPO+set}" = set; then :
13979 $as_echo_n "(cached) " >&6
13980 else
13981 if test -n "$ac_ct_LIPO"; then
13982 ac_cv_prog_ac_ct_LIPO="$ac_ct_LIPO" # Let the user override the test.
13983 else
13984 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13985 for as_dir in $PATH
13987 IFS=$as_save_IFS
13988 test -z "$as_dir" && as_dir=.
13989 for ac_exec_ext in '' $ac_executable_extensions; do
13990 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
13991 ac_cv_prog_ac_ct_LIPO="lipo"
13992 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13993 break 2
13995 done
13996 done
13997 IFS=$as_save_IFS
14001 ac_ct_LIPO=$ac_cv_prog_ac_ct_LIPO
14002 if test -n "$ac_ct_LIPO"; then
14003 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_LIPO" >&5
14004 $as_echo "$ac_ct_LIPO" >&6; }
14005 else
14006 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14007 $as_echo "no" >&6; }
14010 if test "x$ac_ct_LIPO" = x; then
14011 LIPO=":"
14012 else
14013 case $cross_compiling:$ac_tool_warned in
14014 yes:)
14015 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
14016 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
14017 ac_tool_warned=yes ;;
14018 esac
14019 LIPO=$ac_ct_LIPO
14021 else
14022 LIPO="$ac_cv_prog_LIPO"
14025 if test -n "$ac_tool_prefix"; then
14026 # Extract the first word of "${ac_tool_prefix}otool", so it can be a program name with args.
14027 set dummy ${ac_tool_prefix}otool; ac_word=$2
14028 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
14029 $as_echo_n "checking for $ac_word... " >&6; }
14030 if test "${ac_cv_prog_OTOOL+set}" = set; then :
14031 $as_echo_n "(cached) " >&6
14032 else
14033 if test -n "$OTOOL"; then
14034 ac_cv_prog_OTOOL="$OTOOL" # Let the user override the test.
14035 else
14036 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14037 for as_dir in $PATH
14039 IFS=$as_save_IFS
14040 test -z "$as_dir" && as_dir=.
14041 for ac_exec_ext in '' $ac_executable_extensions; do
14042 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
14043 ac_cv_prog_OTOOL="${ac_tool_prefix}otool"
14044 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
14045 break 2
14047 done
14048 done
14049 IFS=$as_save_IFS
14053 OTOOL=$ac_cv_prog_OTOOL
14054 if test -n "$OTOOL"; then
14055 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL" >&5
14056 $as_echo "$OTOOL" >&6; }
14057 else
14058 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14059 $as_echo "no" >&6; }
14064 if test -z "$ac_cv_prog_OTOOL"; then
14065 ac_ct_OTOOL=$OTOOL
14066 # Extract the first word of "otool", so it can be a program name with args.
14067 set dummy otool; ac_word=$2
14068 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
14069 $as_echo_n "checking for $ac_word... " >&6; }
14070 if test "${ac_cv_prog_ac_ct_OTOOL+set}" = set; then :
14071 $as_echo_n "(cached) " >&6
14072 else
14073 if test -n "$ac_ct_OTOOL"; then
14074 ac_cv_prog_ac_ct_OTOOL="$ac_ct_OTOOL" # Let the user override the test.
14075 else
14076 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14077 for as_dir in $PATH
14079 IFS=$as_save_IFS
14080 test -z "$as_dir" && as_dir=.
14081 for ac_exec_ext in '' $ac_executable_extensions; do
14082 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
14083 ac_cv_prog_ac_ct_OTOOL="otool"
14084 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
14085 break 2
14087 done
14088 done
14089 IFS=$as_save_IFS
14093 ac_ct_OTOOL=$ac_cv_prog_ac_ct_OTOOL
14094 if test -n "$ac_ct_OTOOL"; then
14095 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL" >&5
14096 $as_echo "$ac_ct_OTOOL" >&6; }
14097 else
14098 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14099 $as_echo "no" >&6; }
14102 if test "x$ac_ct_OTOOL" = x; then
14103 OTOOL=":"
14104 else
14105 case $cross_compiling:$ac_tool_warned in
14106 yes:)
14107 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
14108 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
14109 ac_tool_warned=yes ;;
14110 esac
14111 OTOOL=$ac_ct_OTOOL
14113 else
14114 OTOOL="$ac_cv_prog_OTOOL"
14117 if test -n "$ac_tool_prefix"; then
14118 # Extract the first word of "${ac_tool_prefix}otool64", so it can be a program name with args.
14119 set dummy ${ac_tool_prefix}otool64; ac_word=$2
14120 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
14121 $as_echo_n "checking for $ac_word... " >&6; }
14122 if test "${ac_cv_prog_OTOOL64+set}" = set; then :
14123 $as_echo_n "(cached) " >&6
14124 else
14125 if test -n "$OTOOL64"; then
14126 ac_cv_prog_OTOOL64="$OTOOL64" # Let the user override the test.
14127 else
14128 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14129 for as_dir in $PATH
14131 IFS=$as_save_IFS
14132 test -z "$as_dir" && as_dir=.
14133 for ac_exec_ext in '' $ac_executable_extensions; do
14134 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
14135 ac_cv_prog_OTOOL64="${ac_tool_prefix}otool64"
14136 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
14137 break 2
14139 done
14140 done
14141 IFS=$as_save_IFS
14145 OTOOL64=$ac_cv_prog_OTOOL64
14146 if test -n "$OTOOL64"; then
14147 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL64" >&5
14148 $as_echo "$OTOOL64" >&6; }
14149 else
14150 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14151 $as_echo "no" >&6; }
14156 if test -z "$ac_cv_prog_OTOOL64"; then
14157 ac_ct_OTOOL64=$OTOOL64
14158 # Extract the first word of "otool64", so it can be a program name with args.
14159 set dummy otool64; ac_word=$2
14160 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
14161 $as_echo_n "checking for $ac_word... " >&6; }
14162 if test "${ac_cv_prog_ac_ct_OTOOL64+set}" = set; then :
14163 $as_echo_n "(cached) " >&6
14164 else
14165 if test -n "$ac_ct_OTOOL64"; then
14166 ac_cv_prog_ac_ct_OTOOL64="$ac_ct_OTOOL64" # Let the user override the test.
14167 else
14168 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14169 for as_dir in $PATH
14171 IFS=$as_save_IFS
14172 test -z "$as_dir" && as_dir=.
14173 for ac_exec_ext in '' $ac_executable_extensions; do
14174 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
14175 ac_cv_prog_ac_ct_OTOOL64="otool64"
14176 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
14177 break 2
14179 done
14180 done
14181 IFS=$as_save_IFS
14185 ac_ct_OTOOL64=$ac_cv_prog_ac_ct_OTOOL64
14186 if test -n "$ac_ct_OTOOL64"; then
14187 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL64" >&5
14188 $as_echo "$ac_ct_OTOOL64" >&6; }
14189 else
14190 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14191 $as_echo "no" >&6; }
14194 if test "x$ac_ct_OTOOL64" = x; then
14195 OTOOL64=":"
14196 else
14197 case $cross_compiling:$ac_tool_warned in
14198 yes:)
14199 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
14200 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
14201 ac_tool_warned=yes ;;
14202 esac
14203 OTOOL64=$ac_ct_OTOOL64
14205 else
14206 OTOOL64="$ac_cv_prog_OTOOL64"
14235 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -single_module linker flag" >&5
14236 $as_echo_n "checking for -single_module linker flag... " >&6; }
14237 if test "${lt_cv_apple_cc_single_mod+set}" = set; then :
14238 $as_echo_n "(cached) " >&6
14239 else
14240 lt_cv_apple_cc_single_mod=no
14241 if test -z "${LT_MULTI_MODULE}"; then
14242 # By default we will add the -single_module flag. You can override
14243 # by either setting the environment variable LT_MULTI_MODULE
14244 # non-empty at configure time, or by adding -multi_module to the
14245 # link flags.
14246 rm -rf libconftest.dylib*
14247 echo "int foo(void){return 1;}" > conftest.c
14248 echo "$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
14249 -dynamiclib -Wl,-single_module conftest.c" >&5
14250 $LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
14251 -dynamiclib -Wl,-single_module conftest.c 2>conftest.err
14252 _lt_result=$?
14253 if test -f libconftest.dylib && test ! -s conftest.err && test $_lt_result = 0; then
14254 lt_cv_apple_cc_single_mod=yes
14255 else
14256 cat conftest.err >&5
14258 rm -rf libconftest.dylib*
14259 rm -f conftest.*
14262 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_apple_cc_single_mod" >&5
14263 $as_echo "$lt_cv_apple_cc_single_mod" >&6; }
14264 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -exported_symbols_list linker flag" >&5
14265 $as_echo_n "checking for -exported_symbols_list linker flag... " >&6; }
14266 if test "${lt_cv_ld_exported_symbols_list+set}" = set; then :
14267 $as_echo_n "(cached) " >&6
14268 else
14269 lt_cv_ld_exported_symbols_list=no
14270 save_LDFLAGS=$LDFLAGS
14271 echo "_main" > conftest.sym
14272 LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym"
14273 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14274 /* end confdefs.h. */
14277 main ()
14281 return 0;
14283 _ACEOF
14284 if ac_fn_c_try_link "$LINENO"; then :
14285 lt_cv_ld_exported_symbols_list=yes
14286 else
14287 lt_cv_ld_exported_symbols_list=no
14289 rm -f core conftest.err conftest.$ac_objext \
14290 conftest$ac_exeext conftest.$ac_ext
14291 LDFLAGS="$save_LDFLAGS"
14294 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_exported_symbols_list" >&5
14295 $as_echo "$lt_cv_ld_exported_symbols_list" >&6; }
14296 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -force_load linker flag" >&5
14297 $as_echo_n "checking for -force_load linker flag... " >&6; }
14298 if test "${lt_cv_ld_force_load+set}" = set; then :
14299 $as_echo_n "(cached) " >&6
14300 else
14301 lt_cv_ld_force_load=no
14302 cat > conftest.c << _LT_EOF
14303 int forced_loaded() { return 2;}
14304 _LT_EOF
14305 echo "$LTCC $LTCFLAGS -c -o conftest.o conftest.c" >&5
14306 $LTCC $LTCFLAGS -c -o conftest.o conftest.c 2>&5
14307 echo "$AR cru libconftest.a conftest.o" >&5
14308 $AR cru libconftest.a conftest.o 2>&5
14309 cat > conftest.c << _LT_EOF
14310 int main() { return 0;}
14311 _LT_EOF
14312 echo "$LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a" >&5
14313 $LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a 2>conftest.err
14314 _lt_result=$?
14315 if test -f conftest && test ! -s conftest.err && test $_lt_result = 0 && $GREP forced_load conftest 2>&1 >/dev/null; then
14316 lt_cv_ld_force_load=yes
14317 else
14318 cat conftest.err >&5
14320 rm -f conftest.err libconftest.a conftest conftest.c
14321 rm -rf conftest.dSYM
14324 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_force_load" >&5
14325 $as_echo "$lt_cv_ld_force_load" >&6; }
14326 case $host_os in
14327 rhapsody* | darwin1.[012])
14328 _lt_dar_allow_undefined='${wl}-undefined ${wl}suppress' ;;
14329 darwin1.*)
14330 _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
14331 darwin*) # darwin 5.x on
14332 # if running on 10.5 or later, the deployment target defaults
14333 # to the OS version, if on x86, and 10.4, the deployment
14334 # target defaults to 10.4. Don't you love it?
14335 case ${MACOSX_DEPLOYMENT_TARGET-10.0},$host in
14336 10.0,*86*-darwin8*|10.0,*-darwin[91]*)
14337 _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
14338 10.[012]*)
14339 _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
14340 10.*)
14341 _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
14342 esac
14344 esac
14345 if test "$lt_cv_apple_cc_single_mod" = "yes"; then
14346 _lt_dar_single_mod='$single_module'
14348 if test "$lt_cv_ld_exported_symbols_list" = "yes"; then
14349 _lt_dar_export_syms=' ${wl}-exported_symbols_list,$output_objdir/${libname}-symbols.expsym'
14350 else
14351 _lt_dar_export_syms='~$NMEDIT -s $output_objdir/${libname}-symbols.expsym ${lib}'
14353 if test "$DSYMUTIL" != ":" && test "$lt_cv_ld_force_load" = "no"; then
14354 _lt_dsymutil='~$DSYMUTIL $lib || :'
14355 else
14356 _lt_dsymutil=
14359 esac
14361 for ac_header in dlfcn.h
14362 do :
14363 ac_fn_c_check_header_preproc "$LINENO" "dlfcn.h" "ac_cv_header_dlfcn_h"
14364 if test "x$ac_cv_header_dlfcn_h" = x""yes; then :
14365 cat >>confdefs.h <<_ACEOF
14366 #define HAVE_DLFCN_H 1
14367 _ACEOF
14370 done
14376 # Set options
14380 enable_dlopen=no
14383 enable_win32_dll=no
14386 # Check whether --enable-shared was given.
14387 if test "${enable_shared+set}" = set; then :
14388 enableval=$enable_shared; p=${PACKAGE-default}
14389 case $enableval in
14390 yes) enable_shared=yes ;;
14391 no) enable_shared=no ;;
14393 enable_shared=no
14394 # Look at the argument we got. We use all the common list separators.
14395 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
14396 for pkg in $enableval; do
14397 IFS="$lt_save_ifs"
14398 if test "X$pkg" = "X$p"; then
14399 enable_shared=yes
14401 done
14402 IFS="$lt_save_ifs"
14404 esac
14405 else
14406 enable_shared=yes
14417 # Check whether --enable-static was given.
14418 if test "${enable_static+set}" = set; then :
14419 enableval=$enable_static; p=${PACKAGE-default}
14420 case $enableval in
14421 yes) enable_static=yes ;;
14422 no) enable_static=no ;;
14424 enable_static=no
14425 # Look at the argument we got. We use all the common list separators.
14426 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
14427 for pkg in $enableval; do
14428 IFS="$lt_save_ifs"
14429 if test "X$pkg" = "X$p"; then
14430 enable_static=yes
14432 done
14433 IFS="$lt_save_ifs"
14435 esac
14436 else
14437 enable_static=yes
14449 # Check whether --with-pic was given.
14450 if test "${with_pic+set}" = set; then :
14451 withval=$with_pic; pic_mode="$withval"
14452 else
14453 pic_mode=default
14457 test -z "$pic_mode" && pic_mode=default
14465 # Check whether --enable-fast-install was given.
14466 if test "${enable_fast_install+set}" = set; then :
14467 enableval=$enable_fast_install; p=${PACKAGE-default}
14468 case $enableval in
14469 yes) enable_fast_install=yes ;;
14470 no) enable_fast_install=no ;;
14472 enable_fast_install=no
14473 # Look at the argument we got. We use all the common list separators.
14474 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
14475 for pkg in $enableval; do
14476 IFS="$lt_save_ifs"
14477 if test "X$pkg" = "X$p"; then
14478 enable_fast_install=yes
14480 done
14481 IFS="$lt_save_ifs"
14483 esac
14484 else
14485 enable_fast_install=yes
14498 # This can be used to rebuild libtool when needed
14499 LIBTOOL_DEPS="$ltmain"
14501 # Always use our own libtool.
14502 LIBTOOL='$(SHELL) $(top_builddir)/libtool'
14529 test -z "$LN_S" && LN_S="ln -s"
14544 if test -n "${ZSH_VERSION+set}" ; then
14545 setopt NO_GLOB_SUBST
14548 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for objdir" >&5
14549 $as_echo_n "checking for objdir... " >&6; }
14550 if test "${lt_cv_objdir+set}" = set; then :
14551 $as_echo_n "(cached) " >&6
14552 else
14553 rm -f .libs 2>/dev/null
14554 mkdir .libs 2>/dev/null
14555 if test -d .libs; then
14556 lt_cv_objdir=.libs
14557 else
14558 # MS-DOS does not allow filenames that begin with a dot.
14559 lt_cv_objdir=_libs
14561 rmdir .libs 2>/dev/null
14563 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_objdir" >&5
14564 $as_echo "$lt_cv_objdir" >&6; }
14565 objdir=$lt_cv_objdir
14571 cat >>confdefs.h <<_ACEOF
14572 #define LT_OBJDIR "$lt_cv_objdir/"
14573 _ACEOF
14578 case $host_os in
14579 aix3*)
14580 # AIX sometimes has problems with the GCC collect2 program. For some
14581 # reason, if we set the COLLECT_NAMES environment variable, the problems
14582 # vanish in a puff of smoke.
14583 if test "X${COLLECT_NAMES+set}" != Xset; then
14584 COLLECT_NAMES=
14585 export COLLECT_NAMES
14588 esac
14590 # Global variables:
14591 ofile=libtool
14592 can_build_shared=yes
14594 # All known linkers require a `.a' archive for static linking (except MSVC,
14595 # which needs '.lib').
14596 libext=a
14598 with_gnu_ld="$lt_cv_prog_gnu_ld"
14600 old_CC="$CC"
14601 old_CFLAGS="$CFLAGS"
14603 # Set sane defaults for various variables
14604 test -z "$CC" && CC=cc
14605 test -z "$LTCC" && LTCC=$CC
14606 test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
14607 test -z "$LD" && LD=ld
14608 test -z "$ac_objext" && ac_objext=o
14610 for cc_temp in $compiler""; do
14611 case $cc_temp in
14612 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
14613 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
14614 \-*) ;;
14615 *) break;;
14616 esac
14617 done
14618 cc_basename=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
14621 # Only perform the check for file, if the check method requires it
14622 test -z "$MAGIC_CMD" && MAGIC_CMD=file
14623 case $deplibs_check_method in
14624 file_magic*)
14625 if test "$file_magic_cmd" = '$MAGIC_CMD'; then
14626 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ac_tool_prefix}file" >&5
14627 $as_echo_n "checking for ${ac_tool_prefix}file... " >&6; }
14628 if test "${lt_cv_path_MAGIC_CMD+set}" = set; then :
14629 $as_echo_n "(cached) " >&6
14630 else
14631 case $MAGIC_CMD in
14632 [\\/*] | ?:[\\/]*)
14633 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
14636 lt_save_MAGIC_CMD="$MAGIC_CMD"
14637 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
14638 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
14639 for ac_dir in $ac_dummy; do
14640 IFS="$lt_save_ifs"
14641 test -z "$ac_dir" && ac_dir=.
14642 if test -f $ac_dir/${ac_tool_prefix}file; then
14643 lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
14644 if test -n "$file_magic_test_file"; then
14645 case $deplibs_check_method in
14646 "file_magic "*)
14647 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
14648 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
14649 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
14650 $EGREP "$file_magic_regex" > /dev/null; then
14652 else
14653 cat <<_LT_EOF 1>&2
14655 *** Warning: the command libtool uses to detect shared libraries,
14656 *** $file_magic_cmd, produces output that libtool cannot recognize.
14657 *** The result is that libtool may fail to recognize shared libraries
14658 *** as such. This will affect the creation of libtool libraries that
14659 *** depend on shared libraries, but programs linked with such libtool
14660 *** libraries will work regardless of this problem. Nevertheless, you
14661 *** may want to report the problem to your system manager and/or to
14662 *** bug-libtool@gnu.org
14664 _LT_EOF
14665 fi ;;
14666 esac
14668 break
14670 done
14671 IFS="$lt_save_ifs"
14672 MAGIC_CMD="$lt_save_MAGIC_CMD"
14674 esac
14677 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
14678 if test -n "$MAGIC_CMD"; then
14679 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
14680 $as_echo "$MAGIC_CMD" >&6; }
14681 else
14682 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14683 $as_echo "no" >&6; }
14690 if test -z "$lt_cv_path_MAGIC_CMD"; then
14691 if test -n "$ac_tool_prefix"; then
14692 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for file" >&5
14693 $as_echo_n "checking for file... " >&6; }
14694 if test "${lt_cv_path_MAGIC_CMD+set}" = set; then :
14695 $as_echo_n "(cached) " >&6
14696 else
14697 case $MAGIC_CMD in
14698 [\\/*] | ?:[\\/]*)
14699 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
14702 lt_save_MAGIC_CMD="$MAGIC_CMD"
14703 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
14704 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
14705 for ac_dir in $ac_dummy; do
14706 IFS="$lt_save_ifs"
14707 test -z "$ac_dir" && ac_dir=.
14708 if test -f $ac_dir/file; then
14709 lt_cv_path_MAGIC_CMD="$ac_dir/file"
14710 if test -n "$file_magic_test_file"; then
14711 case $deplibs_check_method in
14712 "file_magic "*)
14713 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
14714 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
14715 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
14716 $EGREP "$file_magic_regex" > /dev/null; then
14718 else
14719 cat <<_LT_EOF 1>&2
14721 *** Warning: the command libtool uses to detect shared libraries,
14722 *** $file_magic_cmd, produces output that libtool cannot recognize.
14723 *** The result is that libtool may fail to recognize shared libraries
14724 *** as such. This will affect the creation of libtool libraries that
14725 *** depend on shared libraries, but programs linked with such libtool
14726 *** libraries will work regardless of this problem. Nevertheless, you
14727 *** may want to report the problem to your system manager and/or to
14728 *** bug-libtool@gnu.org
14730 _LT_EOF
14731 fi ;;
14732 esac
14734 break
14736 done
14737 IFS="$lt_save_ifs"
14738 MAGIC_CMD="$lt_save_MAGIC_CMD"
14740 esac
14743 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
14744 if test -n "$MAGIC_CMD"; then
14745 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
14746 $as_echo "$MAGIC_CMD" >&6; }
14747 else
14748 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14749 $as_echo "no" >&6; }
14753 else
14754 MAGIC_CMD=:
14760 esac
14762 # Use C for the default configuration in the libtool script
14764 lt_save_CC="$CC"
14765 ac_ext=c
14766 ac_cpp='$CPP $CPPFLAGS'
14767 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
14768 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
14769 ac_compiler_gnu=$ac_cv_c_compiler_gnu
14772 # Source file extension for C test sources.
14773 ac_ext=c
14775 # Object file extension for compiled C test sources.
14776 objext=o
14777 objext=$objext
14779 # Code to be used in simple compile tests
14780 lt_simple_compile_test_code="int some_variable = 0;"
14782 # Code to be used in simple link tests
14783 lt_simple_link_test_code='int main(){return(0);}'
14791 # If no C compiler was specified, use CC.
14792 LTCC=${LTCC-"$CC"}
14794 # If no C compiler flags were specified, use CFLAGS.
14795 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
14797 # Allow CC to be a program name with arguments.
14798 compiler=$CC
14800 # Save the default compiler, since it gets overwritten when the other
14801 # tags are being tested, and _LT_TAGVAR(compiler, []) is a NOP.
14802 compiler_DEFAULT=$CC
14804 # save warnings/boilerplate of simple test code
14805 ac_outfile=conftest.$ac_objext
14806 echo "$lt_simple_compile_test_code" >conftest.$ac_ext
14807 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
14808 _lt_compiler_boilerplate=`cat conftest.err`
14809 $RM conftest*
14811 ac_outfile=conftest.$ac_objext
14812 echo "$lt_simple_link_test_code" >conftest.$ac_ext
14813 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
14814 _lt_linker_boilerplate=`cat conftest.err`
14815 $RM -r conftest*
14818 ## CAVEAT EMPTOR:
14819 ## There is no encapsulation within the following macros, do not change
14820 ## the running order or otherwise move them around unless you know exactly
14821 ## what you are doing...
14822 if test -n "$compiler"; then
14824 lt_prog_compiler_no_builtin_flag=
14826 if test "$GCC" = yes; then
14827 case $cc_basename in
14828 nvcc*)
14829 lt_prog_compiler_no_builtin_flag=' -Xcompiler -fno-builtin' ;;
14831 lt_prog_compiler_no_builtin_flag=' -fno-builtin' ;;
14832 esac
14834 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
14835 $as_echo_n "checking if $compiler supports -fno-rtti -fno-exceptions... " >&6; }
14836 if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then :
14837 $as_echo_n "(cached) " >&6
14838 else
14839 lt_cv_prog_compiler_rtti_exceptions=no
14840 ac_outfile=conftest.$ac_objext
14841 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
14842 lt_compiler_flag="-fno-rtti -fno-exceptions"
14843 # Insert the option either (1) after the last *FLAGS variable, or
14844 # (2) before a word containing "conftest.", or (3) at the end.
14845 # Note that $ac_compile itself does not contain backslashes and begins
14846 # with a dollar sign (not a hyphen), so the echo should work correctly.
14847 # The option is referenced via a variable to avoid confusing sed.
14848 lt_compile=`echo "$ac_compile" | $SED \
14849 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
14850 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
14851 -e 's:$: $lt_compiler_flag:'`
14852 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
14853 (eval "$lt_compile" 2>conftest.err)
14854 ac_status=$?
14855 cat conftest.err >&5
14856 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14857 if (exit $ac_status) && test -s "$ac_outfile"; then
14858 # The compiler can only warn and ignore the option if not recognized
14859 # So say no if there are warnings other than the usual output.
14860 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
14861 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
14862 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
14863 lt_cv_prog_compiler_rtti_exceptions=yes
14866 $RM conftest*
14869 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
14870 $as_echo "$lt_cv_prog_compiler_rtti_exceptions" >&6; }
14872 if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
14873 lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
14874 else
14885 lt_prog_compiler_wl=
14886 lt_prog_compiler_pic=
14887 lt_prog_compiler_static=
14889 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
14890 $as_echo_n "checking for $compiler option to produce PIC... " >&6; }
14892 if test "$GCC" = yes; then
14893 lt_prog_compiler_wl='-Wl,'
14894 lt_prog_compiler_static='-static'
14896 case $host_os in
14897 aix*)
14898 # All AIX code is PIC.
14899 if test "$host_cpu" = ia64; then
14900 # AIX 5 now supports IA64 processor
14901 lt_prog_compiler_static='-Bstatic'
14903 lt_prog_compiler_pic='-fPIC'
14906 amigaos*)
14907 case $host_cpu in
14908 powerpc)
14909 # see comment about AmigaOS4 .so support
14910 lt_prog_compiler_pic='-fPIC'
14912 m68k)
14913 # FIXME: we need at least 68020 code to build shared libraries, but
14914 # adding the `-m68020' flag to GCC prevents building anything better,
14915 # like `-m68040'.
14916 lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
14918 esac
14921 beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
14922 # PIC is the default for these OSes.
14925 mingw* | cygwin* | pw32* | os2* | cegcc*)
14926 # This hack is so that the source file can tell whether it is being
14927 # built for inclusion in a dll (and should export symbols for example).
14928 # Although the cygwin gcc ignores -fPIC, still need this for old-style
14929 # (--disable-auto-import) libraries
14930 lt_prog_compiler_pic='-DDLL_EXPORT'
14933 darwin* | rhapsody*)
14934 # PIC is the default on this platform
14935 # Common symbols not allowed in MH_DYLIB files
14936 lt_prog_compiler_pic='-fno-common'
14939 haiku*)
14940 # PIC is the default for Haiku.
14941 # The "-static" flag exists, but is broken.
14942 lt_prog_compiler_static=
14945 hpux*)
14946 # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
14947 # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag
14948 # sets the default TLS model and affects inlining.
14949 case $host_cpu in
14950 hppa*64*)
14951 # +Z the default
14954 lt_prog_compiler_pic='-fPIC'
14956 esac
14959 interix[3-9]*)
14960 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
14961 # Instead, we relocate shared libraries at runtime.
14964 msdosdjgpp*)
14965 # Just because we use GCC doesn't mean we suddenly get shared libraries
14966 # on systems that don't support them.
14967 lt_prog_compiler_can_build_shared=no
14968 enable_shared=no
14971 *nto* | *qnx*)
14972 # QNX uses GNU C++, but need to define -shared option too, otherwise
14973 # it will coredump.
14974 lt_prog_compiler_pic='-fPIC -shared'
14977 sysv4*MP*)
14978 if test -d /usr/nec; then
14979 lt_prog_compiler_pic=-Kconform_pic
14984 lt_prog_compiler_pic='-fPIC'
14986 esac
14988 case $cc_basename in
14989 nvcc*) # Cuda Compiler Driver 2.2
14990 lt_prog_compiler_wl='-Xlinker '
14991 lt_prog_compiler_pic='-Xcompiler -fPIC'
14993 esac
14994 else
14995 # PORTME Check for flag to pass linker flags through the system compiler.
14996 case $host_os in
14997 aix*)
14998 lt_prog_compiler_wl='-Wl,'
14999 if test "$host_cpu" = ia64; then
15000 # AIX 5 now supports IA64 processor
15001 lt_prog_compiler_static='-Bstatic'
15002 else
15003 lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
15007 mingw* | cygwin* | pw32* | os2* | cegcc*)
15008 # This hack is so that the source file can tell whether it is being
15009 # built for inclusion in a dll (and should export symbols for example).
15010 lt_prog_compiler_pic='-DDLL_EXPORT'
15013 hpux9* | hpux10* | hpux11*)
15014 lt_prog_compiler_wl='-Wl,'
15015 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
15016 # not for PA HP-UX.
15017 case $host_cpu in
15018 hppa*64*|ia64*)
15019 # +Z the default
15022 lt_prog_compiler_pic='+Z'
15024 esac
15025 # Is there a better lt_prog_compiler_static that works with the bundled CC?
15026 lt_prog_compiler_static='${wl}-a ${wl}archive'
15029 irix5* | irix6* | nonstopux*)
15030 lt_prog_compiler_wl='-Wl,'
15031 # PIC (with -KPIC) is the default.
15032 lt_prog_compiler_static='-non_shared'
15035 linux* | k*bsd*-gnu | kopensolaris*-gnu)
15036 case $cc_basename in
15037 # old Intel for x86_64 which still supported -KPIC.
15038 ecc*)
15039 lt_prog_compiler_wl='-Wl,'
15040 lt_prog_compiler_pic='-KPIC'
15041 lt_prog_compiler_static='-static'
15043 # icc used to be incompatible with GCC.
15044 # ICC 10 doesn't accept -KPIC any more.
15045 icc* | ifort*)
15046 lt_prog_compiler_wl='-Wl,'
15047 lt_prog_compiler_pic='-fPIC'
15048 lt_prog_compiler_static='-static'
15050 # Lahey Fortran 8.1.
15051 lf95*)
15052 lt_prog_compiler_wl='-Wl,'
15053 lt_prog_compiler_pic='--shared'
15054 lt_prog_compiler_static='--static'
15056 pgcc* | pgf77* | pgf90* | pgf95* | pgfortran*)
15057 # Portland Group compilers (*not* the Pentium gcc compiler,
15058 # which looks to be a dead project)
15059 lt_prog_compiler_wl='-Wl,'
15060 lt_prog_compiler_pic='-fpic'
15061 lt_prog_compiler_static='-Bstatic'
15063 ccc*)
15064 lt_prog_compiler_wl='-Wl,'
15065 # All Alpha code is PIC.
15066 lt_prog_compiler_static='-non_shared'
15068 xl* | bgxl* | bgf* | mpixl*)
15069 # IBM XL C 8.0/Fortran 10.1, 11.1 on PPC and BlueGene
15070 lt_prog_compiler_wl='-Wl,'
15071 lt_prog_compiler_pic='-qpic'
15072 lt_prog_compiler_static='-qstaticlink'
15075 case `$CC -V 2>&1 | sed 5q` in
15076 *Sun\ F* | *Sun*Fortran*)
15077 # Sun Fortran 8.3 passes all unrecognized flags to the linker
15078 lt_prog_compiler_pic='-KPIC'
15079 lt_prog_compiler_static='-Bstatic'
15080 lt_prog_compiler_wl=''
15082 *Sun\ C*)
15083 # Sun C 5.9
15084 lt_prog_compiler_pic='-KPIC'
15085 lt_prog_compiler_static='-Bstatic'
15086 lt_prog_compiler_wl='-Wl,'
15088 esac
15090 esac
15093 newsos6)
15094 lt_prog_compiler_pic='-KPIC'
15095 lt_prog_compiler_static='-Bstatic'
15098 *nto* | *qnx*)
15099 # QNX uses GNU C++, but need to define -shared option too, otherwise
15100 # it will coredump.
15101 lt_prog_compiler_pic='-fPIC -shared'
15104 osf3* | osf4* | osf5*)
15105 lt_prog_compiler_wl='-Wl,'
15106 # All OSF/1 code is PIC.
15107 lt_prog_compiler_static='-non_shared'
15110 rdos*)
15111 lt_prog_compiler_static='-non_shared'
15114 solaris*)
15115 lt_prog_compiler_pic='-KPIC'
15116 lt_prog_compiler_static='-Bstatic'
15117 case $cc_basename in
15118 f77* | f90* | f95*)
15119 lt_prog_compiler_wl='-Qoption ld ';;
15121 lt_prog_compiler_wl='-Wl,';;
15122 esac
15125 sunos4*)
15126 lt_prog_compiler_wl='-Qoption ld '
15127 lt_prog_compiler_pic='-PIC'
15128 lt_prog_compiler_static='-Bstatic'
15131 sysv4 | sysv4.2uw2* | sysv4.3*)
15132 lt_prog_compiler_wl='-Wl,'
15133 lt_prog_compiler_pic='-KPIC'
15134 lt_prog_compiler_static='-Bstatic'
15137 sysv4*MP*)
15138 if test -d /usr/nec ;then
15139 lt_prog_compiler_pic='-Kconform_pic'
15140 lt_prog_compiler_static='-Bstatic'
15144 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
15145 lt_prog_compiler_wl='-Wl,'
15146 lt_prog_compiler_pic='-KPIC'
15147 lt_prog_compiler_static='-Bstatic'
15150 unicos*)
15151 lt_prog_compiler_wl='-Wl,'
15152 lt_prog_compiler_can_build_shared=no
15155 uts4*)
15156 lt_prog_compiler_pic='-pic'
15157 lt_prog_compiler_static='-Bstatic'
15161 lt_prog_compiler_can_build_shared=no
15163 esac
15166 case $host_os in
15167 # For platforms which do not support PIC, -DPIC is meaningless:
15168 *djgpp*)
15169 lt_prog_compiler_pic=
15172 lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
15174 esac
15175 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_prog_compiler_pic" >&5
15176 $as_echo "$lt_prog_compiler_pic" >&6; }
15184 # Check to make sure the PIC flag actually works.
15186 if test -n "$lt_prog_compiler_pic"; then
15187 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
15188 $as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic works... " >&6; }
15189 if test "${lt_cv_prog_compiler_pic_works+set}" = set; then :
15190 $as_echo_n "(cached) " >&6
15191 else
15192 lt_cv_prog_compiler_pic_works=no
15193 ac_outfile=conftest.$ac_objext
15194 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
15195 lt_compiler_flag="$lt_prog_compiler_pic -DPIC"
15196 # Insert the option either (1) after the last *FLAGS variable, or
15197 # (2) before a word containing "conftest.", or (3) at the end.
15198 # Note that $ac_compile itself does not contain backslashes and begins
15199 # with a dollar sign (not a hyphen), so the echo should work correctly.
15200 # The option is referenced via a variable to avoid confusing sed.
15201 lt_compile=`echo "$ac_compile" | $SED \
15202 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
15203 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
15204 -e 's:$: $lt_compiler_flag:'`
15205 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
15206 (eval "$lt_compile" 2>conftest.err)
15207 ac_status=$?
15208 cat conftest.err >&5
15209 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15210 if (exit $ac_status) && test -s "$ac_outfile"; then
15211 # The compiler can only warn and ignore the option if not recognized
15212 # So say no if there are warnings other than the usual output.
15213 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
15214 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
15215 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
15216 lt_cv_prog_compiler_pic_works=yes
15219 $RM conftest*
15222 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works" >&5
15223 $as_echo "$lt_cv_prog_compiler_pic_works" >&6; }
15225 if test x"$lt_cv_prog_compiler_pic_works" = xyes; then
15226 case $lt_prog_compiler_pic in
15227 "" | " "*) ;;
15228 *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
15229 esac
15230 else
15231 lt_prog_compiler_pic=
15232 lt_prog_compiler_can_build_shared=no
15243 # Check to make sure the static flag actually works.
15245 wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
15246 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
15247 $as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
15248 if test "${lt_cv_prog_compiler_static_works+set}" = set; then :
15249 $as_echo_n "(cached) " >&6
15250 else
15251 lt_cv_prog_compiler_static_works=no
15252 save_LDFLAGS="$LDFLAGS"
15253 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
15254 echo "$lt_simple_link_test_code" > conftest.$ac_ext
15255 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
15256 # The linker can only warn and ignore the option if not recognized
15257 # So say no if there are warnings
15258 if test -s conftest.err; then
15259 # Append any errors to the config.log.
15260 cat conftest.err 1>&5
15261 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
15262 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
15263 if diff conftest.exp conftest.er2 >/dev/null; then
15264 lt_cv_prog_compiler_static_works=yes
15266 else
15267 lt_cv_prog_compiler_static_works=yes
15270 $RM -r conftest*
15271 LDFLAGS="$save_LDFLAGS"
15274 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works" >&5
15275 $as_echo "$lt_cv_prog_compiler_static_works" >&6; }
15277 if test x"$lt_cv_prog_compiler_static_works" = xyes; then
15279 else
15280 lt_prog_compiler_static=
15289 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
15290 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
15291 if test "${lt_cv_prog_compiler_c_o+set}" = set; then :
15292 $as_echo_n "(cached) " >&6
15293 else
15294 lt_cv_prog_compiler_c_o=no
15295 $RM -r conftest 2>/dev/null
15296 mkdir conftest
15297 cd conftest
15298 mkdir out
15299 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
15301 lt_compiler_flag="-o out/conftest2.$ac_objext"
15302 # Insert the option either (1) after the last *FLAGS variable, or
15303 # (2) before a word containing "conftest.", or (3) at the end.
15304 # Note that $ac_compile itself does not contain backslashes and begins
15305 # with a dollar sign (not a hyphen), so the echo should work correctly.
15306 lt_compile=`echo "$ac_compile" | $SED \
15307 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
15308 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
15309 -e 's:$: $lt_compiler_flag:'`
15310 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
15311 (eval "$lt_compile" 2>out/conftest.err)
15312 ac_status=$?
15313 cat out/conftest.err >&5
15314 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15315 if (exit $ac_status) && test -s out/conftest2.$ac_objext
15316 then
15317 # The compiler can only warn and ignore the option if not recognized
15318 # So say no if there are warnings
15319 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
15320 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
15321 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
15322 lt_cv_prog_compiler_c_o=yes
15325 chmod u+w . 2>&5
15326 $RM conftest*
15327 # SGI C++ compiler will create directory out/ii_files/ for
15328 # template instantiation
15329 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
15330 $RM out/* && rmdir out
15331 cd ..
15332 $RM -r conftest
15333 $RM conftest*
15336 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
15337 $as_echo "$lt_cv_prog_compiler_c_o" >&6; }
15344 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
15345 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
15346 if test "${lt_cv_prog_compiler_c_o+set}" = set; then :
15347 $as_echo_n "(cached) " >&6
15348 else
15349 lt_cv_prog_compiler_c_o=no
15350 $RM -r conftest 2>/dev/null
15351 mkdir conftest
15352 cd conftest
15353 mkdir out
15354 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
15356 lt_compiler_flag="-o out/conftest2.$ac_objext"
15357 # Insert the option either (1) after the last *FLAGS variable, or
15358 # (2) before a word containing "conftest.", or (3) at the end.
15359 # Note that $ac_compile itself does not contain backslashes and begins
15360 # with a dollar sign (not a hyphen), so the echo should work correctly.
15361 lt_compile=`echo "$ac_compile" | $SED \
15362 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
15363 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
15364 -e 's:$: $lt_compiler_flag:'`
15365 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
15366 (eval "$lt_compile" 2>out/conftest.err)
15367 ac_status=$?
15368 cat out/conftest.err >&5
15369 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15370 if (exit $ac_status) && test -s out/conftest2.$ac_objext
15371 then
15372 # The compiler can only warn and ignore the option if not recognized
15373 # So say no if there are warnings
15374 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
15375 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
15376 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
15377 lt_cv_prog_compiler_c_o=yes
15380 chmod u+w . 2>&5
15381 $RM conftest*
15382 # SGI C++ compiler will create directory out/ii_files/ for
15383 # template instantiation
15384 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
15385 $RM out/* && rmdir out
15386 cd ..
15387 $RM -r conftest
15388 $RM conftest*
15391 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
15392 $as_echo "$lt_cv_prog_compiler_c_o" >&6; }
15397 hard_links="nottested"
15398 if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then
15399 # do not overwrite the value of need_locks provided by the user
15400 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
15401 $as_echo_n "checking if we can lock with hard links... " >&6; }
15402 hard_links=yes
15403 $RM conftest*
15404 ln conftest.a conftest.b 2>/dev/null && hard_links=no
15405 touch conftest.a
15406 ln conftest.a conftest.b 2>&5 || hard_links=no
15407 ln conftest.a conftest.b 2>/dev/null && hard_links=no
15408 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
15409 $as_echo "$hard_links" >&6; }
15410 if test "$hard_links" = no; then
15411 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
15412 $as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
15413 need_locks=warn
15415 else
15416 need_locks=no
15424 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
15425 $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
15427 runpath_var=
15428 allow_undefined_flag=
15429 always_export_symbols=no
15430 archive_cmds=
15431 archive_expsym_cmds=
15432 compiler_needs_object=no
15433 enable_shared_with_static_runtimes=no
15434 export_dynamic_flag_spec=
15435 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
15436 hardcode_automatic=no
15437 hardcode_direct=no
15438 hardcode_direct_absolute=no
15439 hardcode_libdir_flag_spec=
15440 hardcode_libdir_flag_spec_ld=
15441 hardcode_libdir_separator=
15442 hardcode_minus_L=no
15443 hardcode_shlibpath_var=unsupported
15444 inherit_rpath=no
15445 link_all_deplibs=unknown
15446 module_cmds=
15447 module_expsym_cmds=
15448 old_archive_from_new_cmds=
15449 old_archive_from_expsyms_cmds=
15450 thread_safe_flag_spec=
15451 whole_archive_flag_spec=
15452 # include_expsyms should be a list of space-separated symbols to be *always*
15453 # included in the symbol list
15454 include_expsyms=
15455 # exclude_expsyms can be an extended regexp of symbols to exclude
15456 # it will be wrapped by ` (' and `)$', so one must not match beginning or
15457 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
15458 # as well as any symbol that contains `d'.
15459 exclude_expsyms='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
15460 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
15461 # platforms (ab)use it in PIC code, but their linkers get confused if
15462 # the symbol is explicitly referenced. Since portable code cannot
15463 # rely on this symbol name, it's probably fine to never include it in
15464 # preloaded symbol tables.
15465 # Exclude shared library initialization/finalization symbols.
15466 extract_expsyms_cmds=
15468 case $host_os in
15469 cygwin* | mingw* | pw32* | cegcc*)
15470 # FIXME: the MSVC++ port hasn't been tested in a loooong time
15471 # When not using gcc, we currently assume that we are using
15472 # Microsoft Visual C++.
15473 if test "$GCC" != yes; then
15474 with_gnu_ld=no
15477 interix*)
15478 # we just hope/assume this is gcc and not c89 (= MSVC++)
15479 with_gnu_ld=yes
15481 openbsd*)
15482 with_gnu_ld=no
15484 esac
15486 ld_shlibs=yes
15488 # On some targets, GNU ld is compatible enough with the native linker
15489 # that we're better off using the native interface for both.
15490 lt_use_gnu_ld_interface=no
15491 if test "$with_gnu_ld" = yes; then
15492 case $host_os in
15493 aix*)
15494 # The AIX port of GNU ld has always aspired to compatibility
15495 # with the native linker. However, as the warning in the GNU ld
15496 # block says, versions before 2.19.5* couldn't really create working
15497 # shared libraries, regardless of the interface used.
15498 case `$LD -v 2>&1` in
15499 *\ \(GNU\ Binutils\)\ 2.19.5*) ;;
15500 *\ \(GNU\ Binutils\)\ 2.[2-9]*) ;;
15501 *\ \(GNU\ Binutils\)\ [3-9]*) ;;
15503 lt_use_gnu_ld_interface=yes
15505 esac
15508 lt_use_gnu_ld_interface=yes
15510 esac
15513 if test "$lt_use_gnu_ld_interface" = yes; then
15514 # If archive_cmds runs LD, not CC, wlarc should be empty
15515 wlarc='${wl}'
15517 # Set some defaults for GNU ld with shared library support. These
15518 # are reset later if shared libraries are not supported. Putting them
15519 # here allows them to be overridden if necessary.
15520 runpath_var=LD_RUN_PATH
15521 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
15522 export_dynamic_flag_spec='${wl}--export-dynamic'
15523 # ancient GNU ld didn't support --whole-archive et. al.
15524 if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then
15525 whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
15526 else
15527 whole_archive_flag_spec=
15529 supports_anon_versioning=no
15530 case `$LD -v 2>&1` in
15531 *GNU\ gold*) supports_anon_versioning=yes ;;
15532 *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
15533 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
15534 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
15535 *\ 2.11.*) ;; # other 2.11 versions
15536 *) supports_anon_versioning=yes ;;
15537 esac
15539 # See if GNU ld supports shared libraries.
15540 case $host_os in
15541 aix[3-9]*)
15542 # On AIX/PPC, the GNU linker is very broken
15543 if test "$host_cpu" != ia64; then
15544 ld_shlibs=no
15545 cat <<_LT_EOF 1>&2
15547 *** Warning: the GNU linker, at least up to release 2.19, is reported
15548 *** to be unable to reliably create shared libraries on AIX.
15549 *** Therefore, libtool is disabling shared libraries support. If you
15550 *** really care for shared libraries, you may want to install binutils
15551 *** 2.20 or above, or modify your PATH so that a non-GNU linker is found.
15552 *** You will then need to restart the configuration process.
15554 _LT_EOF
15558 amigaos*)
15559 case $host_cpu in
15560 powerpc)
15561 # see comment about AmigaOS4 .so support
15562 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
15563 archive_expsym_cmds=''
15565 m68k)
15566 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)'
15567 hardcode_libdir_flag_spec='-L$libdir'
15568 hardcode_minus_L=yes
15570 esac
15573 beos*)
15574 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
15575 allow_undefined_flag=unsupported
15576 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
15577 # support --undefined. This deserves some investigation. FIXME
15578 archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
15579 else
15580 ld_shlibs=no
15584 cygwin* | mingw* | pw32* | cegcc*)
15585 # _LT_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
15586 # as there is no search path for DLLs.
15587 hardcode_libdir_flag_spec='-L$libdir'
15588 export_dynamic_flag_spec='${wl}--export-all-symbols'
15589 allow_undefined_flag=unsupported
15590 always_export_symbols=no
15591 enable_shared_with_static_runtimes=yes
15592 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
15594 if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
15595 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
15596 # If the export-symbols file already is a .def file (1st line
15597 # is EXPORTS), use it as is; otherwise, prepend...
15598 archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
15599 cp $export_symbols $output_objdir/$soname.def;
15600 else
15601 echo EXPORTS > $output_objdir/$soname.def;
15602 cat $export_symbols >> $output_objdir/$soname.def;
15604 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
15605 else
15606 ld_shlibs=no
15610 haiku*)
15611 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
15612 link_all_deplibs=yes
15615 interix[3-9]*)
15616 hardcode_direct=no
15617 hardcode_shlibpath_var=no
15618 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
15619 export_dynamic_flag_spec='${wl}-E'
15620 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
15621 # Instead, shared libraries are loaded at an image base (0x10000000 by
15622 # default) and relocated if they conflict, which is a slow very memory
15623 # consuming and fragmenting process. To avoid this, we pick a random,
15624 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
15625 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
15626 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
15627 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'
15630 gnu* | linux* | tpf* | k*bsd*-gnu | kopensolaris*-gnu)
15631 tmp_diet=no
15632 if test "$host_os" = linux-dietlibc; then
15633 case $cc_basename in
15634 diet\ *) tmp_diet=yes;; # linux-dietlibc with static linking (!diet-dyn)
15635 esac
15637 if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \
15638 && test "$tmp_diet" = no
15639 then
15640 tmp_addflag=
15641 tmp_sharedflag='-shared'
15642 case $cc_basename,$host_cpu in
15643 pgcc*) # Portland Group C compiler
15644 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'
15645 tmp_addflag=' $pic_flag'
15647 pgf77* | pgf90* | pgf95* | pgfortran*)
15648 # Portland Group f77 and f90 compilers
15649 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'
15650 tmp_addflag=' $pic_flag -Mnomain' ;;
15651 ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64
15652 tmp_addflag=' -i_dynamic' ;;
15653 efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64
15654 tmp_addflag=' -i_dynamic -nofor_main' ;;
15655 ifc* | ifort*) # Intel Fortran compiler
15656 tmp_addflag=' -nofor_main' ;;
15657 lf95*) # Lahey Fortran 8.1
15658 whole_archive_flag_spec=
15659 tmp_sharedflag='--shared' ;;
15660 xl[cC]* | bgxl[cC]* | mpixl[cC]*) # IBM XL C 8.0 on PPC (deal with xlf below)
15661 tmp_sharedflag='-qmkshrobj'
15662 tmp_addflag= ;;
15663 nvcc*) # Cuda Compiler Driver 2.2
15664 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'
15665 compiler_needs_object=yes
15667 esac
15668 case `$CC -V 2>&1 | sed 5q` in
15669 *Sun\ C*) # Sun C 5.9
15670 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'
15671 compiler_needs_object=yes
15672 tmp_sharedflag='-G' ;;
15673 *Sun\ F*) # Sun Fortran 8.3
15674 tmp_sharedflag='-G' ;;
15675 esac
15676 archive_cmds='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
15678 if test "x$supports_anon_versioning" = xyes; then
15679 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
15680 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
15681 echo "local: *; };" >> $output_objdir/$libname.ver~
15682 $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
15685 case $cc_basename in
15686 xlf* | bgf* | bgxlf* | mpixlf*)
15687 # IBM XL Fortran 10.1 on PPC cannot create shared libs itself
15688 whole_archive_flag_spec='--whole-archive$convenience --no-whole-archive'
15689 hardcode_libdir_flag_spec=
15690 hardcode_libdir_flag_spec_ld='-rpath $libdir'
15691 archive_cmds='$LD -shared $libobjs $deplibs $compiler_flags -soname $soname -o $lib'
15692 if test "x$supports_anon_versioning" = xyes; then
15693 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
15694 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
15695 echo "local: *; };" >> $output_objdir/$libname.ver~
15696 $LD -shared $libobjs $deplibs $compiler_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib'
15699 esac
15700 else
15701 ld_shlibs=no
15705 netbsd*)
15706 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
15707 archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
15708 wlarc=
15709 else
15710 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
15711 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
15715 solaris*)
15716 if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then
15717 ld_shlibs=no
15718 cat <<_LT_EOF 1>&2
15720 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
15721 *** create shared libraries on Solaris systems. Therefore, libtool
15722 *** is disabling shared libraries support. We urge you to upgrade GNU
15723 *** binutils to release 2.9.1 or newer. Another option is to modify
15724 *** your PATH or compiler configuration so that the native linker is
15725 *** used, and then restart.
15727 _LT_EOF
15728 elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
15729 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
15730 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
15731 else
15732 ld_shlibs=no
15736 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
15737 case `$LD -v 2>&1` in
15738 *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
15739 ld_shlibs=no
15740 cat <<_LT_EOF 1>&2
15742 *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
15743 *** reliably create shared libraries on SCO systems. Therefore, libtool
15744 *** is disabling shared libraries support. We urge you to upgrade GNU
15745 *** binutils to release 2.16.91.0.3 or newer. Another option is to modify
15746 *** your PATH or compiler configuration so that the native linker is
15747 *** used, and then restart.
15749 _LT_EOF
15752 # For security reasons, it is highly recommended that you always
15753 # use absolute paths for naming shared libraries, and exclude the
15754 # DT_RUNPATH tag from executables and libraries. But doing so
15755 # requires that you compile everything twice, which is a pain.
15756 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
15757 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
15758 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
15759 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
15760 else
15761 ld_shlibs=no
15764 esac
15767 sunos4*)
15768 archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
15769 wlarc=
15770 hardcode_direct=yes
15771 hardcode_shlibpath_var=no
15775 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
15776 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
15777 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
15778 else
15779 ld_shlibs=no
15782 esac
15784 if test "$ld_shlibs" = no; then
15785 runpath_var=
15786 hardcode_libdir_flag_spec=
15787 export_dynamic_flag_spec=
15788 whole_archive_flag_spec=
15790 else
15791 # PORTME fill in a description of your system's linker (not GNU ld)
15792 case $host_os in
15793 aix3*)
15794 allow_undefined_flag=unsupported
15795 always_export_symbols=yes
15796 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'
15797 # Note: this linker hardcodes the directories in LIBPATH if there
15798 # are no directories specified by -L.
15799 hardcode_minus_L=yes
15800 if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
15801 # Neither direct hardcoding nor static linking is supported with a
15802 # broken collect2.
15803 hardcode_direct=unsupported
15807 aix[4-9]*)
15808 if test "$host_cpu" = ia64; then
15809 # On IA64, the linker does run time linking by default, so we don't
15810 # have to do anything special.
15811 aix_use_runtimelinking=no
15812 exp_sym_flag='-Bexport'
15813 no_entry_flag=""
15814 else
15815 # If we're using GNU nm, then we don't want the "-C" option.
15816 # -C means demangle to AIX nm, but means don't demangle with GNU nm
15817 # Also, AIX nm treats weak defined symbols like other global
15818 # defined symbols, whereas GNU nm marks them as "W".
15819 if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
15820 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'
15821 else
15822 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'
15824 aix_use_runtimelinking=no
15826 # Test if we are trying to use run time linking or normal
15827 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
15828 # need to do runtime linking.
15829 case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
15830 for ld_flag in $LDFLAGS; do
15831 if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
15832 aix_use_runtimelinking=yes
15833 break
15835 done
15837 esac
15839 exp_sym_flag='-bexport'
15840 no_entry_flag='-bnoentry'
15843 # When large executables or shared objects are built, AIX ld can
15844 # have problems creating the table of contents. If linking a library
15845 # or program results in "error TOC overflow" add -mminimal-toc to
15846 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
15847 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
15849 archive_cmds=''
15850 hardcode_direct=yes
15851 hardcode_direct_absolute=yes
15852 hardcode_libdir_separator=':'
15853 link_all_deplibs=yes
15854 file_list_spec='${wl}-f,'
15856 if test "$GCC" = yes; then
15857 case $host_os in aix4.[012]|aix4.[012].*)
15858 # We only want to do this on AIX 4.2 and lower, the check
15859 # below for broken collect2 doesn't work under 4.3+
15860 collect2name=`${CC} -print-prog-name=collect2`
15861 if test -f "$collect2name" &&
15862 strings "$collect2name" | $GREP resolve_lib_name >/dev/null
15863 then
15864 # We have reworked collect2
15866 else
15867 # We have old collect2
15868 hardcode_direct=unsupported
15869 # It fails to find uninstalled libraries when the uninstalled
15870 # path is not listed in the libpath. Setting hardcode_minus_L
15871 # to unsupported forces relinking
15872 hardcode_minus_L=yes
15873 hardcode_libdir_flag_spec='-L$libdir'
15874 hardcode_libdir_separator=
15877 esac
15878 shared_flag='-shared'
15879 if test "$aix_use_runtimelinking" = yes; then
15880 shared_flag="$shared_flag "'${wl}-G'
15882 else
15883 # not using gcc
15884 if test "$host_cpu" = ia64; then
15885 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
15886 # chokes on -Wl,-G. The following line is correct:
15887 shared_flag='-G'
15888 else
15889 if test "$aix_use_runtimelinking" = yes; then
15890 shared_flag='${wl}-G'
15891 else
15892 shared_flag='${wl}-bM:SRE'
15897 export_dynamic_flag_spec='${wl}-bexpall'
15898 # It seems that -bexpall does not export symbols beginning with
15899 # underscore (_), so it is better to generate a list of symbols to export.
15900 always_export_symbols=yes
15901 if test "$aix_use_runtimelinking" = yes; then
15902 # Warning - without using the other runtime loading flags (-brtl),
15903 # -berok will link without error, but may produce a broken library.
15904 allow_undefined_flag='-berok'
15905 # Determine the default libpath from the value encoded in an
15906 # empty executable.
15907 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15908 /* end confdefs.h. */
15911 main ()
15915 return 0;
15917 _ACEOF
15918 if ac_fn_c_try_link "$LINENO"; then :
15920 lt_aix_libpath_sed='
15921 /Import File Strings/,/^$/ {
15922 /^0/ {
15923 s/^0 *\(.*\)$/\1/
15927 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
15928 # Check for a 64-bit object if we didn't find anything.
15929 if test -z "$aix_libpath"; then
15930 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
15933 rm -f core conftest.err conftest.$ac_objext \
15934 conftest$ac_exeext conftest.$ac_ext
15935 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
15937 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
15938 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"
15939 else
15940 if test "$host_cpu" = ia64; then
15941 hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
15942 allow_undefined_flag="-z nodefs"
15943 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"
15944 else
15945 # Determine the default libpath from the value encoded in an
15946 # empty executable.
15947 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15948 /* end confdefs.h. */
15951 main ()
15955 return 0;
15957 _ACEOF
15958 if ac_fn_c_try_link "$LINENO"; then :
15960 lt_aix_libpath_sed='
15961 /Import File Strings/,/^$/ {
15962 /^0/ {
15963 s/^0 *\(.*\)$/\1/
15967 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
15968 # Check for a 64-bit object if we didn't find anything.
15969 if test -z "$aix_libpath"; then
15970 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
15973 rm -f core conftest.err conftest.$ac_objext \
15974 conftest$ac_exeext conftest.$ac_ext
15975 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
15977 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
15978 # Warning - without using the other run time loading flags,
15979 # -berok will link without error, but may produce a broken library.
15980 no_undefined_flag=' ${wl}-bernotok'
15981 allow_undefined_flag=' ${wl}-berok'
15982 if test "$with_gnu_ld" = yes; then
15983 # We only use this code for GNU lds that support --whole-archive.
15984 whole_archive_flag_spec='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
15985 else
15986 # Exported symbols can be pulled into shared objects from archives
15987 whole_archive_flag_spec='$convenience'
15989 archive_cmds_need_lc=yes
15990 # This is similar to how AIX traditionally builds its shared libraries.
15991 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'
15996 amigaos*)
15997 case $host_cpu in
15998 powerpc)
15999 # see comment about AmigaOS4 .so support
16000 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
16001 archive_expsym_cmds=''
16003 m68k)
16004 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)'
16005 hardcode_libdir_flag_spec='-L$libdir'
16006 hardcode_minus_L=yes
16008 esac
16011 bsdi[45]*)
16012 export_dynamic_flag_spec=-rdynamic
16015 cygwin* | mingw* | pw32* | cegcc*)
16016 # When not using gcc, we currently assume that we are using
16017 # Microsoft Visual C++.
16018 # hardcode_libdir_flag_spec is actually meaningless, as there is
16019 # no search path for DLLs.
16020 hardcode_libdir_flag_spec=' '
16021 allow_undefined_flag=unsupported
16022 # Tell ltmain to make .lib files, not .a files.
16023 libext=lib
16024 # Tell ltmain to make .dll files, not .so files.
16025 shrext_cmds=".dll"
16026 # FIXME: Setting linknames here is a bad hack.
16027 archive_cmds='$CC -o $lib $libobjs $compiler_flags `func_echo_all "$deplibs" | $SED '\''s/ -lc$//'\''` -link -dll~linknames='
16028 # The linker will automatically build a .lib file if we build a DLL.
16029 old_archive_from_new_cmds='true'
16030 # FIXME: Should let the user specify the lib program.
16031 old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs'
16032 fix_srcfile_path='`cygpath -w "$srcfile"`'
16033 enable_shared_with_static_runtimes=yes
16036 darwin* | rhapsody*)
16039 archive_cmds_need_lc=no
16040 hardcode_direct=no
16041 hardcode_automatic=yes
16042 hardcode_shlibpath_var=unsupported
16043 if test "$lt_cv_ld_force_load" = "yes"; then
16044 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\"`'
16045 else
16046 whole_archive_flag_spec=''
16048 link_all_deplibs=yes
16049 allow_undefined_flag="$_lt_dar_allow_undefined"
16050 case $cc_basename in
16051 ifort*) _lt_dar_can_shared=yes ;;
16052 *) _lt_dar_can_shared=$GCC ;;
16053 esac
16054 if test "$_lt_dar_can_shared" = "yes"; then
16055 output_verbose_link_cmd=func_echo_all
16056 archive_cmds="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod${_lt_dsymutil}"
16057 module_cmds="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
16058 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}"
16059 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}"
16061 else
16062 ld_shlibs=no
16067 dgux*)
16068 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
16069 hardcode_libdir_flag_spec='-L$libdir'
16070 hardcode_shlibpath_var=no
16073 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
16074 # support. Future versions do this automatically, but an explicit c++rt0.o
16075 # does not break anything, and helps significantly (at the cost of a little
16076 # extra space).
16077 freebsd2.2*)
16078 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
16079 hardcode_libdir_flag_spec='-R$libdir'
16080 hardcode_direct=yes
16081 hardcode_shlibpath_var=no
16084 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
16085 freebsd2.*)
16086 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
16087 hardcode_direct=yes
16088 hardcode_minus_L=yes
16089 hardcode_shlibpath_var=no
16092 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
16093 freebsd* | dragonfly*)
16094 archive_cmds='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
16095 hardcode_libdir_flag_spec='-R$libdir'
16096 hardcode_direct=yes
16097 hardcode_shlibpath_var=no
16100 hpux9*)
16101 if test "$GCC" = yes; then
16102 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'
16103 else
16104 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'
16106 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
16107 hardcode_libdir_separator=:
16108 hardcode_direct=yes
16110 # hardcode_minus_L: Not really in the search PATH,
16111 # but as the default location of the library.
16112 hardcode_minus_L=yes
16113 export_dynamic_flag_spec='${wl}-E'
16116 hpux10*)
16117 if test "$GCC" = yes && test "$with_gnu_ld" = no; then
16118 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
16119 else
16120 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
16122 if test "$with_gnu_ld" = no; then
16123 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
16124 hardcode_libdir_flag_spec_ld='+b $libdir'
16125 hardcode_libdir_separator=:
16126 hardcode_direct=yes
16127 hardcode_direct_absolute=yes
16128 export_dynamic_flag_spec='${wl}-E'
16129 # hardcode_minus_L: Not really in the search PATH,
16130 # but as the default location of the library.
16131 hardcode_minus_L=yes
16135 hpux11*)
16136 if test "$GCC" = yes && test "$with_gnu_ld" = no; then
16137 case $host_cpu in
16138 hppa*64*)
16139 archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
16141 ia64*)
16142 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
16145 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
16147 esac
16148 else
16149 case $host_cpu in
16150 hppa*64*)
16151 archive_cmds='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
16153 ia64*)
16154 archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
16158 # Older versions of the 11.00 compiler do not understand -b yet
16159 # (HP92453-01 A.11.01.20 doesn't, HP92453-01 B.11.X.35175-35176.GP does)
16160 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC understands -b" >&5
16161 $as_echo_n "checking if $CC understands -b... " >&6; }
16162 if test "${lt_cv_prog_compiler__b+set}" = set; then :
16163 $as_echo_n "(cached) " >&6
16164 else
16165 lt_cv_prog_compiler__b=no
16166 save_LDFLAGS="$LDFLAGS"
16167 LDFLAGS="$LDFLAGS -b"
16168 echo "$lt_simple_link_test_code" > conftest.$ac_ext
16169 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
16170 # The linker can only warn and ignore the option if not recognized
16171 # So say no if there are warnings
16172 if test -s conftest.err; then
16173 # Append any errors to the config.log.
16174 cat conftest.err 1>&5
16175 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
16176 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
16177 if diff conftest.exp conftest.er2 >/dev/null; then
16178 lt_cv_prog_compiler__b=yes
16180 else
16181 lt_cv_prog_compiler__b=yes
16184 $RM -r conftest*
16185 LDFLAGS="$save_LDFLAGS"
16188 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler__b" >&5
16189 $as_echo "$lt_cv_prog_compiler__b" >&6; }
16191 if test x"$lt_cv_prog_compiler__b" = xyes; then
16192 archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
16193 else
16194 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
16198 esac
16200 if test "$with_gnu_ld" = no; then
16201 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
16202 hardcode_libdir_separator=:
16204 case $host_cpu in
16205 hppa*64*|ia64*)
16206 hardcode_direct=no
16207 hardcode_shlibpath_var=no
16210 hardcode_direct=yes
16211 hardcode_direct_absolute=yes
16212 export_dynamic_flag_spec='${wl}-E'
16214 # hardcode_minus_L: Not really in the search PATH,
16215 # but as the default location of the library.
16216 hardcode_minus_L=yes
16218 esac
16222 irix5* | irix6* | nonstopux*)
16223 if test "$GCC" = yes; then
16224 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'
16225 # Try to use the -exported_symbol ld option, if it does not
16226 # work, assume that -exports_file does not work either and
16227 # implicitly export all symbols.
16228 save_LDFLAGS="$LDFLAGS"
16229 LDFLAGS="$LDFLAGS -shared ${wl}-exported_symbol ${wl}foo ${wl}-update_registry ${wl}/dev/null"
16230 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16231 /* end confdefs.h. */
16232 int foo(void) {}
16233 _ACEOF
16234 if ac_fn_c_try_link "$LINENO"; then :
16235 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'
16238 rm -f core conftest.err conftest.$ac_objext \
16239 conftest$ac_exeext conftest.$ac_ext
16240 LDFLAGS="$save_LDFLAGS"
16241 else
16242 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'
16243 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'
16245 archive_cmds_need_lc='no'
16246 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
16247 hardcode_libdir_separator=:
16248 inherit_rpath=yes
16249 link_all_deplibs=yes
16252 netbsd*)
16253 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
16254 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
16255 else
16256 archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
16258 hardcode_libdir_flag_spec='-R$libdir'
16259 hardcode_direct=yes
16260 hardcode_shlibpath_var=no
16263 newsos6)
16264 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
16265 hardcode_direct=yes
16266 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
16267 hardcode_libdir_separator=:
16268 hardcode_shlibpath_var=no
16271 *nto* | *qnx*)
16274 openbsd*)
16275 if test -f /usr/libexec/ld.so; then
16276 hardcode_direct=yes
16277 hardcode_shlibpath_var=no
16278 hardcode_direct_absolute=yes
16279 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
16280 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
16281 archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
16282 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
16283 export_dynamic_flag_spec='${wl}-E'
16284 else
16285 case $host_os in
16286 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
16287 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
16288 hardcode_libdir_flag_spec='-R$libdir'
16291 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
16292 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
16294 esac
16296 else
16297 ld_shlibs=no
16301 os2*)
16302 hardcode_libdir_flag_spec='-L$libdir'
16303 hardcode_minus_L=yes
16304 allow_undefined_flag=unsupported
16305 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'
16306 old_archive_from_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
16309 osf3*)
16310 if test "$GCC" = yes; then
16311 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
16312 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'
16313 else
16314 allow_undefined_flag=' -expect_unresolved \*'
16315 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'
16317 archive_cmds_need_lc='no'
16318 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
16319 hardcode_libdir_separator=:
16322 osf4* | osf5*) # as osf3* with the addition of -msym flag
16323 if test "$GCC" = yes; then
16324 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
16325 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'
16326 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
16327 else
16328 allow_undefined_flag=' -expect_unresolved \*'
16329 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'
16330 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~
16331 $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'
16333 # Both c and cxx compiler support -rpath directly
16334 hardcode_libdir_flag_spec='-rpath $libdir'
16336 archive_cmds_need_lc='no'
16337 hardcode_libdir_separator=:
16340 solaris*)
16341 no_undefined_flag=' -z defs'
16342 if test "$GCC" = yes; then
16343 wlarc='${wl}'
16344 archive_cmds='$CC -shared ${wl}-z ${wl}text ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
16345 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
16346 $CC -shared ${wl}-z ${wl}text ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
16347 else
16348 case `$CC -V 2>&1` in
16349 *"Compilers 5.0"*)
16350 wlarc=''
16351 archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
16352 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
16353 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp'
16356 wlarc='${wl}'
16357 archive_cmds='$CC -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $compiler_flags'
16358 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
16359 $CC -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
16361 esac
16363 hardcode_libdir_flag_spec='-R$libdir'
16364 hardcode_shlibpath_var=no
16365 case $host_os in
16366 solaris2.[0-5] | solaris2.[0-5].*) ;;
16368 # The compiler driver will combine and reorder linker options,
16369 # but understands `-z linker_flag'. GCC discards it without `$wl',
16370 # but is careful enough not to reorder.
16371 # Supported since Solaris 2.6 (maybe 2.5.1?)
16372 if test "$GCC" = yes; then
16373 whole_archive_flag_spec='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
16374 else
16375 whole_archive_flag_spec='-z allextract$convenience -z defaultextract'
16378 esac
16379 link_all_deplibs=yes
16382 sunos4*)
16383 if test "x$host_vendor" = xsequent; then
16384 # Use $CC to link under sequent, because it throws in some extra .o
16385 # files that make .init and .fini sections work.
16386 archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
16387 else
16388 archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
16390 hardcode_libdir_flag_spec='-L$libdir'
16391 hardcode_direct=yes
16392 hardcode_minus_L=yes
16393 hardcode_shlibpath_var=no
16396 sysv4)
16397 case $host_vendor in
16398 sni)
16399 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
16400 hardcode_direct=yes # is this really true???
16402 siemens)
16403 ## LD is ld it makes a PLAMLIB
16404 ## CC just makes a GrossModule.
16405 archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
16406 reload_cmds='$CC -r -o $output$reload_objs'
16407 hardcode_direct=no
16409 motorola)
16410 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
16411 hardcode_direct=no #Motorola manual says yes, but my tests say they lie
16413 esac
16414 runpath_var='LD_RUN_PATH'
16415 hardcode_shlibpath_var=no
16418 sysv4.3*)
16419 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
16420 hardcode_shlibpath_var=no
16421 export_dynamic_flag_spec='-Bexport'
16424 sysv4*MP*)
16425 if test -d /usr/nec; then
16426 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
16427 hardcode_shlibpath_var=no
16428 runpath_var=LD_RUN_PATH
16429 hardcode_runpath_var=yes
16430 ld_shlibs=yes
16434 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
16435 no_undefined_flag='${wl}-z,text'
16436 archive_cmds_need_lc=no
16437 hardcode_shlibpath_var=no
16438 runpath_var='LD_RUN_PATH'
16440 if test "$GCC" = yes; then
16441 archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
16442 archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
16443 else
16444 archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
16445 archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
16449 sysv5* | sco3.2v5* | sco5v6*)
16450 # Note: We can NOT use -z defs as we might desire, because we do not
16451 # link with -lc, and that would cause any symbols used from libc to
16452 # always be unresolved, which means just about no library would
16453 # ever link correctly. If we're not using GNU ld we use -z text
16454 # though, which does catch some bad symbols but isn't as heavy-handed
16455 # as -z defs.
16456 no_undefined_flag='${wl}-z,text'
16457 allow_undefined_flag='${wl}-z,nodefs'
16458 archive_cmds_need_lc=no
16459 hardcode_shlibpath_var=no
16460 hardcode_libdir_flag_spec='${wl}-R,$libdir'
16461 hardcode_libdir_separator=':'
16462 link_all_deplibs=yes
16463 export_dynamic_flag_spec='${wl}-Bexport'
16464 runpath_var='LD_RUN_PATH'
16466 if test "$GCC" = yes; then
16467 archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
16468 archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
16469 else
16470 archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
16471 archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
16475 uts4*)
16476 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
16477 hardcode_libdir_flag_spec='-L$libdir'
16478 hardcode_shlibpath_var=no
16482 ld_shlibs=no
16484 esac
16486 if test x$host_vendor = xsni; then
16487 case $host in
16488 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
16489 export_dynamic_flag_spec='${wl}-Blargedynsym'
16491 esac
16495 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs" >&5
16496 $as_echo "$ld_shlibs" >&6; }
16497 test "$ld_shlibs" = no && can_build_shared=no
16499 with_gnu_ld=$with_gnu_ld
16516 # Do we need to explicitly link libc?
16518 case "x$archive_cmds_need_lc" in
16519 x|xyes)
16520 # Assume -lc should be added
16521 archive_cmds_need_lc=yes
16523 if test "$enable_shared" = yes && test "$GCC" = yes; then
16524 case $archive_cmds in
16525 *'~'*)
16526 # FIXME: we may have to deal with multi-command sequences.
16528 '$CC '*)
16529 # Test whether the compiler implicitly links with -lc since on some
16530 # systems, -lgcc has to come before -lc. If gcc already passes -lc
16531 # to ld, don't add -lc before -lgcc.
16532 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
16533 $as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
16534 if test "${lt_cv_archive_cmds_need_lc+set}" = set; then :
16535 $as_echo_n "(cached) " >&6
16536 else
16537 $RM conftest*
16538 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
16540 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
16541 (eval $ac_compile) 2>&5
16542 ac_status=$?
16543 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
16544 test $ac_status = 0; } 2>conftest.err; then
16545 soname=conftest
16546 lib=conftest
16547 libobjs=conftest.$ac_objext
16548 deplibs=
16549 wl=$lt_prog_compiler_wl
16550 pic_flag=$lt_prog_compiler_pic
16551 compiler_flags=-v
16552 linker_flags=-v
16553 verstring=
16554 output_objdir=.
16555 libname=conftest
16556 lt_save_allow_undefined_flag=$allow_undefined_flag
16557 allow_undefined_flag=
16558 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5
16559 (eval $archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
16560 ac_status=$?
16561 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
16562 test $ac_status = 0; }
16563 then
16564 lt_cv_archive_cmds_need_lc=no
16565 else
16566 lt_cv_archive_cmds_need_lc=yes
16568 allow_undefined_flag=$lt_save_allow_undefined_flag
16569 else
16570 cat conftest.err 1>&5
16572 $RM conftest*
16575 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc" >&5
16576 $as_echo "$lt_cv_archive_cmds_need_lc" >&6; }
16577 archive_cmds_need_lc=$lt_cv_archive_cmds_need_lc
16579 esac
16582 esac
16740 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
16741 $as_echo_n "checking dynamic linker characteristics... " >&6; }
16743 if test "$GCC" = yes; then
16744 case $host_os in
16745 darwin*) lt_awk_arg="/^libraries:/,/LR/" ;;
16746 *) lt_awk_arg="/^libraries:/" ;;
16747 esac
16748 case $host_os in
16749 mingw* | cegcc*) lt_sed_strip_eq="s,=\([A-Za-z]:\),\1,g" ;;
16750 *) lt_sed_strip_eq="s,=/,/,g" ;;
16751 esac
16752 lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e $lt_sed_strip_eq`
16753 case $lt_search_path_spec in
16754 *\;*)
16755 # if the path contains ";" then we assume it to be the separator
16756 # otherwise default to the standard path separator (i.e. ":") - it is
16757 # assumed that no part of a normal pathname contains ";" but that should
16758 # okay in the real world where ";" in dirpaths is itself problematic.
16759 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED 's/;/ /g'`
16762 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED "s/$PATH_SEPARATOR/ /g"`
16764 esac
16765 # Ok, now we have the path, separated by spaces, we can step through it
16766 # and add multilib dir if necessary.
16767 lt_tmp_lt_search_path_spec=
16768 lt_multi_os_dir=`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null`
16769 for lt_sys_path in $lt_search_path_spec; do
16770 if test -d "$lt_sys_path/$lt_multi_os_dir"; then
16771 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path/$lt_multi_os_dir"
16772 else
16773 test -d "$lt_sys_path" && \
16774 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path"
16776 done
16777 lt_search_path_spec=`$ECHO "$lt_tmp_lt_search_path_spec" | awk '
16778 BEGIN {RS=" "; FS="/|\n";} {
16779 lt_foo="";
16780 lt_count=0;
16781 for (lt_i = NF; lt_i > 0; lt_i--) {
16782 if ($lt_i != "" && $lt_i != ".") {
16783 if ($lt_i == "..") {
16784 lt_count++;
16785 } else {
16786 if (lt_count == 0) {
16787 lt_foo="/" $lt_i lt_foo;
16788 } else {
16789 lt_count--;
16794 if (lt_foo != "") { lt_freq[lt_foo]++; }
16795 if (lt_freq[lt_foo] == 1) { print lt_foo; }
16797 # AWK program above erroneously prepends '/' to C:/dos/paths
16798 # for these hosts.
16799 case $host_os in
16800 mingw* | cegcc*) lt_search_path_spec=`$ECHO "$lt_search_path_spec" |\
16801 $SED 's,/\([A-Za-z]:\),\1,g'` ;;
16802 esac
16803 sys_lib_search_path_spec=`$ECHO "$lt_search_path_spec" | $lt_NL2SP`
16804 else
16805 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
16807 library_names_spec=
16808 libname_spec='lib$name'
16809 soname_spec=
16810 shrext_cmds=".so"
16811 postinstall_cmds=
16812 postuninstall_cmds=
16813 finish_cmds=
16814 finish_eval=
16815 shlibpath_var=
16816 shlibpath_overrides_runpath=unknown
16817 version_type=none
16818 dynamic_linker="$host_os ld.so"
16819 sys_lib_dlsearch_path_spec="/lib /usr/lib"
16820 need_lib_prefix=unknown
16821 hardcode_into_libs=no
16823 # when you set need_version to no, make sure it does not cause -set_version
16824 # flags to be left without arguments
16825 need_version=unknown
16827 case $host_os in
16828 aix3*)
16829 version_type=linux
16830 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
16831 shlibpath_var=LIBPATH
16833 # AIX 3 has no versioning support, so we append a major version to the name.
16834 soname_spec='${libname}${release}${shared_ext}$major'
16837 aix[4-9]*)
16838 version_type=linux
16839 need_lib_prefix=no
16840 need_version=no
16841 hardcode_into_libs=yes
16842 if test "$host_cpu" = ia64; then
16843 # AIX 5 supports IA64
16844 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
16845 shlibpath_var=LD_LIBRARY_PATH
16846 else
16847 # With GCC up to 2.95.x, collect2 would create an import file
16848 # for dependence libraries. The import file would start with
16849 # the line `#! .'. This would cause the generated library to
16850 # depend on `.', always an invalid library. This was fixed in
16851 # development snapshots of GCC prior to 3.0.
16852 case $host_os in
16853 aix4 | aix4.[01] | aix4.[01].*)
16854 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
16855 echo ' yes '
16856 echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then
16858 else
16859 can_build_shared=no
16862 esac
16863 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
16864 # soname into executable. Probably we can add versioning support to
16865 # collect2, so additional links can be useful in future.
16866 if test "$aix_use_runtimelinking" = yes; then
16867 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
16868 # instead of lib<name>.a to let people know that these are not
16869 # typical AIX shared libraries.
16870 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16871 else
16872 # We preserve .a as extension for shared libraries through AIX4.2
16873 # and later when we are not doing run time linking.
16874 library_names_spec='${libname}${release}.a $libname.a'
16875 soname_spec='${libname}${release}${shared_ext}$major'
16877 shlibpath_var=LIBPATH
16881 amigaos*)
16882 case $host_cpu in
16883 powerpc)
16884 # Since July 2007 AmigaOS4 officially supports .so libraries.
16885 # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
16886 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16888 m68k)
16889 library_names_spec='$libname.ixlibrary $libname.a'
16890 # Create ${libname}_ixlibrary.a entries in /sys/libs.
16891 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'
16893 esac
16896 beos*)
16897 library_names_spec='${libname}${shared_ext}'
16898 dynamic_linker="$host_os ld.so"
16899 shlibpath_var=LIBRARY_PATH
16902 bsdi[45]*)
16903 version_type=linux
16904 need_version=no
16905 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16906 soname_spec='${libname}${release}${shared_ext}$major'
16907 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
16908 shlibpath_var=LD_LIBRARY_PATH
16909 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
16910 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
16911 # the default ld.so.conf also contains /usr/contrib/lib and
16912 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
16913 # libtool to hard-code these into programs
16916 cygwin* | mingw* | pw32* | cegcc*)
16917 version_type=windows
16918 shrext_cmds=".dll"
16919 need_version=no
16920 need_lib_prefix=no
16922 case $GCC,$host_os in
16923 yes,cygwin* | yes,mingw* | yes,pw32* | yes,cegcc*)
16924 library_names_spec='$libname.dll.a'
16925 # DLL is installed to $(libdir)/../bin by postinstall_cmds
16926 postinstall_cmds='base_file=`basename \${file}`~
16927 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
16928 dldir=$destdir/`dirname \$dlpath`~
16929 test -d \$dldir || mkdir -p \$dldir~
16930 $install_prog $dir/$dlname \$dldir/$dlname~
16931 chmod a+x \$dldir/$dlname~
16932 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
16933 eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
16935 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
16936 dlpath=$dir/\$dldll~
16937 $RM \$dlpath'
16938 shlibpath_overrides_runpath=yes
16940 case $host_os in
16941 cygwin*)
16942 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
16943 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
16945 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/lib/w32api"
16947 mingw* | cegcc*)
16948 # MinGW DLLs use traditional 'lib' prefix
16949 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
16951 pw32*)
16952 # pw32 DLLs use 'pw' prefix rather than 'lib'
16953 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
16955 esac
16959 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
16961 esac
16962 dynamic_linker='Win32 ld.exe'
16963 # FIXME: first we should search . and the directory the executable is in
16964 shlibpath_var=PATH
16967 darwin* | rhapsody*)
16968 dynamic_linker="$host_os dyld"
16969 version_type=darwin
16970 need_lib_prefix=no
16971 need_version=no
16972 library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext'
16973 soname_spec='${libname}${release}${major}$shared_ext'
16974 shlibpath_overrides_runpath=yes
16975 shlibpath_var=DYLD_LIBRARY_PATH
16976 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
16978 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib"
16979 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
16982 dgux*)
16983 version_type=linux
16984 need_lib_prefix=no
16985 need_version=no
16986 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
16987 soname_spec='${libname}${release}${shared_ext}$major'
16988 shlibpath_var=LD_LIBRARY_PATH
16991 freebsd* | dragonfly*)
16992 # DragonFly does not have aout. When/if they implement a new
16993 # versioning mechanism, adjust this.
16994 if test -x /usr/bin/objformat; then
16995 objformat=`/usr/bin/objformat`
16996 else
16997 case $host_os in
16998 freebsd[23].*) objformat=aout ;;
16999 *) objformat=elf ;;
17000 esac
17002 version_type=freebsd-$objformat
17003 case $version_type in
17004 freebsd-elf*)
17005 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
17006 need_version=no
17007 need_lib_prefix=no
17009 freebsd-*)
17010 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
17011 need_version=yes
17013 esac
17014 shlibpath_var=LD_LIBRARY_PATH
17015 case $host_os in
17016 freebsd2.*)
17017 shlibpath_overrides_runpath=yes
17019 freebsd3.[01]* | freebsdelf3.[01]*)
17020 shlibpath_overrides_runpath=yes
17021 hardcode_into_libs=yes
17023 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
17024 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
17025 shlibpath_overrides_runpath=no
17026 hardcode_into_libs=yes
17028 *) # from 4.6 on, and DragonFly
17029 shlibpath_overrides_runpath=yes
17030 hardcode_into_libs=yes
17032 esac
17035 gnu*)
17036 version_type=linux
17037 need_lib_prefix=no
17038 need_version=no
17039 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
17040 soname_spec='${libname}${release}${shared_ext}$major'
17041 shlibpath_var=LD_LIBRARY_PATH
17042 hardcode_into_libs=yes
17045 haiku*)
17046 version_type=linux
17047 need_lib_prefix=no
17048 need_version=no
17049 dynamic_linker="$host_os runtime_loader"
17050 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
17051 soname_spec='${libname}${release}${shared_ext}$major'
17052 shlibpath_var=LIBRARY_PATH
17053 shlibpath_overrides_runpath=yes
17054 sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/beos/system/lib'
17055 hardcode_into_libs=yes
17058 hpux9* | hpux10* | hpux11*)
17059 # Give a soname corresponding to the major version so that dld.sl refuses to
17060 # link against other versions.
17061 version_type=sunos
17062 need_lib_prefix=no
17063 need_version=no
17064 case $host_cpu in
17065 ia64*)
17066 shrext_cmds='.so'
17067 hardcode_into_libs=yes
17068 dynamic_linker="$host_os dld.so"
17069 shlibpath_var=LD_LIBRARY_PATH
17070 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
17071 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17072 soname_spec='${libname}${release}${shared_ext}$major'
17073 if test "X$HPUX_IA64_MODE" = X32; then
17074 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
17075 else
17076 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
17078 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
17080 hppa*64*)
17081 shrext_cmds='.sl'
17082 hardcode_into_libs=yes
17083 dynamic_linker="$host_os dld.sl"
17084 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
17085 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
17086 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17087 soname_spec='${libname}${release}${shared_ext}$major'
17088 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
17089 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
17092 shrext_cmds='.sl'
17093 dynamic_linker="$host_os dld.sl"
17094 shlibpath_var=SHLIB_PATH
17095 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
17096 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17097 soname_spec='${libname}${release}${shared_ext}$major'
17099 esac
17100 # HP-UX runs *really* slowly unless shared libraries are mode 555, ...
17101 postinstall_cmds='chmod 555 $lib'
17102 # or fails outright, so override atomically:
17103 install_override_mode=555
17106 interix[3-9]*)
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 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
17113 shlibpath_var=LD_LIBRARY_PATH
17114 shlibpath_overrides_runpath=no
17115 hardcode_into_libs=yes
17118 irix5* | irix6* | nonstopux*)
17119 case $host_os in
17120 nonstopux*) version_type=nonstopux ;;
17122 if test "$lt_cv_prog_gnu_ld" = yes; then
17123 version_type=linux
17124 else
17125 version_type=irix
17126 fi ;;
17127 esac
17128 need_lib_prefix=no
17129 need_version=no
17130 soname_spec='${libname}${release}${shared_ext}$major'
17131 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
17132 case $host_os in
17133 irix5* | nonstopux*)
17134 libsuff= shlibsuff=
17137 case $LD in # libtool.m4 will add one of these switches to LD
17138 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
17139 libsuff= shlibsuff= libmagic=32-bit;;
17140 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
17141 libsuff=32 shlibsuff=N32 libmagic=N32;;
17142 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
17143 libsuff=64 shlibsuff=64 libmagic=64-bit;;
17144 *) libsuff= shlibsuff= libmagic=never-match;;
17145 esac
17147 esac
17148 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
17149 shlibpath_overrides_runpath=no
17150 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
17151 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
17152 hardcode_into_libs=yes
17155 # No shared lib support for Linux oldld, aout, or coff.
17156 linux*oldld* | linux*aout* | linux*coff*)
17157 dynamic_linker=no
17160 # This must be Linux ELF.
17161 linux* | k*bsd*-gnu | kopensolaris*-gnu)
17162 version_type=linux
17163 need_lib_prefix=no
17164 need_version=no
17165 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17166 soname_spec='${libname}${release}${shared_ext}$major'
17167 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
17168 shlibpath_var=LD_LIBRARY_PATH
17169 shlibpath_overrides_runpath=no
17171 # Some binutils ld are patched to set DT_RUNPATH
17172 if test "${lt_cv_shlibpath_overrides_runpath+set}" = set; then :
17173 $as_echo_n "(cached) " >&6
17174 else
17175 lt_cv_shlibpath_overrides_runpath=no
17176 save_LDFLAGS=$LDFLAGS
17177 save_libdir=$libdir
17178 eval "libdir=/foo; wl=\"$lt_prog_compiler_wl\"; \
17179 LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec\""
17180 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17181 /* end confdefs.h. */
17184 main ()
17188 return 0;
17190 _ACEOF
17191 if ac_fn_c_try_link "$LINENO"; then :
17192 if ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then :
17193 lt_cv_shlibpath_overrides_runpath=yes
17196 rm -f core conftest.err conftest.$ac_objext \
17197 conftest$ac_exeext conftest.$ac_ext
17198 LDFLAGS=$save_LDFLAGS
17199 libdir=$save_libdir
17203 shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath
17205 # This implies no fast_install, which is unacceptable.
17206 # Some rework will be needed to allow for fast_install
17207 # before this can be enabled.
17208 hardcode_into_libs=yes
17210 # Append ld.so.conf contents to the search path
17211 if test -f /etc/ld.so.conf; then
17212 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' ' '`
17213 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
17216 # We used to test for /lib/ld.so.1 and disable shared libraries on
17217 # powerpc, because MkLinux only supported shared libraries with the
17218 # GNU dynamic linker. Since this was broken with cross compilers,
17219 # most powerpc-linux boxes support dynamic linking these days and
17220 # people can always --disable-shared, the test was removed, and we
17221 # assume the GNU/Linux dynamic linker is in use.
17222 dynamic_linker='GNU/Linux ld.so'
17225 netbsd*)
17226 version_type=sunos
17227 need_lib_prefix=no
17228 need_version=no
17229 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
17230 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
17231 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
17232 dynamic_linker='NetBSD (a.out) ld.so'
17233 else
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='NetBSD ld.elf_so'
17238 shlibpath_var=LD_LIBRARY_PATH
17239 shlibpath_overrides_runpath=yes
17240 hardcode_into_libs=yes
17243 newsos6)
17244 version_type=linux
17245 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17246 shlibpath_var=LD_LIBRARY_PATH
17247 shlibpath_overrides_runpath=yes
17250 *nto* | *qnx*)
17251 version_type=qnx
17252 need_lib_prefix=no
17253 need_version=no
17254 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17255 soname_spec='${libname}${release}${shared_ext}$major'
17256 shlibpath_var=LD_LIBRARY_PATH
17257 shlibpath_overrides_runpath=no
17258 hardcode_into_libs=yes
17259 dynamic_linker='ldqnx.so'
17262 openbsd*)
17263 version_type=sunos
17264 sys_lib_dlsearch_path_spec="/usr/lib"
17265 need_lib_prefix=no
17266 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
17267 case $host_os in
17268 openbsd3.3 | openbsd3.3.*) need_version=yes ;;
17269 *) need_version=no ;;
17270 esac
17271 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
17272 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
17273 shlibpath_var=LD_LIBRARY_PATH
17274 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
17275 case $host_os in
17276 openbsd2.[89] | openbsd2.[89].*)
17277 shlibpath_overrides_runpath=no
17280 shlibpath_overrides_runpath=yes
17282 esac
17283 else
17284 shlibpath_overrides_runpath=yes
17288 os2*)
17289 libname_spec='$name'
17290 shrext_cmds=".dll"
17291 need_lib_prefix=no
17292 library_names_spec='$libname${shared_ext} $libname.a'
17293 dynamic_linker='OS/2 ld.exe'
17294 shlibpath_var=LIBPATH
17297 osf3* | osf4* | osf5*)
17298 version_type=osf
17299 need_lib_prefix=no
17300 need_version=no
17301 soname_spec='${libname}${release}${shared_ext}$major'
17302 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17303 shlibpath_var=LD_LIBRARY_PATH
17304 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
17305 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
17308 rdos*)
17309 dynamic_linker=no
17312 solaris*)
17313 version_type=linux
17314 need_lib_prefix=no
17315 need_version=no
17316 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17317 soname_spec='${libname}${release}${shared_ext}$major'
17318 shlibpath_var=LD_LIBRARY_PATH
17319 shlibpath_overrides_runpath=yes
17320 hardcode_into_libs=yes
17321 # ldd complains unless libraries are executable
17322 postinstall_cmds='chmod +x $lib'
17325 sunos4*)
17326 version_type=sunos
17327 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
17328 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
17329 shlibpath_var=LD_LIBRARY_PATH
17330 shlibpath_overrides_runpath=yes
17331 if test "$with_gnu_ld" = yes; then
17332 need_lib_prefix=no
17334 need_version=yes
17337 sysv4 | sysv4.3*)
17338 version_type=linux
17339 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17340 soname_spec='${libname}${release}${shared_ext}$major'
17341 shlibpath_var=LD_LIBRARY_PATH
17342 case $host_vendor in
17343 sni)
17344 shlibpath_overrides_runpath=no
17345 need_lib_prefix=no
17346 runpath_var=LD_RUN_PATH
17348 siemens)
17349 need_lib_prefix=no
17351 motorola)
17352 need_lib_prefix=no
17353 need_version=no
17354 shlibpath_overrides_runpath=no
17355 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
17357 esac
17360 sysv4*MP*)
17361 if test -d /usr/nec ;then
17362 version_type=linux
17363 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
17364 soname_spec='$libname${shared_ext}.$major'
17365 shlibpath_var=LD_LIBRARY_PATH
17369 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
17370 version_type=freebsd-elf
17371 need_lib_prefix=no
17372 need_version=no
17373 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
17374 soname_spec='${libname}${release}${shared_ext}$major'
17375 shlibpath_var=LD_LIBRARY_PATH
17376 shlibpath_overrides_runpath=yes
17377 hardcode_into_libs=yes
17378 if test "$with_gnu_ld" = yes; then
17379 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
17380 else
17381 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
17382 case $host_os in
17383 sco3.2v5*)
17384 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
17386 esac
17388 sys_lib_dlsearch_path_spec='/usr/lib'
17391 tpf*)
17392 # TPF is a cross-target only. Preferred cross-host = GNU/Linux.
17393 version_type=linux
17394 need_lib_prefix=no
17395 need_version=no
17396 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17397 shlibpath_var=LD_LIBRARY_PATH
17398 shlibpath_overrides_runpath=no
17399 hardcode_into_libs=yes
17402 uts4*)
17403 version_type=linux
17404 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17405 soname_spec='${libname}${release}${shared_ext}$major'
17406 shlibpath_var=LD_LIBRARY_PATH
17410 dynamic_linker=no
17412 esac
17413 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
17414 $as_echo "$dynamic_linker" >&6; }
17415 test "$dynamic_linker" = no && can_build_shared=no
17417 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
17418 if test "$GCC" = yes; then
17419 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
17422 if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
17423 sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
17425 if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
17426 sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
17520 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
17521 $as_echo_n "checking how to hardcode library paths into programs... " >&6; }
17522 hardcode_action=
17523 if test -n "$hardcode_libdir_flag_spec" ||
17524 test -n "$runpath_var" ||
17525 test "X$hardcode_automatic" = "Xyes" ; then
17527 # We can hardcode non-existent directories.
17528 if test "$hardcode_direct" != no &&
17529 # If the only mechanism to avoid hardcoding is shlibpath_var, we
17530 # have to relink, otherwise we might link with an installed library
17531 # when we should be linking with a yet-to-be-installed one
17532 ## test "$_LT_TAGVAR(hardcode_shlibpath_var, )" != no &&
17533 test "$hardcode_minus_L" != no; then
17534 # Linking always hardcodes the temporary library directory.
17535 hardcode_action=relink
17536 else
17537 # We can link without hardcoding, and we can hardcode nonexisting dirs.
17538 hardcode_action=immediate
17540 else
17541 # We cannot hardcode anything, or else we can only hardcode existing
17542 # directories.
17543 hardcode_action=unsupported
17545 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action" >&5
17546 $as_echo "$hardcode_action" >&6; }
17548 if test "$hardcode_action" = relink ||
17549 test "$inherit_rpath" = yes; then
17550 # Fast installation is not supported
17551 enable_fast_install=no
17552 elif test "$shlibpath_overrides_runpath" = yes ||
17553 test "$enable_shared" = no; then
17554 # Fast installation is not necessary
17555 enable_fast_install=needless
17563 if test "x$enable_dlopen" != xyes; then
17564 enable_dlopen=unknown
17565 enable_dlopen_self=unknown
17566 enable_dlopen_self_static=unknown
17567 else
17568 lt_cv_dlopen=no
17569 lt_cv_dlopen_libs=
17571 case $host_os in
17572 beos*)
17573 lt_cv_dlopen="load_add_on"
17574 lt_cv_dlopen_libs=
17575 lt_cv_dlopen_self=yes
17578 mingw* | pw32* | cegcc*)
17579 lt_cv_dlopen="LoadLibrary"
17580 lt_cv_dlopen_libs=
17583 cygwin*)
17584 lt_cv_dlopen="dlopen"
17585 lt_cv_dlopen_libs=
17588 darwin*)
17589 # if libdl is installed we need to link against it
17590 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
17591 $as_echo_n "checking for dlopen in -ldl... " >&6; }
17592 if test "${ac_cv_lib_dl_dlopen+set}" = set; then :
17593 $as_echo_n "(cached) " >&6
17594 else
17595 ac_check_lib_save_LIBS=$LIBS
17596 LIBS="-ldl $LIBS"
17597 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17598 /* end confdefs.h. */
17600 /* Override any GCC internal prototype to avoid an error.
17601 Use char because int might match the return type of a GCC
17602 builtin and then its argument prototype would still apply. */
17603 #ifdef __cplusplus
17604 extern "C"
17605 #endif
17606 char dlopen ();
17608 main ()
17610 return dlopen ();
17612 return 0;
17614 _ACEOF
17615 if ac_fn_c_try_link "$LINENO"; then :
17616 ac_cv_lib_dl_dlopen=yes
17617 else
17618 ac_cv_lib_dl_dlopen=no
17620 rm -f core conftest.err conftest.$ac_objext \
17621 conftest$ac_exeext conftest.$ac_ext
17622 LIBS=$ac_check_lib_save_LIBS
17624 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
17625 $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
17626 if test "x$ac_cv_lib_dl_dlopen" = x""yes; then :
17627 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
17628 else
17630 lt_cv_dlopen="dyld"
17631 lt_cv_dlopen_libs=
17632 lt_cv_dlopen_self=yes
17639 ac_fn_c_check_func "$LINENO" "shl_load" "ac_cv_func_shl_load"
17640 if test "x$ac_cv_func_shl_load" = x""yes; then :
17641 lt_cv_dlopen="shl_load"
17642 else
17643 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shl_load in -ldld" >&5
17644 $as_echo_n "checking for shl_load in -ldld... " >&6; }
17645 if test "${ac_cv_lib_dld_shl_load+set}" = set; then :
17646 $as_echo_n "(cached) " >&6
17647 else
17648 ac_check_lib_save_LIBS=$LIBS
17649 LIBS="-ldld $LIBS"
17650 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17651 /* end confdefs.h. */
17653 /* Override any GCC internal prototype to avoid an error.
17654 Use char because int might match the return type of a GCC
17655 builtin and then its argument prototype would still apply. */
17656 #ifdef __cplusplus
17657 extern "C"
17658 #endif
17659 char shl_load ();
17661 main ()
17663 return shl_load ();
17665 return 0;
17667 _ACEOF
17668 if ac_fn_c_try_link "$LINENO"; then :
17669 ac_cv_lib_dld_shl_load=yes
17670 else
17671 ac_cv_lib_dld_shl_load=no
17673 rm -f core conftest.err conftest.$ac_objext \
17674 conftest$ac_exeext conftest.$ac_ext
17675 LIBS=$ac_check_lib_save_LIBS
17677 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_shl_load" >&5
17678 $as_echo "$ac_cv_lib_dld_shl_load" >&6; }
17679 if test "x$ac_cv_lib_dld_shl_load" = x""yes; then :
17680 lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-ldld"
17681 else
17682 ac_fn_c_check_func "$LINENO" "dlopen" "ac_cv_func_dlopen"
17683 if test "x$ac_cv_func_dlopen" = x""yes; then :
17684 lt_cv_dlopen="dlopen"
17685 else
17686 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
17687 $as_echo_n "checking for dlopen in -ldl... " >&6; }
17688 if test "${ac_cv_lib_dl_dlopen+set}" = set; then :
17689 $as_echo_n "(cached) " >&6
17690 else
17691 ac_check_lib_save_LIBS=$LIBS
17692 LIBS="-ldl $LIBS"
17693 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17694 /* end confdefs.h. */
17696 /* Override any GCC internal prototype to avoid an error.
17697 Use char because int might match the return type of a GCC
17698 builtin and then its argument prototype would still apply. */
17699 #ifdef __cplusplus
17700 extern "C"
17701 #endif
17702 char dlopen ();
17704 main ()
17706 return dlopen ();
17708 return 0;
17710 _ACEOF
17711 if ac_fn_c_try_link "$LINENO"; then :
17712 ac_cv_lib_dl_dlopen=yes
17713 else
17714 ac_cv_lib_dl_dlopen=no
17716 rm -f core conftest.err conftest.$ac_objext \
17717 conftest$ac_exeext conftest.$ac_ext
17718 LIBS=$ac_check_lib_save_LIBS
17720 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
17721 $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
17722 if test "x$ac_cv_lib_dl_dlopen" = x""yes; then :
17723 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
17724 else
17725 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -lsvld" >&5
17726 $as_echo_n "checking for dlopen in -lsvld... " >&6; }
17727 if test "${ac_cv_lib_svld_dlopen+set}" = set; then :
17728 $as_echo_n "(cached) " >&6
17729 else
17730 ac_check_lib_save_LIBS=$LIBS
17731 LIBS="-lsvld $LIBS"
17732 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17733 /* end confdefs.h. */
17735 /* Override any GCC internal prototype to avoid an error.
17736 Use char because int might match the return type of a GCC
17737 builtin and then its argument prototype would still apply. */
17738 #ifdef __cplusplus
17739 extern "C"
17740 #endif
17741 char dlopen ();
17743 main ()
17745 return dlopen ();
17747 return 0;
17749 _ACEOF
17750 if ac_fn_c_try_link "$LINENO"; then :
17751 ac_cv_lib_svld_dlopen=yes
17752 else
17753 ac_cv_lib_svld_dlopen=no
17755 rm -f core conftest.err conftest.$ac_objext \
17756 conftest$ac_exeext conftest.$ac_ext
17757 LIBS=$ac_check_lib_save_LIBS
17759 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_svld_dlopen" >&5
17760 $as_echo "$ac_cv_lib_svld_dlopen" >&6; }
17761 if test "x$ac_cv_lib_svld_dlopen" = x""yes; then :
17762 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
17763 else
17764 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dld_link in -ldld" >&5
17765 $as_echo_n "checking for dld_link in -ldld... " >&6; }
17766 if test "${ac_cv_lib_dld_dld_link+set}" = set; then :
17767 $as_echo_n "(cached) " >&6
17768 else
17769 ac_check_lib_save_LIBS=$LIBS
17770 LIBS="-ldld $LIBS"
17771 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17772 /* end confdefs.h. */
17774 /* Override any GCC internal prototype to avoid an error.
17775 Use char because int might match the return type of a GCC
17776 builtin and then its argument prototype would still apply. */
17777 #ifdef __cplusplus
17778 extern "C"
17779 #endif
17780 char dld_link ();
17782 main ()
17784 return dld_link ();
17786 return 0;
17788 _ACEOF
17789 if ac_fn_c_try_link "$LINENO"; then :
17790 ac_cv_lib_dld_dld_link=yes
17791 else
17792 ac_cv_lib_dld_dld_link=no
17794 rm -f core conftest.err conftest.$ac_objext \
17795 conftest$ac_exeext conftest.$ac_ext
17796 LIBS=$ac_check_lib_save_LIBS
17798 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_dld_link" >&5
17799 $as_echo "$ac_cv_lib_dld_dld_link" >&6; }
17800 if test "x$ac_cv_lib_dld_dld_link" = x""yes; then :
17801 lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-ldld"
17820 esac
17822 if test "x$lt_cv_dlopen" != xno; then
17823 enable_dlopen=yes
17824 else
17825 enable_dlopen=no
17828 case $lt_cv_dlopen in
17829 dlopen)
17830 save_CPPFLAGS="$CPPFLAGS"
17831 test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
17833 save_LDFLAGS="$LDFLAGS"
17834 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
17836 save_LIBS="$LIBS"
17837 LIBS="$lt_cv_dlopen_libs $LIBS"
17839 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a program can dlopen itself" >&5
17840 $as_echo_n "checking whether a program can dlopen itself... " >&6; }
17841 if test "${lt_cv_dlopen_self+set}" = set; then :
17842 $as_echo_n "(cached) " >&6
17843 else
17844 if test "$cross_compiling" = yes; then :
17845 lt_cv_dlopen_self=cross
17846 else
17847 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
17848 lt_status=$lt_dlunknown
17849 cat > conftest.$ac_ext <<_LT_EOF
17850 #line 17850 "configure"
17851 #include "confdefs.h"
17853 #if HAVE_DLFCN_H
17854 #include <dlfcn.h>
17855 #endif
17857 #include <stdio.h>
17859 #ifdef RTLD_GLOBAL
17860 # define LT_DLGLOBAL RTLD_GLOBAL
17861 #else
17862 # ifdef DL_GLOBAL
17863 # define LT_DLGLOBAL DL_GLOBAL
17864 # else
17865 # define LT_DLGLOBAL 0
17866 # endif
17867 #endif
17869 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
17870 find out it does not work in some platform. */
17871 #ifndef LT_DLLAZY_OR_NOW
17872 # ifdef RTLD_LAZY
17873 # define LT_DLLAZY_OR_NOW RTLD_LAZY
17874 # else
17875 # ifdef DL_LAZY
17876 # define LT_DLLAZY_OR_NOW DL_LAZY
17877 # else
17878 # ifdef RTLD_NOW
17879 # define LT_DLLAZY_OR_NOW RTLD_NOW
17880 # else
17881 # ifdef DL_NOW
17882 # define LT_DLLAZY_OR_NOW DL_NOW
17883 # else
17884 # define LT_DLLAZY_OR_NOW 0
17885 # endif
17886 # endif
17887 # endif
17888 # endif
17889 #endif
17891 /* When -fvisbility=hidden is used, assume the code has been annotated
17892 correspondingly for the symbols needed. */
17893 #if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
17894 void fnord () __attribute__((visibility("default")));
17895 #endif
17897 void fnord () { int i=42; }
17898 int main ()
17900 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
17901 int status = $lt_dlunknown;
17903 if (self)
17905 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
17906 else
17908 if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
17909 else puts (dlerror ());
17911 /* dlclose (self); */
17913 else
17914 puts (dlerror ());
17916 return status;
17918 _LT_EOF
17919 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
17920 (eval $ac_link) 2>&5
17921 ac_status=$?
17922 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
17923 test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
17924 (./conftest; exit; ) >&5 2>/dev/null
17925 lt_status=$?
17926 case x$lt_status in
17927 x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
17928 x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
17929 x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;;
17930 esac
17931 else :
17932 # compilation failed
17933 lt_cv_dlopen_self=no
17936 rm -fr conftest*
17940 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self" >&5
17941 $as_echo "$lt_cv_dlopen_self" >&6; }
17943 if test "x$lt_cv_dlopen_self" = xyes; then
17944 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
17945 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a statically linked program can dlopen itself" >&5
17946 $as_echo_n "checking whether a statically linked program can dlopen itself... " >&6; }
17947 if test "${lt_cv_dlopen_self_static+set}" = set; then :
17948 $as_echo_n "(cached) " >&6
17949 else
17950 if test "$cross_compiling" = yes; then :
17951 lt_cv_dlopen_self_static=cross
17952 else
17953 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
17954 lt_status=$lt_dlunknown
17955 cat > conftest.$ac_ext <<_LT_EOF
17956 #line 17956 "configure"
17957 #include "confdefs.h"
17959 #if HAVE_DLFCN_H
17960 #include <dlfcn.h>
17961 #endif
17963 #include <stdio.h>
17965 #ifdef RTLD_GLOBAL
17966 # define LT_DLGLOBAL RTLD_GLOBAL
17967 #else
17968 # ifdef DL_GLOBAL
17969 # define LT_DLGLOBAL DL_GLOBAL
17970 # else
17971 # define LT_DLGLOBAL 0
17972 # endif
17973 #endif
17975 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
17976 find out it does not work in some platform. */
17977 #ifndef LT_DLLAZY_OR_NOW
17978 # ifdef RTLD_LAZY
17979 # define LT_DLLAZY_OR_NOW RTLD_LAZY
17980 # else
17981 # ifdef DL_LAZY
17982 # define LT_DLLAZY_OR_NOW DL_LAZY
17983 # else
17984 # ifdef RTLD_NOW
17985 # define LT_DLLAZY_OR_NOW RTLD_NOW
17986 # else
17987 # ifdef DL_NOW
17988 # define LT_DLLAZY_OR_NOW DL_NOW
17989 # else
17990 # define LT_DLLAZY_OR_NOW 0
17991 # endif
17992 # endif
17993 # endif
17994 # endif
17995 #endif
17997 /* When -fvisbility=hidden is used, assume the code has been annotated
17998 correspondingly for the symbols needed. */
17999 #if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
18000 void fnord () __attribute__((visibility("default")));
18001 #endif
18003 void fnord () { int i=42; }
18004 int main ()
18006 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
18007 int status = $lt_dlunknown;
18009 if (self)
18011 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
18012 else
18014 if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
18015 else puts (dlerror ());
18017 /* dlclose (self); */
18019 else
18020 puts (dlerror ());
18022 return status;
18024 _LT_EOF
18025 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
18026 (eval $ac_link) 2>&5
18027 ac_status=$?
18028 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
18029 test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
18030 (./conftest; exit; ) >&5 2>/dev/null
18031 lt_status=$?
18032 case x$lt_status in
18033 x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
18034 x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
18035 x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;;
18036 esac
18037 else :
18038 # compilation failed
18039 lt_cv_dlopen_self_static=no
18042 rm -fr conftest*
18046 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self_static" >&5
18047 $as_echo "$lt_cv_dlopen_self_static" >&6; }
18050 CPPFLAGS="$save_CPPFLAGS"
18051 LDFLAGS="$save_LDFLAGS"
18052 LIBS="$save_LIBS"
18054 esac
18056 case $lt_cv_dlopen_self in
18057 yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
18058 *) enable_dlopen_self=unknown ;;
18059 esac
18061 case $lt_cv_dlopen_self_static in
18062 yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
18063 *) enable_dlopen_self_static=unknown ;;
18064 esac
18083 striplib=
18084 old_striplib=
18085 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stripping libraries is possible" >&5
18086 $as_echo_n "checking whether stripping libraries is possible... " >&6; }
18087 if test -n "$STRIP" && $STRIP -V 2>&1 | $GREP "GNU strip" >/dev/null; then
18088 test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
18089 test -z "$striplib" && striplib="$STRIP --strip-unneeded"
18090 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
18091 $as_echo "yes" >&6; }
18092 else
18093 # FIXME - insert some real tests, host_os isn't really good enough
18094 case $host_os in
18095 darwin*)
18096 if test -n "$STRIP" ; then
18097 striplib="$STRIP -x"
18098 old_striplib="$STRIP -S"
18099 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
18100 $as_echo "yes" >&6; }
18101 else
18102 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
18103 $as_echo "no" >&6; }
18107 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
18108 $as_echo "no" >&6; }
18110 esac
18124 # Report which library types will actually be built
18125 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if libtool supports shared libraries" >&5
18126 $as_echo_n "checking if libtool supports shared libraries... " >&6; }
18127 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $can_build_shared" >&5
18128 $as_echo "$can_build_shared" >&6; }
18130 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build shared libraries" >&5
18131 $as_echo_n "checking whether to build shared libraries... " >&6; }
18132 test "$can_build_shared" = "no" && enable_shared=no
18134 # On AIX, shared libraries and static libraries use the same namespace, and
18135 # are all built from PIC.
18136 case $host_os in
18137 aix3*)
18138 test "$enable_shared" = yes && enable_static=no
18139 if test -n "$RANLIB"; then
18140 archive_cmds="$archive_cmds~\$RANLIB \$lib"
18141 postinstall_cmds='$RANLIB $lib'
18145 aix[4-9]*)
18146 if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
18147 test "$enable_shared" = yes && enable_static=no
18150 esac
18151 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_shared" >&5
18152 $as_echo "$enable_shared" >&6; }
18154 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build static libraries" >&5
18155 $as_echo_n "checking whether to build static libraries... " >&6; }
18156 # Make sure either enable_shared or enable_static is yes.
18157 test "$enable_shared" = yes || enable_static=yes
18158 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_static" >&5
18159 $as_echo "$enable_static" >&6; }
18165 ac_ext=c
18166 ac_cpp='$CPP $CPPFLAGS'
18167 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18168 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18169 ac_compiler_gnu=$ac_cv_c_compiler_gnu
18171 CC="$lt_save_CC"
18173 if test -n "$CXX" && ( test "X$CXX" != "Xno" &&
18174 ( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) ||
18175 (test "X$CXX" != "Xg++"))) ; then
18176 ac_ext=cpp
18177 ac_cpp='$CXXCPP $CPPFLAGS'
18178 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18179 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18180 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
18181 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C++ preprocessor" >&5
18182 $as_echo_n "checking how to run the C++ preprocessor... " >&6; }
18183 if test -z "$CXXCPP"; then
18184 if test "${ac_cv_prog_CXXCPP+set}" = set; then :
18185 $as_echo_n "(cached) " >&6
18186 else
18187 # Double quotes because CXXCPP needs to be expanded
18188 for CXXCPP in "$CXX -E" "/lib/cpp"
18190 ac_preproc_ok=false
18191 for ac_cxx_preproc_warn_flag in '' yes
18193 # Use a header file that comes with gcc, so configuring glibc
18194 # with a fresh cross-compiler works.
18195 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
18196 # <limits.h> exists even on freestanding compilers.
18197 # On the NeXT, cc -E runs the code through the compiler's parser,
18198 # not just through cpp. "Syntax error" is here to catch this case.
18199 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18200 /* end confdefs.h. */
18201 #ifdef __STDC__
18202 # include <limits.h>
18203 #else
18204 # include <assert.h>
18205 #endif
18206 Syntax error
18207 _ACEOF
18208 if ac_fn_cxx_try_cpp "$LINENO"; then :
18210 else
18211 # Broken: fails on valid input.
18212 continue
18214 rm -f conftest.err conftest.$ac_ext
18216 # OK, works on sane cases. Now check whether nonexistent headers
18217 # can be detected and how.
18218 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18219 /* end confdefs.h. */
18220 #include <ac_nonexistent.h>
18221 _ACEOF
18222 if ac_fn_cxx_try_cpp "$LINENO"; then :
18223 # Broken: success on invalid input.
18224 continue
18225 else
18226 # Passes both tests.
18227 ac_preproc_ok=:
18228 break
18230 rm -f conftest.err conftest.$ac_ext
18232 done
18233 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
18234 rm -f conftest.err conftest.$ac_ext
18235 if $ac_preproc_ok; then :
18236 break
18239 done
18240 ac_cv_prog_CXXCPP=$CXXCPP
18243 CXXCPP=$ac_cv_prog_CXXCPP
18244 else
18245 ac_cv_prog_CXXCPP=$CXXCPP
18247 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXXCPP" >&5
18248 $as_echo "$CXXCPP" >&6; }
18249 ac_preproc_ok=false
18250 for ac_cxx_preproc_warn_flag in '' yes
18252 # Use a header file that comes with gcc, so configuring glibc
18253 # with a fresh cross-compiler works.
18254 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
18255 # <limits.h> exists even on freestanding compilers.
18256 # On the NeXT, cc -E runs the code through the compiler's parser,
18257 # not just through cpp. "Syntax error" is here to catch this case.
18258 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18259 /* end confdefs.h. */
18260 #ifdef __STDC__
18261 # include <limits.h>
18262 #else
18263 # include <assert.h>
18264 #endif
18265 Syntax error
18266 _ACEOF
18267 if ac_fn_cxx_try_cpp "$LINENO"; then :
18269 else
18270 # Broken: fails on valid input.
18271 continue
18273 rm -f conftest.err conftest.$ac_ext
18275 # OK, works on sane cases. Now check whether nonexistent headers
18276 # can be detected and how.
18277 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18278 /* end confdefs.h. */
18279 #include <ac_nonexistent.h>
18280 _ACEOF
18281 if ac_fn_cxx_try_cpp "$LINENO"; then :
18282 # Broken: success on invalid input.
18283 continue
18284 else
18285 # Passes both tests.
18286 ac_preproc_ok=:
18287 break
18289 rm -f conftest.err conftest.$ac_ext
18291 done
18292 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
18293 rm -f conftest.err conftest.$ac_ext
18294 if $ac_preproc_ok; then :
18296 else
18297 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
18298 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
18299 as_fn_error "C++ preprocessor \"$CXXCPP\" fails sanity check
18300 See \`config.log' for more details." "$LINENO" 5; }
18303 ac_ext=c
18304 ac_cpp='$CPP $CPPFLAGS'
18305 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18306 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18307 ac_compiler_gnu=$ac_cv_c_compiler_gnu
18309 else
18310 _lt_caught_CXX_error=yes
18313 ac_ext=cpp
18314 ac_cpp='$CXXCPP $CPPFLAGS'
18315 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18316 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18317 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
18319 archive_cmds_need_lc_CXX=no
18320 allow_undefined_flag_CXX=
18321 always_export_symbols_CXX=no
18322 archive_expsym_cmds_CXX=
18323 compiler_needs_object_CXX=no
18324 export_dynamic_flag_spec_CXX=
18325 hardcode_direct_CXX=no
18326 hardcode_direct_absolute_CXX=no
18327 hardcode_libdir_flag_spec_CXX=
18328 hardcode_libdir_flag_spec_ld_CXX=
18329 hardcode_libdir_separator_CXX=
18330 hardcode_minus_L_CXX=no
18331 hardcode_shlibpath_var_CXX=unsupported
18332 hardcode_automatic_CXX=no
18333 inherit_rpath_CXX=no
18334 module_cmds_CXX=
18335 module_expsym_cmds_CXX=
18336 link_all_deplibs_CXX=unknown
18337 old_archive_cmds_CXX=$old_archive_cmds
18338 reload_flag_CXX=$reload_flag
18339 reload_cmds_CXX=$reload_cmds
18340 no_undefined_flag_CXX=
18341 whole_archive_flag_spec_CXX=
18342 enable_shared_with_static_runtimes_CXX=no
18344 # Source file extension for C++ test sources.
18345 ac_ext=cpp
18347 # Object file extension for compiled C++ test sources.
18348 objext=o
18349 objext_CXX=$objext
18351 # No sense in running all these tests if we already determined that
18352 # the CXX compiler isn't working. Some variables (like enable_shared)
18353 # are currently assumed to apply to all compilers on this platform,
18354 # and will be corrupted by setting them based on a non-working compiler.
18355 if test "$_lt_caught_CXX_error" != yes; then
18356 # Code to be used in simple compile tests
18357 lt_simple_compile_test_code="int some_variable = 0;"
18359 # Code to be used in simple link tests
18360 lt_simple_link_test_code='int main(int, char *[]) { return(0); }'
18362 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
18369 # If no C compiler was specified, use CC.
18370 LTCC=${LTCC-"$CC"}
18372 # If no C compiler flags were specified, use CFLAGS.
18373 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
18375 # Allow CC to be a program name with arguments.
18376 compiler=$CC
18379 # save warnings/boilerplate of simple test code
18380 ac_outfile=conftest.$ac_objext
18381 echo "$lt_simple_compile_test_code" >conftest.$ac_ext
18382 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
18383 _lt_compiler_boilerplate=`cat conftest.err`
18384 $RM conftest*
18386 ac_outfile=conftest.$ac_objext
18387 echo "$lt_simple_link_test_code" >conftest.$ac_ext
18388 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
18389 _lt_linker_boilerplate=`cat conftest.err`
18390 $RM -r conftest*
18393 # Allow CC to be a program name with arguments.
18394 lt_save_CC=$CC
18395 lt_save_LD=$LD
18396 lt_save_GCC=$GCC
18397 GCC=$GXX
18398 lt_save_with_gnu_ld=$with_gnu_ld
18399 lt_save_path_LD=$lt_cv_path_LD
18400 if test -n "${lt_cv_prog_gnu_ldcxx+set}"; then
18401 lt_cv_prog_gnu_ld=$lt_cv_prog_gnu_ldcxx
18402 else
18403 $as_unset lt_cv_prog_gnu_ld
18405 if test -n "${lt_cv_path_LDCXX+set}"; then
18406 lt_cv_path_LD=$lt_cv_path_LDCXX
18407 else
18408 $as_unset lt_cv_path_LD
18410 test -z "${LDCXX+set}" || LD=$LDCXX
18411 CC=${CXX-"c++"}
18412 compiler=$CC
18413 compiler_CXX=$CC
18414 for cc_temp in $compiler""; do
18415 case $cc_temp in
18416 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
18417 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
18418 \-*) ;;
18419 *) break;;
18420 esac
18421 done
18422 cc_basename=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
18425 if test -n "$compiler"; then
18426 # We don't want -fno-exception when compiling C++ code, so set the
18427 # no_builtin_flag separately
18428 if test "$GXX" = yes; then
18429 lt_prog_compiler_no_builtin_flag_CXX=' -fno-builtin'
18430 else
18431 lt_prog_compiler_no_builtin_flag_CXX=
18434 if test "$GXX" = yes; then
18435 # Set up default GNU C++ configuration
18439 # Check whether --with-gnu-ld was given.
18440 if test "${with_gnu_ld+set}" = set; then :
18441 withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
18442 else
18443 with_gnu_ld=no
18446 ac_prog=ld
18447 if test "$GCC" = yes; then
18448 # Check if gcc -print-prog-name=ld gives a path.
18449 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
18450 $as_echo_n "checking for ld used by $CC... " >&6; }
18451 case $host in
18452 *-*-mingw*)
18453 # gcc leaves a trailing carriage return which upsets mingw
18454 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
18456 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
18457 esac
18458 case $ac_prog in
18459 # Accept absolute paths.
18460 [\\/]* | ?:[\\/]*)
18461 re_direlt='/[^/][^/]*/\.\./'
18462 # Canonicalize the pathname of ld
18463 ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
18464 while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
18465 ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
18466 done
18467 test -z "$LD" && LD="$ac_prog"
18470 # If it fails, then pretend we aren't using GCC.
18471 ac_prog=ld
18474 # If it is relative, then search for the first ld in PATH.
18475 with_gnu_ld=unknown
18477 esac
18478 elif test "$with_gnu_ld" = yes; then
18479 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
18480 $as_echo_n "checking for GNU ld... " >&6; }
18481 else
18482 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
18483 $as_echo_n "checking for non-GNU ld... " >&6; }
18485 if test "${lt_cv_path_LD+set}" = set; then :
18486 $as_echo_n "(cached) " >&6
18487 else
18488 if test -z "$LD"; then
18489 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
18490 for ac_dir in $PATH; do
18491 IFS="$lt_save_ifs"
18492 test -z "$ac_dir" && ac_dir=.
18493 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
18494 lt_cv_path_LD="$ac_dir/$ac_prog"
18495 # Check to see if the program is GNU ld. I'd rather use --version,
18496 # but apparently some variants of GNU ld only accept -v.
18497 # Break only if it was the GNU/non-GNU ld that we prefer.
18498 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
18499 *GNU* | *'with BFD'*)
18500 test "$with_gnu_ld" != no && break
18503 test "$with_gnu_ld" != yes && break
18505 esac
18507 done
18508 IFS="$lt_save_ifs"
18509 else
18510 lt_cv_path_LD="$LD" # Let the user override the test with a path.
18514 LD="$lt_cv_path_LD"
18515 if test -n "$LD"; then
18516 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
18517 $as_echo "$LD" >&6; }
18518 else
18519 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
18520 $as_echo "no" >&6; }
18522 test -z "$LD" && as_fn_error "no acceptable ld found in \$PATH" "$LINENO" 5
18523 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
18524 $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
18525 if test "${lt_cv_prog_gnu_ld+set}" = set; then :
18526 $as_echo_n "(cached) " >&6
18527 else
18528 # I'd rather use --version here, but apparently some GNU lds only accept -v.
18529 case `$LD -v 2>&1 </dev/null` in
18530 *GNU* | *'with BFD'*)
18531 lt_cv_prog_gnu_ld=yes
18534 lt_cv_prog_gnu_ld=no
18536 esac
18538 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
18539 $as_echo "$lt_cv_prog_gnu_ld" >&6; }
18540 with_gnu_ld=$lt_cv_prog_gnu_ld
18548 # Check if GNU C++ uses GNU ld as the underlying linker, since the
18549 # archiving commands below assume that GNU ld is being used.
18550 if test "$with_gnu_ld" = yes; then
18551 archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
18552 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'
18554 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
18555 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
18557 # If archive_cmds runs LD, not CC, wlarc should be empty
18558 # XXX I think wlarc can be eliminated in ltcf-cxx, but I need to
18559 # investigate it a little bit more. (MM)
18560 wlarc='${wl}'
18562 # ancient GNU ld didn't support --whole-archive et. al.
18563 if eval "`$CC -print-prog-name=ld` --help 2>&1" |
18564 $GREP 'no-whole-archive' > /dev/null; then
18565 whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
18566 else
18567 whole_archive_flag_spec_CXX=
18569 else
18570 with_gnu_ld=no
18571 wlarc=
18573 # A generic and very simple default shared library creation
18574 # command for GNU C++ for the case where it uses the native
18575 # linker, instead of GNU ld. If possible, this setting should
18576 # overridden to take advantage of the native linker features on
18577 # the platform it is being used on.
18578 archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
18581 # Commands to make compiler produce verbose output that lists
18582 # what "hidden" libraries, object files and flags are used when
18583 # linking a shared library.
18584 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
18586 else
18587 GXX=no
18588 with_gnu_ld=no
18589 wlarc=
18592 # PORTME: fill in a description of your system's C++ link characteristics
18593 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
18594 $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
18595 ld_shlibs_CXX=yes
18596 case $host_os in
18597 aix3*)
18598 # FIXME: insert proper C++ library support
18599 ld_shlibs_CXX=no
18601 aix[4-9]*)
18602 if test "$host_cpu" = ia64; then
18603 # On IA64, the linker does run time linking by default, so we don't
18604 # have to do anything special.
18605 aix_use_runtimelinking=no
18606 exp_sym_flag='-Bexport'
18607 no_entry_flag=""
18608 else
18609 aix_use_runtimelinking=no
18611 # Test if we are trying to use run time linking or normal
18612 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
18613 # need to do runtime linking.
18614 case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
18615 for ld_flag in $LDFLAGS; do
18616 case $ld_flag in
18617 *-brtl*)
18618 aix_use_runtimelinking=yes
18619 break
18621 esac
18622 done
18624 esac
18626 exp_sym_flag='-bexport'
18627 no_entry_flag='-bnoentry'
18630 # When large executables or shared objects are built, AIX ld can
18631 # have problems creating the table of contents. If linking a library
18632 # or program results in "error TOC overflow" add -mminimal-toc to
18633 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
18634 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
18636 archive_cmds_CXX=''
18637 hardcode_direct_CXX=yes
18638 hardcode_direct_absolute_CXX=yes
18639 hardcode_libdir_separator_CXX=':'
18640 link_all_deplibs_CXX=yes
18641 file_list_spec_CXX='${wl}-f,'
18643 if test "$GXX" = yes; then
18644 case $host_os in aix4.[012]|aix4.[012].*)
18645 # We only want to do this on AIX 4.2 and lower, the check
18646 # below for broken collect2 doesn't work under 4.3+
18647 collect2name=`${CC} -print-prog-name=collect2`
18648 if test -f "$collect2name" &&
18649 strings "$collect2name" | $GREP resolve_lib_name >/dev/null
18650 then
18651 # We have reworked collect2
18653 else
18654 # We have old collect2
18655 hardcode_direct_CXX=unsupported
18656 # It fails to find uninstalled libraries when the uninstalled
18657 # path is not listed in the libpath. Setting hardcode_minus_L
18658 # to unsupported forces relinking
18659 hardcode_minus_L_CXX=yes
18660 hardcode_libdir_flag_spec_CXX='-L$libdir'
18661 hardcode_libdir_separator_CXX=
18663 esac
18664 shared_flag='-shared'
18665 if test "$aix_use_runtimelinking" = yes; then
18666 shared_flag="$shared_flag "'${wl}-G'
18668 else
18669 # not using gcc
18670 if test "$host_cpu" = ia64; then
18671 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
18672 # chokes on -Wl,-G. The following line is correct:
18673 shared_flag='-G'
18674 else
18675 if test "$aix_use_runtimelinking" = yes; then
18676 shared_flag='${wl}-G'
18677 else
18678 shared_flag='${wl}-bM:SRE'
18683 export_dynamic_flag_spec_CXX='${wl}-bexpall'
18684 # It seems that -bexpall does not export symbols beginning with
18685 # underscore (_), so it is better to generate a list of symbols to
18686 # export.
18687 always_export_symbols_CXX=yes
18688 if test "$aix_use_runtimelinking" = yes; then
18689 # Warning - without using the other runtime loading flags (-brtl),
18690 # -berok will link without error, but may produce a broken library.
18691 allow_undefined_flag_CXX='-berok'
18692 # Determine the default libpath from the value encoded in an empty
18693 # executable.
18694 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18695 /* end confdefs.h. */
18698 main ()
18702 return 0;
18704 _ACEOF
18705 if ac_fn_cxx_try_link "$LINENO"; then :
18707 lt_aix_libpath_sed='
18708 /Import File Strings/,/^$/ {
18709 /^0/ {
18710 s/^0 *\(.*\)$/\1/
18714 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
18715 # Check for a 64-bit object if we didn't find anything.
18716 if test -z "$aix_libpath"; then
18717 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
18720 rm -f core conftest.err conftest.$ac_objext \
18721 conftest$ac_exeext conftest.$ac_ext
18722 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
18724 hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
18726 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"
18727 else
18728 if test "$host_cpu" = ia64; then
18729 hardcode_libdir_flag_spec_CXX='${wl}-R $libdir:/usr/lib:/lib'
18730 allow_undefined_flag_CXX="-z nodefs"
18731 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"
18732 else
18733 # Determine the default libpath from the value encoded in an
18734 # empty executable.
18735 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18736 /* end confdefs.h. */
18739 main ()
18743 return 0;
18745 _ACEOF
18746 if ac_fn_cxx_try_link "$LINENO"; then :
18748 lt_aix_libpath_sed='
18749 /Import File Strings/,/^$/ {
18750 /^0/ {
18751 s/^0 *\(.*\)$/\1/
18755 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
18756 # Check for a 64-bit object if we didn't find anything.
18757 if test -z "$aix_libpath"; then
18758 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
18761 rm -f core conftest.err conftest.$ac_objext \
18762 conftest$ac_exeext conftest.$ac_ext
18763 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
18765 hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
18766 # Warning - without using the other run time loading flags,
18767 # -berok will link without error, but may produce a broken library.
18768 no_undefined_flag_CXX=' ${wl}-bernotok'
18769 allow_undefined_flag_CXX=' ${wl}-berok'
18770 if test "$with_gnu_ld" = yes; then
18771 # We only use this code for GNU lds that support --whole-archive.
18772 whole_archive_flag_spec_CXX='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
18773 else
18774 # Exported symbols can be pulled into shared objects from archives
18775 whole_archive_flag_spec_CXX='$convenience'
18777 archive_cmds_need_lc_CXX=yes
18778 # This is similar to how AIX traditionally builds its shared
18779 # libraries.
18780 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'
18785 beos*)
18786 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
18787 allow_undefined_flag_CXX=unsupported
18788 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
18789 # support --undefined. This deserves some investigation. FIXME
18790 archive_cmds_CXX='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
18791 else
18792 ld_shlibs_CXX=no
18796 chorus*)
18797 case $cc_basename in
18799 # FIXME: insert proper C++ library support
18800 ld_shlibs_CXX=no
18802 esac
18805 cygwin* | mingw* | pw32* | cegcc*)
18806 # _LT_TAGVAR(hardcode_libdir_flag_spec, CXX) is actually meaningless,
18807 # as there is no search path for DLLs.
18808 hardcode_libdir_flag_spec_CXX='-L$libdir'
18809 export_dynamic_flag_spec_CXX='${wl}--export-all-symbols'
18810 allow_undefined_flag_CXX=unsupported
18811 always_export_symbols_CXX=no
18812 enable_shared_with_static_runtimes_CXX=yes
18814 if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
18815 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'
18816 # If the export-symbols file already is a .def file (1st line
18817 # is EXPORTS), use it as is; otherwise, prepend...
18818 archive_expsym_cmds_CXX='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
18819 cp $export_symbols $output_objdir/$soname.def;
18820 else
18821 echo EXPORTS > $output_objdir/$soname.def;
18822 cat $export_symbols >> $output_objdir/$soname.def;
18824 $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'
18825 else
18826 ld_shlibs_CXX=no
18829 darwin* | rhapsody*)
18832 archive_cmds_need_lc_CXX=no
18833 hardcode_direct_CXX=no
18834 hardcode_automatic_CXX=yes
18835 hardcode_shlibpath_var_CXX=unsupported
18836 if test "$lt_cv_ld_force_load" = "yes"; then
18837 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\"`'
18838 else
18839 whole_archive_flag_spec_CXX=''
18841 link_all_deplibs_CXX=yes
18842 allow_undefined_flag_CXX="$_lt_dar_allow_undefined"
18843 case $cc_basename in
18844 ifort*) _lt_dar_can_shared=yes ;;
18845 *) _lt_dar_can_shared=$GCC ;;
18846 esac
18847 if test "$_lt_dar_can_shared" = "yes"; then
18848 output_verbose_link_cmd=func_echo_all
18849 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}"
18850 module_cmds_CXX="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
18851 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}"
18852 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}"
18853 if test "$lt_cv_apple_cc_single_mod" != "yes"; then
18854 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}"
18855 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}"
18858 else
18859 ld_shlibs_CXX=no
18864 dgux*)
18865 case $cc_basename in
18866 ec++*)
18867 # FIXME: insert proper C++ library support
18868 ld_shlibs_CXX=no
18870 ghcx*)
18871 # Green Hills C++ Compiler
18872 # FIXME: insert proper C++ library support
18873 ld_shlibs_CXX=no
18876 # FIXME: insert proper C++ library support
18877 ld_shlibs_CXX=no
18879 esac
18882 freebsd2.*)
18883 # C++ shared libraries reported to be fairly broken before
18884 # switch to ELF
18885 ld_shlibs_CXX=no
18888 freebsd-elf*)
18889 archive_cmds_need_lc_CXX=no
18892 freebsd* | dragonfly*)
18893 # FreeBSD 3 and later use GNU C++ and GNU ld with standard ELF
18894 # conventions
18895 ld_shlibs_CXX=yes
18898 gnu*)
18901 haiku*)
18902 archive_cmds_CXX='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
18903 link_all_deplibs_CXX=yes
18906 hpux9*)
18907 hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
18908 hardcode_libdir_separator_CXX=:
18909 export_dynamic_flag_spec_CXX='${wl}-E'
18910 hardcode_direct_CXX=yes
18911 hardcode_minus_L_CXX=yes # Not in the search PATH,
18912 # but as the default
18913 # location of the library.
18915 case $cc_basename in
18916 CC*)
18917 # FIXME: insert proper C++ library support
18918 ld_shlibs_CXX=no
18920 aCC*)
18921 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'
18922 # Commands to make compiler produce verbose output that lists
18923 # what "hidden" libraries, object files and flags are used when
18924 # linking a shared library.
18926 # There doesn't appear to be a way to prevent this compiler from
18927 # explicitly linking system object files so we need to strip them
18928 # from the output so that they don't get included in the library
18929 # dependencies.
18930 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"'
18933 if test "$GXX" = yes; then
18934 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'
18935 else
18936 # FIXME: insert proper C++ library support
18937 ld_shlibs_CXX=no
18940 esac
18943 hpux10*|hpux11*)
18944 if test $with_gnu_ld = no; then
18945 hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
18946 hardcode_libdir_separator_CXX=:
18948 case $host_cpu in
18949 hppa*64*|ia64*)
18952 export_dynamic_flag_spec_CXX='${wl}-E'
18954 esac
18956 case $host_cpu in
18957 hppa*64*|ia64*)
18958 hardcode_direct_CXX=no
18959 hardcode_shlibpath_var_CXX=no
18962 hardcode_direct_CXX=yes
18963 hardcode_direct_absolute_CXX=yes
18964 hardcode_minus_L_CXX=yes # Not in the search PATH,
18965 # but as the default
18966 # location of the library.
18968 esac
18970 case $cc_basename in
18971 CC*)
18972 # FIXME: insert proper C++ library support
18973 ld_shlibs_CXX=no
18975 aCC*)
18976 case $host_cpu in
18977 hppa*64*)
18978 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
18980 ia64*)
18981 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
18984 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
18986 esac
18987 # Commands to make compiler produce verbose output that lists
18988 # what "hidden" libraries, object files and flags are used when
18989 # linking a shared library.
18991 # There doesn't appear to be a way to prevent this compiler from
18992 # explicitly linking system object files so we need to strip them
18993 # from the output so that they don't get included in the library
18994 # dependencies.
18995 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"'
18998 if test "$GXX" = yes; then
18999 if test $with_gnu_ld = no; then
19000 case $host_cpu in
19001 hppa*64*)
19002 archive_cmds_CXX='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
19004 ia64*)
19005 archive_cmds_CXX='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
19008 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'
19010 esac
19012 else
19013 # FIXME: insert proper C++ library support
19014 ld_shlibs_CXX=no
19017 esac
19020 interix[3-9]*)
19021 hardcode_direct_CXX=no
19022 hardcode_shlibpath_var_CXX=no
19023 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
19024 export_dynamic_flag_spec_CXX='${wl}-E'
19025 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
19026 # Instead, shared libraries are loaded at an image base (0x10000000 by
19027 # default) and relocated if they conflict, which is a slow very memory
19028 # consuming and fragmenting process. To avoid this, we pick a random,
19029 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
19030 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
19031 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'
19032 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'
19034 irix5* | irix6*)
19035 case $cc_basename in
19036 CC*)
19037 # SGI C++
19038 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'
19040 # Archives containing C++ object files must be created using
19041 # "CC -ar", where "CC" is the IRIX C++ compiler. This is
19042 # necessary to make sure instantiated templates are included
19043 # in the archive.
19044 old_archive_cmds_CXX='$CC -ar -WR,-u -o $oldlib $oldobjs'
19047 if test "$GXX" = yes; then
19048 if test "$with_gnu_ld" = no; then
19049 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'
19050 else
19051 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'
19054 link_all_deplibs_CXX=yes
19056 esac
19057 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
19058 hardcode_libdir_separator_CXX=:
19059 inherit_rpath_CXX=yes
19062 linux* | k*bsd*-gnu | kopensolaris*-gnu)
19063 case $cc_basename in
19064 KCC*)
19065 # Kuck and Associates, Inc. (KAI) C++ Compiler
19067 # KCC will only create a shared library if the output file
19068 # ends with ".so" (or ".sl" for HP-UX), so rename the library
19069 # to its proper name (with version) after linking.
19070 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'
19071 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'
19072 # Commands to make compiler produce verbose output that lists
19073 # what "hidden" libraries, object files and flags are used when
19074 # linking a shared library.
19076 # There doesn't appear to be a way to prevent this compiler from
19077 # explicitly linking system object files so we need to strip them
19078 # from the output so that they don't get included in the library
19079 # dependencies.
19080 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"'
19082 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
19083 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
19085 # Archives containing C++ object files must be created using
19086 # "CC -Bstatic", where "CC" is the KAI C++ compiler.
19087 old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs'
19089 icpc* | ecpc* )
19090 # Intel C++
19091 with_gnu_ld=yes
19092 # version 8.0 and above of icpc choke on multiply defined symbols
19093 # if we add $predep_objects and $postdep_objects, however 7.1 and
19094 # earlier do not add the objects themselves.
19095 case `$CC -V 2>&1` in
19096 *"Version 7."*)
19097 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
19098 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'
19100 *) # Version 8.0 or newer
19101 tmp_idyn=
19102 case $host_cpu in
19103 ia64*) tmp_idyn=' -i_dynamic';;
19104 esac
19105 archive_cmds_CXX='$CC -shared'"$tmp_idyn"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
19106 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'
19108 esac
19109 archive_cmds_need_lc_CXX=no
19110 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
19111 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
19112 whole_archive_flag_spec_CXX='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
19114 pgCC* | pgcpp*)
19115 # Portland Group C++ compiler
19116 case `$CC -V` in
19117 *pgCC\ [1-5].* | *pgcpp\ [1-5].*)
19118 prelink_cmds_CXX='tpldir=Template.dir~
19119 rm -rf $tpldir~
19120 $CC --prelink_objects --instantiation_dir $tpldir $objs $libobjs $compile_deplibs~
19121 compile_command="$compile_command `find $tpldir -name \*.o | $NL2SP`"'
19122 old_archive_cmds_CXX='tpldir=Template.dir~
19123 rm -rf $tpldir~
19124 $CC --prelink_objects --instantiation_dir $tpldir $oldobjs$old_deplibs~
19125 $AR $AR_FLAGS $oldlib$oldobjs$old_deplibs `find $tpldir -name \*.o | $NL2SP`~
19126 $RANLIB $oldlib'
19127 archive_cmds_CXX='tpldir=Template.dir~
19128 rm -rf $tpldir~
19129 $CC --prelink_objects --instantiation_dir $tpldir $predep_objects $libobjs $deplibs $convenience $postdep_objects~
19130 $CC -shared $pic_flag $predep_objects $libobjs $deplibs `find $tpldir -name \*.o | $NL2SP` $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname -o $lib'
19131 archive_expsym_cmds_CXX='tpldir=Template.dir~
19132 rm -rf $tpldir~
19133 $CC --prelink_objects --instantiation_dir $tpldir $predep_objects $libobjs $deplibs $convenience $postdep_objects~
19134 $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'
19136 *) # Version 6 and above use weak symbols
19137 archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname -o $lib'
19138 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'
19140 esac
19142 hardcode_libdir_flag_spec_CXX='${wl}--rpath ${wl}$libdir'
19143 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
19144 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'
19146 cxx*)
19147 # Compaq C++
19148 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
19149 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'
19151 runpath_var=LD_RUN_PATH
19152 hardcode_libdir_flag_spec_CXX='-rpath $libdir'
19153 hardcode_libdir_separator_CXX=:
19155 # Commands to make compiler produce verbose output that lists
19156 # what "hidden" libraries, object files and flags are used when
19157 # linking a shared library.
19159 # There doesn't appear to be a way to prevent this compiler from
19160 # explicitly linking system object files so we need to strip them
19161 # from the output so that they don't get included in the library
19162 # dependencies.
19163 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'
19165 xl* | mpixl* | bgxl*)
19166 # IBM XL 8.0 on PPC, with GNU ld
19167 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
19168 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
19169 archive_cmds_CXX='$CC -qmkshrobj $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
19170 if test "x$supports_anon_versioning" = xyes; then
19171 archive_expsym_cmds_CXX='echo "{ global:" > $output_objdir/$libname.ver~
19172 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
19173 echo "local: *; };" >> $output_objdir/$libname.ver~
19174 $CC -qmkshrobj $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
19178 case `$CC -V 2>&1 | sed 5q` in
19179 *Sun\ C*)
19180 # Sun C++ 5.9
19181 no_undefined_flag_CXX=' -zdefs'
19182 archive_cmds_CXX='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
19183 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'
19184 hardcode_libdir_flag_spec_CXX='-R$libdir'
19185 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'
19186 compiler_needs_object_CXX=yes
19188 # Not sure whether something based on
19189 # $CC $CFLAGS -v conftest.$objext -o libconftest$shared_ext 2>&1
19190 # would be better.
19191 output_verbose_link_cmd='func_echo_all'
19193 # Archives containing C++ object files must be created using
19194 # "CC -xar", where "CC" is the Sun C++ compiler. This is
19195 # necessary to make sure instantiated templates are included
19196 # in the archive.
19197 old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs'
19199 esac
19201 esac
19204 lynxos*)
19205 # FIXME: insert proper C++ library support
19206 ld_shlibs_CXX=no
19209 m88k*)
19210 # FIXME: insert proper C++ library support
19211 ld_shlibs_CXX=no
19214 mvs*)
19215 case $cc_basename in
19216 cxx*)
19217 # FIXME: insert proper C++ library support
19218 ld_shlibs_CXX=no
19221 # FIXME: insert proper C++ library support
19222 ld_shlibs_CXX=no
19224 esac
19227 netbsd*)
19228 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
19229 archive_cmds_CXX='$LD -Bshareable -o $lib $predep_objects $libobjs $deplibs $postdep_objects $linker_flags'
19230 wlarc=
19231 hardcode_libdir_flag_spec_CXX='-R$libdir'
19232 hardcode_direct_CXX=yes
19233 hardcode_shlibpath_var_CXX=no
19235 # Workaround some broken pre-1.5 toolchains
19236 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP conftest.$objext | $SED -e "s:-lgcc -lc -lgcc::"'
19239 *nto* | *qnx*)
19240 ld_shlibs_CXX=yes
19243 openbsd2*)
19244 # C++ shared libraries are fairly broken
19245 ld_shlibs_CXX=no
19248 openbsd*)
19249 if test -f /usr/libexec/ld.so; then
19250 hardcode_direct_CXX=yes
19251 hardcode_shlibpath_var_CXX=no
19252 hardcode_direct_absolute_CXX=yes
19253 archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
19254 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
19255 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
19256 archive_expsym_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-retain-symbols-file,$export_symbols -o $lib'
19257 export_dynamic_flag_spec_CXX='${wl}-E'
19258 whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
19260 output_verbose_link_cmd=func_echo_all
19261 else
19262 ld_shlibs_CXX=no
19266 osf3* | osf4* | osf5*)
19267 case $cc_basename in
19268 KCC*)
19269 # Kuck and Associates, Inc. (KAI) C++ Compiler
19271 # KCC will only create a shared library if the output file
19272 # ends with ".so" (or ".sl" for HP-UX), so rename the library
19273 # to its proper name (with version) after linking.
19274 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'
19276 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
19277 hardcode_libdir_separator_CXX=:
19279 # Archives containing C++ object files must be created using
19280 # the KAI C++ compiler.
19281 case $host in
19282 osf3*) old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs' ;;
19283 *) old_archive_cmds_CXX='$CC -o $oldlib $oldobjs' ;;
19284 esac
19286 RCC*)
19287 # Rational C++ 2.4.1
19288 # FIXME: insert proper C++ library support
19289 ld_shlibs_CXX=no
19291 cxx*)
19292 case $host in
19293 osf3*)
19294 allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
19295 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'
19296 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
19299 allow_undefined_flag_CXX=' -expect_unresolved \*'
19300 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'
19301 archive_expsym_cmds_CXX='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done~
19302 echo "-hidden">> $lib.exp~
19303 $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~
19304 $RM $lib.exp'
19305 hardcode_libdir_flag_spec_CXX='-rpath $libdir'
19307 esac
19309 hardcode_libdir_separator_CXX=:
19311 # Commands to make compiler produce verbose output that lists
19312 # what "hidden" libraries, object files and flags are used when
19313 # linking a shared library.
19315 # There doesn't appear to be a way to prevent this compiler from
19316 # explicitly linking system object files so we need to strip them
19317 # from the output so that they don't get included in the library
19318 # dependencies.
19319 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"'
19322 if test "$GXX" = yes && test "$with_gnu_ld" = no; then
19323 allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
19324 case $host in
19325 osf3*)
19326 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'
19329 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'
19331 esac
19333 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
19334 hardcode_libdir_separator_CXX=:
19336 # Commands to make compiler produce verbose output that lists
19337 # what "hidden" libraries, object files and flags are used when
19338 # linking a shared library.
19339 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
19341 else
19342 # FIXME: insert proper C++ library support
19343 ld_shlibs_CXX=no
19346 esac
19349 psos*)
19350 # FIXME: insert proper C++ library support
19351 ld_shlibs_CXX=no
19354 sunos4*)
19355 case $cc_basename in
19356 CC*)
19357 # Sun C++ 4.x
19358 # FIXME: insert proper C++ library support
19359 ld_shlibs_CXX=no
19361 lcc*)
19362 # Lucid
19363 # FIXME: insert proper C++ library support
19364 ld_shlibs_CXX=no
19367 # FIXME: insert proper C++ library support
19368 ld_shlibs_CXX=no
19370 esac
19373 solaris*)
19374 case $cc_basename in
19375 CC*)
19376 # Sun C++ 4.2, 5.x and Centerline C++
19377 archive_cmds_need_lc_CXX=yes
19378 no_undefined_flag_CXX=' -zdefs'
19379 archive_cmds_CXX='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
19380 archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
19381 $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'
19383 hardcode_libdir_flag_spec_CXX='-R$libdir'
19384 hardcode_shlibpath_var_CXX=no
19385 case $host_os in
19386 solaris2.[0-5] | solaris2.[0-5].*) ;;
19388 # The compiler driver will combine and reorder linker options,
19389 # but understands `-z linker_flag'.
19390 # Supported since Solaris 2.6 (maybe 2.5.1?)
19391 whole_archive_flag_spec_CXX='-z allextract$convenience -z defaultextract'
19393 esac
19394 link_all_deplibs_CXX=yes
19396 output_verbose_link_cmd='func_echo_all'
19398 # Archives containing C++ object files must be created using
19399 # "CC -xar", where "CC" is the Sun C++ compiler. This is
19400 # necessary to make sure instantiated templates are included
19401 # in the archive.
19402 old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs'
19404 gcx*)
19405 # Green Hills C++ Compiler
19406 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
19408 # The C++ compiler must be used to create the archive.
19409 old_archive_cmds_CXX='$CC $LDFLAGS -archive -o $oldlib $oldobjs'
19412 # GNU C++ compiler with Solaris linker
19413 if test "$GXX" = yes && test "$with_gnu_ld" = no; then
19414 no_undefined_flag_CXX=' ${wl}-z ${wl}defs'
19415 if $CC --version | $GREP -v '^2\.7' > /dev/null; then
19416 archive_cmds_CXX='$CC -shared -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
19417 archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
19418 $CC -shared -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$RM $lib.exp'
19420 # Commands to make compiler produce verbose output that lists
19421 # what "hidden" libraries, object files and flags are used when
19422 # linking a shared library.
19423 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
19424 else
19425 # g++ 2.7 appears to require `-G' NOT `-shared' on this
19426 # platform.
19427 archive_cmds_CXX='$CC -G -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
19428 archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
19429 $CC -G -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$RM $lib.exp'
19431 # Commands to make compiler produce verbose output that lists
19432 # what "hidden" libraries, object files and flags are used when
19433 # linking a shared library.
19434 output_verbose_link_cmd='$CC -G $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
19437 hardcode_libdir_flag_spec_CXX='${wl}-R $wl$libdir'
19438 case $host_os in
19439 solaris2.[0-5] | solaris2.[0-5].*) ;;
19441 whole_archive_flag_spec_CXX='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
19443 esac
19446 esac
19449 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
19450 no_undefined_flag_CXX='${wl}-z,text'
19451 archive_cmds_need_lc_CXX=no
19452 hardcode_shlibpath_var_CXX=no
19453 runpath_var='LD_RUN_PATH'
19455 case $cc_basename in
19456 CC*)
19457 archive_cmds_CXX='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
19458 archive_expsym_cmds_CXX='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
19461 archive_cmds_CXX='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
19462 archive_expsym_cmds_CXX='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
19464 esac
19467 sysv5* | sco3.2v5* | sco5v6*)
19468 # Note: We can NOT use -z defs as we might desire, because we do not
19469 # link with -lc, and that would cause any symbols used from libc to
19470 # always be unresolved, which means just about no library would
19471 # ever link correctly. If we're not using GNU ld we use -z text
19472 # though, which does catch some bad symbols but isn't as heavy-handed
19473 # as -z defs.
19474 no_undefined_flag_CXX='${wl}-z,text'
19475 allow_undefined_flag_CXX='${wl}-z,nodefs'
19476 archive_cmds_need_lc_CXX=no
19477 hardcode_shlibpath_var_CXX=no
19478 hardcode_libdir_flag_spec_CXX='${wl}-R,$libdir'
19479 hardcode_libdir_separator_CXX=':'
19480 link_all_deplibs_CXX=yes
19481 export_dynamic_flag_spec_CXX='${wl}-Bexport'
19482 runpath_var='LD_RUN_PATH'
19484 case $cc_basename in
19485 CC*)
19486 archive_cmds_CXX='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
19487 archive_expsym_cmds_CXX='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
19488 old_archive_cmds_CXX='$CC -Tprelink_objects $oldobjs~
19489 '"$old_archive_cmds_CXX"
19490 reload_cmds_CXX='$CC -Tprelink_objects $reload_objs~
19491 '"$reload_cmds_CXX"
19494 archive_cmds_CXX='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
19495 archive_expsym_cmds_CXX='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
19497 esac
19500 tandem*)
19501 case $cc_basename in
19502 NCC*)
19503 # NonStop-UX NCC 3.20
19504 # FIXME: insert proper C++ library support
19505 ld_shlibs_CXX=no
19508 # FIXME: insert proper C++ library support
19509 ld_shlibs_CXX=no
19511 esac
19514 vxworks*)
19515 # FIXME: insert proper C++ library support
19516 ld_shlibs_CXX=no
19520 # FIXME: insert proper C++ library support
19521 ld_shlibs_CXX=no
19523 esac
19525 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs_CXX" >&5
19526 $as_echo "$ld_shlibs_CXX" >&6; }
19527 test "$ld_shlibs_CXX" = no && can_build_shared=no
19529 GCC_CXX="$GXX"
19530 LD_CXX="$LD"
19532 ## CAVEAT EMPTOR:
19533 ## There is no encapsulation within the following macros, do not change
19534 ## the running order or otherwise move them around unless you know exactly
19535 ## what you are doing...
19536 # Dependencies to place before and after the object being linked:
19537 predep_objects_CXX=
19538 postdep_objects_CXX=
19539 predeps_CXX=
19540 postdeps_CXX=
19541 compiler_lib_search_path_CXX=
19543 cat > conftest.$ac_ext <<_LT_EOF
19544 class Foo
19546 public:
19547 Foo (void) { a = 0; }
19548 private:
19549 int a;
19551 _LT_EOF
19553 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
19554 (eval $ac_compile) 2>&5
19555 ac_status=$?
19556 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
19557 test $ac_status = 0; }; then
19558 # Parse the compiler output and extract the necessary
19559 # objects, libraries and library flags.
19561 # Sentinel used to keep track of whether or not we are before
19562 # the conftest object file.
19563 pre_test_object_deps_done=no
19565 for p in `eval "$output_verbose_link_cmd"`; do
19566 case $p in
19568 -L* | -R* | -l*)
19569 # Some compilers place space between "-{L,R}" and the path.
19570 # Remove the space.
19571 if test $p = "-L" ||
19572 test $p = "-R"; then
19573 prev=$p
19574 continue
19575 else
19576 prev=
19579 if test "$pre_test_object_deps_done" = no; then
19580 case $p in
19581 -L* | -R*)
19582 # Internal compiler library paths should come after those
19583 # provided the user. The postdeps already come after the
19584 # user supplied libs so there is no need to process them.
19585 if test -z "$compiler_lib_search_path_CXX"; then
19586 compiler_lib_search_path_CXX="${prev}${p}"
19587 else
19588 compiler_lib_search_path_CXX="${compiler_lib_search_path_CXX} ${prev}${p}"
19591 # The "-l" case would never come before the object being
19592 # linked, so don't bother handling this case.
19593 esac
19594 else
19595 if test -z "$postdeps_CXX"; then
19596 postdeps_CXX="${prev}${p}"
19597 else
19598 postdeps_CXX="${postdeps_CXX} ${prev}${p}"
19603 *.$objext)
19604 # This assumes that the test object file only shows up
19605 # once in the compiler output.
19606 if test "$p" = "conftest.$objext"; then
19607 pre_test_object_deps_done=yes
19608 continue
19611 if test "$pre_test_object_deps_done" = no; then
19612 if test -z "$predep_objects_CXX"; then
19613 predep_objects_CXX="$p"
19614 else
19615 predep_objects_CXX="$predep_objects_CXX $p"
19617 else
19618 if test -z "$postdep_objects_CXX"; then
19619 postdep_objects_CXX="$p"
19620 else
19621 postdep_objects_CXX="$postdep_objects_CXX $p"
19626 *) ;; # Ignore the rest.
19628 esac
19629 done
19631 # Clean up.
19632 rm -f a.out a.exe
19633 else
19634 echo "libtool.m4: error: problem compiling CXX test program"
19637 $RM -f confest.$objext
19639 # PORTME: override above test on systems where it is broken
19640 case $host_os in
19641 interix[3-9]*)
19642 # Interix 3.5 installs completely hosed .la files for C++, so rather than
19643 # hack all around it, let's just trust "g++" to DTRT.
19644 predep_objects_CXX=
19645 postdep_objects_CXX=
19646 postdeps_CXX=
19649 linux*)
19650 case `$CC -V 2>&1 | sed 5q` in
19651 *Sun\ C*)
19652 # Sun C++ 5.9
19654 # The more standards-conforming stlport4 library is
19655 # incompatible with the Cstd library. Avoid specifying
19656 # it if it's in CXXFLAGS. Ignore libCrun as
19657 # -library=stlport4 depends on it.
19658 case " $CXX $CXXFLAGS " in
19659 *" -library=stlport4 "*)
19660 solaris_use_stlport4=yes
19662 esac
19664 if test "$solaris_use_stlport4" != yes; then
19665 postdeps_CXX='-library=Cstd -library=Crun'
19668 esac
19671 solaris*)
19672 case $cc_basename in
19673 CC*)
19674 # The more standards-conforming stlport4 library is
19675 # incompatible with the Cstd library. Avoid specifying
19676 # it if it's in CXXFLAGS. Ignore libCrun as
19677 # -library=stlport4 depends on it.
19678 case " $CXX $CXXFLAGS " in
19679 *" -library=stlport4 "*)
19680 solaris_use_stlport4=yes
19682 esac
19684 # Adding this requires a known-good setup of shared libraries for
19685 # Sun compiler versions before 5.6, else PIC objects from an old
19686 # archive will be linked into the output, leading to subtle bugs.
19687 if test "$solaris_use_stlport4" != yes; then
19688 postdeps_CXX='-library=Cstd -library=Crun'
19691 esac
19693 esac
19696 case " $postdeps_CXX " in
19697 *" -lc "*) archive_cmds_need_lc_CXX=no ;;
19698 esac
19699 compiler_lib_search_dirs_CXX=
19700 if test -n "${compiler_lib_search_path_CXX}"; then
19701 compiler_lib_search_dirs_CXX=`echo " ${compiler_lib_search_path_CXX}" | ${SED} -e 's! -L! !g' -e 's!^ !!'`
19734 lt_prog_compiler_wl_CXX=
19735 lt_prog_compiler_pic_CXX=
19736 lt_prog_compiler_static_CXX=
19738 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
19739 $as_echo_n "checking for $compiler option to produce PIC... " >&6; }
19741 # C++ specific cases for pic, static, wl, etc.
19742 if test "$GXX" = yes; then
19743 lt_prog_compiler_wl_CXX='-Wl,'
19744 lt_prog_compiler_static_CXX='-static'
19746 case $host_os in
19747 aix*)
19748 # All AIX code is PIC.
19749 if test "$host_cpu" = ia64; then
19750 # AIX 5 now supports IA64 processor
19751 lt_prog_compiler_static_CXX='-Bstatic'
19753 lt_prog_compiler_pic_CXX='-fPIC'
19756 amigaos*)
19757 case $host_cpu in
19758 powerpc)
19759 # see comment about AmigaOS4 .so support
19760 lt_prog_compiler_pic_CXX='-fPIC'
19762 m68k)
19763 # FIXME: we need at least 68020 code to build shared libraries, but
19764 # adding the `-m68020' flag to GCC prevents building anything better,
19765 # like `-m68040'.
19766 lt_prog_compiler_pic_CXX='-m68020 -resident32 -malways-restore-a4'
19768 esac
19771 beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
19772 # PIC is the default for these OSes.
19774 mingw* | cygwin* | os2* | pw32* | cegcc*)
19775 # This hack is so that the source file can tell whether it is being
19776 # built for inclusion in a dll (and should export symbols for example).
19777 # Although the cygwin gcc ignores -fPIC, still need this for old-style
19778 # (--disable-auto-import) libraries
19779 lt_prog_compiler_pic_CXX='-DDLL_EXPORT'
19781 darwin* | rhapsody*)
19782 # PIC is the default on this platform
19783 # Common symbols not allowed in MH_DYLIB files
19784 lt_prog_compiler_pic_CXX='-fno-common'
19786 *djgpp*)
19787 # DJGPP does not support shared libraries at all
19788 lt_prog_compiler_pic_CXX=
19790 haiku*)
19791 # PIC is the default for Haiku.
19792 # The "-static" flag exists, but is broken.
19793 lt_prog_compiler_static_CXX=
19795 interix[3-9]*)
19796 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
19797 # Instead, we relocate shared libraries at runtime.
19799 sysv4*MP*)
19800 if test -d /usr/nec; then
19801 lt_prog_compiler_pic_CXX=-Kconform_pic
19804 hpux*)
19805 # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
19806 # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag
19807 # sets the default TLS model and affects inlining.
19808 case $host_cpu in
19809 hppa*64*)
19812 lt_prog_compiler_pic_CXX='-fPIC'
19814 esac
19816 *qnx* | *nto*)
19817 # QNX uses GNU C++, but need to define -shared option too, otherwise
19818 # it will coredump.
19819 lt_prog_compiler_pic_CXX='-fPIC -shared'
19822 lt_prog_compiler_pic_CXX='-fPIC'
19824 esac
19825 else
19826 case $host_os in
19827 aix[4-9]*)
19828 # All AIX code is PIC.
19829 if test "$host_cpu" = ia64; then
19830 # AIX 5 now supports IA64 processor
19831 lt_prog_compiler_static_CXX='-Bstatic'
19832 else
19833 lt_prog_compiler_static_CXX='-bnso -bI:/lib/syscalls.exp'
19836 chorus*)
19837 case $cc_basename in
19838 cxch68*)
19839 # Green Hills C++ Compiler
19840 # _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"
19842 esac
19844 dgux*)
19845 case $cc_basename in
19846 ec++*)
19847 lt_prog_compiler_pic_CXX='-KPIC'
19849 ghcx*)
19850 # Green Hills C++ Compiler
19851 lt_prog_compiler_pic_CXX='-pic'
19855 esac
19857 freebsd* | dragonfly*)
19858 # FreeBSD uses GNU C++
19860 hpux9* | hpux10* | hpux11*)
19861 case $cc_basename in
19862 CC*)
19863 lt_prog_compiler_wl_CXX='-Wl,'
19864 lt_prog_compiler_static_CXX='${wl}-a ${wl}archive'
19865 if test "$host_cpu" != ia64; then
19866 lt_prog_compiler_pic_CXX='+Z'
19869 aCC*)
19870 lt_prog_compiler_wl_CXX='-Wl,'
19871 lt_prog_compiler_static_CXX='${wl}-a ${wl}archive'
19872 case $host_cpu in
19873 hppa*64*|ia64*)
19874 # +Z the default
19877 lt_prog_compiler_pic_CXX='+Z'
19879 esac
19883 esac
19885 interix*)
19886 # This is c89, which is MS Visual C++ (no shared libs)
19887 # Anyone wants to do a port?
19889 irix5* | irix6* | nonstopux*)
19890 case $cc_basename in
19891 CC*)
19892 lt_prog_compiler_wl_CXX='-Wl,'
19893 lt_prog_compiler_static_CXX='-non_shared'
19894 # CC pic flag -KPIC is the default.
19898 esac
19900 linux* | k*bsd*-gnu | kopensolaris*-gnu)
19901 case $cc_basename in
19902 KCC*)
19903 # KAI C++ Compiler
19904 lt_prog_compiler_wl_CXX='--backend -Wl,'
19905 lt_prog_compiler_pic_CXX='-fPIC'
19907 ecpc* )
19908 # old Intel C++ for x86_64 which still supported -KPIC.
19909 lt_prog_compiler_wl_CXX='-Wl,'
19910 lt_prog_compiler_pic_CXX='-KPIC'
19911 lt_prog_compiler_static_CXX='-static'
19913 icpc* )
19914 # Intel C++, used to be incompatible with GCC.
19915 # ICC 10 doesn't accept -KPIC any more.
19916 lt_prog_compiler_wl_CXX='-Wl,'
19917 lt_prog_compiler_pic_CXX='-fPIC'
19918 lt_prog_compiler_static_CXX='-static'
19920 pgCC* | pgcpp*)
19921 # Portland Group C++ compiler
19922 lt_prog_compiler_wl_CXX='-Wl,'
19923 lt_prog_compiler_pic_CXX='-fpic'
19924 lt_prog_compiler_static_CXX='-Bstatic'
19926 cxx*)
19927 # Compaq C++
19928 # Make sure the PIC flag is empty. It appears that all Alpha
19929 # Linux and Compaq Tru64 Unix objects are PIC.
19930 lt_prog_compiler_pic_CXX=
19931 lt_prog_compiler_static_CXX='-non_shared'
19933 xlc* | xlC* | bgxl[cC]* | mpixl[cC]*)
19934 # IBM XL 8.0, 9.0 on PPC and BlueGene
19935 lt_prog_compiler_wl_CXX='-Wl,'
19936 lt_prog_compiler_pic_CXX='-qpic'
19937 lt_prog_compiler_static_CXX='-qstaticlink'
19940 case `$CC -V 2>&1 | sed 5q` in
19941 *Sun\ C*)
19942 # Sun C++ 5.9
19943 lt_prog_compiler_pic_CXX='-KPIC'
19944 lt_prog_compiler_static_CXX='-Bstatic'
19945 lt_prog_compiler_wl_CXX='-Qoption ld '
19947 esac
19949 esac
19951 lynxos*)
19953 m88k*)
19955 mvs*)
19956 case $cc_basename in
19957 cxx*)
19958 lt_prog_compiler_pic_CXX='-W c,exportall'
19962 esac
19964 netbsd*)
19966 *qnx* | *nto*)
19967 # QNX uses GNU C++, but need to define -shared option too, otherwise
19968 # it will coredump.
19969 lt_prog_compiler_pic_CXX='-fPIC -shared'
19971 osf3* | osf4* | osf5*)
19972 case $cc_basename in
19973 KCC*)
19974 lt_prog_compiler_wl_CXX='--backend -Wl,'
19976 RCC*)
19977 # Rational C++ 2.4.1
19978 lt_prog_compiler_pic_CXX='-pic'
19980 cxx*)
19981 # Digital/Compaq C++
19982 lt_prog_compiler_wl_CXX='-Wl,'
19983 # Make sure the PIC flag is empty. It appears that all Alpha
19984 # Linux and Compaq Tru64 Unix objects are PIC.
19985 lt_prog_compiler_pic_CXX=
19986 lt_prog_compiler_static_CXX='-non_shared'
19990 esac
19992 psos*)
19994 solaris*)
19995 case $cc_basename in
19996 CC*)
19997 # Sun C++ 4.2, 5.x and Centerline C++
19998 lt_prog_compiler_pic_CXX='-KPIC'
19999 lt_prog_compiler_static_CXX='-Bstatic'
20000 lt_prog_compiler_wl_CXX='-Qoption ld '
20002 gcx*)
20003 # Green Hills C++ Compiler
20004 lt_prog_compiler_pic_CXX='-PIC'
20008 esac
20010 sunos4*)
20011 case $cc_basename in
20012 CC*)
20013 # Sun C++ 4.x
20014 lt_prog_compiler_pic_CXX='-pic'
20015 lt_prog_compiler_static_CXX='-Bstatic'
20017 lcc*)
20018 # Lucid
20019 lt_prog_compiler_pic_CXX='-pic'
20023 esac
20025 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
20026 case $cc_basename in
20027 CC*)
20028 lt_prog_compiler_wl_CXX='-Wl,'
20029 lt_prog_compiler_pic_CXX='-KPIC'
20030 lt_prog_compiler_static_CXX='-Bstatic'
20032 esac
20034 tandem*)
20035 case $cc_basename in
20036 NCC*)
20037 # NonStop-UX NCC 3.20
20038 lt_prog_compiler_pic_CXX='-KPIC'
20042 esac
20044 vxworks*)
20047 lt_prog_compiler_can_build_shared_CXX=no
20049 esac
20052 case $host_os in
20053 # For platforms which do not support PIC, -DPIC is meaningless:
20054 *djgpp*)
20055 lt_prog_compiler_pic_CXX=
20058 lt_prog_compiler_pic_CXX="$lt_prog_compiler_pic_CXX -DPIC"
20060 esac
20061 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_prog_compiler_pic_CXX" >&5
20062 $as_echo "$lt_prog_compiler_pic_CXX" >&6; }
20067 # Check to make sure the PIC flag actually works.
20069 if test -n "$lt_prog_compiler_pic_CXX"; then
20070 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works" >&5
20071 $as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works... " >&6; }
20072 if test "${lt_cv_prog_compiler_pic_works_CXX+set}" = set; then :
20073 $as_echo_n "(cached) " >&6
20074 else
20075 lt_cv_prog_compiler_pic_works_CXX=no
20076 ac_outfile=conftest.$ac_objext
20077 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
20078 lt_compiler_flag="$lt_prog_compiler_pic_CXX -DPIC"
20079 # Insert the option either (1) after the last *FLAGS variable, or
20080 # (2) before a word containing "conftest.", or (3) at the end.
20081 # Note that $ac_compile itself does not contain backslashes and begins
20082 # with a dollar sign (not a hyphen), so the echo should work correctly.
20083 # The option is referenced via a variable to avoid confusing sed.
20084 lt_compile=`echo "$ac_compile" | $SED \
20085 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
20086 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
20087 -e 's:$: $lt_compiler_flag:'`
20088 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
20089 (eval "$lt_compile" 2>conftest.err)
20090 ac_status=$?
20091 cat conftest.err >&5
20092 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20093 if (exit $ac_status) && test -s "$ac_outfile"; then
20094 # The compiler can only warn and ignore the option if not recognized
20095 # So say no if there are warnings other than the usual output.
20096 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
20097 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
20098 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
20099 lt_cv_prog_compiler_pic_works_CXX=yes
20102 $RM conftest*
20105 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works_CXX" >&5
20106 $as_echo "$lt_cv_prog_compiler_pic_works_CXX" >&6; }
20108 if test x"$lt_cv_prog_compiler_pic_works_CXX" = xyes; then
20109 case $lt_prog_compiler_pic_CXX in
20110 "" | " "*) ;;
20111 *) lt_prog_compiler_pic_CXX=" $lt_prog_compiler_pic_CXX" ;;
20112 esac
20113 else
20114 lt_prog_compiler_pic_CXX=
20115 lt_prog_compiler_can_build_shared_CXX=no
20123 # Check to make sure the static flag actually works.
20125 wl=$lt_prog_compiler_wl_CXX eval lt_tmp_static_flag=\"$lt_prog_compiler_static_CXX\"
20126 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
20127 $as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
20128 if test "${lt_cv_prog_compiler_static_works_CXX+set}" = set; then :
20129 $as_echo_n "(cached) " >&6
20130 else
20131 lt_cv_prog_compiler_static_works_CXX=no
20132 save_LDFLAGS="$LDFLAGS"
20133 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
20134 echo "$lt_simple_link_test_code" > conftest.$ac_ext
20135 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
20136 # The linker can only warn and ignore the option if not recognized
20137 # So say no if there are warnings
20138 if test -s conftest.err; then
20139 # Append any errors to the config.log.
20140 cat conftest.err 1>&5
20141 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
20142 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
20143 if diff conftest.exp conftest.er2 >/dev/null; then
20144 lt_cv_prog_compiler_static_works_CXX=yes
20146 else
20147 lt_cv_prog_compiler_static_works_CXX=yes
20150 $RM -r conftest*
20151 LDFLAGS="$save_LDFLAGS"
20154 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works_CXX" >&5
20155 $as_echo "$lt_cv_prog_compiler_static_works_CXX" >&6; }
20157 if test x"$lt_cv_prog_compiler_static_works_CXX" = xyes; then
20159 else
20160 lt_prog_compiler_static_CXX=
20166 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
20167 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
20168 if test "${lt_cv_prog_compiler_c_o_CXX+set}" = set; then :
20169 $as_echo_n "(cached) " >&6
20170 else
20171 lt_cv_prog_compiler_c_o_CXX=no
20172 $RM -r conftest 2>/dev/null
20173 mkdir conftest
20174 cd conftest
20175 mkdir out
20176 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
20178 lt_compiler_flag="-o out/conftest2.$ac_objext"
20179 # Insert the option either (1) after the last *FLAGS variable, or
20180 # (2) before a word containing "conftest.", or (3) at the end.
20181 # Note that $ac_compile itself does not contain backslashes and begins
20182 # with a dollar sign (not a hyphen), so the echo should work correctly.
20183 lt_compile=`echo "$ac_compile" | $SED \
20184 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
20185 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
20186 -e 's:$: $lt_compiler_flag:'`
20187 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
20188 (eval "$lt_compile" 2>out/conftest.err)
20189 ac_status=$?
20190 cat out/conftest.err >&5
20191 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20192 if (exit $ac_status) && test -s out/conftest2.$ac_objext
20193 then
20194 # The compiler can only warn and ignore the option if not recognized
20195 # So say no if there are warnings
20196 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
20197 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
20198 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
20199 lt_cv_prog_compiler_c_o_CXX=yes
20202 chmod u+w . 2>&5
20203 $RM conftest*
20204 # SGI C++ compiler will create directory out/ii_files/ for
20205 # template instantiation
20206 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
20207 $RM out/* && rmdir out
20208 cd ..
20209 $RM -r conftest
20210 $RM conftest*
20213 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o_CXX" >&5
20214 $as_echo "$lt_cv_prog_compiler_c_o_CXX" >&6; }
20218 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
20219 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
20220 if test "${lt_cv_prog_compiler_c_o_CXX+set}" = set; then :
20221 $as_echo_n "(cached) " >&6
20222 else
20223 lt_cv_prog_compiler_c_o_CXX=no
20224 $RM -r conftest 2>/dev/null
20225 mkdir conftest
20226 cd conftest
20227 mkdir out
20228 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
20230 lt_compiler_flag="-o out/conftest2.$ac_objext"
20231 # Insert the option either (1) after the last *FLAGS variable, or
20232 # (2) before a word containing "conftest.", or (3) at the end.
20233 # Note that $ac_compile itself does not contain backslashes and begins
20234 # with a dollar sign (not a hyphen), so the echo should work correctly.
20235 lt_compile=`echo "$ac_compile" | $SED \
20236 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
20237 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
20238 -e 's:$: $lt_compiler_flag:'`
20239 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
20240 (eval "$lt_compile" 2>out/conftest.err)
20241 ac_status=$?
20242 cat out/conftest.err >&5
20243 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20244 if (exit $ac_status) && test -s out/conftest2.$ac_objext
20245 then
20246 # The compiler can only warn and ignore the option if not recognized
20247 # So say no if there are warnings
20248 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
20249 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
20250 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
20251 lt_cv_prog_compiler_c_o_CXX=yes
20254 chmod u+w . 2>&5
20255 $RM conftest*
20256 # SGI C++ compiler will create directory out/ii_files/ for
20257 # template instantiation
20258 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
20259 $RM out/* && rmdir out
20260 cd ..
20261 $RM -r conftest
20262 $RM conftest*
20265 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o_CXX" >&5
20266 $as_echo "$lt_cv_prog_compiler_c_o_CXX" >&6; }
20271 hard_links="nottested"
20272 if test "$lt_cv_prog_compiler_c_o_CXX" = no && test "$need_locks" != no; then
20273 # do not overwrite the value of need_locks provided by the user
20274 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
20275 $as_echo_n "checking if we can lock with hard links... " >&6; }
20276 hard_links=yes
20277 $RM conftest*
20278 ln conftest.a conftest.b 2>/dev/null && hard_links=no
20279 touch conftest.a
20280 ln conftest.a conftest.b 2>&5 || hard_links=no
20281 ln conftest.a conftest.b 2>/dev/null && hard_links=no
20282 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
20283 $as_echo "$hard_links" >&6; }
20284 if test "$hard_links" = no; then
20285 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
20286 $as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
20287 need_locks=warn
20289 else
20290 need_locks=no
20295 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
20296 $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
20298 export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
20299 case $host_os in
20300 aix[4-9]*)
20301 # If we're using GNU nm, then we don't want the "-C" option.
20302 # -C means demangle to AIX nm, but means don't demangle with GNU nm
20303 # Also, AIX nm treats weak defined symbols like other global defined
20304 # symbols, whereas GNU nm marks them as "W".
20305 if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
20306 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'
20307 else
20308 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'
20311 pw32*)
20312 export_symbols_cmds_CXX="$ltdll_cmds"
20314 cygwin* | mingw* | cegcc*)
20315 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'
20318 export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
20320 esac
20321 exclude_expsyms_CXX='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
20323 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs_CXX" >&5
20324 $as_echo "$ld_shlibs_CXX" >&6; }
20325 test "$ld_shlibs_CXX" = no && can_build_shared=no
20327 with_gnu_ld_CXX=$with_gnu_ld
20335 # Do we need to explicitly link libc?
20337 case "x$archive_cmds_need_lc_CXX" in
20338 x|xyes)
20339 # Assume -lc should be added
20340 archive_cmds_need_lc_CXX=yes
20342 if test "$enable_shared" = yes && test "$GCC" = yes; then
20343 case $archive_cmds_CXX in
20344 *'~'*)
20345 # FIXME: we may have to deal with multi-command sequences.
20347 '$CC '*)
20348 # Test whether the compiler implicitly links with -lc since on some
20349 # systems, -lgcc has to come before -lc. If gcc already passes -lc
20350 # to ld, don't add -lc before -lgcc.
20351 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
20352 $as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
20353 if test "${lt_cv_archive_cmds_need_lc_CXX+set}" = set; then :
20354 $as_echo_n "(cached) " >&6
20355 else
20356 $RM conftest*
20357 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
20359 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
20360 (eval $ac_compile) 2>&5
20361 ac_status=$?
20362 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
20363 test $ac_status = 0; } 2>conftest.err; then
20364 soname=conftest
20365 lib=conftest
20366 libobjs=conftest.$ac_objext
20367 deplibs=
20368 wl=$lt_prog_compiler_wl_CXX
20369 pic_flag=$lt_prog_compiler_pic_CXX
20370 compiler_flags=-v
20371 linker_flags=-v
20372 verstring=
20373 output_objdir=.
20374 libname=conftest
20375 lt_save_allow_undefined_flag=$allow_undefined_flag_CXX
20376 allow_undefined_flag_CXX=
20377 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds_CXX 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5
20378 (eval $archive_cmds_CXX 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
20379 ac_status=$?
20380 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
20381 test $ac_status = 0; }
20382 then
20383 lt_cv_archive_cmds_need_lc_CXX=no
20384 else
20385 lt_cv_archive_cmds_need_lc_CXX=yes
20387 allow_undefined_flag_CXX=$lt_save_allow_undefined_flag
20388 else
20389 cat conftest.err 1>&5
20391 $RM conftest*
20394 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc_CXX" >&5
20395 $as_echo "$lt_cv_archive_cmds_need_lc_CXX" >&6; }
20396 archive_cmds_need_lc_CXX=$lt_cv_archive_cmds_need_lc_CXX
20398 esac
20401 esac
20466 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
20467 $as_echo_n "checking dynamic linker characteristics... " >&6; }
20469 library_names_spec=
20470 libname_spec='lib$name'
20471 soname_spec=
20472 shrext_cmds=".so"
20473 postinstall_cmds=
20474 postuninstall_cmds=
20475 finish_cmds=
20476 finish_eval=
20477 shlibpath_var=
20478 shlibpath_overrides_runpath=unknown
20479 version_type=none
20480 dynamic_linker="$host_os ld.so"
20481 sys_lib_dlsearch_path_spec="/lib /usr/lib"
20482 need_lib_prefix=unknown
20483 hardcode_into_libs=no
20485 # when you set need_version to no, make sure it does not cause -set_version
20486 # flags to be left without arguments
20487 need_version=unknown
20489 case $host_os in
20490 aix3*)
20491 version_type=linux
20492 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
20493 shlibpath_var=LIBPATH
20495 # AIX 3 has no versioning support, so we append a major version to the name.
20496 soname_spec='${libname}${release}${shared_ext}$major'
20499 aix[4-9]*)
20500 version_type=linux
20501 need_lib_prefix=no
20502 need_version=no
20503 hardcode_into_libs=yes
20504 if test "$host_cpu" = ia64; then
20505 # AIX 5 supports IA64
20506 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
20507 shlibpath_var=LD_LIBRARY_PATH
20508 else
20509 # With GCC up to 2.95.x, collect2 would create an import file
20510 # for dependence libraries. The import file would start with
20511 # the line `#! .'. This would cause the generated library to
20512 # depend on `.', always an invalid library. This was fixed in
20513 # development snapshots of GCC prior to 3.0.
20514 case $host_os in
20515 aix4 | aix4.[01] | aix4.[01].*)
20516 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
20517 echo ' yes '
20518 echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then
20520 else
20521 can_build_shared=no
20524 esac
20525 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
20526 # soname into executable. Probably we can add versioning support to
20527 # collect2, so additional links can be useful in future.
20528 if test "$aix_use_runtimelinking" = yes; then
20529 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
20530 # instead of lib<name>.a to let people know that these are not
20531 # typical AIX shared libraries.
20532 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20533 else
20534 # We preserve .a as extension for shared libraries through AIX4.2
20535 # and later when we are not doing run time linking.
20536 library_names_spec='${libname}${release}.a $libname.a'
20537 soname_spec='${libname}${release}${shared_ext}$major'
20539 shlibpath_var=LIBPATH
20543 amigaos*)
20544 case $host_cpu in
20545 powerpc)
20546 # Since July 2007 AmigaOS4 officially supports .so libraries.
20547 # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
20548 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20550 m68k)
20551 library_names_spec='$libname.ixlibrary $libname.a'
20552 # Create ${libname}_ixlibrary.a entries in /sys/libs.
20553 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'
20555 esac
20558 beos*)
20559 library_names_spec='${libname}${shared_ext}'
20560 dynamic_linker="$host_os ld.so"
20561 shlibpath_var=LIBRARY_PATH
20564 bsdi[45]*)
20565 version_type=linux
20566 need_version=no
20567 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20568 soname_spec='${libname}${release}${shared_ext}$major'
20569 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
20570 shlibpath_var=LD_LIBRARY_PATH
20571 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
20572 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
20573 # the default ld.so.conf also contains /usr/contrib/lib and
20574 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
20575 # libtool to hard-code these into programs
20578 cygwin* | mingw* | pw32* | cegcc*)
20579 version_type=windows
20580 shrext_cmds=".dll"
20581 need_version=no
20582 need_lib_prefix=no
20584 case $GCC,$host_os in
20585 yes,cygwin* | yes,mingw* | yes,pw32* | yes,cegcc*)
20586 library_names_spec='$libname.dll.a'
20587 # DLL is installed to $(libdir)/../bin by postinstall_cmds
20588 postinstall_cmds='base_file=`basename \${file}`~
20589 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
20590 dldir=$destdir/`dirname \$dlpath`~
20591 test -d \$dldir || mkdir -p \$dldir~
20592 $install_prog $dir/$dlname \$dldir/$dlname~
20593 chmod a+x \$dldir/$dlname~
20594 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
20595 eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
20597 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
20598 dlpath=$dir/\$dldll~
20599 $RM \$dlpath'
20600 shlibpath_overrides_runpath=yes
20602 case $host_os in
20603 cygwin*)
20604 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
20605 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
20608 mingw* | cegcc*)
20609 # MinGW DLLs use traditional 'lib' prefix
20610 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
20612 pw32*)
20613 # pw32 DLLs use 'pw' prefix rather than 'lib'
20614 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
20616 esac
20620 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
20622 esac
20623 dynamic_linker='Win32 ld.exe'
20624 # FIXME: first we should search . and the directory the executable is in
20625 shlibpath_var=PATH
20628 darwin* | rhapsody*)
20629 dynamic_linker="$host_os dyld"
20630 version_type=darwin
20631 need_lib_prefix=no
20632 need_version=no
20633 library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext'
20634 soname_spec='${libname}${release}${major}$shared_ext'
20635 shlibpath_overrides_runpath=yes
20636 shlibpath_var=DYLD_LIBRARY_PATH
20637 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
20639 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
20642 dgux*)
20643 version_type=linux
20644 need_lib_prefix=no
20645 need_version=no
20646 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
20647 soname_spec='${libname}${release}${shared_ext}$major'
20648 shlibpath_var=LD_LIBRARY_PATH
20651 freebsd* | dragonfly*)
20652 # DragonFly does not have aout. When/if they implement a new
20653 # versioning mechanism, adjust this.
20654 if test -x /usr/bin/objformat; then
20655 objformat=`/usr/bin/objformat`
20656 else
20657 case $host_os in
20658 freebsd[23].*) objformat=aout ;;
20659 *) objformat=elf ;;
20660 esac
20662 version_type=freebsd-$objformat
20663 case $version_type in
20664 freebsd-elf*)
20665 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
20666 need_version=no
20667 need_lib_prefix=no
20669 freebsd-*)
20670 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
20671 need_version=yes
20673 esac
20674 shlibpath_var=LD_LIBRARY_PATH
20675 case $host_os in
20676 freebsd2.*)
20677 shlibpath_overrides_runpath=yes
20679 freebsd3.[01]* | freebsdelf3.[01]*)
20680 shlibpath_overrides_runpath=yes
20681 hardcode_into_libs=yes
20683 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
20684 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
20685 shlibpath_overrides_runpath=no
20686 hardcode_into_libs=yes
20688 *) # from 4.6 on, and DragonFly
20689 shlibpath_overrides_runpath=yes
20690 hardcode_into_libs=yes
20692 esac
20695 gnu*)
20696 version_type=linux
20697 need_lib_prefix=no
20698 need_version=no
20699 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
20700 soname_spec='${libname}${release}${shared_ext}$major'
20701 shlibpath_var=LD_LIBRARY_PATH
20702 hardcode_into_libs=yes
20705 haiku*)
20706 version_type=linux
20707 need_lib_prefix=no
20708 need_version=no
20709 dynamic_linker="$host_os runtime_loader"
20710 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
20711 soname_spec='${libname}${release}${shared_ext}$major'
20712 shlibpath_var=LIBRARY_PATH
20713 shlibpath_overrides_runpath=yes
20714 sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/beos/system/lib'
20715 hardcode_into_libs=yes
20718 hpux9* | hpux10* | hpux11*)
20719 # Give a soname corresponding to the major version so that dld.sl refuses to
20720 # link against other versions.
20721 version_type=sunos
20722 need_lib_prefix=no
20723 need_version=no
20724 case $host_cpu in
20725 ia64*)
20726 shrext_cmds='.so'
20727 hardcode_into_libs=yes
20728 dynamic_linker="$host_os dld.so"
20729 shlibpath_var=LD_LIBRARY_PATH
20730 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
20731 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20732 soname_spec='${libname}${release}${shared_ext}$major'
20733 if test "X$HPUX_IA64_MODE" = X32; then
20734 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
20735 else
20736 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
20738 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
20740 hppa*64*)
20741 shrext_cmds='.sl'
20742 hardcode_into_libs=yes
20743 dynamic_linker="$host_os dld.sl"
20744 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
20745 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
20746 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20747 soname_spec='${libname}${release}${shared_ext}$major'
20748 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
20749 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
20752 shrext_cmds='.sl'
20753 dynamic_linker="$host_os dld.sl"
20754 shlibpath_var=SHLIB_PATH
20755 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
20756 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20757 soname_spec='${libname}${release}${shared_ext}$major'
20759 esac
20760 # HP-UX runs *really* slowly unless shared libraries are mode 555, ...
20761 postinstall_cmds='chmod 555 $lib'
20762 # or fails outright, so override atomically:
20763 install_override_mode=555
20766 interix[3-9]*)
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 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
20773 shlibpath_var=LD_LIBRARY_PATH
20774 shlibpath_overrides_runpath=no
20775 hardcode_into_libs=yes
20778 irix5* | irix6* | nonstopux*)
20779 case $host_os in
20780 nonstopux*) version_type=nonstopux ;;
20782 if test "$lt_cv_prog_gnu_ld" = yes; then
20783 version_type=linux
20784 else
20785 version_type=irix
20786 fi ;;
20787 esac
20788 need_lib_prefix=no
20789 need_version=no
20790 soname_spec='${libname}${release}${shared_ext}$major'
20791 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
20792 case $host_os in
20793 irix5* | nonstopux*)
20794 libsuff= shlibsuff=
20797 case $LD in # libtool.m4 will add one of these switches to LD
20798 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
20799 libsuff= shlibsuff= libmagic=32-bit;;
20800 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
20801 libsuff=32 shlibsuff=N32 libmagic=N32;;
20802 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
20803 libsuff=64 shlibsuff=64 libmagic=64-bit;;
20804 *) libsuff= shlibsuff= libmagic=never-match;;
20805 esac
20807 esac
20808 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
20809 shlibpath_overrides_runpath=no
20810 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
20811 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
20812 hardcode_into_libs=yes
20815 # No shared lib support for Linux oldld, aout, or coff.
20816 linux*oldld* | linux*aout* | linux*coff*)
20817 dynamic_linker=no
20820 # This must be Linux ELF.
20821 linux* | k*bsd*-gnu | kopensolaris*-gnu)
20822 version_type=linux
20823 need_lib_prefix=no
20824 need_version=no
20825 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20826 soname_spec='${libname}${release}${shared_ext}$major'
20827 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
20828 shlibpath_var=LD_LIBRARY_PATH
20829 shlibpath_overrides_runpath=no
20831 # Some binutils ld are patched to set DT_RUNPATH
20832 if test "${lt_cv_shlibpath_overrides_runpath+set}" = set; then :
20833 $as_echo_n "(cached) " >&6
20834 else
20835 lt_cv_shlibpath_overrides_runpath=no
20836 save_LDFLAGS=$LDFLAGS
20837 save_libdir=$libdir
20838 eval "libdir=/foo; wl=\"$lt_prog_compiler_wl_CXX\"; \
20839 LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec_CXX\""
20840 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20841 /* end confdefs.h. */
20844 main ()
20848 return 0;
20850 _ACEOF
20851 if ac_fn_cxx_try_link "$LINENO"; then :
20852 if ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then :
20853 lt_cv_shlibpath_overrides_runpath=yes
20856 rm -f core conftest.err conftest.$ac_objext \
20857 conftest$ac_exeext conftest.$ac_ext
20858 LDFLAGS=$save_LDFLAGS
20859 libdir=$save_libdir
20863 shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath
20865 # This implies no fast_install, which is unacceptable.
20866 # Some rework will be needed to allow for fast_install
20867 # before this can be enabled.
20868 hardcode_into_libs=yes
20870 # Append ld.so.conf contents to the search path
20871 if test -f /etc/ld.so.conf; then
20872 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' ' '`
20873 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
20876 # We used to test for /lib/ld.so.1 and disable shared libraries on
20877 # powerpc, because MkLinux only supported shared libraries with the
20878 # GNU dynamic linker. Since this was broken with cross compilers,
20879 # most powerpc-linux boxes support dynamic linking these days and
20880 # people can always --disable-shared, the test was removed, and we
20881 # assume the GNU/Linux dynamic linker is in use.
20882 dynamic_linker='GNU/Linux ld.so'
20885 netbsd*)
20886 version_type=sunos
20887 need_lib_prefix=no
20888 need_version=no
20889 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
20890 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
20891 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
20892 dynamic_linker='NetBSD (a.out) ld.so'
20893 else
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='NetBSD ld.elf_so'
20898 shlibpath_var=LD_LIBRARY_PATH
20899 shlibpath_overrides_runpath=yes
20900 hardcode_into_libs=yes
20903 newsos6)
20904 version_type=linux
20905 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20906 shlibpath_var=LD_LIBRARY_PATH
20907 shlibpath_overrides_runpath=yes
20910 *nto* | *qnx*)
20911 version_type=qnx
20912 need_lib_prefix=no
20913 need_version=no
20914 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20915 soname_spec='${libname}${release}${shared_ext}$major'
20916 shlibpath_var=LD_LIBRARY_PATH
20917 shlibpath_overrides_runpath=no
20918 hardcode_into_libs=yes
20919 dynamic_linker='ldqnx.so'
20922 openbsd*)
20923 version_type=sunos
20924 sys_lib_dlsearch_path_spec="/usr/lib"
20925 need_lib_prefix=no
20926 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
20927 case $host_os in
20928 openbsd3.3 | openbsd3.3.*) need_version=yes ;;
20929 *) need_version=no ;;
20930 esac
20931 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
20932 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
20933 shlibpath_var=LD_LIBRARY_PATH
20934 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
20935 case $host_os in
20936 openbsd2.[89] | openbsd2.[89].*)
20937 shlibpath_overrides_runpath=no
20940 shlibpath_overrides_runpath=yes
20942 esac
20943 else
20944 shlibpath_overrides_runpath=yes
20948 os2*)
20949 libname_spec='$name'
20950 shrext_cmds=".dll"
20951 need_lib_prefix=no
20952 library_names_spec='$libname${shared_ext} $libname.a'
20953 dynamic_linker='OS/2 ld.exe'
20954 shlibpath_var=LIBPATH
20957 osf3* | osf4* | osf5*)
20958 version_type=osf
20959 need_lib_prefix=no
20960 need_version=no
20961 soname_spec='${libname}${release}${shared_ext}$major'
20962 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20963 shlibpath_var=LD_LIBRARY_PATH
20964 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
20965 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
20968 rdos*)
20969 dynamic_linker=no
20972 solaris*)
20973 version_type=linux
20974 need_lib_prefix=no
20975 need_version=no
20976 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20977 soname_spec='${libname}${release}${shared_ext}$major'
20978 shlibpath_var=LD_LIBRARY_PATH
20979 shlibpath_overrides_runpath=yes
20980 hardcode_into_libs=yes
20981 # ldd complains unless libraries are executable
20982 postinstall_cmds='chmod +x $lib'
20985 sunos4*)
20986 version_type=sunos
20987 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
20988 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
20989 shlibpath_var=LD_LIBRARY_PATH
20990 shlibpath_overrides_runpath=yes
20991 if test "$with_gnu_ld" = yes; then
20992 need_lib_prefix=no
20994 need_version=yes
20997 sysv4 | sysv4.3*)
20998 version_type=linux
20999 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
21000 soname_spec='${libname}${release}${shared_ext}$major'
21001 shlibpath_var=LD_LIBRARY_PATH
21002 case $host_vendor in
21003 sni)
21004 shlibpath_overrides_runpath=no
21005 need_lib_prefix=no
21006 runpath_var=LD_RUN_PATH
21008 siemens)
21009 need_lib_prefix=no
21011 motorola)
21012 need_lib_prefix=no
21013 need_version=no
21014 shlibpath_overrides_runpath=no
21015 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
21017 esac
21020 sysv4*MP*)
21021 if test -d /usr/nec ;then
21022 version_type=linux
21023 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
21024 soname_spec='$libname${shared_ext}.$major'
21025 shlibpath_var=LD_LIBRARY_PATH
21029 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
21030 version_type=freebsd-elf
21031 need_lib_prefix=no
21032 need_version=no
21033 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
21034 soname_spec='${libname}${release}${shared_ext}$major'
21035 shlibpath_var=LD_LIBRARY_PATH
21036 shlibpath_overrides_runpath=yes
21037 hardcode_into_libs=yes
21038 if test "$with_gnu_ld" = yes; then
21039 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
21040 else
21041 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
21042 case $host_os in
21043 sco3.2v5*)
21044 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
21046 esac
21048 sys_lib_dlsearch_path_spec='/usr/lib'
21051 tpf*)
21052 # TPF is a cross-target only. Preferred cross-host = GNU/Linux.
21053 version_type=linux
21054 need_lib_prefix=no
21055 need_version=no
21056 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
21057 shlibpath_var=LD_LIBRARY_PATH
21058 shlibpath_overrides_runpath=no
21059 hardcode_into_libs=yes
21062 uts4*)
21063 version_type=linux
21064 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
21065 soname_spec='${libname}${release}${shared_ext}$major'
21066 shlibpath_var=LD_LIBRARY_PATH
21070 dynamic_linker=no
21072 esac
21073 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
21074 $as_echo "$dynamic_linker" >&6; }
21075 test "$dynamic_linker" = no && can_build_shared=no
21077 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
21078 if test "$GCC" = yes; then
21079 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
21082 if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
21083 sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
21085 if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
21086 sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
21126 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
21127 $as_echo_n "checking how to hardcode library paths into programs... " >&6; }
21128 hardcode_action_CXX=
21129 if test -n "$hardcode_libdir_flag_spec_CXX" ||
21130 test -n "$runpath_var_CXX" ||
21131 test "X$hardcode_automatic_CXX" = "Xyes" ; then
21133 # We can hardcode non-existent directories.
21134 if test "$hardcode_direct_CXX" != no &&
21135 # If the only mechanism to avoid hardcoding is shlibpath_var, we
21136 # have to relink, otherwise we might link with an installed library
21137 # when we should be linking with a yet-to-be-installed one
21138 ## test "$_LT_TAGVAR(hardcode_shlibpath_var, CXX)" != no &&
21139 test "$hardcode_minus_L_CXX" != no; then
21140 # Linking always hardcodes the temporary library directory.
21141 hardcode_action_CXX=relink
21142 else
21143 # We can link without hardcoding, and we can hardcode nonexisting dirs.
21144 hardcode_action_CXX=immediate
21146 else
21147 # We cannot hardcode anything, or else we can only hardcode existing
21148 # directories.
21149 hardcode_action_CXX=unsupported
21151 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action_CXX" >&5
21152 $as_echo "$hardcode_action_CXX" >&6; }
21154 if test "$hardcode_action_CXX" = relink ||
21155 test "$inherit_rpath_CXX" = yes; then
21156 # Fast installation is not supported
21157 enable_fast_install=no
21158 elif test "$shlibpath_overrides_runpath" = yes ||
21159 test "$enable_shared" = no; then
21160 # Fast installation is not necessary
21161 enable_fast_install=needless
21170 fi # test -n "$compiler"
21172 CC=$lt_save_CC
21173 LDCXX=$LD
21174 LD=$lt_save_LD
21175 GCC=$lt_save_GCC
21176 with_gnu_ld=$lt_save_with_gnu_ld
21177 lt_cv_path_LDCXX=$lt_cv_path_LD
21178 lt_cv_path_LD=$lt_save_path_LD
21179 lt_cv_prog_gnu_ldcxx=$lt_cv_prog_gnu_ld
21180 lt_cv_prog_gnu_ld=$lt_save_with_gnu_ld
21181 fi # test "$_lt_caught_CXX_error" != yes
21183 ac_ext=c
21184 ac_cpp='$CPP $CPPFLAGS'
21185 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
21186 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
21187 ac_compiler_gnu=$ac_cv_c_compiler_gnu
21204 # Only expand once:
21210 # Identify the assembler which will work hand-in-glove with the newly
21211 # built GCC, so that we can examine its features. This is the assembler
21212 # which will be driven by the driver program.
21214 # If build != host, and we aren't building gas in-tree, we identify a
21215 # build->target assembler and hope that it will have the same features
21216 # as the host->target assembler we'll be using.
21217 gcc_cv_gas_major_version=
21218 gcc_cv_gas_minor_version=
21219 gcc_cv_as_gas_srcdir=`echo $srcdir | sed -e 's,/gcc$,,'`/gas
21221 if test "${gcc_cv_as+set}" = set; then :
21223 else
21225 if test -x "$DEFAULT_ASSEMBLER"; then
21226 gcc_cv_as="$DEFAULT_ASSEMBLER"
21227 elif test -f $gcc_cv_as_gas_srcdir/configure.in \
21228 && test -f ../gas/Makefile \
21229 && test x$build = x$host; then
21230 gcc_cv_as=../gas/as-new$build_exeext
21231 elif test -x as$build_exeext; then
21232 # Build using assembler in the current directory.
21233 gcc_cv_as=./as$build_exeext
21234 elif ( set dummy $AS_FOR_TARGET; test -x $2 ); then
21235 gcc_cv_as="$AS_FOR_TARGET"
21236 else
21237 # Extract the first word of "$AS_FOR_TARGET", so it can be a program name with args.
21238 set dummy $AS_FOR_TARGET; ac_word=$2
21239 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
21240 $as_echo_n "checking for $ac_word... " >&6; }
21241 if test "${ac_cv_path_gcc_cv_as+set}" = set; then :
21242 $as_echo_n "(cached) " >&6
21243 else
21244 case $gcc_cv_as in
21245 [\\/]* | ?:[\\/]*)
21246 ac_cv_path_gcc_cv_as="$gcc_cv_as" # Let the user override the test with a path.
21249 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
21250 for as_dir in $PATH
21252 IFS=$as_save_IFS
21253 test -z "$as_dir" && as_dir=.
21254 for ac_exec_ext in '' $ac_executable_extensions; do
21255 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
21256 ac_cv_path_gcc_cv_as="$as_dir/$ac_word$ac_exec_ext"
21257 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
21258 break 2
21260 done
21261 done
21262 IFS=$as_save_IFS
21265 esac
21267 gcc_cv_as=$ac_cv_path_gcc_cv_as
21268 if test -n "$gcc_cv_as"; then
21269 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as" >&5
21270 $as_echo "$gcc_cv_as" >&6; }
21271 else
21272 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
21273 $as_echo "no" >&6; }
21280 ORIGINAL_AS_FOR_TARGET=$gcc_cv_as
21282 case "$ORIGINAL_AS_FOR_TARGET" in
21283 ./as | ./as$build_exeext) ;;
21284 *) ac_config_files="$ac_config_files as:exec-tool.in"
21286 esac
21288 { $as_echo "$as_me:${as_lineno-$LINENO}: checking what assembler to use" >&5
21289 $as_echo_n "checking what assembler to use... " >&6; }
21290 if test "$gcc_cv_as" = ../gas/as-new$build_exeext; then
21291 # Single tree build which includes gas. We want to prefer it
21292 # over whatever linker top-level may have detected, since
21293 # we'll use what we're building after installation anyway.
21294 { $as_echo "$as_me:${as_lineno-$LINENO}: result: newly built gas" >&5
21295 $as_echo "newly built gas" >&6; }
21296 in_tree_gas=yes
21297 gcc_cv_as_bfd_srcdir=`echo $srcdir | sed -e 's,/gcc$,,'`/bfd
21298 for f in $gcc_cv_as_bfd_srcdir/configure \
21299 $gcc_cv_as_gas_srcdir/configure \
21300 $gcc_cv_as_gas_srcdir/configure.in \
21301 $gcc_cv_as_gas_srcdir/Makefile.in ; do
21302 gcc_cv_gas_version=`sed -n -e 's/^[ ]*VERSION=[^0-9A-Za-z_]*\([0-9]*\.[0-9]*.*\)/VERSION=\1/p' < $f`
21303 if test x$gcc_cv_gas_version != x; then
21304 break
21306 done
21307 case $gcc_cv_gas_version in
21308 VERSION=[0-9]*) ;;
21309 *) as_fn_error "cannot find version of in-tree assembler" "$LINENO" 5;;
21310 esac
21311 gcc_cv_gas_major_version=`expr "$gcc_cv_gas_version" : "VERSION=\([0-9]*\)"`
21312 gcc_cv_gas_minor_version=`expr "$gcc_cv_gas_version" : "VERSION=[0-9]*\.\([0-9]*\)"`
21313 gcc_cv_gas_patch_version=`expr "$gcc_cv_gas_version" : "VERSION=[0-9]*\.[0-9]*\.\([0-9]*\)"`
21314 case $gcc_cv_gas_patch_version in
21315 "") gcc_cv_gas_patch_version="0" ;;
21316 esac
21317 gcc_cv_gas_vers=`expr \( \( $gcc_cv_gas_major_version \* 1000 \) \
21318 + $gcc_cv_gas_minor_version \) \* 1000 \
21319 + $gcc_cv_gas_patch_version`
21321 in_tree_gas_is_elf=no
21322 if grep 'obj_format = elf' ../gas/Makefile > /dev/null \
21323 || (grep 'obj_format = multi' ../gas/Makefile \
21324 && grep 'extra_objects =.* obj-elf' ../gas/Makefile) > /dev/null
21325 then
21326 in_tree_gas_is_elf=yes
21328 else
21329 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as" >&5
21330 $as_echo "$gcc_cv_as" >&6; }
21331 in_tree_gas=no
21334 # Identify the linker which will work hand-in-glove with the newly
21335 # built GCC, so that we can examine its features. This is the linker
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 linker and hope that it will have the same features
21340 # as the host->target linker we'll be using.
21341 gcc_cv_gld_major_version=
21342 gcc_cv_gld_minor_version=
21343 gcc_cv_ld_gld_srcdir=`echo $srcdir | sed -e 's,/gcc$,,'`/ld
21344 gcc_cv_ld_bfd_srcdir=`echo $srcdir | sed -e 's,/gcc$,,'`/bfd
21346 if test "${gcc_cv_ld+set}" = set; then :
21348 else
21350 if test -x "$DEFAULT_LINKER"; then
21351 gcc_cv_ld="$DEFAULT_LINKER"
21352 elif test -f $gcc_cv_ld_gld_srcdir/configure.in \
21353 && test -f ../ld/Makefile \
21354 && test x$build = x$host; then
21355 gcc_cv_ld=../ld/ld-new$build_exeext
21356 elif test -x collect-ld$build_exeext; then
21357 # Build using linker in the current directory.
21358 gcc_cv_ld=./collect-ld$build_exeext
21359 elif ( set dummy $LD_FOR_TARGET; test -x $2 ); then
21360 gcc_cv_ld="$LD_FOR_TARGET"
21361 else
21362 # Extract the first word of "$LD_FOR_TARGET", so it can be a program name with args.
21363 set dummy $LD_FOR_TARGET; ac_word=$2
21364 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
21365 $as_echo_n "checking for $ac_word... " >&6; }
21366 if test "${ac_cv_path_gcc_cv_ld+set}" = set; then :
21367 $as_echo_n "(cached) " >&6
21368 else
21369 case $gcc_cv_ld in
21370 [\\/]* | ?:[\\/]*)
21371 ac_cv_path_gcc_cv_ld="$gcc_cv_ld" # Let the user override the test with a path.
21374 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
21375 for as_dir in $PATH
21377 IFS=$as_save_IFS
21378 test -z "$as_dir" && as_dir=.
21379 for ac_exec_ext in '' $ac_executable_extensions; do
21380 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
21381 ac_cv_path_gcc_cv_ld="$as_dir/$ac_word$ac_exec_ext"
21382 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
21383 break 2
21385 done
21386 done
21387 IFS=$as_save_IFS
21390 esac
21392 gcc_cv_ld=$ac_cv_path_gcc_cv_ld
21393 if test -n "$gcc_cv_ld"; then
21394 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld" >&5
21395 $as_echo "$gcc_cv_ld" >&6; }
21396 else
21397 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
21398 $as_echo "no" >&6; }
21405 ORIGINAL_PLUGIN_LD_FOR_TARGET=$gcc_cv_ld
21406 PLUGIN_LD_SUFFIX=`basename $gcc_cv_ld | sed -e "s,$target_alias-,,"`
21407 # if the PLUGIN_LD is set ld-new, just have it as ld
21408 # as that is the installed named.
21409 if test x$PLUGIN_LD_SUFFIX = xld-new \
21410 || test x$PLUGIN_LD_SUFFIX = xcollect-ld ; then
21411 PLUGIN_LD_SUFFIX=ld
21414 # Check whether --with-plugin-ld was given.
21415 if test "${with_plugin_ld+set}" = set; then :
21416 withval=$with_plugin_ld; if test x"$withval" != x; then
21417 ORIGINAL_PLUGIN_LD_FOR_TARGET="$withval"
21418 PLUGIN_LD_SUFFIX=`echo $withval | sed -e "s,$target_alias-,,"`
21424 cat >>confdefs.h <<_ACEOF
21425 #define PLUGIN_LD_SUFFIX "$PLUGIN_LD_SUFFIX"
21426 _ACEOF
21429 # Check to see if we are using gold instead of ld
21430 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using gold" >&5
21431 $as_echo_n "checking whether we are using gold... " >&6; }
21432 ld_is_gold=no
21433 if test x$gcc_cv_ld != x; then
21434 if $gcc_cv_ld --version 2>/dev/null | sed 1q \
21435 | grep "GNU gold" > /dev/null; then
21436 ld_is_gold=yes
21439 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_is_gold" >&5
21440 $as_echo "$ld_is_gold" >&6; }
21442 ORIGINAL_LD_FOR_TARGET=$gcc_cv_ld
21444 case "$ORIGINAL_LD_FOR_TARGET" in
21445 ./collect-ld | ./collect-ld$build_exeext) ;;
21446 *) ac_config_files="$ac_config_files collect-ld:exec-tool.in"
21448 esac
21450 { $as_echo "$as_me:${as_lineno-$LINENO}: checking what linker to use" >&5
21451 $as_echo_n "checking what linker to use... " >&6; }
21452 if test "$gcc_cv_ld" = ../ld/ld-new$build_exeext \
21453 || test "$gcc_cv_ld" = ../gold/ld-new$build_exeext; then
21454 # Single tree build which includes ld. We want to prefer it
21455 # over whatever linker top-level may have detected, since
21456 # we'll use what we're building after installation anyway.
21457 { $as_echo "$as_me:${as_lineno-$LINENO}: result: newly built ld" >&5
21458 $as_echo "newly built ld" >&6; }
21459 in_tree_ld=yes
21460 in_tree_ld_is_elf=no
21461 if (grep 'EMUL = .*elf' ../ld/Makefile \
21462 || grep 'EMUL = .*linux' ../ld/Makefile \
21463 || grep 'EMUL = .*lynx' ../ld/Makefile) > /dev/null; then
21464 in_tree_ld_is_elf=yes
21465 elif test "$ld_is_gold" = yes; then
21466 in_tree_ld_is_elf=yes
21468 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
21470 gcc_cv_gld_version=`sed -n -e 's/^[ ]*VERSION=[^0-9A-Za-z_]*\([0-9]*\.[0-9]*.*\)/VERSION=\1/p' < $f`
21471 if test x$gcc_cv_gld_version != x; then
21472 break
21474 done
21475 case $gcc_cv_gld_version in
21476 VERSION=[0-9]*) ;;
21477 *) as_fn_error "cannot find version of in-tree linker" "$LINENO" 5 ;;
21478 esac
21479 gcc_cv_gld_major_version=`expr "$gcc_cv_gld_version" : "VERSION=\([0-9]*\)"`
21480 gcc_cv_gld_minor_version=`expr "$gcc_cv_gld_version" : "VERSION=[0-9]*\.\([0-9]*\)"`
21481 else
21482 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld" >&5
21483 $as_echo "$gcc_cv_ld" >&6; }
21484 in_tree_ld=no
21487 # Figure out what nm we will be using.
21488 gcc_cv_binutils_srcdir=`echo $srcdir | sed -e 's,/gcc$,,'`/binutils
21489 if test "${gcc_cv_nm+set}" = set; then :
21491 else
21493 if test -f $gcc_cv_binutils_srcdir/configure.in \
21494 && test -f ../binutils/Makefile \
21495 && test x$build = x$host; then
21496 gcc_cv_nm=../binutils/nm-new$build_exeext
21497 elif test -x nm$build_exeext; then
21498 gcc_cv_nm=./nm$build_exeext
21499 elif ( set dummy $NM_FOR_TARGET; test -x $2 ); then
21500 gcc_cv_nm="$NM_FOR_TARGET"
21501 else
21502 # Extract the first word of "$NM_FOR_TARGET", so it can be a program name with args.
21503 set dummy $NM_FOR_TARGET; ac_word=$2
21504 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
21505 $as_echo_n "checking for $ac_word... " >&6; }
21506 if test "${ac_cv_path_gcc_cv_nm+set}" = set; then :
21507 $as_echo_n "(cached) " >&6
21508 else
21509 case $gcc_cv_nm in
21510 [\\/]* | ?:[\\/]*)
21511 ac_cv_path_gcc_cv_nm="$gcc_cv_nm" # Let the user override the test with a path.
21514 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
21515 for as_dir in $PATH
21517 IFS=$as_save_IFS
21518 test -z "$as_dir" && as_dir=.
21519 for ac_exec_ext in '' $ac_executable_extensions; do
21520 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
21521 ac_cv_path_gcc_cv_nm="$as_dir/$ac_word$ac_exec_ext"
21522 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
21523 break 2
21525 done
21526 done
21527 IFS=$as_save_IFS
21530 esac
21532 gcc_cv_nm=$ac_cv_path_gcc_cv_nm
21533 if test -n "$gcc_cv_nm"; then
21534 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_nm" >&5
21535 $as_echo "$gcc_cv_nm" >&6; }
21536 else
21537 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
21538 $as_echo "no" >&6; }
21545 { $as_echo "$as_me:${as_lineno-$LINENO}: checking what nm to use" >&5
21546 $as_echo_n "checking what nm to use... " >&6; }
21547 if test "$gcc_cv_nm" = ../binutils/nm-new$build_exeext; then
21548 # Single tree build which includes binutils.
21549 { $as_echo "$as_me:${as_lineno-$LINENO}: result: newly built nm" >&5
21550 $as_echo "newly built nm" >&6; }
21551 in_tree_nm=yes
21552 else
21553 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_nm" >&5
21554 $as_echo "$gcc_cv_nm" >&6; }
21555 in_tree_nm=no
21558 ORIGINAL_NM_FOR_TARGET=$gcc_cv_nm
21560 case "$ORIGINAL_NM_FOR_TARGET" in
21561 ./nm | ./nm$build_exeext) ;;
21562 *) ac_config_files="$ac_config_files nm:exec-tool.in"
21564 esac
21567 # Figure out what objdump we will be using.
21568 if test "${gcc_cv_objdump+set}" = set; then :
21570 else
21572 if test -f $gcc_cv_binutils_srcdir/configure.in \
21573 && test -f ../binutils/Makefile \
21574 && test x$build = x$host; then
21575 # Single tree build which includes binutils.
21576 gcc_cv_objdump=../binutils/objdump$build_exeext
21577 elif test -x objdump$build_exeext; then
21578 gcc_cv_objdump=./objdump$build_exeext
21579 elif ( set dummy $OBJDUMP_FOR_TARGET; test -x $2 ); then
21580 gcc_cv_objdump="$OBJDUMP_FOR_TARGET"
21581 else
21582 # Extract the first word of "$OBJDUMP_FOR_TARGET", so it can be a program name with args.
21583 set dummy $OBJDUMP_FOR_TARGET; ac_word=$2
21584 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
21585 $as_echo_n "checking for $ac_word... " >&6; }
21586 if test "${ac_cv_path_gcc_cv_objdump+set}" = set; then :
21587 $as_echo_n "(cached) " >&6
21588 else
21589 case $gcc_cv_objdump in
21590 [\\/]* | ?:[\\/]*)
21591 ac_cv_path_gcc_cv_objdump="$gcc_cv_objdump" # Let the user override the test with a path.
21594 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
21595 for as_dir in $PATH
21597 IFS=$as_save_IFS
21598 test -z "$as_dir" && as_dir=.
21599 for ac_exec_ext in '' $ac_executable_extensions; do
21600 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
21601 ac_cv_path_gcc_cv_objdump="$as_dir/$ac_word$ac_exec_ext"
21602 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
21603 break 2
21605 done
21606 done
21607 IFS=$as_save_IFS
21610 esac
21612 gcc_cv_objdump=$ac_cv_path_gcc_cv_objdump
21613 if test -n "$gcc_cv_objdump"; then
21614 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_objdump" >&5
21615 $as_echo "$gcc_cv_objdump" >&6; }
21616 else
21617 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
21618 $as_echo "no" >&6; }
21625 { $as_echo "$as_me:${as_lineno-$LINENO}: checking what objdump to use" >&5
21626 $as_echo_n "checking what objdump to use... " >&6; }
21627 if test "$gcc_cv_objdump" = ../binutils/objdump$build_exeext; then
21628 # Single tree build which includes binutils.
21629 { $as_echo "$as_me:${as_lineno-$LINENO}: result: newly built objdump" >&5
21630 $as_echo "newly built objdump" >&6; }
21631 elif test x$gcc_cv_objdump = x; then
21632 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
21633 $as_echo "not found" >&6; }
21634 else
21635 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_objdump" >&5
21636 $as_echo "$gcc_cv_objdump" >&6; }
21639 # Figure out what readelf we will be using.
21640 if test "${gcc_cv_readelf+set}" = set; then :
21642 else
21644 if test -f $gcc_cv_binutils_srcdir/configure.in \
21645 && test -f ../binutils/Makefile \
21646 && test x$build = x$host; then
21647 # Single tree build which includes binutils.
21648 gcc_cv_readelf=../binutils/readelf$build_exeext
21649 elif test -x readelf$build_exeext; then
21650 gcc_cv_readelf=./readelf$build_exeext
21651 else
21652 # Extract the first word of "readelf", so it can be a program name with args.
21653 set dummy readelf; ac_word=$2
21654 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
21655 $as_echo_n "checking for $ac_word... " >&6; }
21656 if test "${ac_cv_path_gcc_cv_readelf+set}" = set; then :
21657 $as_echo_n "(cached) " >&6
21658 else
21659 case $gcc_cv_readelf in
21660 [\\/]* | ?:[\\/]*)
21661 ac_cv_path_gcc_cv_readelf="$gcc_cv_readelf" # Let the user override the test with a path.
21664 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
21665 for as_dir in $PATH
21667 IFS=$as_save_IFS
21668 test -z "$as_dir" && as_dir=.
21669 for ac_exec_ext in '' $ac_executable_extensions; do
21670 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
21671 ac_cv_path_gcc_cv_readelf="$as_dir/$ac_word$ac_exec_ext"
21672 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
21673 break 2
21675 done
21676 done
21677 IFS=$as_save_IFS
21680 esac
21682 gcc_cv_readelf=$ac_cv_path_gcc_cv_readelf
21683 if test -n "$gcc_cv_readelf"; then
21684 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_readelf" >&5
21685 $as_echo "$gcc_cv_readelf" >&6; }
21686 else
21687 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
21688 $as_echo "no" >&6; }
21695 { $as_echo "$as_me:${as_lineno-$LINENO}: checking what readelf to use" >&5
21696 $as_echo_n "checking what readelf to use... " >&6; }
21697 if test "$gcc_cv_readelf" = ../binutils/readelf$build_exeext; then
21698 # Single tree build which includes binutils.
21699 { $as_echo "$as_me:${as_lineno-$LINENO}: result: newly built readelf" >&5
21700 $as_echo "newly built readelf" >&6; }
21701 elif test x$gcc_cv_readelf = x; then
21702 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
21703 $as_echo "not found" >&6; }
21704 else
21705 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_readelf" >&5
21706 $as_echo "$gcc_cv_readelf" >&6; }
21709 # Figure out what assembler alignment features are present.
21710 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler flags" >&5
21711 $as_echo_n "checking assembler flags... " >&6; }
21712 if test "${gcc_cv_as_flags+set}" = set; then :
21713 $as_echo_n "(cached) " >&6
21714 else
21715 case "$target" in
21716 i[34567]86-*-linux*)
21717 gcc_cv_as_flags="--32"
21719 powerpc*-*-darwin*)
21720 gcc_cv_as_flags="-arch ppc"
21723 gcc_cv_as_flags=" "
21725 esac
21727 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_flags" >&5
21728 $as_echo "$gcc_cv_as_flags" >&6; }
21730 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .balign and .p2align" >&5
21731 $as_echo_n "checking assembler for .balign and .p2align... " >&6; }
21732 if test "${gcc_cv_as_balign_and_p2align+set}" = set; then :
21733 $as_echo_n "(cached) " >&6
21734 else
21735 gcc_cv_as_balign_and_p2align=no
21736 if test $in_tree_gas = yes; then
21737 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 6 \) \* 1000 + 0`
21738 then gcc_cv_as_balign_and_p2align=yes
21740 elif test x$gcc_cv_as != x; then
21741 $as_echo '.balign 4
21742 .p2align 2' > conftest.s
21743 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
21744 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
21745 (eval $ac_try) 2>&5
21746 ac_status=$?
21747 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
21748 test $ac_status = 0; }; }
21749 then
21750 gcc_cv_as_balign_and_p2align=yes
21751 else
21752 echo "configure: failed program was" >&5
21753 cat conftest.s >&5
21755 rm -f conftest.o conftest.s
21758 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_balign_and_p2align" >&5
21759 $as_echo "$gcc_cv_as_balign_and_p2align" >&6; }
21760 if test $gcc_cv_as_balign_and_p2align = yes; then
21762 $as_echo "#define HAVE_GAS_BALIGN_AND_P2ALIGN 1" >>confdefs.h
21766 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .p2align with maximum skip" >&5
21767 $as_echo_n "checking assembler for .p2align with maximum skip... " >&6; }
21768 if test "${gcc_cv_as_max_skip_p2align+set}" = set; then :
21769 $as_echo_n "(cached) " >&6
21770 else
21771 gcc_cv_as_max_skip_p2align=no
21772 if test $in_tree_gas = yes; then
21773 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 8 \) \* 1000 + 0`
21774 then gcc_cv_as_max_skip_p2align=yes
21776 elif test x$gcc_cv_as != x; then
21777 $as_echo '.p2align 4,,7' > conftest.s
21778 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
21779 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
21780 (eval $ac_try) 2>&5
21781 ac_status=$?
21782 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
21783 test $ac_status = 0; }; }
21784 then
21785 gcc_cv_as_max_skip_p2align=yes
21786 else
21787 echo "configure: failed program was" >&5
21788 cat conftest.s >&5
21790 rm -f conftest.o conftest.s
21793 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_max_skip_p2align" >&5
21794 $as_echo "$gcc_cv_as_max_skip_p2align" >&6; }
21795 if test $gcc_cv_as_max_skip_p2align = yes; then
21797 $as_echo "#define HAVE_GAS_MAX_SKIP_P2ALIGN 1" >>confdefs.h
21801 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .literal16" >&5
21802 $as_echo_n "checking assembler for .literal16... " >&6; }
21803 if test "${gcc_cv_as_literal16+set}" = set; then :
21804 $as_echo_n "(cached) " >&6
21805 else
21806 gcc_cv_as_literal16=no
21807 if test $in_tree_gas = yes; then
21808 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 8 \) \* 1000 + 0`
21809 then gcc_cv_as_literal16=yes
21811 elif test x$gcc_cv_as != x; then
21812 $as_echo '.literal16' > conftest.s
21813 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
21814 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
21815 (eval $ac_try) 2>&5
21816 ac_status=$?
21817 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
21818 test $ac_status = 0; }; }
21819 then
21820 gcc_cv_as_literal16=yes
21821 else
21822 echo "configure: failed program was" >&5
21823 cat conftest.s >&5
21825 rm -f conftest.o conftest.s
21828 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_literal16" >&5
21829 $as_echo "$gcc_cv_as_literal16" >&6; }
21830 if test $gcc_cv_as_literal16 = yes; then
21832 $as_echo "#define HAVE_GAS_LITERAL16 1" >>confdefs.h
21836 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for working .subsection -1" >&5
21837 $as_echo_n "checking assembler for working .subsection -1... " >&6; }
21838 if test "${gcc_cv_as_subsection_m1+set}" = set; then :
21839 $as_echo_n "(cached) " >&6
21840 else
21841 gcc_cv_as_subsection_m1=no
21842 if test $in_tree_gas = yes; then
21843 if test $in_tree_gas_is_elf = yes \
21844 && test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 9 \) \* 1000 + 0`
21845 then gcc_cv_as_subsection_m1=yes
21847 elif test x$gcc_cv_as != x; then
21848 $as_echo 'conftest_label1: .word 0
21849 .subsection -1
21850 conftest_label2: .word 0
21851 .previous' > conftest.s
21852 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
21853 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
21854 (eval $ac_try) 2>&5
21855 ac_status=$?
21856 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
21857 test $ac_status = 0; }; }
21858 then
21859 if test x$gcc_cv_nm != x; then
21860 $gcc_cv_nm conftest.o | grep conftest_label1 > conftest.nm1
21861 $gcc_cv_nm conftest.o | grep conftest_label2 | sed -e 's/label2/label1/' > conftest.nm2
21862 if cmp conftest.nm1 conftest.nm2 > /dev/null 2>&1
21863 then :
21864 else gcc_cv_as_subsection_m1=yes
21866 rm -f conftest.nm1 conftest.nm2
21868 else
21869 echo "configure: failed program was" >&5
21870 cat conftest.s >&5
21872 rm -f conftest.o conftest.s
21875 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_subsection_m1" >&5
21876 $as_echo "$gcc_cv_as_subsection_m1" >&6; }
21877 if test $gcc_cv_as_subsection_m1 = yes; then
21879 $as_echo "#define HAVE_GAS_SUBSECTION_ORDERING 1" >>confdefs.h
21883 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .weak" >&5
21884 $as_echo_n "checking assembler for .weak... " >&6; }
21885 if test "${gcc_cv_as_weak+set}" = set; then :
21886 $as_echo_n "(cached) " >&6
21887 else
21888 gcc_cv_as_weak=no
21889 if test $in_tree_gas = yes; then
21890 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 2 \) \* 1000 + 0`
21891 then gcc_cv_as_weak=yes
21893 elif test x$gcc_cv_as != x; then
21894 $as_echo ' .weak foobar' > conftest.s
21895 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
21896 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
21897 (eval $ac_try) 2>&5
21898 ac_status=$?
21899 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
21900 test $ac_status = 0; }; }
21901 then
21902 gcc_cv_as_weak=yes
21903 else
21904 echo "configure: failed program was" >&5
21905 cat conftest.s >&5
21907 rm -f conftest.o conftest.s
21910 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_weak" >&5
21911 $as_echo "$gcc_cv_as_weak" >&6; }
21912 if test $gcc_cv_as_weak = yes; then
21914 $as_echo "#define HAVE_GAS_WEAK 1" >>confdefs.h
21918 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .weakref" >&5
21919 $as_echo_n "checking assembler for .weakref... " >&6; }
21920 if test "${gcc_cv_as_weakref+set}" = set; then :
21921 $as_echo_n "(cached) " >&6
21922 else
21923 gcc_cv_as_weakref=no
21924 if test $in_tree_gas = yes; then
21925 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 17 \) \* 1000 + 0`
21926 then gcc_cv_as_weakref=yes
21928 elif test x$gcc_cv_as != x; then
21929 $as_echo ' .weakref foobar, barfnot' > conftest.s
21930 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
21931 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
21932 (eval $ac_try) 2>&5
21933 ac_status=$?
21934 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
21935 test $ac_status = 0; }; }
21936 then
21937 gcc_cv_as_weakref=yes
21938 else
21939 echo "configure: failed program was" >&5
21940 cat conftest.s >&5
21942 rm -f conftest.o conftest.s
21945 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_weakref" >&5
21946 $as_echo "$gcc_cv_as_weakref" >&6; }
21947 if test $gcc_cv_as_weakref = yes; then
21949 $as_echo "#define HAVE_GAS_WEAKREF 1" >>confdefs.h
21953 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .nsubspa comdat" >&5
21954 $as_echo_n "checking assembler for .nsubspa comdat... " >&6; }
21955 if test "${gcc_cv_as_nsubspa_comdat+set}" = set; then :
21956 $as_echo_n "(cached) " >&6
21957 else
21958 gcc_cv_as_nsubspa_comdat=no
21959 if test $in_tree_gas = yes; then
21960 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 15 \) \* 1000 + 91`
21961 then gcc_cv_as_nsubspa_comdat=yes
21963 elif test x$gcc_cv_as != x; then
21964 $as_echo ' .SPACE $TEXT$
21965 .NSUBSPA $CODE$,COMDAT' > conftest.s
21966 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
21967 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
21968 (eval $ac_try) 2>&5
21969 ac_status=$?
21970 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
21971 test $ac_status = 0; }; }
21972 then
21973 gcc_cv_as_nsubspa_comdat=yes
21974 else
21975 echo "configure: failed program was" >&5
21976 cat conftest.s >&5
21978 rm -f conftest.o conftest.s
21981 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_nsubspa_comdat" >&5
21982 $as_echo "$gcc_cv_as_nsubspa_comdat" >&6; }
21983 if test $gcc_cv_as_nsubspa_comdat = yes; then
21985 $as_echo "#define HAVE_GAS_NSUBSPA_COMDAT 1" >>confdefs.h
21989 # .hidden needs to be supported in both the assembler and the linker,
21990 # because GNU LD versions before 2.12.1 have buggy support for STV_HIDDEN.
21991 # This is irritatingly difficult to feature test for; we have to check the
21992 # date string after the version number. If we've got an in-tree
21993 # ld, we don't know its patchlevel version, so we set the baseline at 2.13
21994 # to be safe.
21995 # The gcc_GAS_CHECK_FEATURE call just sets a cache variable.
21996 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .hidden" >&5
21997 $as_echo_n "checking assembler for .hidden... " >&6; }
21998 if test "${gcc_cv_as_hidden+set}" = set; then :
21999 $as_echo_n "(cached) " >&6
22000 else
22001 gcc_cv_as_hidden=no
22002 if test $in_tree_gas = yes; then
22003 if test $in_tree_gas_is_elf = yes \
22004 && test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 13 \) \* 1000 + 0`
22005 then gcc_cv_as_hidden=yes
22007 elif test x$gcc_cv_as != x; then
22008 $as_echo ' .hidden foobar
22009 foobar:' > conftest.s
22010 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
22011 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
22012 (eval $ac_try) 2>&5
22013 ac_status=$?
22014 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
22015 test $ac_status = 0; }; }
22016 then
22018 # Solaris 9/x86 as incorrectly emits an alias for a hidden symbol with
22019 # STV_HIDDEN, so disable .hidden support if so.
22020 case "${target}" in
22021 i?86-*-solaris2* | x86_64-*-solaris2.1[0-9]*)
22022 if test x$gcc_cv_as != x && test x$gcc_cv_objdump != x; then
22023 cat > conftest.s <<EOF
22024 .globl hidden
22025 .hidden hidden
22026 hidden:
22027 .globl default
22028 .set default,hidden
22030 if $gcc_cv_as -o conftest.o conftest.s > /dev/null 2>&1 \
22031 && $gcc_cv_objdump -t conftest.o 2>/dev/null | \
22032 grep '\.hidden default' > /dev/null; then
22033 gcc_cv_as_hidden=no
22034 else
22035 gcc_cv_as_hidden=yes
22037 else
22038 # Assume bug is present if objdump is missing.
22039 gcc_cv_as_hidden=no
22043 gcc_cv_as_hidden=yes
22045 esac
22046 else
22047 echo "configure: failed program was" >&5
22048 cat conftest.s >&5
22050 rm -f conftest.o conftest.s
22053 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_hidden" >&5
22054 $as_echo "$gcc_cv_as_hidden" >&6; }
22056 case "${target}" in
22057 *-*-darwin*)
22058 # Darwin as has some visibility support, though with a different syntax.
22059 gcc_cv_as_hidden=yes
22061 esac
22063 # gnu_indirect_function type is an extension proposed at
22064 # http://groups.google/com/group/generic-abi/files. It allows dynamic runtime
22065 # selection of function implementation
22066 # Check whether --enable-gnu-indirect-function was given.
22067 if test "${enable_gnu_indirect_function+set}" = set; then :
22068 enableval=$enable_gnu_indirect_function; case $enable_gnu_indirect_function in
22069 yes | no) ;;
22070 *) as_fn_error "'$enable_gnu_indirect_function' is an invalid value for --enable-gnu-indirect-function.
22071 Valid choices are 'yes' and 'no'." "$LINENO" 5 ;;
22072 esac
22073 else
22074 enable_gnu_indirect_function="$default_gnu_indirect_function"
22077 if test x$enable_gnu_indirect_function = xyes; then
22079 $as_echo "#define HAVE_GNU_INDIRECT_FUNCTION 1" >>confdefs.h
22083 if test $in_tree_ld != yes ; then
22084 ld_ver=`$gcc_cv_ld --version 2>/dev/null | sed 1q`
22085 if echo "$ld_ver" | grep GNU > /dev/null; then
22086 if test x"$ld_is_gold" = xyes; then
22087 # GNU gold --version looks like this:
22089 # GNU gold (GNU Binutils 2.21.51.20110225) 1.11
22091 # We extract the binutils version which is more familiar and specific
22092 # than the gold version.
22093 ld_vers=`echo $ld_ver | sed -n \
22094 -e 's,^[^)]*[ ]\([0-9][0-9]*\.[0-9][0-9]*[^)]*\)) .*$,\1,p'`
22095 else
22096 # GNU ld --version looks like this:
22098 # GNU ld (GNU Binutils) 2.21.51.20110225
22099 ld_vers=`echo $ld_ver | sed -n \
22100 -e 's,^.*[ ]\([0-9][0-9]*\.[0-9][0-9]*.*\)$,\1,p'`
22102 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'`
22103 ld_vers_major=`expr "$ld_vers" : '\([0-9]*\)'`
22104 ld_vers_minor=`expr "$ld_vers" : '[0-9]*\.\([0-9]*\)'`
22105 ld_vers_patch=`expr "$ld_vers" : '[0-9]*\.[0-9]*\.\([0-9]*\)'`
22106 else
22107 case "${target}" in
22108 *-*-solaris2*)
22109 # See acinclude.m4 (gcc_SUN_LD_VERSION) for the version number
22110 # format.
22112 # Don't reuse gcc_gv_sun_ld_vers_* in case a linker other than
22113 # /usr/ccs/bin/ld has been configured.
22114 ld_ver=`$gcc_cv_ld -V 2>&1`
22115 if echo "$ld_ver" | grep 'Solaris Link Editors' > /dev/null; then
22116 ld_vers=`echo $ld_ver | sed -n \
22117 -e 's,^.*: 5\.[0-9][0-9]*-\([0-9]\.[0-9][0-9]*\).*$,\1,p'`
22118 ld_vers_major=`expr "$ld_vers" : '\([0-9]*\)'`
22119 ld_vers_minor=`expr "$ld_vers" : '[0-9]*\.\([0-9]*\)'`
22122 esac
22126 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker for .hidden support" >&5
22127 $as_echo_n "checking linker for .hidden support... " >&6; }
22128 if test "${gcc_cv_ld_hidden+set}" = set; then :
22129 $as_echo_n "(cached) " >&6
22130 else
22131 if test $in_tree_ld = yes ; then
22132 gcc_cv_ld_hidden=no
22133 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 \
22134 && test $in_tree_ld_is_elf = yes; then
22135 gcc_cv_ld_hidden=yes
22137 else
22138 gcc_cv_ld_hidden=yes
22139 if test x"$ld_is_gold" = xyes; then
22141 elif echo "$ld_ver" | grep GNU > /dev/null; then
22142 case "${target}" in
22143 mmix-knuth-mmixware)
22144 # The linker emits by default mmo, not ELF, so "no" is appropriate.
22145 gcc_cv_ld_hidden=no
22147 esac
22148 if test 0"$ld_date" -lt 20020404; then
22149 if test -n "$ld_date"; then
22150 # If there was date string, but was earlier than 2002-04-04, fail
22151 gcc_cv_ld_hidden=no
22152 elif test -z "$ld_vers"; then
22153 # If there was no date string nor ld version number, something is wrong
22154 gcc_cv_ld_hidden=no
22155 else
22156 test -z "$ld_vers_patch" && ld_vers_patch=0
22157 if test "$ld_vers_major" -lt 2; then
22158 gcc_cv_ld_hidden=no
22159 elif test "$ld_vers_major" -eq 2 -a "$ld_vers_minor" -lt 12; then
22160 gcc_cv_ld_hidden="no"
22161 elif test "$ld_vers_major" -eq 2 -a "$ld_vers_minor" -eq 12 -a "$ld_vers_patch" -eq 0; then
22162 gcc_cv_ld_hidden=no
22166 else
22167 case "${target}" in
22168 *-*-darwin*)
22169 # Darwin ld has some visibility support.
22170 gcc_cv_ld_hidden=yes
22172 hppa64*-*-hpux* | ia64*-*-hpux*)
22173 gcc_cv_ld_hidden=yes
22175 *-*-solaris2.9* | *-*-solaris2.1[0-9]*)
22176 # Support for .hidden in Sun ld appeared in Solaris 9 FCS, but
22177 # .symbolic was only added in Solaris 9 12/02.
22178 gcc_cv_ld_hidden=yes
22181 gcc_cv_ld_hidden=no
22183 esac
22187 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_hidden" >&5
22188 $as_echo "$gcc_cv_ld_hidden" >&6; }
22189 libgcc_visibility=no
22192 if test $gcc_cv_as_hidden = yes && test $gcc_cv_ld_hidden = yes; then
22193 libgcc_visibility=yes
22195 $as_echo "#define HAVE_GAS_HIDDEN 1" >>confdefs.h
22199 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker read-only and read-write section mixing" >&5
22200 $as_echo_n "checking linker read-only and read-write section mixing... " >&6; }
22201 gcc_cv_ld_ro_rw_mix=unknown
22202 if test $in_tree_ld = yes ; then
22203 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 \
22204 && test $in_tree_ld_is_elf = yes; then
22205 gcc_cv_ld_ro_rw_mix=read-write
22207 elif test x$gcc_cv_as != x -a x$gcc_cv_ld != x -a x$gcc_cv_objdump != x ; then
22208 echo '.section myfoosect, "a"' > conftest1.s
22209 echo '.section myfoosect, "aw"' > conftest2.s
22210 echo '.byte 1' >> conftest2.s
22211 echo '.section myfoosect, "a"' > conftest3.s
22212 echo '.byte 0' >> conftest3.s
22213 if $gcc_cv_as -o conftest1.o conftest1.s > /dev/null 2>&1 \
22214 && $gcc_cv_as -o conftest2.o conftest2.s > /dev/null 2>&1 \
22215 && $gcc_cv_as -o conftest3.o conftest3.s > /dev/null 2>&1 \
22216 && $gcc_cv_ld -shared -o conftest1.so conftest1.o \
22217 conftest2.o conftest3.o > /dev/null 2>&1; then
22218 gcc_cv_ld_ro_rw_mix=`$gcc_cv_objdump -h conftest1.so \
22219 | sed -e '/myfoosect/!d' -e N`
22220 if echo "$gcc_cv_ld_ro_rw_mix" | grep CONTENTS > /dev/null; then
22221 if echo "$gcc_cv_ld_ro_rw_mix" | grep READONLY > /dev/null; then
22222 gcc_cv_ld_ro_rw_mix=read-only
22223 else
22224 gcc_cv_ld_ro_rw_mix=read-write
22228 rm -f conftest.* conftest[123].*
22230 if test x$gcc_cv_ld_ro_rw_mix = xread-write; then
22232 $as_echo "#define HAVE_LD_RO_RW_SECTION_MIXING 1" >>confdefs.h
22235 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_ro_rw_mix" >&5
22236 $as_echo "$gcc_cv_ld_ro_rw_mix" >&6; }
22238 if test "x${build}" = "x${target}" && test "x${build}" = "x${host}"; then
22239 case "${target}" in
22240 *-*-solaris2*)
22242 # Solaris 2 ld -V output looks like this for a regular version:
22244 # ld: Software Generation Utilities - Solaris Link Editors: 5.11-1.1699
22246 # but test versions add stuff at the end:
22248 # ld: Software Generation Utilities - Solaris Link Editors: 5.11-1.1701:onnv-ab196087-6931056-03/25/10
22250 gcc_cv_sun_ld_ver=`/usr/ccs/bin/ld -V 2>&1`
22251 if echo "$gcc_cv_sun_ld_ver" | grep 'Solaris Link Editors' > /dev/null; then
22252 gcc_cv_sun_ld_vers=`echo $gcc_cv_sun_ld_ver | sed -n \
22253 -e 's,^.*: 5\.[0-9][0-9]*-\([0-9]\.[0-9][0-9]*\).*$,\1,p'`
22254 gcc_cv_sun_ld_vers_major=`expr "$gcc_cv_sun_ld_vers" : '\([0-9]*\)'`
22255 gcc_cv_sun_ld_vers_minor=`expr "$gcc_cv_sun_ld_vers" : '[0-9]*\.\([0-9]*\)'`
22258 esac
22261 # Check whether --enable-initfini-array was given.
22262 if test "${enable_initfini_array+set}" = set; then :
22263 enableval=$enable_initfini_array;
22264 else
22266 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for .preinit_array/.init_array/.fini_array support" >&5
22267 $as_echo_n "checking for .preinit_array/.init_array/.fini_array support... " >&6; }
22268 if test "${gcc_cv_initfini_array+set}" = set; then :
22269 $as_echo_n "(cached) " >&6
22270 else
22271 if test "x${build}" = "x${target}" && test "x${build}" = "x${host}"; then
22272 case "${target}" in
22273 ia64-*)
22274 if test "$cross_compiling" = yes; then :
22275 gcc_cv_initfini_array=no
22276 else
22277 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22278 /* end confdefs.h. */
22280 #ifndef __ELF__
22281 #error Not an ELF OS
22282 #endif
22283 /* We turn on .preinit_array/.init_array/.fini_array support for ia64
22284 if it can be used. */
22285 static int x = -1;
22286 int main (void) { return x; }
22287 int foo (void) { x = 0; }
22288 int (*fp) (void) __attribute__ ((section (".init_array"))) = foo;
22290 _ACEOF
22291 if ac_fn_c_try_run "$LINENO"; then :
22292 gcc_cv_initfini_array=yes
22293 else
22294 gcc_cv_initfini_array=no
22296 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
22297 conftest.$ac_objext conftest.beam conftest.$ac_ext
22301 gcc_cv_initfini_array=no
22302 if test $in_tree_ld = yes ; then
22303 if test "$gcc_cv_gld_major_version" -eq 2 \
22304 -a "$gcc_cv_gld_minor_version" -ge 22 \
22305 -o "$gcc_cv_gld_major_version" -gt 2 \
22306 && test $in_tree_ld_is_elf = yes; then
22307 gcc_cv_initfini_array=yes
22309 elif test x$gcc_cv_as != x -a x$gcc_cv_ld != x -a x$gcc_cv_objdump != x ; then
22310 cat > conftest.s <<\EOF
22311 .section .dtors,"a",%progbits
22312 .balign 4
22313 .byte 'A', 'A', 'A', 'A'
22314 .section .ctors,"a",%progbits
22315 .balign 4
22316 .byte 'B', 'B', 'B', 'B'
22317 .section .fini_array.65530,"a",%progbits
22318 .balign 4
22319 .byte 'C', 'C', 'C', 'C'
22320 .section .init_array.65530,"a",%progbits
22321 .balign 4
22322 .byte 'D', 'D', 'D', 'D'
22323 .section .dtors.64528,"a",%progbits
22324 .balign 4
22325 .byte 'E', 'E', 'E', 'E'
22326 .section .ctors.64528,"a",%progbits
22327 .balign 4
22328 .byte 'F', 'F', 'F', 'F'
22329 .section .fini_array.01005,"a",%progbits
22330 .balign 4
22331 .byte 'G', 'G', 'G', 'G'
22332 .section .init_array.01005,"a",%progbits
22333 .balign 4
22334 .byte 'H', 'H', 'H', 'H'
22335 .text
22336 .globl _start
22337 _start:
22339 if $gcc_cv_as -o conftest.o conftest.s > /dev/null 2>&1 \
22340 && $gcc_cv_ld -o conftest conftest.o > /dev/null 2>&1 \
22341 && $gcc_cv_objdump -s -j .init_array conftest \
22342 | grep HHHHFFFFDDDDBBBB > /dev/null 2>&1 \
22343 && $gcc_cv_objdump -s -j .fini_array conftest \
22344 | grep GGGGEEEECCCCAAAA > /dev/null 2>&1; then
22345 gcc_cv_initfini_array=yes
22347 rm -f conftest conftest.*
22349 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22350 /* end confdefs.h. */
22352 #ifndef __ELF__
22353 # error Not an ELF OS
22354 #endif
22355 #include <stdlib.h>
22356 #if defined __GLIBC_PREREQ
22357 # if __GLIBC_PREREQ (2, 4)
22358 # else
22359 # error GLIBC 2.4 required
22360 # endif
22361 #else
22362 # if defined __sun__ && defined __svr4__
22363 /* Solaris ld.so.1 supports .init_array/.fini_array since Solaris 8. */
22364 # else
22365 # error The C library not known to support .init_array/.fini_array
22366 # endif
22367 #endif
22369 _ACEOF
22370 if ac_fn_c_try_cpp "$LINENO"; then :
22372 else
22373 gcc_cv_initfini_array=no
22375 rm -f conftest.err conftest.$ac_ext;;
22376 esac
22377 else
22378 { $as_echo "$as_me:${as_lineno-$LINENO}: checking cross compile... guessing" >&5
22379 $as_echo_n "checking cross compile... guessing... " >&6; }
22380 gcc_cv_initfini_array=no
22383 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_initfini_array" >&5
22384 $as_echo "$gcc_cv_initfini_array" >&6; }
22385 enable_initfini_array=$gcc_cv_initfini_array
22389 if test $enable_initfini_array = yes; then
22391 $as_echo "#define HAVE_INITFINI_ARRAY_SUPPORT 1" >>confdefs.h
22395 # Check if we have .[us]leb128, and support symbol arithmetic with it.
22396 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .sleb128 and .uleb128" >&5
22397 $as_echo_n "checking assembler for .sleb128 and .uleb128... " >&6; }
22398 if test "${gcc_cv_as_leb128+set}" = set; then :
22399 $as_echo_n "(cached) " >&6
22400 else
22401 gcc_cv_as_leb128=no
22402 if test $in_tree_gas = yes; then
22403 if test $in_tree_gas_is_elf = yes \
22404 && test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 11 \) \* 1000 + 0`
22405 then gcc_cv_as_leb128=yes
22407 elif test x$gcc_cv_as != x; then
22408 $as_echo ' .data
22409 .uleb128 L2 - L1
22411 .uleb128 1280
22412 .sleb128 -1010
22413 L2:' > conftest.s
22414 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
22415 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
22416 (eval $ac_try) 2>&5
22417 ac_status=$?
22418 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
22419 test $ac_status = 0; }; }
22420 then
22421 # GAS versions before 2.11 do not support uleb128,
22422 # despite appearing to.
22423 # ??? There exists an elf-specific test that will crash
22424 # the assembler. Perhaps it's better to figure out whether
22425 # arbitrary sections are supported and try the test.
22426 as_ver=`$gcc_cv_as --version 2>/dev/null | sed 1q`
22427 if echo "$as_ver" | grep GNU > /dev/null; then
22428 as_vers=`echo $as_ver | sed -n \
22429 -e 's,^.*[ ]\([0-9][0-9]*\.[0-9][0-9]*.*\)$,\1,p'`
22430 as_major=`expr "$as_vers" : '\([0-9]*\)'`
22431 as_minor=`expr "$as_vers" : '[0-9]*\.\([0-9]*\)'`
22432 if test $as_major -eq 2 && test $as_minor -lt 11
22433 then :
22434 else gcc_cv_as_leb128=yes
22437 else
22438 echo "configure: failed program was" >&5
22439 cat conftest.s >&5
22441 rm -f conftest.o conftest.s
22444 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_leb128" >&5
22445 $as_echo "$gcc_cv_as_leb128" >&6; }
22446 if test $gcc_cv_as_leb128 = yes; then
22448 $as_echo "#define HAVE_AS_LEB128 1" >>confdefs.h
22452 # Check if we have assembler support for unwind directives.
22453 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for cfi directives" >&5
22454 $as_echo_n "checking assembler for cfi directives... " >&6; }
22455 if test "${gcc_cv_as_cfi_directive+set}" = set; then :
22456 $as_echo_n "(cached) " >&6
22457 else
22458 gcc_cv_as_cfi_directive=no
22459 if test x$gcc_cv_as != x; then
22460 $as_echo ' .text
22461 .cfi_startproc
22462 .cfi_offset 0, 0
22463 .cfi_same_value 1
22464 .cfi_def_cfa 1, 2
22465 .cfi_escape 1, 2, 3, 4, 5
22466 .cfi_endproc' > conftest.s
22467 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
22468 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
22469 (eval $ac_try) 2>&5
22470 ac_status=$?
22471 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
22472 test $ac_status = 0; }; }
22473 then
22474 case "$target" in
22475 *-*-solaris*)
22476 # If the linker used on Solaris (like Sun ld) isn't capable of merging
22477 # read-only and read-write sections, we need to make sure that the
22478 # assembler used emits read-write .eh_frame sections.
22479 if test "x$gcc_cv_ld_ro_rw_mix" != xread-write; then
22480 if test "x$gcc_cv_objdump" != x; then
22481 if $gcc_cv_objdump -h conftest.o 2>/dev/null | \
22482 sed -e /.eh_frame/!d -e N | grep READONLY > /dev/null; then
22483 gcc_cv_as_cfi_directive=no
22484 else
22485 case "$target" in
22486 i?86-*-solaris2.1[0-9]* | x86_64-*-solaris2.1[0-9]*)
22487 # On Solaris/x86, make sure that GCC and gas agree on using
22488 # read-only .eh_frame sections for 64-bit.
22489 if $gcc_cv_as --64 -o conftest.o conftest.s > /dev/null 2>&1 && \
22490 $gcc_cv_objdump -h conftest.o 2>/dev/null | \
22491 sed -e /.eh_frame/!d -e N | \
22492 grep READONLY > /dev/null; then
22493 gcc_cv_as_cfi_directive=yes
22494 else
22495 gcc_cv_as_cfi_directive=no
22499 gcc_cv_as_cfi_directive=yes
22501 esac
22503 else
22504 # no objdump, err on the side of caution
22505 gcc_cv_as_cfi_directive=no
22507 else
22508 gcc_cv_as_cfi_directive=yes
22511 *-*-*)
22512 gcc_cv_as_cfi_directive=yes
22514 esac
22515 else
22516 echo "configure: failed program was" >&5
22517 cat conftest.s >&5
22519 rm -f conftest.o conftest.s
22522 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_cfi_directive" >&5
22523 $as_echo "$gcc_cv_as_cfi_directive" >&6; }
22525 if test $gcc_cv_as_cfi_directive = yes && test x$gcc_cv_objdump != x; then
22526 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for working cfi advance" >&5
22527 $as_echo_n "checking assembler for working cfi advance... " >&6; }
22528 if test "${gcc_cv_as_cfi_advance_working+set}" = set; then :
22529 $as_echo_n "(cached) " >&6
22530 else
22531 gcc_cv_as_cfi_advance_working=no
22532 if test x$gcc_cv_as != x; then
22533 $as_echo ' .text
22534 .cfi_startproc
22535 .cfi_adjust_cfa_offset 64
22536 .skip 75040, 0
22537 .cfi_adjust_cfa_offset 128
22538 .cfi_endproc' > conftest.s
22539 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
22540 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
22541 (eval $ac_try) 2>&5
22542 ac_status=$?
22543 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
22544 test $ac_status = 0; }; }
22545 then
22547 if $gcc_cv_objdump -Wf conftest.o 2>/dev/null \
22548 | grep 'DW_CFA_advance_loc[24]:[ ][ ]*75040[ ]' >/dev/null; then
22549 gcc_cv_as_cfi_advance_working=yes
22552 else
22553 echo "configure: failed program was" >&5
22554 cat conftest.s >&5
22556 rm -f conftest.o conftest.s
22559 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_cfi_advance_working" >&5
22560 $as_echo "$gcc_cv_as_cfi_advance_working" >&6; }
22562 else
22563 # no objdump, err on the side of caution
22564 gcc_cv_as_cfi_advance_working=no
22568 cat >>confdefs.h <<_ACEOF
22569 #define HAVE_GAS_CFI_DIRECTIVE `if test $gcc_cv_as_cfi_directive = yes \
22570 && test $gcc_cv_as_cfi_advance_working = yes; then echo 1; else echo 0; fi`
22571 _ACEOF
22575 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for cfi personality directive" >&5
22576 $as_echo_n "checking assembler for cfi personality directive... " >&6; }
22577 if test "${gcc_cv_as_cfi_personality_directive+set}" = set; then :
22578 $as_echo_n "(cached) " >&6
22579 else
22580 gcc_cv_as_cfi_personality_directive=no
22581 if test x$gcc_cv_as != x; then
22582 $as_echo ' .text
22583 .cfi_startproc
22584 .cfi_personality 0, symbol
22585 .cfi_endproc' > conftest.s
22586 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
22587 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
22588 (eval $ac_try) 2>&5
22589 ac_status=$?
22590 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
22591 test $ac_status = 0; }; }
22592 then
22593 gcc_cv_as_cfi_personality_directive=yes
22594 else
22595 echo "configure: failed program was" >&5
22596 cat conftest.s >&5
22598 rm -f conftest.o conftest.s
22601 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_cfi_personality_directive" >&5
22602 $as_echo "$gcc_cv_as_cfi_personality_directive" >&6; }
22605 cat >>confdefs.h <<_ACEOF
22606 #define HAVE_GAS_CFI_PERSONALITY_DIRECTIVE `if test $gcc_cv_as_cfi_personality_directive = yes;
22607 then echo 1; else echo 0; fi`
22608 _ACEOF
22611 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for cfi sections directive" >&5
22612 $as_echo_n "checking assembler for cfi sections directive... " >&6; }
22613 if test "${gcc_cv_as_cfi_sections_directive+set}" = set; then :
22614 $as_echo_n "(cached) " >&6
22615 else
22616 gcc_cv_as_cfi_sections_directive=no
22617 if test x$gcc_cv_as != x; then
22618 $as_echo ' .text
22619 .cfi_sections .debug_frame, .eh_frame
22620 .cfi_startproc
22621 .cfi_endproc' > conftest.s
22622 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
22623 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
22624 (eval $ac_try) 2>&5
22625 ac_status=$?
22626 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
22627 test $ac_status = 0; }; }
22628 then
22629 case $target_os in
22630 win32 | pe | cygwin* | mingw32* | uwin*)
22631 # Need to check that we generated the correct relocation for the
22632 # .debug_frame section. This was fixed for binutils 2.21.
22633 gcc_cv_as_cfi_sections_directive=no
22634 if test "x$gcc_cv_objdump" != x; then
22635 if $gcc_cv_objdump -j .debug_frame -r conftest.o 2>/dev/null | \
22636 grep secrel > /dev/null; then
22637 gcc_cv_as_cfi_sections_directive=yes
22642 gcc_cv_as_cfi_sections_directive=yes
22644 esac
22645 else
22646 echo "configure: failed program was" >&5
22647 cat conftest.s >&5
22649 rm -f conftest.o conftest.s
22652 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_cfi_sections_directive" >&5
22653 $as_echo "$gcc_cv_as_cfi_sections_directive" >&6; }
22657 cat >>confdefs.h <<_ACEOF
22658 #define HAVE_GAS_CFI_SECTIONS_DIRECTIVE `if test $gcc_cv_as_cfi_sections_directive = yes;
22659 then echo 1; else echo 0; fi`
22660 _ACEOF
22663 # GAS versions up to and including 2.11.0 may mis-optimize
22664 # .eh_frame data.
22665 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for eh_frame optimization" >&5
22666 $as_echo_n "checking assembler for eh_frame optimization... " >&6; }
22667 if test "${gcc_cv_as_eh_frame+set}" = set; then :
22668 $as_echo_n "(cached) " >&6
22669 else
22670 gcc_cv_as_eh_frame=no
22671 if test $in_tree_gas = yes; then
22672 if test $in_tree_gas_is_elf = yes \
22673 && test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 12 \) \* 1000 + 0`
22674 then gcc_cv_as_eh_frame=yes
22676 elif test x$gcc_cv_as != x; then
22677 $as_echo ' .text
22678 .LFB1:
22679 .4byte 0
22680 .L1:
22681 .4byte 0
22682 .LFE1:
22683 .section .eh_frame,"aw",@progbits
22684 __FRAME_BEGIN__:
22685 .4byte .LECIE1-.LSCIE1
22686 .LSCIE1:
22687 .4byte 0x0
22688 .byte 0x1
22689 .ascii "z\0"
22690 .byte 0x1
22691 .byte 0x78
22692 .byte 0x1a
22693 .byte 0x0
22694 .byte 0x4
22695 .4byte 1
22696 .p2align 1
22697 .LECIE1:
22698 .LSFDE1:
22699 .4byte .LEFDE1-.LASFDE1
22700 .LASFDE1:
22701 .4byte .LASFDE1-__FRAME_BEGIN__
22702 .4byte .LFB1
22703 .4byte .LFE1-.LFB1
22704 .byte 0x4
22705 .4byte .LFE1-.LFB1
22706 .byte 0x4
22707 .4byte .L1-.LFB1
22708 .LEFDE1:' > conftest.s
22709 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
22710 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
22711 (eval $ac_try) 2>&5
22712 ac_status=$?
22713 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
22714 test $ac_status = 0; }; }
22715 then
22716 cat > conftest.lit <<EOF
22717 0000 10000000 00000000 017a0001 781a0004 .........z..x...
22718 0010 01000000 12000000 18000000 00000000 ................
22719 0020 08000000 04080000 0044 .........D
22721 cat > conftest.big <<EOF
22722 0000 00000010 00000000 017a0001 781a0004 .........z..x...
22723 0010 00000001 00000012 00000018 00000000 ................
22724 0020 00000008 04000000 0844 .........D
22726 # If the assembler didn't choke, and we can objdump,
22727 # and we got the correct data, then succeed.
22728 # The text in the here-document typically retains its unix-style line
22729 # endings, while the output of objdump will use host line endings.
22730 # Therefore, use diff -b for the comparisons.
22731 if test x$gcc_cv_objdump != x \
22732 && $gcc_cv_objdump -s -j .eh_frame conftest.o 2>/dev/null \
22733 | tail -3 > conftest.got \
22734 && { diff -b conftest.lit conftest.got > /dev/null 2>&1 \
22735 || diff -b conftest.big conftest.got > /dev/null 2>&1; }
22736 then
22737 gcc_cv_as_eh_frame=yes
22738 elif { ac_try='$gcc_cv_as -o conftest.o --traditional-format /dev/null'
22739 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
22740 (eval $ac_try) 2>&5
22741 ac_status=$?
22742 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
22743 test $ac_status = 0; }; }; then
22744 gcc_cv_as_eh_frame=buggy
22745 else
22746 # Uh oh, what do we do now?
22747 gcc_cv_as_eh_frame=no
22749 else
22750 echo "configure: failed program was" >&5
22751 cat conftest.s >&5
22753 rm -f conftest.o conftest.s
22756 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_eh_frame" >&5
22757 $as_echo "$gcc_cv_as_eh_frame" >&6; }
22760 if test $gcc_cv_as_eh_frame = buggy; then
22762 $as_echo "#define USE_AS_TRADITIONAL_FORMAT 1" >>confdefs.h
22766 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for section merging support" >&5
22767 $as_echo_n "checking assembler for section merging support... " >&6; }
22768 if test "${gcc_cv_as_shf_merge+set}" = set; then :
22769 $as_echo_n "(cached) " >&6
22770 else
22771 gcc_cv_as_shf_merge=no
22772 if test $in_tree_gas = yes; then
22773 if test $in_tree_gas_is_elf = yes \
22774 && test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 12 \) \* 1000 + 0`
22775 then gcc_cv_as_shf_merge=yes
22777 elif test x$gcc_cv_as != x; then
22778 $as_echo '.section .rodata.str, "aMS", @progbits, 1' > conftest.s
22779 if { ac_try='$gcc_cv_as $gcc_cv_as_flags --fatal-warnings -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 gcc_cv_as_shf_merge=yes
22787 else
22788 echo "configure: failed program was" >&5
22789 cat conftest.s >&5
22791 rm -f conftest.o conftest.s
22794 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_shf_merge" >&5
22795 $as_echo "$gcc_cv_as_shf_merge" >&6; }
22797 if test $gcc_cv_as_shf_merge = no; then
22798 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for section merging support" >&5
22799 $as_echo_n "checking assembler for section merging support... " >&6; }
22800 if test "${gcc_cv_as_shf_merge+set}" = set; then :
22801 $as_echo_n "(cached) " >&6
22802 else
22803 gcc_cv_as_shf_merge=no
22804 if test $in_tree_gas = yes; then
22805 if test $in_tree_gas_is_elf = yes \
22806 && test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 12 \) \* 1000 + 0`
22807 then gcc_cv_as_shf_merge=yes
22809 elif test x$gcc_cv_as != x; then
22810 $as_echo '.section .rodata.str, "aMS", %progbits, 1' > conftest.s
22811 if { ac_try='$gcc_cv_as $gcc_cv_as_flags --fatal-warnings -o conftest.o conftest.s >&5'
22812 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
22813 (eval $ac_try) 2>&5
22814 ac_status=$?
22815 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
22816 test $ac_status = 0; }; }
22817 then
22818 gcc_cv_as_shf_merge=yes
22819 else
22820 echo "configure: failed program was" >&5
22821 cat conftest.s >&5
22823 rm -f conftest.o conftest.s
22826 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_shf_merge" >&5
22827 $as_echo "$gcc_cv_as_shf_merge" >&6; }
22831 cat >>confdefs.h <<_ACEOF
22832 #define HAVE_GAS_SHF_MERGE `if test $gcc_cv_as_shf_merge = yes; then echo 1; else echo 0; fi`
22833 _ACEOF
22836 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for COMDAT group support (GNU as)" >&5
22837 $as_echo_n "checking assembler for COMDAT group support (GNU as)... " >&6; }
22838 if test "${gcc_cv_as_comdat_group+set}" = set; then :
22839 $as_echo_n "(cached) " >&6
22840 else
22841 gcc_cv_as_comdat_group=no
22842 if test $in_tree_gas = yes; then
22843 if test $in_tree_gas_is_elf = yes \
22844 && test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 16 \) \* 1000 + 0`
22845 then gcc_cv_as_comdat_group=yes
22847 elif test x$gcc_cv_as != x; then
22848 $as_echo '.section .text,"axG",@progbits,.foo,comdat' > conftest.s
22849 if { ac_try='$gcc_cv_as $gcc_cv_as_flags --fatal-warnings -o conftest.o conftest.s >&5'
22850 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
22851 (eval $ac_try) 2>&5
22852 ac_status=$?
22853 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
22854 test $ac_status = 0; }; }
22855 then
22856 gcc_cv_as_comdat_group=yes
22857 else
22858 echo "configure: failed program was" >&5
22859 cat conftest.s >&5
22861 rm -f conftest.o conftest.s
22864 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_comdat_group" >&5
22865 $as_echo "$gcc_cv_as_comdat_group" >&6; }
22867 if test $gcc_cv_as_comdat_group = yes; then
22868 gcc_cv_as_comdat_group_percent=no
22869 gcc_cv_as_comdat_group_group=no
22870 else
22871 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for COMDAT group support (GNU as, %type)" >&5
22872 $as_echo_n "checking assembler for COMDAT group support (GNU as, %type)... " >&6; }
22873 if test "${gcc_cv_as_comdat_group_percent+set}" = set; then :
22874 $as_echo_n "(cached) " >&6
22875 else
22876 gcc_cv_as_comdat_group_percent=no
22877 if test $in_tree_gas = yes; then
22878 if test $in_tree_gas_is_elf = yes \
22879 && test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 16 \) \* 1000 + 0`
22880 then gcc_cv_as_comdat_group_percent=yes
22882 elif test x$gcc_cv_as != x; then
22883 $as_echo '.section .text,"axG",%progbits,.foo,comdat' > conftest.s
22884 if { ac_try='$gcc_cv_as $gcc_cv_as_flags --fatal-warnings -o conftest.o conftest.s >&5'
22885 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
22886 (eval $ac_try) 2>&5
22887 ac_status=$?
22888 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
22889 test $ac_status = 0; }; }
22890 then
22891 gcc_cv_as_comdat_group_percent=yes
22892 else
22893 echo "configure: failed program was" >&5
22894 cat conftest.s >&5
22896 rm -f conftest.o conftest.s
22899 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_comdat_group_percent" >&5
22900 $as_echo "$gcc_cv_as_comdat_group_percent" >&6; }
22902 if test $gcc_cv_as_comdat_group_percent = yes; then
22903 gcc_cv_as_comdat_group_group=no
22904 else
22905 if test -z "${gcc_cv_as_comdat_group_group+set}"; then
22906 gcc_cv_as_comdat_group_group=no
22908 case "${target}" in
22909 # Sun as uses a completely different syntax.
22910 *-*-solaris2*)
22911 case "${target}" in
22912 sparc*-*-solaris2*)
22913 conftest_s='
22914 .group foo,".text%foo",#comdat
22915 .section ".text%foo", #alloc,#execinstr,#progbits
22916 .globl foo
22917 foo:
22920 i?86-*-solaris2* | x86_64-*-solaris2.1[0-9]*)
22921 conftest_s='
22922 .group foo,.text%foo,#comdat
22923 .section .text%foo, "ax", @progbits
22924 .globl foo
22925 foo:
22928 esac
22929 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for COMDAT group support (Sun as, .group)" >&5
22930 $as_echo_n "checking assembler for COMDAT group support (Sun as, .group)... " >&6; }
22931 if test "${gcc_cv_as_comdat_group_group+set}" = set; then :
22932 $as_echo_n "(cached) " >&6
22933 else
22934 gcc_cv_as_comdat_group_group=no
22935 if test x$gcc_cv_as != x; then
22936 $as_echo "$conftest_s" > conftest.s
22937 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
22938 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
22939 (eval $ac_try) 2>&5
22940 ac_status=$?
22941 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
22942 test $ac_status = 0; }; }
22943 then
22944 gcc_cv_as_comdat_group_group=yes
22945 else
22946 echo "configure: failed program was" >&5
22947 cat conftest.s >&5
22949 rm -f conftest.o conftest.s
22952 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_comdat_group_group" >&5
22953 $as_echo "$gcc_cv_as_comdat_group_group" >&6; }
22956 esac
22959 if test x"$ld_is_gold" = xyes; then
22960 comdat_group=yes
22961 elif test $in_tree_ld = yes ; then
22962 comdat_group=no
22963 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 \
22964 && test $in_tree_ld_is_elf = yes; then
22965 comdat_group=yes
22967 elif echo "$ld_ver" | grep GNU > /dev/null; then
22968 comdat_group=yes
22969 if test 0"$ld_date" -lt 20050308; then
22970 if test -n "$ld_date"; then
22971 # If there was date string, but was earlier than 2005-03-08, fail
22972 comdat_group=no
22973 elif test "$ld_vers_major" -lt 2; then
22974 comdat_group=no
22975 elif test "$ld_vers_major" -eq 2 -a "$ld_vers_minor" -lt 16; then
22976 comdat_group=no
22979 else
22980 case "${target}" in
22981 *-*-solaris2.1[1-9]*)
22982 comdat_group=no
22983 # Sun ld has COMDAT group support since Solaris 9, but it doesn't
22984 # interoperate with GNU as until Solaris 11 build 130, i.e. ld
22985 # version 1.688.
22987 # If using Sun as for COMDAT group as emitted by GCC, one needs at
22988 # least ld version 1.2267.
22989 if test "$ld_vers_major" -gt 1; then
22990 comdat_group=yes
22991 elif test "x$gas_flag" = xyes && test "$ld_vers_minor" -ge 1688; then
22992 comdat_group=yes
22993 elif test "$ld_vers_minor" -ge 2267; then
22994 comdat_group=yes
22998 # Assume linkers other than GNU ld don't support COMDAT group.
22999 comdat_group=no
23001 esac
23003 # Allow overriding the automatic COMDAT group tests above.
23004 # Check whether --enable-comdat was given.
23005 if test "${enable_comdat+set}" = set; then :
23006 enableval=$enable_comdat; comdat_group="$enable_comdat"
23009 if test $comdat_group = no; then
23010 gcc_cv_as_comdat_group=no
23011 gcc_cv_as_comdat_group_percent=no
23012 gcc_cv_as_comdat_group_group=no
23015 cat >>confdefs.h <<_ACEOF
23016 #define HAVE_COMDAT_GROUP `if test $gcc_cv_as_comdat_group = yes \
23017 || test $gcc_cv_as_comdat_group_percent = yes \
23018 || test $gcc_cv_as_comdat_group_group = yes; then echo 1; else echo 0; fi`
23019 _ACEOF
23022 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for line table discriminator support" >&5
23023 $as_echo_n "checking assembler for line table discriminator support... " >&6; }
23024 if test "${gcc_cv_as_discriminator+set}" = set; then :
23025 $as_echo_n "(cached) " >&6
23026 else
23027 gcc_cv_as_discriminator=no
23028 if test $in_tree_gas = yes; then
23029 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 19 \) \* 1000 + 51`
23030 then gcc_cv_as_discriminator=yes
23032 elif test x$gcc_cv_as != x; then
23033 $as_echo ' .text
23034 .file 1 "conf.c"
23035 .loc 1 1 0 discriminator 1' > conftest.s
23036 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
23037 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
23038 (eval $ac_try) 2>&5
23039 ac_status=$?
23040 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
23041 test $ac_status = 0; }; }
23042 then
23043 gcc_cv_as_discriminator=yes
23044 else
23045 echo "configure: failed program was" >&5
23046 cat conftest.s >&5
23048 rm -f conftest.o conftest.s
23051 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_discriminator" >&5
23052 $as_echo "$gcc_cv_as_discriminator" >&6; }
23053 if test $gcc_cv_as_discriminator = yes; then
23055 $as_echo "#define HAVE_GAS_DISCRIMINATOR 1" >>confdefs.h
23059 # Thread-local storage - the check is heavily parameterized.
23060 conftest_s=
23061 tls_first_major=
23062 tls_first_minor=
23063 tls_as_opt=
23064 case "$target" in
23065 alpha*-*-*)
23066 conftest_s='
23067 .section ".tdata","awT",@progbits
23068 foo: .long 25
23069 .text
23070 ldq $27,__tls_get_addr($29) !literal!1
23071 lda $16,foo($29) !tlsgd!1
23072 jsr $26,($27),__tls_get_addr !lituse_tlsgd!1
23073 ldq $27,__tls_get_addr($29) !literal!2
23074 lda $16,foo($29) !tlsldm!2
23075 jsr $26,($27),__tls_get_addr !lituse_tlsldm!2
23076 ldq $1,foo($29) !gotdtprel
23077 ldah $2,foo($29) !dtprelhi
23078 lda $3,foo($2) !dtprello
23079 lda $4,foo($29) !dtprel
23080 ldq $1,foo($29) !gottprel
23081 ldah $2,foo($29) !tprelhi
23082 lda $3,foo($2) !tprello
23083 lda $4,foo($29) !tprel'
23084 tls_first_major=2
23085 tls_first_minor=13
23086 tls_as_opt=--fatal-warnings
23088 cris-*-*|crisv32-*-*)
23089 conftest_s='
23090 .section ".tdata","awT",@progbits
23091 x: .long 25
23092 .text
23093 move.d x:IE,$r10
23094 nop'
23095 tls_first_major=2
23096 tls_first_minor=20
23097 tls_as_opt=--fatal-warnings
23099 frv*-*-*)
23100 conftest_s='
23101 .section ".tdata","awT",@progbits
23102 x: .long 25
23103 .text
23104 call #gettlsoff(x)'
23105 tls_first_major=2
23106 tls_first_minor=14
23108 hppa*-*-linux*)
23109 conftest_s='
23110 t1: .reg %r20
23111 t2: .reg %r21
23112 gp: .reg %r19
23113 .section ".tdata","awT",@progbits
23114 foo: .long 25
23115 .text
23116 .align 4
23117 addil LT%foo-$tls_gdidx$,gp
23118 ldo RT%foo-$tls_gdidx$(%r1),%arg0
23119 b __tls_get_addr
23121 addil LT%foo-$tls_ldidx$,gp
23122 b __tls_get_addr
23123 ldo RT%foo-$tls_ldidx$(%r1),%arg0
23124 addil LR%foo-$tls_dtpoff$,%ret0
23125 ldo RR%foo-$tls_dtpoff$(%r1),%t1
23126 mfctl %cr27,%t1
23127 addil LT%foo-$tls_ieoff$,gp
23128 ldw RT%foo-$tls_ieoff$(%r1),%t2
23129 add %t1,%t2,%t3
23130 mfctl %cr27,%t1
23131 addil LR%foo-$tls_leoff$,%t1
23132 ldo RR%foo-$tls_leoff$(%r1),%t2'
23133 tls_first_major=2
23134 tls_first_minor=15
23135 tls_as_opt=--fatal-warnings
23137 arm*-*-*)
23138 conftest_s='
23139 .section ".tdata","awT",%progbits
23140 foo: .long 25
23141 .text
23142 .word foo(gottpoff)
23143 .word foo(tpoff)
23144 .word foo(tlsgd)
23145 .word foo(tlsldm)
23146 .word foo(tlsldo)'
23147 tls_first_major=2
23148 tls_first_minor=17
23150 i[34567]86-*-* | x86_64-*-solaris2.1[0-9]*)
23151 case "$target" in
23152 i[34567]86-*-solaris2.*)
23153 on_solaris=yes
23154 tga_func=___tls_get_addr
23156 x86_64-*-solaris2.1[0-9]*)
23157 on_solaris=yes
23158 tga_func=__tls_get_addr
23161 on_solaris=no
23163 esac
23164 if test x$on_solaris = xyes && test x$gas_flag = xno; then
23165 conftest_s='
23166 .section .tdata,"awt",@progbits'
23167 tls_first_major=0
23168 tls_first_minor=0
23170 $as_echo "#define TLS_SECTION_ASM_FLAG 't'" >>confdefs.h
23172 else
23173 conftest_s='
23174 .section ".tdata","awT",@progbits'
23175 tls_first_major=2
23176 tls_first_minor=14
23177 tls_as_opt="--fatal-warnings"
23179 conftest_s="$conftest_s
23180 foo: .long 25
23181 .text
23182 movl %gs:0, %eax
23183 leal foo@tlsgd(,%ebx,1), %eax
23184 leal foo@tlsldm(%ebx), %eax
23185 leal foo@dtpoff(%eax), %edx
23186 movl foo@gottpoff(%ebx), %eax
23187 subl foo@gottpoff(%ebx), %eax
23188 addl foo@gotntpoff(%ebx), %eax
23189 movl foo@indntpoff, %eax
23190 movl \$foo@tpoff, %eax
23191 subl \$foo@tpoff, %eax
23192 leal foo@ntpoff(%ecx), %eax"
23194 x86_64-*-*)
23195 conftest_s='
23196 .section ".tdata","awT",@progbits
23197 foo: .long 25
23198 .text
23199 movq %fs:0, %rax
23200 leaq foo@TLSGD(%rip), %rdi
23201 leaq foo@TLSLD(%rip), %rdi
23202 leaq foo@DTPOFF(%rax), %rdx
23203 movq foo@GOTTPOFF(%rip), %rax
23204 movq $foo@TPOFF, %rax'
23205 tls_first_major=2
23206 tls_first_minor=14
23207 tls_as_opt=--fatal-warnings
23209 ia64-*-*)
23210 conftest_s='
23211 .section ".tdata","awT",@progbits
23212 foo: data8 25
23213 .text
23214 addl r16 = @ltoff(@dtpmod(foo#)), gp
23215 addl r17 = @ltoff(@dtprel(foo#)), gp
23216 addl r18 = @ltoff(@tprel(foo#)), gp
23217 addl r19 = @dtprel(foo#), gp
23218 adds r21 = @dtprel(foo#), r13
23219 movl r23 = @dtprel(foo#)
23220 addl r20 = @tprel(foo#), gp
23221 adds r22 = @tprel(foo#), r13
23222 movl r24 = @tprel(foo#)'
23223 tls_first_major=2
23224 tls_first_minor=13
23225 tls_as_opt=--fatal-warnings
23227 microblaze*-*-*)
23228 conftest_s='
23229 .section .tdata,"awT",@progbits
23231 .word 2
23232 .text
23233 addik r5,r20,x@TLSGD
23234 addik r5,r20,x@TLSLDM'
23235 tls_first_major=2
23236 tls_first_minor=20
23237 tls_as_opt='--fatal-warnings'
23239 mips*-*-*)
23240 conftest_s='
23241 .section .tdata,"awT",@progbits
23243 .word 2
23244 .text
23245 addiu $4, $28, %tlsgd(x)
23246 addiu $4, $28, %tlsldm(x)
23247 lui $4, %dtprel_hi(x)
23248 addiu $4, $4, %dtprel_lo(x)
23249 lw $4, %gottprel(x)($28)
23250 lui $4, %tprel_hi(x)
23251 addiu $4, $4, %tprel_lo(x)'
23252 tls_first_major=2
23253 tls_first_minor=16
23254 tls_as_opt='-32 --fatal-warnings'
23256 m68k-*-*)
23257 conftest_s='
23258 .section .tdata,"awT",@progbits
23260 .word 2
23261 .text
23262 foo:
23263 move.l x@TLSGD(%a5),%a0
23264 move.l x@TLSLDM(%a5),%a0
23265 move.l x@TLSLDO(%a5),%a0
23266 move.l x@TLSIE(%a5),%a0
23267 move.l x@TLSLE(%a5),%a0'
23268 tls_first_major=2
23269 tls_first_minor=19
23270 tls_as_opt='--fatal-warnings'
23272 aarch64*-*-*)
23273 conftest_s='
23274 .section ".tdata","awT",%progbits
23275 foo: .long 25
23276 .text
23277 adrp x0, :tlsgd:x
23278 add x0, x0, #:tlsgd_lo12:x
23279 bl __tls_get_addr
23280 nop'
23281 tls_first_major=2
23282 tls_first_minor=20
23283 tls_as_opt='--fatal-warnings'
23285 powerpc-ibm-aix*)
23286 conftest_s='
23287 .extern __get_tpointer
23288 .toc
23289 LC..1:
23290 .tc a[TC],a[TL]@le
23291 .csect .text[PR]
23292 .tlstest:
23293 lwz 9,LC..1(2)
23294 bla __get_tpointer
23295 lwzx 3,9,3
23296 .globl a
23297 .csect a[TL],4
23299 .space 4'
23300 tls_first_major=0
23301 tls_first_minor=0
23303 powerpc64*-*-*)
23304 conftest_s='
23305 .section ".tdata","awT",@progbits
23306 .align 3
23307 ld0: .space 8
23308 ld1: .space 8
23309 x1: .space 8
23310 x2: .space 8
23311 x3: .space 8
23312 .text
23313 addi 3,2,ld0@got@tlsgd
23314 bl .__tls_get_addr
23316 addi 3,2,ld1@toc
23317 bl .__tls_get_addr
23319 addi 3,2,x1@got@tlsld
23320 bl .__tls_get_addr
23322 addi 9,3,x1@dtprel
23323 bl .__tls_get_addr
23325 addis 9,3,x2@dtprel@ha
23326 addi 9,9,x2@dtprel@l
23327 bl .__tls_get_addr
23329 ld 9,x3@got@dtprel(2)
23330 add 9,9,3
23331 bl .__tls_get_addr
23332 nop'
23333 tls_first_major=2
23334 tls_first_minor=14
23335 tls_as_opt="-a64 --fatal-warnings"
23337 powerpc*-*-*)
23338 conftest_s='
23339 .section ".tdata","awT",@progbits
23340 .align 2
23341 ld0: .space 4
23342 ld1: .space 4
23343 x1: .space 4
23344 x2: .space 4
23345 x3: .space 4
23346 .text
23347 addi 3,31,ld0@got@tlsgd
23348 bl __tls_get_addr
23349 addi 3,31,x1@got@tlsld
23350 bl __tls_get_addr
23351 addi 9,3,x1@dtprel
23352 addis 9,3,x2@dtprel@ha
23353 addi 9,9,x2@dtprel@l
23354 lwz 9,x3@got@tprel(31)
23355 add 9,9,x@tls
23356 addi 9,2,x1@tprel
23357 addis 9,2,x2@tprel@ha
23358 addi 9,9,x2@tprel@l'
23359 tls_first_major=2
23360 tls_first_minor=14
23361 tls_as_opt="-a32 --fatal-warnings"
23363 s390-*-*)
23364 conftest_s='
23365 .section ".tdata","awT",@progbits
23366 foo: .long 25
23367 .text
23368 .long foo@TLSGD
23369 .long foo@TLSLDM
23370 .long foo@DTPOFF
23371 .long foo@NTPOFF
23372 .long foo@GOTNTPOFF
23373 .long foo@INDNTPOFF
23374 l %r1,foo@GOTNTPOFF(%r12)
23375 l %r1,0(%r1):tls_load:foo
23376 bas %r14,0(%r1,%r13):tls_gdcall:foo
23377 bas %r14,0(%r1,%r13):tls_ldcall:foo'
23378 tls_first_major=2
23379 tls_first_minor=14
23380 tls_as_opt="-m31 --fatal-warnings"
23382 s390x-*-*)
23383 conftest_s='
23384 .section ".tdata","awT",@progbits
23385 foo: .long 25
23386 .text
23387 .quad foo@TLSGD
23388 .quad foo@TLSLDM
23389 .quad foo@DTPOFF
23390 .quad foo@NTPOFF
23391 .quad foo@GOTNTPOFF
23392 lg %r1,foo@GOTNTPOFF(%r12)
23393 larl %r1,foo@INDNTPOFF
23394 brasl %r14,__tls_get_offset@PLT:tls_gdcall:foo
23395 brasl %r14,__tls_get_offset@PLT:tls_ldcall:foo'
23396 tls_first_major=2
23397 tls_first_minor=14
23398 tls_as_opt="-m64 -Aesame --fatal-warnings"
23400 sh-*-* | sh[34]-*-*)
23401 conftest_s='
23402 .section ".tdata","awT",@progbits
23403 foo: .long 25
23404 .text
23405 .long foo@TLSGD
23406 .long foo@TLSLDM
23407 .long foo@DTPOFF
23408 .long foo@GOTTPOFF
23409 .long foo@TPOFF'
23410 tls_first_major=2
23411 tls_first_minor=13
23412 tls_as_opt=--fatal-warnings
23414 sparc*-*-*)
23415 case "$target" in
23416 sparc*-sun-solaris2.*)
23417 on_solaris=yes
23418 tga_func=__tls_get_addr
23421 on_solaris=no
23423 esac
23424 if test x$on_solaris = xyes && test x$gas_flag = xno; then
23425 conftest_s='
23426 .section ".tdata",#alloc,#write,#tls'
23427 tls_first_major=0
23428 tls_first_minor=0
23429 else
23430 conftest_s='
23431 .section ".tdata","awT",@progbits'
23432 tls_first_major=2
23433 tls_first_minor=14
23434 tls_as_opt="-32 --fatal-warnings"
23436 conftest_s="$conftest_s
23437 foo: .long 25
23438 .text
23439 sethi %tgd_hi22(foo), %o0
23440 add %o0, %tgd_lo10(foo), %o1
23441 add %l7, %o1, %o0, %tgd_add(foo)
23442 call __tls_get_addr, %tgd_call(foo)
23443 sethi %tldm_hi22(foo), %l1
23444 add %l1, %tldm_lo10(foo), %l2
23445 add %l7, %l2, %o0, %tldm_add(foo)
23446 call __tls_get_addr, %tldm_call(foo)
23447 sethi %tldo_hix22(foo), %l3
23448 xor %l3, %tldo_lox10(foo), %l4
23449 add %o0, %l4, %l5, %tldo_add(foo)
23450 sethi %tie_hi22(foo), %o3
23451 add %o3, %tie_lo10(foo), %o3
23452 ld [%l7 + %o3], %o2, %tie_ld(foo)
23453 add %g7, %o2, %o4, %tie_add(foo)
23454 sethi %tle_hix22(foo), %l1
23455 xor %l1, %tle_lox10(foo), %o5
23456 ld [%g7 + %o5], %o1"
23458 tilepro*-*-*)
23459 conftest_s='
23460 .section ".tdata","awT",@progbits
23461 foo: .long 25
23462 .text
23463 addli r0, zero, tls_gd(foo)
23464 auli r0, zero, tls_gd_ha16(foo)
23465 addli r0, r0, tls_gd_lo16(foo)
23466 jal __tls_get_addr
23467 addli r0, zero, tls_ie(foo)
23468 auli r0, r0, tls_ie_ha16(foo)
23469 addli r0, r0, tls_ie_lo16(foo)'
23470 tls_first_major=2
23471 tls_first_minor=22
23472 tls_as_opt="--fatal-warnings"
23474 tilegx*-*-*)
23475 conftest_s='
23476 .section ".tdata","awT",@progbits
23477 foo: .long 25
23478 .text
23479 shl16insli r0, zero, hw0_last_tls_gd(foo)
23480 shl16insli r0, zero, hw1_last_tls_gd(foo)
23481 shl16insli r0, r0, hw0_tls_gd(foo)
23482 jal __tls_get_addr
23483 shl16insli r0, zero, hw1_last_tls_ie(foo)
23484 shl16insli r0, r0, hw0_tls_ie(foo)'
23485 tls_first_major=2
23486 tls_first_minor=22
23487 tls_as_opt="--fatal-warnings"
23489 xtensa*-*-*)
23490 conftest_s='
23491 .section ".tdata","awT",@progbits
23492 foo: .long 25
23493 .text
23494 movi a8, foo@TLSFUNC
23495 movi a10, foo@TLSARG
23496 callx8.tls a8, foo@TLSCALL'
23497 tls_first_major=2
23498 tls_first_minor=19
23500 esac
23501 set_have_as_tls=no
23502 if test "x$enable_tls" = xno ; then
23503 : # TLS explicitly disabled.
23504 elif test "x$enable_tls" = xyes ; then
23505 set_have_as_tls=yes # TLS explicitly enabled.
23506 elif test -z "$tls_first_major"; then
23507 : # If we don't have a check, assume no support.
23508 else
23509 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for thread-local storage support" >&5
23510 $as_echo_n "checking assembler for thread-local storage support... " >&6; }
23511 if test "${gcc_cv_as_tls+set}" = set; then :
23512 $as_echo_n "(cached) " >&6
23513 else
23514 gcc_cv_as_tls=no
23515 if test $in_tree_gas = yes; then
23516 if test $gcc_cv_gas_vers -ge `expr \( \( $tls_first_major \* 1000 \) + $tls_first_minor \) \* 1000 + 0`
23517 then gcc_cv_as_tls=yes
23519 elif test x$gcc_cv_as != x; then
23520 $as_echo "$conftest_s" > conftest.s
23521 if { ac_try='$gcc_cv_as $gcc_cv_as_flags $tls_as_opt -o conftest.o conftest.s >&5'
23522 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
23523 (eval $ac_try) 2>&5
23524 ac_status=$?
23525 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
23526 test $ac_status = 0; }; }
23527 then
23528 gcc_cv_as_tls=yes
23529 else
23530 echo "configure: failed program was" >&5
23531 cat conftest.s >&5
23533 rm -f conftest.o conftest.s
23536 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_tls" >&5
23537 $as_echo "$gcc_cv_as_tls" >&6; }
23538 if test $gcc_cv_as_tls = yes; then
23539 set_have_as_tls=yes
23542 case "$target" in
23543 # TLS was introduced in the Solaris 9 FCS release. Support for GNU-style
23544 # TLS on x86 was only introduced in Solaris 9 4/04, replacing the earlier
23545 # Sun style that Sun ld and GCC don't support any longer.
23546 *-*-solaris2.*)
23547 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker and ld.so.1 TLS support" >&5
23548 $as_echo_n "checking linker and ld.so.1 TLS support... " >&6; }
23549 ld_tls_support=no
23550 # Check ld and ld.so.1 TLS support.
23551 if echo "$ld_ver" | grep GNU > /dev/null; then
23552 # Assume all interesting versions of GNU ld have TLS support.
23553 # FIXME: still need ld.so.1 support, i.e. ld version checks below.
23554 ld_tls_support=yes
23555 else
23556 case "$target" in
23557 # Solaris 9/x86 ld has GNU style TLS support since version 1.374.
23558 i?86-*-solaris2.9)
23559 min_tls_ld_vers_minor=374
23561 # Solaris 9/SPARC and Solaris 10+ ld have TLS support since FCS.
23562 sparc*-*-solaris2.9 | *-*-solaris2.1[0-9]*)
23563 min_tls_ld_vers_minor=343
23565 esac
23566 if test "$ld_vers_major" -gt 1 || \
23567 test "$ld_vers_minor" -ge "$min_tls_ld_vers_minor"; then
23568 ld_tls_support=yes
23569 else
23570 set_have_as_tls=no
23573 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_tls_support" >&5
23574 $as_echo "$ld_tls_support" >&6; }
23576 save_LIBS="$LIBS"
23577 save_LDFLAGS="$LDFLAGS"
23578 LIBS=
23579 LDFLAGS=
23581 { $as_echo "$as_me:${as_lineno-$LINENO}: checking library containing $tga_func" >&5
23582 $as_echo_n "checking library containing $tga_func... " >&6; }
23583 # Before Solaris 10, __tls_get_addr (SPARC/x64) resp. ___tls_get_addr
23584 # (32-bit x86) only lived in libthread, so check for that. Keep
23585 # set_have_as_tls if found, disable if not.
23586 as_ac_Search=`$as_echo "ac_cv_search_$tga_func" | $as_tr_sh`
23587 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing $tga_func" >&5
23588 $as_echo_n "checking for library containing $tga_func... " >&6; }
23589 if { as_var=$as_ac_Search; eval "test \"\${$as_var+set}\" = set"; }; then :
23590 $as_echo_n "(cached) " >&6
23591 else
23592 ac_func_search_save_LIBS=$LIBS
23593 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23594 /* end confdefs.h. */
23596 /* Override any GCC internal prototype to avoid an error.
23597 Use char because int might match the return type of a GCC
23598 builtin and then its argument prototype would still apply. */
23599 #ifdef __cplusplus
23600 extern "C"
23601 #endif
23602 char $tga_func ();
23604 main ()
23606 return $tga_func ();
23608 return 0;
23610 _ACEOF
23611 for ac_lib in '' thread; do
23612 if test -z "$ac_lib"; then
23613 ac_res="none required"
23614 else
23615 ac_res=-l$ac_lib
23616 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
23618 if ac_fn_c_try_link "$LINENO"; then :
23619 eval "$as_ac_Search=\$ac_res"
23621 rm -f core conftest.err conftest.$ac_objext \
23622 conftest$ac_exeext
23623 if { as_var=$as_ac_Search; eval "test \"\${$as_var+set}\" = set"; }; then :
23624 break
23626 done
23627 if { as_var=$as_ac_Search; eval "test \"\${$as_var+set}\" = set"; }; then :
23629 else
23630 eval "$as_ac_Search=no"
23632 rm conftest.$ac_ext
23633 LIBS=$ac_func_search_save_LIBS
23635 eval ac_res=\$$as_ac_Search
23636 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
23637 $as_echo "$ac_res" >&6; }
23638 eval ac_res=\$$as_ac_Search
23639 if test "$ac_res" != no; then :
23640 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
23642 else
23643 set_have_as_tls=no
23646 # Clear LIBS if we cannot support TLS.
23647 if test $set_have_as_tls = no; then
23648 LIBS=
23650 # Always define LIB_TLS_SPEC, even without TLS support.
23652 cat >>confdefs.h <<_ACEOF
23653 #define LIB_TLS_SPEC "$LIBS"
23654 _ACEOF
23656 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIBS" >&5
23657 $as_echo "$LIBS" >&6; }
23659 LIBS="$save_LIBS"
23660 LDFLAGS="$save_LDFLAGS"
23662 esac
23663 if test $set_have_as_tls = yes ; then
23665 $as_echo "#define HAVE_AS_TLS 1" >>confdefs.h
23669 # Target-specific assembler checks.
23671 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker -Bstatic/-Bdynamic option" >&5
23672 $as_echo_n "checking linker -Bstatic/-Bdynamic option... " >&6; }
23673 gcc_cv_ld_static_dynamic=no
23674 gcc_cv_ld_static_option='-Bstatic'
23675 gcc_cv_ld_dynamic_option='-Bdynamic'
23676 if test $in_tree_ld = yes ; then
23677 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
23678 gcc_cv_ld_static_dynamic=yes
23680 elif test x$gcc_cv_ld != x; then
23681 # Check if linker supports -Bstatic/-Bdynamic option
23682 if $gcc_cv_ld --help 2>/dev/null | grep -- -Bstatic > /dev/null \
23683 && $gcc_cv_ld --help 2>/dev/null | grep -- -Bdynamic > /dev/null; then
23684 gcc_cv_ld_static_dynamic=yes
23685 else
23686 case "$target" in
23687 # AIX ld uses -b flags
23688 *-*-aix4.[23]* | *-*-aix[5-9]*)
23689 gcc_cv_ld_static_dynamic=yes
23690 gcc_cv_ld_static_option="-bstatic"
23691 gcc_cv_ld_dynamic_option="-bdynamic"
23693 # HP-UX ld uses -a flags to select between shared and archive.
23694 *-*-hpux*)
23695 if test x"$gnu_ld" = xno; then
23696 gcc_cv_ld_static_dynamic=yes
23697 gcc_cv_ld_static_option="-aarchive_shared"
23698 gcc_cv_ld_dynamic_option="-adefault"
23701 # Solaris 2 ld always supports -Bstatic/-Bdynamic.
23702 *-*-solaris2*)
23703 gcc_cv_ld_static_dynamic=yes
23705 esac
23708 if test x"$gcc_cv_ld_static_dynamic" = xyes; then
23710 $as_echo "#define HAVE_LD_STATIC_DYNAMIC 1" >>confdefs.h
23713 cat >>confdefs.h <<_ACEOF
23714 #define LD_STATIC_OPTION "$gcc_cv_ld_static_option"
23715 _ACEOF
23718 cat >>confdefs.h <<_ACEOF
23719 #define LD_DYNAMIC_OPTION "$gcc_cv_ld_dynamic_option"
23720 _ACEOF
23723 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_static_dynamic" >&5
23724 $as_echo "$gcc_cv_ld_static_dynamic" >&6; }
23726 if test x"$demangler_in_ld" = xyes; then
23727 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker --demangle support" >&5
23728 $as_echo_n "checking linker --demangle support... " >&6; }
23729 gcc_cv_ld_demangle=no
23730 if test $in_tree_ld = yes; then
23731 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 \
23732 gcc_cv_ld_demangle=yes
23734 elif test x$gcc_cv_ld != x -a x"$gnu_ld" = xyes; then
23735 # Check if the GNU linker supports --demangle option
23736 if $gcc_cv_ld --help 2>/dev/null | grep no-demangle > /dev/null; then
23737 gcc_cv_ld_demangle=yes
23740 if test x"$gcc_cv_ld_demangle" = xyes; then
23742 $as_echo "#define HAVE_LD_DEMANGLE 1" >>confdefs.h
23745 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_demangle" >&5
23746 $as_echo "$gcc_cv_ld_demangle" >&6; }
23749 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker plugin support" >&5
23750 $as_echo_n "checking linker plugin support... " >&6; }
23751 gcc_cv_lto_plugin=0
23752 if test -f liblto_plugin.la; then
23753 save_ld_ver="$ld_ver"
23754 save_ld_vers_major="$ld_vers_major"
23755 save_ld_vers_minor="$ld_vers_minor"
23756 save_ld_is_gold="$ld_is_gold"
23758 ld_is_gold=no
23760 if test $in_tree_ld = yes -a x"$ORIGINAL_PLUGIN_LD_FOR_TARGET" = x"$gcc_cv_ld"; then
23761 ld_ver="GNU ld"
23762 # FIXME: ld_is_gold?
23763 ld_vers_major="$gcc_cv_gld_major_version"
23764 ld_vers_minor="$gcc_cv_gld_minor_version"
23765 else
23766 # Determine plugin linker version.
23767 # FIXME: Partial duplicate from above, generalize.
23768 ld_ver=`$ORIGINAL_PLUGIN_LD_FOR_TARGET --version 2>/dev/null | sed 1q`
23769 if echo "$ld_ver" | grep GNU > /dev/null; then
23770 if echo "$ld_ver" | grep "GNU gold" > /dev/null; then
23771 ld_is_gold=yes
23772 ld_vers=`echo $ld_ver | sed -n \
23773 -e 's,^[^)]*[ ]\([0-9][0-9]*\.[0-9][0-9]*[^)]*\)) .*$,\1,p'`
23774 else
23775 ld_vers=`echo $ld_ver | sed -n \
23776 -e 's,^.*[ ]\([0-9][0-9]*\.[0-9][0-9]*.*\)$,\1,p'`
23778 ld_vers_major=`expr "$ld_vers" : '\([0-9]*\)'`
23779 ld_vers_minor=`expr "$ld_vers" : '[0-9]*\.\([0-9]*\)'`
23783 # Determine plugin support.
23784 if echo "$ld_ver" | grep GNU > /dev/null; then
23785 # Require GNU ld or gold 2.21+ for plugin support by default.
23786 if test "$ld_vers_major" -eq 2 -a "$ld_vers_minor" -ge 21; then
23787 gcc_cv_lto_plugin=2
23788 # Allow -fuse-linker-plugin to enable plugin support in GNU gold 2.20.
23789 elif test "$ld_is_gold" = yes -a "$ld_vers_major" -eq 2 -a "$ld_vers_minor" -eq 20; then
23790 gcc_cv_lto_plugin=1
23794 ld_ver="$save_ld_ver"
23795 ld_vers_major="$save_ld_vers_major"
23796 ld_vers_minor="$save_ld_vers_minor"
23797 ld_is_gold="$save_ld_is_gold"
23800 cat >>confdefs.h <<_ACEOF
23801 #define HAVE_LTO_PLUGIN $gcc_cv_lto_plugin
23802 _ACEOF
23804 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_lto_plugin" >&5
23805 $as_echo "$gcc_cv_lto_plugin" >&6; }
23807 case "$target" in
23809 aarch64*-*-*)
23810 # Enable default workaround for AArch64 Cortex-A53 erratum 835769.
23811 # Check whether --enable-fix-cortex-a53-835769 was given.
23812 if test "${enable_fix_cortex_a53_835769+set}" = set; then :
23813 enableval=$enable_fix_cortex_a53_835769;
23814 case $enableval in
23815 yes)
23816 tm_defines="${tm_defines} TARGET_FIX_ERR_A53_835769_DEFAULT=1"
23821 as_fn_error "'$enableval' is an invalid value for --enable-fix-cortex-a53-835769.\
23822 Valid choices are 'yes' and 'no'." "$LINENO" 5
23825 esac
23830 # All TARGET_ABI_OSF targets.
23831 alpha*-*-linux* | alpha*-*-*bsd*)
23832 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for explicit relocation support" >&5
23833 $as_echo_n "checking assembler for explicit relocation support... " >&6; }
23834 if test "${gcc_cv_as_alpha_explicit_relocs+set}" = set; then :
23835 $as_echo_n "(cached) " >&6
23836 else
23837 gcc_cv_as_alpha_explicit_relocs=no
23838 if test $in_tree_gas = yes; then
23839 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 12 \) \* 1000 + 0`
23840 then gcc_cv_as_alpha_explicit_relocs=yes
23842 elif test x$gcc_cv_as != x; then
23843 $as_echo ' .set nomacro
23844 .text
23845 extbl $3, $2, $3 !lituse_bytoff!1
23846 ldq $2, a($29) !literal!1
23847 ldq $4, b($29) !literal!2
23848 ldq_u $3, 0($2) !lituse_base!1
23849 ldq $27, f($29) !literal!5
23850 jsr $26, ($27), f !lituse_jsr!5
23851 ldah $29, 0($26) !gpdisp!3
23852 lda $0, c($29) !gprel
23853 ldah $1, d($29) !gprelhigh
23854 lda $1, d($1) !gprellow
23855 lda $29, 0($29) !gpdisp!3' > conftest.s
23856 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
23857 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
23858 (eval $ac_try) 2>&5
23859 ac_status=$?
23860 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
23861 test $ac_status = 0; }; }
23862 then
23863 gcc_cv_as_alpha_explicit_relocs=yes
23864 else
23865 echo "configure: failed program was" >&5
23866 cat conftest.s >&5
23868 rm -f conftest.o conftest.s
23871 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_alpha_explicit_relocs" >&5
23872 $as_echo "$gcc_cv_as_alpha_explicit_relocs" >&6; }
23873 if test $gcc_cv_as_alpha_explicit_relocs = yes; then
23875 $as_echo "#define HAVE_AS_EXPLICIT_RELOCS 1" >>confdefs.h
23878 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for jsrdirect relocation support" >&5
23879 $as_echo_n "checking assembler for jsrdirect relocation support... " >&6; }
23880 if test "${gcc_cv_as_alpha_jsrdirect_relocs+set}" = set; then :
23881 $as_echo_n "(cached) " >&6
23882 else
23883 gcc_cv_as_alpha_jsrdirect_relocs=no
23884 if test $in_tree_gas = yes; then
23885 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 16 \) \* 1000 + 90`
23886 then gcc_cv_as_alpha_jsrdirect_relocs=yes
23888 elif test x$gcc_cv_as != x; then
23889 $as_echo ' .set nomacro
23890 .text
23891 ldq $27, a($29) !literal!1
23892 jsr $26, ($27), a !lituse_jsrdirect!1' > conftest.s
23893 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
23894 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
23895 (eval $ac_try) 2>&5
23896 ac_status=$?
23897 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
23898 test $ac_status = 0; }; }
23899 then
23900 gcc_cv_as_alpha_jsrdirect_relocs=yes
23901 else
23902 echo "configure: failed program was" >&5
23903 cat conftest.s >&5
23905 rm -f conftest.o conftest.s
23908 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_alpha_jsrdirect_relocs" >&5
23909 $as_echo "$gcc_cv_as_alpha_jsrdirect_relocs" >&6; }
23910 if test $gcc_cv_as_alpha_jsrdirect_relocs = yes; then
23912 $as_echo "#define HAVE_AS_JSRDIRECT_RELOCS 1" >>confdefs.h
23917 cris-*-*)
23918 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for -no-mul-bug-abort option" >&5
23919 $as_echo_n "checking assembler for -no-mul-bug-abort option... " >&6; }
23920 if test "${gcc_cv_as_cris_no_mul_bug+set}" = set; then :
23921 $as_echo_n "(cached) " >&6
23922 else
23923 gcc_cv_as_cris_no_mul_bug=no
23924 if test $in_tree_gas = yes; then
23925 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 15 \) \* 1000 + 91`
23926 then gcc_cv_as_cris_no_mul_bug=yes
23928 elif test x$gcc_cv_as != x; then
23929 $as_echo '.text' > conftest.s
23930 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -no-mul-bug-abort -o conftest.o conftest.s >&5'
23931 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
23932 (eval $ac_try) 2>&5
23933 ac_status=$?
23934 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
23935 test $ac_status = 0; }; }
23936 then
23937 gcc_cv_as_cris_no_mul_bug=yes
23938 else
23939 echo "configure: failed program was" >&5
23940 cat conftest.s >&5
23942 rm -f conftest.o conftest.s
23945 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_cris_no_mul_bug" >&5
23946 $as_echo "$gcc_cv_as_cris_no_mul_bug" >&6; }
23947 if test $gcc_cv_as_cris_no_mul_bug = yes; then
23949 $as_echo "#define HAVE_AS_NO_MUL_BUG_ABORT_OPTION 1" >>confdefs.h
23954 sparc*-*-*)
23955 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .register" >&5
23956 $as_echo_n "checking assembler for .register... " >&6; }
23957 if test "${gcc_cv_as_sparc_register_op+set}" = set; then :
23958 $as_echo_n "(cached) " >&6
23959 else
23960 gcc_cv_as_sparc_register_op=no
23961 if test x$gcc_cv_as != x; then
23962 $as_echo '.register %g2, #scratch' > conftest.s
23963 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
23964 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
23965 (eval $ac_try) 2>&5
23966 ac_status=$?
23967 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
23968 test $ac_status = 0; }; }
23969 then
23970 gcc_cv_as_sparc_register_op=yes
23971 else
23972 echo "configure: failed program was" >&5
23973 cat conftest.s >&5
23975 rm -f conftest.o conftest.s
23978 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_sparc_register_op" >&5
23979 $as_echo "$gcc_cv_as_sparc_register_op" >&6; }
23980 if test $gcc_cv_as_sparc_register_op = yes; then
23982 $as_echo "#define HAVE_AS_REGISTER_PSEUDO_OP 1" >>confdefs.h
23986 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for #nobits" >&5
23987 $as_echo_n "checking assembler for #nobits... " >&6; }
23988 if test "${gcc_cv_as_sparc_nobits+set}" = set; then :
23989 $as_echo_n "(cached) " >&6
23990 else
23991 gcc_cv_as_sparc_nobits=no
23992 if test x$gcc_cv_as != x; then
23993 $as_echo '.section "nobits",#alloc,#write,#nobits
23994 .section "progbits",#alloc,#write,#progbits' > conftest.s
23995 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
23996 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
23997 (eval $ac_try) 2>&5
23998 ac_status=$?
23999 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24000 test $ac_status = 0; }; }
24001 then
24002 gcc_cv_as_sparc_nobits=yes
24003 else
24004 echo "configure: failed program was" >&5
24005 cat conftest.s >&5
24007 rm -f conftest.o conftest.s
24010 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_sparc_nobits" >&5
24011 $as_echo "$gcc_cv_as_sparc_nobits" >&6; }
24014 cat >>confdefs.h <<_ACEOF
24015 #define HAVE_AS_SPARC_NOBITS `if test $gcc_cv_as_sparc_nobits = yes; then echo 1; else echo 0; fi`
24016 _ACEOF
24019 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for -relax option" >&5
24020 $as_echo_n "checking assembler for -relax option... " >&6; }
24021 if test "${gcc_cv_as_sparc_relax+set}" = set; then :
24022 $as_echo_n "(cached) " >&6
24023 else
24024 gcc_cv_as_sparc_relax=no
24025 if test x$gcc_cv_as != x; then
24026 $as_echo '.text' > conftest.s
24027 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -relax -o conftest.o conftest.s >&5'
24028 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
24029 (eval $ac_try) 2>&5
24030 ac_status=$?
24031 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24032 test $ac_status = 0; }; }
24033 then
24034 gcc_cv_as_sparc_relax=yes
24035 else
24036 echo "configure: failed program was" >&5
24037 cat conftest.s >&5
24039 rm -f conftest.o conftest.s
24042 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_sparc_relax" >&5
24043 $as_echo "$gcc_cv_as_sparc_relax" >&6; }
24044 if test $gcc_cv_as_sparc_relax = yes; then
24046 $as_echo "#define HAVE_AS_RELAX_OPTION 1" >>confdefs.h
24050 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for GOTDATA_OP relocs" >&5
24051 $as_echo_n "checking assembler for GOTDATA_OP relocs... " >&6; }
24052 if test "${gcc_cv_as_sparc_gotdata_op+set}" = set; then :
24053 $as_echo_n "(cached) " >&6
24054 else
24055 gcc_cv_as_sparc_gotdata_op=no
24056 if test x$gcc_cv_as != x; then
24057 $as_echo '.text
24058 .align 4
24059 foo:
24061 bar:
24062 sethi %gdop_hix22(foo), %g1
24063 xor %g1, %gdop_lox10(foo), %g1
24064 ld [%l7 + %g1], %g2, %gdop(foo)' > conftest.s
24065 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -K PIC -o conftest.o conftest.s >&5'
24066 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
24067 (eval $ac_try) 2>&5
24068 ac_status=$?
24069 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24070 test $ac_status = 0; }; }
24071 then
24072 if test x$gcc_cv_ld != x \
24073 && $gcc_cv_ld -o conftest conftest.o -G > /dev/null 2>&1; then
24074 if test x$gcc_cv_objdump != x; then
24075 if $gcc_cv_objdump -s -j .text conftest 2> /dev/null \
24076 | grep ' 03000004 82186004 c405c001'> /dev/null 2>&1; then
24077 gcc_cv_as_sparc_gotdata_op=no
24078 else
24079 gcc_cv_as_sparc_gotdata_op=yes
24083 rm -f conftest
24084 else
24085 echo "configure: failed program was" >&5
24086 cat conftest.s >&5
24088 rm -f conftest.o conftest.s
24091 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_sparc_gotdata_op" >&5
24092 $as_echo "$gcc_cv_as_sparc_gotdata_op" >&6; }
24093 if test $gcc_cv_as_sparc_gotdata_op = yes; then
24095 $as_echo "#define HAVE_AS_SPARC_GOTDATA_OP 1" >>confdefs.h
24099 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for unaligned pcrel relocs" >&5
24100 $as_echo_n "checking assembler for unaligned pcrel relocs... " >&6; }
24101 if test "${gcc_cv_as_sparc_ua_pcrel+set}" = set; then :
24102 $as_echo_n "(cached) " >&6
24103 else
24104 gcc_cv_as_sparc_ua_pcrel=no
24105 if test x$gcc_cv_as != x; then
24106 $as_echo '.text
24107 foo:
24109 .data
24110 .align 4
24111 .byte 0
24112 .uaword %r_disp32(foo)' > conftest.s
24113 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -K PIC -o conftest.o conftest.s >&5'
24114 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
24115 (eval $ac_try) 2>&5
24116 ac_status=$?
24117 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24118 test $ac_status = 0; }; }
24119 then
24120 if test x$gcc_cv_ld != x \
24121 && $gcc_cv_ld -o conftest conftest.o -G > /dev/null 2>&1; then
24122 gcc_cv_as_sparc_ua_pcrel=yes
24124 rm -f conftest
24125 else
24126 echo "configure: failed program was" >&5
24127 cat conftest.s >&5
24129 rm -f conftest.o conftest.s
24132 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_sparc_ua_pcrel" >&5
24133 $as_echo "$gcc_cv_as_sparc_ua_pcrel" >&6; }
24134 if test $gcc_cv_as_sparc_ua_pcrel = yes; then
24136 $as_echo "#define HAVE_AS_SPARC_UA_PCREL 1" >>confdefs.h
24139 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for unaligned pcrel relocs against hidden symbols" >&5
24140 $as_echo_n "checking assembler for unaligned pcrel relocs against hidden symbols... " >&6; }
24141 if test "${gcc_cv_as_sparc_ua_pcrel_hidden+set}" = set; then :
24142 $as_echo_n "(cached) " >&6
24143 else
24144 gcc_cv_as_sparc_ua_pcrel_hidden=no
24145 if test x$gcc_cv_as != x; then
24146 $as_echo '.data
24147 .align 4
24148 .byte 0x31
24149 .uaword %r_disp32(foo)
24150 .byte 0x32, 0x33, 0x34
24151 .global foo
24152 .hidden foo
24153 foo:
24154 .skip 4' > conftest.s
24155 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -K PIC -o conftest.o conftest.s >&5'
24156 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
24157 (eval $ac_try) 2>&5
24158 ac_status=$?
24159 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24160 test $ac_status = 0; }; }
24161 then
24162 if test x$gcc_cv_ld != x && test x$gcc_cv_objdump != x \
24163 && $gcc_cv_ld -o conftest conftest.o -G > /dev/null 2>&1 \
24164 && $gcc_cv_objdump -s -j .data conftest 2> /dev/null \
24165 | grep ' 31000000 07323334' > /dev/null 2>&1; then
24166 if $gcc_cv_objdump -R conftest 2> /dev/null \
24167 | grep 'DISP32' > /dev/null 2>&1; then
24169 else
24170 gcc_cv_as_sparc_ua_pcrel_hidden=yes
24173 rm -f conftest
24174 else
24175 echo "configure: failed program was" >&5
24176 cat conftest.s >&5
24178 rm -f conftest.o conftest.s
24181 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_sparc_ua_pcrel_hidden" >&5
24182 $as_echo "$gcc_cv_as_sparc_ua_pcrel_hidden" >&6; }
24183 if test $gcc_cv_as_sparc_ua_pcrel_hidden = yes; then
24185 $as_echo "#define HAVE_AS_SPARC_UA_PCREL_HIDDEN 1" >>confdefs.h
24189 fi # unaligned pcrel relocs
24191 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for offsetable %lo()" >&5
24192 $as_echo_n "checking assembler for offsetable %lo()... " >&6; }
24193 if test "${gcc_cv_as_sparc_offsetable_lo10+set}" = set; then :
24194 $as_echo_n "(cached) " >&6
24195 else
24196 gcc_cv_as_sparc_offsetable_lo10=no
24197 if test x$gcc_cv_as != x; then
24198 $as_echo '.text
24199 or %g1, %lo(ab) + 12, %g1
24200 or %g1, %lo(ab + 12), %g1' > conftest.s
24201 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -xarch=v9 -o conftest.o conftest.s >&5'
24202 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
24203 (eval $ac_try) 2>&5
24204 ac_status=$?
24205 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24206 test $ac_status = 0; }; }
24207 then
24208 if test x$gcc_cv_objdump != x \
24209 && $gcc_cv_objdump -s -j .text conftest.o 2> /dev/null \
24210 | grep ' 82106000 82106000' > /dev/null 2>&1; then
24211 gcc_cv_as_sparc_offsetable_lo10=yes
24213 else
24214 echo "configure: failed program was" >&5
24215 cat conftest.s >&5
24217 rm -f conftest.o conftest.s
24220 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_sparc_offsetable_lo10" >&5
24221 $as_echo "$gcc_cv_as_sparc_offsetable_lo10" >&6; }
24222 if test $gcc_cv_as_sparc_offsetable_lo10 = yes; then
24224 $as_echo "#define HAVE_AS_OFFSETABLE_LO10 1" >>confdefs.h
24228 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for FMAF, HPC, and VIS 3.0 instructions" >&5
24229 $as_echo_n "checking assembler for FMAF, HPC, and VIS 3.0 instructions... " >&6; }
24230 if test "${gcc_cv_as_sparc_fmaf+set}" = set; then :
24231 $as_echo_n "(cached) " >&6
24232 else
24233 gcc_cv_as_sparc_fmaf=no
24234 if test x$gcc_cv_as != x; then
24235 $as_echo '.text
24236 .register %g2, #scratch
24237 .register %g3, #scratch
24238 .align 4
24239 fmaddd %f0, %f2, %f4, %f6
24240 addxccc %g1, %g2, %g3
24241 fsrl32 %f2, %f4, %f8
24242 fnaddd %f10, %f12, %f14' > conftest.s
24243 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -xarch=v9d -o conftest.o conftest.s >&5'
24244 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
24245 (eval $ac_try) 2>&5
24246 ac_status=$?
24247 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24248 test $ac_status = 0; }; }
24249 then
24250 gcc_cv_as_sparc_fmaf=yes
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_fmaf" >&5
24259 $as_echo "$gcc_cv_as_sparc_fmaf" >&6; }
24260 if test $gcc_cv_as_sparc_fmaf = yes; then
24262 $as_echo "#define HAVE_AS_FMAF_HPC_VIS3 1" >>confdefs.h
24266 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for SPARC4 instructions" >&5
24267 $as_echo_n "checking assembler for SPARC4 instructions... " >&6; }
24268 if test "${gcc_cv_as_sparc_sparc4+set}" = set; then :
24269 $as_echo_n "(cached) " >&6
24270 else
24271 gcc_cv_as_sparc_sparc4=no
24272 if test x$gcc_cv_as != x; then
24273 $as_echo '.text
24274 .register %g2, #scratch
24275 .register %g3, #scratch
24276 .align 4
24277 cxbe %g2, %g3, 1f
24278 1: cwbneg %g2, %g3, 1f
24279 1: sha1
24281 aes_kexpand0 %f4, %f6, %f8
24282 des_round %f38, %f40, %f42, %f44
24283 camellia_f %f54, %f56, %f58, %f60
24284 kasumi_fi_xor %f46, %f48, %f50, %f52' > conftest.s
24285 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -xarch=sparc4 -o conftest.o conftest.s >&5'
24286 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
24287 (eval $ac_try) 2>&5
24288 ac_status=$?
24289 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24290 test $ac_status = 0; }; }
24291 then
24292 gcc_cv_as_sparc_sparc4=yes
24293 else
24294 echo "configure: failed program was" >&5
24295 cat conftest.s >&5
24297 rm -f conftest.o conftest.s
24300 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_sparc_sparc4" >&5
24301 $as_echo "$gcc_cv_as_sparc_sparc4" >&6; }
24302 if test $gcc_cv_as_sparc_sparc4 = yes; then
24304 $as_echo "#define HAVE_AS_SPARC4 1" >>confdefs.h
24308 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for LEON instructions" >&5
24309 $as_echo_n "checking assembler for LEON instructions... " >&6; }
24310 if test "${gcc_cv_as_sparc_leon+set}" = set; then :
24311 $as_echo_n "(cached) " >&6
24312 else
24313 gcc_cv_as_sparc_leon=no
24314 if test x$gcc_cv_as != x; then
24315 $as_echo '.text
24316 .register %g2, #scratch
24317 .register %g3, #scratch
24318 .align 4
24319 smac %g2, %g3, %g1
24320 umac %g2, %g3, %g1
24321 casa [%g2] 0xb, %g3, %g1' > conftest.s
24322 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -Aleon -o conftest.o conftest.s >&5'
24323 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
24324 (eval $ac_try) 2>&5
24325 ac_status=$?
24326 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24327 test $ac_status = 0; }; }
24328 then
24329 gcc_cv_as_sparc_leon=yes
24330 else
24331 echo "configure: failed program was" >&5
24332 cat conftest.s >&5
24334 rm -f conftest.o conftest.s
24337 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_sparc_leon" >&5
24338 $as_echo "$gcc_cv_as_sparc_leon" >&6; }
24339 if test $gcc_cv_as_sparc_leon = yes; then
24341 $as_echo "#define HAVE_AS_LEON 1" >>confdefs.h
24346 i[34567]86-*-* | x86_64-*-*)
24347 case $target_os in
24348 cygwin*)
24349 # Full C++ conformance when using a shared libstdc++-v3 requires some
24350 # support from the Cygwin DLL, which in more recent versions exports
24351 # wrappers to aid in interposing and redirecting operators new, delete,
24352 # etc., as per n2800 #17.6.4.6 [replacement.functions]. Check if we
24353 # are configuring for a version of Cygwin that exports the wrappers.
24354 if test x$host = x$target; then
24355 ac_fn_c_check_func "$LINENO" "__wrap__Znaj" "ac_cv_func___wrap__Znaj"
24356 if test "x$ac_cv_func___wrap__Znaj" = x""yes; then :
24357 gcc_ac_cygwin_dll_wrappers=yes
24358 else
24359 gcc_ac_cygwin_dll_wrappers=no
24362 else
24363 # Can't check presence of libc functions during cross-compile, so
24364 # we just have to assume we're building for an up-to-date target.
24365 gcc_ac_cygwin_dll_wrappers=yes
24368 cat >>confdefs.h <<_ACEOF
24369 #define USE_CYGWIN_LIBSTDCXX_WRAPPERS `if test $gcc_ac_cygwin_dll_wrappers = yes; then echo 1; else echo 0; fi`
24370 _ACEOF
24372 esac
24373 case $target_os in
24374 cygwin* | pe | mingw32* | interix*)
24375 # Recent binutils allows the three-operand form of ".comm" on PE. This
24376 # definition is used unconditionally to initialise the default state of
24377 # the target option variable that governs usage of the feature.
24378 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .comm with alignment" >&5
24379 $as_echo_n "checking assembler for .comm with alignment... " >&6; }
24380 if test "${gcc_cv_as_comm_has_align+set}" = set; then :
24381 $as_echo_n "(cached) " >&6
24382 else
24383 gcc_cv_as_comm_has_align=no
24384 if test $in_tree_gas = yes; then
24385 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 19 \) \* 1000 + 52`
24386 then gcc_cv_as_comm_has_align=yes
24388 elif test x$gcc_cv_as != x; then
24389 $as_echo '.comm foo,1,32' > conftest.s
24390 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
24391 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
24392 (eval $ac_try) 2>&5
24393 ac_status=$?
24394 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24395 test $ac_status = 0; }; }
24396 then
24397 gcc_cv_as_comm_has_align=yes
24398 else
24399 echo "configure: failed program was" >&5
24400 cat conftest.s >&5
24402 rm -f conftest.o conftest.s
24405 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_comm_has_align" >&5
24406 $as_echo "$gcc_cv_as_comm_has_align" >&6; }
24409 cat >>confdefs.h <<_ACEOF
24410 #define HAVE_GAS_ALIGNED_COMM `if test $gcc_cv_as_comm_has_align = yes; then echo 1; else echo 0; fi`
24411 _ACEOF
24413 # Used for DWARF 2 in PE
24414 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .secrel32 relocs" >&5
24415 $as_echo_n "checking assembler for .secrel32 relocs... " >&6; }
24416 if test "${gcc_cv_as_ix86_pe_secrel32+set}" = set; then :
24417 $as_echo_n "(cached) " >&6
24418 else
24419 gcc_cv_as_ix86_pe_secrel32=no
24420 if test $in_tree_gas = yes; then
24421 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 15 \) \* 1000 + 91`
24422 then gcc_cv_as_ix86_pe_secrel32=yes
24424 elif test x$gcc_cv_as != x; then
24425 $as_echo '.text
24426 foo: nop
24427 .data
24428 .secrel32 foo' > conftest.s
24429 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
24430 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
24431 (eval $ac_try) 2>&5
24432 ac_status=$?
24433 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24434 test $ac_status = 0; }; }
24435 then
24436 if test x$gcc_cv_ld != x \
24437 && $gcc_cv_ld -o conftest conftest.o > /dev/null 2>&1; then
24438 gcc_cv_as_ix86_pe_secrel32=yes
24440 rm -f conftest
24441 else
24442 echo "configure: failed program was" >&5
24443 cat conftest.s >&5
24445 rm -f conftest.o conftest.s
24448 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_ix86_pe_secrel32" >&5
24449 $as_echo "$gcc_cv_as_ix86_pe_secrel32" >&6; }
24450 if test $gcc_cv_as_ix86_pe_secrel32 = yes; then
24452 $as_echo "#define HAVE_GAS_PE_SECREL32_RELOC 1" >>confdefs.h
24455 # Test if the assembler supports the extended form of the .section
24456 # directive that specifies section alignment. LTO support uses this,
24457 # but normally only after installation, so we warn but don't fail the
24458 # configure if LTO is enabled but the assembler does not support it.
24459 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .section with alignment" >&5
24460 $as_echo_n "checking assembler for .section with alignment... " >&6; }
24461 if test "${gcc_cv_as_section_has_align+set}" = set; then :
24462 $as_echo_n "(cached) " >&6
24463 else
24464 gcc_cv_as_section_has_align=no
24465 if test $in_tree_gas = yes; then
24466 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 20 \) \* 1000 + 1`
24467 then gcc_cv_as_section_has_align=yes
24469 elif test x$gcc_cv_as != x; then
24470 $as_echo '.section lto_test,"dr0"' > conftest.s
24471 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -fatal-warnings -o conftest.o conftest.s >&5'
24472 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
24473 (eval $ac_try) 2>&5
24474 ac_status=$?
24475 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24476 test $ac_status = 0; }; }
24477 then
24478 gcc_cv_as_section_has_align=yes
24479 else
24480 echo "configure: failed program was" >&5
24481 cat conftest.s >&5
24483 rm -f conftest.o conftest.s
24486 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_section_has_align" >&5
24487 $as_echo "$gcc_cv_as_section_has_align" >&6; }
24489 if test x$gcc_cv_as_section_has_align != xyes; then
24490 case ",$enable_languages," in
24491 *,lto,*)
24492 { $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
24493 $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;}
24495 esac
24497 # Test if the assembler supports the section flag 'e' for specifying
24498 # an excluded section.
24499 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .section with e" >&5
24500 $as_echo_n "checking assembler for .section with e... " >&6; }
24501 if test "${gcc_cv_as_section_has_e+set}" = set; then :
24502 $as_echo_n "(cached) " >&6
24503 else
24504 gcc_cv_as_section_has_e=no
24505 if test $in_tree_gas = yes; then
24506 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 22 \) \* 1000 + 51`
24507 then gcc_cv_as_section_has_e=yes
24509 elif test x$gcc_cv_as != x; then
24510 $as_echo '.section foo1,"e"
24511 .byte 0,0,0,0' > conftest.s
24512 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
24513 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
24514 (eval $ac_try) 2>&5
24515 ac_status=$?
24516 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24517 test $ac_status = 0; }; }
24518 then
24519 gcc_cv_as_section_has_e=yes
24520 else
24521 echo "configure: failed program was" >&5
24522 cat conftest.s >&5
24524 rm -f conftest.o conftest.s
24527 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_section_has_e" >&5
24528 $as_echo "$gcc_cv_as_section_has_e" >&6; }
24531 cat >>confdefs.h <<_ACEOF
24532 #define HAVE_GAS_SECTION_EXCLUDE `if test $gcc_cv_as_section_has_e = yes; then echo 1; else echo 0; fi`
24533 _ACEOF
24536 esac
24538 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for filds and fists mnemonics" >&5
24539 $as_echo_n "checking assembler for filds and fists mnemonics... " >&6; }
24540 if test "${gcc_cv_as_ix86_filds+set}" = set; then :
24541 $as_echo_n "(cached) " >&6
24542 else
24543 gcc_cv_as_ix86_filds=no
24544 if test x$gcc_cv_as != x; then
24545 $as_echo 'filds mem; fists mem' > conftest.s
24546 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
24547 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
24548 (eval $ac_try) 2>&5
24549 ac_status=$?
24550 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24551 test $ac_status = 0; }; }
24552 then
24553 gcc_cv_as_ix86_filds=yes
24554 else
24555 echo "configure: failed program was" >&5
24556 cat conftest.s >&5
24558 rm -f conftest.o conftest.s
24561 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_ix86_filds" >&5
24562 $as_echo "$gcc_cv_as_ix86_filds" >&6; }
24563 if test $gcc_cv_as_ix86_filds = yes; then
24565 $as_echo "#define HAVE_AS_IX86_FILDS 1" >>confdefs.h
24569 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for fildq and fistpq mnemonics" >&5
24570 $as_echo_n "checking assembler for fildq and fistpq mnemonics... " >&6; }
24571 if test "${gcc_cv_as_ix86_fildq+set}" = set; then :
24572 $as_echo_n "(cached) " >&6
24573 else
24574 gcc_cv_as_ix86_fildq=no
24575 if test x$gcc_cv_as != x; then
24576 $as_echo 'fildq mem; fistpq mem' > conftest.s
24577 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
24578 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
24579 (eval $ac_try) 2>&5
24580 ac_status=$?
24581 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24582 test $ac_status = 0; }; }
24583 then
24584 gcc_cv_as_ix86_fildq=yes
24585 else
24586 echo "configure: failed program was" >&5
24587 cat conftest.s >&5
24589 rm -f conftest.o conftest.s
24592 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_ix86_fildq" >&5
24593 $as_echo "$gcc_cv_as_ix86_fildq" >&6; }
24594 if test $gcc_cv_as_ix86_fildq = yes; then
24596 $as_echo "#define HAVE_AS_IX86_FILDQ 1" >>confdefs.h
24600 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for cmov syntax" >&5
24601 $as_echo_n "checking assembler for cmov syntax... " >&6; }
24602 if test "${gcc_cv_as_ix86_cmov_sun_syntax+set}" = set; then :
24603 $as_echo_n "(cached) " >&6
24604 else
24605 gcc_cv_as_ix86_cmov_sun_syntax=no
24606 if test x$gcc_cv_as != x; then
24607 $as_echo 'cmovl.l %edx, %eax' > conftest.s
24608 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
24609 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
24610 (eval $ac_try) 2>&5
24611 ac_status=$?
24612 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24613 test $ac_status = 0; }; }
24614 then
24615 gcc_cv_as_ix86_cmov_sun_syntax=yes
24616 else
24617 echo "configure: failed program was" >&5
24618 cat conftest.s >&5
24620 rm -f conftest.o conftest.s
24623 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_ix86_cmov_sun_syntax" >&5
24624 $as_echo "$gcc_cv_as_ix86_cmov_sun_syntax" >&6; }
24625 if test $gcc_cv_as_ix86_cmov_sun_syntax = yes; then
24627 $as_echo "#define HAVE_AS_IX86_CMOV_SUN_SYNTAX 1" >>confdefs.h
24631 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for ffreep mnemonic" >&5
24632 $as_echo_n "checking assembler for ffreep mnemonic... " >&6; }
24633 if test "${gcc_cv_as_ix86_ffreep+set}" = set; then :
24634 $as_echo_n "(cached) " >&6
24635 else
24636 gcc_cv_as_ix86_ffreep=no
24637 if test x$gcc_cv_as != x; then
24638 $as_echo 'ffreep %st(1)' > conftest.s
24639 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
24640 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
24641 (eval $ac_try) 2>&5
24642 ac_status=$?
24643 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24644 test $ac_status = 0; }; }
24645 then
24646 gcc_cv_as_ix86_ffreep=yes
24647 else
24648 echo "configure: failed program was" >&5
24649 cat conftest.s >&5
24651 rm -f conftest.o conftest.s
24654 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_ix86_ffreep" >&5
24655 $as_echo "$gcc_cv_as_ix86_ffreep" >&6; }
24656 if test $gcc_cv_as_ix86_ffreep = yes; then
24658 $as_echo "#define HAVE_AS_IX86_FFREEP 1" >>confdefs.h
24662 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .quad directive" >&5
24663 $as_echo_n "checking assembler for .quad directive... " >&6; }
24664 if test "${gcc_cv_as_ix86_quad+set}" = set; then :
24665 $as_echo_n "(cached) " >&6
24666 else
24667 gcc_cv_as_ix86_quad=no
24668 if test x$gcc_cv_as != x; then
24669 $as_echo '.quad 0' > conftest.s
24670 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
24671 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
24672 (eval $ac_try) 2>&5
24673 ac_status=$?
24674 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24675 test $ac_status = 0; }; }
24676 then
24677 gcc_cv_as_ix86_quad=yes
24678 else
24679 echo "configure: failed program was" >&5
24680 cat conftest.s >&5
24682 rm -f conftest.o conftest.s
24685 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_ix86_quad" >&5
24686 $as_echo "$gcc_cv_as_ix86_quad" >&6; }
24687 if test $gcc_cv_as_ix86_quad = yes; then
24689 $as_echo "#define HAVE_AS_IX86_QUAD 1" >>confdefs.h
24693 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for sahf mnemonic" >&5
24694 $as_echo_n "checking assembler for sahf mnemonic... " >&6; }
24695 if test "${gcc_cv_as_ix86_sahf+set}" = set; then :
24696 $as_echo_n "(cached) " >&6
24697 else
24698 gcc_cv_as_ix86_sahf=no
24699 if test x$gcc_cv_as != x; then
24700 $as_echo '.code64
24701 sahf' > conftest.s
24702 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
24703 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
24704 (eval $ac_try) 2>&5
24705 ac_status=$?
24706 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24707 test $ac_status = 0; }; }
24708 then
24709 gcc_cv_as_ix86_sahf=yes
24710 else
24711 echo "configure: failed program was" >&5
24712 cat conftest.s >&5
24714 rm -f conftest.o conftest.s
24717 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_ix86_sahf" >&5
24718 $as_echo "$gcc_cv_as_ix86_sahf" >&6; }
24719 if test $gcc_cv_as_ix86_sahf = yes; then
24721 $as_echo "#define HAVE_AS_IX86_SAHF 1" >>confdefs.h
24725 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for hle prefixes" >&5
24726 $as_echo_n "checking assembler for hle prefixes... " >&6; }
24727 if test "${gcc_cv_as_ix86_hle+set}" = set; then :
24728 $as_echo_n "(cached) " >&6
24729 else
24730 gcc_cv_as_ix86_hle=no
24731 if test x$gcc_cv_as != x; then
24732 $as_echo 'lock xacquire cmpxchg %esi, (%ecx)' > conftest.s
24733 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
24734 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
24735 (eval $ac_try) 2>&5
24736 ac_status=$?
24737 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24738 test $ac_status = 0; }; }
24739 then
24740 gcc_cv_as_ix86_hle=yes
24741 else
24742 echo "configure: failed program was" >&5
24743 cat conftest.s >&5
24745 rm -f conftest.o conftest.s
24748 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_ix86_hle" >&5
24749 $as_echo "$gcc_cv_as_ix86_hle" >&6; }
24750 if test $gcc_cv_as_ix86_hle = yes; then
24752 $as_echo "#define HAVE_AS_IX86_HLE 1" >>confdefs.h
24756 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for swap suffix" >&5
24757 $as_echo_n "checking assembler for swap suffix... " >&6; }
24758 if test "${gcc_cv_as_ix86_swap+set}" = set; then :
24759 $as_echo_n "(cached) " >&6
24760 else
24761 gcc_cv_as_ix86_swap=no
24762 if test x$gcc_cv_as != x; then
24763 $as_echo 'movl.s %esp, %ebp' > conftest.s
24764 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
24765 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
24766 (eval $ac_try) 2>&5
24767 ac_status=$?
24768 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24769 test $ac_status = 0; }; }
24770 then
24771 gcc_cv_as_ix86_swap=yes
24772 else
24773 echo "configure: failed program was" >&5
24774 cat conftest.s >&5
24776 rm -f conftest.o conftest.s
24779 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_ix86_swap" >&5
24780 $as_echo "$gcc_cv_as_ix86_swap" >&6; }
24781 if test $gcc_cv_as_ix86_swap = yes; then
24783 $as_echo "#define HAVE_AS_IX86_SWAP 1" >>confdefs.h
24787 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for different section symbol subtraction" >&5
24788 $as_echo_n "checking assembler for different section symbol subtraction... " >&6; }
24789 if test "${gcc_cv_as_ix86_diff_sect_delta+set}" = set; then :
24790 $as_echo_n "(cached) " >&6
24791 else
24792 gcc_cv_as_ix86_diff_sect_delta=no
24793 if test x$gcc_cv_as != x; then
24794 $as_echo '.section .rodata
24795 .L1:
24796 .long .L2-.L1
24797 .long .L3-.L1
24798 .text
24799 .L3: nop
24800 .L2: nop' > conftest.s
24801 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
24802 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
24803 (eval $ac_try) 2>&5
24804 ac_status=$?
24805 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24806 test $ac_status = 0; }; }
24807 then
24808 gcc_cv_as_ix86_diff_sect_delta=yes
24809 else
24810 echo "configure: failed program was" >&5
24811 cat conftest.s >&5
24813 rm -f conftest.o conftest.s
24816 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_ix86_diff_sect_delta" >&5
24817 $as_echo "$gcc_cv_as_ix86_diff_sect_delta" >&6; }
24818 if test $gcc_cv_as_ix86_diff_sect_delta = yes; then
24820 $as_echo "#define HAVE_AS_IX86_DIFF_SECT_DELTA 1" >>confdefs.h
24824 # These two are used unconditionally by i386.[ch]; it is to be defined
24825 # to 1 if the feature is present, 0 otherwise.
24826 as_ix86_gotoff_in_data_opt=
24827 if test x$gas = xyes; then
24828 as_ix86_gotoff_in_data_opt="--32"
24830 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for GOTOFF in data" >&5
24831 $as_echo_n "checking assembler for GOTOFF in data... " >&6; }
24832 if test "${gcc_cv_as_ix86_gotoff_in_data+set}" = set; then :
24833 $as_echo_n "(cached) " >&6
24834 else
24835 gcc_cv_as_ix86_gotoff_in_data=no
24836 if test $in_tree_gas = yes; then
24837 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 11 \) \* 1000 + 0`
24838 then gcc_cv_as_ix86_gotoff_in_data=yes
24840 elif test x$gcc_cv_as != x; then
24841 $as_echo ' .text
24842 .L0:
24844 .data
24845 .long .L0@GOTOFF' > conftest.s
24846 if { ac_try='$gcc_cv_as $gcc_cv_as_flags $as_ix86_gotoff_in_data_opt -o conftest.o conftest.s >&5'
24847 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
24848 (eval $ac_try) 2>&5
24849 ac_status=$?
24850 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24851 test $ac_status = 0; }; }
24852 then
24853 gcc_cv_as_ix86_gotoff_in_data=yes
24854 else
24855 echo "configure: failed program was" >&5
24856 cat conftest.s >&5
24858 rm -f conftest.o conftest.s
24861 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_ix86_gotoff_in_data" >&5
24862 $as_echo "$gcc_cv_as_ix86_gotoff_in_data" >&6; }
24865 cat >>confdefs.h <<_ACEOF
24866 #define HAVE_AS_GOTOFF_IN_DATA `if test $gcc_cv_as_ix86_gotoff_in_data = yes; then echo 1; else echo 0; fi`
24867 _ACEOF
24870 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for rep and lock prefix" >&5
24871 $as_echo_n "checking assembler for rep and lock prefix... " >&6; }
24872 if test "${gcc_cv_as_ix86_rep_lock_prefix+set}" = set; then :
24873 $as_echo_n "(cached) " >&6
24874 else
24875 gcc_cv_as_ix86_rep_lock_prefix=no
24876 if test x$gcc_cv_as != x; then
24877 $as_echo 'rep movsl
24878 rep ret
24879 rep nop
24880 rep bsf %ecx, %eax
24881 rep bsr %ecx, %eax
24882 lock addl %edi, (%eax,%esi)
24883 lock orl $0, (%esp)' > conftest.s
24884 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
24885 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
24886 (eval $ac_try) 2>&5
24887 ac_status=$?
24888 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24889 test $ac_status = 0; }; }
24890 then
24891 gcc_cv_as_ix86_rep_lock_prefix=yes
24892 else
24893 echo "configure: failed program was" >&5
24894 cat conftest.s >&5
24896 rm -f conftest.o conftest.s
24899 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_ix86_rep_lock_prefix" >&5
24900 $as_echo "$gcc_cv_as_ix86_rep_lock_prefix" >&6; }
24901 if test $gcc_cv_as_ix86_rep_lock_prefix = yes; then
24903 $as_echo "#define HAVE_AS_IX86_REP_LOCK_PREFIX 1" >>confdefs.h
24907 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for ud2 mnemonic" >&5
24908 $as_echo_n "checking assembler for ud2 mnemonic... " >&6; }
24909 if test "${gcc_cv_as_ix86_ud2+set}" = set; then :
24910 $as_echo_n "(cached) " >&6
24911 else
24912 gcc_cv_as_ix86_ud2=no
24913 if test x$gcc_cv_as != x; then
24914 $as_echo 'ud2' > conftest.s
24915 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
24916 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
24917 (eval $ac_try) 2>&5
24918 ac_status=$?
24919 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24920 test $ac_status = 0; }; }
24921 then
24922 gcc_cv_as_ix86_ud2=yes
24923 else
24924 echo "configure: failed program was" >&5
24925 cat conftest.s >&5
24927 rm -f conftest.o conftest.s
24930 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_ix86_ud2" >&5
24931 $as_echo "$gcc_cv_as_ix86_ud2" >&6; }
24932 if test $gcc_cv_as_ix86_ud2 = yes; then
24934 $as_echo "#define HAVE_AS_IX86_UD2 1" >>confdefs.h
24938 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for R_386_TLS_GD_PLT reloc" >&5
24939 $as_echo_n "checking assembler for R_386_TLS_GD_PLT reloc... " >&6; }
24940 if test "${gcc_cv_as_ix86_tlsgdplt+set}" = set; then :
24941 $as_echo_n "(cached) " >&6
24942 else
24943 gcc_cv_as_ix86_tlsgdplt=no
24944 if test x$gcc_cv_as != x; then
24945 $as_echo 'call tls_gd@tlsgdplt' > conftest.s
24946 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
24947 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
24948 (eval $ac_try) 2>&5
24949 ac_status=$?
24950 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24951 test $ac_status = 0; }; }
24952 then
24953 if test x$gcc_cv_ld != x \
24954 && $gcc_cv_ld -o conftest conftest.o -G > /dev/null 2>&1; then
24955 gcc_cv_as_ix86_tlsgdplt=yes
24957 rm -f conftest
24958 else
24959 echo "configure: failed program was" >&5
24960 cat conftest.s >&5
24962 rm -f conftest.o conftest.s
24965 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_ix86_tlsgdplt" >&5
24966 $as_echo "$gcc_cv_as_ix86_tlsgdplt" >&6; }
24967 if test $gcc_cv_as_ix86_tlsgdplt = yes; then
24969 $as_echo "#define HAVE_AS_IX86_TLSGDPLT 1" >>confdefs.h
24973 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for R_386_TLS_LDM_PLT reloc" >&5
24974 $as_echo_n "checking assembler for R_386_TLS_LDM_PLT reloc... " >&6; }
24975 if test "${gcc_cv_as_ix86_tlsldmplt+set}" = set; then :
24976 $as_echo_n "(cached) " >&6
24977 else
24978 gcc_cv_as_ix86_tlsldmplt=no
24979 if test x$gcc_cv_as != x; then
24980 $as_echo 'tls_ld:
24981 call tls_ld@tlsldmplt' > conftest.s
24982 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
24983 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
24984 (eval $ac_try) 2>&5
24985 ac_status=$?
24986 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24987 test $ac_status = 0; }; }
24988 then
24989 if test x$gcc_cv_ld != x \
24990 && $gcc_cv_ld -o conftest conftest.o -G > /dev/null 2>&1; then
24991 gcc_cv_as_ix86_tlsldmplt=yes
24993 rm -f conftest
24994 else
24995 echo "configure: failed program was" >&5
24996 cat conftest.s >&5
24998 rm -f conftest.o conftest.s
25001 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_ix86_tlsldmplt" >&5
25002 $as_echo "$gcc_cv_as_ix86_tlsldmplt" >&6; }
25003 if test $gcc_cv_as_ix86_tlsldmplt = yes; then
25005 $as_echo "#define HAVE_AS_IX86_TLSLDMPLT 1" >>confdefs.h
25011 ia64*-*-*)
25012 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for ltoffx and ldxmov relocs" >&5
25013 $as_echo_n "checking assembler for ltoffx and ldxmov relocs... " >&6; }
25014 if test "${gcc_cv_as_ia64_ltoffx_ldxmov_relocs+set}" = set; then :
25015 $as_echo_n "(cached) " >&6
25016 else
25017 gcc_cv_as_ia64_ltoffx_ldxmov_relocs=no
25018 if test $in_tree_gas = yes; then
25019 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 14 \) \* 1000 + 0`
25020 then gcc_cv_as_ia64_ltoffx_ldxmov_relocs=yes
25022 elif test x$gcc_cv_as != x; then
25023 $as_echo ' .text
25024 addl r15 = @ltoffx(x#), gp
25026 ld8.mov r16 = [r15], x#' > conftest.s
25027 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
25028 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
25029 (eval $ac_try) 2>&5
25030 ac_status=$?
25031 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25032 test $ac_status = 0; }; }
25033 then
25034 gcc_cv_as_ia64_ltoffx_ldxmov_relocs=yes
25035 else
25036 echo "configure: failed program was" >&5
25037 cat conftest.s >&5
25039 rm -f conftest.o conftest.s
25042 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_ia64_ltoffx_ldxmov_relocs" >&5
25043 $as_echo "$gcc_cv_as_ia64_ltoffx_ldxmov_relocs" >&6; }
25044 if test $gcc_cv_as_ia64_ltoffx_ldxmov_relocs = yes; then
25046 $as_echo "#define HAVE_AS_LTOFFX_LDXMOV_RELOCS 1" >>confdefs.h
25052 powerpc*-*-*)
25053 case $target in
25054 *-*-aix*) conftest_s=' .machine "pwr5"
25055 .csect .text[PR]
25056 mfcr 3,128';;
25057 *-*-darwin*)
25058 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .machine directive support" >&5
25059 $as_echo_n "checking assembler for .machine directive support... " >&6; }
25060 if test "${gcc_cv_as_machine_directive+set}" = set; then :
25061 $as_echo_n "(cached) " >&6
25062 else
25063 gcc_cv_as_machine_directive=no
25064 if test x$gcc_cv_as != x; then
25065 $as_echo ' .machine ppc7400' > conftest.s
25066 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
25067 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
25068 (eval $ac_try) 2>&5
25069 ac_status=$?
25070 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25071 test $ac_status = 0; }; }
25072 then
25073 gcc_cv_as_machine_directive=yes
25074 else
25075 echo "configure: failed program was" >&5
25076 cat conftest.s >&5
25078 rm -f conftest.o conftest.s
25081 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_machine_directive" >&5
25082 $as_echo "$gcc_cv_as_machine_directive" >&6; }
25084 if test x$gcc_cv_as_machine_directive != xyes; then
25085 echo "*** This target requires an assembler supporting \".machine\"" >&2
25086 echo you can get it from: ftp://gcc.gnu.org/pub/gcc/infrastructure/cctools-528.5.dmg >&2
25087 test x$build = x$target && exit 1
25089 conftest_s=' .text
25090 mfcr r3,128';;
25091 *) conftest_s=' .machine power4
25092 .text
25093 mfcr 3,128';;
25094 esac
25096 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for mfcr field support" >&5
25097 $as_echo_n "checking assembler for mfcr field support... " >&6; }
25098 if test "${gcc_cv_as_powerpc_mfcrf+set}" = set; then :
25099 $as_echo_n "(cached) " >&6
25100 else
25101 gcc_cv_as_powerpc_mfcrf=no
25102 if test $in_tree_gas = yes; then
25103 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 14 \) \* 1000 + 0`
25104 then gcc_cv_as_powerpc_mfcrf=yes
25106 elif test x$gcc_cv_as != x; then
25107 $as_echo "$conftest_s" > conftest.s
25108 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
25109 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
25110 (eval $ac_try) 2>&5
25111 ac_status=$?
25112 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25113 test $ac_status = 0; }; }
25114 then
25115 gcc_cv_as_powerpc_mfcrf=yes
25116 else
25117 echo "configure: failed program was" >&5
25118 cat conftest.s >&5
25120 rm -f conftest.o conftest.s
25123 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_powerpc_mfcrf" >&5
25124 $as_echo "$gcc_cv_as_powerpc_mfcrf" >&6; }
25125 if test $gcc_cv_as_powerpc_mfcrf = yes; then
25127 $as_echo "#define HAVE_AS_MFCRF 1" >>confdefs.h
25131 case $target in
25132 *-*-aix*) conftest_s=' .machine "pwr5"
25133 .csect .text[PR]
25134 popcntb 3,3';;
25135 *) conftest_s=' .machine power5
25136 .text
25137 popcntb 3,3';;
25138 esac
25140 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for popcntb support" >&5
25141 $as_echo_n "checking assembler for popcntb support... " >&6; }
25142 if test "${gcc_cv_as_powerpc_popcntb+set}" = set; then :
25143 $as_echo_n "(cached) " >&6
25144 else
25145 gcc_cv_as_powerpc_popcntb=no
25146 if test $in_tree_gas = yes; then
25147 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 17 \) \* 1000 + 0`
25148 then gcc_cv_as_powerpc_popcntb=yes
25150 elif test x$gcc_cv_as != x; then
25151 $as_echo "$conftest_s" > conftest.s
25152 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
25153 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
25154 (eval $ac_try) 2>&5
25155 ac_status=$?
25156 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25157 test $ac_status = 0; }; }
25158 then
25159 gcc_cv_as_powerpc_popcntb=yes
25160 else
25161 echo "configure: failed program was" >&5
25162 cat conftest.s >&5
25164 rm -f conftest.o conftest.s
25167 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_powerpc_popcntb" >&5
25168 $as_echo "$gcc_cv_as_powerpc_popcntb" >&6; }
25169 if test $gcc_cv_as_powerpc_popcntb = yes; then
25171 $as_echo "#define HAVE_AS_POPCNTB 1" >>confdefs.h
25175 case $target in
25176 *-*-aix*) conftest_s=' .machine "pwr5x"
25177 .csect .text[PR]
25178 frin 1,1';;
25179 *) conftest_s=' .machine power5
25180 .text
25181 frin 1,1';;
25182 esac
25184 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for fp round support" >&5
25185 $as_echo_n "checking assembler for fp round support... " >&6; }
25186 if test "${gcc_cv_as_powerpc_fprnd+set}" = set; then :
25187 $as_echo_n "(cached) " >&6
25188 else
25189 gcc_cv_as_powerpc_fprnd=no
25190 if test $in_tree_gas = yes; then
25191 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 17 \) \* 1000 + 0`
25192 then gcc_cv_as_powerpc_fprnd=yes
25194 elif test x$gcc_cv_as != x; then
25195 $as_echo "$conftest_s" > conftest.s
25196 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
25197 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
25198 (eval $ac_try) 2>&5
25199 ac_status=$?
25200 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25201 test $ac_status = 0; }; }
25202 then
25203 gcc_cv_as_powerpc_fprnd=yes
25204 else
25205 echo "configure: failed program was" >&5
25206 cat conftest.s >&5
25208 rm -f conftest.o conftest.s
25211 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_powerpc_fprnd" >&5
25212 $as_echo "$gcc_cv_as_powerpc_fprnd" >&6; }
25213 if test $gcc_cv_as_powerpc_fprnd = yes; then
25215 $as_echo "#define HAVE_AS_FPRND 1" >>confdefs.h
25219 case $target in
25220 *-*-aix*) conftest_s=' .machine "pwr6"
25221 .csect .text[PR]
25222 mffgpr 1,3';;
25223 *) conftest_s=' .machine power6
25224 .text
25225 mffgpr 1,3';;
25226 esac
25228 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for move fp gpr support" >&5
25229 $as_echo_n "checking assembler for move fp gpr support... " >&6; }
25230 if test "${gcc_cv_as_powerpc_mfpgpr+set}" = set; then :
25231 $as_echo_n "(cached) " >&6
25232 else
25233 gcc_cv_as_powerpc_mfpgpr=no
25234 if test $in_tree_gas = yes; then
25235 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 19 \) \* 1000 + 2`
25236 then gcc_cv_as_powerpc_mfpgpr=yes
25238 elif test x$gcc_cv_as != x; then
25239 $as_echo "$conftest_s" > conftest.s
25240 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
25241 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
25242 (eval $ac_try) 2>&5
25243 ac_status=$?
25244 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25245 test $ac_status = 0; }; }
25246 then
25247 gcc_cv_as_powerpc_mfpgpr=yes
25248 else
25249 echo "configure: failed program was" >&5
25250 cat conftest.s >&5
25252 rm -f conftest.o conftest.s
25255 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_powerpc_mfpgpr" >&5
25256 $as_echo "$gcc_cv_as_powerpc_mfpgpr" >&6; }
25257 if test $gcc_cv_as_powerpc_mfpgpr = yes; then
25259 $as_echo "#define HAVE_AS_MFPGPR 1" >>confdefs.h
25263 case $target in
25264 *-*-aix*) conftest_s=' .csect .text[PR]
25265 LCF..0:
25266 addis 11,30,_GLOBAL_OFFSET_TABLE_-LCF..0@ha';;
25267 *-*-darwin*)
25268 conftest_s=' .text
25269 LCF0:
25270 addis r11,r30,_GLOBAL_OFFSET_TABLE_-LCF0@ha';;
25271 *) conftest_s=' .text
25272 .LCF0:
25273 addis 11,30,_GLOBAL_OFFSET_TABLE_-.LCF0@ha';;
25274 esac
25276 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for rel16 relocs" >&5
25277 $as_echo_n "checking assembler for rel16 relocs... " >&6; }
25278 if test "${gcc_cv_as_powerpc_rel16+set}" = set; then :
25279 $as_echo_n "(cached) " >&6
25280 else
25281 gcc_cv_as_powerpc_rel16=no
25282 if test $in_tree_gas = yes; then
25283 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 17 \) \* 1000 + 0`
25284 then gcc_cv_as_powerpc_rel16=yes
25286 elif test x$gcc_cv_as != x; then
25287 $as_echo "$conftest_s" > conftest.s
25288 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -a32 -o conftest.o conftest.s >&5'
25289 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
25290 (eval $ac_try) 2>&5
25291 ac_status=$?
25292 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25293 test $ac_status = 0; }; }
25294 then
25295 gcc_cv_as_powerpc_rel16=yes
25296 else
25297 echo "configure: failed program was" >&5
25298 cat conftest.s >&5
25300 rm -f conftest.o conftest.s
25303 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_powerpc_rel16" >&5
25304 $as_echo "$gcc_cv_as_powerpc_rel16" >&6; }
25305 if test $gcc_cv_as_powerpc_rel16 = yes; then
25307 $as_echo "#define HAVE_AS_REL16 1" >>confdefs.h
25311 case $target in
25312 *-*-aix*) conftest_s=' .machine "pwr6"
25313 .csect .text[PR]
25314 cmpb 3,4,5';;
25315 *) conftest_s=' .machine power6
25316 .text
25317 cmpb 3,4,5';;
25318 esac
25320 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for compare bytes support" >&5
25321 $as_echo_n "checking assembler for compare bytes support... " >&6; }
25322 if test "${gcc_cv_as_powerpc_cmpb+set}" = set; then :
25323 $as_echo_n "(cached) " >&6
25324 else
25325 gcc_cv_as_powerpc_cmpb=no
25326 if test $in_tree_gas = yes; then
25327 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 19 \) \* 1000 + 2`
25328 then gcc_cv_as_powerpc_cmpb=yes
25330 elif test x$gcc_cv_as != x; then
25331 $as_echo "$conftest_s" > conftest.s
25332 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -a32 -o conftest.o conftest.s >&5'
25333 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
25334 (eval $ac_try) 2>&5
25335 ac_status=$?
25336 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25337 test $ac_status = 0; }; }
25338 then
25339 gcc_cv_as_powerpc_cmpb=yes
25340 else
25341 echo "configure: failed program was" >&5
25342 cat conftest.s >&5
25344 rm -f conftest.o conftest.s
25347 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_powerpc_cmpb" >&5
25348 $as_echo "$gcc_cv_as_powerpc_cmpb" >&6; }
25349 if test $gcc_cv_as_powerpc_cmpb = yes; then
25351 $as_echo "#define HAVE_AS_CMPB 1" >>confdefs.h
25355 case $target in
25356 *-*-aix*) conftest_s=' .machine "pwr6"
25357 .csect .text[PR]
25358 dadd 1,2,3';;
25359 *) conftest_s=' .machine power6
25360 .text
25361 dadd 1,2,3';;
25362 esac
25364 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for decimal float support" >&5
25365 $as_echo_n "checking assembler for decimal float support... " >&6; }
25366 if test "${gcc_cv_as_powerpc_dfp+set}" = set; then :
25367 $as_echo_n "(cached) " >&6
25368 else
25369 gcc_cv_as_powerpc_dfp=no
25370 if test $in_tree_gas = yes; then
25371 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 19 \) \* 1000 + 2`
25372 then gcc_cv_as_powerpc_dfp=yes
25374 elif test x$gcc_cv_as != x; then
25375 $as_echo "$conftest_s" > conftest.s
25376 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -a32 -o conftest.o conftest.s >&5'
25377 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
25378 (eval $ac_try) 2>&5
25379 ac_status=$?
25380 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25381 test $ac_status = 0; }; }
25382 then
25383 gcc_cv_as_powerpc_dfp=yes
25384 else
25385 echo "configure: failed program was" >&5
25386 cat conftest.s >&5
25388 rm -f conftest.o conftest.s
25391 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_powerpc_dfp" >&5
25392 $as_echo "$gcc_cv_as_powerpc_dfp" >&6; }
25393 if test $gcc_cv_as_powerpc_dfp = yes; then
25395 $as_echo "#define HAVE_AS_DFP 1" >>confdefs.h
25399 case $target in
25400 *-*-aix*) conftest_s=' .machine "pwr7"
25401 .csect .text[PR]
25402 lxvd2x 1,2,3';;
25403 *) conftest_s=' .machine power7
25404 .text
25405 lxvd2x 1,2,3';;
25406 esac
25408 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for vector-scalar support" >&5
25409 $as_echo_n "checking assembler for vector-scalar support... " >&6; }
25410 if test "${gcc_cv_as_powerpc_vsx+set}" = set; then :
25411 $as_echo_n "(cached) " >&6
25412 else
25413 gcc_cv_as_powerpc_vsx=no
25414 if test $in_tree_gas = yes; then
25415 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 19 \) \* 1000 + 2`
25416 then gcc_cv_as_powerpc_vsx=yes
25418 elif test x$gcc_cv_as != x; then
25419 $as_echo "$conftest_s" > conftest.s
25420 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -a32 -o conftest.o conftest.s >&5'
25421 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
25422 (eval $ac_try) 2>&5
25423 ac_status=$?
25424 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25425 test $ac_status = 0; }; }
25426 then
25427 gcc_cv_as_powerpc_vsx=yes
25428 else
25429 echo "configure: failed program was" >&5
25430 cat conftest.s >&5
25432 rm -f conftest.o conftest.s
25435 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_powerpc_vsx" >&5
25436 $as_echo "$gcc_cv_as_powerpc_vsx" >&6; }
25437 if test $gcc_cv_as_powerpc_vsx = yes; then
25439 $as_echo "#define HAVE_AS_VSX 1" >>confdefs.h
25443 case $target in
25444 *-*-aix*) conftest_s=' .machine "pwr7"
25445 .csect .text[PR]
25446 popcntd 3,3';;
25447 *) conftest_s=' .machine power7
25448 .text
25449 popcntd 3,3';;
25450 esac
25452 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for popcntd support" >&5
25453 $as_echo_n "checking assembler for popcntd support... " >&6; }
25454 if test "${gcc_cv_as_powerpc_popcntd+set}" = set; then :
25455 $as_echo_n "(cached) " >&6
25456 else
25457 gcc_cv_as_powerpc_popcntd=no
25458 if test $in_tree_gas = yes; then
25459 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 19 \) \* 1000 + 2`
25460 then gcc_cv_as_powerpc_popcntd=yes
25462 elif test x$gcc_cv_as != x; then
25463 $as_echo "$conftest_s" > conftest.s
25464 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -a32 -o conftest.o conftest.s >&5'
25465 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
25466 (eval $ac_try) 2>&5
25467 ac_status=$?
25468 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25469 test $ac_status = 0; }; }
25470 then
25471 gcc_cv_as_powerpc_popcntd=yes
25472 else
25473 echo "configure: failed program was" >&5
25474 cat conftest.s >&5
25476 rm -f conftest.o conftest.s
25479 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_powerpc_popcntd" >&5
25480 $as_echo "$gcc_cv_as_powerpc_popcntd" >&6; }
25481 if test $gcc_cv_as_powerpc_popcntd = yes; then
25483 $as_echo "#define HAVE_AS_POPCNTD 1" >>confdefs.h
25487 case $target in
25488 *-*-aix*) conftest_s=' .machine "pwr8"
25489 .csect .text[PR]';;
25490 *) conftest_s=' .machine power8
25491 .text';;
25492 esac
25494 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for power8 support" >&5
25495 $as_echo_n "checking assembler for power8 support... " >&6; }
25496 if test "${gcc_cv_as_powerpc_power8+set}" = set; then :
25497 $as_echo_n "(cached) " >&6
25498 else
25499 gcc_cv_as_powerpc_power8=no
25500 if test $in_tree_gas = yes; then
25501 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 19 \) \* 1000 + 2`
25502 then gcc_cv_as_powerpc_power8=yes
25504 elif test x$gcc_cv_as != x; then
25505 $as_echo "$conftest_s" > conftest.s
25506 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -a32 -o conftest.o conftest.s >&5'
25507 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
25508 (eval $ac_try) 2>&5
25509 ac_status=$?
25510 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25511 test $ac_status = 0; }; }
25512 then
25513 gcc_cv_as_powerpc_power8=yes
25514 else
25515 echo "configure: failed program was" >&5
25516 cat conftest.s >&5
25518 rm -f conftest.o conftest.s
25521 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_powerpc_power8" >&5
25522 $as_echo "$gcc_cv_as_powerpc_power8" >&6; }
25523 if test $gcc_cv_as_powerpc_power8 = yes; then
25525 $as_echo "#define HAVE_AS_POWER8 1" >>confdefs.h
25529 case $target in
25530 *-*-aix*) conftest_s=' .csect .text[PR]
25531 lwsync';;
25532 *) conftest_s=' .text
25533 lwsync';;
25534 esac
25536 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for lwsync support" >&5
25537 $as_echo_n "checking assembler for lwsync support... " >&6; }
25538 if test "${gcc_cv_as_powerpc_lwsync+set}" = set; then :
25539 $as_echo_n "(cached) " >&6
25540 else
25541 gcc_cv_as_powerpc_lwsync=no
25542 if test $in_tree_gas = yes; then
25543 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 19 \) \* 1000 + 2`
25544 then gcc_cv_as_powerpc_lwsync=yes
25546 elif test x$gcc_cv_as != x; then
25547 $as_echo "$conftest_s" > conftest.s
25548 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -a32 -o conftest.o conftest.s >&5'
25549 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
25550 (eval $ac_try) 2>&5
25551 ac_status=$?
25552 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25553 test $ac_status = 0; }; }
25554 then
25555 gcc_cv_as_powerpc_lwsync=yes
25556 else
25557 echo "configure: failed program was" >&5
25558 cat conftest.s >&5
25560 rm -f conftest.o conftest.s
25563 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_powerpc_lwsync" >&5
25564 $as_echo "$gcc_cv_as_powerpc_lwsync" >&6; }
25565 if test $gcc_cv_as_powerpc_lwsync = yes; then
25567 $as_echo "#define HAVE_AS_LWSYNC 1" >>confdefs.h
25571 case $target in
25572 *-*-aix*) conftest_s=' .machine "476"
25573 .csect .text[PR]
25574 dci 0';;
25575 *) conftest_s=' .machine "476"
25576 .text
25577 dci 0';;
25578 esac
25580 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for data cache invalidate support" >&5
25581 $as_echo_n "checking assembler for data cache invalidate support... " >&6; }
25582 if test "${gcc_cv_as_powerpc_dci+set}" = set; then :
25583 $as_echo_n "(cached) " >&6
25584 else
25585 gcc_cv_as_powerpc_dci=no
25586 if test $in_tree_gas = yes; then
25587 if test $gcc_cv_gas_vers -ge `expr \( \( 9 \* 1000 \) + 99 \) \* 1000 + 0`
25588 then gcc_cv_as_powerpc_dci=yes
25590 elif test x$gcc_cv_as != x; then
25591 $as_echo "$conftest_s" > conftest.s
25592 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -a32 -o conftest.o conftest.s >&5'
25593 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
25594 (eval $ac_try) 2>&5
25595 ac_status=$?
25596 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25597 test $ac_status = 0; }; }
25598 then
25599 gcc_cv_as_powerpc_dci=yes
25600 else
25601 echo "configure: failed program was" >&5
25602 cat conftest.s >&5
25604 rm -f conftest.o conftest.s
25607 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_powerpc_dci" >&5
25608 $as_echo "$gcc_cv_as_powerpc_dci" >&6; }
25609 if test $gcc_cv_as_powerpc_dci = yes; then
25611 $as_echo "#define HAVE_AS_DCI 1" >>confdefs.h
25615 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .gnu_attribute support" >&5
25616 $as_echo_n "checking assembler for .gnu_attribute support... " >&6; }
25617 if test "${gcc_cv_as_powerpc_gnu_attribute+set}" = set; then :
25618 $as_echo_n "(cached) " >&6
25619 else
25620 gcc_cv_as_powerpc_gnu_attribute=no
25621 if test $in_tree_gas = yes; then
25622 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 18 \) \* 1000 + 0`
25623 then gcc_cv_as_powerpc_gnu_attribute=yes
25625 elif test x$gcc_cv_as != x; then
25626 $as_echo '.gnu_attribute 4,1' > conftest.s
25627 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
25628 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
25629 (eval $ac_try) 2>&5
25630 ac_status=$?
25631 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25632 test $ac_status = 0; }; }
25633 then
25634 gcc_cv_as_powerpc_gnu_attribute=yes
25635 else
25636 echo "configure: failed program was" >&5
25637 cat conftest.s >&5
25639 rm -f conftest.o conftest.s
25642 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_powerpc_gnu_attribute" >&5
25643 $as_echo "$gcc_cv_as_powerpc_gnu_attribute" >&6; }
25644 if test $gcc_cv_as_powerpc_gnu_attribute = yes; then
25646 $as_echo "#define HAVE_AS_GNU_ATTRIBUTE 1" >>confdefs.h
25650 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for tls marker support" >&5
25651 $as_echo_n "checking assembler for tls marker support... " >&6; }
25652 if test "${gcc_cv_as_powerpc_tls_markers+set}" = set; then :
25653 $as_echo_n "(cached) " >&6
25654 else
25655 gcc_cv_as_powerpc_tls_markers=no
25656 if test $in_tree_gas = yes; then
25657 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 20 \) \* 1000 + 0`
25658 then gcc_cv_as_powerpc_tls_markers=yes
25660 elif test x$gcc_cv_as != x; then
25661 $as_echo ' bl __tls_get_addr(x@tlsgd)' > conftest.s
25662 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
25663 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
25664 (eval $ac_try) 2>&5
25665 ac_status=$?
25666 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25667 test $ac_status = 0; }; }
25668 then
25669 gcc_cv_as_powerpc_tls_markers=yes
25670 else
25671 echo "configure: failed program was" >&5
25672 cat conftest.s >&5
25674 rm -f conftest.o conftest.s
25677 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_powerpc_tls_markers" >&5
25678 $as_echo "$gcc_cv_as_powerpc_tls_markers" >&6; }
25679 if test $gcc_cv_as_powerpc_tls_markers = yes; then
25681 $as_echo "#define HAVE_AS_TLS_MARKERS 1" >>confdefs.h
25685 case $target in
25686 *-*-aix*)
25687 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .ref support" >&5
25688 $as_echo_n "checking assembler for .ref support... " >&6; }
25689 if test "${gcc_cv_as_aix_ref+set}" = set; then :
25690 $as_echo_n "(cached) " >&6
25691 else
25692 gcc_cv_as_aix_ref=no
25693 if test $in_tree_gas = yes; then
25694 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 21 \) \* 1000 + 0`
25695 then gcc_cv_as_aix_ref=yes
25697 elif test x$gcc_cv_as != x; then
25698 $as_echo ' .csect stuff[rw]
25699 stuff:
25700 .long 1
25701 .extern sym
25702 .ref sym
25703 ' > conftest.s
25704 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
25705 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
25706 (eval $ac_try) 2>&5
25707 ac_status=$?
25708 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25709 test $ac_status = 0; }; }
25710 then
25711 gcc_cv_as_aix_ref=yes
25712 else
25713 echo "configure: failed program was" >&5
25714 cat conftest.s >&5
25716 rm -f conftest.o conftest.s
25719 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_aix_ref" >&5
25720 $as_echo "$gcc_cv_as_aix_ref" >&6; }
25721 if test $gcc_cv_as_aix_ref = yes; then
25723 $as_echo "#define HAVE_AS_REF 1" >>confdefs.h
25727 esac
25730 mips*-*-*)
25731 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for explicit relocation support" >&5
25732 $as_echo_n "checking assembler for explicit relocation support... " >&6; }
25733 if test "${gcc_cv_as_mips_explicit_relocs+set}" = set; then :
25734 $as_echo_n "(cached) " >&6
25735 else
25736 gcc_cv_as_mips_explicit_relocs=no
25737 if test $in_tree_gas = yes; then
25738 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 14 \) \* 1000 + 0`
25739 then gcc_cv_as_mips_explicit_relocs=yes
25741 elif test x$gcc_cv_as != x; then
25742 $as_echo ' lw $4,%gp_rel(foo)($4)' > conftest.s
25743 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
25744 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
25745 (eval $ac_try) 2>&5
25746 ac_status=$?
25747 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25748 test $ac_status = 0; }; }
25749 then
25750 gcc_cv_as_mips_explicit_relocs=yes
25751 else
25752 echo "configure: failed program was" >&5
25753 cat conftest.s >&5
25755 rm -f conftest.o conftest.s
25758 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_mips_explicit_relocs" >&5
25759 $as_echo "$gcc_cv_as_mips_explicit_relocs" >&6; }
25760 if test $gcc_cv_as_mips_explicit_relocs = yes; then
25761 if test x$target_cpu_default = x
25762 then target_cpu_default=MASK_EXPLICIT_RELOCS
25763 else target_cpu_default="($target_cpu_default)|MASK_EXPLICIT_RELOCS"
25766 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for -mno-shared support" >&5
25767 $as_echo_n "checking assembler for -mno-shared support... " >&6; }
25768 if test "${gcc_cv_as_mips_no_shared+set}" = set; then :
25769 $as_echo_n "(cached) " >&6
25770 else
25771 gcc_cv_as_mips_no_shared=no
25772 if test $in_tree_gas = yes; then
25773 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 16 \) \* 1000 + 0`
25774 then gcc_cv_as_mips_no_shared=yes
25776 elif test x$gcc_cv_as != x; then
25777 $as_echo 'nop' > conftest.s
25778 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -mno-shared -o conftest.o conftest.s >&5'
25779 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
25780 (eval $ac_try) 2>&5
25781 ac_status=$?
25782 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25783 test $ac_status = 0; }; }
25784 then
25785 gcc_cv_as_mips_no_shared=yes
25786 else
25787 echo "configure: failed program was" >&5
25788 cat conftest.s >&5
25790 rm -f conftest.o conftest.s
25793 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_mips_no_shared" >&5
25794 $as_echo "$gcc_cv_as_mips_no_shared" >&6; }
25795 if test $gcc_cv_as_mips_no_shared = yes; then
25797 $as_echo "#define HAVE_AS_NO_SHARED 1" >>confdefs.h
25801 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .gnu_attribute support" >&5
25802 $as_echo_n "checking assembler for .gnu_attribute support... " >&6; }
25803 if test "${gcc_cv_as_mips_gnu_attribute+set}" = set; then :
25804 $as_echo_n "(cached) " >&6
25805 else
25806 gcc_cv_as_mips_gnu_attribute=no
25807 if test $in_tree_gas = yes; then
25808 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 18 \) \* 1000 + 0`
25809 then gcc_cv_as_mips_gnu_attribute=yes
25811 elif test x$gcc_cv_as != x; then
25812 $as_echo '.gnu_attribute 4,1' > conftest.s
25813 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
25814 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
25815 (eval $ac_try) 2>&5
25816 ac_status=$?
25817 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25818 test $ac_status = 0; }; }
25819 then
25820 gcc_cv_as_mips_gnu_attribute=yes
25821 else
25822 echo "configure: failed program was" >&5
25823 cat conftest.s >&5
25825 rm -f conftest.o conftest.s
25828 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_mips_gnu_attribute" >&5
25829 $as_echo "$gcc_cv_as_mips_gnu_attribute" >&6; }
25830 if test $gcc_cv_as_mips_gnu_attribute = yes; then
25832 $as_echo "#define HAVE_AS_GNU_ATTRIBUTE 1" >>confdefs.h
25836 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .dtprelword support" >&5
25837 $as_echo_n "checking assembler for .dtprelword support... " >&6; }
25838 if test "${gcc_cv_as_mips_dtprelword+set}" = set; then :
25839 $as_echo_n "(cached) " >&6
25840 else
25841 gcc_cv_as_mips_dtprelword=no
25842 if test $in_tree_gas = yes; then
25843 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 18 \) \* 1000 + 0`
25844 then gcc_cv_as_mips_dtprelword=yes
25846 elif test x$gcc_cv_as != x; then
25847 $as_echo '.section .tdata,"awT",@progbits
25849 .word 2
25850 .text
25851 .dtprelword x+0x8000' > conftest.s
25852 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
25853 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
25854 (eval $ac_try) 2>&5
25855 ac_status=$?
25856 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25857 test $ac_status = 0; }; }
25858 then
25859 gcc_cv_as_mips_dtprelword=yes
25860 else
25861 echo "configure: failed program was" >&5
25862 cat conftest.s >&5
25864 rm -f conftest.o conftest.s
25867 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_mips_dtprelword" >&5
25868 $as_echo "$gcc_cv_as_mips_dtprelword" >&6; }
25869 if test $gcc_cv_as_mips_dtprelword = yes; then
25871 $as_echo "#define HAVE_AS_DTPRELWORD 1" >>confdefs.h
25875 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for DSPR1 mult with four accumulators support" >&5
25876 $as_echo_n "checking assembler for DSPR1 mult with four accumulators support... " >&6; }
25877 if test "${gcc_cv_as_mips_dspr1_mult+set}" = set; then :
25878 $as_echo_n "(cached) " >&6
25879 else
25880 gcc_cv_as_mips_dspr1_mult=no
25881 if test x$gcc_cv_as != x; then
25882 $as_echo ' .set mips32r2
25883 .set nodspr2
25884 .set dsp
25885 madd $ac3,$4,$5
25886 maddu $ac3,$4,$5
25887 msub $ac3,$4,$5
25888 msubu $ac3,$4,$5
25889 mult $ac3,$4,$5
25890 multu $ac3,$4,$5' > conftest.s
25891 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
25892 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
25893 (eval $ac_try) 2>&5
25894 ac_status=$?
25895 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25896 test $ac_status = 0; }; }
25897 then
25898 gcc_cv_as_mips_dspr1_mult=yes
25899 else
25900 echo "configure: failed program was" >&5
25901 cat conftest.s >&5
25903 rm -f conftest.o conftest.s
25906 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_mips_dspr1_mult" >&5
25907 $as_echo "$gcc_cv_as_mips_dspr1_mult" >&6; }
25908 if test $gcc_cv_as_mips_dspr1_mult = yes; then
25910 $as_echo "#define HAVE_AS_DSPR1_MULT 1" >>confdefs.h
25914 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler and linker for explicit JALR relocation" >&5
25915 $as_echo_n "checking assembler and linker for explicit JALR relocation... " >&6; }
25916 gcc_cv_as_ld_jalr_reloc=no
25917 if test $gcc_cv_as_mips_explicit_relocs = yes; then
25918 if test $in_tree_ld = yes ; then
25919 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 \
25920 && test $in_tree_ld_is_elf = yes; then
25921 gcc_cv_as_ld_jalr_reloc=yes
25923 elif test x$gcc_cv_as != x -a x$gcc_cv_ld != x -a x$gcc_cv_objdump != x; then
25924 echo ' .ent x' > conftest.s
25925 echo 'x: ld $2,%got_disp(y)($3)' >> conftest.s
25926 echo ' ld $25,%call16(y)($28)' >> conftest.s
25927 echo ' .reloc 1f,R_MIPS_JALR,y' >> conftest.s
25928 echo '1: jalr $25' >> conftest.s
25929 echo ' .reloc 1f,R_MIPS_JALR,x' >> conftest.s
25930 echo '1: jalr $25' >> conftest.s
25931 echo ' .end x' >> conftest.s
25932 if $gcc_cv_as -o conftest.o conftest.s >/dev/null 2>&5 \
25933 && $gcc_cv_ld -shared -o conftest.so conftest.o >/dev/null 2>&5; then
25934 if $gcc_cv_objdump -d conftest.so | grep jalr >/dev/null 2>&1 \
25935 && $gcc_cv_objdump -d conftest.so | grep "bal.*<x>" >/dev/null 2>&1; then
25936 gcc_cv_as_ld_jalr_reloc=yes
25939 rm -f conftest.*
25942 if test $gcc_cv_as_ld_jalr_reloc = yes; then
25943 if test x$target_cpu_default = x; then
25944 target_cpu_default=MASK_RELAX_PIC_CALLS
25945 else
25946 target_cpu_default="($target_cpu_default)|MASK_RELAX_PIC_CALLS"
25949 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_ld_jalr_reloc" >&5
25950 $as_echo "$gcc_cv_as_ld_jalr_reloc" >&6; }
25952 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker for .eh_frame personality relaxation" >&5
25953 $as_echo_n "checking linker for .eh_frame personality relaxation... " >&6; }
25954 if test "${gcc_cv_ld_mips_personality_relaxation+set}" = set; then :
25955 $as_echo_n "(cached) " >&6
25956 else
25957 gcc_cv_ld_mips_personality_relaxation=no
25958 if test $in_tree_ld = yes ; then
25959 if test "$gcc_cv_gld_major_version" -eq 2 \
25960 -a "$gcc_cv_gld_minor_version" -ge 21 \
25961 -o "$gcc_cv_gld_major_version" -gt 2; then
25962 gcc_cv_ld_mips_personality_relaxation=yes
25964 elif test x$gcc_cv_as != x \
25965 -a x$gcc_cv_ld != x \
25966 -a x$gcc_cv_readelf != x ; then
25967 cat > conftest.s <<EOF
25968 .cfi_startproc
25969 .cfi_personality 0x80,indirect_ptr
25970 .ent test
25971 test:
25973 .end test
25974 .cfi_endproc
25976 .section .data,"aw",@progbits
25977 indirect_ptr:
25978 .dc.a personality
25980 if $gcc_cv_as -KPIC -o conftest.o conftest.s > /dev/null 2>&1 \
25981 && $gcc_cv_ld -o conftest conftest.o -shared > /dev/null 2>&1; then
25982 if $gcc_cv_readelf -d conftest 2>&1 \
25983 | grep TEXTREL > /dev/null 2>&1; then
25985 elif $gcc_cv_readelf --relocs conftest 2>&1 \
25986 | grep 'R_MIPS_REL32 *$' > /dev/null 2>&1; then
25988 else
25989 gcc_cv_ld_mips_personality_relaxation=yes
25993 rm -f conftest.s conftest.o conftest
25995 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_mips_personality_relaxation" >&5
25996 $as_echo "$gcc_cv_ld_mips_personality_relaxation" >&6; }
25997 if test x$gcc_cv_ld_mips_personality_relaxation = xyes; then
25999 $as_echo "#define HAVE_LD_PERSONALITY_RELAXATION 1" >>confdefs.h
26003 esac
26005 # Mips and HP-UX need the GNU assembler.
26006 # Linux on IA64 might be able to use the Intel assembler.
26008 case "$target" in
26009 mips*-*-* | *-*-hpux* )
26010 if test x$gas_flag = xyes \
26011 || test x"$host" != x"$build" \
26012 || test ! -x "$gcc_cv_as" \
26013 || "$gcc_cv_as" -v < /dev/null 2>&1 | grep GNU > /dev/null; then
26015 else
26016 echo "*** This configuration requires the GNU assembler" >&2
26017 exit 1
26020 esac
26022 # ??? Not all targets support dwarf2 debug_line, even within a version
26023 # of gas. Moreover, we need to emit a valid instruction to trigger any
26024 # info to the output file. So, as supported targets are added to gas 2.11,
26025 # add some instruction here to (also) show we expect this might work.
26026 # ??? Once 2.11 is released, probably need to add first known working
26027 # version to the per-target configury.
26028 case "$cpu_type" in
26029 alpha | arm | avr | bfin | cris | i386 | m32c | m68k | microblaze | mips \
26030 | pa | rs6000 | score | sparc | spu | tilegx | tilepro | xstormy16 | xtensa)
26031 insn="nop"
26033 ia64 | s390)
26034 insn="nop 0"
26036 mmix)
26037 insn="swym 0"
26039 esac
26040 if test x"$insn" != x; then
26041 conftest_s="\
26042 .file 1 \"conftest.s\"
26043 .loc 1 3 0
26044 $insn"
26045 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for dwarf2 debug_line support" >&5
26046 $as_echo_n "checking assembler for dwarf2 debug_line support... " >&6; }
26047 if test "${gcc_cv_as_dwarf2_debug_line+set}" = set; then :
26048 $as_echo_n "(cached) " >&6
26049 else
26050 gcc_cv_as_dwarf2_debug_line=no
26051 if test $in_tree_gas = yes; then
26052 if test $in_tree_gas_is_elf = yes \
26053 && test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 11 \) \* 1000 + 0`
26054 then gcc_cv_as_dwarf2_debug_line=yes
26056 elif test x$gcc_cv_as != x; then
26057 $as_echo "$conftest_s" > conftest.s
26058 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
26059 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
26060 (eval $ac_try) 2>&5
26061 ac_status=$?
26062 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
26063 test $ac_status = 0; }; }
26064 then
26065 if test x$gcc_cv_objdump != x \
26066 && $gcc_cv_objdump -h conftest.o 2> /dev/null \
26067 | grep debug_line > /dev/null 2>&1; then
26068 gcc_cv_as_dwarf2_debug_line=yes
26070 else
26071 echo "configure: failed program was" >&5
26072 cat conftest.s >&5
26074 rm -f conftest.o conftest.s
26077 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_dwarf2_debug_line" >&5
26078 $as_echo "$gcc_cv_as_dwarf2_debug_line" >&6; }
26081 # The .debug_line file table must be in the exact order that
26082 # we specified the files, since these indices are also used
26083 # by DW_AT_decl_file. Approximate this test by testing if
26084 # the assembler bitches if the same index is assigned twice.
26085 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for buggy dwarf2 .file directive" >&5
26086 $as_echo_n "checking assembler for buggy dwarf2 .file directive... " >&6; }
26087 if test "${gcc_cv_as_dwarf2_file_buggy+set}" = set; then :
26088 $as_echo_n "(cached) " >&6
26089 else
26090 gcc_cv_as_dwarf2_file_buggy=no
26091 if test x$gcc_cv_as != x; then
26092 $as_echo ' .file 1 "foo.s"
26093 .file 1 "bar.s"' > conftest.s
26094 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
26095 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
26096 (eval $ac_try) 2>&5
26097 ac_status=$?
26098 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
26099 test $ac_status = 0; }; }
26100 then
26101 gcc_cv_as_dwarf2_file_buggy=yes
26102 else
26103 echo "configure: failed program was" >&5
26104 cat conftest.s >&5
26106 rm -f conftest.o conftest.s
26109 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_dwarf2_file_buggy" >&5
26110 $as_echo "$gcc_cv_as_dwarf2_file_buggy" >&6; }
26113 if test $gcc_cv_as_dwarf2_debug_line = yes \
26114 && test $gcc_cv_as_dwarf2_file_buggy = no; then
26116 $as_echo "#define HAVE_AS_DWARF2_DEBUG_LINE 1" >>confdefs.h
26120 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for --gdwarf2 option" >&5
26121 $as_echo_n "checking assembler for --gdwarf2 option... " >&6; }
26122 if test "${gcc_cv_as_gdwarf2_flag+set}" = set; then :
26123 $as_echo_n "(cached) " >&6
26124 else
26125 gcc_cv_as_gdwarf2_flag=no
26126 if test $in_tree_gas = yes; then
26127 if test $in_tree_gas_is_elf = yes \
26128 && test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 11 \) \* 1000 + 0`
26129 then gcc_cv_as_gdwarf2_flag=yes
26131 elif test x$gcc_cv_as != x; then
26132 $as_echo "$insn" > conftest.s
26133 if { ac_try='$gcc_cv_as $gcc_cv_as_flags --gdwarf2 -o conftest.o conftest.s >&5'
26134 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
26135 (eval $ac_try) 2>&5
26136 ac_status=$?
26137 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
26138 test $ac_status = 0; }; }
26139 then
26140 gcc_cv_as_gdwarf2_flag=yes
26141 else
26142 echo "configure: failed program was" >&5
26143 cat conftest.s >&5
26145 rm -f conftest.o conftest.s
26148 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_gdwarf2_flag" >&5
26149 $as_echo "$gcc_cv_as_gdwarf2_flag" >&6; }
26150 if test $gcc_cv_as_gdwarf2_flag = yes; then
26152 $as_echo "#define HAVE_AS_GDWARF2_DEBUG_FLAG 1" >>confdefs.h
26156 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for --gstabs option" >&5
26157 $as_echo_n "checking assembler for --gstabs option... " >&6; }
26158 if test "${gcc_cv_as_gstabs_flag+set}" = set; then :
26159 $as_echo_n "(cached) " >&6
26160 else
26161 gcc_cv_as_gstabs_flag=no
26162 if test $in_tree_gas = yes; then
26163 if test $in_tree_gas_is_elf = yes \
26164 && test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 11 \) \* 1000 + 0`
26165 then gcc_cv_as_gstabs_flag=yes
26167 elif test x$gcc_cv_as != x; then
26168 $as_echo "$insn" > conftest.s
26169 if { ac_try='$gcc_cv_as $gcc_cv_as_flags --gstabs -o conftest.o conftest.s >&5'
26170 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
26171 (eval $ac_try) 2>&5
26172 ac_status=$?
26173 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
26174 test $ac_status = 0; }; }
26175 then
26176 # The native Solaris 9/Intel assembler doesn't understand --gstabs
26177 # and warns about it, but still exits successfully. So check for
26178 # this.
26179 if { ac_try='$gcc_cv_as --gstabs -o conftest.o conftest.s 2>&1 | grep -i warning > /dev/null'
26180 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
26181 (eval $ac_try) 2>&5
26182 ac_status=$?
26183 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
26184 test $ac_status = 0; }; }
26185 then :
26186 else gcc_cv_as_gstabs_flag=yes
26188 else
26189 echo "configure: failed program was" >&5
26190 cat conftest.s >&5
26192 rm -f conftest.o conftest.s
26195 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_gstabs_flag" >&5
26196 $as_echo "$gcc_cv_as_gstabs_flag" >&6; }
26197 if test $gcc_cv_as_gstabs_flag = yes; then
26199 $as_echo "#define HAVE_AS_GSTABS_DEBUG_FLAG 1" >>confdefs.h
26203 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for --debug-prefix-map option" >&5
26204 $as_echo_n "checking assembler for --debug-prefix-map option... " >&6; }
26205 if test "${gcc_cv_as_debug_prefix_map_flag+set}" = set; then :
26206 $as_echo_n "(cached) " >&6
26207 else
26208 gcc_cv_as_debug_prefix_map_flag=no
26209 if test $in_tree_gas = yes; then
26210 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 18 \) \* 1000 + 0`
26211 then gcc_cv_as_debug_prefix_map_flag=yes
26213 elif test x$gcc_cv_as != x; then
26214 $as_echo "$insn" > conftest.s
26215 if { ac_try='$gcc_cv_as $gcc_cv_as_flags --debug-prefix-map /a=/b -o conftest.o conftest.s >&5'
26216 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
26217 (eval $ac_try) 2>&5
26218 ac_status=$?
26219 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
26220 test $ac_status = 0; }; }
26221 then
26222 gcc_cv_as_debug_prefix_map_flag=yes
26223 else
26224 echo "configure: failed program was" >&5
26225 cat conftest.s >&5
26227 rm -f conftest.o conftest.s
26230 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_debug_prefix_map_flag" >&5
26231 $as_echo "$gcc_cv_as_debug_prefix_map_flag" >&6; }
26232 if test $gcc_cv_as_debug_prefix_map_flag = yes; then
26234 $as_echo "#define HAVE_AS_DEBUG_PREFIX_MAP 1" >>confdefs.h
26239 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .lcomm with alignment" >&5
26240 $as_echo_n "checking assembler for .lcomm with alignment... " >&6; }
26241 if test "${gcc_cv_as_lcomm_with_alignment+set}" = set; then :
26242 $as_echo_n "(cached) " >&6
26243 else
26244 gcc_cv_as_lcomm_with_alignment=no
26245 if test x$gcc_cv_as != x; then
26246 $as_echo '.lcomm bar,4,16' > conftest.s
26247 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
26248 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
26249 (eval $ac_try) 2>&5
26250 ac_status=$?
26251 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
26252 test $ac_status = 0; }; }
26253 then
26254 gcc_cv_as_lcomm_with_alignment=yes
26255 else
26256 echo "configure: failed program was" >&5
26257 cat conftest.s >&5
26259 rm -f conftest.o conftest.s
26262 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_lcomm_with_alignment" >&5
26263 $as_echo "$gcc_cv_as_lcomm_with_alignment" >&6; }
26264 if test $gcc_cv_as_lcomm_with_alignment = yes; then
26266 $as_echo "#define HAVE_GAS_LCOMM_WITH_ALIGNMENT 1" >>confdefs.h
26270 # Check whether --enable-gnu-unique-object was given.
26271 if test "${enable_gnu_unique_object+set}" = set; then :
26272 enableval=$enable_gnu_unique_object; case $enable_gnu_unique_object in
26273 yes | no) ;;
26274 *) as_fn_error "'$enable_gnu_unique_object' is an invalid value for --enable-gnu-unique-object.
26275 Valid choices are 'yes' and 'no'." "$LINENO" 5 ;;
26276 esac
26277 else
26278 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for gnu_unique_object" >&5
26279 $as_echo_n "checking assembler for gnu_unique_object... " >&6; }
26280 if test "${gcc_cv_as_gnu_unique_object+set}" = set; then :
26281 $as_echo_n "(cached) " >&6
26282 else
26283 gcc_cv_as_gnu_unique_object=no
26284 if test $in_tree_gas = yes; then
26285 if test $in_tree_gas_is_elf = yes \
26286 && test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 19 \) \* 1000 + 52`
26287 then gcc_cv_as_gnu_unique_object=yes
26289 elif test x$gcc_cv_as != x; then
26290 $as_echo '.type foo, '$target_type_format_char'gnu_unique_object' > conftest.s
26291 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
26292 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
26293 (eval $ac_try) 2>&5
26294 ac_status=$?
26295 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
26296 test $ac_status = 0; }; }
26297 then
26298 gcc_cv_as_gnu_unique_object=yes
26299 else
26300 echo "configure: failed program was" >&5
26301 cat conftest.s >&5
26303 rm -f conftest.o conftest.s
26306 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_gnu_unique_object" >&5
26307 $as_echo "$gcc_cv_as_gnu_unique_object" >&6; }
26308 if test $gcc_cv_as_gnu_unique_object = yes; then
26309 # We need to unquote above to to use the definition from config.gcc.
26310 # Also check for ld.so support, i.e. glibc 2.11 or higher.
26311 if test x$host = x$build -a x$host = x$target &&
26312 ldd --version 2>/dev/null &&
26313 glibcver=`ldd --version 2>/dev/null | sed 's/.* //;q'`; then
26314 glibcmajor=`expr "$glibcver" : "\([0-9]*\)"`
26315 glibcminor=`expr "$glibcver" : "[2-9]*\.\([0-9]*\)"`
26316 glibcnum=`expr $glibcmajor \* 1000 + $glibcminor`
26317 if test "$glibcnum" -ge 2011 ; then
26318 enable_gnu_unique_object=yes
26324 if test x$enable_gnu_unique_object = xyes; then
26326 $as_echo "#define HAVE_GAS_GNU_UNIQUE_OBJECT 1" >>confdefs.h
26330 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for tolerance to line number 0" >&5
26331 $as_echo_n "checking assembler for tolerance to line number 0... " >&6; }
26332 if test "${gcc_cv_as_line_zero+set}" = set; then :
26333 $as_echo_n "(cached) " >&6
26334 else
26335 gcc_cv_as_line_zero=no
26336 if test $in_tree_gas = yes; then
26337 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 16 \) \* 1000 + 91`
26338 then gcc_cv_as_line_zero=yes
26340 elif test "x$gcc_cv_as" != x; then
26341 { echo '# 1 "test.s" 1'; echo '# 0 "" 2'; } > conftest.s
26342 if { ac_try='$gcc_cv_as -o conftest.o conftest.s >&5 2>conftest.out'
26343 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
26344 (eval $ac_try) 2>&5
26345 ac_status=$?
26346 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
26347 test $ac_status = 0; }; } &&
26348 test "x`cat conftest.out`" = x
26349 then
26350 gcc_cv_as_line_zero=yes
26351 else
26352 echo "configure: failed program was" >&5
26353 cat conftest.s >&5
26354 echo "configure: error output was" >&5
26355 cat conftest.out >&5
26357 rm -f conftest.o conftest.s conftest.out
26360 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_line_zero" >&5
26361 $as_echo "$gcc_cv_as_line_zero" >&6; }
26362 if test "x$gcc_cv_as_line_zero" = xyes; then
26364 $as_echo "#define HAVE_AS_LINE_ZERO 1" >>confdefs.h
26368 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker PT_GNU_EH_FRAME support" >&5
26369 $as_echo_n "checking linker PT_GNU_EH_FRAME support... " >&6; }
26370 gcc_cv_ld_eh_frame_hdr=no
26371 if test $in_tree_ld = yes ; then
26372 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 \
26373 && test $in_tree_ld_is_elf = yes; then
26374 gcc_cv_ld_eh_frame_hdr=yes
26376 elif test x$gcc_cv_ld != x; then
26377 if echo "$ld_ver" | grep GNU > /dev/null; then
26378 # Check if linker supports --eh-frame-hdr option
26379 if $gcc_cv_ld --help 2>/dev/null | grep eh-frame-hdr > /dev/null; then
26380 gcc_cv_ld_eh_frame_hdr=yes
26382 else
26383 case "$target" in
26384 *-*-solaris2*)
26385 # Sun ld has various bugs in .eh_frame_hdr support before version 1.2251.
26386 if test "$ld_vers_major" -gt 1 || test "$ld_vers_minor" -ge 2251; then
26387 gcc_cv_ld_eh_frame_hdr=yes
26390 esac
26394 if test x"$gcc_cv_ld_eh_frame_hdr" = xyes; then
26396 $as_echo "#define HAVE_LD_EH_FRAME_HDR 1" >>confdefs.h
26399 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_eh_frame_hdr" >&5
26400 $as_echo "$gcc_cv_ld_eh_frame_hdr" >&6; }
26402 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker position independent executable support" >&5
26403 $as_echo_n "checking linker position independent executable support... " >&6; }
26404 gcc_cv_ld_pie=no
26405 if test $in_tree_ld = yes ; then
26406 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 \
26407 && test $in_tree_ld_is_elf = yes; then
26408 gcc_cv_ld_pie=yes
26410 elif test x$gcc_cv_ld != x; then
26411 # Check if linker supports -pie option
26412 if $gcc_cv_ld --help 2>/dev/null | grep -- -pie > /dev/null; then
26413 gcc_cv_ld_pie=yes
26416 if test x"$gcc_cv_ld_pie" = xyes; then
26418 $as_echo "#define HAVE_LD_PIE 1" >>confdefs.h
26421 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_pie" >&5
26422 $as_echo "$gcc_cv_ld_pie" >&6; }
26424 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker EH-compatible garbage collection of sections" >&5
26425 $as_echo_n "checking linker EH-compatible garbage collection of sections... " >&6; }
26426 gcc_cv_ld_eh_gc_sections=no
26427 if test $in_tree_ld = yes ; then
26428 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 \
26429 && test $in_tree_ld_is_elf = yes; then
26430 gcc_cv_ld_eh_gc_sections=yes
26432 elif test x$gcc_cv_as != x -a x$gcc_cv_ld != x -a x$gcc_cv_objdump != x ; then
26433 cat > conftest.s <<EOF
26434 .section .text
26435 .globl _start
26436 .type _start, @function
26437 _start:
26438 .long foo
26439 .size _start, .-_start
26440 .section .text.foo,"ax",@progbits
26441 .type foo, @function
26442 foo:
26443 .long 0
26444 .size foo, .-foo
26445 .section .gcc_except_table.foo,"a",@progbits
26446 .L0:
26447 .long 0
26448 .section .eh_frame,"a",@progbits
26449 .long .L0
26451 if $gcc_cv_as -o conftest.o conftest.s > /dev/null 2>&1; then
26452 if $gcc_cv_ld -o conftest conftest.o --entry=_start --gc-sections 2>&1 \
26453 | grep "gc-sections option ignored" > /dev/null; then
26454 gcc_cv_ld_eh_gc_sections=no
26455 elif $gcc_cv_objdump -h conftest 2> /dev/null \
26456 | grep gcc_except_table > /dev/null; then
26457 gcc_cv_ld_eh_gc_sections=yes
26458 # If no COMDAT groups, the compiler will emit .gnu.linkonce.t. sections.
26459 if test x$gcc_cv_as_comdat_group != xyes; then
26460 gcc_cv_ld_eh_gc_sections=no
26461 cat > conftest.s <<EOF
26462 .section .text
26463 .globl _start
26464 .type _start, @function
26465 _start:
26466 .long foo
26467 .size _start, .-_start
26468 .section .gnu.linkonce.t.foo,"ax",@progbits
26469 .type foo, @function
26470 foo:
26471 .long 0
26472 .size foo, .-foo
26473 .section .gcc_except_table.foo,"a",@progbits
26474 .L0:
26475 .long 0
26476 .section .eh_frame,"a",@progbits
26477 .long .L0
26479 if $gcc_cv_as -o conftest.o conftest.s > /dev/null 2>&1; then
26480 if $gcc_cv_ld -o conftest conftest.o --entry=_start --gc-sections 2>&1 \
26481 | grep "gc-sections option ignored" > /dev/null; then
26482 gcc_cv_ld_eh_gc_sections=no
26483 elif $gcc_cv_objdump -h conftest 2> /dev/null \
26484 | grep gcc_except_table > /dev/null; then
26485 gcc_cv_ld_eh_gc_sections=yes
26491 rm -f conftest.s conftest.o conftest
26493 case "$target" in
26494 hppa*-*-linux*)
26495 # ??? This apparently exposes a binutils bug with PC-relative relocations.
26496 gcc_cv_ld_eh_gc_sections=no
26498 esac
26499 if test x$gcc_cv_ld_eh_gc_sections = xyes; then
26501 $as_echo "#define HAVE_LD_EH_GC_SECTIONS 1" >>confdefs.h
26504 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_eh_gc_sections" >&5
26505 $as_echo "$gcc_cv_ld_eh_gc_sections" >&6; }
26507 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker EH garbage collection of sections bug" >&5
26508 $as_echo_n "checking linker EH garbage collection of sections bug... " >&6; }
26509 gcc_cv_ld_eh_gc_sections_bug=no
26510 if test $in_tree_ld = yes ; then
26511 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 \
26512 && test $in_tree_ld_is_elf = yes; then
26513 gcc_cv_ld_eh_gc_sections_bug=yes
26515 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
26516 gcc_cv_ld_eh_gc_sections_bug=yes
26517 cat > conftest.s <<EOF
26518 .section .text
26519 .globl _start
26520 .type _start, @function
26521 _start:
26522 .long foo
26523 .size _start, .-_start
26524 .section .text.startup.foo,"ax",@progbits
26525 .type foo, @function
26526 foo:
26527 .long 0
26528 .size foo, .-foo
26529 .section .gcc_except_table.foo,"a",@progbits
26530 .L0:
26531 .long 0
26532 .section .eh_frame,"a",@progbits
26533 .long .L0
26535 if $gcc_cv_as -o conftest.o conftest.s > /dev/null 2>&1; then
26536 if $gcc_cv_ld -o conftest conftest.o --entry=_start --gc-sections 2>&1 \
26537 | grep "gc-sections option ignored" > /dev/null; then
26539 elif $gcc_cv_objdump -h conftest 2> /dev/null \
26540 | grep gcc_except_table > /dev/null; then
26541 gcc_cv_ld_eh_gc_sections_bug=no
26544 rm -f conftest.s conftest.o conftest
26546 if test x$gcc_cv_ld_eh_gc_sections_bug = xyes; then
26548 $as_echo "#define HAVE_LD_EH_GC_SECTIONS_BUG 1" >>confdefs.h
26551 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_eh_gc_sections_bug" >&5
26552 $as_echo "$gcc_cv_ld_eh_gc_sections_bug" >&6; }
26554 # --------
26555 # UNSORTED
26556 # --------
26558 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker --as-needed support" >&5
26559 $as_echo_n "checking linker --as-needed support... " >&6; }
26560 if test "${gcc_cv_ld_as_needed+set}" = set; then :
26561 $as_echo_n "(cached) " >&6
26562 else
26563 gcc_cv_ld_as_needed=no
26564 if test $in_tree_ld = yes ; then
26565 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 \
26566 && test $in_tree_ld_is_elf = yes; then
26567 gcc_cv_ld_as_needed=yes
26569 elif test x$gcc_cv_ld != x; then
26570 # Check if linker supports --as-needed and --no-as-needed options
26571 if $gcc_cv_ld --help 2>/dev/null | grep as-needed > /dev/null; then
26572 gcc_cv_ld_as_needed=yes
26577 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_as_needed" >&5
26578 $as_echo "$gcc_cv_ld_as_needed" >&6; }
26579 if test x"$gcc_cv_ld_as_needed" = xyes; then
26581 $as_echo "#define HAVE_LD_AS_NEEDED 1" >>confdefs.h
26585 case "$target:$tm_file" in
26586 powerpc64-*-freebsd* | powerpc64*-*-linux* | powerpc*-*-linux*rs6000/biarch64.h*)
26587 case "$target" in
26588 *le-*-linux*)
26589 emul_name="-melf64lppc"
26591 *-*-linux*)
26592 emul_name="-melf64ppc"
26594 *-*-freebsd*)
26595 emul_name="-melf64ppc_fbsd"
26597 esac
26598 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker support for omitting dot symbols" >&5
26599 $as_echo_n "checking linker support for omitting dot symbols... " >&6; }
26600 if test "${gcc_cv_ld_no_dot_syms+set}" = set; then :
26601 $as_echo_n "(cached) " >&6
26602 else
26603 gcc_cv_ld_no_dot_syms=no
26604 if test x"$ld_is_gold" = xyes; then
26605 gcc_cv_ld_no_dot_syms=yes
26606 elif test $in_tree_ld = yes ; then
26607 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
26608 gcc_cv_ld_no_dot_syms=yes
26610 elif test x$gcc_cv_as != x -a x$gcc_cv_ld != x ; then
26611 cat > conftest1.s <<EOF
26612 .text
26613 bl .foo
26615 cat > conftest2.s <<EOF
26616 .section ".opd","aw"
26617 .align 3
26618 .globl foo
26619 .type foo,@function
26620 foo:
26621 .quad .LEfoo,.TOC.@tocbase,0
26622 .text
26623 .LEfoo:
26625 .size foo,.-.LEfoo
26627 if $gcc_cv_as -a64 -o conftest1.o conftest1.s > /dev/null 2>&1 \
26628 && $gcc_cv_as -a64 -o conftest2.o conftest2.s > /dev/null 2>&1 \
26629 && $gcc_cv_ld $emul_name -o conftest conftest1.o conftest2.o > /dev/null 2>&1; then
26630 gcc_cv_ld_no_dot_syms=yes
26632 rm -f conftest conftest1.o conftest2.o conftest1.s conftest2.s
26636 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_no_dot_syms" >&5
26637 $as_echo "$gcc_cv_ld_no_dot_syms" >&6; }
26638 if test x"$gcc_cv_ld_no_dot_syms" = xyes; then
26640 $as_echo "#define HAVE_LD_NO_DOT_SYMS 1" >>confdefs.h
26644 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker large toc support" >&5
26645 $as_echo_n "checking linker large toc support... " >&6; }
26646 if test "${gcc_cv_ld_large_toc+set}" = set; then :
26647 $as_echo_n "(cached) " >&6
26648 else
26649 gcc_cv_ld_large_toc=no
26650 if test x"$ld_is_gold" = xyes; then
26651 gcc_cv_ld_large_toc=yes
26652 elif test $in_tree_ld = yes ; then
26653 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
26654 gcc_cv_ld_large_toc=yes
26656 elif test x$gcc_cv_as != x -a x$gcc_cv_ld != x ; then
26657 cat > conftest.s <<EOF
26658 .section ".tbss","awT",@nobits
26659 .align 3
26660 ie0: .space 8
26661 .global _start
26662 .text
26663 _start:
26664 addis 9,13,ie0@got@tprel@ha
26665 ld 9,ie0@got@tprel@l(9)
26667 if $gcc_cv_as -a64 -o conftest.o conftest.s > /dev/null 2>&1 \
26668 && $gcc_cv_ld $emul_name --no-toc-sort -o conftest conftest.o > /dev/null 2>&1; then
26669 gcc_cv_ld_large_toc=yes
26671 rm -f conftest conftest.o conftest.s
26675 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_large_toc" >&5
26676 $as_echo "$gcc_cv_ld_large_toc" >&6; }
26677 if test x"$gcc_cv_ld_large_toc" = xyes; then
26679 $as_echo "#define HAVE_LD_LARGE_TOC 1" >>confdefs.h
26683 esac
26685 case "$target" in
26686 *-*-aix*)
26687 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker large toc support" >&5
26688 $as_echo_n "checking linker large toc support... " >&6; }
26689 if test "${gcc_cv_ld_large_toc+set}" = set; then :
26690 $as_echo_n "(cached) " >&6
26691 else
26692 gcc_cv_ld_large_toc=no
26693 if test x$gcc_cv_as != x ; then
26694 cat > conftest.s <<EOF
26695 .toc
26696 LC..1:
26697 .tc a[TC],a[RW]
26698 .extern a[RW]
26699 .csect .text[PR]
26700 .largetoctest:
26701 addis 9,LC..1@u(2)
26702 ld 3,LC..1@l(9)
26704 if $gcc_cv_as -a64 -o conftest.o conftest.s > /dev/null 2>&1; then
26705 gcc_cv_ld_large_toc=yes
26707 rm -f conftest conftest.o conftest.s
26711 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_large_toc" >&5
26712 $as_echo "$gcc_cv_ld_large_toc" >&6; }
26713 if test x"$gcc_cv_ld_large_toc" = xyes; then
26715 $as_echo "#define HAVE_LD_LARGE_TOC 1" >>confdefs.h
26719 esac
26721 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker --build-id support" >&5
26722 $as_echo_n "checking linker --build-id support... " >&6; }
26723 if test "${gcc_cv_ld_buildid+set}" = set; then :
26724 $as_echo_n "(cached) " >&6
26725 else
26726 gcc_cv_ld_buildid=no
26727 if test $in_tree_ld = yes ; then
26728 if test "$gcc_cv_gld_major_version" -eq 2 -a \
26729 "$gcc_cv_gld_minor_version" -ge 18 -o \
26730 "$gcc_cv_gld_major_version" -gt 2 \
26731 && test $in_tree_ld_is_elf = yes; then
26732 gcc_cv_ld_buildid=yes
26734 elif test x$gcc_cv_ld != x; then
26735 if $gcc_cv_ld --help 2>/dev/null | grep build-id > /dev/null; then
26736 gcc_cv_ld_buildid=yes
26740 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_buildid" >&5
26741 $as_echo "$gcc_cv_ld_buildid" >&6; }
26742 if test x"$gcc_cv_ld_buildid" = xyes; then
26744 $as_echo "#define HAVE_LD_BUILDID 1" >>confdefs.h
26748 # Check whether --enable-linker-build-id was given.
26749 if test "${enable_linker_build_id+set}" = set; then :
26750 enableval=$enable_linker_build_id;
26751 else
26752 enable_linker_build_id=no
26756 if test x"$enable_linker_build_id" = xyes; then
26757 if test x"$gcc_cv_ld_buildid" = xyes; then
26759 $as_echo "#define ENABLE_LD_BUILDID 1" >>confdefs.h
26761 else
26762 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: --build-id is not supported by your linker; --enable-linker-build-id ignored" >&5
26763 $as_echo "$as_me: WARNING: --build-id is not supported by your linker; --enable-linker-build-id ignored" >&2;}
26767 # In binutils 2.21, GNU ld gained support for new emulations fully
26768 # supporting the Solaris 2 ABI. Detect their presence in the linker used.
26769 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker *_sol2 emulation support" >&5
26770 $as_echo_n "checking linker *_sol2 emulation support... " >&6; }
26771 if test "${gcc_cv_ld_sol2_emulation+set}" = set; then :
26772 $as_echo_n "(cached) " >&6
26773 else
26774 gcc_cv_ld_sol2_emulation=no
26775 if test $in_tree_ld = yes ; then
26776 if test "$gcc_cv_gld_major_version" -eq 2 -a \
26777 "$gcc_cv_gld_minor_version" -ge 21 -o \
26778 "$gcc_cv_gld_major_version" -gt 2 \
26779 && test $in_tree_ld_is_elf = yes; then
26780 gcc_cv_ld_sol2_emulation=yes
26782 elif test x$gcc_cv_ld != x; then
26783 if $gcc_cv_ld -V 2>/dev/null | sed -e '1,/Supported emulations/d;q' | \
26784 grep _sol2 > /dev/null; then
26785 gcc_cv_ld_sol2_emulation=yes
26789 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_sol2_emulation" >&5
26790 $as_echo "$gcc_cv_ld_sol2_emulation" >&6; }
26791 if test x"$gcc_cv_ld_sol2_emulation" = xyes; then
26793 $as_echo "#define HAVE_LD_SOL2_EMULATION 1" >>confdefs.h
26797 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker --sysroot support" >&5
26798 $as_echo_n "checking linker --sysroot support... " >&6; }
26799 if test "${gcc_cv_ld_sysroot+set}" = set; then :
26800 $as_echo_n "(cached) " >&6
26801 else
26802 gcc_cv_ld_sysroot=no
26803 if test $in_tree_ld = yes ; then
26804 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
26805 gcc_cv_ld_sysroot=yes
26807 elif test x$gcc_cv_ld != x; then
26808 if $gcc_cv_ld --help 2>/dev/null | grep sysroot > /dev/null; then
26809 gcc_cv_ld_sysroot=yes
26813 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_sysroot" >&5
26814 $as_echo "$gcc_cv_ld_sysroot" >&6; }
26815 if test x"$gcc_cv_ld_sysroot" = xyes; then
26817 $as_echo "#define HAVE_LD_SYSROOT 1" >>confdefs.h
26821 if test x$with_sysroot = x && test x$host = x$target \
26822 && test "$prefix" != "/usr" && test "x$prefix" != "x$local_prefix" \
26823 && test "$prefix" != "NONE"; then
26825 cat >>confdefs.h <<_ACEOF
26826 #define PREFIX_INCLUDE_DIR "$prefix/include"
26827 _ACEOF
26831 if test x$host != x$target || test "x$TARGET_SYSTEM_ROOT" != x; then
26832 if test "x$with_headers" != x; then
26833 target_header_dir=$with_headers
26834 elif test "x$with_sysroot" = x; then
26835 target_header_dir="${test_exec_prefix}/${target_noncanonical}/sys-include"
26836 elif test "x$with_build_sysroot" != "x"; then
26837 target_header_dir="${with_build_sysroot}${native_system_header_dir}"
26838 elif test "x$with_sysroot" = xyes; then
26839 target_header_dir="${test_exec_prefix}/${target_noncanonical}/sys-root${native_system_header_dir}"
26840 else
26841 target_header_dir="${with_sysroot}${native_system_header_dir}"
26843 else
26844 target_header_dir=${native_system_header_dir}
26847 # Test for stack protector support in target C library.
26848 { $as_echo "$as_me:${as_lineno-$LINENO}: checking __stack_chk_fail in target C library" >&5
26849 $as_echo_n "checking __stack_chk_fail in target C library... " >&6; }
26850 if test "${gcc_cv_libc_provides_ssp+set}" = set; then :
26851 $as_echo_n "(cached) " >&6
26852 else
26853 gcc_cv_libc_provides_ssp=no
26854 case "$target" in
26855 *-*-linux* | *-*-kfreebsd*-gnu | *-*-knetbsd*-gnu)
26856 # glibc 2.4 and later provides __stack_chk_fail and
26857 # either __stack_chk_guard, or TLS access to stack guard canary.
26858 if test -f $target_header_dir/features.h \
26859 && $EGREP '^[ ]*#[ ]*define[ ]+__GNU_LIBRARY__[ ]+([1-9][0-9]|[6-9])' \
26860 $target_header_dir/features.h > /dev/null; then
26861 if $EGREP '^[ ]*#[ ]*define[ ]+__GLIBC__[ ]+([1-9][0-9]|[3-9])' \
26862 $target_header_dir/features.h > /dev/null; then
26863 gcc_cv_libc_provides_ssp=yes
26864 elif $EGREP '^[ ]*#[ ]*define[ ]+__GLIBC__[ ]+2' \
26865 $target_header_dir/features.h > /dev/null \
26866 && $EGREP '^[ ]*#[ ]*define[ ]+__GLIBC_MINOR__[ ]+([1-9][0-9]|[4-9])' \
26867 $target_header_dir/features.h > /dev/null; then
26868 gcc_cv_libc_provides_ssp=yes
26869 elif $EGREP '^[ ]*#[ ]*define[ ]+__UCLIBC__[ ]+1' \
26870 $target_header_dir/features.h > /dev/null && \
26871 test -f $target_header_dir/bits/uClibc_config.h && \
26872 $EGREP '^[ ]*#[ ]*define[ ]+__UCLIBC_HAS_SSP__[ ]+1' \
26873 $target_header_dir/bits/uClibc_config.h > /dev/null; then
26874 gcc_cv_libc_provides_ssp=yes
26876 # all versions of Bionic support stack protector
26877 elif test -f $target_header_dir/sys/cdefs.h \
26878 && $EGREP '^[ ]*#[ ]*define[ ]+__BIONIC__[ ]+1' \
26879 $target_header_dir/sys/cdefs.h > /dev/null; then
26880 gcc_cv_libc_provides_ssp=yes
26883 *-*-gnu*)
26884 # Avoid complicated tests (see
26885 # <http://gcc.gnu.org/ml/gcc/2008-10/msg00130.html>) and for now
26886 # simply assert that glibc does provide this, which is true for all
26887 # realistically usable GNU/Hurd configurations.
26888 gcc_cv_libc_provides_ssp=yes;;
26889 *-*-darwin* | *-*-freebsd*)
26890 ac_fn_c_check_func "$LINENO" "__stack_chk_fail" "ac_cv_func___stack_chk_fail"
26891 if test "x$ac_cv_func___stack_chk_fail" = x""yes; then :
26892 gcc_cv_libc_provides_ssp=yes
26893 else
26894 echo "no __stack_chk_fail on this target"
26898 *) gcc_cv_libc_provides_ssp=no ;;
26899 esac
26901 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_libc_provides_ssp" >&5
26902 $as_echo "$gcc_cv_libc_provides_ssp" >&6; }
26904 if test x$gcc_cv_libc_provides_ssp = xyes; then
26906 $as_echo "#define TARGET_LIBC_PROVIDES_SSP 1" >>confdefs.h
26910 # Test for <sys/sdt.h> on the target.
26912 { $as_echo "$as_me:${as_lineno-$LINENO}: checking sys/sdt.h in the target C library" >&5
26913 $as_echo_n "checking sys/sdt.h in the target C library... " >&6; }
26914 have_sys_sdt_h=no
26915 if test -f $target_header_dir/sys/sdt.h; then
26916 have_sys_sdt_h=yes
26918 $as_echo "#define HAVE_SYS_SDT_H 1" >>confdefs.h
26921 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_sys_sdt_h" >&5
26922 $as_echo "$have_sys_sdt_h" >&6; }
26924 # Check if TFmode long double should be used by default or not.
26925 # Some glibc targets used DFmode long double, but with glibc 2.4
26926 # and later they can use TFmode.
26927 case "$target" in
26928 powerpc*-*-linux* | \
26929 sparc*-*-linux* | \
26930 s390*-*-linux* | \
26931 alpha*-*-linux*)
26933 # Check whether --with-long-double-128 was given.
26934 if test "${with_long_double_128+set}" = set; then :
26935 withval=$with_long_double_128; gcc_cv_target_ldbl128="$with_long_double_128"
26936 else
26937 gcc_cv_target_ldbl128=no
26938 grep '^[ ]*#[ ]*define[ ][ ]*__LONG_DOUBLE_MATH_OPTIONAL' \
26939 $target_header_dir/bits/wordsize.h > /dev/null 2>&1 \
26940 && gcc_cv_target_ldbl128=yes
26945 esac
26946 if test x$gcc_cv_target_ldbl128 = xyes; then
26948 $as_echo "#define TARGET_DEFAULT_LONG_DOUBLE_128 1" >>confdefs.h
26952 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dl_iterate_phdr in target C library" >&5
26953 $as_echo_n "checking dl_iterate_phdr in target C library... " >&6; }
26954 gcc_cv_target_dl_iterate_phdr=unknown
26955 case "$target" in
26956 # Restrict to Solaris 11+. While most of the Solaris 11 linker changes
26957 # were backported to Solaris 10 Update 10, dl_iterate_phdr only lives in
26958 # libdl there, both complicating its use and breaking compatibility
26959 # between Solaris 10 updates.
26960 *-*-solaris2.1[1-9]*)
26961 # <link.h> needs both a dl_iterate_phdr declaration and support for
26962 # compilation with largefile support.
26963 if grep dl_iterate_phdr $target_header_dir/link.h > /dev/null 2>&1 \
26964 && grep 'large file capable' $target_header_dir/link.h > /dev/null 2>&1; then
26965 gcc_cv_target_dl_iterate_phdr=yes
26966 else
26967 gcc_cv_target_dl_iterate_phdr=no
26970 esac
26972 if test x$gcc_cv_target_dl_iterate_phdr = xyes; then
26974 $as_echo "#define TARGET_DL_ITERATE_PHDR 1" >>confdefs.h
26977 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_target_dl_iterate_phdr" >&5
26978 $as_echo "$gcc_cv_target_dl_iterate_phdr" >&6; }
26980 # We no longer support different GC mechanisms. Emit an error if
26981 # the user configures with --with-gc.
26983 # Check whether --with-gc was given.
26984 if test "${with_gc+set}" = set; then :
26985 withval=$with_gc; as_fn_error "Configure option --with-gc is only supported up to GCC 4.7.x" "$LINENO" 5
26989 # Libraries to use on the host. This will normally be set by the top
26990 # level Makefile. Here we simply capture the value for our Makefile.
26991 if test -z "${HOST_LIBS+set}"; then
26992 HOST_LIBS=
26996 # Use the system's zlib library.
26997 zlibdir=-L../zlib
26998 zlibinc="-I\$(srcdir)/../zlib"
27000 # Check whether --with-system-zlib was given.
27001 if test "${with_system_zlib+set}" = set; then :
27002 withval=$with_system_zlib; zlibdir=
27003 zlibinc=
27011 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable maintainer-specific portions of Makefiles" >&5
27012 $as_echo_n "checking whether to enable maintainer-specific portions of Makefiles... " >&6; }
27013 # Check whether --enable-maintainer-mode was given.
27014 if test "${enable_maintainer_mode+set}" = set; then :
27015 enableval=$enable_maintainer_mode; maintainer_mode=$enableval
27016 else
27017 maintainer_mode=no
27021 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $maintainer_mode" >&5
27022 $as_echo "$maintainer_mode" >&6; }
27024 if test "$maintainer_mode" = "yes"; then
27025 MAINT=''
27026 else
27027 MAINT='#'
27030 # --------------
27031 # Language hooks
27032 # --------------
27034 # Make empty files to contain the specs and options for each language.
27035 # Then add #include lines to for a compiler that has specs and/or options.
27037 subdirs=
27038 lang_opt_files=
27039 lang_specs_files=
27040 lang_tree_files=
27041 # These (without "all_") are set in each config-lang.in.
27042 # `language' must be a single word so is spelled singularly.
27043 all_languages=
27044 all_compilers=
27045 all_outputs='Makefile'
27046 # List of language makefile fragments.
27047 all_lang_makefrags=
27048 # Additional files for gengtype
27049 all_gtfiles="$target_gtfiles"
27051 # These are the languages that are set in --enable-languages,
27052 # and are available in the GCC tree.
27053 all_selected_languages=
27055 # Add the language fragments.
27056 # Languages are added via two mechanisms. Some information must be
27057 # recorded in makefile variables, these are defined in config-lang.in.
27058 # We accumulate them and plug them into the main Makefile.
27059 # The other mechanism is a set of hooks for each of the main targets
27060 # like `clean', `install', etc.
27062 language_hooks="Make-hooks"
27064 for lang in ${srcdir}/*/config-lang.in
27066 test "$lang" = "${srcdir}/*/config-lang.in" && continue
27068 lang_alias=`sed -n -e 's,^language=['"'"'"'"]\(.*\)["'"'"'"'].*$,\1,p' -e 's,^language=\([^ ]*\).*$,\1,p' $lang`
27069 if test "x$lang_alias" = x
27070 then
27071 echo "$lang doesn't set \$language." 1>&2
27072 exit 1
27074 subdir="`echo $lang | sed -e 's,^.*/\([^/]*\)/config-lang.in$,\1,'`"
27075 subdirs="$subdirs $subdir"
27077 # $gcc_subdir is where the gcc integration files are to be found
27078 # for a language, both for internal compiler purposes (compiler
27079 # sources implementing front-end to GCC tree converters), and for
27080 # build infrastructure purposes (Make-lang.in, etc.)
27082 # This will be <subdir> (relative to $srcdir) if a line like
27083 # gcc_subdir="<subdir>" or gcc_subdir=<subdir>
27084 # is found in <langdir>/config-lang.in, and will remain <langdir>
27085 # otherwise.
27087 # Except for the language alias (fetched above), the regular
27088 # "config-lang.in" contents are always retrieved from $gcc_subdir,
27089 # so a <langdir>/config-lang.in setting gcc_subdir typically sets
27090 # only this and the language alias.
27092 gcc_subdir=`sed -n -e 's,^gcc_subdir=['"'"'"'"]\(.*\)["'"'"'"'].*$,\1,p' -e 's,^gcc_subdir=\([^ ]*\).*$,\1,p' $lang`
27093 if [ "$gcc_subdir" = "" ]; then
27094 gcc_subdir="$subdir"
27097 case ",$enable_languages," in
27098 *,$lang_alias,*)
27099 all_selected_languages="$all_selected_languages $lang_alias"
27100 if test -f $srcdir/$gcc_subdir/lang-specs.h; then
27101 lang_specs_files="$lang_specs_files $srcdir/$gcc_subdir/lang-specs.h"
27104 esac
27106 language=
27107 boot_language=
27108 compilers=
27109 outputs=
27110 gtfiles=
27111 subdir_requires=
27112 . ${srcdir}/$gcc_subdir/config-lang.in
27113 if test "x$language" = x
27114 then
27115 echo "${srcdir}/$gcc_subdir/config-lang.in doesn't set \$language." 1>&2
27116 exit 1
27119 ok=:
27120 case ",$enable_languages," in
27121 *,$lang_alias,*) ;;
27123 for i in $subdir_requires; do
27124 test -f "${srcdir}/$i/config-lang.in" && continue
27125 ok=false
27126 break
27127 done
27129 esac
27130 $ok || continue
27132 all_lang_makefrags="$all_lang_makefrags \$(srcdir)/$gcc_subdir/Make-lang.in"
27133 if test -f $srcdir/$gcc_subdir/lang.opt; then
27134 lang_opt_files="$lang_opt_files $srcdir/$gcc_subdir/lang.opt"
27135 all_opt_files="$all_opt_files $srcdir/$gcc_subdir/lang.opt"
27137 if test -f $srcdir/$gcc_subdir/$subdir-tree.def; then
27138 lang_tree_files="$lang_tree_files $srcdir/$gcc_subdir/$subdir-tree.def"
27140 all_languages="$all_languages $language"
27141 all_compilers="$all_compilers $compilers"
27142 all_outputs="$all_outputs $outputs"
27143 all_gtfiles="$all_gtfiles [$subdir] $gtfiles"
27144 case ",$enable_languages," in
27145 *,lto,*)
27147 $as_echo "#define ENABLE_LTO 1" >>confdefs.h
27149 enable_lto=yes
27152 *) ;;
27153 esac
27154 done
27156 check_languages=
27157 for language in $all_selected_languages
27159 check_languages="$check_languages check-$language"
27160 done
27162 # We link each language in with a set of hooks, reached indirectly via
27163 # lang.${target}. Only do so for selected languages.
27165 rm -f Make-hooks
27166 touch Make-hooks
27167 target_list="all.cross start.encap rest.encap tags \
27168 install-common install-man install-info install-pdf install-html dvi \
27169 pdf html uninstall info man srcextra srcman srcinfo \
27170 mostlyclean clean distclean maintainer-clean install-plugin"
27172 for t in $target_list
27175 for lang in $all_selected_languages
27177 x="$x $lang.$t"
27178 done
27179 echo "lang.$t: $x" >> Make-hooks
27180 done
27182 # --------
27183 # Option include files
27184 # --------
27186 ${AWK} -f $srcdir/opt-include.awk $all_opt_files > option-includes.mk
27187 option_includes="option-includes.mk"
27190 # --------
27191 # UNSORTED
27192 # --------
27194 # Create .gdbinit.
27196 echo "dir ." > .gdbinit
27197 echo "dir ${srcdir}" >> .gdbinit
27198 if test x$gdb_needs_out_file_path = xyes
27199 then
27200 echo "dir ${srcdir}/config/"`dirname ${out_file}` >> .gdbinit
27202 if test "x$subdirs" != x; then
27203 for s in $subdirs
27205 echo "dir ${srcdir}/$s" >> .gdbinit
27206 done
27208 echo "source ${srcdir}/gdbinit.in" >> .gdbinit
27210 gcc_tooldir='$(libsubdir)/$(libsubdir_to_prefix)$(target_noncanonical)'
27214 # Find a directory in which to install a shared libgcc.
27216 # Check whether --enable-version-specific-runtime-libs was given.
27217 if test "${enable_version_specific_runtime_libs+set}" = set; then :
27218 enableval=$enable_version_specific_runtime_libs;
27222 # Substitute configuration variables
27285 # Echo link setup.
27286 if test x${build} = x${host} ; then
27287 if test x${host} = x${target} ; then
27288 echo "Links are now set up to build a native compiler for ${target}." 1>&2
27289 else
27290 echo "Links are now set up to build a cross-compiler" 1>&2
27291 echo " from ${host} to ${target}." 1>&2
27293 else
27294 if test x${host} = x${target} ; then
27295 echo "Links are now set up to build (on ${build}) a native compiler" 1>&2
27296 echo " for ${target}." 1>&2
27297 else
27298 echo "Links are now set up to build (on ${build}) a cross-compiler" 1>&2
27299 echo " from ${host} to ${target}." 1>&2
27311 if test "x${CLOOGLIBS}" != "x" ; then
27313 $as_echo "#define HAVE_cloog 1" >>confdefs.h
27316 # Check whether isl_schedule_constraints_compute_schedule is available;
27317 # it's new in ISL-0.13.
27318 saved_CFLAGS="$CFLAGS"
27319 CFLAGS="$CFLAGS $ISLINC"
27320 saved_LIBS="$LIBS"
27321 LIBS="$LIBS $CLOOGLIBS $ISLLIBS $GMPLIBS"
27323 { $as_echo "$as_me:${as_lineno-$LINENO}: checking Checking for isl_schedule_constraints_compute_schedule" >&5
27324 $as_echo_n "checking Checking for isl_schedule_constraints_compute_schedule... " >&6; }
27325 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
27326 /* end confdefs.h. */
27327 #include <isl/schedule.h>
27329 main ()
27331 isl_schedule_constraints_compute_schedule (NULL);
27333 return 0;
27335 _ACEOF
27336 if ac_fn_c_try_link "$LINENO"; then :
27337 ac_has_isl_schedule_constraints_compute_schedule=yes
27338 else
27339 ac_has_isl_schedule_constraints_compute_schedule=no
27341 rm -f core conftest.err conftest.$ac_objext \
27342 conftest$ac_exeext conftest.$ac_ext
27343 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_has_isl_schedule_constraints_compute_schedule" >&5
27344 $as_echo "$ac_has_isl_schedule_constraints_compute_schedule" >&6; }
27346 LIBS="$saved_LIBS"
27347 CFLAGS="$saved_CFLAGS"
27349 if test x"$ac_has_isl_schedule_constraints_compute_schedule" = x"yes"; then
27351 $as_echo "#define HAVE_ISL_SCHED_CONSTRAINTS_COMPUTE_SCHEDULE 1" >>confdefs.h
27357 # Check for plugin support
27358 # Check whether --enable-plugin was given.
27359 if test "${enable_plugin+set}" = set; then :
27360 enableval=$enable_plugin; enable_plugin=$enableval
27361 else
27362 enable_plugin=yes; default_plugin=yes
27366 pluginlibs=
27368 case "${host}" in
27369 *-*-darwin*)
27370 if test x$build = x$host; then
27371 export_sym_check="nm${exeext} -g"
27372 elif test x$host = x$target; then
27373 export_sym_check="$gcc_cv_nm -g"
27374 else
27375 export_sym_check=
27379 if test x$build = x$host; then
27380 export_sym_check="objdump${exeext} -T"
27381 elif test x$host = x$target; then
27382 export_sym_check="$gcc_cv_objdump -T"
27383 else
27384 export_sym_check=
27387 esac
27389 if test x"$enable_plugin" = x"yes"; then
27391 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for exported symbols" >&5
27392 $as_echo_n "checking for exported symbols... " >&6; }
27393 if test "x$export_sym_check" != x; then
27394 echo "int main() {return 0;} int foobar() {return 0;}" > conftest.c
27395 ${CC} ${CFLAGS} ${LDFLAGS} conftest.c -o conftest$ac_exeext > /dev/null 2>&1
27396 if $export_sym_check conftest$ac_exeext | grep -q foobar > /dev/null; then
27397 : # No need to use a flag
27398 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
27399 $as_echo "yes" >&6; }
27400 else
27401 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
27402 $as_echo "yes" >&6; }
27403 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -rdynamic" >&5
27404 $as_echo_n "checking for -rdynamic... " >&6; }
27405 ${CC} ${CFLAGS} ${LDFLAGS} -rdynamic conftest.c -o conftest$ac_exeext > /dev/null 2>&1
27406 if $export_sym_check conftest$ac_exeext | grep -q foobar > /dev/null; then
27407 plugin_rdynamic=yes
27408 pluginlibs="-rdynamic"
27409 else
27410 plugin_rdynamic=no
27411 enable_plugin=no
27413 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $plugin_rdynamic" >&5
27414 $as_echo "$plugin_rdynamic" >&6; }
27416 else
27417 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unable to check" >&5
27418 $as_echo "unable to check" >&6; }
27421 # Check -ldl
27422 saved_LIBS="$LIBS"
27423 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing dlopen" >&5
27424 $as_echo_n "checking for library containing dlopen... " >&6; }
27425 if test "${ac_cv_search_dlopen+set}" = set; then :
27426 $as_echo_n "(cached) " >&6
27427 else
27428 ac_func_search_save_LIBS=$LIBS
27429 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
27430 /* end confdefs.h. */
27432 /* Override any GCC internal prototype to avoid an error.
27433 Use char because int might match the return type of a GCC
27434 builtin and then its argument prototype would still apply. */
27435 #ifdef __cplusplus
27436 extern "C"
27437 #endif
27438 char dlopen ();
27440 main ()
27442 return dlopen ();
27444 return 0;
27446 _ACEOF
27447 for ac_lib in '' dl; do
27448 if test -z "$ac_lib"; then
27449 ac_res="none required"
27450 else
27451 ac_res=-l$ac_lib
27452 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
27454 if ac_fn_c_try_link "$LINENO"; then :
27455 ac_cv_search_dlopen=$ac_res
27457 rm -f core conftest.err conftest.$ac_objext \
27458 conftest$ac_exeext
27459 if test "${ac_cv_search_dlopen+set}" = set; then :
27460 break
27462 done
27463 if test "${ac_cv_search_dlopen+set}" = set; then :
27465 else
27466 ac_cv_search_dlopen=no
27468 rm conftest.$ac_ext
27469 LIBS=$ac_func_search_save_LIBS
27471 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_dlopen" >&5
27472 $as_echo "$ac_cv_search_dlopen" >&6; }
27473 ac_res=$ac_cv_search_dlopen
27474 if test "$ac_res" != no; then :
27475 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
27479 if test x"$ac_cv_search_dlopen" = x"-ldl"; then
27480 pluginlibs="$pluginlibs -ldl"
27482 LIBS="$saved_LIBS"
27484 # Check that we can build shared objects with -fPIC -shared
27485 saved_LDFLAGS="$LDFLAGS"
27486 saved_CFLAGS="$CFLAGS"
27487 case "${host}" in
27488 *-*-darwin*)
27489 CFLAGS=`echo $CFLAGS | sed s/-mdynamic-no-pic//g`
27490 CFLAGS="$CFLAGS -fPIC"
27491 LDFLAGS="$LDFLAGS -shared -undefined dynamic_lookup"
27494 CFLAGS="$CFLAGS -fPIC"
27495 LDFLAGS="$LDFLAGS -fPIC -shared"
27497 esac
27498 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -fPIC -shared" >&5
27499 $as_echo_n "checking for -fPIC -shared... " >&6; }
27500 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
27501 /* end confdefs.h. */
27502 extern int X;
27504 main ()
27506 return X == 0;
27508 return 0;
27510 _ACEOF
27511 if ac_fn_c_try_link "$LINENO"; then :
27512 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
27513 $as_echo "yes" >&6; }; have_pic_shared=yes
27514 else
27515 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
27516 $as_echo "no" >&6; }; have_pic_shared=no
27518 rm -f core conftest.err conftest.$ac_objext \
27519 conftest$ac_exeext conftest.$ac_ext
27520 if test x"$have_pic_shared" != x"yes" -o x"$ac_cv_search_dlopen" = x"no"; then
27521 pluginlibs=
27522 enable_plugin=no
27524 LDFLAGS="$saved_LDFLAGS"
27525 CFLAGS="$saved_CFLAGS"
27527 # If plugin support had been requested but not available, fail.
27528 if test x"$enable_plugin" = x"no" ; then
27529 if test x"$default_plugin" != x"yes"; then
27530 as_fn_error "
27531 Building GCC with plugin support requires a host that supports
27532 -fPIC, -shared, -ldl and -rdynamic." "$LINENO" 5
27539 if test x"$enable_plugin" = x"yes"; then
27541 $as_echo "#define ENABLE_PLUGIN 1" >>confdefs.h
27546 # Check whether --enable-libquadmath-support was given.
27547 if test "${enable_libquadmath_support+set}" = set; then :
27548 enableval=$enable_libquadmath_support; ENABLE_LIBQUADMATH_SUPPORT=$enableval
27549 else
27550 ENABLE_LIBQUADMATH_SUPPORT=yes
27553 if test "${ENABLE_LIBQUADMATH_SUPPORT}" != "no" ; then
27555 $as_echo "#define ENABLE_LIBQUADMATH_SUPPORT 1" >>confdefs.h
27560 # Specify what hash style to use by default.
27562 # Check whether --with-linker-hash-style was given.
27563 if test "${with_linker_hash_style+set}" = set; then :
27564 withval=$with_linker_hash_style; case x"$withval" in
27565 xsysv)
27566 LINKER_HASH_STYLE=sysv
27568 xgnu)
27569 LINKER_HASH_STYLE=gnu
27571 xboth)
27572 LINKER_HASH_STYLE=both
27575 as_fn_error "$withval is an invalid option to --with-linker-hash-style" "$LINENO" 5
27577 esac
27578 else
27579 LINKER_HASH_STYLE=''
27582 if test x"${LINKER_HASH_STYLE}" != x; then
27584 cat >>confdefs.h <<_ACEOF
27585 #define LINKER_HASH_STYLE "$LINKER_HASH_STYLE"
27586 _ACEOF
27590 # Configure the subdirectories
27591 # AC_CONFIG_SUBDIRS($subdirs)
27593 # Create the Makefile
27594 # and configure language subdirectories
27595 ac_config_files="$ac_config_files $all_outputs"
27598 ac_config_commands="$ac_config_commands default"
27600 cat >confcache <<\_ACEOF
27601 # This file is a shell script that caches the results of configure
27602 # tests run on this system so they can be shared between configure
27603 # scripts and configure runs, see configure's option --config-cache.
27604 # It is not useful on other systems. If it contains results you don't
27605 # want to keep, you may remove or edit it.
27607 # config.status only pays attention to the cache file if you give it
27608 # the --recheck option to rerun configure.
27610 # `ac_cv_env_foo' variables (set or unset) will be overridden when
27611 # loading this file, other *unset* `ac_cv_foo' will be assigned the
27612 # following values.
27614 _ACEOF
27616 # The following way of writing the cache mishandles newlines in values,
27617 # but we know of no workaround that is simple, portable, and efficient.
27618 # So, we kill variables containing newlines.
27619 # Ultrix sh set writes to stderr and can't be redirected directly,
27620 # and sets the high bit in the cache file unless we assign to the vars.
27622 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
27623 eval ac_val=\$$ac_var
27624 case $ac_val in #(
27625 *${as_nl}*)
27626 case $ac_var in #(
27627 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
27628 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
27629 esac
27630 case $ac_var in #(
27631 _ | IFS | as_nl) ;; #(
27632 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
27633 *) { eval $ac_var=; unset $ac_var;} ;;
27634 esac ;;
27635 esac
27636 done
27638 (set) 2>&1 |
27639 case $as_nl`(ac_space=' '; set) 2>&1` in #(
27640 *${as_nl}ac_space=\ *)
27641 # `set' does not quote correctly, so add quotes: double-quote
27642 # substitution turns \\\\ into \\, and sed turns \\ into \.
27643 sed -n \
27644 "s/'/'\\\\''/g;
27645 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
27646 ;; #(
27648 # `set' quotes correctly as required by POSIX, so do not add quotes.
27649 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
27651 esac |
27652 sort
27654 sed '
27655 /^ac_cv_env_/b end
27656 t clear
27657 :clear
27658 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
27659 t end
27660 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
27661 :end' >>confcache
27662 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
27663 if test -w "$cache_file"; then
27664 test "x$cache_file" != "x/dev/null" &&
27665 { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
27666 $as_echo "$as_me: updating cache $cache_file" >&6;}
27667 cat confcache >$cache_file
27668 else
27669 { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
27670 $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
27673 rm -f confcache
27675 test "x$prefix" = xNONE && prefix=$ac_default_prefix
27676 # Let make expand exec_prefix.
27677 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
27679 DEFS=-DHAVE_CONFIG_H
27681 ac_libobjs=
27682 ac_ltlibobjs=
27683 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
27684 # 1. Remove the extension, and $U if already installed.
27685 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
27686 ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
27687 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
27688 # will be set to the directory where LIBOBJS objects are built.
27689 as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
27690 as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
27691 done
27692 LIBOBJS=$ac_libobjs
27694 LTLIBOBJS=$ac_ltlibobjs
27699 : ${CONFIG_STATUS=./config.status}
27700 ac_write_fail=0
27701 ac_clean_files_save=$ac_clean_files
27702 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
27703 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
27704 $as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
27705 as_write_fail=0
27706 cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
27707 #! $SHELL
27708 # Generated by $as_me.
27709 # Run this file to recreate the current configuration.
27710 # Compiler output produced by configure, useful for debugging
27711 # configure, is in config.log if it exists.
27713 debug=false
27714 ac_cs_recheck=false
27715 ac_cs_silent=false
27717 SHELL=\${CONFIG_SHELL-$SHELL}
27718 export SHELL
27719 _ASEOF
27720 cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
27721 ## -------------------- ##
27722 ## M4sh Initialization. ##
27723 ## -------------------- ##
27725 # Be more Bourne compatible
27726 DUALCASE=1; export DUALCASE # for MKS sh
27727 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
27728 emulate sh
27729 NULLCMD=:
27730 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
27731 # is contrary to our usage. Disable this feature.
27732 alias -g '${1+"$@"}'='"$@"'
27733 setopt NO_GLOB_SUBST
27734 else
27735 case `(set -o) 2>/dev/null` in #(
27736 *posix*) :
27737 set -o posix ;; #(
27738 *) :
27740 esac
27744 as_nl='
27746 export as_nl
27747 # Printing a long string crashes Solaris 7 /usr/bin/printf.
27748 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
27749 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
27750 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
27751 # Prefer a ksh shell builtin over an external printf program on Solaris,
27752 # but without wasting forks for bash or zsh.
27753 if test -z "$BASH_VERSION$ZSH_VERSION" \
27754 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
27755 as_echo='print -r --'
27756 as_echo_n='print -rn --'
27757 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
27758 as_echo='printf %s\n'
27759 as_echo_n='printf %s'
27760 else
27761 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
27762 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
27763 as_echo_n='/usr/ucb/echo -n'
27764 else
27765 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
27766 as_echo_n_body='eval
27767 arg=$1;
27768 case $arg in #(
27769 *"$as_nl"*)
27770 expr "X$arg" : "X\\(.*\\)$as_nl";
27771 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
27772 esac;
27773 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
27775 export as_echo_n_body
27776 as_echo_n='sh -c $as_echo_n_body as_echo'
27778 export as_echo_body
27779 as_echo='sh -c $as_echo_body as_echo'
27782 # The user is always right.
27783 if test "${PATH_SEPARATOR+set}" != set; then
27784 PATH_SEPARATOR=:
27785 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
27786 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
27787 PATH_SEPARATOR=';'
27792 # IFS
27793 # We need space, tab and new line, in precisely that order. Quoting is
27794 # there to prevent editors from complaining about space-tab.
27795 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
27796 # splitting by setting IFS to empty value.)
27797 IFS=" "" $as_nl"
27799 # Find who we are. Look in the path if we contain no directory separator.
27800 case $0 in #((
27801 *[\\/]* ) as_myself=$0 ;;
27802 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
27803 for as_dir in $PATH
27805 IFS=$as_save_IFS
27806 test -z "$as_dir" && as_dir=.
27807 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
27808 done
27809 IFS=$as_save_IFS
27812 esac
27813 # We did not find ourselves, most probably we were run as `sh COMMAND'
27814 # in which case we are not to be found in the path.
27815 if test "x$as_myself" = x; then
27816 as_myself=$0
27818 if test ! -f "$as_myself"; then
27819 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
27820 exit 1
27823 # Unset variables that we do not need and which cause bugs (e.g. in
27824 # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
27825 # suppresses any "Segmentation fault" message there. '((' could
27826 # trigger a bug in pdksh 5.2.14.
27827 for as_var in BASH_ENV ENV MAIL MAILPATH
27828 do eval test x\${$as_var+set} = xset \
27829 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
27830 done
27831 PS1='$ '
27832 PS2='> '
27833 PS4='+ '
27835 # NLS nuisances.
27836 LC_ALL=C
27837 export LC_ALL
27838 LANGUAGE=C
27839 export LANGUAGE
27841 # CDPATH.
27842 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
27845 # as_fn_error ERROR [LINENO LOG_FD]
27846 # ---------------------------------
27847 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
27848 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
27849 # script with status $?, using 1 if that was 0.
27850 as_fn_error ()
27852 as_status=$?; test $as_status -eq 0 && as_status=1
27853 if test "$3"; then
27854 as_lineno=${as_lineno-"$2"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
27855 $as_echo "$as_me:${as_lineno-$LINENO}: error: $1" >&$3
27857 $as_echo "$as_me: error: $1" >&2
27858 as_fn_exit $as_status
27859 } # as_fn_error
27862 # as_fn_set_status STATUS
27863 # -----------------------
27864 # Set $? to STATUS, without forking.
27865 as_fn_set_status ()
27867 return $1
27868 } # as_fn_set_status
27870 # as_fn_exit STATUS
27871 # -----------------
27872 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
27873 as_fn_exit ()
27875 set +e
27876 as_fn_set_status $1
27877 exit $1
27878 } # as_fn_exit
27880 # as_fn_unset VAR
27881 # ---------------
27882 # Portably unset VAR.
27883 as_fn_unset ()
27885 { eval $1=; unset $1;}
27887 as_unset=as_fn_unset
27888 # as_fn_append VAR VALUE
27889 # ----------------------
27890 # Append the text in VALUE to the end of the definition contained in VAR. Take
27891 # advantage of any shell optimizations that allow amortized linear growth over
27892 # repeated appends, instead of the typical quadratic growth present in naive
27893 # implementations.
27894 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
27895 eval 'as_fn_append ()
27897 eval $1+=\$2
27899 else
27900 as_fn_append ()
27902 eval $1=\$$1\$2
27904 fi # as_fn_append
27906 # as_fn_arith ARG...
27907 # ------------------
27908 # Perform arithmetic evaluation on the ARGs, and store the result in the
27909 # global $as_val. Take advantage of shells that can avoid forks. The arguments
27910 # must be portable across $(()) and expr.
27911 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
27912 eval 'as_fn_arith ()
27914 as_val=$(( $* ))
27916 else
27917 as_fn_arith ()
27919 as_val=`expr "$@" || test $? -eq 1`
27921 fi # as_fn_arith
27924 if expr a : '\(a\)' >/dev/null 2>&1 &&
27925 test "X`expr 00001 : '.*\(...\)'`" = X001; then
27926 as_expr=expr
27927 else
27928 as_expr=false
27931 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
27932 as_basename=basename
27933 else
27934 as_basename=false
27937 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
27938 as_dirname=dirname
27939 else
27940 as_dirname=false
27943 as_me=`$as_basename -- "$0" ||
27944 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
27945 X"$0" : 'X\(//\)$' \| \
27946 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
27947 $as_echo X/"$0" |
27948 sed '/^.*\/\([^/][^/]*\)\/*$/{
27949 s//\1/
27952 /^X\/\(\/\/\)$/{
27953 s//\1/
27956 /^X\/\(\/\).*/{
27957 s//\1/
27960 s/.*/./; q'`
27962 # Avoid depending upon Character Ranges.
27963 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
27964 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
27965 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
27966 as_cr_digits='0123456789'
27967 as_cr_alnum=$as_cr_Letters$as_cr_digits
27969 ECHO_C= ECHO_N= ECHO_T=
27970 case `echo -n x` in #(((((
27971 -n*)
27972 case `echo 'xy\c'` in
27973 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
27974 xy) ECHO_C='\c';;
27975 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
27976 ECHO_T=' ';;
27977 esac;;
27979 ECHO_N='-n';;
27980 esac
27982 rm -f conf$$ conf$$.exe conf$$.file
27983 if test -d conf$$.dir; then
27984 rm -f conf$$.dir/conf$$.file
27985 else
27986 rm -f conf$$.dir
27987 mkdir conf$$.dir 2>/dev/null
27989 if (echo >conf$$.file) 2>/dev/null; then
27990 if ln -s conf$$.file conf$$ 2>/dev/null; then
27991 as_ln_s='ln -s'
27992 # ... but there are two gotchas:
27993 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
27994 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
27995 # In both cases, we have to default to `cp -p'.
27996 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
27997 as_ln_s='cp -p'
27998 elif ln conf$$.file conf$$ 2>/dev/null; then
27999 as_ln_s=ln
28000 else
28001 as_ln_s='cp -p'
28003 else
28004 as_ln_s='cp -p'
28006 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
28007 rmdir conf$$.dir 2>/dev/null
28010 # as_fn_mkdir_p
28011 # -------------
28012 # Create "$as_dir" as a directory, including parents if necessary.
28013 as_fn_mkdir_p ()
28016 case $as_dir in #(
28017 -*) as_dir=./$as_dir;;
28018 esac
28019 test -d "$as_dir" || eval $as_mkdir_p || {
28020 as_dirs=
28021 while :; do
28022 case $as_dir in #(
28023 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
28024 *) as_qdir=$as_dir;;
28025 esac
28026 as_dirs="'$as_qdir' $as_dirs"
28027 as_dir=`$as_dirname -- "$as_dir" ||
28028 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
28029 X"$as_dir" : 'X\(//\)[^/]' \| \
28030 X"$as_dir" : 'X\(//\)$' \| \
28031 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
28032 $as_echo X"$as_dir" |
28033 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
28034 s//\1/
28037 /^X\(\/\/\)[^/].*/{
28038 s//\1/
28041 /^X\(\/\/\)$/{
28042 s//\1/
28045 /^X\(\/\).*/{
28046 s//\1/
28049 s/.*/./; q'`
28050 test -d "$as_dir" && break
28051 done
28052 test -z "$as_dirs" || eval "mkdir $as_dirs"
28053 } || test -d "$as_dir" || as_fn_error "cannot create directory $as_dir"
28056 } # as_fn_mkdir_p
28057 if mkdir -p . 2>/dev/null; then
28058 as_mkdir_p='mkdir -p "$as_dir"'
28059 else
28060 test -d ./-p && rmdir ./-p
28061 as_mkdir_p=false
28064 if test -x / >/dev/null 2>&1; then
28065 as_test_x='test -x'
28066 else
28067 if ls -dL / >/dev/null 2>&1; then
28068 as_ls_L_option=L
28069 else
28070 as_ls_L_option=
28072 as_test_x='
28073 eval sh -c '\''
28074 if test -d "$1"; then
28075 test -d "$1/.";
28076 else
28077 case $1 in #(
28078 -*)set "./$1";;
28079 esac;
28080 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in #((
28081 ???[sx]*):;;*)false;;esac;fi
28082 '\'' sh
28085 as_executable_p=$as_test_x
28087 # Sed expression to map a string onto a valid CPP name.
28088 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
28090 # Sed expression to map a string onto a valid variable name.
28091 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
28094 exec 6>&1
28095 ## ----------------------------------- ##
28096 ## Main body of $CONFIG_STATUS script. ##
28097 ## ----------------------------------- ##
28098 _ASEOF
28099 test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
28101 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
28102 # Save the log message, to keep $0 and so on meaningful, and to
28103 # report actual input values of CONFIG_FILES etc. instead of their
28104 # values after options handling.
28105 ac_log="
28106 This file was extended by $as_me, which was
28107 generated by GNU Autoconf 2.64. Invocation command line was
28109 CONFIG_FILES = $CONFIG_FILES
28110 CONFIG_HEADERS = $CONFIG_HEADERS
28111 CONFIG_LINKS = $CONFIG_LINKS
28112 CONFIG_COMMANDS = $CONFIG_COMMANDS
28113 $ $0 $@
28115 on `(hostname || uname -n) 2>/dev/null | sed 1q`
28118 _ACEOF
28120 case $ac_config_files in *"
28121 "*) set x $ac_config_files; shift; ac_config_files=$*;;
28122 esac
28124 case $ac_config_headers in *"
28125 "*) set x $ac_config_headers; shift; ac_config_headers=$*;;
28126 esac
28129 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
28130 # Files that config.status was made for.
28131 config_files="$ac_config_files"
28132 config_headers="$ac_config_headers"
28133 config_commands="$ac_config_commands"
28135 _ACEOF
28137 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
28138 ac_cs_usage="\
28139 \`$as_me' instantiates files and other configuration actions
28140 from templates according to the current configuration. Unless the files
28141 and actions are specified as TAGs, all are instantiated by default.
28143 Usage: $0 [OPTION]... [TAG]...
28145 -h, --help print this help, then exit
28146 -V, --version print version number and configuration settings, then exit
28147 -q, --quiet, --silent
28148 do not print progress messages
28149 -d, --debug don't remove temporary files
28150 --recheck update $as_me by reconfiguring in the same conditions
28151 --file=FILE[:TEMPLATE]
28152 instantiate the configuration file FILE
28153 --header=FILE[:TEMPLATE]
28154 instantiate the configuration header FILE
28156 Configuration files:
28157 $config_files
28159 Configuration headers:
28160 $config_headers
28162 Configuration commands:
28163 $config_commands
28165 Report bugs to the package provider."
28167 _ACEOF
28168 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
28169 ac_cs_version="\\
28170 config.status
28171 configured by $0, generated by GNU Autoconf 2.64,
28172 with options \\"`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`\\"
28174 Copyright (C) 2009 Free Software Foundation, Inc.
28175 This config.status script is free software; the Free Software Foundation
28176 gives unlimited permission to copy, distribute and modify it."
28178 ac_pwd='$ac_pwd'
28179 srcdir='$srcdir'
28180 AWK='$AWK'
28181 test -n "\$AWK" || AWK=awk
28182 _ACEOF
28184 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
28185 # The default lists apply if the user does not specify any file.
28186 ac_need_defaults=:
28187 while test $# != 0
28189 case $1 in
28190 --*=*)
28191 ac_option=`expr "X$1" : 'X\([^=]*\)='`
28192 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
28193 ac_shift=:
28196 ac_option=$1
28197 ac_optarg=$2
28198 ac_shift=shift
28200 esac
28202 case $ac_option in
28203 # Handling of the options.
28204 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
28205 ac_cs_recheck=: ;;
28206 --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
28207 $as_echo "$ac_cs_version"; exit ;;
28208 --debug | --debu | --deb | --de | --d | -d )
28209 debug=: ;;
28210 --file | --fil | --fi | --f )
28211 $ac_shift
28212 case $ac_optarg in
28213 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
28214 esac
28215 as_fn_append CONFIG_FILES " '$ac_optarg'"
28216 ac_need_defaults=false;;
28217 --header | --heade | --head | --hea )
28218 $ac_shift
28219 case $ac_optarg in
28220 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
28221 esac
28222 as_fn_append CONFIG_HEADERS " '$ac_optarg'"
28223 ac_need_defaults=false;;
28224 --he | --h)
28225 # Conflict between --help and --header
28226 as_fn_error "ambiguous option: \`$1'
28227 Try \`$0 --help' for more information.";;
28228 --help | --hel | -h )
28229 $as_echo "$ac_cs_usage"; exit ;;
28230 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
28231 | -silent | --silent | --silen | --sile | --sil | --si | --s)
28232 ac_cs_silent=: ;;
28234 # This is an error.
28235 -*) as_fn_error "unrecognized option: \`$1'
28236 Try \`$0 --help' for more information." ;;
28238 *) as_fn_append ac_config_targets " $1"
28239 ac_need_defaults=false ;;
28241 esac
28242 shift
28243 done
28245 ac_configure_extra_args=
28247 if $ac_cs_silent; then
28248 exec 6>/dev/null
28249 ac_configure_extra_args="$ac_configure_extra_args --silent"
28252 _ACEOF
28253 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
28254 if \$ac_cs_recheck; then
28255 set X '$SHELL' '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
28256 shift
28257 \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
28258 CONFIG_SHELL='$SHELL'
28259 export CONFIG_SHELL
28260 exec "\$@"
28263 _ACEOF
28264 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
28265 exec 5>>config.log
28267 echo
28268 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
28269 ## Running $as_me. ##
28270 _ASBOX
28271 $as_echo "$ac_log"
28272 } >&5
28274 _ACEOF
28275 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
28277 # INIT-COMMANDS
28279 subdirs='$subdirs'
28281 _ACEOF
28283 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
28285 # Handling of arguments.
28286 for ac_config_target in $ac_config_targets
28288 case $ac_config_target in
28289 "auto-host.h") CONFIG_HEADERS="$CONFIG_HEADERS auto-host.h:config.in" ;;
28290 "as") CONFIG_FILES="$CONFIG_FILES as:exec-tool.in" ;;
28291 "collect-ld") CONFIG_FILES="$CONFIG_FILES collect-ld:exec-tool.in" ;;
28292 "nm") CONFIG_FILES="$CONFIG_FILES nm:exec-tool.in" ;;
28293 "$all_outputs") CONFIG_FILES="$CONFIG_FILES $all_outputs" ;;
28294 "default") CONFIG_COMMANDS="$CONFIG_COMMANDS default" ;;
28296 *) as_fn_error "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
28297 esac
28298 done
28301 # If the user did not use the arguments to specify the items to instantiate,
28302 # then the envvar interface is used. Set only those that are not.
28303 # We use the long form for the default assignment because of an extremely
28304 # bizarre bug on SunOS 4.1.3.
28305 if $ac_need_defaults; then
28306 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
28307 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
28308 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
28311 # Have a temporary directory for convenience. Make it in the build tree
28312 # simply because there is no reason against having it here, and in addition,
28313 # creating and moving files from /tmp can sometimes cause problems.
28314 # Hook for its removal unless debugging.
28315 # Note that there is a small window in which the directory will not be cleaned:
28316 # after its creation but before its name has been assigned to `$tmp'.
28317 $debug ||
28319 tmp=
28320 trap 'exit_status=$?
28321 { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status
28323 trap 'as_fn_exit 1' 1 2 13 15
28325 # Create a (secure) tmp directory for tmp files.
28328 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
28329 test -n "$tmp" && test -d "$tmp"
28330 } ||
28332 tmp=./conf$$-$RANDOM
28333 (umask 077 && mkdir "$tmp")
28334 } || as_fn_error "cannot create a temporary directory in ." "$LINENO" 5
28336 # Set up the scripts for CONFIG_FILES section.
28337 # No need to generate them if there are no CONFIG_FILES.
28338 # This happens for instance with `./config.status config.h'.
28339 if test -n "$CONFIG_FILES"; then
28341 if $AWK 'BEGIN { getline <"/dev/null" }' </dev/null 2>/dev/null; then
28342 ac_cs_awk_getline=:
28343 ac_cs_awk_pipe_init=
28344 ac_cs_awk_read_file='
28345 while ((getline aline < (F[key])) > 0)
28346 print(aline)
28347 close(F[key])'
28348 ac_cs_awk_pipe_fini=
28349 else
28350 ac_cs_awk_getline=false
28351 ac_cs_awk_pipe_init="print \"cat <<'|#_!!_#|' &&\""
28352 ac_cs_awk_read_file='
28353 print "|#_!!_#|"
28354 print "cat " F[key] " &&"
28355 '$ac_cs_awk_pipe_init
28356 # The final `:' finishes the AND list.
28357 ac_cs_awk_pipe_fini='END { print "|#_!!_#|"; print ":" }'
28359 ac_cr=`echo X | tr X '\015'`
28360 # On cygwin, bash can eat \r inside `` if the user requested igncr.
28361 # But we know of no other shell where ac_cr would be empty at this
28362 # point, so we can use a bashism as a fallback.
28363 if test "x$ac_cr" = x; then
28364 eval ac_cr=\$\'\\r\'
28366 ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
28367 if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
28368 ac_cs_awk_cr='\r'
28369 else
28370 ac_cs_awk_cr=$ac_cr
28373 echo 'BEGIN {' >"$tmp/subs1.awk" &&
28374 _ACEOF
28376 # Create commands to substitute file output variables.
28378 echo "cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1" &&
28379 echo 'cat >>"\$tmp/subs1.awk" <<\\_ACAWK &&' &&
28380 echo "$ac_subst_files" | sed 's/.*/F["&"]="$&"/' &&
28381 echo "_ACAWK" &&
28382 echo "_ACEOF"
28383 } >conf$$files.sh &&
28384 . ./conf$$files.sh ||
28385 as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5
28386 rm -f conf$$files.sh
28389 echo "cat >conf$$subs.awk <<_ACEOF" &&
28390 echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
28391 echo "_ACEOF"
28392 } >conf$$subs.sh ||
28393 as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5
28394 ac_delim_num=`echo "$ac_subst_vars" | grep -c '$'`
28395 ac_delim='%!_!# '
28396 for ac_last_try in false false false false false :; do
28397 . ./conf$$subs.sh ||
28398 as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5
28400 ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
28401 if test $ac_delim_n = $ac_delim_num; then
28402 break
28403 elif $ac_last_try; then
28404 as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5
28405 else
28406 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
28408 done
28409 rm -f conf$$subs.sh
28411 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
28412 cat >>"\$tmp/subs1.awk" <<\\_ACAWK &&
28413 _ACEOF
28414 sed -n '
28416 s/^/S["/; s/!.*/"]=/
28419 s/^[^!]*!//
28420 :repl
28421 t repl
28422 s/'"$ac_delim"'$//
28423 t delim
28426 s/\(.\{148\}\).*/\1/
28427 t more1
28428 s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
28431 b repl
28432 :more1
28433 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
28436 s/.\{148\}//
28437 t nl
28438 :delim
28440 s/\(.\{148\}\).*/\1/
28441 t more2
28442 s/["\\]/\\&/g; s/^/"/; s/$/"/
28445 :more2
28446 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
28449 s/.\{148\}//
28450 t delim
28451 ' <conf$$subs.awk | sed '
28452 /^[^""]/{
28454 s/\n//
28456 ' >>$CONFIG_STATUS || ac_write_fail=1
28457 rm -f conf$$subs.awk
28458 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
28459 _ACAWK
28460 cat >>"\$tmp/subs1.awk" <<_ACAWK &&
28461 for (key in S) S_is_set[key] = 1
28462 FS = "\a"
28463 \$ac_cs_awk_pipe_init
28466 line = $ 0
28467 nfields = split(line, field, "@")
28468 substed = 0
28469 len = length(field[1])
28470 for (i = 2; i < nfields; i++) {
28471 key = field[i]
28472 keylen = length(key)
28473 if (S_is_set[key]) {
28474 value = S[key]
28475 line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
28476 len += length(value) + length(field[++i])
28477 substed = 1
28478 } else
28479 len += 1 + keylen
28481 if (nfields == 3 && !substed) {
28482 key = field[2]
28483 if (F[key] != "" && line ~ /^[ ]*@.*@[ ]*$/) {
28484 \$ac_cs_awk_read_file
28485 next
28488 print line
28490 \$ac_cs_awk_pipe_fini
28491 _ACAWK
28492 _ACEOF
28493 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
28494 if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
28495 sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
28496 else
28498 fi < "$tmp/subs1.awk" > "$tmp/subs.awk" \
28499 || as_fn_error "could not setup config files machinery" "$LINENO" 5
28500 _ACEOF
28502 # VPATH may cause trouble with some makes, so we remove $(srcdir),
28503 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
28504 # trailing colons and then remove the whole line if VPATH becomes empty
28505 # (actually we leave an empty line to preserve line numbers).
28506 if test "x$srcdir" = x.; then
28507 ac_vpsub='/^[ ]*VPATH[ ]*=/{
28508 s/:*\$(srcdir):*/:/
28509 s/:*\${srcdir}:*/:/
28510 s/:*@srcdir@:*/:/
28511 s/^\([^=]*=[ ]*\):*/\1/
28512 s/:*$//
28513 s/^[^=]*=[ ]*$//
28517 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
28518 fi # test -n "$CONFIG_FILES"
28520 # Set up the scripts for CONFIG_HEADERS section.
28521 # No need to generate them if there are no CONFIG_HEADERS.
28522 # This happens for instance with `./config.status Makefile'.
28523 if test -n "$CONFIG_HEADERS"; then
28524 cat >"$tmp/defines.awk" <<\_ACAWK ||
28525 BEGIN {
28526 _ACEOF
28528 # Transform confdefs.h into an awk script `defines.awk', embedded as
28529 # here-document in config.status, that substitutes the proper values into
28530 # config.h.in to produce config.h.
28532 # Create a delimiter string that does not exist in confdefs.h, to ease
28533 # handling of long lines.
28534 ac_delim='%!_!# '
28535 for ac_last_try in false false :; do
28536 ac_t=`sed -n "/$ac_delim/p" confdefs.h`
28537 if test -z "$ac_t"; then
28538 break
28539 elif $ac_last_try; then
28540 as_fn_error "could not make $CONFIG_HEADERS" "$LINENO" 5
28541 else
28542 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
28544 done
28546 # For the awk script, D is an array of macro values keyed by name,
28547 # likewise P contains macro parameters if any. Preserve backslash
28548 # newline sequences.
28550 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
28551 sed -n '
28552 s/.\{148\}/&'"$ac_delim"'/g
28553 t rset
28554 :rset
28555 s/^[ ]*#[ ]*define[ ][ ]*/ /
28556 t def
28558 :def
28559 s/\\$//
28560 t bsnl
28561 s/["\\]/\\&/g
28562 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
28563 D["\1"]=" \3"/p
28564 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2"/p
28566 :bsnl
28567 s/["\\]/\\&/g
28568 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
28569 D["\1"]=" \3\\\\\\n"\\/p
28570 t cont
28571 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
28572 t cont
28574 :cont
28576 s/.\{148\}/&'"$ac_delim"'/g
28577 t clear
28578 :clear
28579 s/\\$//
28580 t bsnlc
28581 s/["\\]/\\&/g; s/^/"/; s/$/"/p
28583 :bsnlc
28584 s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
28585 b cont
28586 ' <confdefs.h | sed '
28587 s/'"$ac_delim"'/"\\\
28588 "/g' >>$CONFIG_STATUS || ac_write_fail=1
28590 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
28591 for (key in D) D_is_set[key] = 1
28592 FS = "\a"
28594 /^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
28595 line = \$ 0
28596 split(line, arg, " ")
28597 if (arg[1] == "#") {
28598 defundef = arg[2]
28599 mac1 = arg[3]
28600 } else {
28601 defundef = substr(arg[1], 2)
28602 mac1 = arg[2]
28604 split(mac1, mac2, "(") #)
28605 macro = mac2[1]
28606 prefix = substr(line, 1, index(line, defundef) - 1)
28607 if (D_is_set[macro]) {
28608 # Preserve the white space surrounding the "#".
28609 print prefix "define", macro P[macro] D[macro]
28610 next
28611 } else {
28612 # Replace #undef with comments. This is necessary, for example,
28613 # in the case of _POSIX_SOURCE, which is predefined and required
28614 # on some systems where configure will not decide to define it.
28615 if (defundef == "undef") {
28616 print "/*", prefix defundef, macro, "*/"
28617 next
28621 { print }
28622 _ACAWK
28623 _ACEOF
28624 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
28625 as_fn_error "could not setup config headers machinery" "$LINENO" 5
28626 fi # test -n "$CONFIG_HEADERS"
28629 eval set X " :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS"
28630 shift
28631 for ac_tag
28633 case $ac_tag in
28634 :[FHLC]) ac_mode=$ac_tag; continue;;
28635 esac
28636 case $ac_mode$ac_tag in
28637 :[FHL]*:*);;
28638 :L* | :C*:*) as_fn_error "invalid tag \`$ac_tag'" "$LINENO" 5;;
28639 :[FH]-) ac_tag=-:-;;
28640 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
28641 esac
28642 ac_save_IFS=$IFS
28643 IFS=:
28644 set x $ac_tag
28645 IFS=$ac_save_IFS
28646 shift
28647 ac_file=$1
28648 shift
28650 case $ac_mode in
28651 :L) ac_source=$1;;
28652 :[FH])
28653 ac_file_inputs=
28654 for ac_f
28656 case $ac_f in
28657 -) ac_f="$tmp/stdin";;
28658 *) # Look for the file first in the build tree, then in the source tree
28659 # (if the path is not absolute). The absolute path cannot be DOS-style,
28660 # because $ac_f cannot contain `:'.
28661 test -f "$ac_f" ||
28662 case $ac_f in
28663 [\\/$]*) false;;
28664 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
28665 esac ||
28666 as_fn_error "cannot find input file: \`$ac_f'" "$LINENO" 5;;
28667 esac
28668 case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
28669 as_fn_append ac_file_inputs " '$ac_f'"
28670 done
28672 # Let's still pretend it is `configure' which instantiates (i.e., don't
28673 # use $as_me), people would be surprised to read:
28674 # /* config.h. Generated by config.status. */
28675 configure_input='Generated from '`
28676 $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
28677 `' by configure.'
28678 if test x"$ac_file" != x-; then
28679 configure_input="$ac_file. $configure_input"
28680 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
28681 $as_echo "$as_me: creating $ac_file" >&6;}
28683 # Neutralize special characters interpreted by sed in replacement strings.
28684 case $configure_input in #(
28685 *\&* | *\|* | *\\* )
28686 ac_sed_conf_input=`$as_echo "$configure_input" |
28687 sed 's/[\\\\&|]/\\\\&/g'`;; #(
28688 *) ac_sed_conf_input=$configure_input;;
28689 esac
28691 case $ac_tag in
28692 *:-:* | *:-) cat >"$tmp/stdin" \
28693 || as_fn_error "could not create $ac_file" "$LINENO" 5 ;;
28694 esac
28696 esac
28698 ac_dir=`$as_dirname -- "$ac_file" ||
28699 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
28700 X"$ac_file" : 'X\(//\)[^/]' \| \
28701 X"$ac_file" : 'X\(//\)$' \| \
28702 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
28703 $as_echo X"$ac_file" |
28704 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
28705 s//\1/
28708 /^X\(\/\/\)[^/].*/{
28709 s//\1/
28712 /^X\(\/\/\)$/{
28713 s//\1/
28716 /^X\(\/\).*/{
28717 s//\1/
28720 s/.*/./; q'`
28721 as_dir="$ac_dir"; as_fn_mkdir_p
28722 ac_builddir=.
28724 case "$ac_dir" in
28725 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
28727 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
28728 # A ".." for each directory in $ac_dir_suffix.
28729 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
28730 case $ac_top_builddir_sub in
28731 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
28732 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
28733 esac ;;
28734 esac
28735 ac_abs_top_builddir=$ac_pwd
28736 ac_abs_builddir=$ac_pwd$ac_dir_suffix
28737 # for backward compatibility:
28738 ac_top_builddir=$ac_top_build_prefix
28740 case $srcdir in
28741 .) # We are building in place.
28742 ac_srcdir=.
28743 ac_top_srcdir=$ac_top_builddir_sub
28744 ac_abs_top_srcdir=$ac_pwd ;;
28745 [\\/]* | ?:[\\/]* ) # Absolute name.
28746 ac_srcdir=$srcdir$ac_dir_suffix;
28747 ac_top_srcdir=$srcdir
28748 ac_abs_top_srcdir=$srcdir ;;
28749 *) # Relative name.
28750 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
28751 ac_top_srcdir=$ac_top_build_prefix$srcdir
28752 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
28753 esac
28754 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
28757 case $ac_mode in
28760 # CONFIG_FILE
28763 _ACEOF
28765 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
28766 # If the template does not know about datarootdir, expand it.
28767 # FIXME: This hack should be removed a few years after 2.60.
28768 ac_datarootdir_hack=; ac_datarootdir_seen=
28769 ac_sed_dataroot='
28770 /datarootdir/ {
28774 /@datadir@/p
28775 /@docdir@/p
28776 /@infodir@/p
28777 /@localedir@/p
28778 /@mandir@/p'
28779 case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
28780 *datarootdir*) ac_datarootdir_seen=yes;;
28781 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
28782 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
28783 $as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
28784 _ACEOF
28785 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
28786 ac_datarootdir_hack='
28787 s&@datadir@&$datadir&g
28788 s&@docdir@&$docdir&g
28789 s&@infodir@&$infodir&g
28790 s&@localedir@&$localedir&g
28791 s&@mandir@&$mandir&g
28792 s&\\\${datarootdir}&$datarootdir&g' ;;
28793 esac
28794 _ACEOF
28796 # Neutralize VPATH when `$srcdir' = `.'.
28797 # Shell code in configure.ac might set extrasub.
28798 # FIXME: do we really want to maintain this feature?
28799 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
28800 ac_sed_extra="$ac_vpsub
28801 $extrasub
28802 _ACEOF
28803 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
28805 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
28806 s|@configure_input@|$ac_sed_conf_input|;t t
28807 s&@top_builddir@&$ac_top_builddir_sub&;t t
28808 s&@top_build_prefix@&$ac_top_build_prefix&;t t
28809 s&@srcdir@&$ac_srcdir&;t t
28810 s&@abs_srcdir@&$ac_abs_srcdir&;t t
28811 s&@top_srcdir@&$ac_top_srcdir&;t t
28812 s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
28813 s&@builddir@&$ac_builddir&;t t
28814 s&@abs_builddir@&$ac_abs_builddir&;t t
28815 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
28816 $ac_datarootdir_hack
28818 eval sed \"\$ac_sed_extra\" "$ac_file_inputs" |
28819 if $ac_cs_awk_getline; then
28820 $AWK -f "$tmp/subs.awk"
28821 else
28822 $AWK -f "$tmp/subs.awk" | $SHELL
28823 fi >$tmp/out \
28824 || as_fn_error "could not create $ac_file" "$LINENO" 5
28826 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
28827 { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out"`; test -n "$ac_out"; } &&
28828 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' "$tmp/out"`; test -z "$ac_out"; } &&
28829 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
28830 which seems to be undefined. Please make sure it is defined." >&5
28831 $as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
28832 which seems to be undefined. Please make sure it is defined." >&2;}
28834 rm -f "$tmp/stdin"
28835 case $ac_file in
28836 -) cat "$tmp/out" && rm -f "$tmp/out";;
28837 *) rm -f "$ac_file" && mv "$tmp/out" "$ac_file";;
28838 esac \
28839 || as_fn_error "could not create $ac_file" "$LINENO" 5
28843 # CONFIG_HEADER
28845 if test x"$ac_file" != x-; then
28847 $as_echo "/* $configure_input */" \
28848 && eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs"
28849 } >"$tmp/config.h" \
28850 || as_fn_error "could not create $ac_file" "$LINENO" 5
28851 if diff "$ac_file" "$tmp/config.h" >/dev/null 2>&1; then
28852 { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
28853 $as_echo "$as_me: $ac_file is unchanged" >&6;}
28854 else
28855 rm -f "$ac_file"
28856 mv "$tmp/config.h" "$ac_file" \
28857 || as_fn_error "could not create $ac_file" "$LINENO" 5
28859 else
28860 $as_echo "/* $configure_input */" \
28861 && eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs" \
28862 || as_fn_error "could not create -" "$LINENO" 5
28866 :C) { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
28867 $as_echo "$as_me: executing $ac_file commands" >&6;}
28869 esac
28872 case $ac_file$ac_mode in
28873 "as":F) chmod +x as ;;
28874 "collect-ld":F) chmod +x collect-ld ;;
28875 "nm":F) chmod +x nm ;;
28876 "default":C)
28877 case ${CONFIG_HEADERS} in
28878 *auto-host.h:config.in*)
28879 echo > cstamp-h ;;
28880 esac
28881 # Make sure all the subdirs exist.
28882 for d in $subdirs doc build common c-family
28884 test -d $d || mkdir $d
28885 done
28888 esac
28889 done # for ac_tag
28892 as_fn_exit 0
28893 _ACEOF
28894 ac_clean_files=$ac_clean_files_save
28896 test $ac_write_fail = 0 ||
28897 as_fn_error "write failure creating $CONFIG_STATUS" "$LINENO" 5
28900 # configure is writing to config.log, and then calls config.status.
28901 # config.status does its own redirection, appending to config.log.
28902 # Unfortunately, on DOS this fails, as config.log is still kept open
28903 # by configure, so config.status won't be able to write to it; its
28904 # output is simply discarded. So we exec the FD to /dev/null,
28905 # effectively closing config.log, so it can be properly (re)opened and
28906 # appended to by config.status. When coming back to configure, we
28907 # need to make the FD available again.
28908 if test "$no_create" != yes; then
28909 ac_cs_success=:
28910 ac_config_status_args=
28911 test "$silent" = yes &&
28912 ac_config_status_args="$ac_config_status_args --quiet"
28913 exec 5>/dev/null
28914 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
28915 exec 5>>config.log
28916 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
28917 # would make configure fail if this is the last instruction.
28918 $ac_cs_success || as_fn_exit $?
28920 if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
28921 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
28922 $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}