Update count_scale for AutoFDO to prevent over-scale.
[official-gcc.git] / gcc-4_8 / gcc / configure
blob7229be6196862c861a36960cb0e2a22ec79c23c9
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 RUNTIME_ROOT_PREFIX_DEFINE
764 SYSROOT_CFLAGS_FOR_TARGET
765 enable_shared
766 enable_fixed_point
767 enable_decimal_float
768 with_float
769 with_cpu
770 enable_multiarch
771 enable_multilib
772 coverage_flags
773 valgrind_command
774 valgrind_path_defines
775 valgrind_path
776 TREECHECKING
777 TREEBROWSER
778 nocommon_flag
779 noexception_flags
780 warn_cxxflags
781 warn_cflags
782 c_strict_warn
783 strict_warn
784 c_loose_warn
785 loose_warn
786 EGREP
787 GREP
789 PICFLAG_FOR_TARGET
790 OUTPUT_OPTION
791 NO_MINUS_C_MINUS_O
792 GNATMAKE
793 GNATBIND
794 ac_ct_CXX
795 CXXFLAGS
797 OBJEXT
798 EXEEXT
799 ac_ct_CC
800 CPPFLAGS
801 LDFLAGS
802 CFLAGS
804 GENINSRC
805 target_subdir
806 host_subdir
807 build_subdir
808 build_libsubdir
809 target_noncanonical
810 target_os
811 target_vendor
812 target_cpu
813 target
814 host_os
815 host_vendor
816 host_cpu
817 host
818 build_os
819 build_vendor
820 build_cpu
821 build
822 target_alias
823 host_alias
824 build_alias
825 LIBS
826 ECHO_T
827 ECHO_N
828 ECHO_C
829 DEFS
830 mandir
831 localedir
832 libdir
833 psdir
834 pdfdir
835 dvidir
836 htmldir
837 infodir
838 docdir
839 oldincludedir
840 includedir
841 localstatedir
842 sharedstatedir
843 sysconfdir
844 datadir
845 datarootdir
846 libexecdir
847 sbindir
848 bindir
849 program_transform_name
850 prefix
851 exec_prefix
852 PACKAGE_URL
853 PACKAGE_BUGREPORT
854 PACKAGE_STRING
855 PACKAGE_VERSION
856 PACKAGE_TARNAME
857 PACKAGE_NAME
858 PATH_SEPARATOR
859 SHELL'
860 ac_subst_files='option_includes
861 language_hooks'
862 ac_user_opts='
863 enable_option_checking
864 with_build_libsubdir
865 with_local_prefix
866 with_gxx_include_dir
867 with_cpp_install_dir
868 enable_generated_files_in_srcdir
869 with_gnu_ld
870 with_ld
871 with_demangler_in_ld
872 with_gnu_as
873 with_as
874 enable_largefile
875 enable_werror_always
876 enable_checking
877 enable_coverage
878 enable_gather_detailed_mem_stats
879 with_stabs
880 enable_multilib
881 enable_multiarch
882 enable___cxa_atexit
883 enable_decimal_float
884 enable_fixed_point
885 enable_threads
886 enable_tls
887 enable_objc_gc
888 with_dwarf2
889 enable_shared
890 with_native_system_header_dir
891 with_build_sysroot
892 with_runtime_root_prefix
893 with_sysroot
894 with_specs
895 with_pkgversion
896 with_bugurl
897 enable_languages
898 with_multilib_list
899 enable_rpath
900 with_libiconv_prefix
901 enable_sjlj_exceptions
902 enable_secureplt
903 enable_leading_mingw64_underscores
904 enable_cld
905 enable_frame_pointer
906 enable_win32_registry
907 enable_static
908 with_pic
909 enable_fast_install
910 enable_libtool_lock
911 with_plugin_ld
912 enable_gnu_indirect_function
913 enable_initfini_array
914 enable_comdat
915 enable_gnu_unique_object
916 enable_linker_build_id
917 with_long_double_128
918 with_gc
919 with_system_zlib
920 enable_maintainer_mode
921 enable_version_specific_runtime_libs
922 enable_canonical_prefixes
923 enable_plugin
924 enable_libquadmath_support
925 with_warn_frame_larger_than_extra_text
926 with_linker_hash_style
928 ac_precious_vars='build_alias
929 host_alias
930 target_alias
932 CFLAGS
933 LDFLAGS
934 LIBS
935 CPPFLAGS
937 CXXFLAGS
940 CXXCPP
941 GMPLIBS
942 GMPINC
943 ISLLIBS
944 ISLINC
945 CLOOGLIBS
946 CLOOGINC'
949 # Initialize some variables set by options.
950 ac_init_help=
951 ac_init_version=false
952 ac_unrecognized_opts=
953 ac_unrecognized_sep=
954 # The variables have the same names as the options, with
955 # dashes changed to underlines.
956 cache_file=/dev/null
957 exec_prefix=NONE
958 no_create=
959 no_recursion=
960 prefix=NONE
961 program_prefix=NONE
962 program_suffix=NONE
963 program_transform_name=s,x,x,
964 silent=
965 site=
966 srcdir=
967 verbose=
968 x_includes=NONE
969 x_libraries=NONE
971 # Installation directory options.
972 # These are left unexpanded so users can "make install exec_prefix=/foo"
973 # and all the variables that are supposed to be based on exec_prefix
974 # by default will actually change.
975 # Use braces instead of parens because sh, perl, etc. also accept them.
976 # (The list follows the same order as the GNU Coding Standards.)
977 bindir='${exec_prefix}/bin'
978 sbindir='${exec_prefix}/sbin'
979 libexecdir='${exec_prefix}/libexec'
980 datarootdir='${prefix}/share'
981 datadir='${datarootdir}'
982 sysconfdir='${prefix}/etc'
983 sharedstatedir='${prefix}/com'
984 localstatedir='${prefix}/var'
985 includedir='${prefix}/include'
986 oldincludedir='/usr/include'
987 docdir='${datarootdir}/doc/${PACKAGE}'
988 infodir='${datarootdir}/info'
989 htmldir='${docdir}'
990 dvidir='${docdir}'
991 pdfdir='${docdir}'
992 psdir='${docdir}'
993 libdir='${exec_prefix}/lib'
994 localedir='${datarootdir}/locale'
995 mandir='${datarootdir}/man'
997 ac_prev=
998 ac_dashdash=
999 for ac_option
1001 # If the previous option needs an argument, assign it.
1002 if test -n "$ac_prev"; then
1003 eval $ac_prev=\$ac_option
1004 ac_prev=
1005 continue
1008 case $ac_option in
1009 *=*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
1010 *) ac_optarg=yes ;;
1011 esac
1013 # Accept the important Cygnus configure options, so we can diagnose typos.
1015 case $ac_dashdash$ac_option in
1017 ac_dashdash=yes ;;
1019 -bindir | --bindir | --bindi | --bind | --bin | --bi)
1020 ac_prev=bindir ;;
1021 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
1022 bindir=$ac_optarg ;;
1024 -build | --build | --buil | --bui | --bu)
1025 ac_prev=build_alias ;;
1026 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
1027 build_alias=$ac_optarg ;;
1029 -cache-file | --cache-file | --cache-fil | --cache-fi \
1030 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
1031 ac_prev=cache_file ;;
1032 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
1033 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
1034 cache_file=$ac_optarg ;;
1036 --config-cache | -C)
1037 cache_file=config.cache ;;
1039 -datadir | --datadir | --datadi | --datad)
1040 ac_prev=datadir ;;
1041 -datadir=* | --datadir=* | --datadi=* | --datad=*)
1042 datadir=$ac_optarg ;;
1044 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
1045 | --dataroo | --dataro | --datar)
1046 ac_prev=datarootdir ;;
1047 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
1048 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
1049 datarootdir=$ac_optarg ;;
1051 -disable-* | --disable-*)
1052 ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
1053 # Reject names that are not valid shell variable names.
1054 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1055 as_fn_error "invalid feature name: $ac_useropt"
1056 ac_useropt_orig=$ac_useropt
1057 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1058 case $ac_user_opts in
1060 "enable_$ac_useropt"
1061 "*) ;;
1062 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
1063 ac_unrecognized_sep=', ';;
1064 esac
1065 eval enable_$ac_useropt=no ;;
1067 -docdir | --docdir | --docdi | --doc | --do)
1068 ac_prev=docdir ;;
1069 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
1070 docdir=$ac_optarg ;;
1072 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
1073 ac_prev=dvidir ;;
1074 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
1075 dvidir=$ac_optarg ;;
1077 -enable-* | --enable-*)
1078 ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
1079 # Reject names that are not valid shell variable names.
1080 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1081 as_fn_error "invalid feature name: $ac_useropt"
1082 ac_useropt_orig=$ac_useropt
1083 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1084 case $ac_user_opts in
1086 "enable_$ac_useropt"
1087 "*) ;;
1088 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
1089 ac_unrecognized_sep=', ';;
1090 esac
1091 eval enable_$ac_useropt=\$ac_optarg ;;
1093 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
1094 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
1095 | --exec | --exe | --ex)
1096 ac_prev=exec_prefix ;;
1097 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
1098 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
1099 | --exec=* | --exe=* | --ex=*)
1100 exec_prefix=$ac_optarg ;;
1102 -gas | --gas | --ga | --g)
1103 # Obsolete; use --with-gas.
1104 with_gas=yes ;;
1106 -help | --help | --hel | --he | -h)
1107 ac_init_help=long ;;
1108 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
1109 ac_init_help=recursive ;;
1110 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
1111 ac_init_help=short ;;
1113 -host | --host | --hos | --ho)
1114 ac_prev=host_alias ;;
1115 -host=* | --host=* | --hos=* | --ho=*)
1116 host_alias=$ac_optarg ;;
1118 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
1119 ac_prev=htmldir ;;
1120 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
1121 | --ht=*)
1122 htmldir=$ac_optarg ;;
1124 -includedir | --includedir | --includedi | --included | --include \
1125 | --includ | --inclu | --incl | --inc)
1126 ac_prev=includedir ;;
1127 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
1128 | --includ=* | --inclu=* | --incl=* | --inc=*)
1129 includedir=$ac_optarg ;;
1131 -infodir | --infodir | --infodi | --infod | --info | --inf)
1132 ac_prev=infodir ;;
1133 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
1134 infodir=$ac_optarg ;;
1136 -libdir | --libdir | --libdi | --libd)
1137 ac_prev=libdir ;;
1138 -libdir=* | --libdir=* | --libdi=* | --libd=*)
1139 libdir=$ac_optarg ;;
1141 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
1142 | --libexe | --libex | --libe)
1143 ac_prev=libexecdir ;;
1144 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
1145 | --libexe=* | --libex=* | --libe=*)
1146 libexecdir=$ac_optarg ;;
1148 -localedir | --localedir | --localedi | --localed | --locale)
1149 ac_prev=localedir ;;
1150 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
1151 localedir=$ac_optarg ;;
1153 -localstatedir | --localstatedir | --localstatedi | --localstated \
1154 | --localstate | --localstat | --localsta | --localst | --locals)
1155 ac_prev=localstatedir ;;
1156 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
1157 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
1158 localstatedir=$ac_optarg ;;
1160 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1161 ac_prev=mandir ;;
1162 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1163 mandir=$ac_optarg ;;
1165 -nfp | --nfp | --nf)
1166 # Obsolete; use --without-fp.
1167 with_fp=no ;;
1169 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1170 | --no-cr | --no-c | -n)
1171 no_create=yes ;;
1173 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1174 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1175 no_recursion=yes ;;
1177 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1178 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1179 | --oldin | --oldi | --old | --ol | --o)
1180 ac_prev=oldincludedir ;;
1181 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1182 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1183 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1184 oldincludedir=$ac_optarg ;;
1186 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1187 ac_prev=prefix ;;
1188 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1189 prefix=$ac_optarg ;;
1191 -program-prefix | --program-prefix | --program-prefi | --program-pref \
1192 | --program-pre | --program-pr | --program-p)
1193 ac_prev=program_prefix ;;
1194 -program-prefix=* | --program-prefix=* | --program-prefi=* \
1195 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1196 program_prefix=$ac_optarg ;;
1198 -program-suffix | --program-suffix | --program-suffi | --program-suff \
1199 | --program-suf | --program-su | --program-s)
1200 ac_prev=program_suffix ;;
1201 -program-suffix=* | --program-suffix=* | --program-suffi=* \
1202 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1203 program_suffix=$ac_optarg ;;
1205 -program-transform-name | --program-transform-name \
1206 | --program-transform-nam | --program-transform-na \
1207 | --program-transform-n | --program-transform- \
1208 | --program-transform | --program-transfor \
1209 | --program-transfo | --program-transf \
1210 | --program-trans | --program-tran \
1211 | --progr-tra | --program-tr | --program-t)
1212 ac_prev=program_transform_name ;;
1213 -program-transform-name=* | --program-transform-name=* \
1214 | --program-transform-nam=* | --program-transform-na=* \
1215 | --program-transform-n=* | --program-transform-=* \
1216 | --program-transform=* | --program-transfor=* \
1217 | --program-transfo=* | --program-transf=* \
1218 | --program-trans=* | --program-tran=* \
1219 | --progr-tra=* | --program-tr=* | --program-t=*)
1220 program_transform_name=$ac_optarg ;;
1222 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1223 ac_prev=pdfdir ;;
1224 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1225 pdfdir=$ac_optarg ;;
1227 -psdir | --psdir | --psdi | --psd | --ps)
1228 ac_prev=psdir ;;
1229 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1230 psdir=$ac_optarg ;;
1232 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1233 | -silent | --silent | --silen | --sile | --sil)
1234 silent=yes ;;
1236 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1237 ac_prev=sbindir ;;
1238 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1239 | --sbi=* | --sb=*)
1240 sbindir=$ac_optarg ;;
1242 -sharedstatedir | --sharedstatedir | --sharedstatedi \
1243 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1244 | --sharedst | --shareds | --shared | --share | --shar \
1245 | --sha | --sh)
1246 ac_prev=sharedstatedir ;;
1247 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1248 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1249 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1250 | --sha=* | --sh=*)
1251 sharedstatedir=$ac_optarg ;;
1253 -site | --site | --sit)
1254 ac_prev=site ;;
1255 -site=* | --site=* | --sit=*)
1256 site=$ac_optarg ;;
1258 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1259 ac_prev=srcdir ;;
1260 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1261 srcdir=$ac_optarg ;;
1263 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1264 | --syscon | --sysco | --sysc | --sys | --sy)
1265 ac_prev=sysconfdir ;;
1266 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1267 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1268 sysconfdir=$ac_optarg ;;
1270 -target | --target | --targe | --targ | --tar | --ta | --t)
1271 ac_prev=target_alias ;;
1272 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1273 target_alias=$ac_optarg ;;
1275 -v | -verbose | --verbose | --verbos | --verbo | --verb)
1276 verbose=yes ;;
1278 -version | --version | --versio | --versi | --vers | -V)
1279 ac_init_version=: ;;
1281 -with-* | --with-*)
1282 ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1283 # Reject names that are not valid shell variable names.
1284 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1285 as_fn_error "invalid package name: $ac_useropt"
1286 ac_useropt_orig=$ac_useropt
1287 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1288 case $ac_user_opts in
1290 "with_$ac_useropt"
1291 "*) ;;
1292 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1293 ac_unrecognized_sep=', ';;
1294 esac
1295 eval with_$ac_useropt=\$ac_optarg ;;
1297 -without-* | --without-*)
1298 ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1299 # Reject names that are not valid shell variable names.
1300 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1301 as_fn_error "invalid package name: $ac_useropt"
1302 ac_useropt_orig=$ac_useropt
1303 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1304 case $ac_user_opts in
1306 "with_$ac_useropt"
1307 "*) ;;
1308 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1309 ac_unrecognized_sep=', ';;
1310 esac
1311 eval with_$ac_useropt=no ;;
1313 --x)
1314 # Obsolete; use --with-x.
1315 with_x=yes ;;
1317 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1318 | --x-incl | --x-inc | --x-in | --x-i)
1319 ac_prev=x_includes ;;
1320 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1321 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1322 x_includes=$ac_optarg ;;
1324 -x-libraries | --x-libraries | --x-librarie | --x-librari \
1325 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1326 ac_prev=x_libraries ;;
1327 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1328 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1329 x_libraries=$ac_optarg ;;
1331 -*) as_fn_error "unrecognized option: \`$ac_option'
1332 Try \`$0 --help' for more information."
1335 *=*)
1336 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1337 # Reject names that are not valid shell variable names.
1338 case $ac_envvar in #(
1339 '' | [0-9]* | *[!_$as_cr_alnum]* )
1340 as_fn_error "invalid variable name: \`$ac_envvar'" ;;
1341 esac
1342 eval $ac_envvar=\$ac_optarg
1343 export $ac_envvar ;;
1346 # FIXME: should be removed in autoconf 3.0.
1347 $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1348 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1349 $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1350 : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
1353 esac
1354 done
1356 if test -n "$ac_prev"; then
1357 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1358 as_fn_error "missing argument to $ac_option"
1361 if test -n "$ac_unrecognized_opts"; then
1362 case $enable_option_checking in
1363 no) ;;
1364 fatal) as_fn_error "unrecognized options: $ac_unrecognized_opts" ;;
1365 *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1366 esac
1369 # Check all directory arguments for consistency.
1370 for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1371 datadir sysconfdir sharedstatedir localstatedir includedir \
1372 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1373 libdir localedir mandir
1375 eval ac_val=\$$ac_var
1376 # Remove trailing slashes.
1377 case $ac_val in
1378 */ )
1379 ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1380 eval $ac_var=\$ac_val;;
1381 esac
1382 # Be sure to have absolute directory names.
1383 case $ac_val in
1384 [\\/$]* | ?:[\\/]* ) continue;;
1385 NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1386 esac
1387 as_fn_error "expected an absolute directory name for --$ac_var: $ac_val"
1388 done
1390 # There might be people who depend on the old broken behavior: `$host'
1391 # used to hold the argument of --host etc.
1392 # FIXME: To remove some day.
1393 build=$build_alias
1394 host=$host_alias
1395 target=$target_alias
1397 # FIXME: To remove some day.
1398 if test "x$host_alias" != x; then
1399 if test "x$build_alias" = x; then
1400 cross_compiling=maybe
1401 $as_echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
1402 If a cross compiler is detected then cross compile mode will be used." >&2
1403 elif test "x$build_alias" != "x$host_alias"; then
1404 cross_compiling=yes
1408 ac_tool_prefix=
1409 test -n "$host_alias" && ac_tool_prefix=$host_alias-
1411 test "$silent" = yes && exec 6>/dev/null
1414 ac_pwd=`pwd` && test -n "$ac_pwd" &&
1415 ac_ls_di=`ls -di .` &&
1416 ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1417 as_fn_error "working directory cannot be determined"
1418 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1419 as_fn_error "pwd does not report name of working directory"
1422 # Find the source files, if location was not specified.
1423 if test -z "$srcdir"; then
1424 ac_srcdir_defaulted=yes
1425 # Try the directory containing this script, then the parent directory.
1426 ac_confdir=`$as_dirname -- "$as_myself" ||
1427 $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1428 X"$as_myself" : 'X\(//\)[^/]' \| \
1429 X"$as_myself" : 'X\(//\)$' \| \
1430 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1431 $as_echo X"$as_myself" |
1432 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1433 s//\1/
1436 /^X\(\/\/\)[^/].*/{
1437 s//\1/
1440 /^X\(\/\/\)$/{
1441 s//\1/
1444 /^X\(\/\).*/{
1445 s//\1/
1448 s/.*/./; q'`
1449 srcdir=$ac_confdir
1450 if test ! -r "$srcdir/$ac_unique_file"; then
1451 srcdir=..
1453 else
1454 ac_srcdir_defaulted=no
1456 if test ! -r "$srcdir/$ac_unique_file"; then
1457 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1458 as_fn_error "cannot find sources ($ac_unique_file) in $srcdir"
1460 ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1461 ac_abs_confdir=`(
1462 cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error "$ac_msg"
1463 pwd)`
1464 # When building in place, set srcdir=.
1465 if test "$ac_abs_confdir" = "$ac_pwd"; then
1466 srcdir=.
1468 # Remove unnecessary trailing slashes from srcdir.
1469 # Double slashes in file names in object file debugging info
1470 # mess up M-x gdb in Emacs.
1471 case $srcdir in
1472 */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1473 esac
1474 for ac_var in $ac_precious_vars; do
1475 eval ac_env_${ac_var}_set=\${${ac_var}+set}
1476 eval ac_env_${ac_var}_value=\$${ac_var}
1477 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1478 eval ac_cv_env_${ac_var}_value=\$${ac_var}
1479 done
1482 # Report the --help message.
1484 if test "$ac_init_help" = "long"; then
1485 # Omit some internal or obsolete options to make the list less imposing.
1486 # This message is too long to be a string in the A/UX 3.1 sh.
1487 cat <<_ACEOF
1488 \`configure' configures this package to adapt to many kinds of systems.
1490 Usage: $0 [OPTION]... [VAR=VALUE]...
1492 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1493 VAR=VALUE. See below for descriptions of some of the useful variables.
1495 Defaults for the options are specified in brackets.
1497 Configuration:
1498 -h, --help display this help and exit
1499 --help=short display options specific to this package
1500 --help=recursive display the short help of all the included packages
1501 -V, --version display version information and exit
1502 -q, --quiet, --silent do not print \`checking...' messages
1503 --cache-file=FILE cache test results in FILE [disabled]
1504 -C, --config-cache alias for \`--cache-file=config.cache'
1505 -n, --no-create do not create output files
1506 --srcdir=DIR find the sources in DIR [configure dir or \`..']
1508 Installation directories:
1509 --prefix=PREFIX install architecture-independent files in PREFIX
1510 [$ac_default_prefix]
1511 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
1512 [PREFIX]
1514 By default, \`make install' will install all the files in
1515 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1516 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1517 for instance \`--prefix=\$HOME'.
1519 For better control, use the options below.
1521 Fine tuning of the installation directories:
1522 --bindir=DIR user executables [EPREFIX/bin]
1523 --sbindir=DIR system admin executables [EPREFIX/sbin]
1524 --libexecdir=DIR program executables [EPREFIX/libexec]
1525 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1526 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1527 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1528 --libdir=DIR object code libraries [EPREFIX/lib]
1529 --includedir=DIR C header files [PREFIX/include]
1530 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1531 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1532 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1533 --infodir=DIR info documentation [DATAROOTDIR/info]
1534 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1535 --mandir=DIR man documentation [DATAROOTDIR/man]
1536 --docdir=DIR documentation root [DATAROOTDIR/doc/PACKAGE]
1537 --htmldir=DIR html documentation [DOCDIR]
1538 --dvidir=DIR dvi documentation [DOCDIR]
1539 --pdfdir=DIR pdf documentation [DOCDIR]
1540 --psdir=DIR ps documentation [DOCDIR]
1541 _ACEOF
1543 cat <<\_ACEOF
1545 Program names:
1546 --program-prefix=PREFIX prepend PREFIX to installed program names
1547 --program-suffix=SUFFIX append SUFFIX to installed program names
1548 --program-transform-name=PROGRAM run sed PROGRAM on installed program names
1550 System types:
1551 --build=BUILD configure for building on BUILD [guessed]
1552 --host=HOST cross-compile to build programs to run on HOST [BUILD]
1553 --target=TARGET configure for building compilers for TARGET [HOST]
1554 _ACEOF
1557 if test -n "$ac_init_help"; then
1559 cat <<\_ACEOF
1561 Optional Features:
1562 --disable-option-checking ignore unrecognized --enable/--with options
1563 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
1564 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
1565 --enable-generated-files-in-srcdir
1566 put copies of generated files in source dir intended
1567 for creating source tarballs for users without
1568 texinfo bison or flex
1569 --disable-largefile omit support for large files
1570 --enable-werror-always enable -Werror despite compiler version
1571 --enable-checking[=LIST]
1572 enable expensive run-time checks. With LIST, enable
1573 only specific categories of checks. Categories are:
1574 yes,no,all,none,release. Flags are:
1575 assert,df,fold,gc,gcac,gimple,misc,
1576 rtlflag,rtl,runtime,tree,valgrind,types
1577 --enable-coverage[=LEVEL]
1578 enable compiler's code coverage collection. Use to
1579 measure compiler performance and locate unused parts
1580 of the compiler. With LEVEL, specify optimization.
1581 Values are opt, noopt, default is noopt
1582 --enable-gather-detailed-mem-stats
1583 enable detailed memory allocation stats gathering
1584 --enable-multilib enable library support for multiple ABIs
1585 --enable-multiarch enable support for multiarch paths
1586 --enable-__cxa_atexit enable __cxa_atexit for C++
1587 --enable-decimal-float={no,yes,bid,dpd}
1588 enable decimal float extension to C. Selecting 'bid'
1589 or 'dpd' choses which decimal floating point format
1590 to use
1591 --enable-fixed-point enable fixed-point arithmetic extension to C
1592 --enable-threads[=LIB] enable thread usage for target GCC, using LIB thread
1593 package
1594 --enable-tls enable or disable generation of tls code overriding
1595 the assembler check for tls support
1596 --enable-objc-gc enable the use of Boehm's garbage collector with the
1597 GNU Objective-C runtime
1598 --disable-shared don't provide a shared libgcc
1599 --enable-languages=LIST specify which front-ends to build
1600 --disable-rpath do not hardcode runtime library paths
1601 --enable-sjlj-exceptions
1602 arrange to use setjmp/longjmp exception handling
1603 --enable-secureplt enable -msecure-plt by default for PowerPC
1604 --enable-leading-mingw64-underscores
1605 enable leading underscores on 64 bit mingw targets
1606 --enable-cld enable -mcld by default for 32bit x86
1607 --enable-frame-pointer enable -fno-omit-frame-pointer by default for 32bit
1609 --disable-win32-registry
1610 disable lookup of installation paths in the Registry
1611 on Windows hosts
1612 --enable-win32-registry enable registry lookup (default)
1613 --enable-win32-registry=KEY
1614 use KEY instead of GCC version as the last portion
1615 of the registry key
1616 --enable-shared[=PKGS] build shared libraries [default=yes]
1617 --enable-static[=PKGS] build static libraries [default=yes]
1618 --enable-fast-install[=PKGS]
1619 optimize for fast installation [default=yes]
1620 --disable-libtool-lock avoid locking (might break parallel builds)
1621 --enable-gnu-indirect-function
1622 enable the use of the @gnu_indirect_function to
1623 glibc systems
1624 --enable-initfini-array use .init_array/.fini_array sections
1625 --enable-comdat enable COMDAT group support
1626 --enable-gnu-unique-object
1627 enable the use of the @gnu_unique_object ELF
1628 extension on glibc systems
1629 --enable-linker-build-id
1630 compiler will always pass --build-id to linker
1631 --enable-maintainer-mode
1632 enable make rules and dependencies not useful (and
1633 sometimes confusing) to the casual installer
1634 --enable-version-specific-runtime-libs
1635 specify that runtime libraries should be installed
1636 in a compiler-specific directory
1637 --enable-canonical-prefixes
1638 enable or disable prefix canonicalization
1639 --enable-plugin enable plugin support
1640 --disable-libquadmath-support
1641 disable libquadmath support for Fortran
1643 Optional Packages:
1644 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1645 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
1646 --with-build-libsubdir=DIR Directory where to find libraries for build system
1647 --with-local-prefix=DIR specifies directory to put local include
1648 --with-gxx-include-dir=DIR
1649 specifies directory to put g++ header files
1650 --with-cpp-install-dir=DIR
1651 install the user visible C preprocessor in DIR
1652 (relative to PREFIX) as well as PREFIX/bin
1653 --with-gnu-ld arrange to work with GNU ld
1654 --with-ld arrange to use the specified ld (full pathname)
1655 --with-demangler-in-ld try to use demangler in GNU ld
1656 --with-gnu-as arrange to work with GNU as
1657 --with-as arrange to use the specified as (full pathname)
1658 --with-stabs arrange to use stabs instead of host debug format
1659 --with-dwarf2 force the default debug format to be DWARF 2
1660 --with-native-system-header-dir=dir
1661 use dir as the directory to look for standard
1662 system header files in. Defaults to /usr/include.
1663 --with-build-sysroot=sysroot
1664 use sysroot as the system root during the build
1665 --with-runtime-root-prefix=prefix
1666 prepend prefix to paths used by the compiler to
1667 name the dynamic linker and other files used at
1668 runtime. Defaults to empty (no prefix).
1669 --with-sysroot[=DIR] search for usr/lib, usr/include, et al, within DIR
1670 --with-specs=SPECS add SPECS to driver command-line processing
1671 --with-pkgversion=PKG Use PKG in the version string in place of "GCC"
1672 --with-bugurl=URL Direct users to URL to report a bug
1673 --with-multilib-list select multilibs (SH and x86-64 only)
1674 --with-gnu-ld assume the C compiler uses GNU ld default=no
1675 --with-libiconv-prefix[=DIR] search for libiconv in DIR/include and DIR/lib
1676 --without-libiconv-prefix don't search for libiconv in includedir and libdir
1677 --with-pic try to use only PIC/non-PIC objects [default=use
1678 both]
1679 --with-gnu-ld assume the C compiler uses GNU ld [default=no]
1680 --with-plugin-ld=[ARG] specify the plugin linker
1681 --with-long-double-128 use 128-bit long double by default
1682 --with-gc={page,zone} this option is not supported anymore. It used to
1683 choose the garbage collection mechanism to use with
1684 the compiler
1685 --with-system-zlib use installed libz
1686 --with-warn-frame-larger-than-extra-text=TEXT
1687 specifies extra text for frame size warnings
1688 --with-linker-hash-style={sysv,gnu,both}
1689 specify the linker hash style
1691 Some influential environment variables:
1692 CC C compiler command
1693 CFLAGS C compiler flags
1694 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1695 nonstandard directory <lib dir>
1696 LIBS libraries to pass to the linker, e.g. -l<library>
1697 CPPFLAGS C/C++/Objective C preprocessor flags, e.g. -I<include dir> if
1698 you have headers in a nonstandard directory <include dir>
1699 CXX C++ compiler command
1700 CXXFLAGS C++ compiler flags
1701 CPP C preprocessor
1702 CXXCPP C++ preprocessor
1703 GMPLIBS How to link GMP
1704 GMPINC How to find GMP include files
1705 ISLLIBS How to link ISL
1706 ISLINC How to find ISL include files
1707 CLOOGLIBS How to link CLOOG
1708 CLOOGINC How to find CLOOG include files
1710 Use these variables to override the choices made by `configure' or to help
1711 it to find libraries and programs with nonstandard names/locations.
1713 Report bugs to the package provider.
1714 _ACEOF
1715 ac_status=$?
1718 if test "$ac_init_help" = "recursive"; then
1719 # If there are subdirs, report their specific --help.
1720 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1721 test -d "$ac_dir" ||
1722 { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1723 continue
1724 ac_builddir=.
1726 case "$ac_dir" in
1727 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1729 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
1730 # A ".." for each directory in $ac_dir_suffix.
1731 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
1732 case $ac_top_builddir_sub in
1733 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1734 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1735 esac ;;
1736 esac
1737 ac_abs_top_builddir=$ac_pwd
1738 ac_abs_builddir=$ac_pwd$ac_dir_suffix
1739 # for backward compatibility:
1740 ac_top_builddir=$ac_top_build_prefix
1742 case $srcdir in
1743 .) # We are building in place.
1744 ac_srcdir=.
1745 ac_top_srcdir=$ac_top_builddir_sub
1746 ac_abs_top_srcdir=$ac_pwd ;;
1747 [\\/]* | ?:[\\/]* ) # Absolute name.
1748 ac_srcdir=$srcdir$ac_dir_suffix;
1749 ac_top_srcdir=$srcdir
1750 ac_abs_top_srcdir=$srcdir ;;
1751 *) # Relative name.
1752 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1753 ac_top_srcdir=$ac_top_build_prefix$srcdir
1754 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1755 esac
1756 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1758 cd "$ac_dir" || { ac_status=$?; continue; }
1759 # Check for guested configure.
1760 if test -f "$ac_srcdir/configure.gnu"; then
1761 echo &&
1762 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1763 elif test -f "$ac_srcdir/configure"; then
1764 echo &&
1765 $SHELL "$ac_srcdir/configure" --help=recursive
1766 else
1767 $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1768 fi || ac_status=$?
1769 cd "$ac_pwd" || { ac_status=$?; break; }
1770 done
1773 test -n "$ac_init_help" && exit $ac_status
1774 if $ac_init_version; then
1775 cat <<\_ACEOF
1776 configure
1777 generated by GNU Autoconf 2.64
1779 Copyright (C) 2009 Free Software Foundation, Inc.
1780 This configure script is free software; the Free Software Foundation
1781 gives unlimited permission to copy, distribute and modify it.
1782 _ACEOF
1783 exit
1786 ## ------------------------ ##
1787 ## Autoconf initialization. ##
1788 ## ------------------------ ##
1790 # ac_fn_c_try_compile LINENO
1791 # --------------------------
1792 # Try to compile conftest.$ac_ext, and return whether this succeeded.
1793 ac_fn_c_try_compile ()
1795 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1796 rm -f conftest.$ac_objext
1797 if { { ac_try="$ac_compile"
1798 case "(($ac_try" in
1799 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1800 *) ac_try_echo=$ac_try;;
1801 esac
1802 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1803 $as_echo "$ac_try_echo"; } >&5
1804 (eval "$ac_compile") 2>conftest.err
1805 ac_status=$?
1806 if test -s conftest.err; then
1807 grep -v '^ *+' conftest.err >conftest.er1
1808 cat conftest.er1 >&5
1809 mv -f conftest.er1 conftest.err
1811 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1812 test $ac_status = 0; } && {
1813 test -z "$ac_c_werror_flag" ||
1814 test ! -s conftest.err
1815 } && test -s conftest.$ac_objext; then :
1816 ac_retval=0
1817 else
1818 $as_echo "$as_me: failed program was:" >&5
1819 sed 's/^/| /' conftest.$ac_ext >&5
1821 ac_retval=1
1823 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1824 return $ac_retval
1826 } # ac_fn_c_try_compile
1828 # ac_fn_cxx_try_compile LINENO
1829 # ----------------------------
1830 # Try to compile conftest.$ac_ext, and return whether this succeeded.
1831 ac_fn_cxx_try_compile ()
1833 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1834 rm -f conftest.$ac_objext
1835 if { { ac_try="$ac_compile"
1836 case "(($ac_try" in
1837 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1838 *) ac_try_echo=$ac_try;;
1839 esac
1840 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1841 $as_echo "$ac_try_echo"; } >&5
1842 (eval "$ac_compile") 2>conftest.err
1843 ac_status=$?
1844 if test -s conftest.err; then
1845 grep -v '^ *+' conftest.err >conftest.er1
1846 cat conftest.er1 >&5
1847 mv -f conftest.er1 conftest.err
1849 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1850 test $ac_status = 0; } && {
1851 test -z "$ac_cxx_werror_flag" ||
1852 test ! -s conftest.err
1853 } && test -s conftest.$ac_objext; then :
1854 ac_retval=0
1855 else
1856 $as_echo "$as_me: failed program was:" >&5
1857 sed 's/^/| /' conftest.$ac_ext >&5
1859 ac_retval=1
1861 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1862 return $ac_retval
1864 } # ac_fn_cxx_try_compile
1866 # ac_fn_c_try_cpp LINENO
1867 # ----------------------
1868 # Try to preprocess conftest.$ac_ext, and return whether this succeeded.
1869 ac_fn_c_try_cpp ()
1871 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1872 if { { ac_try="$ac_cpp conftest.$ac_ext"
1873 case "(($ac_try" in
1874 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1875 *) ac_try_echo=$ac_try;;
1876 esac
1877 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1878 $as_echo "$ac_try_echo"; } >&5
1879 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
1880 ac_status=$?
1881 if test -s conftest.err; then
1882 grep -v '^ *+' conftest.err >conftest.er1
1883 cat conftest.er1 >&5
1884 mv -f conftest.er1 conftest.err
1886 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1887 test $ac_status = 0; } >/dev/null && {
1888 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
1889 test ! -s conftest.err
1890 }; then :
1891 ac_retval=0
1892 else
1893 $as_echo "$as_me: failed program was:" >&5
1894 sed 's/^/| /' conftest.$ac_ext >&5
1896 ac_retval=1
1898 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1899 return $ac_retval
1901 } # ac_fn_c_try_cpp
1903 # ac_fn_c_check_header_mongrel LINENO HEADER VAR INCLUDES
1904 # -------------------------------------------------------
1905 # Tests whether HEADER exists, giving a warning if it cannot be compiled using
1906 # the include files in INCLUDES and setting the cache variable VAR
1907 # accordingly.
1908 ac_fn_c_check_header_mongrel ()
1910 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1911 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
1912 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1913 $as_echo_n "checking for $2... " >&6; }
1914 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
1915 $as_echo_n "(cached) " >&6
1917 eval ac_res=\$$3
1918 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1919 $as_echo "$ac_res" >&6; }
1920 else
1921 # Is the header compilable?
1922 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5
1923 $as_echo_n "checking $2 usability... " >&6; }
1924 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1925 /* end confdefs.h. */
1927 #include <$2>
1928 _ACEOF
1929 if ac_fn_c_try_compile "$LINENO"; then :
1930 ac_header_compiler=yes
1931 else
1932 ac_header_compiler=no
1934 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1935 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5
1936 $as_echo "$ac_header_compiler" >&6; }
1938 # Is the header present?
1939 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5
1940 $as_echo_n "checking $2 presence... " >&6; }
1941 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1942 /* end confdefs.h. */
1943 #include <$2>
1944 _ACEOF
1945 if ac_fn_c_try_cpp "$LINENO"; then :
1946 ac_header_preproc=yes
1947 else
1948 ac_header_preproc=no
1950 rm -f conftest.err conftest.$ac_ext
1951 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5
1952 $as_echo "$ac_header_preproc" >&6; }
1954 # So? What about this header?
1955 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in #((
1956 yes:no: )
1957 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5
1958 $as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;}
1959 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
1960 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
1962 no:yes:* )
1963 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5
1964 $as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;}
1965 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: check for missing prerequisite headers?" >&5
1966 $as_echo "$as_me: WARNING: $2: check for missing prerequisite headers?" >&2;}
1967 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5
1968 $as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;}
1969 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&5
1970 $as_echo "$as_me: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&2;}
1971 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
1972 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
1974 esac
1975 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1976 $as_echo_n "checking for $2... " >&6; }
1977 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
1978 $as_echo_n "(cached) " >&6
1979 else
1980 eval "$3=\$ac_header_compiler"
1982 eval ac_res=\$$3
1983 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1984 $as_echo "$ac_res" >&6; }
1986 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1988 } # ac_fn_c_check_header_mongrel
1990 # ac_fn_c_try_run LINENO
1991 # ----------------------
1992 # Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
1993 # that executables *can* be run.
1994 ac_fn_c_try_run ()
1996 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1997 if { { ac_try="$ac_link"
1998 case "(($ac_try" in
1999 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2000 *) ac_try_echo=$ac_try;;
2001 esac
2002 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2003 $as_echo "$ac_try_echo"; } >&5
2004 (eval "$ac_link") 2>&5
2005 ac_status=$?
2006 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2007 test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
2008 { { case "(($ac_try" in
2009 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2010 *) ac_try_echo=$ac_try;;
2011 esac
2012 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2013 $as_echo "$ac_try_echo"; } >&5
2014 (eval "$ac_try") 2>&5
2015 ac_status=$?
2016 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2017 test $ac_status = 0; }; }; then :
2018 ac_retval=0
2019 else
2020 $as_echo "$as_me: program exited with status $ac_status" >&5
2021 $as_echo "$as_me: failed program was:" >&5
2022 sed 's/^/| /' conftest.$ac_ext >&5
2024 ac_retval=$ac_status
2026 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
2027 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2028 return $ac_retval
2030 } # ac_fn_c_try_run
2032 # ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
2033 # -------------------------------------------------------
2034 # Tests whether HEADER exists and can be compiled using the include files in
2035 # INCLUDES, setting the cache variable VAR accordingly.
2036 ac_fn_c_check_header_compile ()
2038 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2039 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2040 $as_echo_n "checking for $2... " >&6; }
2041 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
2042 $as_echo_n "(cached) " >&6
2043 else
2044 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2045 /* end confdefs.h. */
2047 #include <$2>
2048 _ACEOF
2049 if ac_fn_c_try_compile "$LINENO"; then :
2050 eval "$3=yes"
2051 else
2052 eval "$3=no"
2054 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2056 eval ac_res=\$$3
2057 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2058 $as_echo "$ac_res" >&6; }
2059 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2061 } # ac_fn_c_check_header_compile
2063 # ac_fn_c_compute_int LINENO EXPR VAR INCLUDES
2064 # --------------------------------------------
2065 # Tries to find the compile-time value of EXPR in a program that includes
2066 # INCLUDES, setting VAR accordingly. Returns whether the value could be
2067 # computed
2068 ac_fn_c_compute_int ()
2070 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2071 if test "$cross_compiling" = yes; then
2072 # Depending upon the size, compute the lo and hi bounds.
2073 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2074 /* end confdefs.h. */
2077 main ()
2079 static int test_array [1 - 2 * !(($2) >= 0)];
2080 test_array [0] = 0
2083 return 0;
2085 _ACEOF
2086 if ac_fn_c_try_compile "$LINENO"; then :
2087 ac_lo=0 ac_mid=0
2088 while :; do
2089 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2090 /* end confdefs.h. */
2093 main ()
2095 static int test_array [1 - 2 * !(($2) <= $ac_mid)];
2096 test_array [0] = 0
2099 return 0;
2101 _ACEOF
2102 if ac_fn_c_try_compile "$LINENO"; then :
2103 ac_hi=$ac_mid; break
2104 else
2105 as_fn_arith $ac_mid + 1 && ac_lo=$as_val
2106 if test $ac_lo -le $ac_mid; then
2107 ac_lo= ac_hi=
2108 break
2110 as_fn_arith 2 '*' $ac_mid + 1 && ac_mid=$as_val
2112 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2113 done
2114 else
2115 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2116 /* end confdefs.h. */
2119 main ()
2121 static int test_array [1 - 2 * !(($2) < 0)];
2122 test_array [0] = 0
2125 return 0;
2127 _ACEOF
2128 if ac_fn_c_try_compile "$LINENO"; then :
2129 ac_hi=-1 ac_mid=-1
2130 while :; do
2131 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2132 /* end confdefs.h. */
2135 main ()
2137 static int test_array [1 - 2 * !(($2) >= $ac_mid)];
2138 test_array [0] = 0
2141 return 0;
2143 _ACEOF
2144 if ac_fn_c_try_compile "$LINENO"; then :
2145 ac_lo=$ac_mid; break
2146 else
2147 as_fn_arith '(' $ac_mid ')' - 1 && ac_hi=$as_val
2148 if test $ac_mid -le $ac_hi; then
2149 ac_lo= ac_hi=
2150 break
2152 as_fn_arith 2 '*' $ac_mid && ac_mid=$as_val
2154 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2155 done
2156 else
2157 ac_lo= ac_hi=
2159 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2161 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2162 # Binary search between lo and hi bounds.
2163 while test "x$ac_lo" != "x$ac_hi"; do
2164 as_fn_arith '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo && ac_mid=$as_val
2165 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2166 /* end confdefs.h. */
2169 main ()
2171 static int test_array [1 - 2 * !(($2) <= $ac_mid)];
2172 test_array [0] = 0
2175 return 0;
2177 _ACEOF
2178 if ac_fn_c_try_compile "$LINENO"; then :
2179 ac_hi=$ac_mid
2180 else
2181 as_fn_arith '(' $ac_mid ')' + 1 && ac_lo=$as_val
2183 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2184 done
2185 case $ac_lo in #((
2186 ?*) eval "$3=\$ac_lo"; ac_retval=0 ;;
2187 '') ac_retval=1 ;;
2188 esac
2189 else
2190 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2191 /* end confdefs.h. */
2193 static long int longval () { return $2; }
2194 static unsigned long int ulongval () { return $2; }
2195 #include <stdio.h>
2196 #include <stdlib.h>
2198 main ()
2201 FILE *f = fopen ("conftest.val", "w");
2202 if (! f)
2203 return 1;
2204 if (($2) < 0)
2206 long int i = longval ();
2207 if (i != ($2))
2208 return 1;
2209 fprintf (f, "%ld", i);
2211 else
2213 unsigned long int i = ulongval ();
2214 if (i != ($2))
2215 return 1;
2216 fprintf (f, "%lu", i);
2218 /* Do not output a trailing newline, as this causes \r\n confusion
2219 on some platforms. */
2220 return ferror (f) || fclose (f) != 0;
2223 return 0;
2225 _ACEOF
2226 if ac_fn_c_try_run "$LINENO"; then :
2227 echo >>conftest.val; read $3 <conftest.val; ac_retval=0
2228 else
2229 ac_retval=1
2231 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
2232 conftest.$ac_objext conftest.beam conftest.$ac_ext
2233 rm -f conftest.val
2236 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2237 return $ac_retval
2239 } # ac_fn_c_compute_int
2241 # ac_fn_c_check_type LINENO TYPE VAR INCLUDES
2242 # -------------------------------------------
2243 # Tests whether TYPE exists after having included INCLUDES, setting cache
2244 # variable VAR accordingly.
2245 ac_fn_c_check_type ()
2247 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2248 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2249 $as_echo_n "checking for $2... " >&6; }
2250 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
2251 $as_echo_n "(cached) " >&6
2252 else
2253 eval "$3=no"
2254 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2255 /* end confdefs.h. */
2258 main ()
2260 if (sizeof ($2))
2261 return 0;
2263 return 0;
2265 _ACEOF
2266 if ac_fn_c_try_compile "$LINENO"; then :
2267 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2268 /* end confdefs.h. */
2271 main ()
2273 if (sizeof (($2)))
2274 return 0;
2276 return 0;
2278 _ACEOF
2279 if ac_fn_c_try_compile "$LINENO"; then :
2281 else
2282 eval "$3=yes"
2284 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2286 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2288 eval ac_res=\$$3
2289 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2290 $as_echo "$ac_res" >&6; }
2291 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2293 } # ac_fn_c_check_type
2295 # ac_fn_c_find_intX_t LINENO BITS VAR
2296 # -----------------------------------
2297 # Finds a signed integer type with width BITS, setting cache variable VAR
2298 # accordingly.
2299 ac_fn_c_find_intX_t ()
2301 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2302 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for int$2_t" >&5
2303 $as_echo_n "checking for int$2_t... " >&6; }
2304 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
2305 $as_echo_n "(cached) " >&6
2306 else
2307 eval "$3=no"
2308 for ac_type in int$2_t 'int' 'long int' \
2309 'long long int' 'short int' 'signed char'; do
2310 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2311 /* end confdefs.h. */
2312 $ac_includes_default
2314 main ()
2316 static int test_array [1 - 2 * !(0 < ($ac_type) (((($ac_type) 1 << ($2 - 2)) - 1) * 2 + 1))];
2317 test_array [0] = 0
2320 return 0;
2322 _ACEOF
2323 if ac_fn_c_try_compile "$LINENO"; then :
2324 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2325 /* end confdefs.h. */
2326 $ac_includes_default
2328 main ()
2330 static int test_array [1 - 2 * !(($ac_type) (((($ac_type) 1 << ($2 - 2)) - 1) * 2 + 1)
2331 < ($ac_type) (((($ac_type) 1 << ($2 - 2)) - 1) * 2 + 2))];
2332 test_array [0] = 0
2335 return 0;
2337 _ACEOF
2338 if ac_fn_c_try_compile "$LINENO"; then :
2340 else
2341 case $ac_type in #(
2342 int$2_t) :
2343 eval "$3=yes" ;; #(
2344 *) :
2345 eval "$3=\$ac_type" ;;
2346 esac
2348 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2350 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2351 eval as_val=\$$3
2352 if test "x$as_val" = x""no; then :
2354 else
2355 break
2357 done
2359 eval ac_res=\$$3
2360 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2361 $as_echo "$ac_res" >&6; }
2362 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2364 } # ac_fn_c_find_intX_t
2366 # ac_fn_c_try_link LINENO
2367 # -----------------------
2368 # Try to link conftest.$ac_ext, and return whether this succeeded.
2369 ac_fn_c_try_link ()
2371 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2372 rm -f conftest.$ac_objext conftest$ac_exeext
2373 if { { ac_try="$ac_link"
2374 case "(($ac_try" in
2375 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2376 *) ac_try_echo=$ac_try;;
2377 esac
2378 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2379 $as_echo "$ac_try_echo"; } >&5
2380 (eval "$ac_link") 2>conftest.err
2381 ac_status=$?
2382 if test -s conftest.err; then
2383 grep -v '^ *+' conftest.err >conftest.er1
2384 cat conftest.er1 >&5
2385 mv -f conftest.er1 conftest.err
2387 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2388 test $ac_status = 0; } && {
2389 test -z "$ac_c_werror_flag" ||
2390 test ! -s conftest.err
2391 } && test -s conftest$ac_exeext && {
2392 test "$cross_compiling" = yes ||
2393 $as_test_x conftest$ac_exeext
2394 }; then :
2395 ac_retval=0
2396 else
2397 $as_echo "$as_me: failed program was:" >&5
2398 sed 's/^/| /' conftest.$ac_ext >&5
2400 ac_retval=1
2402 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
2403 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
2404 # interfere with the next link command; also delete a directory that is
2405 # left behind by Apple's compiler. We do this before executing the actions.
2406 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
2407 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2408 return $ac_retval
2410 } # ac_fn_c_try_link
2412 # ac_fn_c_find_uintX_t LINENO BITS VAR
2413 # ------------------------------------
2414 # Finds an unsigned integer type with width BITS, setting cache variable VAR
2415 # accordingly.
2416 ac_fn_c_find_uintX_t ()
2418 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2419 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for uint$2_t" >&5
2420 $as_echo_n "checking for uint$2_t... " >&6; }
2421 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
2422 $as_echo_n "(cached) " >&6
2423 else
2424 eval "$3=no"
2425 for ac_type in uint$2_t 'unsigned int' 'unsigned long int' \
2426 'unsigned long long int' 'unsigned short int' 'unsigned char'; do
2427 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2428 /* end confdefs.h. */
2429 $ac_includes_default
2431 main ()
2433 static int test_array [1 - 2 * !(($ac_type) -1 >> ($2 - 1) == 1)];
2434 test_array [0] = 0
2437 return 0;
2439 _ACEOF
2440 if ac_fn_c_try_compile "$LINENO"; then :
2441 case $ac_type in #(
2442 uint$2_t) :
2443 eval "$3=yes" ;; #(
2444 *) :
2445 eval "$3=\$ac_type" ;;
2446 esac
2448 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2449 eval as_val=\$$3
2450 if test "x$as_val" = x""no; then :
2452 else
2453 break
2455 done
2457 eval ac_res=\$$3
2458 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2459 $as_echo "$ac_res" >&6; }
2460 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2462 } # ac_fn_c_find_uintX_t
2464 # ac_fn_c_check_header_preproc LINENO HEADER VAR
2465 # ----------------------------------------------
2466 # Tests whether HEADER is present, setting the cache variable VAR accordingly.
2467 ac_fn_c_check_header_preproc ()
2469 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2470 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2471 $as_echo_n "checking for $2... " >&6; }
2472 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
2473 $as_echo_n "(cached) " >&6
2474 else
2475 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2476 /* end confdefs.h. */
2477 #include <$2>
2478 _ACEOF
2479 if ac_fn_c_try_cpp "$LINENO"; then :
2480 eval "$3=yes"
2481 else
2482 eval "$3=no"
2484 rm -f conftest.err conftest.$ac_ext
2486 eval ac_res=\$$3
2487 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2488 $as_echo "$ac_res" >&6; }
2489 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2491 } # ac_fn_c_check_header_preproc
2493 # ac_fn_cxx_try_cpp LINENO
2494 # ------------------------
2495 # Try to preprocess conftest.$ac_ext, and return whether this succeeded.
2496 ac_fn_cxx_try_cpp ()
2498 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2499 if { { ac_try="$ac_cpp conftest.$ac_ext"
2500 case "(($ac_try" in
2501 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2502 *) ac_try_echo=$ac_try;;
2503 esac
2504 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2505 $as_echo "$ac_try_echo"; } >&5
2506 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
2507 ac_status=$?
2508 if test -s conftest.err; then
2509 grep -v '^ *+' conftest.err >conftest.er1
2510 cat conftest.er1 >&5
2511 mv -f conftest.er1 conftest.err
2513 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2514 test $ac_status = 0; } >/dev/null && {
2515 test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
2516 test ! -s conftest.err
2517 }; then :
2518 ac_retval=0
2519 else
2520 $as_echo "$as_me: failed program was:" >&5
2521 sed 's/^/| /' conftest.$ac_ext >&5
2523 ac_retval=1
2525 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2526 return $ac_retval
2528 } # ac_fn_cxx_try_cpp
2530 # ac_fn_cxx_check_header_preproc LINENO HEADER VAR
2531 # ------------------------------------------------
2532 # Tests whether HEADER is present, setting the cache variable VAR accordingly.
2533 ac_fn_cxx_check_header_preproc ()
2535 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2536 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2537 $as_echo_n "checking for $2... " >&6; }
2538 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
2539 $as_echo_n "(cached) " >&6
2540 else
2541 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2542 /* end confdefs.h. */
2543 #include <$2>
2544 _ACEOF
2545 if ac_fn_cxx_try_cpp "$LINENO"; then :
2546 eval "$3=yes"
2547 else
2548 eval "$3=no"
2550 rm -f conftest.err conftest.$ac_ext
2552 eval ac_res=\$$3
2553 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2554 $as_echo "$ac_res" >&6; }
2555 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2557 } # ac_fn_cxx_check_header_preproc
2559 # ac_fn_c_check_func LINENO FUNC VAR
2560 # ----------------------------------
2561 # Tests whether FUNC exists, setting the cache variable VAR accordingly
2562 ac_fn_c_check_func ()
2564 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2565 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2566 $as_echo_n "checking for $2... " >&6; }
2567 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
2568 $as_echo_n "(cached) " >&6
2569 else
2570 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2571 /* end confdefs.h. */
2572 /* Define $2 to an innocuous variant, in case <limits.h> declares $2.
2573 For example, HP-UX 11i <limits.h> declares gettimeofday. */
2574 #define $2 innocuous_$2
2576 /* System header to define __stub macros and hopefully few prototypes,
2577 which can conflict with char $2 (); below.
2578 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
2579 <limits.h> exists even on freestanding compilers. */
2581 #ifdef __STDC__
2582 # include <limits.h>
2583 #else
2584 # include <assert.h>
2585 #endif
2587 #undef $2
2589 /* Override any GCC internal prototype to avoid an error.
2590 Use char because int might match the return type of a GCC
2591 builtin and then its argument prototype would still apply. */
2592 #ifdef __cplusplus
2593 extern "C"
2594 #endif
2595 char $2 ();
2596 /* The GNU C library defines this for functions which it implements
2597 to always fail with ENOSYS. Some functions are actually named
2598 something starting with __ and the normal name is an alias. */
2599 #if defined __stub_$2 || defined __stub___$2
2600 choke me
2601 #endif
2604 main ()
2606 return $2 ();
2608 return 0;
2610 _ACEOF
2611 if ac_fn_c_try_link "$LINENO"; then :
2612 eval "$3=yes"
2613 else
2614 eval "$3=no"
2616 rm -f core conftest.err conftest.$ac_objext \
2617 conftest$ac_exeext conftest.$ac_ext
2619 eval ac_res=\$$3
2620 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2621 $as_echo "$ac_res" >&6; }
2622 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2624 } # ac_fn_c_check_func
2626 # ac_fn_cxx_try_link LINENO
2627 # -------------------------
2628 # Try to link conftest.$ac_ext, and return whether this succeeded.
2629 ac_fn_cxx_try_link ()
2631 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2632 rm -f conftest.$ac_objext conftest$ac_exeext
2633 if { { ac_try="$ac_link"
2634 case "(($ac_try" in
2635 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2636 *) ac_try_echo=$ac_try;;
2637 esac
2638 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2639 $as_echo "$ac_try_echo"; } >&5
2640 (eval "$ac_link") 2>conftest.err
2641 ac_status=$?
2642 if test -s conftest.err; then
2643 grep -v '^ *+' conftest.err >conftest.er1
2644 cat conftest.er1 >&5
2645 mv -f conftest.er1 conftest.err
2647 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2648 test $ac_status = 0; } && {
2649 test -z "$ac_cxx_werror_flag" ||
2650 test ! -s conftest.err
2651 } && test -s conftest$ac_exeext && {
2652 test "$cross_compiling" = yes ||
2653 $as_test_x conftest$ac_exeext
2654 }; then :
2655 ac_retval=0
2656 else
2657 $as_echo "$as_me: failed program was:" >&5
2658 sed 's/^/| /' conftest.$ac_ext >&5
2660 ac_retval=1
2662 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
2663 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
2664 # interfere with the next link command; also delete a directory that is
2665 # left behind by Apple's compiler. We do this before executing the actions.
2666 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
2667 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2668 return $ac_retval
2670 } # ac_fn_cxx_try_link
2671 cat >config.log <<_ACEOF
2672 This file contains any messages produced by compilers while
2673 running configure, to aid debugging if configure makes a mistake.
2675 It was created by $as_me, which was
2676 generated by GNU Autoconf 2.64. Invocation command line was
2678 $ $0 $@
2680 _ACEOF
2681 exec 5>>config.log
2683 cat <<_ASUNAME
2684 ## --------- ##
2685 ## Platform. ##
2686 ## --------- ##
2688 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
2689 uname -m = `(uname -m) 2>/dev/null || echo unknown`
2690 uname -r = `(uname -r) 2>/dev/null || echo unknown`
2691 uname -s = `(uname -s) 2>/dev/null || echo unknown`
2692 uname -v = `(uname -v) 2>/dev/null || echo unknown`
2694 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
2695 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
2697 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
2698 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
2699 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
2700 /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
2701 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
2702 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
2703 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
2705 _ASUNAME
2707 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2708 for as_dir in $PATH
2710 IFS=$as_save_IFS
2711 test -z "$as_dir" && as_dir=.
2712 $as_echo "PATH: $as_dir"
2713 done
2714 IFS=$as_save_IFS
2716 } >&5
2718 cat >&5 <<_ACEOF
2721 ## ----------- ##
2722 ## Core tests. ##
2723 ## ----------- ##
2725 _ACEOF
2728 # Keep a trace of the command line.
2729 # Strip out --no-create and --no-recursion so they do not pile up.
2730 # Strip out --silent because we don't want to record it for future runs.
2731 # Also quote any args containing shell meta-characters.
2732 # Make two passes to allow for proper duplicate-argument suppression.
2733 ac_configure_args=
2734 ac_configure_args0=
2735 ac_configure_args1=
2736 ac_must_keep_next=false
2737 for ac_pass in 1 2
2739 for ac_arg
2741 case $ac_arg in
2742 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
2743 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
2744 | -silent | --silent | --silen | --sile | --sil)
2745 continue ;;
2746 *\'*)
2747 ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
2748 esac
2749 case $ac_pass in
2750 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
2752 as_fn_append ac_configure_args1 " '$ac_arg'"
2753 if test $ac_must_keep_next = true; then
2754 ac_must_keep_next=false # Got value, back to normal.
2755 else
2756 case $ac_arg in
2757 *=* | --config-cache | -C | -disable-* | --disable-* \
2758 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
2759 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
2760 | -with-* | --with-* | -without-* | --without-* | --x)
2761 case "$ac_configure_args0 " in
2762 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
2763 esac
2765 -* ) ac_must_keep_next=true ;;
2766 esac
2768 as_fn_append ac_configure_args " '$ac_arg'"
2770 esac
2771 done
2772 done
2773 { ac_configure_args0=; unset ac_configure_args0;}
2774 { ac_configure_args1=; unset ac_configure_args1;}
2776 # When interrupted or exit'd, cleanup temporary files, and complete
2777 # config.log. We remove comments because anyway the quotes in there
2778 # would cause problems or look ugly.
2779 # WARNING: Use '\'' to represent an apostrophe within the trap.
2780 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
2781 trap 'exit_status=$?
2782 # Save into config.log some information that might help in debugging.
2784 echo
2786 cat <<\_ASBOX
2787 ## ---------------- ##
2788 ## Cache variables. ##
2789 ## ---------------- ##
2790 _ASBOX
2791 echo
2792 # The following way of writing the cache mishandles newlines in values,
2794 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
2795 eval ac_val=\$$ac_var
2796 case $ac_val in #(
2797 *${as_nl}*)
2798 case $ac_var in #(
2799 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
2800 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
2801 esac
2802 case $ac_var in #(
2803 _ | IFS | as_nl) ;; #(
2804 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
2805 *) { eval $ac_var=; unset $ac_var;} ;;
2806 esac ;;
2807 esac
2808 done
2809 (set) 2>&1 |
2810 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
2811 *${as_nl}ac_space=\ *)
2812 sed -n \
2813 "s/'\''/'\''\\\\'\'''\''/g;
2814 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
2815 ;; #(
2817 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
2819 esac |
2820 sort
2822 echo
2824 cat <<\_ASBOX
2825 ## ----------------- ##
2826 ## Output variables. ##
2827 ## ----------------- ##
2828 _ASBOX
2829 echo
2830 for ac_var in $ac_subst_vars
2832 eval ac_val=\$$ac_var
2833 case $ac_val in
2834 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2835 esac
2836 $as_echo "$ac_var='\''$ac_val'\''"
2837 done | sort
2838 echo
2840 if test -n "$ac_subst_files"; then
2841 cat <<\_ASBOX
2842 ## ------------------- ##
2843 ## File substitutions. ##
2844 ## ------------------- ##
2845 _ASBOX
2846 echo
2847 for ac_var in $ac_subst_files
2849 eval ac_val=\$$ac_var
2850 case $ac_val in
2851 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2852 esac
2853 $as_echo "$ac_var='\''$ac_val'\''"
2854 done | sort
2855 echo
2858 if test -s confdefs.h; then
2859 cat <<\_ASBOX
2860 ## ----------- ##
2861 ## confdefs.h. ##
2862 ## ----------- ##
2863 _ASBOX
2864 echo
2865 cat confdefs.h
2866 echo
2868 test "$ac_signal" != 0 &&
2869 $as_echo "$as_me: caught signal $ac_signal"
2870 $as_echo "$as_me: exit $exit_status"
2871 } >&5
2872 rm -f core *.core core.conftest.* &&
2873 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
2874 exit $exit_status
2876 for ac_signal in 1 2 13 15; do
2877 trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
2878 done
2879 ac_signal=0
2881 # confdefs.h avoids OS command line length limits that DEFS can exceed.
2882 rm -f -r conftest* confdefs.h
2884 $as_echo "/* confdefs.h */" > confdefs.h
2886 # Predefined preprocessor variables.
2888 cat >>confdefs.h <<_ACEOF
2889 #define PACKAGE_NAME "$PACKAGE_NAME"
2890 _ACEOF
2892 cat >>confdefs.h <<_ACEOF
2893 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
2894 _ACEOF
2896 cat >>confdefs.h <<_ACEOF
2897 #define PACKAGE_VERSION "$PACKAGE_VERSION"
2898 _ACEOF
2900 cat >>confdefs.h <<_ACEOF
2901 #define PACKAGE_STRING "$PACKAGE_STRING"
2902 _ACEOF
2904 cat >>confdefs.h <<_ACEOF
2905 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
2906 _ACEOF
2908 cat >>confdefs.h <<_ACEOF
2909 #define PACKAGE_URL "$PACKAGE_URL"
2910 _ACEOF
2913 # Let the site file select an alternate cache file if it wants to.
2914 # Prefer an explicitly selected file to automatically selected ones.
2915 ac_site_file1=NONE
2916 ac_site_file2=NONE
2917 if test -n "$CONFIG_SITE"; then
2918 ac_site_file1=$CONFIG_SITE
2919 elif test "x$prefix" != xNONE; then
2920 ac_site_file1=$prefix/share/config.site
2921 ac_site_file2=$prefix/etc/config.site
2922 else
2923 ac_site_file1=$ac_default_prefix/share/config.site
2924 ac_site_file2=$ac_default_prefix/etc/config.site
2926 for ac_site_file in "$ac_site_file1" "$ac_site_file2"
2928 test "x$ac_site_file" = xNONE && continue
2929 if test -r "$ac_site_file"; then
2930 { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
2931 $as_echo "$as_me: loading site script $ac_site_file" >&6;}
2932 sed 's/^/| /' "$ac_site_file" >&5
2933 . "$ac_site_file"
2935 done
2937 if test -r "$cache_file"; then
2938 # Some versions of bash will fail to source /dev/null (special
2939 # files actually), so we avoid doing that.
2940 if test -f "$cache_file"; then
2941 { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
2942 $as_echo "$as_me: loading cache $cache_file" >&6;}
2943 case $cache_file in
2944 [\\/]* | ?:[\\/]* ) . "$cache_file";;
2945 *) . "./$cache_file";;
2946 esac
2948 else
2949 { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
2950 $as_echo "$as_me: creating cache $cache_file" >&6;}
2951 >$cache_file
2954 # Check that the precious variables saved in the cache have kept the same
2955 # value.
2956 ac_cache_corrupted=false
2957 for ac_var in $ac_precious_vars; do
2958 eval ac_old_set=\$ac_cv_env_${ac_var}_set
2959 eval ac_new_set=\$ac_env_${ac_var}_set
2960 eval ac_old_val=\$ac_cv_env_${ac_var}_value
2961 eval ac_new_val=\$ac_env_${ac_var}_value
2962 case $ac_old_set,$ac_new_set in
2963 set,)
2964 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
2965 $as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
2966 ac_cache_corrupted=: ;;
2967 ,set)
2968 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
2969 $as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
2970 ac_cache_corrupted=: ;;
2971 ,);;
2973 if test "x$ac_old_val" != "x$ac_new_val"; then
2974 # differences in whitespace do not lead to failure.
2975 ac_old_val_w=`echo x $ac_old_val`
2976 ac_new_val_w=`echo x $ac_new_val`
2977 if test "$ac_old_val_w" != "$ac_new_val_w"; then
2978 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
2979 $as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
2980 ac_cache_corrupted=:
2981 else
2982 { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
2983 $as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
2984 eval $ac_var=\$ac_old_val
2986 { $as_echo "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5
2987 $as_echo "$as_me: former value: \`$ac_old_val'" >&2;}
2988 { $as_echo "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5
2989 $as_echo "$as_me: current value: \`$ac_new_val'" >&2;}
2990 fi;;
2991 esac
2992 # Pass precious variables to config.status.
2993 if test "$ac_new_set" = set; then
2994 case $ac_new_val in
2995 *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
2996 *) ac_arg=$ac_var=$ac_new_val ;;
2997 esac
2998 case " $ac_configure_args " in
2999 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
3000 *) as_fn_append ac_configure_args " '$ac_arg'" ;;
3001 esac
3003 done
3004 if $ac_cache_corrupted; then
3005 { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3006 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3007 { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
3008 $as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
3009 as_fn_error "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
3011 ## -------------------- ##
3012 ## Main body of script. ##
3013 ## -------------------- ##
3015 ac_ext=c
3016 ac_cpp='$CPP $CPPFLAGS'
3017 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3018 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3019 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3026 ac_config_headers="$ac_config_headers auto-host.h:config.in"
3029 gcc_version=`cat $srcdir/BASE-VER`
3031 # Determine the host, build, and target systems
3032 ac_aux_dir=
3033 for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do
3034 for ac_t in install-sh install.sh shtool; do
3035 if test -f "$ac_dir/$ac_t"; then
3036 ac_aux_dir=$ac_dir
3037 ac_install_sh="$ac_aux_dir/$ac_t -c"
3038 break 2
3040 done
3041 done
3042 if test -z "$ac_aux_dir"; then
3043 as_fn_error "cannot find install-sh, install.sh, or shtool in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" "$LINENO" 5
3046 # These three variables are undocumented and unsupported,
3047 # and are intended to be withdrawn in a future Autoconf release.
3048 # They can cause serious problems if a builder's source tree is in a directory
3049 # whose full name contains unusual characters.
3050 ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
3051 ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
3052 ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
3055 # Make sure we can run config.sub.
3056 $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
3057 as_fn_error "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
3059 { $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
3060 $as_echo_n "checking build system type... " >&6; }
3061 if test "${ac_cv_build+set}" = set; then :
3062 $as_echo_n "(cached) " >&6
3063 else
3064 ac_build_alias=$build_alias
3065 test "x$ac_build_alias" = x &&
3066 ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
3067 test "x$ac_build_alias" = x &&
3068 as_fn_error "cannot guess build type; you must specify one" "$LINENO" 5
3069 ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
3070 as_fn_error "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
3073 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
3074 $as_echo "$ac_cv_build" >&6; }
3075 case $ac_cv_build in
3076 *-*-*) ;;
3077 *) as_fn_error "invalid value of canonical build" "$LINENO" 5;;
3078 esac
3079 build=$ac_cv_build
3080 ac_save_IFS=$IFS; IFS='-'
3081 set x $ac_cv_build
3082 shift
3083 build_cpu=$1
3084 build_vendor=$2
3085 shift; shift
3086 # Remember, the first character of IFS is used to create $*,
3087 # except with old shells:
3088 build_os=$*
3089 IFS=$ac_save_IFS
3090 case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
3093 { $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
3094 $as_echo_n "checking host system type... " >&6; }
3095 if test "${ac_cv_host+set}" = set; then :
3096 $as_echo_n "(cached) " >&6
3097 else
3098 if test "x$host_alias" = x; then
3099 ac_cv_host=$ac_cv_build
3100 else
3101 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
3102 as_fn_error "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
3106 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
3107 $as_echo "$ac_cv_host" >&6; }
3108 case $ac_cv_host in
3109 *-*-*) ;;
3110 *) as_fn_error "invalid value of canonical host" "$LINENO" 5;;
3111 esac
3112 host=$ac_cv_host
3113 ac_save_IFS=$IFS; IFS='-'
3114 set x $ac_cv_host
3115 shift
3116 host_cpu=$1
3117 host_vendor=$2
3118 shift; shift
3119 # Remember, the first character of IFS is used to create $*,
3120 # except with old shells:
3121 host_os=$*
3122 IFS=$ac_save_IFS
3123 case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
3126 { $as_echo "$as_me:${as_lineno-$LINENO}: checking target system type" >&5
3127 $as_echo_n "checking target system type... " >&6; }
3128 if test "${ac_cv_target+set}" = set; then :
3129 $as_echo_n "(cached) " >&6
3130 else
3131 if test "x$target_alias" = x; then
3132 ac_cv_target=$ac_cv_host
3133 else
3134 ac_cv_target=`$SHELL "$ac_aux_dir/config.sub" $target_alias` ||
3135 as_fn_error "$SHELL $ac_aux_dir/config.sub $target_alias failed" "$LINENO" 5
3139 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_target" >&5
3140 $as_echo "$ac_cv_target" >&6; }
3141 case $ac_cv_target in
3142 *-*-*) ;;
3143 *) as_fn_error "invalid value of canonical target" "$LINENO" 5;;
3144 esac
3145 target=$ac_cv_target
3146 ac_save_IFS=$IFS; IFS='-'
3147 set x $ac_cv_target
3148 shift
3149 target_cpu=$1
3150 target_vendor=$2
3151 shift; shift
3152 # Remember, the first character of IFS is used to create $*,
3153 # except with old shells:
3154 target_os=$*
3155 IFS=$ac_save_IFS
3156 case $target_os in *\ *) target_os=`echo "$target_os" | sed 's/ /-/g'`;; esac
3159 # The aliases save the names the user supplied, while $host etc.
3160 # will get canonicalized.
3161 test -n "$target_alias" &&
3162 test "$program_prefix$program_suffix$program_transform_name" = \
3163 NONENONEs,x,x, &&
3164 program_prefix=${target_alias}-
3166 # Determine the noncanonical target name, for directory use.
3167 case ${build_alias} in
3168 "") build_noncanonical=${build} ;;
3169 *) build_noncanonical=${build_alias} ;;
3170 esac
3172 case ${host_alias} in
3173 "") host_noncanonical=${build_noncanonical} ;;
3174 *) host_noncanonical=${host_alias} ;;
3175 esac
3177 case ${target_alias} in
3178 "") target_noncanonical=${host_noncanonical} ;;
3179 *) target_noncanonical=${target_alias} ;;
3180 esac
3185 # Determine the target- and build-specific subdirectories
3187 # post-stage1 host modules use a different CC_FOR_BUILD so, in order to
3188 # have matching libraries, they should use host libraries: Makefile.tpl
3189 # arranges to pass --with-build-libsubdir=$(HOST_SUBDIR).
3190 # However, they still use the build modules, because the corresponding
3191 # host modules (e.g. bison) are only built for the host when bootstrap
3192 # finishes. So:
3193 # - build_subdir is where we find build modules, and never changes.
3194 # - build_libsubdir is where we find build libraries, and can be overridden.
3196 # Prefix 'build-' so this never conflicts with target_subdir.
3197 build_subdir="build-${build_noncanonical}"
3199 # Check whether --with-build-libsubdir was given.
3200 if test "${with_build_libsubdir+set}" = set; then :
3201 withval=$with_build_libsubdir; build_libsubdir="$withval"
3202 else
3203 build_libsubdir="$build_subdir"
3206 # --srcdir=. covers the toplevel, while "test -d" covers the subdirectories
3207 if ( test $srcdir = . && test -d gcc ) \
3208 || test -d $srcdir/../host-${host_noncanonical}; then
3209 host_subdir="host-${host_noncanonical}"
3210 else
3211 host_subdir=.
3213 # No prefix.
3214 target_subdir=${target_noncanonical}
3217 # Set program_transform_name
3218 test "$program_prefix" != NONE &&
3219 program_transform_name="s&^&$program_prefix&;$program_transform_name"
3220 # Use a double $ so make ignores it.
3221 test "$program_suffix" != NONE &&
3222 program_transform_name="s&\$&$program_suffix&;$program_transform_name"
3223 # Double any \ or $.
3224 # By default was `s,x,x', remove it if useless.
3225 ac_script='s/[\\$]/&&/g;s/;s,x,x,$//'
3226 program_transform_name=`$as_echo "$program_transform_name" | sed "$ac_script"`
3229 # Check for bogus environment variables.
3230 # Test if LIBRARY_PATH contains the notation for the current directory
3231 # since this would lead to problems installing/building glibc.
3232 # LIBRARY_PATH contains the current directory if one of the following
3233 # is true:
3234 # - one of the terminals (":" and ";") is the first or last sign
3235 # - two terminals occur directly after each other
3236 # - the path contains an element with a dot in it
3237 { $as_echo "$as_me:${as_lineno-$LINENO}: checking LIBRARY_PATH variable" >&5
3238 $as_echo_n "checking LIBRARY_PATH variable... " >&6; }
3239 case ${LIBRARY_PATH} in
3240 [:\;]* | *[:\;] | *[:\;][:\;]* | *[:\;]. | .[:\;]*| . | *[:\;].[:\;]* )
3241 library_path_setting="contains current directory"
3244 library_path_setting="ok"
3246 esac
3247 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $library_path_setting" >&5
3248 $as_echo "$library_path_setting" >&6; }
3249 if test "$library_path_setting" != "ok"; then
3250 as_fn_error "
3251 *** LIBRARY_PATH shouldn't contain the current directory when
3252 *** building gcc. Please change the environment variable
3253 *** and run configure again." "$LINENO" 5
3256 # Test if GCC_EXEC_PREFIX contains the notation for the current directory
3257 # since this would lead to problems installing/building glibc.
3258 # GCC_EXEC_PREFIX contains the current directory if one of the following
3259 # is true:
3260 # - one of the terminals (":" and ";") is the first or last sign
3261 # - two terminals occur directly after each other
3262 # - the path contains an element with a dot in it
3263 { $as_echo "$as_me:${as_lineno-$LINENO}: checking GCC_EXEC_PREFIX variable" >&5
3264 $as_echo_n "checking GCC_EXEC_PREFIX variable... " >&6; }
3265 case ${GCC_EXEC_PREFIX} in
3266 [:\;]* | *[:\;] | *[:\;][:\;]* | *[:\;]. | .[:\;]*| . | *[:\;].[:\;]* )
3267 gcc_exec_prefix_setting="contains current directory"
3270 gcc_exec_prefix_setting="ok"
3272 esac
3273 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_exec_prefix_setting" >&5
3274 $as_echo "$gcc_exec_prefix_setting" >&6; }
3275 if test "$gcc_exec_prefix_setting" != "ok"; then
3276 as_fn_error "
3277 *** GCC_EXEC_PREFIX shouldn't contain the current directory when
3278 *** building gcc. Please change the environment variable
3279 *** and run configure again." "$LINENO" 5
3282 # -----------
3283 # Directories
3284 # -----------
3286 # Specify the local prefix
3287 local_prefix=
3289 # Check whether --with-local-prefix was given.
3290 if test "${with_local_prefix+set}" = set; then :
3291 withval=$with_local_prefix; case "${withval}" in
3292 yes) as_fn_error "bad value ${withval} given for local include directory prefix" "$LINENO" 5 ;;
3293 no) ;;
3294 *) local_prefix=$with_local_prefix ;;
3295 esac
3299 # Default local prefix if it is empty
3300 if test x$local_prefix = x; then
3301 local_prefix=/usr/local
3304 # Don't set gcc_gxx_include_dir to gxx_include_dir since that's only
3305 # passed in by the toplevel make and thus we'd get different behavior
3306 # depending on where we built the sources.
3307 gcc_gxx_include_dir=
3308 # Specify the g++ header file directory
3310 # Check whether --with-gxx-include-dir was given.
3311 if test "${with_gxx_include_dir+set}" = set; then :
3312 withval=$with_gxx_include_dir; case "${withval}" in
3313 yes) as_fn_error "bad value ${withval} given for g++ include directory" "$LINENO" 5 ;;
3314 no) ;;
3315 *) gcc_gxx_include_dir=$with_gxx_include_dir ;;
3316 esac
3320 # This logic must match libstdc++-v3/acinclude.m4:GLIBCXX_EXPORT_INSTALL_INFO.
3321 if test x${gcc_gxx_include_dir} = x; then
3322 if test x${enable_version_specific_runtime_libs} = xyes; then
3323 gcc_gxx_include_dir='${libsubdir}/include/c++'
3324 else
3325 libstdcxx_incdir='include/c++/$(version)'
3326 if test x$host != x$target; then
3327 libstdcxx_incdir="$target_alias/$libstdcxx_incdir"
3329 gcc_gxx_include_dir="\$(libsubdir)/\$(libsubdir_to_prefix)$libstdcxx_incdir"
3333 gcc_gxx_include_dir_add_sysroot=0
3334 if test "${with_sysroot+set}" = set; then
3335 gcc_gxx_without_sysroot=`expr "${gcc_gxx_include_dir}" : "${with_sysroot}"'\(.*\)'`
3336 if test "${gcc_gxx_without_sysroot}"; then
3337 gcc_gxx_include_dir="${gcc_gxx_without_sysroot}"
3338 gcc_gxx_include_dir_add_sysroot=1
3343 # Check whether --with-cpp_install_dir was given.
3344 if test "${with_cpp_install_dir+set}" = set; then :
3345 withval=$with_cpp_install_dir; if test x$withval = xyes; then
3346 as_fn_error "option --with-cpp-install-dir requires an argument" "$LINENO" 5
3347 elif test x$withval != xno; then
3348 cpp_install_dir=$withval
3353 # We would like to our source tree to be readonly. However when releases or
3354 # pre-releases are generated, the flex/bison generated files as well as the
3355 # various formats of manuals need to be included along with the rest of the
3356 # sources. Therefore we have --enable-generated-files-in-srcdir to do
3357 # just that.
3359 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to place generated files in the source directory" >&5
3360 $as_echo_n "checking whether to place generated files in the source directory... " >&6; }
3361 # Check whether --enable-generated-files-in-srcdir was given.
3362 if test "${enable_generated_files_in_srcdir+set}" = set; then :
3363 enableval=$enable_generated_files_in_srcdir; generated_files_in_srcdir=$enableval
3364 else
3365 generated_files_in_srcdir=no
3369 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $generated_files_in_srcdir" >&5
3370 $as_echo "$generated_files_in_srcdir" >&6; }
3372 if test "$generated_files_in_srcdir" = "yes"; then
3373 GENINSRC=''
3374 else
3375 GENINSRC='#'
3379 # -------------------
3380 # Find default linker
3381 # -------------------
3383 # With GNU ld
3385 # Check whether --with-gnu-ld was given.
3386 if test "${with_gnu_ld+set}" = set; then :
3387 withval=$with_gnu_ld; gnu_ld_flag="$with_gnu_ld"
3388 else
3389 gnu_ld_flag=no
3393 # With pre-defined ld
3395 # Check whether --with-ld was given.
3396 if test "${with_ld+set}" = set; then :
3397 withval=$with_ld; DEFAULT_LINKER="$with_ld"
3400 if test x"${DEFAULT_LINKER+set}" = x"set"; then
3401 if test ! -x "$DEFAULT_LINKER"; then
3402 as_fn_error "cannot execute: $DEFAULT_LINKER: check --with-ld or env. var. DEFAULT_LINKER" "$LINENO" 5
3403 elif $DEFAULT_LINKER -v < /dev/null 2>&1 | grep GNU > /dev/null; then
3404 gnu_ld_flag=yes
3407 cat >>confdefs.h <<_ACEOF
3408 #define DEFAULT_LINKER "$DEFAULT_LINKER"
3409 _ACEOF
3413 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a default linker was specified" >&5
3414 $as_echo_n "checking whether a default linker was specified... " >&6; }
3415 if test x"${DEFAULT_LINKER+set}" = x"set"; then
3416 if test x"$gnu_ld_flag" = x"no"; then
3417 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes ($DEFAULT_LINKER)" >&5
3418 $as_echo "yes ($DEFAULT_LINKER)" >&6; }
3419 else
3420 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes ($DEFAULT_LINKER - GNU ld)" >&5
3421 $as_echo "yes ($DEFAULT_LINKER - GNU ld)" >&6; }
3423 else
3424 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3425 $as_echo "no" >&6; }
3428 # With demangler in GNU ld
3430 # Check whether --with-demangler-in-ld was given.
3431 if test "${with_demangler_in_ld+set}" = set; then :
3432 withval=$with_demangler_in_ld; demangler_in_ld="$with_demangler_in_ld"
3433 else
3434 demangler_in_ld=yes
3438 # ----------------------
3439 # Find default assembler
3440 # ----------------------
3442 # With GNU as
3444 # Check whether --with-gnu-as was given.
3445 if test "${with_gnu_as+set}" = set; then :
3446 withval=$with_gnu_as; gas_flag="$with_gnu_as"
3447 else
3448 gas_flag=no
3453 # Check whether --with-as was given.
3454 if test "${with_as+set}" = set; then :
3455 withval=$with_as; DEFAULT_ASSEMBLER="$with_as"
3458 if test x"${DEFAULT_ASSEMBLER+set}" = x"set"; then
3459 if test ! -x "$DEFAULT_ASSEMBLER"; then
3460 as_fn_error "cannot execute: $DEFAULT_ASSEMBLER: check --with-as or env. var. DEFAULT_ASSEMBLER" "$LINENO" 5
3461 elif $DEFAULT_ASSEMBLER -v < /dev/null 2>&1 | grep GNU > /dev/null; then
3462 gas_flag=yes
3465 cat >>confdefs.h <<_ACEOF
3466 #define DEFAULT_ASSEMBLER "$DEFAULT_ASSEMBLER"
3467 _ACEOF
3471 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a default assembler was specified" >&5
3472 $as_echo_n "checking whether a default assembler was specified... " >&6; }
3473 if test x"${DEFAULT_ASSEMBLER+set}" = x"set"; then
3474 if test x"$gas_flag" = x"no"; then
3475 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes ($DEFAULT_ASSEMBLER)" >&5
3476 $as_echo "yes ($DEFAULT_ASSEMBLER)" >&6; }
3477 else
3478 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes ($DEFAULT_ASSEMBLER - GNU as)" >&5
3479 $as_echo "yes ($DEFAULT_ASSEMBLER - GNU as)" >&6; }
3481 else
3482 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3483 $as_echo "no" >&6; }
3486 # ---------------
3487 # Find C compiler
3488 # ---------------
3490 # If a non-executable a.out is present (e.g. created by GNU as above even if
3491 # invoked with -v only), the IRIX 6 native ld just overwrites the existing
3492 # file, even when creating an executable, so an execution test fails.
3493 # Remove possible default executable files to avoid this.
3495 # FIXME: This really belongs into AC_PROG_CC and can be removed once
3496 # Autoconf includes it.
3497 rm -f a.out a.exe b.out
3499 # Find the native compiler
3500 ac_ext=c
3501 ac_cpp='$CPP $CPPFLAGS'
3502 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3503 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3504 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3505 if test -n "$ac_tool_prefix"; then
3506 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
3507 set dummy ${ac_tool_prefix}gcc; ac_word=$2
3508 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3509 $as_echo_n "checking for $ac_word... " >&6; }
3510 if test "${ac_cv_prog_CC+set}" = set; then :
3511 $as_echo_n "(cached) " >&6
3512 else
3513 if test -n "$CC"; then
3514 ac_cv_prog_CC="$CC" # Let the user override the test.
3515 else
3516 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3517 for as_dir in $PATH
3519 IFS=$as_save_IFS
3520 test -z "$as_dir" && as_dir=.
3521 for ac_exec_ext in '' $ac_executable_extensions; do
3522 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3523 ac_cv_prog_CC="${ac_tool_prefix}gcc"
3524 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3525 break 2
3527 done
3528 done
3529 IFS=$as_save_IFS
3533 CC=$ac_cv_prog_CC
3534 if test -n "$CC"; then
3535 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3536 $as_echo "$CC" >&6; }
3537 else
3538 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3539 $as_echo "no" >&6; }
3544 if test -z "$ac_cv_prog_CC"; then
3545 ac_ct_CC=$CC
3546 # Extract the first word of "gcc", so it can be a program name with args.
3547 set dummy gcc; ac_word=$2
3548 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3549 $as_echo_n "checking for $ac_word... " >&6; }
3550 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then :
3551 $as_echo_n "(cached) " >&6
3552 else
3553 if test -n "$ac_ct_CC"; then
3554 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3555 else
3556 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3557 for as_dir in $PATH
3559 IFS=$as_save_IFS
3560 test -z "$as_dir" && as_dir=.
3561 for ac_exec_ext in '' $ac_executable_extensions; do
3562 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3563 ac_cv_prog_ac_ct_CC="gcc"
3564 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3565 break 2
3567 done
3568 done
3569 IFS=$as_save_IFS
3573 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3574 if test -n "$ac_ct_CC"; then
3575 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3576 $as_echo "$ac_ct_CC" >&6; }
3577 else
3578 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3579 $as_echo "no" >&6; }
3582 if test "x$ac_ct_CC" = x; then
3583 CC=""
3584 else
3585 case $cross_compiling:$ac_tool_warned in
3586 yes:)
3587 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3588 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3589 ac_tool_warned=yes ;;
3590 esac
3591 CC=$ac_ct_CC
3593 else
3594 CC="$ac_cv_prog_CC"
3597 if test -z "$CC"; then
3598 if test -n "$ac_tool_prefix"; then
3599 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
3600 set dummy ${ac_tool_prefix}cc; ac_word=$2
3601 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3602 $as_echo_n "checking for $ac_word... " >&6; }
3603 if test "${ac_cv_prog_CC+set}" = set; then :
3604 $as_echo_n "(cached) " >&6
3605 else
3606 if test -n "$CC"; then
3607 ac_cv_prog_CC="$CC" # Let the user override the test.
3608 else
3609 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3610 for as_dir in $PATH
3612 IFS=$as_save_IFS
3613 test -z "$as_dir" && as_dir=.
3614 for ac_exec_ext in '' $ac_executable_extensions; do
3615 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3616 ac_cv_prog_CC="${ac_tool_prefix}cc"
3617 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3618 break 2
3620 done
3621 done
3622 IFS=$as_save_IFS
3626 CC=$ac_cv_prog_CC
3627 if test -n "$CC"; then
3628 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3629 $as_echo "$CC" >&6; }
3630 else
3631 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3632 $as_echo "no" >&6; }
3638 if test -z "$CC"; then
3639 # Extract the first word of "cc", so it can be a program name with args.
3640 set dummy cc; ac_word=$2
3641 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3642 $as_echo_n "checking for $ac_word... " >&6; }
3643 if test "${ac_cv_prog_CC+set}" = set; then :
3644 $as_echo_n "(cached) " >&6
3645 else
3646 if test -n "$CC"; then
3647 ac_cv_prog_CC="$CC" # Let the user override the test.
3648 else
3649 ac_prog_rejected=no
3650 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3651 for as_dir in $PATH
3653 IFS=$as_save_IFS
3654 test -z "$as_dir" && as_dir=.
3655 for ac_exec_ext in '' $ac_executable_extensions; do
3656 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3657 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
3658 ac_prog_rejected=yes
3659 continue
3661 ac_cv_prog_CC="cc"
3662 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3663 break 2
3665 done
3666 done
3667 IFS=$as_save_IFS
3669 if test $ac_prog_rejected = yes; then
3670 # We found a bogon in the path, so make sure we never use it.
3671 set dummy $ac_cv_prog_CC
3672 shift
3673 if test $# != 0; then
3674 # We chose a different compiler from the bogus one.
3675 # However, it has the same basename, so the bogon will be chosen
3676 # first if we set CC to just the basename; use the full file name.
3677 shift
3678 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
3683 CC=$ac_cv_prog_CC
3684 if test -n "$CC"; then
3685 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3686 $as_echo "$CC" >&6; }
3687 else
3688 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3689 $as_echo "no" >&6; }
3694 if test -z "$CC"; then
3695 if test -n "$ac_tool_prefix"; then
3696 for ac_prog in cl.exe
3698 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3699 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
3700 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3701 $as_echo_n "checking for $ac_word... " >&6; }
3702 if test "${ac_cv_prog_CC+set}" = set; then :
3703 $as_echo_n "(cached) " >&6
3704 else
3705 if test -n "$CC"; then
3706 ac_cv_prog_CC="$CC" # Let the user override the test.
3707 else
3708 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3709 for as_dir in $PATH
3711 IFS=$as_save_IFS
3712 test -z "$as_dir" && as_dir=.
3713 for ac_exec_ext in '' $ac_executable_extensions; do
3714 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3715 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
3716 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3717 break 2
3719 done
3720 done
3721 IFS=$as_save_IFS
3725 CC=$ac_cv_prog_CC
3726 if test -n "$CC"; then
3727 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3728 $as_echo "$CC" >&6; }
3729 else
3730 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3731 $as_echo "no" >&6; }
3735 test -n "$CC" && break
3736 done
3738 if test -z "$CC"; then
3739 ac_ct_CC=$CC
3740 for ac_prog in cl.exe
3742 # Extract the first word of "$ac_prog", so it can be a program name with args.
3743 set dummy $ac_prog; ac_word=$2
3744 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3745 $as_echo_n "checking for $ac_word... " >&6; }
3746 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then :
3747 $as_echo_n "(cached) " >&6
3748 else
3749 if test -n "$ac_ct_CC"; then
3750 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3751 else
3752 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3753 for as_dir in $PATH
3755 IFS=$as_save_IFS
3756 test -z "$as_dir" && as_dir=.
3757 for ac_exec_ext in '' $ac_executable_extensions; do
3758 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3759 ac_cv_prog_ac_ct_CC="$ac_prog"
3760 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3761 break 2
3763 done
3764 done
3765 IFS=$as_save_IFS
3769 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3770 if test -n "$ac_ct_CC"; then
3771 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3772 $as_echo "$ac_ct_CC" >&6; }
3773 else
3774 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3775 $as_echo "no" >&6; }
3779 test -n "$ac_ct_CC" && break
3780 done
3782 if test "x$ac_ct_CC" = x; then
3783 CC=""
3784 else
3785 case $cross_compiling:$ac_tool_warned in
3786 yes:)
3787 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3788 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3789 ac_tool_warned=yes ;;
3790 esac
3791 CC=$ac_ct_CC
3798 test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3799 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3800 as_fn_error "no acceptable C compiler found in \$PATH
3801 See \`config.log' for more details." "$LINENO" 5; }
3803 # Provide some information about the compiler.
3804 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
3805 set X $ac_compile
3806 ac_compiler=$2
3807 for ac_option in --version -v -V -qversion; do
3808 { { ac_try="$ac_compiler $ac_option >&5"
3809 case "(($ac_try" in
3810 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3811 *) ac_try_echo=$ac_try;;
3812 esac
3813 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3814 $as_echo "$ac_try_echo"; } >&5
3815 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
3816 ac_status=$?
3817 if test -s conftest.err; then
3818 sed '10a\
3819 ... rest of stderr output deleted ...
3820 10q' conftest.err >conftest.er1
3821 cat conftest.er1 >&5
3822 rm -f conftest.er1 conftest.err
3824 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3825 test $ac_status = 0; }
3826 done
3828 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3829 /* end confdefs.h. */
3832 main ()
3836 return 0;
3838 _ACEOF
3839 ac_clean_files_save=$ac_clean_files
3840 ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out conftest.out"
3841 # Try to create an executable without -o first, disregard a.out.
3842 # It will help us diagnose broken compilers, and finding out an intuition
3843 # of exeext.
3844 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
3845 $as_echo_n "checking for C compiler default output file name... " >&6; }
3846 ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
3848 # The possible output files:
3849 ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
3851 ac_rmfiles=
3852 for ac_file in $ac_files
3854 case $ac_file in
3855 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3856 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
3857 esac
3858 done
3859 rm -f $ac_rmfiles
3861 if { { ac_try="$ac_link_default"
3862 case "(($ac_try" in
3863 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3864 *) ac_try_echo=$ac_try;;
3865 esac
3866 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3867 $as_echo "$ac_try_echo"; } >&5
3868 (eval "$ac_link_default") 2>&5
3869 ac_status=$?
3870 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3871 test $ac_status = 0; }; then :
3872 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
3873 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
3874 # in a Makefile. We should not override ac_cv_exeext if it was cached,
3875 # so that the user can short-circuit this test for compilers unknown to
3876 # Autoconf.
3877 for ac_file in $ac_files ''
3879 test -f "$ac_file" || continue
3880 case $ac_file in
3881 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
3883 [ab].out )
3884 # We found the default executable, but exeext='' is most
3885 # certainly right.
3886 break;;
3887 *.* )
3888 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
3889 then :; else
3890 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3892 # We set ac_cv_exeext here because the later test for it is not
3893 # safe: cross compilers may not add the suffix if given an `-o'
3894 # argument, so we may need to know it at that point already.
3895 # Even if this section looks crufty: it has the advantage of
3896 # actually working.
3897 break;;
3899 break;;
3900 esac
3901 done
3902 test "$ac_cv_exeext" = no && ac_cv_exeext=
3904 else
3905 ac_file=''
3907 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
3908 $as_echo "$ac_file" >&6; }
3909 if test -z "$ac_file"; then :
3910 $as_echo "$as_me: failed program was:" >&5
3911 sed 's/^/| /' conftest.$ac_ext >&5
3913 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3914 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3915 { as_fn_set_status 77
3916 as_fn_error "C compiler cannot create executables
3917 See \`config.log' for more details." "$LINENO" 5; }; }
3919 ac_exeext=$ac_cv_exeext
3921 # Check that the compiler produces executables we can run. If not, either
3922 # the compiler is broken, or we cross compile.
3923 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
3924 $as_echo_n "checking whether the C compiler works... " >&6; }
3925 # If not cross compiling, check that we can run a simple program.
3926 if test "$cross_compiling" != yes; then
3927 if { ac_try='./$ac_file'
3928 { { case "(($ac_try" in
3929 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3930 *) ac_try_echo=$ac_try;;
3931 esac
3932 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3933 $as_echo "$ac_try_echo"; } >&5
3934 (eval "$ac_try") 2>&5
3935 ac_status=$?
3936 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3937 test $ac_status = 0; }; }; then
3938 cross_compiling=no
3939 else
3940 if test "$cross_compiling" = maybe; then
3941 cross_compiling=yes
3942 else
3943 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3944 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3945 as_fn_error "cannot run C compiled programs.
3946 If you meant to cross compile, use \`--host'.
3947 See \`config.log' for more details." "$LINENO" 5; }
3951 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3952 $as_echo "yes" >&6; }
3954 rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out conftest.out
3955 ac_clean_files=$ac_clean_files_save
3956 # Check that the compiler produces executables we can run. If not, either
3957 # the compiler is broken, or we cross compile.
3958 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
3959 $as_echo_n "checking whether we are cross compiling... " >&6; }
3960 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
3961 $as_echo "$cross_compiling" >&6; }
3963 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
3964 $as_echo_n "checking for suffix of executables... " >&6; }
3965 if { { ac_try="$ac_link"
3966 case "(($ac_try" in
3967 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3968 *) ac_try_echo=$ac_try;;
3969 esac
3970 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3971 $as_echo "$ac_try_echo"; } >&5
3972 (eval "$ac_link") 2>&5
3973 ac_status=$?
3974 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3975 test $ac_status = 0; }; then :
3976 # If both `conftest.exe' and `conftest' are `present' (well, observable)
3977 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
3978 # work properly (i.e., refer to `conftest.exe'), while it won't with
3979 # `rm'.
3980 for ac_file in conftest.exe conftest conftest.*; do
3981 test -f "$ac_file" || continue
3982 case $ac_file in
3983 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3984 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3985 break;;
3986 * ) break;;
3987 esac
3988 done
3989 else
3990 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3991 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3992 as_fn_error "cannot compute suffix of executables: cannot compile and link
3993 See \`config.log' for more details." "$LINENO" 5; }
3995 rm -f conftest$ac_cv_exeext
3996 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
3997 $as_echo "$ac_cv_exeext" >&6; }
3999 rm -f conftest.$ac_ext
4000 EXEEXT=$ac_cv_exeext
4001 ac_exeext=$EXEEXT
4002 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
4003 $as_echo_n "checking for suffix of object files... " >&6; }
4004 if test "${ac_cv_objext+set}" = set; then :
4005 $as_echo_n "(cached) " >&6
4006 else
4007 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4008 /* end confdefs.h. */
4011 main ()
4015 return 0;
4017 _ACEOF
4018 rm -f conftest.o conftest.obj
4019 if { { ac_try="$ac_compile"
4020 case "(($ac_try" in
4021 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4022 *) ac_try_echo=$ac_try;;
4023 esac
4024 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4025 $as_echo "$ac_try_echo"; } >&5
4026 (eval "$ac_compile") 2>&5
4027 ac_status=$?
4028 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4029 test $ac_status = 0; }; then :
4030 for ac_file in conftest.o conftest.obj conftest.*; do
4031 test -f "$ac_file" || continue;
4032 case $ac_file in
4033 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
4034 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
4035 break;;
4036 esac
4037 done
4038 else
4039 $as_echo "$as_me: failed program was:" >&5
4040 sed 's/^/| /' conftest.$ac_ext >&5
4042 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4043 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4044 as_fn_error "cannot compute suffix of object files: cannot compile
4045 See \`config.log' for more details." "$LINENO" 5; }
4047 rm -f conftest.$ac_cv_objext conftest.$ac_ext
4049 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
4050 $as_echo "$ac_cv_objext" >&6; }
4051 OBJEXT=$ac_cv_objext
4052 ac_objext=$OBJEXT
4053 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
4054 $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
4055 if test "${ac_cv_c_compiler_gnu+set}" = set; then :
4056 $as_echo_n "(cached) " >&6
4057 else
4058 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4059 /* end confdefs.h. */
4062 main ()
4064 #ifndef __GNUC__
4065 choke me
4066 #endif
4069 return 0;
4071 _ACEOF
4072 if ac_fn_c_try_compile "$LINENO"; then :
4073 ac_compiler_gnu=yes
4074 else
4075 ac_compiler_gnu=no
4077 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4078 ac_cv_c_compiler_gnu=$ac_compiler_gnu
4081 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
4082 $as_echo "$ac_cv_c_compiler_gnu" >&6; }
4083 if test $ac_compiler_gnu = yes; then
4084 GCC=yes
4085 else
4086 GCC=
4088 ac_test_CFLAGS=${CFLAGS+set}
4089 ac_save_CFLAGS=$CFLAGS
4090 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
4091 $as_echo_n "checking whether $CC accepts -g... " >&6; }
4092 if test "${ac_cv_prog_cc_g+set}" = set; then :
4093 $as_echo_n "(cached) " >&6
4094 else
4095 ac_save_c_werror_flag=$ac_c_werror_flag
4096 ac_c_werror_flag=yes
4097 ac_cv_prog_cc_g=no
4098 CFLAGS="-g"
4099 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4100 /* end confdefs.h. */
4103 main ()
4107 return 0;
4109 _ACEOF
4110 if ac_fn_c_try_compile "$LINENO"; then :
4111 ac_cv_prog_cc_g=yes
4112 else
4113 CFLAGS=""
4114 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4115 /* end confdefs.h. */
4118 main ()
4122 return 0;
4124 _ACEOF
4125 if ac_fn_c_try_compile "$LINENO"; then :
4127 else
4128 ac_c_werror_flag=$ac_save_c_werror_flag
4129 CFLAGS="-g"
4130 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4131 /* end confdefs.h. */
4134 main ()
4138 return 0;
4140 _ACEOF
4141 if ac_fn_c_try_compile "$LINENO"; then :
4142 ac_cv_prog_cc_g=yes
4144 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4146 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4148 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4149 ac_c_werror_flag=$ac_save_c_werror_flag
4151 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
4152 $as_echo "$ac_cv_prog_cc_g" >&6; }
4153 if test "$ac_test_CFLAGS" = set; then
4154 CFLAGS=$ac_save_CFLAGS
4155 elif test $ac_cv_prog_cc_g = yes; then
4156 if test "$GCC" = yes; then
4157 CFLAGS="-g -O2"
4158 else
4159 CFLAGS="-g"
4161 else
4162 if test "$GCC" = yes; then
4163 CFLAGS="-O2"
4164 else
4165 CFLAGS=
4168 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
4169 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
4170 if test "${ac_cv_prog_cc_c89+set}" = set; then :
4171 $as_echo_n "(cached) " >&6
4172 else
4173 ac_cv_prog_cc_c89=no
4174 ac_save_CC=$CC
4175 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4176 /* end confdefs.h. */
4177 #include <stdarg.h>
4178 #include <stdio.h>
4179 #include <sys/types.h>
4180 #include <sys/stat.h>
4181 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
4182 struct buf { int x; };
4183 FILE * (*rcsopen) (struct buf *, struct stat *, int);
4184 static char *e (p, i)
4185 char **p;
4186 int i;
4188 return p[i];
4190 static char *f (char * (*g) (char **, int), char **p, ...)
4192 char *s;
4193 va_list v;
4194 va_start (v,p);
4195 s = g (p, va_arg (v,int));
4196 va_end (v);
4197 return s;
4200 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
4201 function prototypes and stuff, but not '\xHH' hex character constants.
4202 These don't provoke an error unfortunately, instead are silently treated
4203 as 'x'. The following induces an error, until -std is added to get
4204 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
4205 array size at least. It's necessary to write '\x00'==0 to get something
4206 that's true only with -std. */
4207 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
4209 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
4210 inside strings and character constants. */
4211 #define FOO(x) 'x'
4212 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
4214 int test (int i, double x);
4215 struct s1 {int (*f) (int a);};
4216 struct s2 {int (*f) (double a);};
4217 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
4218 int argc;
4219 char **argv;
4221 main ()
4223 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
4225 return 0;
4227 _ACEOF
4228 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
4229 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
4231 CC="$ac_save_CC $ac_arg"
4232 if ac_fn_c_try_compile "$LINENO"; then :
4233 ac_cv_prog_cc_c89=$ac_arg
4235 rm -f core conftest.err conftest.$ac_objext
4236 test "x$ac_cv_prog_cc_c89" != "xno" && break
4237 done
4238 rm -f conftest.$ac_ext
4239 CC=$ac_save_CC
4242 # AC_CACHE_VAL
4243 case "x$ac_cv_prog_cc_c89" in
4245 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
4246 $as_echo "none needed" >&6; } ;;
4247 xno)
4248 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
4249 $as_echo "unsupported" >&6; } ;;
4251 CC="$CC $ac_cv_prog_cc_c89"
4252 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
4253 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
4254 esac
4255 if test "x$ac_cv_prog_cc_c89" != xno; then :
4259 ac_ext=c
4260 ac_cpp='$CPP $CPPFLAGS'
4261 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4262 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4263 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4265 if test "x$CC" != xcc; then
4266 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC and cc understand -c and -o together" >&5
4267 $as_echo_n "checking whether $CC and cc understand -c and -o together... " >&6; }
4268 else
4269 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether cc understands -c and -o together" >&5
4270 $as_echo_n "checking whether cc understands -c and -o together... " >&6; }
4272 set dummy $CC; ac_cc=`$as_echo "$2" |
4273 sed 's/[^a-zA-Z0-9_]/_/g;s/^[0-9]/_/'`
4274 if { as_var=ac_cv_prog_cc_${ac_cc}_c_o; eval "test \"\${$as_var+set}\" = set"; }; then :
4275 $as_echo_n "(cached) " >&6
4276 else
4277 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4278 /* end confdefs.h. */
4281 main ()
4285 return 0;
4287 _ACEOF
4288 # Make sure it works both with $CC and with simple cc.
4289 # We do the test twice because some compilers refuse to overwrite an
4290 # existing .o file with -o, though they will create one.
4291 ac_try='$CC -c conftest.$ac_ext -o conftest2.$ac_objext >&5'
4292 rm -f conftest2.*
4293 if { { case "(($ac_try" in
4294 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4295 *) ac_try_echo=$ac_try;;
4296 esac
4297 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4298 $as_echo "$ac_try_echo"; } >&5
4299 (eval "$ac_try") 2>&5
4300 ac_status=$?
4301 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4302 test $ac_status = 0; } &&
4303 test -f conftest2.$ac_objext && { { case "(($ac_try" in
4304 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4305 *) ac_try_echo=$ac_try;;
4306 esac
4307 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4308 $as_echo "$ac_try_echo"; } >&5
4309 (eval "$ac_try") 2>&5
4310 ac_status=$?
4311 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4312 test $ac_status = 0; };
4313 then
4314 eval ac_cv_prog_cc_${ac_cc}_c_o=yes
4315 if test "x$CC" != xcc; then
4316 # Test first that cc exists at all.
4317 if { ac_try='cc -c conftest.$ac_ext >&5'
4318 { { case "(($ac_try" in
4319 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4320 *) ac_try_echo=$ac_try;;
4321 esac
4322 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4323 $as_echo "$ac_try_echo"; } >&5
4324 (eval "$ac_try") 2>&5
4325 ac_status=$?
4326 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4327 test $ac_status = 0; }; }; then
4328 ac_try='cc -c conftest.$ac_ext -o conftest2.$ac_objext >&5'
4329 rm -f conftest2.*
4330 if { { case "(($ac_try" in
4331 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4332 *) ac_try_echo=$ac_try;;
4333 esac
4334 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4335 $as_echo "$ac_try_echo"; } >&5
4336 (eval "$ac_try") 2>&5
4337 ac_status=$?
4338 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4339 test $ac_status = 0; } &&
4340 test -f conftest2.$ac_objext && { { case "(($ac_try" in
4341 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4342 *) ac_try_echo=$ac_try;;
4343 esac
4344 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4345 $as_echo "$ac_try_echo"; } >&5
4346 (eval "$ac_try") 2>&5
4347 ac_status=$?
4348 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4349 test $ac_status = 0; };
4350 then
4351 # cc works too.
4353 else
4354 # cc exists but doesn't like -o.
4355 eval ac_cv_prog_cc_${ac_cc}_c_o=no
4359 else
4360 eval ac_cv_prog_cc_${ac_cc}_c_o=no
4362 rm -f core conftest*
4365 if eval test \$ac_cv_prog_cc_${ac_cc}_c_o = yes; then
4366 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4367 $as_echo "yes" >&6; }
4368 else
4369 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4370 $as_echo "no" >&6; }
4372 $as_echo "#define NO_MINUS_C_MINUS_O 1" >>confdefs.h
4376 # expand $ac_aux_dir to an absolute path
4377 am_aux_dir=`cd $ac_aux_dir && pwd`
4379 # FIXME: we rely on the cache variable name because
4380 # there is no other way.
4381 set dummy $CC
4382 am_cc=`echo $2 | sed 's/[^a-zA-Z0-9_]/_/g;s/^[0-9]/_/'`
4383 eval am_t=\$ac_cv_prog_cc_${am_cc}_c_o
4384 if test "$am_t" != yes; then
4385 # Losing compiler, so override with the script.
4386 # FIXME: It is wrong to rewrite CC.
4387 # But if we don't then we get into trouble of one sort or another.
4388 # A longer-term fix would be to have automake use am__CC in this case,
4389 # and then we could set am__CC="\$(top_srcdir)/compile \$(CC)"
4390 CC="$am_aux_dir/compile $CC"
4394 ac_ext=cpp
4395 ac_cpp='$CXXCPP $CPPFLAGS'
4396 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4397 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4398 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
4399 if test -z "$CXX"; then
4400 if test -n "$CCC"; then
4401 CXX=$CCC
4402 else
4403 if test -n "$ac_tool_prefix"; then
4404 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
4406 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
4407 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
4408 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4409 $as_echo_n "checking for $ac_word... " >&6; }
4410 if test "${ac_cv_prog_CXX+set}" = set; then :
4411 $as_echo_n "(cached) " >&6
4412 else
4413 if test -n "$CXX"; then
4414 ac_cv_prog_CXX="$CXX" # Let the user override the test.
4415 else
4416 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4417 for as_dir in $PATH
4419 IFS=$as_save_IFS
4420 test -z "$as_dir" && as_dir=.
4421 for ac_exec_ext in '' $ac_executable_extensions; do
4422 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4423 ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
4424 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4425 break 2
4427 done
4428 done
4429 IFS=$as_save_IFS
4433 CXX=$ac_cv_prog_CXX
4434 if test -n "$CXX"; then
4435 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXX" >&5
4436 $as_echo "$CXX" >&6; }
4437 else
4438 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4439 $as_echo "no" >&6; }
4443 test -n "$CXX" && break
4444 done
4446 if test -z "$CXX"; then
4447 ac_ct_CXX=$CXX
4448 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
4450 # Extract the first word of "$ac_prog", so it can be a program name with args.
4451 set dummy $ac_prog; ac_word=$2
4452 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4453 $as_echo_n "checking for $ac_word... " >&6; }
4454 if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then :
4455 $as_echo_n "(cached) " >&6
4456 else
4457 if test -n "$ac_ct_CXX"; then
4458 ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
4459 else
4460 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4461 for as_dir in $PATH
4463 IFS=$as_save_IFS
4464 test -z "$as_dir" && as_dir=.
4465 for ac_exec_ext in '' $ac_executable_extensions; do
4466 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4467 ac_cv_prog_ac_ct_CXX="$ac_prog"
4468 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4469 break 2
4471 done
4472 done
4473 IFS=$as_save_IFS
4477 ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
4478 if test -n "$ac_ct_CXX"; then
4479 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CXX" >&5
4480 $as_echo "$ac_ct_CXX" >&6; }
4481 else
4482 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4483 $as_echo "no" >&6; }
4487 test -n "$ac_ct_CXX" && break
4488 done
4490 if test "x$ac_ct_CXX" = x; then
4491 CXX="g++"
4492 else
4493 case $cross_compiling:$ac_tool_warned in
4494 yes:)
4495 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4496 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4497 ac_tool_warned=yes ;;
4498 esac
4499 CXX=$ac_ct_CXX
4505 # Provide some information about the compiler.
4506 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C++ compiler version" >&5
4507 set X $ac_compile
4508 ac_compiler=$2
4509 for ac_option in --version -v -V -qversion; do
4510 { { ac_try="$ac_compiler $ac_option >&5"
4511 case "(($ac_try" in
4512 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4513 *) ac_try_echo=$ac_try;;
4514 esac
4515 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4516 $as_echo "$ac_try_echo"; } >&5
4517 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
4518 ac_status=$?
4519 if test -s conftest.err; then
4520 sed '10a\
4521 ... rest of stderr output deleted ...
4522 10q' conftest.err >conftest.er1
4523 cat conftest.er1 >&5
4524 rm -f conftest.er1 conftest.err
4526 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4527 test $ac_status = 0; }
4528 done
4530 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C++ compiler" >&5
4531 $as_echo_n "checking whether we are using the GNU C++ compiler... " >&6; }
4532 if test "${ac_cv_cxx_compiler_gnu+set}" = set; then :
4533 $as_echo_n "(cached) " >&6
4534 else
4535 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4536 /* end confdefs.h. */
4539 main ()
4541 #ifndef __GNUC__
4542 choke me
4543 #endif
4546 return 0;
4548 _ACEOF
4549 if ac_fn_cxx_try_compile "$LINENO"; then :
4550 ac_compiler_gnu=yes
4551 else
4552 ac_compiler_gnu=no
4554 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4555 ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
4558 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cxx_compiler_gnu" >&5
4559 $as_echo "$ac_cv_cxx_compiler_gnu" >&6; }
4560 if test $ac_compiler_gnu = yes; then
4561 GXX=yes
4562 else
4563 GXX=
4565 ac_test_CXXFLAGS=${CXXFLAGS+set}
4566 ac_save_CXXFLAGS=$CXXFLAGS
4567 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CXX accepts -g" >&5
4568 $as_echo_n "checking whether $CXX accepts -g... " >&6; }
4569 if test "${ac_cv_prog_cxx_g+set}" = set; then :
4570 $as_echo_n "(cached) " >&6
4571 else
4572 ac_save_cxx_werror_flag=$ac_cxx_werror_flag
4573 ac_cxx_werror_flag=yes
4574 ac_cv_prog_cxx_g=no
4575 CXXFLAGS="-g"
4576 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4577 /* end confdefs.h. */
4580 main ()
4584 return 0;
4586 _ACEOF
4587 if ac_fn_cxx_try_compile "$LINENO"; then :
4588 ac_cv_prog_cxx_g=yes
4589 else
4590 CXXFLAGS=""
4591 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4592 /* end confdefs.h. */
4595 main ()
4599 return 0;
4601 _ACEOF
4602 if ac_fn_cxx_try_compile "$LINENO"; then :
4604 else
4605 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
4606 CXXFLAGS="-g"
4607 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4608 /* end confdefs.h. */
4611 main ()
4615 return 0;
4617 _ACEOF
4618 if ac_fn_cxx_try_compile "$LINENO"; then :
4619 ac_cv_prog_cxx_g=yes
4621 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4623 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4625 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4626 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
4628 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cxx_g" >&5
4629 $as_echo "$ac_cv_prog_cxx_g" >&6; }
4630 if test "$ac_test_CXXFLAGS" = set; then
4631 CXXFLAGS=$ac_save_CXXFLAGS
4632 elif test $ac_cv_prog_cxx_g = yes; then
4633 if test "$GXX" = yes; then
4634 CXXFLAGS="-g -O2"
4635 else
4636 CXXFLAGS="-g"
4638 else
4639 if test "$GXX" = yes; then
4640 CXXFLAGS="-O2"
4641 else
4642 CXXFLAGS=
4645 ac_ext=c
4646 ac_cpp='$CPP $CPPFLAGS'
4647 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4648 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4649 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4654 if test -n "$ac_tool_prefix"; then
4655 # Extract the first word of "${ac_tool_prefix}gnatbind", so it can be a program name with args.
4656 set dummy ${ac_tool_prefix}gnatbind; ac_word=$2
4657 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4658 $as_echo_n "checking for $ac_word... " >&6; }
4659 if test "${ac_cv_prog_GNATBIND+set}" = set; then :
4660 $as_echo_n "(cached) " >&6
4661 else
4662 if test -n "$GNATBIND"; then
4663 ac_cv_prog_GNATBIND="$GNATBIND" # Let the user override the test.
4664 else
4665 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4666 for as_dir in $PATH
4668 IFS=$as_save_IFS
4669 test -z "$as_dir" && as_dir=.
4670 for ac_exec_ext in '' $ac_executable_extensions; do
4671 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4672 ac_cv_prog_GNATBIND="${ac_tool_prefix}gnatbind"
4673 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4674 break 2
4676 done
4677 done
4678 IFS=$as_save_IFS
4682 GNATBIND=$ac_cv_prog_GNATBIND
4683 if test -n "$GNATBIND"; then
4684 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GNATBIND" >&5
4685 $as_echo "$GNATBIND" >&6; }
4686 else
4687 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4688 $as_echo "no" >&6; }
4693 if test -z "$ac_cv_prog_GNATBIND"; then
4694 ac_ct_GNATBIND=$GNATBIND
4695 # Extract the first word of "gnatbind", so it can be a program name with args.
4696 set dummy gnatbind; ac_word=$2
4697 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4698 $as_echo_n "checking for $ac_word... " >&6; }
4699 if test "${ac_cv_prog_ac_ct_GNATBIND+set}" = set; then :
4700 $as_echo_n "(cached) " >&6
4701 else
4702 if test -n "$ac_ct_GNATBIND"; then
4703 ac_cv_prog_ac_ct_GNATBIND="$ac_ct_GNATBIND" # Let the user override the test.
4704 else
4705 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4706 for as_dir in $PATH
4708 IFS=$as_save_IFS
4709 test -z "$as_dir" && as_dir=.
4710 for ac_exec_ext in '' $ac_executable_extensions; do
4711 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4712 ac_cv_prog_ac_ct_GNATBIND="gnatbind"
4713 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4714 break 2
4716 done
4717 done
4718 IFS=$as_save_IFS
4722 ac_ct_GNATBIND=$ac_cv_prog_ac_ct_GNATBIND
4723 if test -n "$ac_ct_GNATBIND"; then
4724 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_GNATBIND" >&5
4725 $as_echo "$ac_ct_GNATBIND" >&6; }
4726 else
4727 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4728 $as_echo "no" >&6; }
4731 if test "x$ac_ct_GNATBIND" = x; then
4732 GNATBIND="no"
4733 else
4734 case $cross_compiling:$ac_tool_warned in
4735 yes:)
4736 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4737 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4738 ac_tool_warned=yes ;;
4739 esac
4740 GNATBIND=$ac_ct_GNATBIND
4742 else
4743 GNATBIND="$ac_cv_prog_GNATBIND"
4746 if test -n "$ac_tool_prefix"; then
4747 # Extract the first word of "${ac_tool_prefix}gnatmake", so it can be a program name with args.
4748 set dummy ${ac_tool_prefix}gnatmake; ac_word=$2
4749 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4750 $as_echo_n "checking for $ac_word... " >&6; }
4751 if test "${ac_cv_prog_GNATMAKE+set}" = set; then :
4752 $as_echo_n "(cached) " >&6
4753 else
4754 if test -n "$GNATMAKE"; then
4755 ac_cv_prog_GNATMAKE="$GNATMAKE" # Let the user override the test.
4756 else
4757 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4758 for as_dir in $PATH
4760 IFS=$as_save_IFS
4761 test -z "$as_dir" && as_dir=.
4762 for ac_exec_ext in '' $ac_executable_extensions; do
4763 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4764 ac_cv_prog_GNATMAKE="${ac_tool_prefix}gnatmake"
4765 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4766 break 2
4768 done
4769 done
4770 IFS=$as_save_IFS
4774 GNATMAKE=$ac_cv_prog_GNATMAKE
4775 if test -n "$GNATMAKE"; then
4776 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GNATMAKE" >&5
4777 $as_echo "$GNATMAKE" >&6; }
4778 else
4779 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4780 $as_echo "no" >&6; }
4785 if test -z "$ac_cv_prog_GNATMAKE"; then
4786 ac_ct_GNATMAKE=$GNATMAKE
4787 # Extract the first word of "gnatmake", so it can be a program name with args.
4788 set dummy gnatmake; ac_word=$2
4789 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4790 $as_echo_n "checking for $ac_word... " >&6; }
4791 if test "${ac_cv_prog_ac_ct_GNATMAKE+set}" = set; then :
4792 $as_echo_n "(cached) " >&6
4793 else
4794 if test -n "$ac_ct_GNATMAKE"; then
4795 ac_cv_prog_ac_ct_GNATMAKE="$ac_ct_GNATMAKE" # Let the user override the test.
4796 else
4797 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4798 for as_dir in $PATH
4800 IFS=$as_save_IFS
4801 test -z "$as_dir" && as_dir=.
4802 for ac_exec_ext in '' $ac_executable_extensions; do
4803 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4804 ac_cv_prog_ac_ct_GNATMAKE="gnatmake"
4805 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4806 break 2
4808 done
4809 done
4810 IFS=$as_save_IFS
4814 ac_ct_GNATMAKE=$ac_cv_prog_ac_ct_GNATMAKE
4815 if test -n "$ac_ct_GNATMAKE"; then
4816 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_GNATMAKE" >&5
4817 $as_echo "$ac_ct_GNATMAKE" >&6; }
4818 else
4819 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4820 $as_echo "no" >&6; }
4823 if test "x$ac_ct_GNATMAKE" = x; then
4824 GNATMAKE="no"
4825 else
4826 case $cross_compiling:$ac_tool_warned in
4827 yes:)
4828 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4829 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4830 ac_tool_warned=yes ;;
4831 esac
4832 GNATMAKE=$ac_ct_GNATMAKE
4834 else
4835 GNATMAKE="$ac_cv_prog_GNATMAKE"
4838 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether compiler driver understands Ada" >&5
4839 $as_echo_n "checking whether compiler driver understands Ada... " >&6; }
4840 if test "${acx_cv_cc_gcc_supports_ada+set}" = set; then :
4841 $as_echo_n "(cached) " >&6
4842 else
4843 cat >conftest.adb <<EOF
4844 procedure conftest is begin null; end conftest;
4846 acx_cv_cc_gcc_supports_ada=no
4847 # There is a bug in old released versions of GCC which causes the
4848 # driver to exit successfully when the appropriate language module
4849 # has not been installed. This is fixed in 2.95.4, 3.0.2, and 3.1.
4850 # Therefore we must check for the error message as well as an
4851 # unsuccessful exit.
4852 # Other compilers, like HP Tru64 UNIX cc, exit successfully when
4853 # given a .adb file, but produce no object file. So we must check
4854 # if an object file was really produced to guard against this.
4855 errors=`(${CC} -I"$srcdir"/ada -c conftest.adb) 2>&1 || echo failure`
4856 if test x"$errors" = x && test -f conftest.$ac_objext; then
4857 acx_cv_cc_gcc_supports_ada=yes
4859 rm -f conftest.*
4861 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $acx_cv_cc_gcc_supports_ada" >&5
4862 $as_echo "$acx_cv_cc_gcc_supports_ada" >&6; }
4864 if test "x$GNATBIND" != xno && test "x$GNATMAKE" != xno && test x$acx_cv_cc_gcc_supports_ada != xno; then
4865 have_gnat=yes
4866 else
4867 have_gnat=no
4871 # autoconf is lame and doesn't give us any substitution variable for this.
4872 if eval "test \"`echo '$ac_cv_prog_cc_'${ac_cc}_c_o`\" = no"; then
4873 NO_MINUS_C_MINUS_O=yes
4874 else
4875 OUTPUT_OPTION='-o $@'
4880 # Remove the -O2: for historical reasons, unless bootstrapping we prefer
4881 # optimizations to be activated explicitly by the toplevel.
4882 case "$CC" in
4883 */prev-gcc/xgcc*) ;;
4884 *) CFLAGS=`echo "$CFLAGS " | sed -e "s/-Ofast[ ]//" -e "s/-O[gs][ ]//" -e "s/-O[0-9]*[ ]//" `
4885 CXXFLAGS=`echo "$CXXFLAGS " | sed -e "s/-Ofast[ ]//" -e "s/-O[gs][ ]//" -e "s/-O[0-9]*[ ]//" ` ;;
4886 esac
4890 # Determine PICFLAG for target gnatlib.
4895 case "${target}" in
4896 # PIC is the default on some targets or must not be used.
4897 *-*-darwin*)
4898 # PIC is the default on this platform
4899 # Common symbols not allowed in MH_DYLIB files
4900 PICFLAG_FOR_TARGET=-fno-common
4902 alpha*-dec-osf5*)
4903 # PIC is the default.
4905 hppa*64*-*-hpux*)
4906 # PIC is the default for 64-bit PA HP-UX.
4908 i[34567]86-*-cygwin* | i[34567]86-*-mingw* | x86_64-*-mingw*)
4910 i[34567]86-*-interix[3-9]*)
4911 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
4912 # Instead, we relocate shared libraries at runtime.
4914 i[34567]86-*-nto-qnx*)
4915 # QNX uses GNU C++, but need to define -shared option too, otherwise
4916 # it will coredump.
4917 PICFLAG_FOR_TARGET='-fPIC -shared'
4919 i[34567]86-pc-msdosdjgpp*)
4920 # DJGPP does not support shared libraries at all.
4922 ia64*-*-hpux*)
4923 # On IA64 HP-UX, PIC is the default but the pic flag
4924 # sets the default TLS model and affects inlining.
4925 PICFLAG_FOR_TARGET=-fPIC
4927 mips-sgi-irix6*)
4928 # PIC is the default.
4930 rs6000-ibm-aix* | powerpc-ibm-aix*)
4931 # All AIX code is PIC.
4934 # Some targets support both -fPIC and -fpic, but prefer the latter.
4935 # FIXME: Why?
4936 i[34567]86-*-* | x86_64-*-*)
4937 PICFLAG_FOR_TARGET=-fpic
4939 m68k-*-*)
4940 PICFLAG_FOR_TARGET=-fpic
4942 # FIXME: Override -fPIC default in libgcc only?
4943 sh-*-linux* | sh[2346lbe]*-*-linux*)
4944 PICFLAG_FOR_TARGET=-fpic
4946 # FIXME: Simplify to sh*-*-netbsd*?
4947 sh-*-netbsdelf* | shl*-*-netbsdelf* | sh5-*-netbsd* | sh5l*-*-netbsd* | \
4948 sh64-*-netbsd* | sh64l*-*-netbsd*)
4949 PICFLAG_FOR_TARGET=-fpic
4951 # Default to -fPIC unless specified otherwise.
4953 PICFLAG_FOR_TARGET=-fPIC
4955 esac
4957 # If the user explicitly uses -fpic/-fPIC, keep that.
4958 case "${CFLAGS_FOR_TARGET}" in
4959 *-fpic*)
4960 PICFLAG_FOR_TARGET=-fpic
4962 *-fPIC*)
4963 PICFLAG_FOR_TARGET=-fPIC
4965 esac
4969 # -------------------------
4970 # Check C compiler features
4971 # -------------------------
4974 ac_ext=c
4975 ac_cpp='$CPP $CPPFLAGS'
4976 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4977 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4978 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4979 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
4980 $as_echo_n "checking how to run the C preprocessor... " >&6; }
4981 # On Suns, sometimes $CPP names a directory.
4982 if test -n "$CPP" && test -d "$CPP"; then
4983 CPP=
4985 if test -z "$CPP"; then
4986 if test "${ac_cv_prog_CPP+set}" = set; then :
4987 $as_echo_n "(cached) " >&6
4988 else
4989 # Double quotes because CPP needs to be expanded
4990 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
4992 ac_preproc_ok=false
4993 for ac_c_preproc_warn_flag in '' yes
4995 # Use a header file that comes with gcc, so configuring glibc
4996 # with a fresh cross-compiler works.
4997 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4998 # <limits.h> exists even on freestanding compilers.
4999 # On the NeXT, cc -E runs the code through the compiler's parser,
5000 # not just through cpp. "Syntax error" is here to catch this case.
5001 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5002 /* end confdefs.h. */
5003 #ifdef __STDC__
5004 # include <limits.h>
5005 #else
5006 # include <assert.h>
5007 #endif
5008 Syntax error
5009 _ACEOF
5010 if ac_fn_c_try_cpp "$LINENO"; then :
5012 else
5013 # Broken: fails on valid input.
5014 continue
5016 rm -f conftest.err conftest.$ac_ext
5018 # OK, works on sane cases. Now check whether nonexistent headers
5019 # can be detected and how.
5020 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5021 /* end confdefs.h. */
5022 #include <ac_nonexistent.h>
5023 _ACEOF
5024 if ac_fn_c_try_cpp "$LINENO"; then :
5025 # Broken: success on invalid input.
5026 continue
5027 else
5028 # Passes both tests.
5029 ac_preproc_ok=:
5030 break
5032 rm -f conftest.err conftest.$ac_ext
5034 done
5035 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5036 rm -f conftest.err conftest.$ac_ext
5037 if $ac_preproc_ok; then :
5038 break
5041 done
5042 ac_cv_prog_CPP=$CPP
5045 CPP=$ac_cv_prog_CPP
5046 else
5047 ac_cv_prog_CPP=$CPP
5049 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
5050 $as_echo "$CPP" >&6; }
5051 ac_preproc_ok=false
5052 for ac_c_preproc_warn_flag in '' yes
5054 # Use a header file that comes with gcc, so configuring glibc
5055 # with a fresh cross-compiler works.
5056 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5057 # <limits.h> exists even on freestanding compilers.
5058 # On the NeXT, cc -E runs the code through the compiler's parser,
5059 # not just through cpp. "Syntax error" is here to catch this case.
5060 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5061 /* end confdefs.h. */
5062 #ifdef __STDC__
5063 # include <limits.h>
5064 #else
5065 # include <assert.h>
5066 #endif
5067 Syntax error
5068 _ACEOF
5069 if ac_fn_c_try_cpp "$LINENO"; then :
5071 else
5072 # Broken: fails on valid input.
5073 continue
5075 rm -f conftest.err conftest.$ac_ext
5077 # OK, works on sane cases. Now check whether nonexistent headers
5078 # can be detected and how.
5079 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5080 /* end confdefs.h. */
5081 #include <ac_nonexistent.h>
5082 _ACEOF
5083 if ac_fn_c_try_cpp "$LINENO"; then :
5084 # Broken: success on invalid input.
5085 continue
5086 else
5087 # Passes both tests.
5088 ac_preproc_ok=:
5089 break
5091 rm -f conftest.err conftest.$ac_ext
5093 done
5094 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5095 rm -f conftest.err conftest.$ac_ext
5096 if $ac_preproc_ok; then :
5098 else
5099 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
5100 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
5101 as_fn_error "C preprocessor \"$CPP\" fails sanity check
5102 See \`config.log' for more details." "$LINENO" 5; }
5105 ac_ext=c
5106 ac_cpp='$CPP $CPPFLAGS'
5107 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5108 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5109 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5112 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
5113 $as_echo_n "checking for grep that handles long lines and -e... " >&6; }
5114 if test "${ac_cv_path_GREP+set}" = set; then :
5115 $as_echo_n "(cached) " >&6
5116 else
5117 if test -z "$GREP"; then
5118 ac_path_GREP_found=false
5119 # Loop through the user's path and test for each of PROGNAME-LIST
5120 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5121 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
5123 IFS=$as_save_IFS
5124 test -z "$as_dir" && as_dir=.
5125 for ac_prog in grep ggrep; do
5126 for ac_exec_ext in '' $ac_executable_extensions; do
5127 ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
5128 { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } || continue
5129 # Check for GNU ac_path_GREP and select it if it is found.
5130 # Check for GNU $ac_path_GREP
5131 case `"$ac_path_GREP" --version 2>&1` in
5132 *GNU*)
5133 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
5135 ac_count=0
5136 $as_echo_n 0123456789 >"conftest.in"
5137 while :
5139 cat "conftest.in" "conftest.in" >"conftest.tmp"
5140 mv "conftest.tmp" "conftest.in"
5141 cp "conftest.in" "conftest.nl"
5142 $as_echo 'GREP' >> "conftest.nl"
5143 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
5144 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
5145 as_fn_arith $ac_count + 1 && ac_count=$as_val
5146 if test $ac_count -gt ${ac_path_GREP_max-0}; then
5147 # Best one so far, save it but keep looking for a better one
5148 ac_cv_path_GREP="$ac_path_GREP"
5149 ac_path_GREP_max=$ac_count
5151 # 10*(2^10) chars as input seems more than enough
5152 test $ac_count -gt 10 && break
5153 done
5154 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
5155 esac
5157 $ac_path_GREP_found && break 3
5158 done
5159 done
5160 done
5161 IFS=$as_save_IFS
5162 if test -z "$ac_cv_path_GREP"; then
5163 as_fn_error "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
5165 else
5166 ac_cv_path_GREP=$GREP
5170 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
5171 $as_echo "$ac_cv_path_GREP" >&6; }
5172 GREP="$ac_cv_path_GREP"
5175 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
5176 $as_echo_n "checking for egrep... " >&6; }
5177 if test "${ac_cv_path_EGREP+set}" = set; then :
5178 $as_echo_n "(cached) " >&6
5179 else
5180 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
5181 then ac_cv_path_EGREP="$GREP -E"
5182 else
5183 if test -z "$EGREP"; then
5184 ac_path_EGREP_found=false
5185 # Loop through the user's path and test for each of PROGNAME-LIST
5186 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5187 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
5189 IFS=$as_save_IFS
5190 test -z "$as_dir" && as_dir=.
5191 for ac_prog in egrep; do
5192 for ac_exec_ext in '' $ac_executable_extensions; do
5193 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
5194 { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } || continue
5195 # Check for GNU ac_path_EGREP and select it if it is found.
5196 # Check for GNU $ac_path_EGREP
5197 case `"$ac_path_EGREP" --version 2>&1` in
5198 *GNU*)
5199 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
5201 ac_count=0
5202 $as_echo_n 0123456789 >"conftest.in"
5203 while :
5205 cat "conftest.in" "conftest.in" >"conftest.tmp"
5206 mv "conftest.tmp" "conftest.in"
5207 cp "conftest.in" "conftest.nl"
5208 $as_echo 'EGREP' >> "conftest.nl"
5209 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
5210 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
5211 as_fn_arith $ac_count + 1 && ac_count=$as_val
5212 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
5213 # Best one so far, save it but keep looking for a better one
5214 ac_cv_path_EGREP="$ac_path_EGREP"
5215 ac_path_EGREP_max=$ac_count
5217 # 10*(2^10) chars as input seems more than enough
5218 test $ac_count -gt 10 && break
5219 done
5220 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
5221 esac
5223 $ac_path_EGREP_found && break 3
5224 done
5225 done
5226 done
5227 IFS=$as_save_IFS
5228 if test -z "$ac_cv_path_EGREP"; then
5229 as_fn_error "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
5231 else
5232 ac_cv_path_EGREP=$EGREP
5237 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
5238 $as_echo "$ac_cv_path_EGREP" >&6; }
5239 EGREP="$ac_cv_path_EGREP"
5242 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
5243 $as_echo_n "checking for ANSI C header files... " >&6; }
5244 if test "${ac_cv_header_stdc+set}" = set; then :
5245 $as_echo_n "(cached) " >&6
5246 else
5247 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5248 /* end confdefs.h. */
5249 #include <stdlib.h>
5250 #include <stdarg.h>
5251 #include <string.h>
5252 #include <float.h>
5255 main ()
5259 return 0;
5261 _ACEOF
5262 if ac_fn_c_try_compile "$LINENO"; then :
5263 ac_cv_header_stdc=yes
5264 else
5265 ac_cv_header_stdc=no
5267 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5269 if test $ac_cv_header_stdc = yes; then
5270 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
5271 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5272 /* end confdefs.h. */
5273 #include <string.h>
5275 _ACEOF
5276 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5277 $EGREP "memchr" >/dev/null 2>&1; then :
5279 else
5280 ac_cv_header_stdc=no
5282 rm -f conftest*
5286 if test $ac_cv_header_stdc = yes; then
5287 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
5288 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5289 /* end confdefs.h. */
5290 #include <stdlib.h>
5292 _ACEOF
5293 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5294 $EGREP "free" >/dev/null 2>&1; then :
5296 else
5297 ac_cv_header_stdc=no
5299 rm -f conftest*
5303 if test $ac_cv_header_stdc = yes; then
5304 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
5305 if test "$cross_compiling" = yes; then :
5307 else
5308 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5309 /* end confdefs.h. */
5310 #include <ctype.h>
5311 #include <stdlib.h>
5312 #if ((' ' & 0x0FF) == 0x020)
5313 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
5314 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
5315 #else
5316 # define ISLOWER(c) \
5317 (('a' <= (c) && (c) <= 'i') \
5318 || ('j' <= (c) && (c) <= 'r') \
5319 || ('s' <= (c) && (c) <= 'z'))
5320 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
5321 #endif
5323 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
5325 main ()
5327 int i;
5328 for (i = 0; i < 256; i++)
5329 if (XOR (islower (i), ISLOWER (i))
5330 || toupper (i) != TOUPPER (i))
5331 return 2;
5332 return 0;
5334 _ACEOF
5335 if ac_fn_c_try_run "$LINENO"; then :
5337 else
5338 ac_cv_header_stdc=no
5340 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
5341 conftest.$ac_objext conftest.beam conftest.$ac_ext
5346 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
5347 $as_echo "$ac_cv_header_stdc" >&6; }
5348 if test $ac_cv_header_stdc = yes; then
5350 $as_echo "#define STDC_HEADERS 1" >>confdefs.h
5354 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
5355 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
5356 inttypes.h stdint.h unistd.h
5357 do :
5358 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
5359 ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
5361 eval as_val=\$$as_ac_Header
5362 if test "x$as_val" = x""yes; then :
5363 cat >>confdefs.h <<_ACEOF
5364 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
5365 _ACEOF
5369 done
5373 ac_fn_c_check_header_mongrel "$LINENO" "minix/config.h" "ac_cv_header_minix_config_h" "$ac_includes_default"
5374 if test "x$ac_cv_header_minix_config_h" = x""yes; then :
5375 MINIX=yes
5376 else
5377 MINIX=
5381 if test "$MINIX" = yes; then
5383 $as_echo "#define _POSIX_SOURCE 1" >>confdefs.h
5386 $as_echo "#define _POSIX_1_SOURCE 2" >>confdefs.h
5389 $as_echo "#define _MINIX 1" >>confdefs.h
5394 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether it is safe to define __EXTENSIONS__" >&5
5395 $as_echo_n "checking whether it is safe to define __EXTENSIONS__... " >&6; }
5396 if test "${ac_cv_safe_to_define___extensions__+set}" = set; then :
5397 $as_echo_n "(cached) " >&6
5398 else
5399 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5400 /* end confdefs.h. */
5402 # define __EXTENSIONS__ 1
5403 $ac_includes_default
5405 main ()
5409 return 0;
5411 _ACEOF
5412 if ac_fn_c_try_compile "$LINENO"; then :
5413 ac_cv_safe_to_define___extensions__=yes
5414 else
5415 ac_cv_safe_to_define___extensions__=no
5417 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5419 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_safe_to_define___extensions__" >&5
5420 $as_echo "$ac_cv_safe_to_define___extensions__" >&6; }
5421 test $ac_cv_safe_to_define___extensions__ = yes &&
5422 $as_echo "#define __EXTENSIONS__ 1" >>confdefs.h
5424 $as_echo "#define _ALL_SOURCE 1" >>confdefs.h
5426 $as_echo "#define _GNU_SOURCE 1" >>confdefs.h
5428 $as_echo "#define _POSIX_PTHREAD_SEMANTICS 1" >>confdefs.h
5430 $as_echo "#define _TANDEM_SOURCE 1" >>confdefs.h
5433 ac_ext=c
5434 ac_cpp='$CPP $CPPFLAGS'
5435 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5436 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5437 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5438 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
5439 $as_echo_n "checking how to run the C preprocessor... " >&6; }
5440 # On Suns, sometimes $CPP names a directory.
5441 if test -n "$CPP" && test -d "$CPP"; then
5442 CPP=
5444 if test -z "$CPP"; then
5445 if test "${ac_cv_prog_CPP+set}" = set; then :
5446 $as_echo_n "(cached) " >&6
5447 else
5448 # Double quotes because CPP needs to be expanded
5449 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
5451 ac_preproc_ok=false
5452 for ac_c_preproc_warn_flag in '' yes
5454 # Use a header file that comes with gcc, so configuring glibc
5455 # with a fresh cross-compiler works.
5456 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5457 # <limits.h> exists even on freestanding compilers.
5458 # On the NeXT, cc -E runs the code through the compiler's parser,
5459 # not just through cpp. "Syntax error" is here to catch this case.
5460 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5461 /* end confdefs.h. */
5462 #ifdef __STDC__
5463 # include <limits.h>
5464 #else
5465 # include <assert.h>
5466 #endif
5467 Syntax error
5468 _ACEOF
5469 if ac_fn_c_try_cpp "$LINENO"; then :
5471 else
5472 # Broken: fails on valid input.
5473 continue
5475 rm -f conftest.err conftest.$ac_ext
5477 # OK, works on sane cases. Now check whether nonexistent headers
5478 # can be detected and how.
5479 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5480 /* end confdefs.h. */
5481 #include <ac_nonexistent.h>
5482 _ACEOF
5483 if ac_fn_c_try_cpp "$LINENO"; then :
5484 # Broken: success on invalid input.
5485 continue
5486 else
5487 # Passes both tests.
5488 ac_preproc_ok=:
5489 break
5491 rm -f conftest.err conftest.$ac_ext
5493 done
5494 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5495 rm -f conftest.err conftest.$ac_ext
5496 if $ac_preproc_ok; then :
5497 break
5500 done
5501 ac_cv_prog_CPP=$CPP
5504 CPP=$ac_cv_prog_CPP
5505 else
5506 ac_cv_prog_CPP=$CPP
5508 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
5509 $as_echo "$CPP" >&6; }
5510 ac_preproc_ok=false
5511 for ac_c_preproc_warn_flag in '' yes
5513 # Use a header file that comes with gcc, so configuring glibc
5514 # with a fresh cross-compiler works.
5515 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5516 # <limits.h> exists even on freestanding compilers.
5517 # On the NeXT, cc -E runs the code through the compiler's parser,
5518 # not just through cpp. "Syntax error" is here to catch this case.
5519 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5520 /* end confdefs.h. */
5521 #ifdef __STDC__
5522 # include <limits.h>
5523 #else
5524 # include <assert.h>
5525 #endif
5526 Syntax error
5527 _ACEOF
5528 if ac_fn_c_try_cpp "$LINENO"; then :
5530 else
5531 # Broken: fails on valid input.
5532 continue
5534 rm -f conftest.err conftest.$ac_ext
5536 # OK, works on sane cases. Now check whether nonexistent headers
5537 # can be detected and how.
5538 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5539 /* end confdefs.h. */
5540 #include <ac_nonexistent.h>
5541 _ACEOF
5542 if ac_fn_c_try_cpp "$LINENO"; then :
5543 # Broken: success on invalid input.
5544 continue
5545 else
5546 # Passes both tests.
5547 ac_preproc_ok=:
5548 break
5550 rm -f conftest.err conftest.$ac_ext
5552 done
5553 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5554 rm -f conftest.err conftest.$ac_ext
5555 if $ac_preproc_ok; then :
5557 else
5558 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
5559 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
5560 as_fn_error "C preprocessor \"$CPP\" fails sanity check
5561 See \`config.log' for more details." "$LINENO" 5; }
5564 ac_ext=c
5565 ac_cpp='$CPP $CPPFLAGS'
5566 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5567 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5568 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5570 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for inline" >&5
5571 $as_echo_n "checking for inline... " >&6; }
5572 if test "${ac_cv_c_inline+set}" = set; then :
5573 $as_echo_n "(cached) " >&6
5574 else
5575 ac_cv_c_inline=no
5576 for ac_kw in inline __inline__ __inline; do
5577 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5578 /* end confdefs.h. */
5579 #ifndef __cplusplus
5580 typedef int foo_t;
5581 static $ac_kw foo_t static_foo () {return 0; }
5582 $ac_kw foo_t foo () {return 0; }
5583 #endif
5585 _ACEOF
5586 if ac_fn_c_try_compile "$LINENO"; then :
5587 ac_cv_c_inline=$ac_kw
5589 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5590 test "$ac_cv_c_inline" != no && break
5591 done
5594 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_inline" >&5
5595 $as_echo "$ac_cv_c_inline" >&6; }
5597 case $ac_cv_c_inline in
5598 inline | yes) ;;
5600 case $ac_cv_c_inline in
5601 no) ac_val=;;
5602 *) ac_val=$ac_cv_c_inline;;
5603 esac
5604 cat >>confdefs.h <<_ACEOF
5605 #ifndef __cplusplus
5606 #define inline $ac_val
5607 #endif
5608 _ACEOF
5610 esac
5613 # Check whether --enable-largefile was given.
5614 if test "${enable_largefile+set}" = set; then :
5615 enableval=$enable_largefile;
5618 if test "$enable_largefile" != no; then
5620 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for special C compiler options needed for large files" >&5
5621 $as_echo_n "checking for special C compiler options needed for large files... " >&6; }
5622 if test "${ac_cv_sys_largefile_CC+set}" = set; then :
5623 $as_echo_n "(cached) " >&6
5624 else
5625 ac_cv_sys_largefile_CC=no
5626 if test "$GCC" != yes; then
5627 ac_save_CC=$CC
5628 while :; do
5629 # IRIX 6.2 and later do not support large files by default,
5630 # so use the C compiler's -n32 option if that helps.
5631 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5632 /* end confdefs.h. */
5633 #include <sys/types.h>
5634 /* Check that off_t can represent 2**63 - 1 correctly.
5635 We can't simply define LARGE_OFF_T to be 9223372036854775807,
5636 since some C++ compilers masquerading as C compilers
5637 incorrectly reject 9223372036854775807. */
5638 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
5639 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
5640 && LARGE_OFF_T % 2147483647 == 1)
5641 ? 1 : -1];
5643 main ()
5647 return 0;
5649 _ACEOF
5650 if ac_fn_c_try_compile "$LINENO"; then :
5651 break
5653 rm -f core conftest.err conftest.$ac_objext
5654 CC="$CC -n32"
5655 if ac_fn_c_try_compile "$LINENO"; then :
5656 ac_cv_sys_largefile_CC=' -n32'; break
5658 rm -f core conftest.err conftest.$ac_objext
5659 break
5660 done
5661 CC=$ac_save_CC
5662 rm -f conftest.$ac_ext
5665 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_largefile_CC" >&5
5666 $as_echo "$ac_cv_sys_largefile_CC" >&6; }
5667 if test "$ac_cv_sys_largefile_CC" != no; then
5668 CC=$CC$ac_cv_sys_largefile_CC
5671 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _FILE_OFFSET_BITS value needed for large files" >&5
5672 $as_echo_n "checking for _FILE_OFFSET_BITS value needed for large files... " >&6; }
5673 if test "${ac_cv_sys_file_offset_bits+set}" = set; then :
5674 $as_echo_n "(cached) " >&6
5675 else
5676 while :; do
5677 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5678 /* end confdefs.h. */
5679 #include <sys/types.h>
5680 /* Check that off_t can represent 2**63 - 1 correctly.
5681 We can't simply define LARGE_OFF_T to be 9223372036854775807,
5682 since some C++ compilers masquerading as C compilers
5683 incorrectly reject 9223372036854775807. */
5684 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
5685 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
5686 && LARGE_OFF_T % 2147483647 == 1)
5687 ? 1 : -1];
5689 main ()
5693 return 0;
5695 _ACEOF
5696 if ac_fn_c_try_compile "$LINENO"; then :
5697 ac_cv_sys_file_offset_bits=no; break
5699 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5700 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5701 /* end confdefs.h. */
5702 #define _FILE_OFFSET_BITS 64
5703 #include <sys/types.h>
5704 /* Check that off_t can represent 2**63 - 1 correctly.
5705 We can't simply define LARGE_OFF_T to be 9223372036854775807,
5706 since some C++ compilers masquerading as C compilers
5707 incorrectly reject 9223372036854775807. */
5708 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
5709 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
5710 && LARGE_OFF_T % 2147483647 == 1)
5711 ? 1 : -1];
5713 main ()
5717 return 0;
5719 _ACEOF
5720 if ac_fn_c_try_compile "$LINENO"; then :
5721 ac_cv_sys_file_offset_bits=64; break
5723 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5724 ac_cv_sys_file_offset_bits=unknown
5725 break
5726 done
5728 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_file_offset_bits" >&5
5729 $as_echo "$ac_cv_sys_file_offset_bits" >&6; }
5730 case $ac_cv_sys_file_offset_bits in #(
5731 no | unknown) ;;
5733 cat >>confdefs.h <<_ACEOF
5734 #define _FILE_OFFSET_BITS $ac_cv_sys_file_offset_bits
5735 _ACEOF
5737 esac
5738 rm -rf conftest*
5739 if test $ac_cv_sys_file_offset_bits = unknown; then
5740 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _LARGE_FILES value needed for large files" >&5
5741 $as_echo_n "checking for _LARGE_FILES value needed for large files... " >&6; }
5742 if test "${ac_cv_sys_large_files+set}" = set; then :
5743 $as_echo_n "(cached) " >&6
5744 else
5745 while :; do
5746 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5747 /* end confdefs.h. */
5748 #include <sys/types.h>
5749 /* Check that off_t can represent 2**63 - 1 correctly.
5750 We can't simply define LARGE_OFF_T to be 9223372036854775807,
5751 since some C++ compilers masquerading as C compilers
5752 incorrectly reject 9223372036854775807. */
5753 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
5754 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
5755 && LARGE_OFF_T % 2147483647 == 1)
5756 ? 1 : -1];
5758 main ()
5762 return 0;
5764 _ACEOF
5765 if ac_fn_c_try_compile "$LINENO"; then :
5766 ac_cv_sys_large_files=no; break
5768 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5769 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5770 /* end confdefs.h. */
5771 #define _LARGE_FILES 1
5772 #include <sys/types.h>
5773 /* Check that off_t can represent 2**63 - 1 correctly.
5774 We can't simply define LARGE_OFF_T to be 9223372036854775807,
5775 since some C++ compilers masquerading as C compilers
5776 incorrectly reject 9223372036854775807. */
5777 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
5778 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
5779 && LARGE_OFF_T % 2147483647 == 1)
5780 ? 1 : -1];
5782 main ()
5786 return 0;
5788 _ACEOF
5789 if ac_fn_c_try_compile "$LINENO"; then :
5790 ac_cv_sys_large_files=1; break
5792 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5793 ac_cv_sys_large_files=unknown
5794 break
5795 done
5797 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_large_files" >&5
5798 $as_echo "$ac_cv_sys_large_files" >&6; }
5799 case $ac_cv_sys_large_files in #(
5800 no | unknown) ;;
5802 cat >>confdefs.h <<_ACEOF
5803 #define _LARGE_FILES $ac_cv_sys_large_files
5804 _ACEOF
5806 esac
5807 rm -rf conftest*
5812 # sizeof(char) is 1 by definition.
5813 # The cast to long int works around a bug in the HP C Compiler
5814 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
5815 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
5816 # This bug is HP SR number 8606223364.
5817 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of void *" >&5
5818 $as_echo_n "checking size of void *... " >&6; }
5819 if test "${ac_cv_sizeof_void_p+set}" = set; then :
5820 $as_echo_n "(cached) " >&6
5821 else
5822 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (void *))" "ac_cv_sizeof_void_p" "$ac_includes_default"; then :
5824 else
5825 if test "$ac_cv_type_void_p" = yes; then
5826 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
5827 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
5828 { as_fn_set_status 77
5829 as_fn_error "cannot compute sizeof (void *)
5830 See \`config.log' for more details." "$LINENO" 5; }; }
5831 else
5832 ac_cv_sizeof_void_p=0
5837 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_void_p" >&5
5838 $as_echo "$ac_cv_sizeof_void_p" >&6; }
5842 cat >>confdefs.h <<_ACEOF
5843 #define SIZEOF_VOID_P $ac_cv_sizeof_void_p
5844 _ACEOF
5847 # The cast to long int works around a bug in the HP C Compiler
5848 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
5849 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
5850 # This bug is HP SR number 8606223364.
5851 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of short" >&5
5852 $as_echo_n "checking size of short... " >&6; }
5853 if test "${ac_cv_sizeof_short+set}" = set; then :
5854 $as_echo_n "(cached) " >&6
5855 else
5856 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (short))" "ac_cv_sizeof_short" "$ac_includes_default"; then :
5858 else
5859 if test "$ac_cv_type_short" = yes; then
5860 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
5861 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
5862 { as_fn_set_status 77
5863 as_fn_error "cannot compute sizeof (short)
5864 See \`config.log' for more details." "$LINENO" 5; }; }
5865 else
5866 ac_cv_sizeof_short=0
5871 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_short" >&5
5872 $as_echo "$ac_cv_sizeof_short" >&6; }
5876 cat >>confdefs.h <<_ACEOF
5877 #define SIZEOF_SHORT $ac_cv_sizeof_short
5878 _ACEOF
5881 # The cast to long int works around a bug in the HP C Compiler
5882 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
5883 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
5884 # This bug is HP SR number 8606223364.
5885 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of int" >&5
5886 $as_echo_n "checking size of int... " >&6; }
5887 if test "${ac_cv_sizeof_int+set}" = set; then :
5888 $as_echo_n "(cached) " >&6
5889 else
5890 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (int))" "ac_cv_sizeof_int" "$ac_includes_default"; then :
5892 else
5893 if test "$ac_cv_type_int" = yes; then
5894 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
5895 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
5896 { as_fn_set_status 77
5897 as_fn_error "cannot compute sizeof (int)
5898 See \`config.log' for more details." "$LINENO" 5; }; }
5899 else
5900 ac_cv_sizeof_int=0
5905 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_int" >&5
5906 $as_echo "$ac_cv_sizeof_int" >&6; }
5910 cat >>confdefs.h <<_ACEOF
5911 #define SIZEOF_INT $ac_cv_sizeof_int
5912 _ACEOF
5915 # The cast to long int works around a bug in the HP C Compiler
5916 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
5917 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
5918 # This bug is HP SR number 8606223364.
5919 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of long" >&5
5920 $as_echo_n "checking size of long... " >&6; }
5921 if test "${ac_cv_sizeof_long+set}" = set; then :
5922 $as_echo_n "(cached) " >&6
5923 else
5924 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (long))" "ac_cv_sizeof_long" "$ac_includes_default"; then :
5926 else
5927 if test "$ac_cv_type_long" = yes; then
5928 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
5929 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
5930 { as_fn_set_status 77
5931 as_fn_error "cannot compute sizeof (long)
5932 See \`config.log' for more details." "$LINENO" 5; }; }
5933 else
5934 ac_cv_sizeof_long=0
5939 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_long" >&5
5940 $as_echo "$ac_cv_sizeof_long" >&6; }
5944 cat >>confdefs.h <<_ACEOF
5945 #define SIZEOF_LONG $ac_cv_sizeof_long
5946 _ACEOF
5949 ac_fn_c_check_type "$LINENO" "long long" "ac_cv_type_long_long" "$ac_includes_default"
5950 if test "x$ac_cv_type_long_long" = x""yes; then :
5952 cat >>confdefs.h <<_ACEOF
5953 #define HAVE_LONG_LONG 1
5954 _ACEOF
5956 # The cast to long int works around a bug in the HP C Compiler
5957 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
5958 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
5959 # This bug is HP SR number 8606223364.
5960 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of long long" >&5
5961 $as_echo_n "checking size of long long... " >&6; }
5962 if test "${ac_cv_sizeof_long_long+set}" = set; then :
5963 $as_echo_n "(cached) " >&6
5964 else
5965 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (long long))" "ac_cv_sizeof_long_long" "$ac_includes_default"; then :
5967 else
5968 if test "$ac_cv_type_long_long" = yes; then
5969 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
5970 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
5971 { as_fn_set_status 77
5972 as_fn_error "cannot compute sizeof (long long)
5973 See \`config.log' for more details." "$LINENO" 5; }; }
5974 else
5975 ac_cv_sizeof_long_long=0
5980 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_long_long" >&5
5981 $as_echo "$ac_cv_sizeof_long_long" >&6; }
5985 cat >>confdefs.h <<_ACEOF
5986 #define SIZEOF_LONG_LONG $ac_cv_sizeof_long_long
5987 _ACEOF
5992 ac_fn_c_check_type "$LINENO" "__int64" "ac_cv_type___int64" "$ac_includes_default"
5993 if test "x$ac_cv_type___int64" = x""yes; then :
5995 cat >>confdefs.h <<_ACEOF
5996 #define HAVE___INT64 1
5997 _ACEOF
5999 # The cast to long int works around a bug in the HP C Compiler
6000 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
6001 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
6002 # This bug is HP SR number 8606223364.
6003 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of __int64" >&5
6004 $as_echo_n "checking size of __int64... " >&6; }
6005 if test "${ac_cv_sizeof___int64+set}" = set; then :
6006 $as_echo_n "(cached) " >&6
6007 else
6008 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (__int64))" "ac_cv_sizeof___int64" "$ac_includes_default"; then :
6010 else
6011 if test "$ac_cv_type___int64" = yes; then
6012 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
6013 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
6014 { as_fn_set_status 77
6015 as_fn_error "cannot compute sizeof (__int64)
6016 See \`config.log' for more details." "$LINENO" 5; }; }
6017 else
6018 ac_cv_sizeof___int64=0
6023 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof___int64" >&5
6024 $as_echo "$ac_cv_sizeof___int64" >&6; }
6028 cat >>confdefs.h <<_ACEOF
6029 #define SIZEOF___INT64 $ac_cv_sizeof___int64
6030 _ACEOF
6035 ac_fn_c_find_intX_t "$LINENO" "8" "ac_cv_c_int8_t"
6036 case $ac_cv_c_int8_t in #(
6037 no|yes) ;; #(
6040 cat >>confdefs.h <<_ACEOF
6041 #define int8_t $ac_cv_c_int8_t
6042 _ACEOF
6044 esac
6046 ac_fn_c_find_intX_t "$LINENO" "16" "ac_cv_c_int16_t"
6047 case $ac_cv_c_int16_t in #(
6048 no|yes) ;; #(
6051 cat >>confdefs.h <<_ACEOF
6052 #define int16_t $ac_cv_c_int16_t
6053 _ACEOF
6055 esac
6057 ac_fn_c_find_intX_t "$LINENO" "32" "ac_cv_c_int32_t"
6058 case $ac_cv_c_int32_t in #(
6059 no|yes) ;; #(
6062 cat >>confdefs.h <<_ACEOF
6063 #define int32_t $ac_cv_c_int32_t
6064 _ACEOF
6066 esac
6068 ac_fn_c_find_intX_t "$LINENO" "64" "ac_cv_c_int64_t"
6069 case $ac_cv_c_int64_t in #(
6070 no|yes) ;; #(
6073 cat >>confdefs.h <<_ACEOF
6074 #define int64_t $ac_cv_c_int64_t
6075 _ACEOF
6077 esac
6080 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for long long int" >&5
6081 $as_echo_n "checking for long long int... " >&6; }
6082 if test "${ac_cv_type_long_long_int+set}" = set; then :
6083 $as_echo_n "(cached) " >&6
6084 else
6085 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6086 /* end confdefs.h. */
6088 /* For now, do not test the preprocessor; as of 2007 there are too many
6089 implementations with broken preprocessors. Perhaps this can
6090 be revisited in 2012. In the meantime, code should not expect
6091 #if to work with literals wider than 32 bits. */
6092 /* Test literals. */
6093 long long int ll = 9223372036854775807ll;
6094 long long int nll = -9223372036854775807LL;
6095 unsigned long long int ull = 18446744073709551615ULL;
6096 /* Test constant expressions. */
6097 typedef int a[((-9223372036854775807LL < 0 && 0 < 9223372036854775807ll)
6098 ? 1 : -1)];
6099 typedef int b[(18446744073709551615ULL <= (unsigned long long int) -1
6100 ? 1 : -1)];
6101 int i = 63;
6103 main ()
6105 /* Test availability of runtime routines for shift and division. */
6106 long long int llmax = 9223372036854775807ll;
6107 unsigned long long int ullmax = 18446744073709551615ull;
6108 return ((ll << 63) | (ll >> 63) | (ll < i) | (ll > i)
6109 | (llmax / ll) | (llmax % ll)
6110 | (ull << 63) | (ull >> 63) | (ull << i) | (ull >> i)
6111 | (ullmax / ull) | (ullmax % ull));
6113 return 0;
6116 _ACEOF
6117 if ac_fn_c_try_link "$LINENO"; then :
6118 if test "$cross_compiling" = yes; then :
6119 ac_cv_type_long_long_int=yes
6120 else
6121 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6122 /* end confdefs.h. */
6123 #include <limits.h>
6124 #ifndef LLONG_MAX
6125 # define HALF \
6126 (1LL << (sizeof (long long int) * CHAR_BIT - 2))
6127 # define LLONG_MAX (HALF - 1 + HALF)
6128 #endif
6130 main ()
6132 long long int n = 1;
6133 int i;
6134 for (i = 0; ; i++)
6136 long long int m = n << i;
6137 if (m >> i != n)
6138 return 1;
6139 if (LLONG_MAX / 2 < m)
6140 break;
6142 return 0;
6144 return 0;
6146 _ACEOF
6147 if ac_fn_c_try_run "$LINENO"; then :
6148 ac_cv_type_long_long_int=yes
6149 else
6150 ac_cv_type_long_long_int=no
6152 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
6153 conftest.$ac_objext conftest.beam conftest.$ac_ext
6156 else
6157 ac_cv_type_long_long_int=no
6159 rm -f core conftest.err conftest.$ac_objext \
6160 conftest$ac_exeext conftest.$ac_ext
6162 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_long_long_int" >&5
6163 $as_echo "$ac_cv_type_long_long_int" >&6; }
6164 if test $ac_cv_type_long_long_int = yes; then
6166 $as_echo "#define HAVE_LONG_LONG_INT 1" >>confdefs.h
6172 ac_fn_c_check_type "$LINENO" "intmax_t" "ac_cv_type_intmax_t" "$ac_includes_default"
6173 if test "x$ac_cv_type_intmax_t" = x""yes; then :
6175 $as_echo "#define HAVE_INTMAX_T 1" >>confdefs.h
6177 else
6178 test $ac_cv_type_long_long_int = yes \
6179 && ac_type='long long int' \
6180 || ac_type='long int'
6182 cat >>confdefs.h <<_ACEOF
6183 #define intmax_t $ac_type
6184 _ACEOF
6190 ac_fn_c_check_type "$LINENO" "intptr_t" "ac_cv_type_intptr_t" "$ac_includes_default"
6191 if test "x$ac_cv_type_intptr_t" = x""yes; then :
6193 $as_echo "#define HAVE_INTPTR_T 1" >>confdefs.h
6195 else
6196 for ac_type in 'int' 'long int' 'long long int'; do
6197 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6198 /* end confdefs.h. */
6199 $ac_includes_default
6201 main ()
6203 static int test_array [1 - 2 * !(sizeof (void *) <= sizeof ($ac_type))];
6204 test_array [0] = 0
6207 return 0;
6209 _ACEOF
6210 if ac_fn_c_try_compile "$LINENO"; then :
6212 cat >>confdefs.h <<_ACEOF
6213 #define intptr_t $ac_type
6214 _ACEOF
6216 ac_type=
6218 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6219 test -z "$ac_type" && break
6220 done
6224 ac_fn_c_find_uintX_t "$LINENO" "8" "ac_cv_c_uint8_t"
6225 case $ac_cv_c_uint8_t in #(
6226 no|yes) ;; #(
6229 $as_echo "#define _UINT8_T 1" >>confdefs.h
6232 cat >>confdefs.h <<_ACEOF
6233 #define uint8_t $ac_cv_c_uint8_t
6234 _ACEOF
6236 esac
6238 ac_fn_c_find_uintX_t "$LINENO" "16" "ac_cv_c_uint16_t"
6239 case $ac_cv_c_uint16_t in #(
6240 no|yes) ;; #(
6244 cat >>confdefs.h <<_ACEOF
6245 #define uint16_t $ac_cv_c_uint16_t
6246 _ACEOF
6248 esac
6250 ac_fn_c_find_uintX_t "$LINENO" "32" "ac_cv_c_uint32_t"
6251 case $ac_cv_c_uint32_t in #(
6252 no|yes) ;; #(
6255 $as_echo "#define _UINT32_T 1" >>confdefs.h
6258 cat >>confdefs.h <<_ACEOF
6259 #define uint32_t $ac_cv_c_uint32_t
6260 _ACEOF
6262 esac
6264 ac_fn_c_find_uintX_t "$LINENO" "64" "ac_cv_c_uint64_t"
6265 case $ac_cv_c_uint64_t in #(
6266 no|yes) ;; #(
6269 $as_echo "#define _UINT64_T 1" >>confdefs.h
6272 cat >>confdefs.h <<_ACEOF
6273 #define uint64_t $ac_cv_c_uint64_t
6274 _ACEOF
6276 esac
6279 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for unsigned long long int" >&5
6280 $as_echo_n "checking for unsigned long long int... " >&6; }
6281 if test "${ac_cv_type_unsigned_long_long_int+set}" = set; then :
6282 $as_echo_n "(cached) " >&6
6283 else
6284 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6285 /* end confdefs.h. */
6287 /* For now, do not test the preprocessor; as of 2007 there are too many
6288 implementations with broken preprocessors. Perhaps this can
6289 be revisited in 2012. In the meantime, code should not expect
6290 #if to work with literals wider than 32 bits. */
6291 /* Test literals. */
6292 long long int ll = 9223372036854775807ll;
6293 long long int nll = -9223372036854775807LL;
6294 unsigned long long int ull = 18446744073709551615ULL;
6295 /* Test constant expressions. */
6296 typedef int a[((-9223372036854775807LL < 0 && 0 < 9223372036854775807ll)
6297 ? 1 : -1)];
6298 typedef int b[(18446744073709551615ULL <= (unsigned long long int) -1
6299 ? 1 : -1)];
6300 int i = 63;
6302 main ()
6304 /* Test availability of runtime routines for shift and division. */
6305 long long int llmax = 9223372036854775807ll;
6306 unsigned long long int ullmax = 18446744073709551615ull;
6307 return ((ll << 63) | (ll >> 63) | (ll < i) | (ll > i)
6308 | (llmax / ll) | (llmax % ll)
6309 | (ull << 63) | (ull >> 63) | (ull << i) | (ull >> i)
6310 | (ullmax / ull) | (ullmax % ull));
6312 return 0;
6315 _ACEOF
6316 if ac_fn_c_try_link "$LINENO"; then :
6317 ac_cv_type_unsigned_long_long_int=yes
6318 else
6319 ac_cv_type_unsigned_long_long_int=no
6321 rm -f core conftest.err conftest.$ac_objext \
6322 conftest$ac_exeext conftest.$ac_ext
6324 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_unsigned_long_long_int" >&5
6325 $as_echo "$ac_cv_type_unsigned_long_long_int" >&6; }
6326 if test $ac_cv_type_unsigned_long_long_int = yes; then
6328 $as_echo "#define HAVE_UNSIGNED_LONG_LONG_INT 1" >>confdefs.h
6334 ac_fn_c_check_type "$LINENO" "uintmax_t" "ac_cv_type_uintmax_t" "$ac_includes_default"
6335 if test "x$ac_cv_type_uintmax_t" = x""yes; then :
6337 $as_echo "#define HAVE_UINTMAX_T 1" >>confdefs.h
6339 else
6340 test $ac_cv_type_unsigned_long_long_int = yes \
6341 && ac_type='unsigned long long int' \
6342 || ac_type='unsigned long int'
6344 cat >>confdefs.h <<_ACEOF
6345 #define uintmax_t $ac_type
6346 _ACEOF
6352 ac_fn_c_check_type "$LINENO" "uintptr_t" "ac_cv_type_uintptr_t" "$ac_includes_default"
6353 if test "x$ac_cv_type_uintptr_t" = x""yes; then :
6355 $as_echo "#define HAVE_UINTPTR_T 1" >>confdefs.h
6357 else
6358 for ac_type in 'unsigned int' 'unsigned long int' \
6359 'unsigned long long int'; do
6360 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6361 /* end confdefs.h. */
6362 $ac_includes_default
6364 main ()
6366 static int test_array [1 - 2 * !(sizeof (void *) <= sizeof ($ac_type))];
6367 test_array [0] = 0
6370 return 0;
6372 _ACEOF
6373 if ac_fn_c_try_compile "$LINENO"; then :
6375 cat >>confdefs.h <<_ACEOF
6376 #define uintptr_t $ac_type
6377 _ACEOF
6379 ac_type=
6381 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6382 test -z "$ac_type" && break
6383 done
6400 # ---------------------
6401 # Warnings and checking
6402 # ---------------------
6404 # Check $CC warning features (if it's GCC).
6405 # We want to use -pedantic, but we don't want warnings about
6406 # * 'long long'
6407 # * variadic macros
6408 # * overlong strings
6409 # * C++11 narrowing conversions in { }
6410 # So, we only use -pedantic if we can disable those warnings.
6412 loose_warn=
6413 save_CFLAGS="$CFLAGS"
6414 for real_option in -W -Wall -Wno-narrowing -Wwrite-strings -Wcast-qual; do
6415 # Do the check with the no- prefix removed since gcc silently
6416 # accepts any -Wno-* option on purpose
6417 case $real_option in
6418 -Wno-*) option=-W`expr x$real_option : 'x-Wno-\(.*\)'` ;;
6419 *) option=$real_option ;;
6420 esac
6421 as_acx_Woption=`$as_echo "acx_cv_prog_cc_warning_$option" | $as_tr_sh`
6423 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC supports $option" >&5
6424 $as_echo_n "checking whether $CC supports $option... " >&6; }
6425 if { as_var=$as_acx_Woption; eval "test \"\${$as_var+set}\" = set"; }; then :
6426 $as_echo_n "(cached) " >&6
6427 else
6428 CFLAGS="$option"
6429 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6430 /* end confdefs.h. */
6433 main ()
6437 return 0;
6439 _ACEOF
6440 if ac_fn_c_try_compile "$LINENO"; then :
6441 eval "$as_acx_Woption=yes"
6442 else
6443 eval "$as_acx_Woption=no"
6445 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6448 eval ac_res=\$$as_acx_Woption
6449 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
6450 $as_echo "$ac_res" >&6; }
6451 if test `eval 'as_val=${'$as_acx_Woption'};$as_echo "$as_val"'` = yes; then :
6452 loose_warn="$loose_warn${loose_warn:+ }$real_option"
6454 done
6455 CFLAGS="$save_CFLAGS"
6457 c_loose_warn=
6458 save_CFLAGS="$CFLAGS"
6459 for real_option in -Wstrict-prototypes -Wmissing-prototypes; do
6460 # Do the check with the no- prefix removed since gcc silently
6461 # accepts any -Wno-* option on purpose
6462 case $real_option in
6463 -Wno-*) option=-W`expr x$real_option : 'x-Wno-\(.*\)'` ;;
6464 *) option=$real_option ;;
6465 esac
6466 as_acx_Woption=`$as_echo "acx_cv_prog_cc_warning_$option" | $as_tr_sh`
6468 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC supports $option" >&5
6469 $as_echo_n "checking whether $CC supports $option... " >&6; }
6470 if { as_var=$as_acx_Woption; eval "test \"\${$as_var+set}\" = set"; }; then :
6471 $as_echo_n "(cached) " >&6
6472 else
6473 CFLAGS="$option"
6474 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6475 /* end confdefs.h. */
6478 main ()
6482 return 0;
6484 _ACEOF
6485 if ac_fn_c_try_compile "$LINENO"; then :
6486 eval "$as_acx_Woption=yes"
6487 else
6488 eval "$as_acx_Woption=no"
6490 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6493 eval ac_res=\$$as_acx_Woption
6494 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
6495 $as_echo "$ac_res" >&6; }
6496 if test `eval 'as_val=${'$as_acx_Woption'};$as_echo "$as_val"'` = yes; then :
6497 c_loose_warn="$c_loose_warn${c_loose_warn:+ }$real_option"
6499 done
6500 CFLAGS="$save_CFLAGS"
6502 strict_warn=
6503 save_CFLAGS="$CFLAGS"
6504 for real_option in -Wmissing-format-attribute; do
6505 # Do the check with the no- prefix removed since gcc silently
6506 # accepts any -Wno-* option on purpose
6507 case $real_option in
6508 -Wno-*) option=-W`expr x$real_option : 'x-Wno-\(.*\)'` ;;
6509 *) option=$real_option ;;
6510 esac
6511 as_acx_Woption=`$as_echo "acx_cv_prog_cc_warning_$option" | $as_tr_sh`
6513 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC supports $option" >&5
6514 $as_echo_n "checking whether $CC supports $option... " >&6; }
6515 if { as_var=$as_acx_Woption; eval "test \"\${$as_var+set}\" = set"; }; then :
6516 $as_echo_n "(cached) " >&6
6517 else
6518 CFLAGS="$option"
6519 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6520 /* end confdefs.h. */
6523 main ()
6527 return 0;
6529 _ACEOF
6530 if ac_fn_c_try_compile "$LINENO"; then :
6531 eval "$as_acx_Woption=yes"
6532 else
6533 eval "$as_acx_Woption=no"
6535 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6538 eval ac_res=\$$as_acx_Woption
6539 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
6540 $as_echo "$ac_res" >&6; }
6541 if test `eval 'as_val=${'$as_acx_Woption'};$as_echo "$as_val"'` = yes; then :
6542 strict_warn="$strict_warn${strict_warn:+ }$real_option"
6544 done
6545 CFLAGS="$save_CFLAGS"
6547 c_strict_warn=
6548 save_CFLAGS="$CFLAGS"
6549 for real_option in -Wold-style-definition -Wc++-compat; do
6550 # Do the check with the no- prefix removed since gcc silently
6551 # accepts any -Wno-* option on purpose
6552 case $real_option in
6553 -Wno-*) option=-W`expr x$real_option : 'x-Wno-\(.*\)'` ;;
6554 *) option=$real_option ;;
6555 esac
6556 as_acx_Woption=`$as_echo "acx_cv_prog_cc_warning_$option" | $as_tr_sh`
6558 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC supports $option" >&5
6559 $as_echo_n "checking whether $CC supports $option... " >&6; }
6560 if { as_var=$as_acx_Woption; eval "test \"\${$as_var+set}\" = set"; }; then :
6561 $as_echo_n "(cached) " >&6
6562 else
6563 CFLAGS="$option"
6564 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6565 /* end confdefs.h. */
6568 main ()
6572 return 0;
6574 _ACEOF
6575 if ac_fn_c_try_compile "$LINENO"; then :
6576 eval "$as_acx_Woption=yes"
6577 else
6578 eval "$as_acx_Woption=no"
6580 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6583 eval ac_res=\$$as_acx_Woption
6584 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
6585 $as_echo "$ac_res" >&6; }
6586 if test `eval 'as_val=${'$as_acx_Woption'};$as_echo "$as_val"'` = yes; then :
6587 c_strict_warn="$c_strict_warn${c_strict_warn:+ }$real_option"
6589 done
6590 CFLAGS="$save_CFLAGS"
6592 # Do the check with the no- prefix removed from the warning options
6593 # since gcc silently accepts any -Wno-* option on purpose
6594 if test "$GCC" = yes; then :
6595 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC supports -pedantic -Wlong-long -Wvariadic-macros -Woverlength-strings" >&5
6596 $as_echo_n "checking whether $CC supports -pedantic -Wlong-long -Wvariadic-macros -Woverlength-strings... " >&6; }
6597 if test "${acx_cv_prog_cc_pedantic__Wlong_long__Wvariadic_macros__Woverlength_strings+set}" = set; then :
6598 $as_echo_n "(cached) " >&6
6599 else
6600 save_CFLAGS="$CFLAGS"
6601 CFLAGS="-pedantic -Wlong-long -Wvariadic-macros -Woverlength-strings"
6602 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6603 /* end confdefs.h. */
6606 main ()
6610 return 0;
6612 _ACEOF
6613 if ac_fn_c_try_compile "$LINENO"; then :
6614 acx_cv_prog_cc_pedantic__Wlong_long__Wvariadic_macros__Woverlength_strings=yes
6615 else
6616 acx_cv_prog_cc_pedantic__Wlong_long__Wvariadic_macros__Woverlength_strings=no
6618 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6619 CFLAGS="$save_CFLAGS"
6621 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $acx_cv_prog_cc_pedantic__Wlong_long__Wvariadic_macros__Woverlength_strings" >&5
6622 $as_echo "$acx_cv_prog_cc_pedantic__Wlong_long__Wvariadic_macros__Woverlength_strings" >&6; }
6623 if test $acx_cv_prog_cc_pedantic__Wlong_long__Wvariadic_macros__Woverlength_strings = yes; then :
6624 strict_warn="$strict_warn${strict_warn:+ }-pedantic -Wno-long-long -Wno-variadic-macros -Wno-overlength-strings"
6629 # Check whether --enable-werror-always was given.
6630 if test "${enable_werror_always+set}" = set; then :
6631 enableval=$enable_werror_always;
6632 else
6633 enable_werror_always=no
6636 if test $enable_werror_always = yes; then :
6637 strict_warn="$strict_warn${strict_warn:+ }-Werror"
6642 # The above macros do nothing if the compiler is not GCC. However, the
6643 # Makefile has more goo to add other flags, so these variables are used
6644 # to enable warnings only for GCC.
6645 warn_cflags=
6646 warn_cxxflags=
6647 if test "x$GCC" = "xyes"; then
6648 warn_cflags='$(GCC_WARN_CFLAGS)'
6649 warn_cxxflags='$(GCC_WARN_CXXFLAGS)'
6654 # Disable exceptions and RTTI if building with g++
6655 noexception_flags=
6656 save_CFLAGS="$CFLAGS"
6657 for real_option in -fno-exceptions -fno-rtti -fasynchronous-unwind-tables; do
6658 # Do the check with the no- prefix removed since gcc silently
6659 # accepts any -Wno-* option on purpose
6660 case $real_option in
6661 -Wno-*) option=-W`expr x$real_option : 'x-Wno-\(.*\)'` ;;
6662 *) option=$real_option ;;
6663 esac
6664 as_acx_Woption=`$as_echo "acx_cv_prog_cc_warning_$option" | $as_tr_sh`
6666 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC supports $option" >&5
6667 $as_echo_n "checking whether $CC supports $option... " >&6; }
6668 if { as_var=$as_acx_Woption; eval "test \"\${$as_var+set}\" = set"; }; then :
6669 $as_echo_n "(cached) " >&6
6670 else
6671 CFLAGS="$option"
6672 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6673 /* end confdefs.h. */
6676 main ()
6680 return 0;
6682 _ACEOF
6683 if ac_fn_c_try_compile "$LINENO"; then :
6684 eval "$as_acx_Woption=yes"
6685 else
6686 eval "$as_acx_Woption=no"
6688 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6691 eval ac_res=\$$as_acx_Woption
6692 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
6693 $as_echo "$ac_res" >&6; }
6694 if test `eval 'as_val=${'$as_acx_Woption'};$as_echo "$as_val"'` = yes; then :
6695 noexception_flags="$noexception_flags${noexception_flags:+ }$real_option"
6697 done
6698 CFLAGS="$save_CFLAGS"
6701 # Enable expensive internal checks
6702 is_release=
6703 if test x"`cat $srcdir/DEV-PHASE`" != xexperimental; then
6704 is_release=yes
6707 # Check whether --enable-checking was given.
6708 if test "${enable_checking+set}" = set; then :
6709 enableval=$enable_checking; ac_checking_flags="${enableval}"
6710 else
6712 # Determine the default checks.
6713 if test x$is_release = x ; then
6714 ac_checking_flags=yes
6715 else
6716 ac_checking_flags=release
6720 IFS="${IFS= }"; ac_save_IFS="$IFS"; IFS="$IFS,"
6721 for check in release $ac_checking_flags
6723 case $check in
6724 # these set all the flags to specific states
6725 yes) ac_assert_checking=1 ; ac_checking=1 ; ac_df_checking= ;
6726 ac_fold_checking= ; ac_gc_checking=1 ;
6727 ac_gc_always_collect= ; ac_gimple_checking=1 ; ac_rtl_checking= ;
6728 ac_rtlflag_checking=1 ; ac_runtime_checking=1 ;
6729 ac_tree_checking=1 ; ac_valgrind_checking= ;
6730 ac_types_checking=1 ;;
6731 no|none) ac_assert_checking= ; ac_checking= ; ac_df_checking= ;
6732 ac_fold_checking= ; ac_gc_checking= ;
6733 ac_gc_always_collect= ; ac_gimple_checking= ; ac_rtl_checking= ;
6734 ac_rtlflag_checking= ; ac_runtime_checking= ;
6735 ac_tree_checking= ; ac_valgrind_checking= ;
6736 ac_types_checking= ;;
6737 all) ac_assert_checking=1 ; ac_checking=1 ; ac_df_checking=1 ;
6738 ac_fold_checking=1 ; ac_gc_checking=1 ;
6739 ac_gc_always_collect=1 ; ac_gimple_checking=1 ; ac_rtl_checking=1 ;
6740 ac_rtlflag_checking=1 ; ac_runtime_checking=1 ;
6741 ac_tree_checking=1 ; ac_valgrind_checking= ;
6742 ac_types_checking=1 ;;
6743 release) ac_assert_checking=1 ; ac_checking= ; ac_df_checking= ;
6744 ac_fold_checking= ; ac_gc_checking= ;
6745 ac_gc_always_collect= ; ac_gimple_checking= ; ac_rtl_checking= ;
6746 ac_rtlflag_checking= ; ac_runtime_checking=1 ;
6747 ac_tree_checking= ; ac_valgrind_checking= ;
6748 ac_types_checking= ;;
6749 # these enable particular checks
6750 assert) ac_assert_checking=1 ;;
6751 df) ac_df_checking=1 ;;
6752 fold) ac_fold_checking=1 ;;
6753 gc) ac_gc_checking=1 ;;
6754 gcac) ac_gc_always_collect=1 ;;
6755 gimple) ac_gimple_checking=1 ;;
6756 misc) ac_checking=1 ;;
6757 rtl) ac_rtl_checking=1 ;;
6758 rtlflag) ac_rtlflag_checking=1 ;;
6759 runtime) ac_runtime_checking=1 ;;
6760 tree) ac_tree_checking=1 ;;
6761 types) ac_types_checking=1 ;;
6762 valgrind) ac_valgrind_checking=1 ;;
6763 *) as_fn_error "unknown check category $check" "$LINENO" 5 ;;
6764 esac
6765 done
6766 IFS="$ac_save_IFS"
6768 nocommon_flag=""
6769 if test x$ac_checking != x ; then
6771 $as_echo "#define ENABLE_CHECKING 1" >>confdefs.h
6773 nocommon_flag=-fno-common
6776 if test x$ac_df_checking != x ; then
6778 $as_echo "#define ENABLE_DF_CHECKING 1" >>confdefs.h
6781 if test x$ac_assert_checking != x ; then
6783 $as_echo "#define ENABLE_ASSERT_CHECKING 1" >>confdefs.h
6786 if test x$ac_gimple_checking != x ; then
6788 $as_echo "#define ENABLE_GIMPLE_CHECKING 1" >>confdefs.h
6792 if test x$ac_runtime_checking != x ; then
6794 $as_echo "#define ENABLE_RUNTIME_CHECKING 1" >>confdefs.h
6797 if test x$ac_tree_checking != x ; then
6799 $as_echo "#define ENABLE_TREE_CHECKING 1" >>confdefs.h
6801 TREEBROWSER=tree-browser.o
6802 TREECHECKING=yes
6804 if test x$ac_types_checking != x ; then
6806 $as_echo "#define ENABLE_TYPES_CHECKING 1" >>confdefs.h
6811 if test x$ac_rtl_checking != x ; then
6813 $as_echo "#define ENABLE_RTL_CHECKING 1" >>confdefs.h
6816 if test x$ac_rtlflag_checking != x ; then
6818 $as_echo "#define ENABLE_RTL_FLAG_CHECKING 1" >>confdefs.h
6821 if test x$ac_gc_checking != x ; then
6823 $as_echo "#define ENABLE_GC_CHECKING 1" >>confdefs.h
6826 if test x$ac_gc_always_collect != x ; then
6828 $as_echo "#define ENABLE_GC_ALWAYS_COLLECT 1" >>confdefs.h
6831 if test x$ac_fold_checking != x ; then
6833 $as_echo "#define ENABLE_FOLD_CHECKING 1" >>confdefs.h
6836 valgrind_path_defines=
6837 valgrind_command=
6839 ac_fn_c_check_header_mongrel "$LINENO" "valgrind.h" "ac_cv_header_valgrind_h" "$ac_includes_default"
6840 if test "x$ac_cv_header_valgrind_h" = x""yes; then :
6841 have_valgrind_h=yes
6842 else
6843 have_valgrind_h=no
6848 if test x$ac_valgrind_checking != x ; then
6849 # It is certainly possible that there's valgrind but no valgrind.h.
6850 # GCC relies on making annotations so we must have both.
6851 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for VALGRIND_DISCARD in <valgrind/memcheck.h>" >&5
6852 $as_echo_n "checking for VALGRIND_DISCARD in <valgrind/memcheck.h>... " >&6; }
6853 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6854 /* end confdefs.h. */
6855 #include <valgrind/memcheck.h>
6856 #ifndef VALGRIND_DISCARD
6857 #error VALGRIND_DISCARD not defined
6858 #endif
6859 _ACEOF
6860 if ac_fn_c_try_cpp "$LINENO"; then :
6861 gcc_cv_header_valgrind_memcheck_h=yes
6862 else
6863 gcc_cv_header_valgrind_memcheck_h=no
6865 rm -f conftest.err conftest.$ac_ext
6866 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_header_valgrind_memcheck_h" >&5
6867 $as_echo "$gcc_cv_header_valgrind_memcheck_h" >&6; }
6868 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for VALGRIND_DISCARD in <memcheck.h>" >&5
6869 $as_echo_n "checking for VALGRIND_DISCARD in <memcheck.h>... " >&6; }
6870 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6871 /* end confdefs.h. */
6872 #include <memcheck.h>
6873 #ifndef VALGRIND_DISCARD
6874 #error VALGRIND_DISCARD not defined
6875 #endif
6876 _ACEOF
6877 if ac_fn_c_try_cpp "$LINENO"; then :
6878 gcc_cv_header_memcheck_h=yes
6879 else
6880 gcc_cv_header_memcheck_h=no
6882 rm -f conftest.err conftest.$ac_ext
6883 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_header_memcheck_h" >&5
6884 $as_echo "$gcc_cv_header_memcheck_h" >&6; }
6886 # Prepare PATH_SEPARATOR.
6887 # The user is always right.
6888 if test "${PATH_SEPARATOR+set}" != set; then
6889 echo "#! /bin/sh" >conf$$.sh
6890 echo "exit 0" >>conf$$.sh
6891 chmod +x conf$$.sh
6892 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
6893 PATH_SEPARATOR=';'
6894 else
6895 PATH_SEPARATOR=:
6897 rm -f conf$$.sh
6900 # Find out how to test for executable files. Don't use a zero-byte file,
6901 # as systems may use methods other than mode bits to determine executability.
6902 cat >conf$$.file <<_ASEOF
6903 #! /bin/sh
6904 exit 0
6905 _ASEOF
6906 chmod +x conf$$.file
6907 if test -x conf$$.file >/dev/null 2>&1; then
6908 ac_executable_p="test -x"
6909 else
6910 ac_executable_p="test -f"
6912 rm -f conf$$.file
6914 # Extract the first word of "valgrind", so it can be a program name with args.
6915 set dummy valgrind; ac_word=$2
6916 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6917 $as_echo_n "checking for $ac_word... " >&6; }
6918 if test "${ac_cv_path_valgrind_path+set}" = set; then :
6919 $as_echo_n "(cached) " >&6
6920 else
6921 case "$valgrind_path" in
6922 [\\/]* | ?:[\\/]*)
6923 ac_cv_path_valgrind_path="$valgrind_path" # Let the user override the test with a path.
6926 ac_save_IFS="$IFS"; IFS=$PATH_SEPARATOR
6927 for ac_dir in $PATH; do
6928 IFS="$ac_save_IFS"
6929 test -z "$ac_dir" && ac_dir=.
6930 for ac_exec_ext in '' $ac_executable_extensions; do
6931 if $ac_executable_p "$ac_dir/$ac_word$ac_exec_ext"; then
6932 if $ac_dir/$ac_word --version | grep valgrind- >/dev/null 2>&1; then
6933 ac_cv_path_valgrind_path="$ac_dir/$ac_word$ac_exec_ext"
6934 break 2
6937 done
6938 done
6939 IFS="$ac_save_IFS"
6941 esac
6943 valgrind_path="$ac_cv_path_valgrind_path"
6944 if test -n "$valgrind_path"; then
6945 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $valgrind_path" >&5
6946 $as_echo "$valgrind_path" >&6; }
6947 else
6948 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6949 $as_echo "no" >&6; }
6952 if test "x$valgrind_path" = "x" \
6953 || (test $have_valgrind_h = no \
6954 && test $gcc_cv_header_memcheck_h = no \
6955 && test $gcc_cv_header_valgrind_memcheck_h = no); then
6956 as_fn_error "*** Can't find both valgrind and valgrind/memcheck.h, memcheck.h or valgrind.h" "$LINENO" 5
6958 valgrind_path_defines=-DVALGRIND_PATH='\"'$valgrind_path'\"'
6959 valgrind_command="$valgrind_path -q"
6961 $as_echo "#define ENABLE_VALGRIND_CHECKING 1" >>confdefs.h
6963 if test $gcc_cv_header_valgrind_memcheck_h = yes; then
6965 $as_echo "#define HAVE_VALGRIND_MEMCHECK_H 1" >>confdefs.h
6968 if test $gcc_cv_header_memcheck_h = yes; then
6970 $as_echo "#define HAVE_MEMCHECK_H 1" >>confdefs.h
6977 # Enable code coverage collection
6978 # Check whether --enable-coverage was given.
6979 if test "${enable_coverage+set}" = set; then :
6980 enableval=$enable_coverage; case "${enableval}" in
6981 yes|noopt)
6982 coverage_flags="-fprofile-arcs -ftest-coverage -frandom-seed=\$@ -O0"
6984 opt)
6985 coverage_flags="-fprofile-arcs -ftest-coverage -frandom-seed=\$@ -O2"
6988 # a.k.a. --disable-coverage
6989 coverage_flags=""
6992 as_fn_error "unknown coverage setting $enableval" "$LINENO" 5
6994 esac
6995 else
6996 coverage_flags=""
7001 # Check whether --enable-gather-detailed-mem-stats was given.
7002 if test "${enable_gather_detailed_mem_stats+set}" = set; then :
7003 enableval=$enable_gather_detailed_mem_stats;
7004 else
7005 enable_gather_detailed_mem_stats=no
7008 gather_stats=`if test $enable_gather_detailed_mem_stats != no; then echo 1; else echo 0; fi`
7010 cat >>confdefs.h <<_ACEOF
7011 #define GATHER_STATISTICS $gather_stats
7012 _ACEOF
7015 # -------------------------------
7016 # Miscenalleous configure options
7017 # -------------------------------
7019 # With stabs
7021 # Check whether --with-stabs was given.
7022 if test "${with_stabs+set}" = set; then :
7023 withval=$with_stabs; stabs="$with_stabs"
7024 else
7025 stabs=no
7029 # Determine whether or not multilibs are enabled.
7030 # Check whether --enable-multilib was given.
7031 if test "${enable_multilib+set}" = set; then :
7032 enableval=$enable_multilib;
7033 else
7034 enable_multilib=yes
7039 # Determine whether or not multiarch is enabled.
7040 # Check whether --enable-multiarch was given.
7041 if test "${enable_multiarch+set}" = set; then :
7042 enableval=$enable_multiarch; case "${enableval}" in
7043 yes|no|auto) enable_multiarch=$enableval;;
7044 *) as_fn_error "bad value ${enableval} given for --enable-multiarch option" "$LINENO" 5 ;;
7045 esac
7046 else
7047 enable_multiarch=auto
7050 if test x${enable_multiarch} = xauto; then
7051 if test x${with_native_system_header_dir} != x; then
7052 ma_msg_suffix=", disabled auto check (configured with --native-system-header-dir)"
7053 enable_multiarch=no
7055 if test x$host != x$target && test "x$with_sysroot" = x; then
7056 ma_msg_suffix=", disabled auto check (cross build configured without --with-sysroot)"
7057 enable_multiarch=no
7060 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for multiarch configuration" >&5
7061 $as_echo_n "checking for multiarch configuration... " >&6; }
7063 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_multiarch$ma_msg_suffix" >&5
7064 $as_echo "$enable_multiarch$ma_msg_suffix" >&6; }
7066 # needed for setting the multiarch name for soft-float/hard-float ABIs
7070 # Enable __cxa_atexit for C++.
7071 # Check whether --enable-__cxa_atexit was given.
7072 if test "${enable___cxa_atexit+set}" = set; then :
7073 enableval=$enable___cxa_atexit;
7077 # Enable C extension for decimal float if target supports it.
7079 # Check whether --enable-decimal-float was given.
7080 if test "${enable_decimal_float+set}" = set; then :
7081 enableval=$enable_decimal_float;
7082 case $enable_decimal_float in
7083 yes | no | bid | dpd) default_decimal_float=$enable_decimal_float ;;
7084 *) as_fn_error "'$enable_decimal_float' is an invalid value for --enable-decimal-float.
7085 Valid choices are 'yes', 'bid', 'dpd', and 'no'." "$LINENO" 5 ;;
7086 esac
7088 else
7090 case $target in
7091 powerpc*-*-linux* | i?86*-*-linux* | x86_64*-*-linux* | s390*-*-linux* | \
7092 i?86*-*-gnu* | \
7093 i?86*-*-mingw* | x86_64*-*-mingw* | \
7094 i?86*-*-cygwin*)
7095 enable_decimal_float=yes
7098 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: decimal float is not supported for this target, ignored" >&5
7099 $as_echo "$as_me: WARNING: decimal float is not supported for this target, ignored" >&2;}
7100 enable_decimal_float=no
7102 esac
7107 # x86's use BID format instead of DPD
7108 case x$enable_decimal_float in
7109 xyes)
7110 case $target in
7111 i?86*-*-* | x86_64*-*-*)
7112 enable_decimal_float=bid
7115 enable_decimal_float=dpd
7117 esac
7118 default_decimal_float=$enable_decimal_float
7120 xno)
7121 # ENABLE_DECIMAL_FLOAT is set to 0. But we have to have proper
7122 # dependency on libdecnumber.
7123 default_decimal_float=dpd
7125 esac
7130 dfp=`if test $enable_decimal_float != no; then echo 1; else echo 0; fi`
7132 cat >>confdefs.h <<_ACEOF
7133 #define ENABLE_DECIMAL_FLOAT $dfp
7134 _ACEOF
7137 # Use default_decimal_float for dependency.
7138 enable_decimal_float=$default_decimal_float
7140 bid=`if test $enable_decimal_float = bid; then echo 1; else echo 0; fi`
7142 cat >>confdefs.h <<_ACEOF
7143 #define ENABLE_DECIMAL_BID_FORMAT $bid
7144 _ACEOF
7147 # Enable C extension for fixed-point arithmetic.
7148 # Check whether --enable-fixed-point was given.
7149 if test "${enable_fixed_point+set}" = set; then :
7150 enableval=$enable_fixed_point;
7151 else
7153 case $target in
7154 arm*)
7155 enable_fixed_point=yes
7158 mips*-*-*)
7159 enable_fixed_point=yes
7162 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: fixed-point is not supported for this target, ignored" >&5
7163 $as_echo "$as_me: WARNING: fixed-point is not supported for this target, ignored" >&2;}
7164 enable_fixed_point=no
7166 esac
7172 fixedpoint=`if test $enable_fixed_point = yes; then echo 1; else echo 0; fi`
7174 cat >>confdefs.h <<_ACEOF
7175 #define ENABLE_FIXED_POINT $fixedpoint
7176 _ACEOF
7179 # Enable threads
7180 # Pass with no value to take the default
7181 # Pass with a value to specify a thread package
7182 # Check whether --enable-threads was given.
7183 if test "${enable_threads+set}" = set; then :
7184 enableval=$enable_threads;
7185 else
7186 enable_threads=''
7190 # Check whether --enable-tls was given.
7191 if test "${enable_tls+set}" = set; then :
7192 enableval=$enable_tls;
7193 case $enable_tls in
7194 yes | no) ;;
7195 *) as_fn_error "'$enable_tls' is an invalid value for --enable-tls.
7196 Valid choices are 'yes' and 'no'." "$LINENO" 5 ;;
7197 esac
7199 else
7200 enable_tls=''
7204 # Check whether --enable-objc-gc was given.
7205 if test "${enable_objc_gc+set}" = set; then :
7206 enableval=$enable_objc_gc; if test x$enable_objc_gc = xno; then
7207 objc_boehm_gc=''
7208 else
7209 objc_boehm_gc=1
7211 else
7212 objc_boehm_gc=''
7217 # Check whether --with-dwarf2 was given.
7218 if test "${with_dwarf2+set}" = set; then :
7219 withval=$with_dwarf2; dwarf2="$with_dwarf2"
7220 else
7221 dwarf2=no
7225 # Check whether --enable-shared was given.
7226 if test "${enable_shared+set}" = set; then :
7227 enableval=$enable_shared;
7228 case $enable_shared in
7229 yes | no) ;;
7231 enable_shared=no
7232 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:,"
7233 for pkg in $enableval; do
7234 if test "X$pkg" = "Xgcc" || test "X$pkg" = "Xlibgcc"; then
7235 enable_shared=yes
7237 done
7238 IFS="$ac_save_ifs"
7240 esac
7242 else
7243 enable_shared=yes
7249 # Check whether --with-native-system-header-dir was given.
7250 if test "${with_native_system_header_dir+set}" = set; then :
7251 withval=$with_native_system_header_dir;
7252 case ${with_native_system_header_dir} in
7253 yes|no) as_fn_error "bad value ${withval} given for --with-native-system-header-dir" "$LINENO" 5 ;;
7254 /* | [A-Za-z]:[\\/]*) ;;
7255 *) as_fn_error "--with-native-system-header-dir argument ${withval} must be an absolute directory" "$LINENO" 5 ;;
7256 esac
7257 configured_native_system_header_dir="${withval}"
7259 else
7260 configured_native_system_header_dir=
7265 # Check whether --with-build-sysroot was given.
7266 if test "${with_build_sysroot+set}" = set; then :
7267 withval=$with_build_sysroot; if test x"$withval" != x ; then
7268 SYSROOT_CFLAGS_FOR_TARGET="--sysroot=$withval"
7270 else
7271 SYSROOT_CFLAGS_FOR_TARGET=
7277 # Check whether --with-runtime-root-prefix was given.
7278 if test "${with_runtime_root_prefix+set}" = set; then :
7279 withval=$with_runtime_root_prefix;
7280 case ${with_runtime_root_prefix} in
7281 yes|no) as_fn_error "bad value ${withval} given for runtime root prefix" "$LINENO" 5 ;;
7282 /*) ;;
7283 *) as_fn_error "${withval} should be an absolute directory" "$LINENO" 5 ;;
7284 esac
7285 RUNTIME_ROOT_PREFIX_DEFINE="-DRUNTIME_ROOT_PREFIX=\\\"${withval}\\\""
7287 else
7288 RUNTIME_ROOT_PREFIX_DEFINE=""
7293 if test "x$prefix" = xNONE; then
7294 test_prefix=/usr/local
7295 else
7296 test_prefix=$prefix
7298 if test "x$exec_prefix" = xNONE; then
7299 test_exec_prefix=$test_prefix
7300 else
7301 test_exec_prefix=$exec_prefix
7305 # Check whether --with-sysroot was given.
7306 if test "${with_sysroot+set}" = set; then :
7307 withval=$with_sysroot;
7308 case ${with_sysroot} in
7309 yes) TARGET_SYSTEM_ROOT='${exec_prefix}/${target_noncanonical}/sys-root' ;;
7310 *) TARGET_SYSTEM_ROOT=$with_sysroot ;;
7311 esac
7313 TARGET_SYSTEM_ROOT_DEFINE='-DTARGET_SYSTEM_ROOT=\"$(TARGET_SYSTEM_ROOT)\"'
7314 CROSS_SYSTEM_HEADER_DIR='$(TARGET_SYSTEM_ROOT)$${sysroot_headers_suffix}$(NATIVE_SYSTEM_HEADER_DIR)'
7316 case ${TARGET_SYSTEM_ROOT} in
7317 "${test_prefix}"|"${test_prefix}/"*|\
7318 "${test_exec_prefix}"|"${test_exec_prefix}/"*|\
7319 '${prefix}'|'${prefix}/'*|\
7320 '${exec_prefix}'|'${exec_prefix}/'*)
7321 t="$TARGET_SYSTEM_ROOT_DEFINE -DTARGET_SYSTEM_ROOT_RELOCATABLE"
7322 TARGET_SYSTEM_ROOT_DEFINE="$t"
7324 esac
7326 else
7328 TARGET_SYSTEM_ROOT=
7329 TARGET_SYSTEM_ROOT_DEFINE=
7330 CROSS_SYSTEM_HEADER_DIR='$(gcc_tooldir)/sys-include'
7339 # Check whether --with-specs was given.
7340 if test "${with_specs+set}" = set; then :
7341 withval=$with_specs; CONFIGURE_SPECS=$withval
7342 else
7343 CONFIGURE_SPECS=
7351 # Check whether --with-pkgversion was given.
7352 if test "${with_pkgversion+set}" = set; then :
7353 withval=$with_pkgversion; case "$withval" in
7354 yes) as_fn_error "package version not specified" "$LINENO" 5 ;;
7355 no) PKGVERSION= ;;
7356 *) PKGVERSION="($withval) " ;;
7357 esac
7358 else
7359 PKGVERSION="(GCC) "
7367 # Check whether --with-bugurl was given.
7368 if test "${with_bugurl+set}" = set; then :
7369 withval=$with_bugurl; case "$withval" in
7370 yes) as_fn_error "bug URL not specified" "$LINENO" 5 ;;
7371 no) BUGURL=
7373 *) BUGURL="$withval"
7375 esac
7376 else
7377 BUGURL="http://gcc.gnu.org/bugs.html"
7381 case ${BUGURL} in
7383 REPORT_BUGS_TO=
7384 REPORT_BUGS_TEXI=
7387 REPORT_BUGS_TO="<$BUGURL>"
7388 REPORT_BUGS_TEXI=@uref{`echo "$BUGURL" | sed 's/@/@@/g'`}
7390 esac;
7395 # Sanity check enable_languages in case someone does not run the toplevel
7396 # configure # script.
7397 # Check whether --enable-languages was given.
7398 if test "${enable_languages+set}" = set; then :
7399 enableval=$enable_languages; case ,${enable_languages}, in
7400 ,,|,yes,)
7401 # go safe -- we cannot be much sure without the toplevel
7402 # configure's
7403 # analysis of which target libs are present and usable
7404 enable_languages=c
7406 *,all,*)
7407 as_fn_error "only the toplevel supports --enable-languages=all" "$LINENO" 5
7409 *,c,*)
7412 enable_languages=c,${enable_languages}
7414 esac
7415 else
7416 enable_languages=c
7421 # Check whether --with-multilib-list was given.
7422 if test "${with_multilib_list+set}" = set; then :
7423 withval=$with_multilib_list; :
7424 else
7425 with_multilib_list=default
7429 # -------------------------
7430 # Checks for other programs
7431 # -------------------------
7433 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
7434 $as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
7435 set x ${MAKE-make}
7436 ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
7437 if { as_var=ac_cv_prog_make_${ac_make}_set; eval "test \"\${$as_var+set}\" = set"; }; then :
7438 $as_echo_n "(cached) " >&6
7439 else
7440 cat >conftest.make <<\_ACEOF
7441 SHELL = /bin/sh
7442 all:
7443 @echo '@@@%%%=$(MAKE)=@@@%%%'
7444 _ACEOF
7445 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
7446 case `${MAKE-make} -f conftest.make 2>/dev/null` in
7447 *@@@%%%=?*=@@@%%%*)
7448 eval ac_cv_prog_make_${ac_make}_set=yes;;
7450 eval ac_cv_prog_make_${ac_make}_set=no;;
7451 esac
7452 rm -f conftest.make
7454 if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
7455 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
7456 $as_echo "yes" >&6; }
7457 SET_MAKE=
7458 else
7459 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7460 $as_echo "no" >&6; }
7461 SET_MAKE="MAKE=${MAKE-make}"
7465 # Find some useful tools
7466 for ac_prog in gawk mawk nawk awk
7468 # Extract the first word of "$ac_prog", so it can be a program name with args.
7469 set dummy $ac_prog; ac_word=$2
7470 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7471 $as_echo_n "checking for $ac_word... " >&6; }
7472 if test "${ac_cv_prog_AWK+set}" = set; then :
7473 $as_echo_n "(cached) " >&6
7474 else
7475 if test -n "$AWK"; then
7476 ac_cv_prog_AWK="$AWK" # Let the user override the test.
7477 else
7478 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7479 for as_dir in $PATH
7481 IFS=$as_save_IFS
7482 test -z "$as_dir" && as_dir=.
7483 for ac_exec_ext in '' $ac_executable_extensions; do
7484 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7485 ac_cv_prog_AWK="$ac_prog"
7486 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7487 break 2
7489 done
7490 done
7491 IFS=$as_save_IFS
7495 AWK=$ac_cv_prog_AWK
7496 if test -n "$AWK"; then
7497 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
7498 $as_echo "$AWK" >&6; }
7499 else
7500 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7501 $as_echo "no" >&6; }
7505 test -n "$AWK" && break
7506 done
7508 # We need awk to create options.c and options.h.
7509 # Bail out if it's missing.
7510 case ${AWK} in
7511 "") as_fn_error "can't build without awk, bailing out" "$LINENO" 5 ;;
7512 esac
7514 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5
7515 $as_echo_n "checking whether ln -s works... " >&6; }
7516 if test "${gcc_cv_prog_LN_S+set}" = set; then :
7517 $as_echo_n "(cached) " >&6
7518 else
7519 rm -f conftestdata_t
7520 echo >conftestdata_f
7521 if ln -s conftestdata_f conftestdata_t 2>/dev/null
7522 then
7523 gcc_cv_prog_LN_S="ln -s"
7524 else
7525 if ln conftestdata_f conftestdata_t 2>/dev/null
7526 then
7527 gcc_cv_prog_LN_S=ln
7528 else
7529 if cp -p conftestdata_f conftestdata_t 2>/dev/null
7530 then
7531 gcc_cv_prog_LN_S="cp -p"
7532 else
7533 gcc_cv_prog_LN_S=cp
7537 rm -f conftestdata_f conftestdata_t
7540 LN_S="$gcc_cv_prog_LN_S"
7541 if test "$gcc_cv_prog_LN_S" = "ln -s"; then
7542 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
7543 $as_echo "yes" >&6; }
7544 else
7545 if test "$gcc_cv_prog_LN_S" = "ln"; then
7546 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using ln" >&5
7547 $as_echo "no, using ln" >&6; }
7548 else
7549 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, and neither does ln, so using $gcc_cv_prog_LN_S" >&5
7550 $as_echo "no, and neither does ln, so using $gcc_cv_prog_LN_S" >&6; }
7554 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln works" >&5
7555 $as_echo_n "checking whether ln works... " >&6; }
7556 if test "${acx_cv_prog_LN+set}" = set; then :
7557 $as_echo_n "(cached) " >&6
7558 else
7559 rm -f conftestdata_t
7560 echo >conftestdata_f
7561 if ln conftestdata_f conftestdata_t 2>/dev/null
7562 then
7563 acx_cv_prog_LN=ln
7564 else
7565 acx_cv_prog_LN=no
7567 rm -f conftestdata_f conftestdata_t
7570 if test $acx_cv_prog_LN = no; then
7571 LN="$LN_S"
7572 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN" >&5
7573 $as_echo "no, using $LN" >&6; }
7574 else
7575 LN="$acx_cv_prog_LN"
7576 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
7577 $as_echo "yes" >&6; }
7580 if test -n "$ac_tool_prefix"; then
7581 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
7582 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
7583 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7584 $as_echo_n "checking for $ac_word... " >&6; }
7585 if test "${ac_cv_prog_RANLIB+set}" = set; then :
7586 $as_echo_n "(cached) " >&6
7587 else
7588 if test -n "$RANLIB"; then
7589 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
7590 else
7591 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7592 for as_dir in $PATH
7594 IFS=$as_save_IFS
7595 test -z "$as_dir" && as_dir=.
7596 for ac_exec_ext in '' $ac_executable_extensions; do
7597 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7598 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
7599 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7600 break 2
7602 done
7603 done
7604 IFS=$as_save_IFS
7608 RANLIB=$ac_cv_prog_RANLIB
7609 if test -n "$RANLIB"; then
7610 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
7611 $as_echo "$RANLIB" >&6; }
7612 else
7613 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7614 $as_echo "no" >&6; }
7619 if test -z "$ac_cv_prog_RANLIB"; then
7620 ac_ct_RANLIB=$RANLIB
7621 # Extract the first word of "ranlib", so it can be a program name with args.
7622 set dummy ranlib; ac_word=$2
7623 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7624 $as_echo_n "checking for $ac_word... " >&6; }
7625 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then :
7626 $as_echo_n "(cached) " >&6
7627 else
7628 if test -n "$ac_ct_RANLIB"; then
7629 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
7630 else
7631 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7632 for as_dir in $PATH
7634 IFS=$as_save_IFS
7635 test -z "$as_dir" && as_dir=.
7636 for ac_exec_ext in '' $ac_executable_extensions; do
7637 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7638 ac_cv_prog_ac_ct_RANLIB="ranlib"
7639 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7640 break 2
7642 done
7643 done
7644 IFS=$as_save_IFS
7648 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
7649 if test -n "$ac_ct_RANLIB"; then
7650 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
7651 $as_echo "$ac_ct_RANLIB" >&6; }
7652 else
7653 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7654 $as_echo "no" >&6; }
7657 if test "x$ac_ct_RANLIB" = x; then
7658 RANLIB=":"
7659 else
7660 case $cross_compiling:$ac_tool_warned in
7661 yes:)
7662 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7663 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7664 ac_tool_warned=yes ;;
7665 esac
7666 RANLIB=$ac_ct_RANLIB
7668 else
7669 RANLIB="$ac_cv_prog_RANLIB"
7672 ranlib_flags=""
7675 # Find a good install program. We prefer a C program (faster),
7676 # so one script is as good as another. But avoid the broken or
7677 # incompatible versions:
7678 # SysV /etc/install, /usr/sbin/install
7679 # SunOS /usr/etc/install
7680 # IRIX /sbin/install
7681 # AIX /bin/install
7682 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
7683 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
7684 # ./install, which can be erroneously created by make from ./install.sh.
7685 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD compatible install" >&5
7686 $as_echo_n "checking for a BSD compatible install... " >&6; }
7687 if test -z "$INSTALL"; then
7688 if test "${ac_cv_path_install+set}" = set; then :
7689 $as_echo_n "(cached) " >&6
7690 else
7691 IFS="${IFS= }"; ac_save_IFS="$IFS"; IFS="${IFS}:"
7692 for ac_dir in $PATH; do
7693 # Account for people who put trailing slashes in PATH elements.
7694 case "$ac_dir/" in
7695 /|./|.//|/etc/*|/usr/sbin/*|/usr/etc/*|/sbin/*|/usr/afsws/bin/*|/usr/ucb/*) ;;
7697 # OSF1 and SCO ODT 3.0 have their own names for install.
7698 for ac_prog in ginstall scoinst install; do
7699 if test -f $ac_dir/$ac_prog; then
7700 if test $ac_prog = install &&
7701 grep dspmsg $ac_dir/$ac_prog >/dev/null 2>&1; then
7702 # AIX install. It has an incompatible calling convention.
7703 # OSF/1 installbsd also uses dspmsg, but is usable.
7705 else
7706 ac_cv_path_install="$ac_dir/$ac_prog -c"
7707 break 2
7710 done
7712 esac
7713 done
7714 IFS="$ac_save_IFS"
7717 if test "${ac_cv_path_install+set}" = set; then
7718 INSTALL="$ac_cv_path_install"
7719 else
7720 # As a last resort, use the slow shell script. We don't cache a
7721 # path for INSTALL within a source directory, because that will
7722 # break other packages using the cache if that directory is
7723 # removed, or if the path is relative.
7724 INSTALL="$ac_install_sh"
7727 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
7728 $as_echo "$INSTALL" >&6; }
7730 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
7731 # It thinks the first close brace ends the variable substitution.
7732 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
7734 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
7737 # See if cmp has --ignore-initial.
7738 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for cmp's capabilities" >&5
7739 $as_echo_n "checking for cmp's capabilities... " >&6; }
7740 if test "${gcc_cv_prog_cmp_skip+set}" = set; then :
7741 $as_echo_n "(cached) " >&6
7742 else
7743 echo abfoo >t1
7744 echo cdfoo >t2
7745 gcc_cv_prog_cmp_skip=slowcompare
7746 if cmp --ignore-initial=2 t1 t2 > /dev/null 2>&1; then
7747 if cmp --ignore-initial=1 t1 t2 > /dev/null 2>&1; then
7749 else
7750 gcc_cv_prog_cmp_skip=gnucompare
7753 if test $gcc_cv_prog_cmp_skip = slowcompare ; then
7754 if cmp t1 t2 2 2 > /dev/null 2>&1; then
7755 if cmp t1 t2 1 1 > /dev/null 2>&1; then
7757 else
7758 gcc_cv_prog_cmp_skip=fastcompare
7762 rm t1 t2
7765 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_prog_cmp_skip" >&5
7766 $as_echo "$gcc_cv_prog_cmp_skip" >&6; }
7767 make_compare_target=$gcc_cv_prog_cmp_skip
7771 # See if we have the mktemp command.
7772 # Extract the first word of "mktemp", so it can be a program name with args.
7773 set dummy mktemp; ac_word=$2
7774 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7775 $as_echo_n "checking for $ac_word... " >&6; }
7776 if test "${ac_cv_prog_have_mktemp_command+set}" = set; then :
7777 $as_echo_n "(cached) " >&6
7778 else
7779 if test -n "$have_mktemp_command"; then
7780 ac_cv_prog_have_mktemp_command="$have_mktemp_command" # Let the user override the test.
7781 else
7782 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7783 for as_dir in $PATH
7785 IFS=$as_save_IFS
7786 test -z "$as_dir" && as_dir=.
7787 for ac_exec_ext in '' $ac_executable_extensions; do
7788 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7789 ac_cv_prog_have_mktemp_command="yes"
7790 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7791 break 2
7793 done
7794 done
7795 IFS=$as_save_IFS
7797 test -z "$ac_cv_prog_have_mktemp_command" && ac_cv_prog_have_mktemp_command="no"
7800 have_mktemp_command=$ac_cv_prog_have_mktemp_command
7801 if test -n "$have_mktemp_command"; then
7802 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_mktemp_command" >&5
7803 $as_echo "$have_mktemp_command" >&6; }
7804 else
7805 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7806 $as_echo "no" >&6; }
7811 # See if makeinfo has been installed and is modern enough
7812 # that we can use it.
7814 # Extract the first word of "makeinfo", so it can be a program name with args.
7815 set dummy makeinfo; ac_word=$2
7816 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7817 $as_echo_n "checking for $ac_word... " >&6; }
7818 if test "${ac_cv_prog_MAKEINFO+set}" = set; then :
7819 $as_echo_n "(cached) " >&6
7820 else
7821 if test -n "$MAKEINFO"; then
7822 ac_cv_prog_MAKEINFO="$MAKEINFO" # Let the user override the test.
7823 else
7824 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7825 for as_dir in $PATH
7827 IFS=$as_save_IFS
7828 test -z "$as_dir" && as_dir=.
7829 for ac_exec_ext in '' $ac_executable_extensions; do
7830 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7831 ac_cv_prog_MAKEINFO="makeinfo"
7832 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7833 break 2
7835 done
7836 done
7837 IFS=$as_save_IFS
7841 MAKEINFO=$ac_cv_prog_MAKEINFO
7842 if test -n "$MAKEINFO"; then
7843 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAKEINFO" >&5
7844 $as_echo "$MAKEINFO" >&6; }
7845 else
7846 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7847 $as_echo "no" >&6; }
7851 if test -n "$MAKEINFO"; then
7852 # Found it, now check the version.
7853 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for modern makeinfo" >&5
7854 $as_echo_n "checking for modern makeinfo... " >&6; }
7855 if test "${gcc_cv_prog_makeinfo_modern+set}" = set; then :
7856 $as_echo_n "(cached) " >&6
7857 else
7858 ac_prog_version=`eval $MAKEINFO --version 2>&1 |
7859 sed -n 's/^.*GNU texinfo.* \([0-9][0-9.]*\).*$/\1/p'`
7861 case $ac_prog_version in
7862 '') gcc_cv_prog_makeinfo_modern=no;;
7863 4.[7-9]*|4.[1-9][0-9]*|[5-9]*|[1-9][0-9]*) gcc_cv_prog_makeinfo_modern=yes;;
7864 *) gcc_cv_prog_makeinfo_modern=no;;
7865 esac
7868 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_prog_makeinfo_modern" >&5
7869 $as_echo "$gcc_cv_prog_makeinfo_modern" >&6; }
7870 else
7871 gcc_cv_prog_makeinfo_modern=no
7873 if test $gcc_cv_prog_makeinfo_modern = no; then
7874 MAKEINFO="${CONFIG_SHELL-/bin/sh} $ac_aux_dir/missing makeinfo"
7877 if test $gcc_cv_prog_makeinfo_modern = no; then
7878 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING:
7879 *** Makeinfo is missing or too old.
7880 *** Info documentation will not be built." >&5
7881 $as_echo "$as_me: WARNING:
7882 *** Makeinfo is missing or too old.
7883 *** Info documentation will not be built." >&2;}
7884 BUILD_INFO=
7885 else
7886 BUILD_INFO=info
7890 # Is pod2man recent enough to regenerate manpages?
7891 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for recent Pod::Man" >&5
7892 $as_echo_n "checking for recent Pod::Man... " >&6; }
7893 if (perl -e 'use 1.10 Pod::Man') >/dev/null 2>&1; then
7894 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
7895 $as_echo "yes" >&6; }
7896 GENERATED_MANPAGES=generated-manpages
7897 else
7898 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7899 $as_echo "no" >&6; }
7900 GENERATED_MANPAGES=
7904 MISSING="${CONFIG_SHELL-/bin/sh} $ac_aux_dir/missing"
7906 # How about lex?
7907 for ac_prog in flex
7909 # Extract the first word of "$ac_prog", so it can be a program name with args.
7910 set dummy $ac_prog; ac_word=$2
7911 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7912 $as_echo_n "checking for $ac_word... " >&6; }
7913 if test "${ac_cv_prog_FLEX+set}" = set; then :
7914 $as_echo_n "(cached) " >&6
7915 else
7916 if test -n "$FLEX"; then
7917 ac_cv_prog_FLEX="$FLEX" # Let the user override the test.
7918 else
7919 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7920 for as_dir in $PATH
7922 IFS=$as_save_IFS
7923 test -z "$as_dir" && as_dir=.
7924 for ac_exec_ext in '' $ac_executable_extensions; do
7925 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7926 ac_cv_prog_FLEX="$ac_prog"
7927 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7928 break 2
7930 done
7931 done
7932 IFS=$as_save_IFS
7936 FLEX=$ac_cv_prog_FLEX
7937 if test -n "$FLEX"; then
7938 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $FLEX" >&5
7939 $as_echo "$FLEX" >&6; }
7940 else
7941 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7942 $as_echo "no" >&6; }
7946 test -n "$FLEX" && break
7947 done
7948 test -n "$FLEX" || FLEX="$MISSING flex"
7951 # Bison?
7952 for ac_prog in bison
7954 # Extract the first word of "$ac_prog", so it can be a program name with args.
7955 set dummy $ac_prog; ac_word=$2
7956 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7957 $as_echo_n "checking for $ac_word... " >&6; }
7958 if test "${ac_cv_prog_BISON+set}" = set; then :
7959 $as_echo_n "(cached) " >&6
7960 else
7961 if test -n "$BISON"; then
7962 ac_cv_prog_BISON="$BISON" # Let the user override the test.
7963 else
7964 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7965 for as_dir in $PATH
7967 IFS=$as_save_IFS
7968 test -z "$as_dir" && as_dir=.
7969 for ac_exec_ext in '' $ac_executable_extensions; do
7970 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7971 ac_cv_prog_BISON="$ac_prog"
7972 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7973 break 2
7975 done
7976 done
7977 IFS=$as_save_IFS
7981 BISON=$ac_cv_prog_BISON
7982 if test -n "$BISON"; then
7983 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BISON" >&5
7984 $as_echo "$BISON" >&6; }
7985 else
7986 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7987 $as_echo "no" >&6; }
7991 test -n "$BISON" && break
7992 done
7993 test -n "$BISON" || BISON="$MISSING bison"
7996 # Binutils are not build modules, unlike bison/flex/makeinfo. So we
7997 # check for build == host before using them.
7999 # NM
8000 if test x${build} = x${host} && test -f $srcdir/../binutils/nm.c \
8001 && test -d ../binutils ; then
8002 NM='${objdir}/../binutils/nm-new'
8003 else
8004 # Extract the first word of "nm", so it can be a program name with args.
8005 set dummy nm; ac_word=$2
8006 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8007 $as_echo_n "checking for $ac_word... " >&6; }
8008 if test "${ac_cv_prog_NM+set}" = set; then :
8009 $as_echo_n "(cached) " >&6
8010 else
8011 if test -n "$NM"; then
8012 ac_cv_prog_NM="$NM" # Let the user override the test.
8013 else
8014 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8015 for as_dir in $PATH
8017 IFS=$as_save_IFS
8018 test -z "$as_dir" && as_dir=.
8019 for ac_exec_ext in '' $ac_executable_extensions; do
8020 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8021 ac_cv_prog_NM="nm"
8022 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8023 break 2
8025 done
8026 done
8027 IFS=$as_save_IFS
8029 test -z "$ac_cv_prog_NM" && ac_cv_prog_NM="${CONFIG_SHELL-/bin/sh} ${srcdir}/../missing nm"
8032 NM=$ac_cv_prog_NM
8033 if test -n "$NM"; then
8034 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NM" >&5
8035 $as_echo "$NM" >&6; }
8036 else
8037 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8038 $as_echo "no" >&6; }
8044 # AR
8045 if test x${build} = x${host} && test -f $srcdir/../binutils/ar.c \
8046 && test -d ../binutils ; then
8047 AR='${objdir}/../binutils/ar'
8048 else
8049 # Extract the first word of "ar", so it can be a program name with args.
8050 set dummy ar; ac_word=$2
8051 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8052 $as_echo_n "checking for $ac_word... " >&6; }
8053 if test "${ac_cv_prog_AR+set}" = set; then :
8054 $as_echo_n "(cached) " >&6
8055 else
8056 if test -n "$AR"; then
8057 ac_cv_prog_AR="$AR" # Let the user override the test.
8058 else
8059 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8060 for as_dir in $PATH
8062 IFS=$as_save_IFS
8063 test -z "$as_dir" && as_dir=.
8064 for ac_exec_ext in '' $ac_executable_extensions; do
8065 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8066 ac_cv_prog_AR="ar"
8067 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8068 break 2
8070 done
8071 done
8072 IFS=$as_save_IFS
8074 test -z "$ac_cv_prog_AR" && ac_cv_prog_AR="${CONFIG_SHELL-/bin/sh} ${srcdir}/../missing ar"
8077 AR=$ac_cv_prog_AR
8078 if test -n "$AR"; then
8079 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
8080 $as_echo "$AR" >&6; }
8081 else
8082 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8083 $as_echo "no" >&6; }
8090 # --------------------
8091 # Checks for C headers
8092 # --------------------
8094 # Need to reject headers which give warnings, so that the -Werror bootstrap
8095 # works later. *sigh* This needs to come before all header checks.
8097 ac_c_preproc_warn_flag=yes
8099 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
8100 $as_echo_n "checking for ANSI C header files... " >&6; }
8101 if test "${ac_cv_header_stdc+set}" = set; then :
8102 $as_echo_n "(cached) " >&6
8103 else
8104 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8105 /* end confdefs.h. */
8106 #include <stdlib.h>
8107 #include <stdarg.h>
8108 #include <string.h>
8109 #include <float.h>
8112 main ()
8116 return 0;
8118 _ACEOF
8119 if ac_fn_c_try_compile "$LINENO"; then :
8120 ac_cv_header_stdc=yes
8121 else
8122 ac_cv_header_stdc=no
8124 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8126 if test $ac_cv_header_stdc = yes; then
8127 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
8128 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8129 /* end confdefs.h. */
8130 #include <string.h>
8132 _ACEOF
8133 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
8134 $EGREP "memchr" >/dev/null 2>&1; then :
8136 else
8137 ac_cv_header_stdc=no
8139 rm -f conftest*
8143 if test $ac_cv_header_stdc = yes; then
8144 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
8145 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8146 /* end confdefs.h. */
8147 #include <stdlib.h>
8149 _ACEOF
8150 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
8151 $EGREP "free" >/dev/null 2>&1; then :
8153 else
8154 ac_cv_header_stdc=no
8156 rm -f conftest*
8160 if test $ac_cv_header_stdc = yes; then
8161 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
8162 if test "$cross_compiling" = yes; then :
8164 else
8165 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8166 /* end confdefs.h. */
8167 #include <ctype.h>
8168 #include <stdlib.h>
8169 #if ((' ' & 0x0FF) == 0x020)
8170 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
8171 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
8172 #else
8173 # define ISLOWER(c) \
8174 (('a' <= (c) && (c) <= 'i') \
8175 || ('j' <= (c) && (c) <= 'r') \
8176 || ('s' <= (c) && (c) <= 'z'))
8177 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
8178 #endif
8180 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
8182 main ()
8184 int i;
8185 for (i = 0; i < 256; i++)
8186 if (XOR (islower (i), ISLOWER (i))
8187 || toupper (i) != TOUPPER (i))
8188 return 2;
8189 return 0;
8191 _ACEOF
8192 if ac_fn_c_try_run "$LINENO"; then :
8194 else
8195 ac_cv_header_stdc=no
8197 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
8198 conftest.$ac_objext conftest.beam conftest.$ac_ext
8203 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
8204 $as_echo "$ac_cv_header_stdc" >&6; }
8205 if test $ac_cv_header_stdc = yes; then
8207 $as_echo "#define STDC_HEADERS 1" >>confdefs.h
8211 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether time.h and sys/time.h may both be included" >&5
8212 $as_echo_n "checking whether time.h and sys/time.h may both be included... " >&6; }
8213 if test "${ac_cv_header_time+set}" = set; then :
8214 $as_echo_n "(cached) " >&6
8215 else
8216 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8217 /* end confdefs.h. */
8218 #include <sys/types.h>
8219 #include <sys/time.h>
8220 #include <time.h>
8223 main ()
8225 if ((struct tm *) 0)
8226 return 0;
8228 return 0;
8230 _ACEOF
8231 if ac_fn_c_try_compile "$LINENO"; then :
8232 ac_cv_header_time=yes
8233 else
8234 ac_cv_header_time=no
8236 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8238 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_time" >&5
8239 $as_echo "$ac_cv_header_time" >&6; }
8240 if test $ac_cv_header_time = yes; then
8242 $as_echo "#define TIME_WITH_SYS_TIME 1" >>confdefs.h
8246 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether string.h and strings.h may both be included" >&5
8247 $as_echo_n "checking whether string.h and strings.h may both be included... " >&6; }
8248 if test "${gcc_cv_header_string+set}" = set; then :
8249 $as_echo_n "(cached) " >&6
8250 else
8251 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8252 /* end confdefs.h. */
8253 #include <string.h>
8254 #include <strings.h>
8256 main ()
8260 return 0;
8262 _ACEOF
8263 if ac_fn_c_try_compile "$LINENO"; then :
8264 gcc_cv_header_string=yes
8265 else
8266 gcc_cv_header_string=no
8268 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8270 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_header_string" >&5
8271 $as_echo "$gcc_cv_header_string" >&6; }
8272 if test $gcc_cv_header_string = yes; then
8274 $as_echo "#define STRING_WITH_STRINGS 1" >>confdefs.h
8278 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sys/wait.h that is POSIX.1 compatible" >&5
8279 $as_echo_n "checking for sys/wait.h that is POSIX.1 compatible... " >&6; }
8280 if test "${ac_cv_header_sys_wait_h+set}" = set; then :
8281 $as_echo_n "(cached) " >&6
8282 else
8283 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8284 /* end confdefs.h. */
8285 #include <sys/types.h>
8286 #include <sys/wait.h>
8287 #ifndef WEXITSTATUS
8288 # define WEXITSTATUS(stat_val) ((unsigned int) (stat_val) >> 8)
8289 #endif
8290 #ifndef WIFEXITED
8291 # define WIFEXITED(stat_val) (((stat_val) & 255) == 0)
8292 #endif
8295 main ()
8297 int s;
8298 wait (&s);
8299 s = WIFEXITED (s) ? WEXITSTATUS (s) : 1;
8301 return 0;
8303 _ACEOF
8304 if ac_fn_c_try_compile "$LINENO"; then :
8305 ac_cv_header_sys_wait_h=yes
8306 else
8307 ac_cv_header_sys_wait_h=no
8309 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8311 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_sys_wait_h" >&5
8312 $as_echo "$ac_cv_header_sys_wait_h" >&6; }
8313 if test $ac_cv_header_sys_wait_h = yes; then
8315 $as_echo "#define HAVE_SYS_WAIT_H 1" >>confdefs.h
8319 for ac_header in limits.h stddef.h string.h strings.h stdlib.h time.h iconv.h \
8320 fcntl.h unistd.h sys/file.h sys/time.h sys/mman.h \
8321 sys/resource.h sys/param.h sys/times.h sys/stat.h \
8322 direct.h malloc.h langinfo.h ldfcn.h locale.h wchar.h
8323 do :
8324 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
8325 ac_fn_c_check_header_preproc "$LINENO" "$ac_header" "$as_ac_Header"
8326 eval as_val=\$$as_ac_Header
8327 if test "x$as_val" = x""yes; then :
8328 cat >>confdefs.h <<_ACEOF
8329 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
8330 _ACEOF
8333 done
8336 # Check for thread headers.
8337 ac_fn_c_check_header_preproc "$LINENO" "thread.h" "ac_cv_header_thread_h"
8338 if test "x$ac_cv_header_thread_h" = x""yes; then :
8339 have_thread_h=yes
8340 else
8341 have_thread_h=
8344 ac_fn_c_check_header_preproc "$LINENO" "pthread.h" "ac_cv_header_pthread_h"
8345 if test "x$ac_cv_header_pthread_h" = x""yes; then :
8346 have_pthread_h=yes
8347 else
8348 have_pthread_h=
8352 # These tests can't be done till we know if we have limits.h.
8353 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for CHAR_BIT" >&5
8354 $as_echo_n "checking for CHAR_BIT... " >&6; }
8355 if test "${gcc_cv_decl_char_bit+set}" = set; then :
8356 $as_echo_n "(cached) " >&6
8357 else
8358 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8359 /* end confdefs.h. */
8360 #ifdef HAVE_LIMITS_H
8361 #include <limits.h>
8362 #endif
8363 #ifdef CHAR_BIT
8364 found
8365 #endif
8366 _ACEOF
8367 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
8368 $EGREP "found" >/dev/null 2>&1; then :
8369 gcc_cv_decl_char_bit=yes
8370 else
8371 gcc_cv_decl_char_bit=no
8373 rm -f conftest*
8377 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_decl_char_bit" >&5
8378 $as_echo "$gcc_cv_decl_char_bit" >&6; }
8379 if test $gcc_cv_decl_char_bit = no; then
8380 { $as_echo "$as_me:${as_lineno-$LINENO}: checking number of bits in a byte" >&5
8381 $as_echo_n "checking number of bits in a byte... " >&6; }
8382 if test "${gcc_cv_c_nbby+set}" = set; then :
8383 $as_echo_n "(cached) " >&6
8384 else
8386 gcc_cv_c_nbby=
8387 while test $i -lt 65; do
8388 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8389 /* end confdefs.h. */
8392 main ()
8394 switch(0) {
8395 case (unsigned char)((unsigned long)1 << $i) == ((unsigned long)1 << $i):
8396 case (unsigned char)((unsigned long)1<<($i-1)) == ((unsigned long)1<<($i-1)):
8399 return 0;
8401 _ACEOF
8402 if ac_fn_c_try_compile "$LINENO"; then :
8403 gcc_cv_c_nbby=$i; break
8405 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8406 i=`expr $i + 1`
8407 done
8408 test -z "$gcc_cv_c_nbby" && gcc_cv_c_nbby=failed
8411 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_c_nbby" >&5
8412 $as_echo "$gcc_cv_c_nbby" >&6; }
8413 if test $gcc_cv_c_nbby = failed; then
8414 as_fn_error "cannot determine number of bits in a byte" "$LINENO" 5
8415 else
8417 cat >>confdefs.h <<_ACEOF
8418 #define CHAR_BIT $gcc_cv_c_nbby
8419 _ACEOF
8423 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether byte ordering is bigendian" >&5
8424 $as_echo_n "checking whether byte ordering is bigendian... " >&6; }
8425 if test "${ac_cv_c_bigendian+set}" = set; then :
8426 $as_echo_n "(cached) " >&6
8427 else
8428 ac_cv_c_bigendian=unknown
8429 # See if we're dealing with a universal compiler.
8430 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8431 /* end confdefs.h. */
8432 #ifndef __APPLE_CC__
8433 not a universal capable compiler
8434 #endif
8435 typedef int dummy;
8437 _ACEOF
8438 if ac_fn_c_try_compile "$LINENO"; then :
8440 # Check for potential -arch flags. It is not universal unless
8441 # there are at least two -arch flags with different values.
8442 ac_arch=
8443 ac_prev=
8444 for ac_word in $CC $CFLAGS $CPPFLAGS $LDFLAGS; do
8445 if test -n "$ac_prev"; then
8446 case $ac_word in
8447 i?86 | x86_64 | ppc | ppc64)
8448 if test -z "$ac_arch" || test "$ac_arch" = "$ac_word"; then
8449 ac_arch=$ac_word
8450 else
8451 ac_cv_c_bigendian=universal
8452 break
8455 esac
8456 ac_prev=
8457 elif test "x$ac_word" = "x-arch"; then
8458 ac_prev=arch
8460 done
8462 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8463 if test $ac_cv_c_bigendian = unknown; then
8464 # See if sys/param.h defines the BYTE_ORDER macro.
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 ! (defined BYTE_ORDER && defined BIG_ENDIAN \
8474 && defined LITTLE_ENDIAN && BYTE_ORDER && BIG_ENDIAN \
8475 && LITTLE_ENDIAN)
8476 bogus endian macros
8477 #endif
8480 return 0;
8482 _ACEOF
8483 if ac_fn_c_try_compile "$LINENO"; then :
8484 # It does; now see whether it defined to BIG_ENDIAN or not.
8485 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8486 /* end confdefs.h. */
8487 #include <sys/types.h>
8488 #include <sys/param.h>
8491 main ()
8493 #if BYTE_ORDER != BIG_ENDIAN
8494 not big endian
8495 #endif
8498 return 0;
8500 _ACEOF
8501 if ac_fn_c_try_compile "$LINENO"; then :
8502 ac_cv_c_bigendian=yes
8503 else
8504 ac_cv_c_bigendian=no
8506 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8508 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8510 if test $ac_cv_c_bigendian = unknown; then
8511 # See if <limits.h> defines _LITTLE_ENDIAN or _BIG_ENDIAN (e.g., Solaris).
8512 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8513 /* end confdefs.h. */
8514 #include <limits.h>
8517 main ()
8519 #if ! (defined _LITTLE_ENDIAN || defined _BIG_ENDIAN)
8520 bogus endian macros
8521 #endif
8524 return 0;
8526 _ACEOF
8527 if ac_fn_c_try_compile "$LINENO"; then :
8528 # It does; now see whether it defined to _BIG_ENDIAN or not.
8529 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8530 /* end confdefs.h. */
8531 #include <limits.h>
8534 main ()
8536 #ifndef _BIG_ENDIAN
8537 not big endian
8538 #endif
8541 return 0;
8543 _ACEOF
8544 if ac_fn_c_try_compile "$LINENO"; then :
8545 ac_cv_c_bigendian=yes
8546 else
8547 ac_cv_c_bigendian=no
8549 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8551 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8553 if test $ac_cv_c_bigendian = unknown; then
8554 # Compile a test program.
8555 if test "$cross_compiling" = yes; then :
8556 # Try to guess by grepping values from an object file.
8557 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8558 /* end confdefs.h. */
8559 short int ascii_mm[] =
8560 { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 };
8561 short int ascii_ii[] =
8562 { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 };
8563 int use_ascii (int i) {
8564 return ascii_mm[i] + ascii_ii[i];
8566 short int ebcdic_ii[] =
8567 { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 };
8568 short int ebcdic_mm[] =
8569 { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 };
8570 int use_ebcdic (int i) {
8571 return ebcdic_mm[i] + ebcdic_ii[i];
8573 extern int foo;
8576 main ()
8578 return use_ascii (foo) == use_ebcdic (foo);
8580 return 0;
8582 _ACEOF
8583 if ac_fn_c_try_compile "$LINENO"; then :
8584 if grep BIGenDianSyS conftest.$ac_objext >/dev/null; then
8585 ac_cv_c_bigendian=yes
8587 if grep LiTTleEnDian conftest.$ac_objext >/dev/null ; then
8588 if test "$ac_cv_c_bigendian" = unknown; then
8589 ac_cv_c_bigendian=no
8590 else
8591 # finding both strings is unlikely to happen, but who knows?
8592 ac_cv_c_bigendian=unknown
8596 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8597 else
8598 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8599 /* end confdefs.h. */
8600 $ac_includes_default
8602 main ()
8605 /* Are we little or big endian? From Harbison&Steele. */
8606 union
8608 long int l;
8609 char c[sizeof (long int)];
8610 } u;
8611 u.l = 1;
8612 return u.c[sizeof (long int) - 1] == 1;
8615 return 0;
8617 _ACEOF
8618 if ac_fn_c_try_run "$LINENO"; then :
8619 ac_cv_c_bigendian=no
8620 else
8621 ac_cv_c_bigendian=yes
8623 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
8624 conftest.$ac_objext conftest.beam conftest.$ac_ext
8629 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_bigendian" >&5
8630 $as_echo "$ac_cv_c_bigendian" >&6; }
8631 case $ac_cv_c_bigendian in #(
8632 yes)
8633 $as_echo "#define WORDS_BIGENDIAN 1" >>confdefs.h
8634 ;; #(
8636 ;; #(
8637 universal)
8639 $as_echo "#define AC_APPLE_UNIVERSAL_BUILD 1" >>confdefs.h
8641 ;; #(
8643 as_fn_error "unknown endianness
8644 presetting ac_cv_c_bigendian=no (or yes) will help" "$LINENO" 5 ;;
8645 esac
8648 # ----------------------
8649 # Checks for C++ headers
8650 # ----------------------
8652 ac_ext=cpp
8653 ac_cpp='$CXXCPP $CPPFLAGS'
8654 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8655 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8656 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
8657 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C++ preprocessor" >&5
8658 $as_echo_n "checking how to run the C++ preprocessor... " >&6; }
8659 if test -z "$CXXCPP"; then
8660 if test "${ac_cv_prog_CXXCPP+set}" = set; then :
8661 $as_echo_n "(cached) " >&6
8662 else
8663 # Double quotes because CXXCPP needs to be expanded
8664 for CXXCPP in "$CXX -E" "/lib/cpp"
8666 ac_preproc_ok=false
8667 for ac_cxx_preproc_warn_flag in '' yes
8669 # Use a header file that comes with gcc, so configuring glibc
8670 # with a fresh cross-compiler works.
8671 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
8672 # <limits.h> exists even on freestanding compilers.
8673 # On the NeXT, cc -E runs the code through the compiler's parser,
8674 # not just through cpp. "Syntax error" is here to catch this case.
8675 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8676 /* end confdefs.h. */
8677 #ifdef __STDC__
8678 # include <limits.h>
8679 #else
8680 # include <assert.h>
8681 #endif
8682 Syntax error
8683 _ACEOF
8684 if ac_fn_cxx_try_cpp "$LINENO"; then :
8686 else
8687 # Broken: fails on valid input.
8688 continue
8690 rm -f conftest.err conftest.$ac_ext
8692 # OK, works on sane cases. Now check whether nonexistent headers
8693 # can be detected and how.
8694 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8695 /* end confdefs.h. */
8696 #include <ac_nonexistent.h>
8697 _ACEOF
8698 if ac_fn_cxx_try_cpp "$LINENO"; then :
8699 # Broken: success on invalid input.
8700 continue
8701 else
8702 # Passes both tests.
8703 ac_preproc_ok=:
8704 break
8706 rm -f conftest.err conftest.$ac_ext
8708 done
8709 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
8710 rm -f conftest.err conftest.$ac_ext
8711 if $ac_preproc_ok; then :
8712 break
8715 done
8716 ac_cv_prog_CXXCPP=$CXXCPP
8719 CXXCPP=$ac_cv_prog_CXXCPP
8720 else
8721 ac_cv_prog_CXXCPP=$CXXCPP
8723 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXXCPP" >&5
8724 $as_echo "$CXXCPP" >&6; }
8725 ac_preproc_ok=false
8726 for ac_cxx_preproc_warn_flag in '' yes
8728 # Use a header file that comes with gcc, so configuring glibc
8729 # with a fresh cross-compiler works.
8730 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
8731 # <limits.h> exists even on freestanding compilers.
8732 # On the NeXT, cc -E runs the code through the compiler's parser,
8733 # not just through cpp. "Syntax error" is here to catch this case.
8734 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8735 /* end confdefs.h. */
8736 #ifdef __STDC__
8737 # include <limits.h>
8738 #else
8739 # include <assert.h>
8740 #endif
8741 Syntax error
8742 _ACEOF
8743 if ac_fn_cxx_try_cpp "$LINENO"; then :
8745 else
8746 # Broken: fails on valid input.
8747 continue
8749 rm -f conftest.err conftest.$ac_ext
8751 # OK, works on sane cases. Now check whether nonexistent headers
8752 # can be detected and how.
8753 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8754 /* end confdefs.h. */
8755 #include <ac_nonexistent.h>
8756 _ACEOF
8757 if ac_fn_cxx_try_cpp "$LINENO"; then :
8758 # Broken: success on invalid input.
8759 continue
8760 else
8761 # Passes both tests.
8762 ac_preproc_ok=:
8763 break
8765 rm -f conftest.err conftest.$ac_ext
8767 done
8768 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
8769 rm -f conftest.err conftest.$ac_ext
8770 if $ac_preproc_ok; then :
8772 else
8773 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
8774 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
8775 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: C++ preprocessor \"$CXXCPP\" fails sanity check
8776 See \`config.log' for more details." >&5
8777 $as_echo "$as_me: WARNING: C++ preprocessor \"$CXXCPP\" fails sanity check
8778 See \`config.log' for more details." >&2;}; }
8781 ac_ext=c
8782 ac_cpp='$CPP $CPPFLAGS'
8783 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8784 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8785 ac_compiler_gnu=$ac_cv_c_compiler_gnu
8788 ac_ext=cpp
8789 ac_cpp='$CXXCPP $CPPFLAGS'
8790 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8791 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8792 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
8797 for ac_header in unordered_map
8798 do :
8799 ac_fn_cxx_check_header_preproc "$LINENO" "unordered_map" "ac_cv_header_unordered_map"
8800 if test "x$ac_cv_header_unordered_map" = x""yes; then :
8801 cat >>confdefs.h <<_ACEOF
8802 #define HAVE_UNORDERED_MAP 1
8803 _ACEOF
8806 done
8808 for ac_header in tr1/unordered_map
8809 do :
8810 ac_fn_cxx_check_header_preproc "$LINENO" "tr1/unordered_map" "ac_cv_header_tr1_unordered_map"
8811 if test "x$ac_cv_header_tr1_unordered_map" = x""yes; then :
8812 cat >>confdefs.h <<_ACEOF
8813 #define HAVE_TR1_UNORDERED_MAP 1
8814 _ACEOF
8817 done
8819 for ac_header in ext/hash_map
8820 do :
8821 ac_fn_cxx_check_header_preproc "$LINENO" "ext/hash_map" "ac_cv_header_ext_hash_map"
8822 if test "x$ac_cv_header_ext_hash_map" = x""yes; then :
8823 cat >>confdefs.h <<_ACEOF
8824 #define HAVE_EXT_HASH_MAP 1
8825 _ACEOF
8828 done
8831 ac_ext=c
8832 ac_cpp='$CPP $CPPFLAGS'
8833 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8834 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8835 ac_compiler_gnu=$ac_cv_c_compiler_gnu
8838 # --------
8839 # UNSORTED
8840 # --------
8843 # These libraries may be used by collect2.
8844 # We may need a special search path to get them linked.
8845 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for collect2 libraries" >&5
8846 $as_echo_n "checking for collect2 libraries... " >&6; }
8847 if test "${gcc_cv_collect2_libs+set}" = set; then :
8848 $as_echo_n "(cached) " >&6
8849 else
8850 save_LIBS="$LIBS"
8851 for libs in '' -lld -lmld \
8852 '-L/usr/lib/cmplrs/cc2.11 -lmld' \
8853 '-L/usr/lib/cmplrs/cc3.11 -lmld'
8855 LIBS="$libs"
8856 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8857 /* end confdefs.h. */
8859 /* Override any GCC internal prototype to avoid an error.
8860 Use char because int might match the return type of a GCC
8861 builtin and then its argument prototype would still apply. */
8862 #ifdef __cplusplus
8863 extern "C"
8864 #endif
8865 char ldopen ();
8867 main ()
8869 return ldopen ();
8871 return 0;
8873 _ACEOF
8874 if ac_fn_c_try_link "$LINENO"; then :
8875 gcc_cv_collect2_libs="$libs"; break
8877 rm -f core conftest.err conftest.$ac_objext \
8878 conftest$ac_exeext conftest.$ac_ext
8879 done
8880 LIBS="$save_LIBS"
8881 test -z "$gcc_cv_collect2_libs" && gcc_cv_collect2_libs='none required'
8883 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_collect2_libs" >&5
8884 $as_echo "$gcc_cv_collect2_libs" >&6; }
8885 case $gcc_cv_collect2_libs in
8886 "none required") ;;
8887 *) COLLECT2_LIBS=$gcc_cv_collect2_libs ;;
8888 esac
8891 # When building Ada code on Alpha, we need exc_resume which is usually in
8892 # -lexc. So test for it.
8893 save_LIBS="$LIBS"
8894 LIBS=
8895 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing exc_resume" >&5
8896 $as_echo_n "checking for library containing exc_resume... " >&6; }
8897 if test "${ac_cv_search_exc_resume+set}" = set; then :
8898 $as_echo_n "(cached) " >&6
8899 else
8900 ac_func_search_save_LIBS=$LIBS
8901 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8902 /* end confdefs.h. */
8904 /* Override any GCC internal prototype to avoid an error.
8905 Use char because int might match the return type of a GCC
8906 builtin and then its argument prototype would still apply. */
8907 #ifdef __cplusplus
8908 extern "C"
8909 #endif
8910 char exc_resume ();
8912 main ()
8914 return exc_resume ();
8916 return 0;
8918 _ACEOF
8919 for ac_lib in '' exc; do
8920 if test -z "$ac_lib"; then
8921 ac_res="none required"
8922 else
8923 ac_res=-l$ac_lib
8924 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
8926 if ac_fn_c_try_link "$LINENO"; then :
8927 ac_cv_search_exc_resume=$ac_res
8929 rm -f core conftest.err conftest.$ac_objext \
8930 conftest$ac_exeext
8931 if test "${ac_cv_search_exc_resume+set}" = set; then :
8932 break
8934 done
8935 if test "${ac_cv_search_exc_resume+set}" = set; then :
8937 else
8938 ac_cv_search_exc_resume=no
8940 rm conftest.$ac_ext
8941 LIBS=$ac_func_search_save_LIBS
8943 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_exc_resume" >&5
8944 $as_echo "$ac_cv_search_exc_resume" >&6; }
8945 ac_res=$ac_cv_search_exc_resume
8946 if test "$ac_res" != no; then :
8947 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
8951 GNAT_LIBEXC="$LIBS"
8952 LIBS="$save_LIBS"
8955 # To support -mcpu=native on Solaris/SPARC, we need libkstat.
8956 save_LIBS="$LIBS"
8957 LIBS=
8958 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing kstat_open" >&5
8959 $as_echo_n "checking for library containing kstat_open... " >&6; }
8960 if test "${ac_cv_search_kstat_open+set}" = set; then :
8961 $as_echo_n "(cached) " >&6
8962 else
8963 ac_func_search_save_LIBS=$LIBS
8964 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8965 /* end confdefs.h. */
8967 /* Override any GCC internal prototype to avoid an error.
8968 Use char because int might match the return type of a GCC
8969 builtin and then its argument prototype would still apply. */
8970 #ifdef __cplusplus
8971 extern "C"
8972 #endif
8973 char kstat_open ();
8975 main ()
8977 return kstat_open ();
8979 return 0;
8981 _ACEOF
8982 for ac_lib in '' kstat; do
8983 if test -z "$ac_lib"; then
8984 ac_res="none required"
8985 else
8986 ac_res=-l$ac_lib
8987 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
8989 if ac_fn_c_try_link "$LINENO"; then :
8990 ac_cv_search_kstat_open=$ac_res
8992 rm -f core conftest.err conftest.$ac_objext \
8993 conftest$ac_exeext
8994 if test "${ac_cv_search_kstat_open+set}" = set; then :
8995 break
8997 done
8998 if test "${ac_cv_search_kstat_open+set}" = set; then :
9000 else
9001 ac_cv_search_kstat_open=no
9003 rm conftest.$ac_ext
9004 LIBS=$ac_func_search_save_LIBS
9006 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_kstat_open" >&5
9007 $as_echo "$ac_cv_search_kstat_open" >&6; }
9008 ac_res=$ac_cv_search_kstat_open
9009 if test "$ac_res" != no; then :
9010 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
9014 EXTRA_GCC_LIBS="$LIBS"
9015 LIBS="$save_LIBS"
9018 # Some systems put ldexp and frexp in libm instead of libc; assume
9019 # they're both in the same place. jcf-dump needs them.
9020 save_LIBS="$LIBS"
9021 LIBS=
9022 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing ldexp" >&5
9023 $as_echo_n "checking for library containing ldexp... " >&6; }
9024 if test "${ac_cv_search_ldexp+set}" = set; then :
9025 $as_echo_n "(cached) " >&6
9026 else
9027 ac_func_search_save_LIBS=$LIBS
9028 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9029 /* end confdefs.h. */
9031 /* Override any GCC internal prototype to avoid an error.
9032 Use char because int might match the return type of a GCC
9033 builtin and then its argument prototype would still apply. */
9034 #ifdef __cplusplus
9035 extern "C"
9036 #endif
9037 char ldexp ();
9039 main ()
9041 return ldexp ();
9043 return 0;
9045 _ACEOF
9046 for ac_lib in '' m; do
9047 if test -z "$ac_lib"; then
9048 ac_res="none required"
9049 else
9050 ac_res=-l$ac_lib
9051 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
9053 if ac_fn_c_try_link "$LINENO"; then :
9054 ac_cv_search_ldexp=$ac_res
9056 rm -f core conftest.err conftest.$ac_objext \
9057 conftest$ac_exeext
9058 if test "${ac_cv_search_ldexp+set}" = set; then :
9059 break
9061 done
9062 if test "${ac_cv_search_ldexp+set}" = set; then :
9064 else
9065 ac_cv_search_ldexp=no
9067 rm conftest.$ac_ext
9068 LIBS=$ac_func_search_save_LIBS
9070 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_ldexp" >&5
9071 $as_echo "$ac_cv_search_ldexp" >&6; }
9072 ac_res=$ac_cv_search_ldexp
9073 if test "$ac_res" != no; then :
9074 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
9078 LDEXP_LIB="$LIBS"
9079 LIBS="$save_LIBS"
9082 # Use <inttypes.h> only if it exists,
9083 # doesn't clash with <sys/types.h>, and declares intmax_t.
9084 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for inttypes.h" >&5
9085 $as_echo_n "checking for inttypes.h... " >&6; }
9086 if test "${gcc_cv_header_inttypes_h+set}" = set; then :
9087 $as_echo_n "(cached) " >&6
9088 else
9089 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9090 /* end confdefs.h. */
9091 #include <sys/types.h>
9092 #include <inttypes.h>
9094 main ()
9096 intmax_t i = -1;
9098 return 0;
9100 _ACEOF
9101 if ac_fn_c_try_compile "$LINENO"; then :
9102 gcc_cv_header_inttypes_h=yes
9103 else
9104 gcc_cv_header_inttypes_h=no
9106 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9109 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_header_inttypes_h" >&5
9110 $as_echo "$gcc_cv_header_inttypes_h" >&6; }
9111 if test $gcc_cv_header_inttypes_h = yes; then
9113 $as_echo "#define HAVE_INTTYPES_H 1" >>confdefs.h
9119 for ac_func in times clock kill getrlimit setrlimit atoll atoq \
9120 sysconf strsignal getrusage nl_langinfo \
9121 gettimeofday mbstowcs wcswidth mmap setlocale \
9122 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
9123 do :
9124 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
9125 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
9126 eval as_val=\$$as_ac_var
9127 if test "x$as_val" = x""yes; then :
9128 cat >>confdefs.h <<_ACEOF
9129 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
9130 _ACEOF
9133 done
9136 if test x$ac_cv_func_mbstowcs = xyes; then
9137 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether mbstowcs works" >&5
9138 $as_echo_n "checking whether mbstowcs works... " >&6; }
9139 if test "${gcc_cv_func_mbstowcs_works+set}" = set; then :
9140 $as_echo_n "(cached) " >&6
9141 else
9142 if test "$cross_compiling" = yes; then :
9143 gcc_cv_func_mbstowcs_works=yes
9144 else
9145 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9146 /* end confdefs.h. */
9147 #include <stdlib.h>
9148 int main()
9150 mbstowcs(0, "", 0);
9151 return 0;
9153 _ACEOF
9154 if ac_fn_c_try_run "$LINENO"; then :
9155 gcc_cv_func_mbstowcs_works=yes
9156 else
9157 gcc_cv_func_mbstowcs_works=no
9159 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
9160 conftest.$ac_objext conftest.beam conftest.$ac_ext
9164 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_func_mbstowcs_works" >&5
9165 $as_echo "$gcc_cv_func_mbstowcs_works" >&6; }
9166 if test x$gcc_cv_func_mbstowcs_works = xyes; then
9168 $as_echo "#define HAVE_WORKING_MBSTOWCS 1" >>confdefs.h
9173 ac_fn_c_check_type "$LINENO" "ssize_t" "ac_cv_type_ssize_t" "$ac_includes_default"
9174 if test "x$ac_cv_type_ssize_t" = x""yes; then :
9176 else
9178 cat >>confdefs.h <<_ACEOF
9179 #define ssize_t int
9180 _ACEOF
9184 ac_fn_c_check_type "$LINENO" "caddr_t" "ac_cv_type_caddr_t" "$ac_includes_default"
9185 if test "x$ac_cv_type_caddr_t" = x""yes; then :
9187 else
9189 cat >>confdefs.h <<_ACEOF
9190 #define caddr_t char *
9191 _ACEOF
9197 ac_fn_c_check_header_preproc "$LINENO" "sys/mman.h" "ac_cv_header_sys_mman_h"
9198 if test "x$ac_cv_header_sys_mman_h" = x""yes; then :
9199 gcc_header_sys_mman_h=yes
9200 else
9201 gcc_header_sys_mman_h=no
9204 ac_fn_c_check_func "$LINENO" "mmap" "ac_cv_func_mmap"
9205 if test "x$ac_cv_func_mmap" = x""yes; then :
9206 gcc_func_mmap=yes
9207 else
9208 gcc_func_mmap=no
9211 if test "$gcc_header_sys_mman_h" != yes \
9212 || test "$gcc_func_mmap" != yes; then
9213 gcc_cv_func_mmap_file=no
9214 gcc_cv_func_mmap_dev_zero=no
9215 gcc_cv_func_mmap_anon=no
9216 else
9217 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether read-only mmap of a plain file works" >&5
9218 $as_echo_n "checking whether read-only mmap of a plain file works... " >&6; }
9219 if test "${gcc_cv_func_mmap_file+set}" = set; then :
9220 $as_echo_n "(cached) " >&6
9221 else
9222 # Add a system to this blacklist if
9223 # mmap(0, stat_size, PROT_READ, MAP_PRIVATE, fd, 0) doesn't return a
9224 # memory area containing the same data that you'd get if you applied
9225 # read() to the same fd. The only system known to have a problem here
9226 # is VMS, where text files have record structure.
9227 case "$host_os" in
9228 *vms* | ultrix*)
9229 gcc_cv_func_mmap_file=no ;;
9231 gcc_cv_func_mmap_file=yes;;
9232 esac
9234 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_func_mmap_file" >&5
9235 $as_echo "$gcc_cv_func_mmap_file" >&6; }
9236 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether mmap from /dev/zero works" >&5
9237 $as_echo_n "checking whether mmap from /dev/zero works... " >&6; }
9238 if test "${gcc_cv_func_mmap_dev_zero+set}" = set; then :
9239 $as_echo_n "(cached) " >&6
9240 else
9241 # Add a system to this blacklist if it has mmap() but /dev/zero
9242 # does not exist, or if mmapping /dev/zero does not give anonymous
9243 # zeroed pages with both the following properties:
9244 # 1. If you map N consecutive pages in with one call, and then
9245 # unmap any subset of those pages, the pages that were not
9246 # explicitly unmapped remain accessible.
9247 # 2. If you map two adjacent blocks of memory and then unmap them
9248 # both at once, they must both go away.
9249 # Systems known to be in this category are Windows (all variants),
9250 # VMS, and Darwin.
9251 case "$host_os" in
9252 *vms* | cygwin* | pe | mingw* | darwin* | ultrix* | hpux10* | hpux11.00)
9253 gcc_cv_func_mmap_dev_zero=no ;;
9255 gcc_cv_func_mmap_dev_zero=yes;;
9256 esac
9258 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_func_mmap_dev_zero" >&5
9259 $as_echo "$gcc_cv_func_mmap_dev_zero" >&6; }
9261 # Unlike /dev/zero, the MAP_ANON(YMOUS) defines can be probed for.
9262 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for MAP_ANON(YMOUS)" >&5
9263 $as_echo_n "checking for MAP_ANON(YMOUS)... " >&6; }
9264 if test "${gcc_cv_decl_map_anon+set}" = set; then :
9265 $as_echo_n "(cached) " >&6
9266 else
9267 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9268 /* end confdefs.h. */
9269 #include <sys/types.h>
9270 #include <sys/mman.h>
9271 #include <unistd.h>
9273 #ifndef MAP_ANONYMOUS
9274 #define MAP_ANONYMOUS MAP_ANON
9275 #endif
9278 main ()
9280 int n = MAP_ANONYMOUS;
9282 return 0;
9284 _ACEOF
9285 if ac_fn_c_try_compile "$LINENO"; then :
9286 gcc_cv_decl_map_anon=yes
9287 else
9288 gcc_cv_decl_map_anon=no
9290 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9292 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_decl_map_anon" >&5
9293 $as_echo "$gcc_cv_decl_map_anon" >&6; }
9295 if test $gcc_cv_decl_map_anon = no; then
9296 gcc_cv_func_mmap_anon=no
9297 else
9298 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether mmap with MAP_ANON(YMOUS) works" >&5
9299 $as_echo_n "checking whether mmap with MAP_ANON(YMOUS) works... " >&6; }
9300 if test "${gcc_cv_func_mmap_anon+set}" = set; then :
9301 $as_echo_n "(cached) " >&6
9302 else
9303 # Add a system to this blacklist if it has mmap() and MAP_ANON or
9304 # MAP_ANONYMOUS, but using mmap(..., MAP_PRIVATE|MAP_ANONYMOUS, -1, 0)
9305 # doesn't give anonymous zeroed pages with the same properties listed
9306 # above for use of /dev/zero.
9307 # Systems known to be in this category are Windows, VMS, and SCO Unix.
9308 case "$host_os" in
9309 *vms* | cygwin* | pe | mingw* | sco* | udk* )
9310 gcc_cv_func_mmap_anon=no ;;
9312 gcc_cv_func_mmap_anon=yes;;
9313 esac
9315 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_func_mmap_anon" >&5
9316 $as_echo "$gcc_cv_func_mmap_anon" >&6; }
9320 if test $gcc_cv_func_mmap_file = yes; then
9322 $as_echo "#define HAVE_MMAP_FILE 1" >>confdefs.h
9325 if test $gcc_cv_func_mmap_dev_zero = yes; then
9327 $as_echo "#define HAVE_MMAP_DEV_ZERO 1" >>confdefs.h
9330 if test $gcc_cv_func_mmap_anon = yes; then
9332 $as_echo "#define HAVE_MMAP_ANON 1" >>confdefs.h
9337 case "${host}" in
9338 *-*-*vms*)
9339 # Under VMS, vfork works very differently than on Unix. The standard test
9340 # won't work, and it isn't easily adaptable. It makes more sense to
9341 # just force it.
9342 ac_cv_func_vfork_works=yes
9344 esac
9345 ac_fn_c_check_type "$LINENO" "pid_t" "ac_cv_type_pid_t" "$ac_includes_default"
9346 if test "x$ac_cv_type_pid_t" = x""yes; then :
9348 else
9350 cat >>confdefs.h <<_ACEOF
9351 #define pid_t int
9352 _ACEOF
9356 for ac_header in vfork.h
9357 do :
9358 ac_fn_c_check_header_preproc "$LINENO" "vfork.h" "ac_cv_header_vfork_h"
9359 if test "x$ac_cv_header_vfork_h" = x""yes; then :
9360 cat >>confdefs.h <<_ACEOF
9361 #define HAVE_VFORK_H 1
9362 _ACEOF
9365 done
9367 for ac_func in fork vfork
9368 do :
9369 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
9370 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
9371 eval as_val=\$$as_ac_var
9372 if test "x$as_val" = x""yes; then :
9373 cat >>confdefs.h <<_ACEOF
9374 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
9375 _ACEOF
9378 done
9380 if test "x$ac_cv_func_fork" = xyes; then
9381 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working fork" >&5
9382 $as_echo_n "checking for working fork... " >&6; }
9383 if test "${ac_cv_func_fork_works+set}" = set; then :
9384 $as_echo_n "(cached) " >&6
9385 else
9386 if test "$cross_compiling" = yes; then :
9387 ac_cv_func_fork_works=cross
9388 else
9389 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9390 /* end confdefs.h. */
9391 $ac_includes_default
9393 main ()
9396 /* By Ruediger Kuhlmann. */
9397 return fork () < 0;
9400 return 0;
9402 _ACEOF
9403 if ac_fn_c_try_run "$LINENO"; then :
9404 ac_cv_func_fork_works=yes
9405 else
9406 ac_cv_func_fork_works=no
9408 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
9409 conftest.$ac_objext conftest.beam conftest.$ac_ext
9413 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_fork_works" >&5
9414 $as_echo "$ac_cv_func_fork_works" >&6; }
9416 else
9417 ac_cv_func_fork_works=$ac_cv_func_fork
9419 if test "x$ac_cv_func_fork_works" = xcross; then
9420 case $host in
9421 *-*-amigaos* | *-*-msdosdjgpp*)
9422 # Override, as these systems have only a dummy fork() stub
9423 ac_cv_func_fork_works=no
9426 ac_cv_func_fork_works=yes
9428 esac
9429 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: result $ac_cv_func_fork_works guessed because of cross compilation" >&5
9430 $as_echo "$as_me: WARNING: result $ac_cv_func_fork_works guessed because of cross compilation" >&2;}
9432 ac_cv_func_vfork_works=$ac_cv_func_vfork
9433 if test "x$ac_cv_func_vfork" = xyes; then
9434 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working vfork" >&5
9435 $as_echo_n "checking for working vfork... " >&6; }
9436 if test "${ac_cv_func_vfork_works+set}" = set; then :
9437 $as_echo_n "(cached) " >&6
9438 else
9439 if test "$cross_compiling" = yes; then :
9440 ac_cv_func_vfork_works=cross
9441 else
9442 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9443 /* end confdefs.h. */
9444 /* Thanks to Paul Eggert for this test. */
9445 $ac_includes_default
9446 #include <sys/wait.h>
9447 #ifdef HAVE_VFORK_H
9448 # include <vfork.h>
9449 #endif
9450 /* On some sparc systems, changes by the child to local and incoming
9451 argument registers are propagated back to the parent. The compiler
9452 is told about this with #include <vfork.h>, but some compilers
9453 (e.g. gcc -O) don't grok <vfork.h>. Test for this by using a
9454 static variable whose address is put into a register that is
9455 clobbered by the vfork. */
9456 static void
9457 #ifdef __cplusplus
9458 sparc_address_test (int arg)
9459 # else
9460 sparc_address_test (arg) int arg;
9461 #endif
9463 static pid_t child;
9464 if (!child) {
9465 child = vfork ();
9466 if (child < 0) {
9467 perror ("vfork");
9468 _exit(2);
9470 if (!child) {
9471 arg = getpid();
9472 write(-1, "", 0);
9473 _exit (arg);
9479 main ()
9481 pid_t parent = getpid ();
9482 pid_t child;
9484 sparc_address_test (0);
9486 child = vfork ();
9488 if (child == 0) {
9489 /* Here is another test for sparc vfork register problems. This
9490 test uses lots of local variables, at least as many local
9491 variables as main has allocated so far including compiler
9492 temporaries. 4 locals are enough for gcc 1.40.3 on a Solaris
9493 4.1.3 sparc, but we use 8 to be safe. A buggy compiler should
9494 reuse the register of parent for one of the local variables,
9495 since it will think that parent can't possibly be used any more
9496 in this routine. Assigning to the local variable will thus
9497 munge parent in the parent process. */
9498 pid_t
9499 p = getpid(), p1 = getpid(), p2 = getpid(), p3 = getpid(),
9500 p4 = getpid(), p5 = getpid(), p6 = getpid(), p7 = getpid();
9501 /* Convince the compiler that p..p7 are live; otherwise, it might
9502 use the same hardware register for all 8 local variables. */
9503 if (p != p1 || p != p2 || p != p3 || p != p4
9504 || p != p5 || p != p6 || p != p7)
9505 _exit(1);
9507 /* On some systems (e.g. IRIX 3.3), vfork doesn't separate parent
9508 from child file descriptors. If the child closes a descriptor
9509 before it execs or exits, this munges the parent's descriptor
9510 as well. Test for this by closing stdout in the child. */
9511 _exit(close(fileno(stdout)) != 0);
9512 } else {
9513 int status;
9514 struct stat st;
9516 while (wait(&status) != child)
9518 return (
9519 /* Was there some problem with vforking? */
9520 child < 0
9522 /* Did the child fail? (This shouldn't happen.) */
9523 || status
9525 /* Did the vfork/compiler bug occur? */
9526 || parent != getpid()
9528 /* Did the file descriptor bug occur? */
9529 || fstat(fileno(stdout), &st) != 0
9533 _ACEOF
9534 if ac_fn_c_try_run "$LINENO"; then :
9535 ac_cv_func_vfork_works=yes
9536 else
9537 ac_cv_func_vfork_works=no
9539 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
9540 conftest.$ac_objext conftest.beam conftest.$ac_ext
9544 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_vfork_works" >&5
9545 $as_echo "$ac_cv_func_vfork_works" >&6; }
9548 if test "x$ac_cv_func_fork_works" = xcross; then
9549 ac_cv_func_vfork_works=$ac_cv_func_vfork
9550 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: result $ac_cv_func_vfork_works guessed because of cross compilation" >&5
9551 $as_echo "$as_me: WARNING: result $ac_cv_func_vfork_works guessed because of cross compilation" >&2;}
9554 if test "x$ac_cv_func_vfork_works" = xyes; then
9556 $as_echo "#define HAVE_WORKING_VFORK 1" >>confdefs.h
9558 else
9560 $as_echo "#define vfork fork" >>confdefs.h
9563 if test "x$ac_cv_func_fork_works" = xyes; then
9565 $as_echo "#define HAVE_WORKING_FORK 1" >>confdefs.h
9570 # g++ on Solaris 10+ defines _XOPEN_SOURCE=600, which exposes a different
9571 # iconv() prototype.
9572 ac_ext=cpp
9573 ac_cpp='$CXXCPP $CPPFLAGS'
9574 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
9575 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
9576 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
9579 if test "X$prefix" = "XNONE"; then
9580 acl_final_prefix="$ac_default_prefix"
9581 else
9582 acl_final_prefix="$prefix"
9584 if test "X$exec_prefix" = "XNONE"; then
9585 acl_final_exec_prefix='${prefix}'
9586 else
9587 acl_final_exec_prefix="$exec_prefix"
9589 acl_save_prefix="$prefix"
9590 prefix="$acl_final_prefix"
9591 eval acl_final_exec_prefix=\"$acl_final_exec_prefix\"
9592 prefix="$acl_save_prefix"
9595 # Check whether --with-gnu-ld was given.
9596 if test "${with_gnu_ld+set}" = set; then :
9597 withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
9598 else
9599 with_gnu_ld=no
9602 # Prepare PATH_SEPARATOR.
9603 # The user is always right.
9604 if test "${PATH_SEPARATOR+set}" != set; then
9605 echo "#! /bin/sh" >conf$$.sh
9606 echo "exit 0" >>conf$$.sh
9607 chmod +x conf$$.sh
9608 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
9609 PATH_SEPARATOR=';'
9610 else
9611 PATH_SEPARATOR=:
9613 rm -f conf$$.sh
9615 ac_prog=ld
9616 if test "$GCC" = yes; then
9617 # Check if gcc -print-prog-name=ld gives a path.
9618 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by GCC" >&5
9619 $as_echo_n "checking for ld used by GCC... " >&6; }
9620 case $host in
9621 *-*-mingw*)
9622 # gcc leaves a trailing carriage return which upsets mingw
9623 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
9625 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
9626 esac
9627 case $ac_prog in
9628 # Accept absolute paths.
9629 [\\/]* | [A-Za-z]:[\\/]*)
9630 re_direlt='/[^/][^/]*/\.\./'
9631 # Canonicalize the path of ld
9632 ac_prog=`echo $ac_prog| sed 's%\\\\%/%g'`
9633 while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
9634 ac_prog=`echo $ac_prog| sed "s%$re_direlt%/%"`
9635 done
9636 test -z "$LD" && LD="$ac_prog"
9639 # If it fails, then pretend we aren't using GCC.
9640 ac_prog=ld
9643 # If it is relative, then search for the first ld in PATH.
9644 with_gnu_ld=unknown
9646 esac
9647 elif test "$with_gnu_ld" = yes; then
9648 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
9649 $as_echo_n "checking for GNU ld... " >&6; }
9650 else
9651 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
9652 $as_echo_n "checking for non-GNU ld... " >&6; }
9654 if test "${acl_cv_path_LD+set}" = set; then :
9655 $as_echo_n "(cached) " >&6
9656 else
9657 if test -z "$LD"; then
9658 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}${PATH_SEPARATOR-:}"
9659 for ac_dir in $PATH; do
9660 test -z "$ac_dir" && ac_dir=.
9661 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
9662 acl_cv_path_LD="$ac_dir/$ac_prog"
9663 # Check to see if the program is GNU ld. I'd rather use --version,
9664 # but apparently some GNU ld's only accept -v.
9665 # Break only if it was the GNU/non-GNU ld that we prefer.
9666 if "$acl_cv_path_LD" -v 2>&1 < /dev/null | egrep '(GNU|with BFD)' > /dev/null; then
9667 test "$with_gnu_ld" != no && break
9668 else
9669 test "$with_gnu_ld" != yes && break
9672 done
9673 IFS="$ac_save_ifs"
9674 else
9675 acl_cv_path_LD="$LD" # Let the user override the test with a path.
9679 LD="$acl_cv_path_LD"
9680 if test -n "$LD"; then
9681 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
9682 $as_echo "$LD" >&6; }
9683 else
9684 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9685 $as_echo "no" >&6; }
9687 test -z "$LD" && as_fn_error "no acceptable ld found in \$PATH" "$LINENO" 5
9688 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
9689 $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
9690 if test "${acl_cv_prog_gnu_ld+set}" = set; then :
9691 $as_echo_n "(cached) " >&6
9692 else
9693 # I'd rather use --version here, but apparently some GNU ld's only accept -v.
9694 if $LD -v 2>&1 </dev/null | egrep '(GNU|with BFD)' 1>&5; then
9695 acl_cv_prog_gnu_ld=yes
9696 else
9697 acl_cv_prog_gnu_ld=no
9700 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $acl_cv_prog_gnu_ld" >&5
9701 $as_echo "$acl_cv_prog_gnu_ld" >&6; }
9702 with_gnu_ld=$acl_cv_prog_gnu_ld
9706 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shared library run path origin" >&5
9707 $as_echo_n "checking for shared library run path origin... " >&6; }
9708 if test "${acl_cv_rpath+set}" = set; then :
9709 $as_echo_n "(cached) " >&6
9710 else
9712 CC="$CC" GCC="$GCC" LDFLAGS="$LDFLAGS" LD="$LD" with_gnu_ld="$with_gnu_ld" \
9713 ${CONFIG_SHELL-/bin/sh} "$ac_aux_dir/config.rpath" "$host" > conftest.sh
9714 . ./conftest.sh
9715 rm -f ./conftest.sh
9716 acl_cv_rpath=done
9719 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $acl_cv_rpath" >&5
9720 $as_echo "$acl_cv_rpath" >&6; }
9721 wl="$acl_cv_wl"
9722 libext="$acl_cv_libext"
9723 shlibext="$acl_cv_shlibext"
9724 hardcode_libdir_flag_spec="$acl_cv_hardcode_libdir_flag_spec"
9725 hardcode_libdir_separator="$acl_cv_hardcode_libdir_separator"
9726 hardcode_direct="$acl_cv_hardcode_direct"
9727 hardcode_minus_L="$acl_cv_hardcode_minus_L"
9728 # Check whether --enable-rpath was given.
9729 if test "${enable_rpath+set}" = set; then :
9730 enableval=$enable_rpath; :
9731 else
9732 enable_rpath=yes
9742 use_additional=yes
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"
9756 # Check whether --with-libiconv-prefix was given.
9757 if test "${with_libiconv_prefix+set}" = set; then :
9758 withval=$with_libiconv_prefix;
9759 if test "X$withval" = "Xno"; then
9760 use_additional=no
9761 else
9762 if test "X$withval" = "X"; then
9764 acl_save_prefix="$prefix"
9765 prefix="$acl_final_prefix"
9766 acl_save_exec_prefix="$exec_prefix"
9767 exec_prefix="$acl_final_exec_prefix"
9769 eval additional_includedir=\"$includedir\"
9770 eval additional_libdir=\"$libdir\"
9772 exec_prefix="$acl_save_exec_prefix"
9773 prefix="$acl_save_prefix"
9775 else
9776 additional_includedir="$withval/include"
9777 additional_libdir="$withval/lib"
9783 LIBICONV=
9784 LTLIBICONV=
9785 INCICONV=
9786 rpathdirs=
9787 ltrpathdirs=
9788 names_already_handled=
9789 names_next_round='iconv '
9790 while test -n "$names_next_round"; do
9791 names_this_round="$names_next_round"
9792 names_next_round=
9793 for name in $names_this_round; do
9794 already_handled=
9795 for n in $names_already_handled; do
9796 if test "$n" = "$name"; then
9797 already_handled=yes
9798 break
9800 done
9801 if test -z "$already_handled"; then
9802 names_already_handled="$names_already_handled $name"
9803 uppername=`echo "$name" | sed -e 'y|abcdefghijklmnopqrstuvwxyz./-|ABCDEFGHIJKLMNOPQRSTUVWXYZ___|'`
9804 eval value=\"\$HAVE_LIB$uppername\"
9805 if test -n "$value"; then
9806 if test "$value" = yes; then
9807 eval value=\"\$LIB$uppername\"
9808 test -z "$value" || LIBICONV="${LIBICONV}${LIBICONV:+ }$value"
9809 eval value=\"\$LTLIB$uppername\"
9810 test -z "$value" || LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }$value"
9811 else
9814 else
9815 found_dir=
9816 found_la=
9817 found_so=
9818 found_a=
9819 if test $use_additional = yes; then
9820 if test -n "$shlibext" && test -f "$additional_libdir/lib$name.$shlibext"; then
9821 found_dir="$additional_libdir"
9822 found_so="$additional_libdir/lib$name.$shlibext"
9823 if test -f "$additional_libdir/lib$name.la"; then
9824 found_la="$additional_libdir/lib$name.la"
9826 else
9827 if test -f "$additional_libdir/lib$name.$libext"; then
9828 found_dir="$additional_libdir"
9829 found_a="$additional_libdir/lib$name.$libext"
9830 if test -f "$additional_libdir/lib$name.la"; then
9831 found_la="$additional_libdir/lib$name.la"
9836 if test "X$found_dir" = "X"; then
9837 for x in $LDFLAGS $LTLIBICONV; do
9839 acl_save_prefix="$prefix"
9840 prefix="$acl_final_prefix"
9841 acl_save_exec_prefix="$exec_prefix"
9842 exec_prefix="$acl_final_exec_prefix"
9843 eval x=\"$x\"
9844 exec_prefix="$acl_save_exec_prefix"
9845 prefix="$acl_save_prefix"
9847 case "$x" in
9848 -L*)
9849 dir=`echo "X$x" | sed -e 's/^X-L//'`
9850 if test -n "$shlibext" && test -f "$dir/lib$name.$shlibext"; then
9851 found_dir="$dir"
9852 found_so="$dir/lib$name.$shlibext"
9853 if test -f "$dir/lib$name.la"; then
9854 found_la="$dir/lib$name.la"
9856 else
9857 if test -f "$dir/lib$name.$libext"; then
9858 found_dir="$dir"
9859 found_a="$dir/lib$name.$libext"
9860 if test -f "$dir/lib$name.la"; then
9861 found_la="$dir/lib$name.la"
9866 esac
9867 if test "X$found_dir" != "X"; then
9868 break
9870 done
9872 if test "X$found_dir" != "X"; then
9873 LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-L$found_dir -l$name"
9874 if test "X$found_so" != "X"; then
9875 if test "$enable_rpath" = no || test "X$found_dir" = "X/usr/lib"; then
9876 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
9877 else
9878 haveit=
9879 for x in $ltrpathdirs; do
9880 if test "X$x" = "X$found_dir"; then
9881 haveit=yes
9882 break
9884 done
9885 if test -z "$haveit"; then
9886 ltrpathdirs="$ltrpathdirs $found_dir"
9888 if test "$hardcode_direct" = yes; then
9889 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
9890 else
9891 if test -n "$hardcode_libdir_flag_spec" && test "$hardcode_minus_L" = no; then
9892 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
9893 haveit=
9894 for x in $rpathdirs; do
9895 if test "X$x" = "X$found_dir"; then
9896 haveit=yes
9897 break
9899 done
9900 if test -z "$haveit"; then
9901 rpathdirs="$rpathdirs $found_dir"
9903 else
9904 haveit=
9905 for x in $LDFLAGS $LIBICONV; do
9907 acl_save_prefix="$prefix"
9908 prefix="$acl_final_prefix"
9909 acl_save_exec_prefix="$exec_prefix"
9910 exec_prefix="$acl_final_exec_prefix"
9911 eval x=\"$x\"
9912 exec_prefix="$acl_save_exec_prefix"
9913 prefix="$acl_save_prefix"
9915 if test "X$x" = "X-L$found_dir"; then
9916 haveit=yes
9917 break
9919 done
9920 if test -z "$haveit"; then
9921 LIBICONV="${LIBICONV}${LIBICONV:+ }-L$found_dir"
9923 if test "$hardcode_minus_L" != no; then
9924 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
9925 else
9926 LIBICONV="${LIBICONV}${LIBICONV:+ }-l$name"
9931 else
9932 if test "X$found_a" != "X"; then
9933 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_a"
9934 else
9935 LIBICONV="${LIBICONV}${LIBICONV:+ }-L$found_dir -l$name"
9938 additional_includedir=
9939 case "$found_dir" in
9940 */lib | */lib/)
9941 basedir=`echo "X$found_dir" | sed -e 's,^X,,' -e 's,/lib/*$,,'`
9942 additional_includedir="$basedir/include"
9944 esac
9945 if test "X$additional_includedir" != "X"; then
9946 if test "X$additional_includedir" != "X/usr/include"; then
9947 haveit=
9948 if test "X$additional_includedir" = "X/usr/local/include"; then
9949 if test -n "$GCC"; then
9950 case $host_os in
9951 linux*) haveit=yes;;
9952 esac
9955 if test -z "$haveit"; then
9956 for x in $CPPFLAGS $INCICONV; do
9958 acl_save_prefix="$prefix"
9959 prefix="$acl_final_prefix"
9960 acl_save_exec_prefix="$exec_prefix"
9961 exec_prefix="$acl_final_exec_prefix"
9962 eval x=\"$x\"
9963 exec_prefix="$acl_save_exec_prefix"
9964 prefix="$acl_save_prefix"
9966 if test "X$x" = "X-I$additional_includedir"; then
9967 haveit=yes
9968 break
9970 done
9971 if test -z "$haveit"; then
9972 if test -d "$additional_includedir"; then
9973 INCICONV="${INCICONV}${INCICONV:+ }-I$additional_includedir"
9979 if test -n "$found_la"; then
9980 save_libdir="$libdir"
9981 case "$found_la" in
9982 */* | *\\*) . "$found_la" ;;
9983 *) . "./$found_la" ;;
9984 esac
9985 libdir="$save_libdir"
9986 for dep in $dependency_libs; do
9987 case "$dep" in
9988 -L*)
9989 additional_libdir=`echo "X$dep" | sed -e 's/^X-L//'`
9990 if test "X$additional_libdir" != "X/usr/lib"; then
9991 haveit=
9992 if test "X$additional_libdir" = "X/usr/local/lib"; then
9993 if test -n "$GCC"; then
9994 case $host_os in
9995 linux*) haveit=yes;;
9996 esac
9999 if test -z "$haveit"; then
10000 haveit=
10001 for x in $LDFLAGS $LIBICONV; do
10003 acl_save_prefix="$prefix"
10004 prefix="$acl_final_prefix"
10005 acl_save_exec_prefix="$exec_prefix"
10006 exec_prefix="$acl_final_exec_prefix"
10007 eval x=\"$x\"
10008 exec_prefix="$acl_save_exec_prefix"
10009 prefix="$acl_save_prefix"
10011 if test "X$x" = "X-L$additional_libdir"; then
10012 haveit=yes
10013 break
10015 done
10016 if test -z "$haveit"; then
10017 if test -d "$additional_libdir"; then
10018 LIBICONV="${LIBICONV}${LIBICONV:+ }-L$additional_libdir"
10021 haveit=
10022 for x in $LDFLAGS $LTLIBICONV; do
10024 acl_save_prefix="$prefix"
10025 prefix="$acl_final_prefix"
10026 acl_save_exec_prefix="$exec_prefix"
10027 exec_prefix="$acl_final_exec_prefix"
10028 eval x=\"$x\"
10029 exec_prefix="$acl_save_exec_prefix"
10030 prefix="$acl_save_prefix"
10032 if test "X$x" = "X-L$additional_libdir"; then
10033 haveit=yes
10034 break
10036 done
10037 if test -z "$haveit"; then
10038 if test -d "$additional_libdir"; then
10039 LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-L$additional_libdir"
10045 -R*)
10046 dir=`echo "X$dep" | sed -e 's/^X-R//'`
10047 if test "$enable_rpath" != no; then
10048 haveit=
10049 for x in $rpathdirs; do
10050 if test "X$x" = "X$dir"; then
10051 haveit=yes
10052 break
10054 done
10055 if test -z "$haveit"; then
10056 rpathdirs="$rpathdirs $dir"
10058 haveit=
10059 for x in $ltrpathdirs; do
10060 if test "X$x" = "X$dir"; then
10061 haveit=yes
10062 break
10064 done
10065 if test -z "$haveit"; then
10066 ltrpathdirs="$ltrpathdirs $dir"
10070 -l*)
10071 names_next_round="$names_next_round "`echo "X$dep" | sed -e 's/^X-l//'`
10073 *.la)
10074 names_next_round="$names_next_round "`echo "X$dep" | sed -e 's,^X.*/,,' -e 's,^lib,,' -e 's,\.la$,,'`
10077 LIBICONV="${LIBICONV}${LIBICONV:+ }$dep"
10078 LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }$dep"
10080 esac
10081 done
10083 else
10084 LIBICONV="${LIBICONV}${LIBICONV:+ }-l$name"
10085 LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-l$name"
10089 done
10090 done
10091 if test "X$rpathdirs" != "X"; then
10092 if test -n "$hardcode_libdir_separator"; then
10093 alldirs=
10094 for found_dir in $rpathdirs; do
10095 alldirs="${alldirs}${alldirs:+$hardcode_libdir_separator}$found_dir"
10096 done
10097 acl_save_libdir="$libdir"
10098 libdir="$alldirs"
10099 eval flag=\"$hardcode_libdir_flag_spec\"
10100 libdir="$acl_save_libdir"
10101 LIBICONV="${LIBICONV}${LIBICONV:+ }$flag"
10102 else
10103 for found_dir in $rpathdirs; do
10104 acl_save_libdir="$libdir"
10105 libdir="$found_dir"
10106 eval flag=\"$hardcode_libdir_flag_spec\"
10107 libdir="$acl_save_libdir"
10108 LIBICONV="${LIBICONV}${LIBICONV:+ }$flag"
10109 done
10112 if test "X$ltrpathdirs" != "X"; then
10113 for found_dir in $ltrpathdirs; do
10114 LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-R$found_dir"
10115 done
10124 am_save_CPPFLAGS="$CPPFLAGS"
10126 for element in $INCICONV; do
10127 haveit=
10128 for x in $CPPFLAGS; do
10130 acl_save_prefix="$prefix"
10131 prefix="$acl_final_prefix"
10132 acl_save_exec_prefix="$exec_prefix"
10133 exec_prefix="$acl_final_exec_prefix"
10134 eval x=\"$x\"
10135 exec_prefix="$acl_save_exec_prefix"
10136 prefix="$acl_save_prefix"
10138 if test "X$x" = "X$element"; then
10139 haveit=yes
10140 break
10142 done
10143 if test -z "$haveit"; then
10144 CPPFLAGS="${CPPFLAGS}${CPPFLAGS:+ }$element"
10146 done
10149 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for iconv" >&5
10150 $as_echo_n "checking for iconv... " >&6; }
10151 if test "${am_cv_func_iconv+set}" = set; then :
10152 $as_echo_n "(cached) " >&6
10153 else
10155 am_cv_func_iconv="no, consider installing GNU libiconv"
10156 am_cv_lib_iconv=no
10157 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10158 /* end confdefs.h. */
10159 #include <stdlib.h>
10160 #include <iconv.h>
10162 main ()
10164 iconv_t cd = iconv_open("","");
10165 iconv(cd,NULL,NULL,NULL,NULL);
10166 iconv_close(cd);
10168 return 0;
10170 _ACEOF
10171 if ac_fn_cxx_try_link "$LINENO"; then :
10172 am_cv_func_iconv=yes
10174 rm -f core conftest.err conftest.$ac_objext \
10175 conftest$ac_exeext conftest.$ac_ext
10176 if test "$am_cv_func_iconv" != yes; then
10177 am_save_LIBS="$LIBS"
10178 LIBS="$LIBS $LIBICONV"
10179 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10180 /* end confdefs.h. */
10181 #include <stdlib.h>
10182 #include <iconv.h>
10184 main ()
10186 iconv_t cd = iconv_open("","");
10187 iconv(cd,NULL,NULL,NULL,NULL);
10188 iconv_close(cd);
10190 return 0;
10192 _ACEOF
10193 if ac_fn_cxx_try_link "$LINENO"; then :
10194 am_cv_lib_iconv=yes
10195 am_cv_func_iconv=yes
10197 rm -f core conftest.err conftest.$ac_objext \
10198 conftest$ac_exeext conftest.$ac_ext
10199 LIBS="$am_save_LIBS"
10203 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_func_iconv" >&5
10204 $as_echo "$am_cv_func_iconv" >&6; }
10205 if test "$am_cv_func_iconv" = yes; then
10207 $as_echo "#define HAVE_ICONV 1" >>confdefs.h
10210 if test "$am_cv_lib_iconv" = yes; then
10211 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to link with libiconv" >&5
10212 $as_echo_n "checking how to link with libiconv... " >&6; }
10213 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIBICONV" >&5
10214 $as_echo "$LIBICONV" >&6; }
10215 else
10216 CPPFLAGS="$am_save_CPPFLAGS"
10217 LIBICONV=
10218 LTLIBICONV=
10223 if test "$am_cv_func_iconv" = yes; then
10224 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for iconv declaration" >&5
10225 $as_echo_n "checking for iconv declaration... " >&6; }
10226 if test "${am_cv_proto_iconv+set}" = set; then :
10227 $as_echo_n "(cached) " >&6
10228 else
10230 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10231 /* end confdefs.h. */
10233 #include <stdlib.h>
10234 #include <iconv.h>
10235 extern
10236 #ifdef __cplusplus
10238 #endif
10239 #if defined(__STDC__) || defined(__cplusplus)
10240 size_t iconv (iconv_t cd, char * *inbuf, size_t *inbytesleft, char * *outbuf, size_t *outbytesleft);
10241 #else
10242 size_t iconv();
10243 #endif
10246 main ()
10250 return 0;
10252 _ACEOF
10253 if ac_fn_cxx_try_compile "$LINENO"; then :
10254 am_cv_proto_iconv_arg1=""
10255 else
10256 am_cv_proto_iconv_arg1="const"
10258 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10259 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);"
10262 am_cv_proto_iconv=`echo "$am_cv_proto_iconv" | tr -s ' ' | sed -e 's/( /(/'`
10263 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${ac_t:-
10264 }$am_cv_proto_iconv" >&5
10265 $as_echo "${ac_t:-
10266 }$am_cv_proto_iconv" >&6; }
10268 cat >>confdefs.h <<_ACEOF
10269 #define ICONV_CONST $am_cv_proto_iconv_arg1
10270 _ACEOF
10274 ac_ext=c
10275 ac_cpp='$CPP $CPPFLAGS'
10276 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
10277 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
10278 ac_compiler_gnu=$ac_cv_c_compiler_gnu
10281 # Until we have in-tree GNU iconv:
10282 LIBICONV_DEP=
10286 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for LC_MESSAGES" >&5
10287 $as_echo_n "checking for LC_MESSAGES... " >&6; }
10288 if test "${am_cv_val_LC_MESSAGES+set}" = set; then :
10289 $as_echo_n "(cached) " >&6
10290 else
10291 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10292 /* end confdefs.h. */
10293 #include <locale.h>
10295 main ()
10297 return LC_MESSAGES
10299 return 0;
10301 _ACEOF
10302 if ac_fn_c_try_link "$LINENO"; then :
10303 am_cv_val_LC_MESSAGES=yes
10304 else
10305 am_cv_val_LC_MESSAGES=no
10307 rm -f core conftest.err conftest.$ac_objext \
10308 conftest$ac_exeext conftest.$ac_ext
10310 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_val_LC_MESSAGES" >&5
10311 $as_echo "$am_cv_val_LC_MESSAGES" >&6; }
10312 if test $am_cv_val_LC_MESSAGES = yes; then
10314 $as_echo "#define HAVE_LC_MESSAGES 1" >>confdefs.h
10320 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for nl_langinfo and CODESET" >&5
10321 $as_echo_n "checking for nl_langinfo and CODESET... " >&6; }
10322 if test "${am_cv_langinfo_codeset+set}" = set; then :
10323 $as_echo_n "(cached) " >&6
10324 else
10325 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10326 /* end confdefs.h. */
10327 #include <langinfo.h>
10329 main ()
10331 char* cs = nl_langinfo(CODESET);
10333 return 0;
10335 _ACEOF
10336 if ac_fn_c_try_link "$LINENO"; then :
10337 am_cv_langinfo_codeset=yes
10338 else
10339 am_cv_langinfo_codeset=no
10341 rm -f core conftest.err conftest.$ac_objext \
10342 conftest$ac_exeext conftest.$ac_ext
10345 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_langinfo_codeset" >&5
10346 $as_echo "$am_cv_langinfo_codeset" >&6; }
10347 if test $am_cv_langinfo_codeset = yes; then
10349 $as_echo "#define HAVE_LANGINFO_CODESET 1" >>confdefs.h
10354 # We will need to find libiberty.h and ansidecl.h
10355 saved_CFLAGS="$CFLAGS"
10356 CFLAGS="$CFLAGS -I${srcdir} -I${srcdir}/../include $GMPINC"
10357 saved_CXXFLAGS="$CXXFLAGS"
10358 CXXFLAGS="$CXXFLAGS -I${srcdir} -I${srcdir}/../include $GMPINC"
10359 for ac_func in getenv atol asprintf sbrk abort atof getcwd getwd \
10360 strsignal strstr stpcpy strverscmp \
10361 errno snprintf vsnprintf vasprintf malloc realloc calloc \
10362 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
10364 ac_tr_decl=`$as_echo "HAVE_DECL_$ac_func" | $as_tr_cpp`
10365 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $ac_func is declared" >&5
10366 $as_echo_n "checking whether $ac_func is declared... " >&6; }
10367 if { as_var=gcc_cv_have_decl_$ac_func; eval "test \"\${$as_var+set}\" = set"; }; then :
10368 $as_echo_n "(cached) " >&6
10369 else
10370 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10371 /* end confdefs.h. */
10372 #undef $ac_tr_decl
10373 #define $ac_tr_decl 1
10375 #include "ansidecl.h"
10376 #include "system.h"
10379 main ()
10381 #ifndef $ac_func
10382 char *(*pfn) = (char *(*)) $ac_func ;
10383 #endif
10385 return 0;
10387 _ACEOF
10388 if ac_fn_c_try_compile "$LINENO"; then :
10389 eval "gcc_cv_have_decl_$ac_func=yes"
10390 else
10391 eval "gcc_cv_have_decl_$ac_func=no"
10393 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10396 if eval "test \"`echo '$gcc_cv_have_decl_'$ac_func`\" = yes"; then
10397 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
10398 $as_echo "yes" >&6; } ; cat >>confdefs.h <<_ACEOF
10399 #define $ac_tr_decl 1
10400 _ACEOF
10402 else
10403 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10404 $as_echo "no" >&6; } ; cat >>confdefs.h <<_ACEOF
10405 #define $ac_tr_decl 0
10406 _ACEOF
10410 done
10413 for ac_func in getrlimit setrlimit getrusage
10415 ac_tr_decl=`$as_echo "HAVE_DECL_$ac_func" | $as_tr_cpp`
10416 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $ac_func is declared" >&5
10417 $as_echo_n "checking whether $ac_func is declared... " >&6; }
10418 if { as_var=gcc_cv_have_decl_$ac_func; eval "test \"\${$as_var+set}\" = set"; }; then :
10419 $as_echo_n "(cached) " >&6
10420 else
10421 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10422 /* end confdefs.h. */
10423 #undef $ac_tr_decl
10424 #define $ac_tr_decl 1
10426 #include "ansidecl.h"
10427 #include "system.h"
10428 #ifdef HAVE_SYS_RESOURCE_H
10429 #include <sys/resource.h>
10430 #endif
10434 main ()
10436 #ifndef $ac_func
10437 char *(*pfn) = (char *(*)) $ac_func ;
10438 #endif
10440 return 0;
10442 _ACEOF
10443 if ac_fn_c_try_compile "$LINENO"; then :
10444 eval "gcc_cv_have_decl_$ac_func=yes"
10445 else
10446 eval "gcc_cv_have_decl_$ac_func=no"
10448 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10451 if eval "test \"`echo '$gcc_cv_have_decl_'$ac_func`\" = yes"; then
10452 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
10453 $as_echo "yes" >&6; } ; cat >>confdefs.h <<_ACEOF
10454 #define $ac_tr_decl 1
10455 _ACEOF
10457 else
10458 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10459 $as_echo "no" >&6; } ; cat >>confdefs.h <<_ACEOF
10460 #define $ac_tr_decl 0
10461 _ACEOF
10465 done
10468 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10469 /* end confdefs.h. */
10471 #include "ansidecl.h"
10472 #include "system.h"
10473 #ifdef HAVE_SYS_RESOURCE_H
10474 #include <sys/resource.h>
10475 #endif
10478 main ()
10480 rlim_t l = 0;
10482 return 0;
10484 _ACEOF
10485 if ac_fn_c_try_compile "$LINENO"; then :
10487 else
10489 $as_echo "#define rlim_t long" >>confdefs.h
10492 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10494 # On AIX 5.2, <ldfcn.h> conflicts with <fcntl.h>, as both define incompatible
10495 # FREAD and FWRITE macros. Fortunately, for GCC's single usage of ldgetname
10496 # in collect2.c, <fcntl.h> isn't visible, but the configure test below needs
10497 # to undef these macros to get the correct value for HAVE_DECL_LDGETNAME.
10498 for ac_func in ldgetname
10500 ac_tr_decl=`$as_echo "HAVE_DECL_$ac_func" | $as_tr_cpp`
10501 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $ac_func is declared" >&5
10502 $as_echo_n "checking whether $ac_func is declared... " >&6; }
10503 if { as_var=gcc_cv_have_decl_$ac_func; eval "test \"\${$as_var+set}\" = set"; }; then :
10504 $as_echo_n "(cached) " >&6
10505 else
10506 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10507 /* end confdefs.h. */
10508 #undef $ac_tr_decl
10509 #define $ac_tr_decl 1
10511 #include "ansidecl.h"
10512 #include "system.h"
10513 #ifdef HAVE_LDFCN_H
10514 #undef FREAD
10515 #undef FWRITE
10516 #include <ldfcn.h>
10517 #endif
10521 main ()
10523 #ifndef $ac_func
10524 char *(*pfn) = (char *(*)) $ac_func ;
10525 #endif
10527 return 0;
10529 _ACEOF
10530 if ac_fn_c_try_compile "$LINENO"; then :
10531 eval "gcc_cv_have_decl_$ac_func=yes"
10532 else
10533 eval "gcc_cv_have_decl_$ac_func=no"
10535 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10538 if eval "test \"`echo '$gcc_cv_have_decl_'$ac_func`\" = yes"; then
10539 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
10540 $as_echo "yes" >&6; } ; cat >>confdefs.h <<_ACEOF
10541 #define $ac_tr_decl 1
10542 _ACEOF
10544 else
10545 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10546 $as_echo "no" >&6; } ; cat >>confdefs.h <<_ACEOF
10547 #define $ac_tr_decl 0
10548 _ACEOF
10552 done
10555 for ac_func in times
10557 ac_tr_decl=`$as_echo "HAVE_DECL_$ac_func" | $as_tr_cpp`
10558 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $ac_func is declared" >&5
10559 $as_echo_n "checking whether $ac_func is declared... " >&6; }
10560 if { as_var=gcc_cv_have_decl_$ac_func; eval "test \"\${$as_var+set}\" = set"; }; then :
10561 $as_echo_n "(cached) " >&6
10562 else
10563 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10564 /* end confdefs.h. */
10565 #undef $ac_tr_decl
10566 #define $ac_tr_decl 1
10568 #include "ansidecl.h"
10569 #include "system.h"
10570 #ifdef HAVE_SYS_TIMES_H
10571 #include <sys/times.h>
10572 #endif
10576 main ()
10578 #ifndef $ac_func
10579 char *(*pfn) = (char *(*)) $ac_func ;
10580 #endif
10582 return 0;
10584 _ACEOF
10585 if ac_fn_c_try_compile "$LINENO"; then :
10586 eval "gcc_cv_have_decl_$ac_func=yes"
10587 else
10588 eval "gcc_cv_have_decl_$ac_func=no"
10590 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10593 if eval "test \"`echo '$gcc_cv_have_decl_'$ac_func`\" = yes"; then
10594 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
10595 $as_echo "yes" >&6; } ; cat >>confdefs.h <<_ACEOF
10596 #define $ac_tr_decl 1
10597 _ACEOF
10599 else
10600 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10601 $as_echo "no" >&6; } ; cat >>confdefs.h <<_ACEOF
10602 #define $ac_tr_decl 0
10603 _ACEOF
10607 done
10610 for ac_func in sigaltstack
10612 ac_tr_decl=`$as_echo "HAVE_DECL_$ac_func" | $as_tr_cpp`
10613 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $ac_func is declared" >&5
10614 $as_echo_n "checking whether $ac_func is declared... " >&6; }
10615 if { as_var=gcc_cv_have_decl_$ac_func; eval "test \"\${$as_var+set}\" = set"; }; then :
10616 $as_echo_n "(cached) " >&6
10617 else
10618 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10619 /* end confdefs.h. */
10620 #undef $ac_tr_decl
10621 #define $ac_tr_decl 1
10623 #include "ansidecl.h"
10624 #include "system.h"
10625 #include <signal.h>
10629 main ()
10631 #ifndef $ac_func
10632 char *(*pfn) = (char *(*)) $ac_func ;
10633 #endif
10635 return 0;
10637 _ACEOF
10638 if ac_fn_c_try_compile "$LINENO"; then :
10639 eval "gcc_cv_have_decl_$ac_func=yes"
10640 else
10641 eval "gcc_cv_have_decl_$ac_func=no"
10643 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10646 if eval "test \"`echo '$gcc_cv_have_decl_'$ac_func`\" = yes"; then
10647 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
10648 $as_echo "yes" >&6; } ; cat >>confdefs.h <<_ACEOF
10649 #define $ac_tr_decl 1
10650 _ACEOF
10652 else
10653 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10654 $as_echo "no" >&6; } ; cat >>confdefs.h <<_ACEOF
10655 #define $ac_tr_decl 0
10656 _ACEOF
10660 done
10663 # g++ on Solaris 10+ defines _XOPEN_SOURCE=600, which hides the madvise()
10664 # prototype.
10665 ac_ext=cpp
10666 ac_cpp='$CXXCPP $CPPFLAGS'
10667 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
10668 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
10669 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
10671 for ac_func in madvise
10673 ac_tr_decl=`$as_echo "HAVE_DECL_$ac_func" | $as_tr_cpp`
10674 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $ac_func is declared" >&5
10675 $as_echo_n "checking whether $ac_func is declared... " >&6; }
10676 if { as_var=gcc_cv_have_decl_$ac_func; eval "test \"\${$as_var+set}\" = set"; }; then :
10677 $as_echo_n "(cached) " >&6
10678 else
10679 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10680 /* end confdefs.h. */
10681 #undef $ac_tr_decl
10682 #define $ac_tr_decl 1
10684 #include "ansidecl.h"
10685 #include "system.h"
10689 main ()
10691 #ifndef $ac_func
10692 char *(*pfn) = (char *(*)) $ac_func ;
10693 #endif
10695 return 0;
10697 _ACEOF
10698 if ac_fn_cxx_try_compile "$LINENO"; then :
10699 eval "gcc_cv_have_decl_$ac_func=yes"
10700 else
10701 eval "gcc_cv_have_decl_$ac_func=no"
10703 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10706 if eval "test \"`echo '$gcc_cv_have_decl_'$ac_func`\" = yes"; then
10707 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
10708 $as_echo "yes" >&6; } ; cat >>confdefs.h <<_ACEOF
10709 #define $ac_tr_decl 1
10710 _ACEOF
10712 else
10713 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10714 $as_echo "no" >&6; } ; cat >>confdefs.h <<_ACEOF
10715 #define $ac_tr_decl 0
10716 _ACEOF
10720 done
10722 ac_ext=c
10723 ac_cpp='$CPP $CPPFLAGS'
10724 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
10725 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
10726 ac_compiler_gnu=$ac_cv_c_compiler_gnu
10729 # More time-related stuff.
10730 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for struct tms" >&5
10731 $as_echo_n "checking for struct tms... " >&6; }
10732 if test "${ac_cv_struct_tms+set}" = set; then :
10733 $as_echo_n "(cached) " >&6
10734 else
10736 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10737 /* end confdefs.h. */
10739 #include "ansidecl.h"
10740 #include "system.h"
10741 #ifdef HAVE_SYS_TIMES_H
10742 #include <sys/times.h>
10743 #endif
10746 main ()
10748 struct tms tms;
10750 return 0;
10752 _ACEOF
10753 if ac_fn_c_try_compile "$LINENO"; then :
10754 ac_cv_struct_tms=yes
10755 else
10756 ac_cv_struct_tms=no
10758 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10760 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_struct_tms" >&5
10761 $as_echo "$ac_cv_struct_tms" >&6; }
10762 if test $ac_cv_struct_tms = yes; then
10764 $as_echo "#define HAVE_STRUCT_TMS 1" >>confdefs.h
10768 # use gcc_cv_* here because this doesn't match the behavior of AC_CHECK_TYPE.
10769 # revisit after autoconf 2.50.
10770 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for clock_t" >&5
10771 $as_echo_n "checking for clock_t... " >&6; }
10772 if test "${gcc_cv_type_clock_t+set}" = set; then :
10773 $as_echo_n "(cached) " >&6
10774 else
10776 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10777 /* end confdefs.h. */
10779 #include "ansidecl.h"
10780 #include "system.h"
10783 main ()
10785 clock_t x;
10787 return 0;
10789 _ACEOF
10790 if ac_fn_c_try_compile "$LINENO"; then :
10791 gcc_cv_type_clock_t=yes
10792 else
10793 gcc_cv_type_clock_t=no
10795 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10797 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_type_clock_t" >&5
10798 $as_echo "$gcc_cv_type_clock_t" >&6; }
10799 if test $gcc_cv_type_clock_t = yes; then
10801 $as_echo "#define HAVE_CLOCK_T 1" >>confdefs.h
10805 # Check if F_SETLKW is supported by fcntl.
10806 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for F_SETLKW" >&5
10807 $as_echo_n "checking for F_SETLKW... " >&6; }
10808 if test "${ac_cv_f_setlkw+set}" = set; then :
10809 $as_echo_n "(cached) " >&6
10810 else
10812 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10813 /* end confdefs.h. */
10815 #include <fcntl.h>
10817 main ()
10820 struct flock fl;
10821 fl.l_whence = 0;
10822 fl.l_start = 0;
10823 fl.l_len = 0;
10824 fl.l_pid = 0;
10825 return fcntl (1, F_SETLKW, &fl);
10827 return 0;
10829 _ACEOF
10830 if ac_fn_c_try_compile "$LINENO"; then :
10831 ac_cv_f_setlkw=yes
10832 else
10833 ac_cv_f_setlkw=no
10835 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10837 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_f_setlkw" >&5
10838 $as_echo "$ac_cv_f_setlkw" >&6; }
10839 if test $ac_cv_f_setlkw = yes; then
10841 $as_echo "#define HOST_HAS_F_SETLKW 1" >>confdefs.h
10845 # Restore CFLAGS, CXXFLAGS from before the gcc_AC_NEED_DECLARATIONS tests.
10846 CFLAGS="$saved_CFLAGS"
10847 CXXFLAGS="$saved_CXXFLAGS"
10849 # mkdir takes a single argument on some systems.
10850 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if mkdir takes one argument" >&5
10851 $as_echo_n "checking if mkdir takes one argument... " >&6; }
10852 if test "${gcc_cv_mkdir_takes_one_arg+set}" = set; then :
10853 $as_echo_n "(cached) " >&6
10854 else
10855 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10856 /* end confdefs.h. */
10858 #include <sys/types.h>
10859 #ifdef HAVE_SYS_STAT_H
10860 # include <sys/stat.h>
10861 #endif
10862 #ifdef HAVE_UNISTD_H
10863 # include <unistd.h>
10864 #endif
10865 #ifdef HAVE_DIRECT_H
10866 # include <direct.h>
10867 #endif
10869 main ()
10871 mkdir ("foo", 0);
10873 return 0;
10875 _ACEOF
10876 if ac_fn_c_try_compile "$LINENO"; then :
10877 gcc_cv_mkdir_takes_one_arg=no
10878 else
10879 gcc_cv_mkdir_takes_one_arg=yes
10881 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10883 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_mkdir_takes_one_arg" >&5
10884 $as_echo "$gcc_cv_mkdir_takes_one_arg" >&6; }
10885 if test $gcc_cv_mkdir_takes_one_arg = yes ; then
10887 $as_echo "#define MKDIR_TAKES_ONE_ARG 1" >>confdefs.h
10892 # File extensions
10893 manext='.1'
10894 objext='.o'
10898 # With Setjmp/Longjmp based exception handling.
10899 # Check whether --enable-sjlj-exceptions was given.
10900 if test "${enable_sjlj_exceptions+set}" = set; then :
10901 enableval=$enable_sjlj_exceptions; case $target in
10902 *-*-hpux10*)
10903 if test $enableval != yes; then
10904 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: dwarf2 exceptions not supported, sjlj exceptions forced" >&5
10905 $as_echo "$as_me: WARNING: dwarf2 exceptions not supported, sjlj exceptions forced" >&2;}
10906 enableval=yes
10909 esac
10910 force_sjlj_exceptions=yes
10911 else
10912 case $target in
10913 *-*-hpux10*)
10914 force_sjlj_exceptions=yes
10915 enableval=yes
10918 force_sjlj_exceptions=no
10920 esac
10923 if test $force_sjlj_exceptions = yes; then
10924 sjlj=`if test $enableval = yes; then echo 1; else echo 0; fi`
10926 cat >>confdefs.h <<_ACEOF
10927 #define CONFIG_SJLJ_EXCEPTIONS $sjlj
10928 _ACEOF
10932 # --------------------------------------------------------
10933 # Build, host, and target specific configuration fragments
10934 # --------------------------------------------------------
10936 # Collect build-machine-specific information.
10937 . ${srcdir}/config.build
10939 # Collect host-machine-specific information.
10940 . ${srcdir}/config.host
10942 target_gtfiles=
10944 # Collect target-machine-specific information.
10945 . ${srcdir}/config.gcc
10947 extra_objs="${host_extra_objs} ${extra_objs}"
10948 extra_gcc_objs="${host_extra_gcc_objs} ${extra_gcc_objs}"
10950 # Default the target-machine variables that were not explicitly set.
10951 if test x"$tm_file" = x
10952 then tm_file=$cpu_type/$cpu_type.h; fi
10954 if test x"$extra_headers" = x
10955 then extra_headers=; fi
10957 if test x$md_file = x
10958 then md_file=$cpu_type/$cpu_type.md; fi
10960 if test x$out_file = x
10961 then out_file=$cpu_type/$cpu_type.c; fi
10963 if test x"$tmake_file" = x
10964 then tmake_file=$cpu_type/t-$cpu_type
10967 # Support --enable-initfini-array.
10968 if test x$enable_initfini_array != xno; then
10969 tm_file="${tm_file} initfini-array.h"
10972 if test x"$dwarf2" = xyes
10973 then tm_file="$tm_file tm-dwarf2.h"
10976 # Say what files are being used for the output code and MD file.
10977 echo "Using \`$srcdir/config/$out_file' for machine-specific logic."
10978 echo "Using \`$srcdir/config/$md_file' as machine description file."
10980 # If any of the xm_file variables contain nonexistent files, warn
10981 # about them and drop them.
10984 for x in $build_xm_file; do
10985 if test -f $srcdir/config/$x
10986 then bx="$bx $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 build_xm_file="$bx"
10994 for x in $host_xm_file; do
10995 if test -f $srcdir/config/$x
10996 then hx="$hx $x"
10997 else { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $srcdir/config/$x does not exist." >&5
10998 $as_echo "$as_me: WARNING: $srcdir/config/$x does not exist." >&2;}
11000 done
11001 host_xm_file="$hx"
11004 for x in $xm_file; do
11005 if test -f $srcdir/config/$x
11006 then tx="$tx $x"
11007 else { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $srcdir/config/$x does not exist." >&5
11008 $as_echo "$as_me: WARNING: $srcdir/config/$x does not exist." >&2;}
11010 done
11011 xm_file="$tx"
11013 count=a
11014 for f in $tm_file; do
11015 count=${count}x
11016 done
11017 if test $count = ax; then
11018 echo "Using \`$srcdir/config/$tm_file' as target machine macro file."
11019 else
11020 echo "Using the following target machine macro files:"
11021 for f in $tm_file; do
11022 echo " $srcdir/config/$f"
11023 done
11026 if test x$need_64bit_hwint = xyes; then
11028 $as_echo "#define NEED_64BIT_HOST_WIDE_INT 1" >>confdefs.h
11032 if test x$use_long_long_for_widest_fast_int = xyes; then
11034 $as_echo "#define USE_LONG_LONG_FOR_WIDEST_FAST_INT 1" >>confdefs.h
11038 gnu_ld_bool=`if test x"$gnu_ld" = x"yes"; then echo 1; else echo 0; fi`
11040 cat >>confdefs.h <<_ACEOF
11041 #define HAVE_GNU_LD $gnu_ld_bool
11042 _ACEOF
11045 gnu_as_bool=`if test x"$gas" = x"yes"; then echo 1; else echo 0; fi`
11047 cat >>confdefs.h <<_ACEOF
11048 #define HAVE_GNU_AS $gnu_as_bool
11049 _ACEOF
11052 count=a
11053 for f in $host_xm_file; do
11054 count=${count}x
11055 done
11056 if test $count = a; then
11058 elif test $count = ax; then
11059 echo "Using \`$srcdir/config/$host_xm_file' as host machine macro file."
11060 else
11061 echo "Using the following host machine macro files:"
11062 for f in $host_xm_file; do
11063 echo " $srcdir/config/$f"
11064 done
11066 echo "Using ${out_host_hook_obj} for host machine hooks."
11068 if test "$host_xm_file" != "$build_xm_file"; then
11069 count=a
11070 for f in $build_xm_file; do
11071 count=${count}x
11072 done
11073 if test $count = a; then
11075 elif test $count = ax; then
11076 echo "Using \`$srcdir/config/$build_xm_file' as build machine macro file."
11077 else
11078 echo "Using the following build machine macro files:"
11079 for f in $build_xm_file; do
11080 echo " $srcdir/config/$f"
11081 done
11085 if test -n "$configured_native_system_header_dir"; then
11086 native_system_header_dir=$configured_native_system_header_dir
11088 NATIVE_SYSTEM_HEADER_DIR="$native_system_header_dir"
11091 case ${host} in
11092 powerpc*-*-darwin*)
11093 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether mcontext_t fields have underscores" >&5
11094 $as_echo_n "checking whether mcontext_t fields have underscores... " >&6; }
11095 if test "${gcc_cv_mcontext_underscores+set}" = set; then :
11096 $as_echo_n "(cached) " >&6
11097 else
11098 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11099 /* end confdefs.h. */
11101 #include <sys/cdefs.h>
11102 #include <sys/signal.h>
11103 #include <ucontext.h>
11104 int main() { mcontext_t m; if (m->ss.srr0) return 0; return 0; }
11106 _ACEOF
11107 if ac_fn_c_try_compile "$LINENO"; then :
11108 gcc_cv_mcontext_underscores=no
11109 else
11110 gcc_cv_mcontext_underscores=yes
11112 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11114 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_mcontext_underscores" >&5
11115 $as_echo "$gcc_cv_mcontext_underscores" >&6; }
11116 if test $gcc_cv_mcontext_underscores = yes; then
11118 $as_echo "#define HAS_MCONTEXT_T_UNDERSCORES /**/" >>confdefs.h
11122 esac
11124 # ---------
11125 # Threading
11126 # ---------
11128 # Check if a valid thread package
11129 case ${enable_threads} in
11130 "" | no)
11131 # No threads
11132 target_thread_file='single'
11134 yes)
11135 # default
11136 target_thread_file='single'
11138 aix | dce | lynx | mipssde | posix | rtems | \
11139 single | tpf | vxworks | win32)
11140 target_thread_file=${enable_threads}
11143 echo "${enable_threads} is an unknown thread package" 1>&2
11144 exit 1
11146 esac
11148 if test x${thread_file} = x; then
11149 # No thread file set by target-specific clauses in config.gcc,
11150 # so use file chosen by default logic above
11151 thread_file=${target_thread_file}
11154 # --------
11155 # UNSORTED
11156 # --------
11158 use_cxa_atexit=no
11159 if test x$enable___cxa_atexit = xyes || \
11160 test x$enable___cxa_atexit = x -a x$default_use_cxa_atexit = xyes; then
11161 if test x$host = x$target; then
11162 case $host in
11163 # mingw32 doesn't have __cxa_atexit but uses atexit registration
11164 # keyed to flag_use_cxa_atexit
11165 *-*-mingw32*)
11166 use_cxa_atexit=yes
11168 powerpc-ibm-aix*)
11169 use_cxa_atexit=yes
11172 ac_fn_c_check_func "$LINENO" "__cxa_atexit" "ac_cv_func___cxa_atexit"
11173 if test "x$ac_cv_func___cxa_atexit" = x""yes; then :
11174 use_cxa_atexit=yes
11175 else
11176 echo "__cxa_atexit can't be enabled on this target"
11180 esac
11181 else
11182 # We can't check for __cxa_atexit when building a cross, so assume
11183 # it is available
11184 use_cxa_atexit=yes
11186 if test x$use_cxa_atexit = xyes; then
11188 $as_echo "#define DEFAULT_USE_CXA_ATEXIT 2" >>confdefs.h
11193 # Look for a file containing extra machine modes.
11194 if test -n "$extra_modes" && test -f $srcdir/config/$extra_modes; then
11195 extra_modes_file='$(srcdir)'/config/${extra_modes}
11198 cat >>confdefs.h <<_ACEOF
11199 #define EXTRA_MODES_FILE "config/$extra_modes"
11200 _ACEOF
11204 # Convert extra_options into a form suitable for Makefile use.
11205 extra_opt_files=
11206 all_opt_files=
11207 for f in $extra_options; do
11208 extra_opt_files="$extra_opt_files \$(srcdir)/config/$f"
11209 all_opt_files="$all_opt_files $srcdir/config/$f"
11210 done
11213 # auto-host.h is the file containing items generated by autoconf and is
11214 # the first file included by config.h.
11215 # If host=build, it is correct to have bconfig include auto-host.h
11216 # as well. If host!=build, we are in error and need to do more
11217 # work to find out the build config parameters.
11218 if test x$host = x$build
11219 then
11220 build_auto=auto-host.h
11221 else
11222 # We create a subdir, then run autoconf in the subdir.
11223 # To prevent recursion we set host and build for the new
11224 # invocation of configure to the build for this invocation
11225 # of configure.
11226 tempdir=build.$$
11227 rm -rf $tempdir
11228 mkdir $tempdir
11229 cd $tempdir
11230 case ${srcdir} in
11231 /* | A-Za-z:\\/* ) realsrcdir=${srcdir};;
11232 *) realsrcdir=../${srcdir};;
11233 esac
11234 saved_CFLAGS="${CFLAGS}"
11235 CC="${CC_FOR_BUILD}" CFLAGS="${CFLAGS_FOR_BUILD}" \
11236 LDFLAGS="${LDFLAGS_FOR_BUILD}" \
11237 ${realsrcdir}/configure \
11238 --enable-languages=${enable_languages-all} \
11239 --target=$target_alias --host=$build_alias --build=$build_alias
11240 CFLAGS="${saved_CFLAGS}"
11242 # We just finished tests for the build machine, so rename
11243 # the file auto-build.h in the gcc directory.
11244 mv auto-host.h ../auto-build.h
11245 cd ..
11246 rm -rf $tempdir
11247 build_auto=auto-build.h
11251 tm_file="${tm_file} defaults.h"
11252 tm_p_file="${tm_p_file} tm-preds.h"
11253 host_xm_file="auto-host.h ansidecl.h ${host_xm_file}"
11254 build_xm_file="${build_auto} ansidecl.h ${build_xm_file}"
11255 # We don't want ansidecl.h in target files, write code there in ISO/GNU C.
11256 # put this back in temporarily.
11257 xm_file="auto-host.h ansidecl.h ${xm_file}"
11259 # --------
11260 # UNSORTED
11261 # --------
11263 # Compile in configure arguments.
11264 if test -f configargs.h ; then
11265 # Being re-configured.
11266 gcc_config_arguments=`grep configuration_arguments configargs.h | sed -e 's/.*"\([^"]*\)".*/\1/'`
11267 gcc_config_arguments="$gcc_config_arguments : (reconfigured) $TOPLEVEL_CONFIGURE_ARGUMENTS"
11268 else
11269 gcc_config_arguments="$TOPLEVEL_CONFIGURE_ARGUMENTS"
11272 # Double all backslashes and backslash all quotes to turn
11273 # gcc_config_arguments into a C string.
11274 sed -e 's/\\/\\\\/g; s/"/\\"/g' <<EOF >conftest.out
11275 $gcc_config_arguments
11277 gcc_config_arguments_str=`cat conftest.out`
11278 rm -f conftest.out
11280 cat > configargs.h <<EOF
11281 /* Generated automatically. */
11282 static const char configuration_arguments[] = "$gcc_config_arguments_str";
11283 static const char thread_model[] = "$thread_file";
11285 static const struct {
11286 const char *name, *value;
11287 } configure_default_options[] = $configure_default_options;
11290 gcc_BASEVER=`cat $srcdir/BASE-VER`
11291 gcc_DEVPHASE=`cat $srcdir/DEV-PHASE`
11292 gcc_DATESTAMP=`cat $srcdir/DATESTAMP`
11293 if test -f $srcdir/REVISION ; then
11294 gcc_REVISION=`cat $srcdir/REVISION`
11295 else
11296 gcc_REVISION=""
11298 cat > plugin-version.h <<EOF
11299 #include "configargs.h"
11301 #define GCCPLUGIN_VERSION_MAJOR `echo $gcc_BASEVER | sed -e 's/^\([0-9]*\).*$/\1/'`
11302 #define GCCPLUGIN_VERSION_MINOR `echo $gcc_BASEVER | sed -e 's/^[0-9]*\.\([0-9]*\).*$/\1/'`
11303 #define GCCPLUGIN_VERSION_PATCHLEVEL `echo $gcc_BASEVER | sed -e 's/^[0-9]*\.[0-9]*\.\([0-9]*\)$/\1/'`
11304 #define GCCPLUGIN_VERSION (GCCPLUGIN_VERSION_MAJOR*1000 + GCCPLUGIN_VERSION_MINOR)
11306 static char basever[] = "$gcc_BASEVER";
11307 static char datestamp[] = "$gcc_DATESTAMP";
11308 static char devphase[] = "$gcc_DEVPHASE";
11309 static char revision[] = "$gcc_REVISION";
11311 /* FIXME plugins: We should make the version information more precise.
11312 One way to do is to add a checksum. */
11314 static struct plugin_gcc_version gcc_version = {basever, datestamp,
11315 devphase, revision,
11316 configuration_arguments};
11319 # Internationalization
11320 # If we haven't got the data from the intl directory,
11321 # assume NLS is disabled.
11322 USE_NLS=no
11323 LIBINTL=
11324 LIBINTL_DEP=
11325 INCINTL=
11326 XGETTEXT=
11327 GMSGFMT=
11328 POSUB=
11330 if test -f ../intl/config.intl; then
11331 . ../intl/config.intl
11333 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether NLS is requested" >&5
11334 $as_echo_n "checking whether NLS is requested... " >&6; }
11335 if test x"$USE_NLS" != xyes; then
11336 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11337 $as_echo "no" >&6; }
11338 else
11339 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11340 $as_echo "yes" >&6; }
11342 $as_echo "#define ENABLE_NLS 1" >>confdefs.h
11345 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for catalogs to be installed" >&5
11346 $as_echo_n "checking for catalogs to be installed... " >&6; }
11347 # Look for .po and .gmo files in the source directory.
11348 CATALOGS=
11349 XLINGUAS=
11350 for cat in $srcdir/po/*.gmo $srcdir/po/*.po; do
11351 # If there aren't any .gmo files the shell will give us the
11352 # literal string "../path/to/srcdir/po/*.gmo" which has to be
11353 # weeded out.
11354 case "$cat" in *\**)
11355 continue;;
11356 esac
11357 # The quadruple backslash is collapsed to a double backslash
11358 # by the backticks, then collapsed again by the double quotes,
11359 # leaving us with one backslash in the sed expression (right
11360 # before the dot that mustn't act as a wildcard).
11361 cat=`echo $cat | sed -e "s!$srcdir/po/!!" -e "s!\\\\.po!.gmo!"`
11362 lang=`echo $cat | sed -e "s!\\\\.gmo!!"`
11363 # The user is allowed to set LINGUAS to a list of languages to
11364 # install catalogs for. If it's empty that means "all of them."
11365 if test "x$LINGUAS" = x; then
11366 CATALOGS="$CATALOGS $cat"
11367 XLINGUAS="$XLINGUAS $lang"
11368 else
11369 case "$LINGUAS" in *$lang*)
11370 CATALOGS="$CATALOGS $cat"
11371 XLINGUAS="$XLINGUAS $lang"
11373 esac
11375 done
11376 LINGUAS="$XLINGUAS"
11377 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LINGUAS" >&5
11378 $as_echo "$LINGUAS" >&6; }
11381 DATADIRNAME=share
11383 INSTOBJEXT=.mo
11385 GENCAT=gencat
11387 CATOBJEXT=.gmo
11391 # If LIBINTL contains LIBICONV, then clear LIBICONV so we don't get
11392 # -liconv on the link line twice.
11393 case "$LIBINTL" in *$LIBICONV*)
11394 LIBICONV= ;;
11395 esac
11397 # Check whether --enable-secureplt was given.
11398 if test "${enable_secureplt+set}" = set; then :
11399 enableval=$enable_secureplt;
11403 # Check whether --enable-leading-mingw64-underscores was given.
11404 if test "${enable_leading_mingw64_underscores+set}" = set; then :
11405 enableval=$enable_leading_mingw64_underscores;
11408 if test x"$enable_leading_mingw64_underscores" = xyes ; then :
11410 $as_echo "#define USE_MINGW64_LEADING_UNDERSCORES 1" >>confdefs.h
11414 # Check whether --enable-cld was given.
11415 if test "${enable_cld+set}" = set; then :
11416 enableval=$enable_cld;
11417 else
11418 enable_cld=no
11422 # Check whether --enable-frame-pointer was given.
11423 if test "${enable_frame_pointer+set}" = set; then :
11424 enableval=$enable_frame_pointer;
11425 else
11427 case $target_os in
11428 linux* | darwin[8912]*)
11429 # Enable -fomit-frame-pointer by default for Linux and Darwin with
11430 # DWARF2.
11431 enable_frame_pointer=no
11434 enable_frame_pointer=yes
11436 esac
11441 # Windows32 Registry support for specifying GCC installation paths.
11442 # Check whether --enable-win32-registry was given.
11443 if test "${enable_win32_registry+set}" = set; then :
11444 enableval=$enable_win32_registry;
11448 case $host_os in
11449 win32 | pe | cygwin* | mingw32* | uwin*)
11450 if test "x$enable_win32_registry" != xno; then
11451 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing RegOpenKeyExA" >&5
11452 $as_echo_n "checking for library containing RegOpenKeyExA... " >&6; }
11453 if test "${ac_cv_search_RegOpenKeyExA+set}" = set; then :
11454 $as_echo_n "(cached) " >&6
11455 else
11456 ac_func_search_save_LIBS=$LIBS
11457 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11458 /* end confdefs.h. */
11460 /* Override any GCC internal prototype to avoid an error.
11461 Use char because int might match the return type of a GCC
11462 builtin and then its argument prototype would still apply. */
11463 #ifdef __cplusplus
11464 extern "C"
11465 #endif
11466 char RegOpenKeyExA ();
11468 main ()
11470 return RegOpenKeyExA ();
11472 return 0;
11474 _ACEOF
11475 for ac_lib in '' advapi32; do
11476 if test -z "$ac_lib"; then
11477 ac_res="none required"
11478 else
11479 ac_res=-l$ac_lib
11480 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
11482 if ac_fn_c_try_link "$LINENO"; then :
11483 ac_cv_search_RegOpenKeyExA=$ac_res
11485 rm -f core conftest.err conftest.$ac_objext \
11486 conftest$ac_exeext
11487 if test "${ac_cv_search_RegOpenKeyExA+set}" = set; then :
11488 break
11490 done
11491 if test "${ac_cv_search_RegOpenKeyExA+set}" = set; then :
11493 else
11494 ac_cv_search_RegOpenKeyExA=no
11496 rm conftest.$ac_ext
11497 LIBS=$ac_func_search_save_LIBS
11499 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_RegOpenKeyExA" >&5
11500 $as_echo "$ac_cv_search_RegOpenKeyExA" >&6; }
11501 ac_res=$ac_cv_search_RegOpenKeyExA
11502 if test "$ac_res" != no; then :
11503 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
11505 else
11506 enable_win32_registry=no
11511 if test "x$enable_win32_registry" != xno; then
11513 $as_echo "#define ENABLE_WIN32_REGISTRY 1" >>confdefs.h
11516 if test "x$enable_win32_registry" != xyes \
11517 && test "x$enable_win32_registry" != x; then
11519 cat >>confdefs.h <<_ACEOF
11520 #define WIN32_REGISTRY_KEY "$enable_win32_registry"
11521 _ACEOF
11526 esac
11528 # Get an absolute path to the GCC top-level source directory
11529 holddir=`${PWDCMD-pwd}`
11530 cd $srcdir
11531 topdir=`${PWDCMD-pwd}`
11532 cd $holddir
11534 # Conditionalize the makefile for this host machine.
11535 xmake_file=
11536 for f in ${host_xmake_file}
11538 if test -f ${srcdir}/config/$f
11539 then
11540 xmake_file="${xmake_file} \$(srcdir)/config/$f"
11542 done
11544 # Conditionalize the makefile for this target machine.
11545 tmake_file_=
11546 for f in ${tmake_file}
11548 if test -f ${srcdir}/config/$f
11549 then
11550 tmake_file_="${tmake_file_} \$(srcdir)/config/$f"
11552 done
11553 tmake_file="${tmake_file_}"
11555 out_object_file=`basename $out_file .c`.o
11556 common_out_object_file=`basename $common_out_file .c`.o
11558 tm_file_list="options.h"
11559 tm_include_list="options.h insn-constants.h"
11560 for f in $tm_file; do
11561 case $f in
11562 ./* )
11563 f=`echo $f | sed 's/^..//'`
11564 tm_file_list="${tm_file_list} $f"
11565 tm_include_list="${tm_include_list} $f"
11567 defaults.h )
11568 tm_file_list="${tm_file_list} \$(srcdir)/$f"
11569 tm_include_list="${tm_include_list} $f"
11572 tm_file_list="${tm_file_list} \$(srcdir)/config/$f"
11573 tm_include_list="${tm_include_list} config/$f"
11575 esac
11576 done
11578 tm_p_file_list=
11579 tm_p_include_list=
11580 for f in $tm_p_file; do
11581 case $f in
11582 tm-preds.h )
11583 tm_p_file_list="${tm_p_file_list} $f"
11584 tm_p_include_list="${tm_p_include_list} $f"
11587 tm_p_file_list="${tm_p_file_list} \$(srcdir)/config/$f"
11588 tm_p_include_list="${tm_p_include_list} config/$f"
11589 esac
11590 done
11592 xm_file_list=
11593 xm_include_list=
11594 for f in $xm_file; do
11595 case $f in
11596 ansidecl.h )
11597 xm_file_list="${xm_file_list} \$(srcdir)/../include/$f"
11598 xm_include_list="${xm_include_list} $f"
11600 auto-host.h )
11601 xm_file_list="${xm_file_list} $f"
11602 xm_include_list="${xm_include_list} $f"
11605 xm_file_list="${xm_file_list} \$(srcdir)/config/$f"
11606 xm_include_list="${xm_include_list} config/$f"
11608 esac
11609 done
11611 host_xm_file_list=
11612 host_xm_include_list=
11613 for f in $host_xm_file; do
11614 case $f in
11615 ansidecl.h )
11616 host_xm_file_list="${host_xm_file_list} \$(srcdir)/../include/$f"
11617 host_xm_include_list="${host_xm_include_list} $f"
11619 auto-host.h )
11620 host_xm_file_list="${host_xm_file_list} $f"
11621 host_xm_include_list="${host_xm_include_list} $f"
11624 host_xm_file_list="${host_xm_file_list} \$(srcdir)/config/$f"
11625 host_xm_include_list="${host_xm_include_list} config/$f"
11627 esac
11628 done
11630 build_xm_file_list=
11631 for f in $build_xm_file; do
11632 case $f in
11633 ansidecl.h )
11634 build_xm_file_list="${build_xm_file_list} \$(srcdir)/../include/$f"
11635 build_xm_include_list="${build_xm_include_list} $f"
11637 auto-build.h | auto-host.h )
11638 build_xm_file_list="${build_xm_file_list} $f"
11639 build_xm_include_list="${build_xm_include_list} $f"
11642 build_xm_file_list="${build_xm_file_list} \$(srcdir)/config/$f"
11643 build_xm_include_list="${build_xm_include_list} config/$f"
11645 esac
11646 done
11648 # Define macro CROSS_DIRECTORY_STRUCTURE in compilation if this is a
11649 # cross-compiler which does not use the native headers and libraries.
11650 # Also use all.cross instead of all.internal and adjust SYSTEM_HEADER_DIR.
11651 CROSS=
11652 ALL=all.internal
11653 SYSTEM_HEADER_DIR='$(NATIVE_SYSTEM_HEADER_DIR)'
11655 if test "x$with_build_sysroot" != x; then
11656 build_system_header_dir=$with_build_sysroot'$${sysroot_headers_suffix}$(NATIVE_SYSTEM_HEADER_DIR)'
11657 else
11658 # This value is used, even on a native system, because
11659 # CROSS_SYSTEM_HEADER_DIR is just
11660 # $(TARGET_SYSTEM_ROOT)$(NATIVE_SYSTEM_HEADER_DIR).
11661 build_system_header_dir='$(CROSS_SYSTEM_HEADER_DIR)'
11664 if test x$host != x$target
11665 then
11666 CROSS="-DCROSS_DIRECTORY_STRUCTURE"
11667 ALL=all.cross
11668 SYSTEM_HEADER_DIR=$build_system_header_dir
11669 case "$host","$target" in
11670 # Darwin crosses can use the host system's libraries and headers,
11671 # because of the fat library support. Of course, it must be the
11672 # same version of Darwin on both sides. Allow the user to
11673 # just say --target=foo-darwin without a version number to mean
11674 # "the version on this system".
11675 *-*-darwin*,*-*-darwin*)
11676 hostos=`echo $host | sed 's/.*-darwin/darwin/'`
11677 targetos=`echo $target | sed 's/.*-darwin/darwin/'`
11678 if test $hostos = $targetos -o $targetos = darwin ; then
11679 CROSS=
11680 SYSTEM_HEADER_DIR='$(NATIVE_SYSTEM_HEADER_DIR)'
11681 with_headers=yes
11685 i?86-*-*,x86_64-*-* \
11686 | powerpc*-*-*,powerpc64*-*-*)
11687 CROSS="$CROSS -DNATIVE_CROSS" ;;
11688 esac
11690 case $target in
11691 *-*-mingw*)
11692 if test "x$with_headers" = x; then
11693 with_headers=yes
11698 esac
11699 elif test "x$TARGET_SYSTEM_ROOT" != x; then
11700 SYSTEM_HEADER_DIR=$build_system_header_dir
11703 # If this is a cross-compiler that does not
11704 # have its own set of headers then define
11705 # inhibit_libc
11707 # If this is using newlib, without having the headers available now,
11708 # then define inhibit_libc in LIBGCC2_CFLAGS.
11709 # This prevents libgcc2 from containing any code which requires libc
11710 # support.
11711 : ${inhibit_libc=false}
11712 if { { test x$host != x$target && test "x$with_sysroot" = x ; } ||
11713 test x$with_newlib = xyes ; } &&
11714 { test "x$with_headers" = x || test "x$with_headers" = xno ; } ; then
11715 inhibit_libc=true
11719 # When building gcc with a cross-compiler, we need to adjust things so
11720 # that the generator programs are still built with the native compiler.
11721 # Also, we cannot run fixincludes.
11723 # These are the normal (build=host) settings:
11724 CC_FOR_BUILD='$(CC)'
11725 CXX_FOR_BUILD='$(CXX)'
11726 BUILD_CFLAGS='$(ALL_CFLAGS)'
11727 BUILD_CXXFLAGS='$(ALL_CXXFLAGS)'
11728 BUILD_LDFLAGS='$(LDFLAGS)'
11729 STMP_FIXINC=stmp-fixinc
11731 # And these apply if build != host, or we are generating coverage data
11732 if test x$build != x$host || test "x$coverage_flags" != x
11733 then
11734 BUILD_CFLAGS='$(INTERNAL_CFLAGS) $(T_CFLAGS) $(CFLAGS_FOR_BUILD)'
11735 BUILD_LDFLAGS='$(LDFLAGS_FOR_BUILD)'
11738 # Expand extra_headers to include complete path.
11739 # This substitutes for lots of t-* files.
11740 extra_headers_list=
11741 # Prepend $(srcdir)/config/${cpu_type}/ to every entry in extra_headers.
11742 for file in ${extra_headers} ; do
11743 extra_headers_list="${extra_headers_list} \$(srcdir)/config/${cpu_type}/${file}"
11744 done
11746 # If use_gcc_tgmath is set, append ginclude/tgmath.h.
11747 if test x"$use_gcc_tgmath" = xyes
11748 then extra_headers_list="${extra_headers_list} \$(srcdir)/ginclude/tgmath.h"
11751 # Define collect2 in Makefile.
11752 case $host_can_use_collect2 in
11753 no) collect2= ;;
11754 *) collect2='collect2$(exeext)' ;;
11755 esac
11758 # Add a definition of USE_COLLECT2 if system wants one.
11759 case $use_collect2 in
11760 no) use_collect2= ;;
11761 "") ;;
11763 host_xm_defines="${host_xm_defines} USE_COLLECT2"
11764 xm_defines="${xm_defines} USE_COLLECT2"
11765 case $host_can_use_collect2 in
11767 as_fn_error "collect2 is required but cannot be built on this system" "$LINENO" 5
11769 esac
11771 esac
11774 cat >>confdefs.h <<_ACEOF
11775 #define FRPLUGINSONAME "${host_function_reordering_plugin_soname}"
11776 _ACEOF
11780 cat >>confdefs.h <<_ACEOF
11781 #define LTOPLUGINSONAME "${host_lto_plugin_soname}"
11782 _ACEOF
11785 # ---------------------------
11786 # Assembler & linker features
11787 # ---------------------------
11789 # During stage 2, ld is actually gcc/collect-ld, which is a small script to
11790 # discern between when to use prev-ld/ld-new and when to use ld/ld-new.
11791 # However when ld-new is first executed from the build tree, libtool will
11792 # relink it as .libs/lt-ld-new, so that it can give it an RPATH that refers
11793 # to the build tree. While doing this we need to use the previous-stage
11794 # linker, or we have an infinite loop. The presence of a shell script as
11795 # ld/ld-new, and the fact that the script *uses ld itself*, is what confuses
11796 # the gcc/collect-ld script. So we need to know how libtool works, or
11797 # exec-tool will fail.
11800 case `pwd` in
11801 *\ * | *\ *)
11802 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&5
11803 $as_echo "$as_me: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&2;} ;;
11804 esac
11808 macro_version='2.2.7a'
11809 macro_revision='1.3134'
11823 ltmain="$ac_aux_dir/ltmain.sh"
11825 # Backslashify metacharacters that are still active within
11826 # double-quoted strings.
11827 sed_quote_subst='s/\(["`$\\]\)/\\\1/g'
11829 # Same as above, but do not quote variable references.
11830 double_quote_subst='s/\(["`\\]\)/\\\1/g'
11832 # Sed substitution to delay expansion of an escaped shell variable in a
11833 # double_quote_subst'ed string.
11834 delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
11836 # Sed substitution to delay expansion of an escaped single quote.
11837 delay_single_quote_subst='s/'\''/'\'\\\\\\\'\''/g'
11839 # Sed substitution to avoid accidental globbing in evaled expressions
11840 no_glob_subst='s/\*/\\\*/g'
11842 ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
11843 ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO
11844 ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO$ECHO
11846 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to print strings" >&5
11847 $as_echo_n "checking how to print strings... " >&6; }
11848 # Test print first, because it will be a builtin if present.
11849 if test "X`print -r -- -n 2>/dev/null`" = X-n && \
11850 test "X`print -r -- $ECHO 2>/dev/null`" = "X$ECHO"; then
11851 ECHO='print -r --'
11852 elif test "X`printf %s $ECHO 2>/dev/null`" = "X$ECHO"; then
11853 ECHO='printf %s\n'
11854 else
11855 # Use this function as a fallback that always works.
11856 func_fallback_echo ()
11858 eval 'cat <<_LTECHO_EOF
11860 _LTECHO_EOF'
11862 ECHO='func_fallback_echo'
11865 # func_echo_all arg...
11866 # Invoke $ECHO with all args, space-separated.
11867 func_echo_all ()
11869 $ECHO ""
11872 case "$ECHO" in
11873 printf*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: printf" >&5
11874 $as_echo "printf" >&6; } ;;
11875 print*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: print -r" >&5
11876 $as_echo "print -r" >&6; } ;;
11877 *) { $as_echo "$as_me:${as_lineno-$LINENO}: result: cat" >&5
11878 $as_echo "cat" >&6; } ;;
11879 esac
11894 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5
11895 $as_echo_n "checking for a sed that does not truncate output... " >&6; }
11896 if test "${ac_cv_path_SED+set}" = set; then :
11897 $as_echo_n "(cached) " >&6
11898 else
11899 ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
11900 for ac_i in 1 2 3 4 5 6 7; do
11901 ac_script="$ac_script$as_nl$ac_script"
11902 done
11903 echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed
11904 { ac_script=; unset ac_script;}
11905 if test -z "$SED"; then
11906 ac_path_SED_found=false
11907 # Loop through the user's path and test for each of PROGNAME-LIST
11908 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11909 for as_dir in $PATH
11911 IFS=$as_save_IFS
11912 test -z "$as_dir" && as_dir=.
11913 for ac_prog in sed gsed; do
11914 for ac_exec_ext in '' $ac_executable_extensions; do
11915 ac_path_SED="$as_dir/$ac_prog$ac_exec_ext"
11916 { test -f "$ac_path_SED" && $as_test_x "$ac_path_SED"; } || continue
11917 # Check for GNU ac_path_SED and select it if it is found.
11918 # Check for GNU $ac_path_SED
11919 case `"$ac_path_SED" --version 2>&1` in
11920 *GNU*)
11921 ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
11923 ac_count=0
11924 $as_echo_n 0123456789 >"conftest.in"
11925 while :
11927 cat "conftest.in" "conftest.in" >"conftest.tmp"
11928 mv "conftest.tmp" "conftest.in"
11929 cp "conftest.in" "conftest.nl"
11930 $as_echo '' >> "conftest.nl"
11931 "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break
11932 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
11933 as_fn_arith $ac_count + 1 && ac_count=$as_val
11934 if test $ac_count -gt ${ac_path_SED_max-0}; then
11935 # Best one so far, save it but keep looking for a better one
11936 ac_cv_path_SED="$ac_path_SED"
11937 ac_path_SED_max=$ac_count
11939 # 10*(2^10) chars as input seems more than enough
11940 test $ac_count -gt 10 && break
11941 done
11942 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
11943 esac
11945 $ac_path_SED_found && break 3
11946 done
11947 done
11948 done
11949 IFS=$as_save_IFS
11950 if test -z "$ac_cv_path_SED"; then
11951 as_fn_error "no acceptable sed could be found in \$PATH" "$LINENO" 5
11953 else
11954 ac_cv_path_SED=$SED
11958 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5
11959 $as_echo "$ac_cv_path_SED" >&6; }
11960 SED="$ac_cv_path_SED"
11961 rm -f conftest.sed
11963 test -z "$SED" && SED=sed
11964 Xsed="$SED -e 1s/^X//"
11976 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for fgrep" >&5
11977 $as_echo_n "checking for fgrep... " >&6; }
11978 if test "${ac_cv_path_FGREP+set}" = set; then :
11979 $as_echo_n "(cached) " >&6
11980 else
11981 if echo 'ab*c' | $GREP -F 'ab*c' >/dev/null 2>&1
11982 then ac_cv_path_FGREP="$GREP -F"
11983 else
11984 if test -z "$FGREP"; then
11985 ac_path_FGREP_found=false
11986 # Loop through the user's path and test for each of PROGNAME-LIST
11987 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11988 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
11990 IFS=$as_save_IFS
11991 test -z "$as_dir" && as_dir=.
11992 for ac_prog in fgrep; do
11993 for ac_exec_ext in '' $ac_executable_extensions; do
11994 ac_path_FGREP="$as_dir/$ac_prog$ac_exec_ext"
11995 { test -f "$ac_path_FGREP" && $as_test_x "$ac_path_FGREP"; } || continue
11996 # Check for GNU ac_path_FGREP and select it if it is found.
11997 # Check for GNU $ac_path_FGREP
11998 case `"$ac_path_FGREP" --version 2>&1` in
11999 *GNU*)
12000 ac_cv_path_FGREP="$ac_path_FGREP" ac_path_FGREP_found=:;;
12002 ac_count=0
12003 $as_echo_n 0123456789 >"conftest.in"
12004 while :
12006 cat "conftest.in" "conftest.in" >"conftest.tmp"
12007 mv "conftest.tmp" "conftest.in"
12008 cp "conftest.in" "conftest.nl"
12009 $as_echo 'FGREP' >> "conftest.nl"
12010 "$ac_path_FGREP" FGREP < "conftest.nl" >"conftest.out" 2>/dev/null || break
12011 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
12012 as_fn_arith $ac_count + 1 && ac_count=$as_val
12013 if test $ac_count -gt ${ac_path_FGREP_max-0}; then
12014 # Best one so far, save it but keep looking for a better one
12015 ac_cv_path_FGREP="$ac_path_FGREP"
12016 ac_path_FGREP_max=$ac_count
12018 # 10*(2^10) chars as input seems more than enough
12019 test $ac_count -gt 10 && break
12020 done
12021 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
12022 esac
12024 $ac_path_FGREP_found && break 3
12025 done
12026 done
12027 done
12028 IFS=$as_save_IFS
12029 if test -z "$ac_cv_path_FGREP"; then
12030 as_fn_error "no acceptable fgrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
12032 else
12033 ac_cv_path_FGREP=$FGREP
12038 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_FGREP" >&5
12039 $as_echo "$ac_cv_path_FGREP" >&6; }
12040 FGREP="$ac_cv_path_FGREP"
12043 test -z "$GREP" && GREP=grep
12063 # Check whether --with-gnu-ld was given.
12064 if test "${with_gnu_ld+set}" = set; then :
12065 withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
12066 else
12067 with_gnu_ld=no
12070 ac_prog=ld
12071 if test "$GCC" = yes; then
12072 # Check if gcc -print-prog-name=ld gives a path.
12073 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
12074 $as_echo_n "checking for ld used by $CC... " >&6; }
12075 case $host in
12076 *-*-mingw*)
12077 # gcc leaves a trailing carriage return which upsets mingw
12078 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
12080 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
12081 esac
12082 case $ac_prog in
12083 # Accept absolute paths.
12084 [\\/]* | ?:[\\/]*)
12085 re_direlt='/[^/][^/]*/\.\./'
12086 # Canonicalize the pathname of ld
12087 ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
12088 while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
12089 ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
12090 done
12091 test -z "$LD" && LD="$ac_prog"
12094 # If it fails, then pretend we aren't using GCC.
12095 ac_prog=ld
12098 # If it is relative, then search for the first ld in PATH.
12099 with_gnu_ld=unknown
12101 esac
12102 elif test "$with_gnu_ld" = yes; then
12103 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
12104 $as_echo_n "checking for GNU ld... " >&6; }
12105 else
12106 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
12107 $as_echo_n "checking for non-GNU ld... " >&6; }
12109 if test "${lt_cv_path_LD+set}" = set; then :
12110 $as_echo_n "(cached) " >&6
12111 else
12112 if test -z "$LD"; then
12113 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
12114 for ac_dir in $PATH; do
12115 IFS="$lt_save_ifs"
12116 test -z "$ac_dir" && ac_dir=.
12117 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
12118 lt_cv_path_LD="$ac_dir/$ac_prog"
12119 # Check to see if the program is GNU ld. I'd rather use --version,
12120 # but apparently some variants of GNU ld only accept -v.
12121 # Break only if it was the GNU/non-GNU ld that we prefer.
12122 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
12123 *GNU* | *'with BFD'*)
12124 test "$with_gnu_ld" != no && break
12127 test "$with_gnu_ld" != yes && break
12129 esac
12131 done
12132 IFS="$lt_save_ifs"
12133 else
12134 lt_cv_path_LD="$LD" # Let the user override the test with a path.
12138 LD="$lt_cv_path_LD"
12139 if test -n "$LD"; then
12140 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
12141 $as_echo "$LD" >&6; }
12142 else
12143 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12144 $as_echo "no" >&6; }
12146 test -z "$LD" && as_fn_error "no acceptable ld found in \$PATH" "$LINENO" 5
12147 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
12148 $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
12149 if test "${lt_cv_prog_gnu_ld+set}" = set; then :
12150 $as_echo_n "(cached) " >&6
12151 else
12152 # I'd rather use --version here, but apparently some GNU lds only accept -v.
12153 case `$LD -v 2>&1 </dev/null` in
12154 *GNU* | *'with BFD'*)
12155 lt_cv_prog_gnu_ld=yes
12158 lt_cv_prog_gnu_ld=no
12160 esac
12162 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
12163 $as_echo "$lt_cv_prog_gnu_ld" >&6; }
12164 with_gnu_ld=$lt_cv_prog_gnu_ld
12174 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for BSD- or MS-compatible name lister (nm)" >&5
12175 $as_echo_n "checking for BSD- or MS-compatible name lister (nm)... " >&6; }
12176 if test "${lt_cv_path_NM+set}" = set; then :
12177 $as_echo_n "(cached) " >&6
12178 else
12179 if test -n "$NM"; then
12180 # Let the user override the test.
12181 lt_cv_path_NM="$NM"
12182 else
12183 lt_nm_to_check="${ac_tool_prefix}nm"
12184 if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
12185 lt_nm_to_check="$lt_nm_to_check nm"
12187 for lt_tmp_nm in $lt_nm_to_check; do
12188 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
12189 for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
12190 IFS="$lt_save_ifs"
12191 test -z "$ac_dir" && ac_dir=.
12192 tmp_nm="$ac_dir/$lt_tmp_nm"
12193 if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
12194 # Check to see if the nm accepts a BSD-compat flag.
12195 # Adding the `sed 1q' prevents false positives on HP-UX, which says:
12196 # nm: unknown option "B" ignored
12197 # Tru64's nm complains that /dev/null is an invalid object file
12198 case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
12199 */dev/null* | *'Invalid file or object type'*)
12200 lt_cv_path_NM="$tmp_nm -B"
12201 break
12204 case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
12205 */dev/null*)
12206 lt_cv_path_NM="$tmp_nm -p"
12207 break
12210 lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
12211 continue # so that we can try to find one that supports BSD flags
12213 esac
12215 esac
12217 done
12218 IFS="$lt_save_ifs"
12219 done
12220 : ${lt_cv_path_NM=no}
12223 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_NM" >&5
12224 $as_echo "$lt_cv_path_NM" >&6; }
12225 if test "$lt_cv_path_NM" != "no"; then
12226 NM="$lt_cv_path_NM"
12227 else
12228 # Didn't find any BSD compatible name lister, look for dumpbin.
12229 if test -n "$DUMPBIN"; then :
12230 # Let the user override the test.
12231 else
12232 if test -n "$ac_tool_prefix"; then
12233 for ac_prog in dumpbin "link -dump"
12235 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
12236 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
12237 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12238 $as_echo_n "checking for $ac_word... " >&6; }
12239 if test "${ac_cv_prog_DUMPBIN+set}" = set; then :
12240 $as_echo_n "(cached) " >&6
12241 else
12242 if test -n "$DUMPBIN"; then
12243 ac_cv_prog_DUMPBIN="$DUMPBIN" # Let the user override the test.
12244 else
12245 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12246 for as_dir in $PATH
12248 IFS=$as_save_IFS
12249 test -z "$as_dir" && as_dir=.
12250 for ac_exec_ext in '' $ac_executable_extensions; do
12251 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12252 ac_cv_prog_DUMPBIN="$ac_tool_prefix$ac_prog"
12253 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12254 break 2
12256 done
12257 done
12258 IFS=$as_save_IFS
12262 DUMPBIN=$ac_cv_prog_DUMPBIN
12263 if test -n "$DUMPBIN"; then
12264 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DUMPBIN" >&5
12265 $as_echo "$DUMPBIN" >&6; }
12266 else
12267 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12268 $as_echo "no" >&6; }
12272 test -n "$DUMPBIN" && break
12273 done
12275 if test -z "$DUMPBIN"; then
12276 ac_ct_DUMPBIN=$DUMPBIN
12277 for ac_prog in dumpbin "link -dump"
12279 # Extract the first word of "$ac_prog", so it can be a program name with args.
12280 set dummy $ac_prog; ac_word=$2
12281 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12282 $as_echo_n "checking for $ac_word... " >&6; }
12283 if test "${ac_cv_prog_ac_ct_DUMPBIN+set}" = set; then :
12284 $as_echo_n "(cached) " >&6
12285 else
12286 if test -n "$ac_ct_DUMPBIN"; then
12287 ac_cv_prog_ac_ct_DUMPBIN="$ac_ct_DUMPBIN" # Let the user override the test.
12288 else
12289 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12290 for as_dir in $PATH
12292 IFS=$as_save_IFS
12293 test -z "$as_dir" && as_dir=.
12294 for ac_exec_ext in '' $ac_executable_extensions; do
12295 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12296 ac_cv_prog_ac_ct_DUMPBIN="$ac_prog"
12297 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12298 break 2
12300 done
12301 done
12302 IFS=$as_save_IFS
12306 ac_ct_DUMPBIN=$ac_cv_prog_ac_ct_DUMPBIN
12307 if test -n "$ac_ct_DUMPBIN"; then
12308 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DUMPBIN" >&5
12309 $as_echo "$ac_ct_DUMPBIN" >&6; }
12310 else
12311 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12312 $as_echo "no" >&6; }
12316 test -n "$ac_ct_DUMPBIN" && break
12317 done
12319 if test "x$ac_ct_DUMPBIN" = x; then
12320 DUMPBIN=":"
12321 else
12322 case $cross_compiling:$ac_tool_warned in
12323 yes:)
12324 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
12325 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
12326 ac_tool_warned=yes ;;
12327 esac
12328 DUMPBIN=$ac_ct_DUMPBIN
12332 case `$DUMPBIN -symbols /dev/null 2>&1 | sed '1q'` in
12333 *COFF*)
12334 DUMPBIN="$DUMPBIN -symbols"
12337 DUMPBIN=:
12339 esac
12342 if test "$DUMPBIN" != ":"; then
12343 NM="$DUMPBIN"
12346 test -z "$NM" && NM=nm
12353 { $as_echo "$as_me:${as_lineno-$LINENO}: checking the name lister ($NM) interface" >&5
12354 $as_echo_n "checking the name lister ($NM) interface... " >&6; }
12355 if test "${lt_cv_nm_interface+set}" = set; then :
12356 $as_echo_n "(cached) " >&6
12357 else
12358 lt_cv_nm_interface="BSD nm"
12359 echo "int some_variable = 0;" > conftest.$ac_ext
12360 (eval echo "\"\$as_me:$LINENO: $ac_compile\"" >&5)
12361 (eval "$ac_compile" 2>conftest.err)
12362 cat conftest.err >&5
12363 (eval echo "\"\$as_me:$LINENO: $NM \\\"conftest.$ac_objext\\\"\"" >&5)
12364 (eval "$NM \"conftest.$ac_objext\"" 2>conftest.err > conftest.out)
12365 cat conftest.err >&5
12366 (eval echo "\"\$as_me:$LINENO: output\"" >&5)
12367 cat conftest.out >&5
12368 if $GREP 'External.*some_variable' conftest.out > /dev/null; then
12369 lt_cv_nm_interface="MS dumpbin"
12371 rm -f conftest*
12373 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_nm_interface" >&5
12374 $as_echo "$lt_cv_nm_interface" >&6; }
12376 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5
12377 $as_echo_n "checking whether ln -s works... " >&6; }
12378 LN_S=$as_ln_s
12379 if test "$LN_S" = "ln -s"; then
12380 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12381 $as_echo "yes" >&6; }
12382 else
12383 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5
12384 $as_echo "no, using $LN_S" >&6; }
12387 # find the maximum length of command line arguments
12388 { $as_echo "$as_me:${as_lineno-$LINENO}: checking the maximum length of command line arguments" >&5
12389 $as_echo_n "checking the maximum length of command line arguments... " >&6; }
12390 if test "${lt_cv_sys_max_cmd_len+set}" = set; then :
12391 $as_echo_n "(cached) " >&6
12392 else
12394 teststring="ABCD"
12396 case $build_os in
12397 msdosdjgpp*)
12398 # On DJGPP, this test can blow up pretty badly due to problems in libc
12399 # (any single argument exceeding 2000 bytes causes a buffer overrun
12400 # during glob expansion). Even if it were fixed, the result of this
12401 # check would be larger than it should be.
12402 lt_cv_sys_max_cmd_len=12288; # 12K is about right
12405 gnu*)
12406 # Under GNU Hurd, this test is not required because there is
12407 # no limit to the length of command line arguments.
12408 # Libtool will interpret -1 as no limit whatsoever
12409 lt_cv_sys_max_cmd_len=-1;
12412 cygwin* | mingw* | cegcc*)
12413 # On Win9x/ME, this test blows up -- it succeeds, but takes
12414 # about 5 minutes as the teststring grows exponentially.
12415 # Worse, since 9x/ME are not pre-emptively multitasking,
12416 # you end up with a "frozen" computer, even though with patience
12417 # the test eventually succeeds (with a max line length of 256k).
12418 # Instead, let's just punt: use the minimum linelength reported by
12419 # all of the supported platforms: 8192 (on NT/2K/XP).
12420 lt_cv_sys_max_cmd_len=8192;
12423 mint*)
12424 # On MiNT this can take a long time and run out of memory.
12425 lt_cv_sys_max_cmd_len=8192;
12428 amigaos*)
12429 # On AmigaOS with pdksh, this test takes hours, literally.
12430 # So we just punt and use a minimum line length of 8192.
12431 lt_cv_sys_max_cmd_len=8192;
12434 netbsd* | freebsd* | openbsd* | darwin* | dragonfly*)
12435 # This has been around since 386BSD, at least. Likely further.
12436 if test -x /sbin/sysctl; then
12437 lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
12438 elif test -x /usr/sbin/sysctl; then
12439 lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
12440 else
12441 lt_cv_sys_max_cmd_len=65536 # usable default for all BSDs
12443 # And add a safety zone
12444 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
12445 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
12448 interix*)
12449 # We know the value 262144 and hardcode it with a safety zone (like BSD)
12450 lt_cv_sys_max_cmd_len=196608
12453 osf*)
12454 # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
12455 # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
12456 # nice to cause kernel panics so lets avoid the loop below.
12457 # First set a reasonable default.
12458 lt_cv_sys_max_cmd_len=16384
12460 if test -x /sbin/sysconfig; then
12461 case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
12462 *1*) lt_cv_sys_max_cmd_len=-1 ;;
12463 esac
12466 sco3.2v5*)
12467 lt_cv_sys_max_cmd_len=102400
12469 sysv5* | sco5v6* | sysv4.2uw2*)
12470 kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
12471 if test -n "$kargmax"; then
12472 lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[ ]//'`
12473 else
12474 lt_cv_sys_max_cmd_len=32768
12478 lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null`
12479 if test -n "$lt_cv_sys_max_cmd_len"; then
12480 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
12481 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
12482 else
12483 # Make teststring a little bigger before we do anything with it.
12484 # a 1K string should be a reasonable start.
12485 for i in 1 2 3 4 5 6 7 8 ; do
12486 teststring=$teststring$teststring
12487 done
12488 SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
12489 # If test is not a shell built-in, we'll probably end up computing a
12490 # maximum length that is only half of the actual maximum length, but
12491 # we can't tell.
12492 while { test "X"`func_fallback_echo "$teststring$teststring" 2>/dev/null` \
12493 = "X$teststring$teststring"; } >/dev/null 2>&1 &&
12494 test $i != 17 # 1/2 MB should be enough
12496 i=`expr $i + 1`
12497 teststring=$teststring$teststring
12498 done
12499 # Only check the string length outside the loop.
12500 lt_cv_sys_max_cmd_len=`expr "X$teststring" : ".*" 2>&1`
12501 teststring=
12502 # Add a significant safety factor because C++ compilers can tack on
12503 # massive amounts of additional arguments before passing them to the
12504 # linker. It appears as though 1/2 is a usable value.
12505 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
12508 esac
12512 if test -n $lt_cv_sys_max_cmd_len ; then
12513 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_max_cmd_len" >&5
12514 $as_echo "$lt_cv_sys_max_cmd_len" >&6; }
12515 else
12516 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none" >&5
12517 $as_echo "none" >&6; }
12519 max_cmd_len=$lt_cv_sys_max_cmd_len
12526 : ${CP="cp -f"}
12527 : ${MV="mv -f"}
12528 : ${RM="rm -f"}
12530 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands some XSI constructs" >&5
12531 $as_echo_n "checking whether the shell understands some XSI constructs... " >&6; }
12532 # Try some XSI features
12533 xsi_shell=no
12534 ( _lt_dummy="a/b/c"
12535 test "${_lt_dummy##*/},${_lt_dummy%/*},"${_lt_dummy%"$_lt_dummy"}, \
12536 = c,a/b,, \
12537 && eval 'test $(( 1 + 1 )) -eq 2 \
12538 && test "${#_lt_dummy}" -eq 5' ) >/dev/null 2>&1 \
12539 && xsi_shell=yes
12540 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xsi_shell" >&5
12541 $as_echo "$xsi_shell" >&6; }
12544 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands \"+=\"" >&5
12545 $as_echo_n "checking whether the shell understands \"+=\"... " >&6; }
12546 lt_shell_append=no
12547 ( foo=bar; set foo baz; eval "$1+=\$2" && test "$foo" = barbaz ) \
12548 >/dev/null 2>&1 \
12549 && lt_shell_append=yes
12550 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_shell_append" >&5
12551 $as_echo "$lt_shell_append" >&6; }
12554 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
12555 lt_unset=unset
12556 else
12557 lt_unset=false
12564 # test EBCDIC or ASCII
12565 case `echo X|tr X '\101'` in
12566 A) # ASCII based system
12567 # \n is not interpreted correctly by Solaris 8 /usr/ucb/tr
12568 lt_SP2NL='tr \040 \012'
12569 lt_NL2SP='tr \015\012 \040\040'
12571 *) # EBCDIC based system
12572 lt_SP2NL='tr \100 \n'
12573 lt_NL2SP='tr \r\n \100\100'
12575 esac
12585 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $LD option to reload object files" >&5
12586 $as_echo_n "checking for $LD option to reload object files... " >&6; }
12587 if test "${lt_cv_ld_reload_flag+set}" = set; then :
12588 $as_echo_n "(cached) " >&6
12589 else
12590 lt_cv_ld_reload_flag='-r'
12592 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_reload_flag" >&5
12593 $as_echo "$lt_cv_ld_reload_flag" >&6; }
12594 reload_flag=$lt_cv_ld_reload_flag
12595 case $reload_flag in
12596 "" | " "*) ;;
12597 *) reload_flag=" $reload_flag" ;;
12598 esac
12599 reload_cmds='$LD$reload_flag -o $output$reload_objs'
12600 case $host_os in
12601 darwin*)
12602 if test "$GCC" = yes; then
12603 reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r -o $output$reload_objs'
12604 else
12605 reload_cmds='$LD$reload_flag -o $output$reload_objs'
12608 esac
12618 if test -n "$ac_tool_prefix"; then
12619 # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args.
12620 set dummy ${ac_tool_prefix}objdump; ac_word=$2
12621 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12622 $as_echo_n "checking for $ac_word... " >&6; }
12623 if test "${ac_cv_prog_OBJDUMP+set}" = set; then :
12624 $as_echo_n "(cached) " >&6
12625 else
12626 if test -n "$OBJDUMP"; then
12627 ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
12628 else
12629 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12630 for as_dir in $PATH
12632 IFS=$as_save_IFS
12633 test -z "$as_dir" && as_dir=.
12634 for ac_exec_ext in '' $ac_executable_extensions; do
12635 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12636 ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump"
12637 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12638 break 2
12640 done
12641 done
12642 IFS=$as_save_IFS
12646 OBJDUMP=$ac_cv_prog_OBJDUMP
12647 if test -n "$OBJDUMP"; then
12648 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5
12649 $as_echo "$OBJDUMP" >&6; }
12650 else
12651 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12652 $as_echo "no" >&6; }
12657 if test -z "$ac_cv_prog_OBJDUMP"; then
12658 ac_ct_OBJDUMP=$OBJDUMP
12659 # Extract the first word of "objdump", so it can be a program name with args.
12660 set dummy objdump; ac_word=$2
12661 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12662 $as_echo_n "checking for $ac_word... " >&6; }
12663 if test "${ac_cv_prog_ac_ct_OBJDUMP+set}" = set; then :
12664 $as_echo_n "(cached) " >&6
12665 else
12666 if test -n "$ac_ct_OBJDUMP"; then
12667 ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test.
12668 else
12669 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12670 for as_dir in $PATH
12672 IFS=$as_save_IFS
12673 test -z "$as_dir" && as_dir=.
12674 for ac_exec_ext in '' $ac_executable_extensions; do
12675 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12676 ac_cv_prog_ac_ct_OBJDUMP="objdump"
12677 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12678 break 2
12680 done
12681 done
12682 IFS=$as_save_IFS
12686 ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP
12687 if test -n "$ac_ct_OBJDUMP"; then
12688 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5
12689 $as_echo "$ac_ct_OBJDUMP" >&6; }
12690 else
12691 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12692 $as_echo "no" >&6; }
12695 if test "x$ac_ct_OBJDUMP" = x; then
12696 OBJDUMP="false"
12697 else
12698 case $cross_compiling:$ac_tool_warned in
12699 yes:)
12700 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
12701 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
12702 ac_tool_warned=yes ;;
12703 esac
12704 OBJDUMP=$ac_ct_OBJDUMP
12706 else
12707 OBJDUMP="$ac_cv_prog_OBJDUMP"
12710 test -z "$OBJDUMP" && OBJDUMP=objdump
12720 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to recognize dependent libraries" >&5
12721 $as_echo_n "checking how to recognize dependent libraries... " >&6; }
12722 if test "${lt_cv_deplibs_check_method+set}" = set; then :
12723 $as_echo_n "(cached) " >&6
12724 else
12725 lt_cv_file_magic_cmd='$MAGIC_CMD'
12726 lt_cv_file_magic_test_file=
12727 lt_cv_deplibs_check_method='unknown'
12728 # Need to set the preceding variable on all platforms that support
12729 # interlibrary dependencies.
12730 # 'none' -- dependencies not supported.
12731 # `unknown' -- same as none, but documents that we really don't know.
12732 # 'pass_all' -- all dependencies passed with no checks.
12733 # 'test_compile' -- check by making test program.
12734 # 'file_magic [[regex]]' -- check by looking for files in library path
12735 # which responds to the $file_magic_cmd with a given extended regex.
12736 # If you have `file' or equivalent on your system and you're not sure
12737 # whether `pass_all' will *always* work, you probably want this one.
12739 case $host_os in
12740 aix[4-9]*)
12741 lt_cv_deplibs_check_method=pass_all
12744 beos*)
12745 lt_cv_deplibs_check_method=pass_all
12748 bsdi[45]*)
12749 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
12750 lt_cv_file_magic_cmd='/usr/bin/file -L'
12751 lt_cv_file_magic_test_file=/shlib/libc.so
12754 cygwin*)
12755 # func_win32_libid is a shell function defined in ltmain.sh
12756 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
12757 lt_cv_file_magic_cmd='func_win32_libid'
12760 mingw* | pw32*)
12761 # Base MSYS/MinGW do not provide the 'file' command needed by
12762 # func_win32_libid shell function, so use a weaker test based on 'objdump',
12763 # unless we find 'file', for example because we are cross-compiling.
12764 # func_win32_libid assumes BSD nm, so disallow it if using MS dumpbin.
12765 if ( test "$lt_cv_nm_interface" = "BSD nm" && file / ) >/dev/null 2>&1; then
12766 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
12767 lt_cv_file_magic_cmd='func_win32_libid'
12768 else
12769 lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?'
12770 lt_cv_file_magic_cmd='$OBJDUMP -f'
12774 cegcc*)
12775 # use the weaker test based on 'objdump'. See mingw*.
12776 lt_cv_deplibs_check_method='file_magic file format pe-arm-.*little(.*architecture: arm)?'
12777 lt_cv_file_magic_cmd='$OBJDUMP -f'
12780 darwin* | rhapsody*)
12781 lt_cv_deplibs_check_method=pass_all
12784 freebsd* | dragonfly*)
12785 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
12786 case $host_cpu in
12787 i*86 )
12788 # Not sure whether the presence of OpenBSD here was a mistake.
12789 # Let's accept both of them until this is cleared up.
12790 lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
12791 lt_cv_file_magic_cmd=/usr/bin/file
12792 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
12794 esac
12795 else
12796 lt_cv_deplibs_check_method=pass_all
12800 gnu*)
12801 lt_cv_deplibs_check_method=pass_all
12804 haiku*)
12805 lt_cv_deplibs_check_method=pass_all
12808 hpux10.20* | hpux11*)
12809 lt_cv_file_magic_cmd=/usr/bin/file
12810 case $host_cpu in
12811 ia64*)
12812 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
12813 lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
12815 hppa*64*)
12816 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]'
12817 lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
12820 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9]\.[0-9]) shared library'
12821 lt_cv_file_magic_test_file=/usr/lib/libc.sl
12823 esac
12826 interix[3-9]*)
12827 # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
12828 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
12831 irix5* | irix6* | nonstopux*)
12832 case $LD in
12833 *-32|*"-32 ") libmagic=32-bit;;
12834 *-n32|*"-n32 ") libmagic=N32;;
12835 *-64|*"-64 ") libmagic=64-bit;;
12836 *) libmagic=never-match;;
12837 esac
12838 lt_cv_deplibs_check_method=pass_all
12841 # This must be Linux ELF.
12842 linux* | k*bsd*-gnu | kopensolaris*-gnu)
12843 lt_cv_deplibs_check_method=pass_all
12846 netbsd*)
12847 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
12848 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
12849 else
12850 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
12854 newos6*)
12855 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
12856 lt_cv_file_magic_cmd=/usr/bin/file
12857 lt_cv_file_magic_test_file=/usr/lib/libnls.so
12860 *nto* | *qnx*)
12861 lt_cv_deplibs_check_method=pass_all
12864 openbsd*)
12865 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
12866 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
12867 else
12868 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
12872 osf3* | osf4* | osf5*)
12873 lt_cv_deplibs_check_method=pass_all
12876 rdos*)
12877 lt_cv_deplibs_check_method=pass_all
12880 solaris*)
12881 lt_cv_deplibs_check_method=pass_all
12884 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
12885 lt_cv_deplibs_check_method=pass_all
12888 sysv4 | sysv4.3*)
12889 case $host_vendor in
12890 motorola)
12891 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]'
12892 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
12894 ncr)
12895 lt_cv_deplibs_check_method=pass_all
12897 sequent)
12898 lt_cv_file_magic_cmd='/bin/file'
12899 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
12901 sni)
12902 lt_cv_file_magic_cmd='/bin/file'
12903 lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
12904 lt_cv_file_magic_test_file=/lib/libc.so
12906 siemens)
12907 lt_cv_deplibs_check_method=pass_all
12910 lt_cv_deplibs_check_method=pass_all
12912 esac
12915 tpf*)
12916 lt_cv_deplibs_check_method=pass_all
12918 esac
12921 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_deplibs_check_method" >&5
12922 $as_echo "$lt_cv_deplibs_check_method" >&6; }
12923 file_magic_cmd=$lt_cv_file_magic_cmd
12924 deplibs_check_method=$lt_cv_deplibs_check_method
12925 test -z "$deplibs_check_method" && deplibs_check_method=unknown
12938 if test -n "$ac_tool_prefix"; then
12939 # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
12940 set dummy ${ac_tool_prefix}ar; ac_word=$2
12941 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12942 $as_echo_n "checking for $ac_word... " >&6; }
12943 if test "${ac_cv_prog_AR+set}" = set; then :
12944 $as_echo_n "(cached) " >&6
12945 else
12946 if test -n "$AR"; then
12947 ac_cv_prog_AR="$AR" # Let the user override the test.
12948 else
12949 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12950 for as_dir in $PATH
12952 IFS=$as_save_IFS
12953 test -z "$as_dir" && as_dir=.
12954 for ac_exec_ext in '' $ac_executable_extensions; do
12955 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12956 ac_cv_prog_AR="${ac_tool_prefix}ar"
12957 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12958 break 2
12960 done
12961 done
12962 IFS=$as_save_IFS
12966 AR=$ac_cv_prog_AR
12967 if test -n "$AR"; then
12968 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
12969 $as_echo "$AR" >&6; }
12970 else
12971 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12972 $as_echo "no" >&6; }
12977 if test -z "$ac_cv_prog_AR"; then
12978 ac_ct_AR=$AR
12979 # Extract the first word of "ar", so it can be a program name with args.
12980 set dummy ar; ac_word=$2
12981 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12982 $as_echo_n "checking for $ac_word... " >&6; }
12983 if test "${ac_cv_prog_ac_ct_AR+set}" = set; then :
12984 $as_echo_n "(cached) " >&6
12985 else
12986 if test -n "$ac_ct_AR"; then
12987 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
12988 else
12989 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12990 for as_dir in $PATH
12992 IFS=$as_save_IFS
12993 test -z "$as_dir" && as_dir=.
12994 for ac_exec_ext in '' $ac_executable_extensions; do
12995 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12996 ac_cv_prog_ac_ct_AR="ar"
12997 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12998 break 2
13000 done
13001 done
13002 IFS=$as_save_IFS
13006 ac_ct_AR=$ac_cv_prog_ac_ct_AR
13007 if test -n "$ac_ct_AR"; then
13008 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5
13009 $as_echo "$ac_ct_AR" >&6; }
13010 else
13011 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13012 $as_echo "no" >&6; }
13015 if test "x$ac_ct_AR" = x; then
13016 AR="false"
13017 else
13018 case $cross_compiling:$ac_tool_warned in
13019 yes:)
13020 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
13021 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
13022 ac_tool_warned=yes ;;
13023 esac
13024 AR=$ac_ct_AR
13026 else
13027 AR="$ac_cv_prog_AR"
13030 test -z "$AR" && AR=ar
13031 test -z "$AR_FLAGS" && AR_FLAGS=cru
13043 if test -n "$ac_tool_prefix"; then
13044 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
13045 set dummy ${ac_tool_prefix}strip; ac_word=$2
13046 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13047 $as_echo_n "checking for $ac_word... " >&6; }
13048 if test "${ac_cv_prog_STRIP+set}" = set; then :
13049 $as_echo_n "(cached) " >&6
13050 else
13051 if test -n "$STRIP"; then
13052 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
13053 else
13054 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13055 for as_dir in $PATH
13057 IFS=$as_save_IFS
13058 test -z "$as_dir" && as_dir=.
13059 for ac_exec_ext in '' $ac_executable_extensions; do
13060 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
13061 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
13062 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13063 break 2
13065 done
13066 done
13067 IFS=$as_save_IFS
13071 STRIP=$ac_cv_prog_STRIP
13072 if test -n "$STRIP"; then
13073 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
13074 $as_echo "$STRIP" >&6; }
13075 else
13076 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13077 $as_echo "no" >&6; }
13082 if test -z "$ac_cv_prog_STRIP"; then
13083 ac_ct_STRIP=$STRIP
13084 # Extract the first word of "strip", so it can be a program name with args.
13085 set dummy strip; ac_word=$2
13086 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13087 $as_echo_n "checking for $ac_word... " >&6; }
13088 if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then :
13089 $as_echo_n "(cached) " >&6
13090 else
13091 if test -n "$ac_ct_STRIP"; then
13092 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
13093 else
13094 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13095 for as_dir in $PATH
13097 IFS=$as_save_IFS
13098 test -z "$as_dir" && as_dir=.
13099 for ac_exec_ext in '' $ac_executable_extensions; do
13100 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
13101 ac_cv_prog_ac_ct_STRIP="strip"
13102 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13103 break 2
13105 done
13106 done
13107 IFS=$as_save_IFS
13111 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
13112 if test -n "$ac_ct_STRIP"; then
13113 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
13114 $as_echo "$ac_ct_STRIP" >&6; }
13115 else
13116 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13117 $as_echo "no" >&6; }
13120 if test "x$ac_ct_STRIP" = x; then
13121 STRIP=":"
13122 else
13123 case $cross_compiling:$ac_tool_warned in
13124 yes:)
13125 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
13126 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
13127 ac_tool_warned=yes ;;
13128 esac
13129 STRIP=$ac_ct_STRIP
13131 else
13132 STRIP="$ac_cv_prog_STRIP"
13135 test -z "$STRIP" && STRIP=:
13142 if test -n "$ac_tool_prefix"; then
13143 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
13144 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
13145 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13146 $as_echo_n "checking for $ac_word... " >&6; }
13147 if test "${ac_cv_prog_RANLIB+set}" = set; then :
13148 $as_echo_n "(cached) " >&6
13149 else
13150 if test -n "$RANLIB"; then
13151 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
13152 else
13153 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13154 for as_dir in $PATH
13156 IFS=$as_save_IFS
13157 test -z "$as_dir" && as_dir=.
13158 for ac_exec_ext in '' $ac_executable_extensions; do
13159 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
13160 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
13161 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13162 break 2
13164 done
13165 done
13166 IFS=$as_save_IFS
13170 RANLIB=$ac_cv_prog_RANLIB
13171 if test -n "$RANLIB"; then
13172 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
13173 $as_echo "$RANLIB" >&6; }
13174 else
13175 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13176 $as_echo "no" >&6; }
13181 if test -z "$ac_cv_prog_RANLIB"; then
13182 ac_ct_RANLIB=$RANLIB
13183 # Extract the first word of "ranlib", so it can be a program name with args.
13184 set dummy ranlib; ac_word=$2
13185 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13186 $as_echo_n "checking for $ac_word... " >&6; }
13187 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then :
13188 $as_echo_n "(cached) " >&6
13189 else
13190 if test -n "$ac_ct_RANLIB"; then
13191 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
13192 else
13193 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13194 for as_dir in $PATH
13196 IFS=$as_save_IFS
13197 test -z "$as_dir" && as_dir=.
13198 for ac_exec_ext in '' $ac_executable_extensions; do
13199 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
13200 ac_cv_prog_ac_ct_RANLIB="ranlib"
13201 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13202 break 2
13204 done
13205 done
13206 IFS=$as_save_IFS
13210 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
13211 if test -n "$ac_ct_RANLIB"; then
13212 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
13213 $as_echo "$ac_ct_RANLIB" >&6; }
13214 else
13215 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13216 $as_echo "no" >&6; }
13219 if test "x$ac_ct_RANLIB" = x; then
13220 RANLIB=":"
13221 else
13222 case $cross_compiling:$ac_tool_warned in
13223 yes:)
13224 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
13225 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
13226 ac_tool_warned=yes ;;
13227 esac
13228 RANLIB=$ac_ct_RANLIB
13230 else
13231 RANLIB="$ac_cv_prog_RANLIB"
13234 test -z "$RANLIB" && RANLIB=:
13241 # Determine commands to create old-style static archives.
13242 old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs'
13243 old_postinstall_cmds='chmod 644 $oldlib'
13244 old_postuninstall_cmds=
13246 if test -n "$RANLIB"; then
13247 case $host_os in
13248 openbsd*)
13249 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$oldlib"
13252 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$oldlib"
13254 esac
13255 old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib"
13258 case $host_os in
13259 darwin*)
13260 lock_old_archive_extraction=yes ;;
13262 lock_old_archive_extraction=no ;;
13263 esac
13303 # If no C compiler was specified, use CC.
13304 LTCC=${LTCC-"$CC"}
13306 # If no C compiler flags were specified, use CFLAGS.
13307 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
13309 # Allow CC to be a program name with arguments.
13310 compiler=$CC
13313 # Check for command to grab the raw symbol name followed by C symbol from nm.
13314 { $as_echo "$as_me:${as_lineno-$LINENO}: checking command to parse $NM output from $compiler object" >&5
13315 $as_echo_n "checking command to parse $NM output from $compiler object... " >&6; }
13316 if test "${lt_cv_sys_global_symbol_pipe+set}" = set; then :
13317 $as_echo_n "(cached) " >&6
13318 else
13320 # These are sane defaults that work on at least a few old systems.
13321 # [They come from Ultrix. What could be older than Ultrix?!! ;)]
13323 # Character class describing NM global symbol codes.
13324 symcode='[BCDEGRST]'
13326 # Regexp to match symbols that can be accessed directly from C.
13327 sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
13329 # Define system-specific variables.
13330 case $host_os in
13331 aix*)
13332 symcode='[BCDT]'
13334 cygwin* | mingw* | pw32* | cegcc*)
13335 symcode='[ABCDGISTW]'
13337 hpux*)
13338 if test "$host_cpu" = ia64; then
13339 symcode='[ABCDEGRST]'
13342 irix* | nonstopux*)
13343 symcode='[BCDEGRST]'
13345 osf*)
13346 symcode='[BCDEGQRST]'
13348 solaris*)
13349 symcode='[BDRT]'
13351 sco3.2v5*)
13352 symcode='[DT]'
13354 sysv4.2uw2*)
13355 symcode='[DT]'
13357 sysv5* | sco5v6* | unixware* | OpenUNIX*)
13358 symcode='[ABDT]'
13360 sysv4)
13361 symcode='[DFNSTU]'
13363 esac
13365 # If we're using GNU nm, then use its standard symbol codes.
13366 case `$NM -V 2>&1` in
13367 *GNU* | *'with BFD'*)
13368 symcode='[ABCDGIRSTW]' ;;
13369 esac
13371 # Transform an extracted symbol line into a proper C declaration.
13372 # Some systems (esp. on ia64) link data and code symbols differently,
13373 # so use this general approach.
13374 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
13376 # Transform an extracted symbol line into symbol name and symbol address
13377 lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([^ ]*\) $/ {\\\"\1\\\", (void *) 0},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/ {\"\2\", (void *) \&\2},/p'"
13378 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'"
13380 # Handle CRLF in mingw tool chain
13381 opt_cr=
13382 case $build_os in
13383 mingw*)
13384 opt_cr=`$ECHO 'x\{0,1\}' | tr x '\015'` # option cr in regexp
13386 esac
13388 # Try without a prefix underscore, then with it.
13389 for ac_symprfx in "" "_"; do
13391 # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
13392 symxfrm="\\1 $ac_symprfx\\2 \\2"
13394 # Write the raw and C identifiers.
13395 if test "$lt_cv_nm_interface" = "MS dumpbin"; then
13396 # Fake it for dumpbin and say T for any non-static function
13397 # and D for any global variable.
13398 # Also find C++ and __fastcall symbols from MSVC++,
13399 # which start with @ or ?.
13400 lt_cv_sys_global_symbol_pipe="$AWK '"\
13401 " {last_section=section; section=\$ 3};"\
13402 " /Section length .*#relocs.*(pick any)/{hide[last_section]=1};"\
13403 " \$ 0!~/External *\|/{next};"\
13404 " / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};"\
13405 " {if(hide[section]) next};"\
13406 " {f=0}; \$ 0~/\(\).*\|/{f=1}; {printf f ? \"T \" : \"D \"};"\
13407 " {split(\$ 0, a, /\||\r/); split(a[2], s)};"\
13408 " s[1]~/^[@?]/{print s[1], s[1]; next};"\
13409 " s[1]~prfx {split(s[1],t,\"@\"); print t[1], substr(t[1],length(prfx))}"\
13410 " ' prfx=^$ac_symprfx"
13411 else
13412 lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
13415 # Check to see that the pipe works correctly.
13416 pipe_works=no
13418 rm -f conftest*
13419 cat > conftest.$ac_ext <<_LT_EOF
13420 #ifdef __cplusplus
13421 extern "C" {
13422 #endif
13423 char nm_test_var;
13424 void nm_test_func(void);
13425 void nm_test_func(void){}
13426 #ifdef __cplusplus
13428 #endif
13429 int main(){nm_test_var='a';nm_test_func();return(0);}
13430 _LT_EOF
13432 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
13433 (eval $ac_compile) 2>&5
13434 ac_status=$?
13435 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
13436 test $ac_status = 0; }; then
13437 # Now try to grab the symbols.
13438 nlist=conftest.nm
13439 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist\""; } >&5
13440 (eval $NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist) 2>&5
13441 ac_status=$?
13442 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
13443 test $ac_status = 0; } && test -s "$nlist"; then
13444 # Try sorting and uniquifying the output.
13445 if sort "$nlist" | uniq > "$nlist"T; then
13446 mv -f "$nlist"T "$nlist"
13447 else
13448 rm -f "$nlist"T
13451 # Make sure that we snagged all the symbols we need.
13452 if $GREP ' nm_test_var$' "$nlist" >/dev/null; then
13453 if $GREP ' nm_test_func$' "$nlist" >/dev/null; then
13454 cat <<_LT_EOF > conftest.$ac_ext
13455 #ifdef __cplusplus
13456 extern "C" {
13457 #endif
13459 _LT_EOF
13460 # Now generate the symbol file.
13461 eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | $GREP -v main >> conftest.$ac_ext'
13463 cat <<_LT_EOF >> conftest.$ac_ext
13465 /* The mapping between symbol names and symbols. */
13466 const struct {
13467 const char *name;
13468 void *address;
13470 lt__PROGRAM__LTX_preloaded_symbols[] =
13472 { "@PROGRAM@", (void *) 0 },
13473 _LT_EOF
13474 $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/ {\"\2\", (void *) \&\2},/" < "$nlist" | $GREP -v main >> conftest.$ac_ext
13475 cat <<\_LT_EOF >> conftest.$ac_ext
13476 {0, (void *) 0}
13479 /* This works around a problem in FreeBSD linker */
13480 #ifdef FREEBSD_WORKAROUND
13481 static const void *lt_preloaded_setup() {
13482 return lt__PROGRAM__LTX_preloaded_symbols;
13484 #endif
13486 #ifdef __cplusplus
13488 #endif
13489 _LT_EOF
13490 # Now try linking the two files.
13491 mv conftest.$ac_objext conftstm.$ac_objext
13492 lt_save_LIBS="$LIBS"
13493 lt_save_CFLAGS="$CFLAGS"
13494 LIBS="conftstm.$ac_objext"
13495 CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
13496 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
13497 (eval $ac_link) 2>&5
13498 ac_status=$?
13499 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
13500 test $ac_status = 0; } && test -s conftest${ac_exeext}; then
13501 pipe_works=yes
13503 LIBS="$lt_save_LIBS"
13504 CFLAGS="$lt_save_CFLAGS"
13505 else
13506 echo "cannot find nm_test_func in $nlist" >&5
13508 else
13509 echo "cannot find nm_test_var in $nlist" >&5
13511 else
13512 echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
13514 else
13515 echo "$progname: failed program was:" >&5
13516 cat conftest.$ac_ext >&5
13518 rm -rf conftest* conftst*
13520 # Do not use the global_symbol_pipe unless it works.
13521 if test "$pipe_works" = yes; then
13522 break
13523 else
13524 lt_cv_sys_global_symbol_pipe=
13526 done
13530 if test -z "$lt_cv_sys_global_symbol_pipe"; then
13531 lt_cv_sys_global_symbol_to_cdecl=
13533 if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
13534 { $as_echo "$as_me:${as_lineno-$LINENO}: result: failed" >&5
13535 $as_echo "failed" >&6; }
13536 else
13537 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5
13538 $as_echo "ok" >&6; }
13562 # Check whether --enable-libtool-lock was given.
13563 if test "${enable_libtool_lock+set}" = set; then :
13564 enableval=$enable_libtool_lock;
13567 test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
13569 # Some flags need to be propagated to the compiler or linker for good
13570 # libtool support.
13571 case $host in
13572 ia64-*-hpux*)
13573 # Find out which ABI we are using.
13574 echo 'int i;' > conftest.$ac_ext
13575 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
13576 (eval $ac_compile) 2>&5
13577 ac_status=$?
13578 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
13579 test $ac_status = 0; }; then
13580 case `/usr/bin/file conftest.$ac_objext` in
13581 *ELF-32*)
13582 HPUX_IA64_MODE="32"
13584 *ELF-64*)
13585 HPUX_IA64_MODE="64"
13587 esac
13589 rm -rf conftest*
13591 *-*-irix6*)
13592 # Find out which ABI we are using.
13593 echo '#line '$LINENO' "configure"' > conftest.$ac_ext
13594 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
13595 (eval $ac_compile) 2>&5
13596 ac_status=$?
13597 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
13598 test $ac_status = 0; }; then
13599 if test "$lt_cv_prog_gnu_ld" = yes; then
13600 case `/usr/bin/file conftest.$ac_objext` in
13601 *32-bit*)
13602 LD="${LD-ld} -melf32bsmip"
13604 *N32*)
13605 LD="${LD-ld} -melf32bmipn32"
13607 *64-bit*)
13608 LD="${LD-ld} -melf64bmip"
13610 esac
13611 else
13612 case `/usr/bin/file conftest.$ac_objext` in
13613 *32-bit*)
13614 LD="${LD-ld} -32"
13616 *N32*)
13617 LD="${LD-ld} -n32"
13619 *64-bit*)
13620 LD="${LD-ld} -64"
13622 esac
13625 rm -rf conftest*
13628 x86_64-*kfreebsd*-gnu|x86_64-*linux*|powerpc*-*linux*| \
13629 s390*-*linux*|s390*-*tpf*|sparc*-*linux*)
13630 # Find out which ABI we are using.
13631 echo 'int i;' > conftest.$ac_ext
13632 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
13633 (eval $ac_compile) 2>&5
13634 ac_status=$?
13635 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
13636 test $ac_status = 0; }; then
13637 case `/usr/bin/file conftest.o` in
13638 *32-bit*)
13639 case $host in
13640 x86_64-*kfreebsd*-gnu)
13641 LD="${LD-ld} -m elf_i386_fbsd"
13643 x86_64-*linux*)
13644 case `/usr/bin/file conftest.o` in
13645 *x86-64*)
13646 LD="${LD-ld} -m elf32_x86_64"
13649 LD="${LD-ld} -m elf_i386"
13651 esac
13653 powerpc64le-*)
13654 LD="${LD-ld} -m elf32lppclinux"
13656 powerpc64-*)
13657 LD="${LD-ld} -m elf32ppclinux"
13659 s390x-*linux*)
13660 LD="${LD-ld} -m elf_s390"
13662 sparc64-*linux*)
13663 LD="${LD-ld} -m elf32_sparc"
13665 esac
13667 *64-bit*)
13668 case $host in
13669 x86_64-*kfreebsd*-gnu)
13670 LD="${LD-ld} -m elf_x86_64_fbsd"
13672 x86_64-*linux*)
13673 LD="${LD-ld} -m elf_x86_64"
13675 powerpcle-*)
13676 LD="${LD-ld} -m elf64lppc"
13678 powerpc-*)
13679 LD="${LD-ld} -m elf64ppc"
13681 s390*-*linux*|s390*-*tpf*)
13682 LD="${LD-ld} -m elf64_s390"
13684 sparc*-*linux*)
13685 LD="${LD-ld} -m elf64_sparc"
13687 esac
13689 esac
13691 rm -rf conftest*
13694 *-*-sco3.2v5*)
13695 # On SCO OpenServer 5, we need -belf to get full-featured binaries.
13696 SAVE_CFLAGS="$CFLAGS"
13697 CFLAGS="$CFLAGS -belf"
13698 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler needs -belf" >&5
13699 $as_echo_n "checking whether the C compiler needs -belf... " >&6; }
13700 if test "${lt_cv_cc_needs_belf+set}" = set; then :
13701 $as_echo_n "(cached) " >&6
13702 else
13703 ac_ext=c
13704 ac_cpp='$CPP $CPPFLAGS'
13705 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
13706 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13707 ac_compiler_gnu=$ac_cv_c_compiler_gnu
13709 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13710 /* end confdefs.h. */
13713 main ()
13717 return 0;
13719 _ACEOF
13720 if ac_fn_c_try_link "$LINENO"; then :
13721 lt_cv_cc_needs_belf=yes
13722 else
13723 lt_cv_cc_needs_belf=no
13725 rm -f core conftest.err conftest.$ac_objext \
13726 conftest$ac_exeext conftest.$ac_ext
13727 ac_ext=c
13728 ac_cpp='$CPP $CPPFLAGS'
13729 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
13730 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13731 ac_compiler_gnu=$ac_cv_c_compiler_gnu
13734 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_cc_needs_belf" >&5
13735 $as_echo "$lt_cv_cc_needs_belf" >&6; }
13736 if test x"$lt_cv_cc_needs_belf" != x"yes"; then
13737 # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
13738 CFLAGS="$SAVE_CFLAGS"
13741 sparc*-*solaris*)
13742 # Find out which ABI we are using.
13743 echo 'int i;' > conftest.$ac_ext
13744 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
13745 (eval $ac_compile) 2>&5
13746 ac_status=$?
13747 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
13748 test $ac_status = 0; }; then
13749 case `/usr/bin/file conftest.o` in
13750 *64-bit*)
13751 case $lt_cv_prog_gnu_ld in
13752 yes*) LD="${LD-ld} -m elf64_sparc" ;;
13754 if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then
13755 LD="${LD-ld} -64"
13758 esac
13760 esac
13762 rm -rf conftest*
13764 esac
13766 need_locks="$enable_libtool_lock"
13769 case $host_os in
13770 rhapsody* | darwin*)
13771 if test -n "$ac_tool_prefix"; then
13772 # Extract the first word of "${ac_tool_prefix}dsymutil", so it can be a program name with args.
13773 set dummy ${ac_tool_prefix}dsymutil; ac_word=$2
13774 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13775 $as_echo_n "checking for $ac_word... " >&6; }
13776 if test "${ac_cv_prog_DSYMUTIL+set}" = set; then :
13777 $as_echo_n "(cached) " >&6
13778 else
13779 if test -n "$DSYMUTIL"; then
13780 ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test.
13781 else
13782 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13783 for as_dir in $PATH
13785 IFS=$as_save_IFS
13786 test -z "$as_dir" && as_dir=.
13787 for ac_exec_ext in '' $ac_executable_extensions; do
13788 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
13789 ac_cv_prog_DSYMUTIL="${ac_tool_prefix}dsymutil"
13790 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13791 break 2
13793 done
13794 done
13795 IFS=$as_save_IFS
13799 DSYMUTIL=$ac_cv_prog_DSYMUTIL
13800 if test -n "$DSYMUTIL"; then
13801 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DSYMUTIL" >&5
13802 $as_echo "$DSYMUTIL" >&6; }
13803 else
13804 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13805 $as_echo "no" >&6; }
13810 if test -z "$ac_cv_prog_DSYMUTIL"; then
13811 ac_ct_DSYMUTIL=$DSYMUTIL
13812 # Extract the first word of "dsymutil", so it can be a program name with args.
13813 set dummy dsymutil; ac_word=$2
13814 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13815 $as_echo_n "checking for $ac_word... " >&6; }
13816 if test "${ac_cv_prog_ac_ct_DSYMUTIL+set}" = set; then :
13817 $as_echo_n "(cached) " >&6
13818 else
13819 if test -n "$ac_ct_DSYMUTIL"; then
13820 ac_cv_prog_ac_ct_DSYMUTIL="$ac_ct_DSYMUTIL" # Let the user override the test.
13821 else
13822 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13823 for as_dir in $PATH
13825 IFS=$as_save_IFS
13826 test -z "$as_dir" && as_dir=.
13827 for ac_exec_ext in '' $ac_executable_extensions; do
13828 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
13829 ac_cv_prog_ac_ct_DSYMUTIL="dsymutil"
13830 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13831 break 2
13833 done
13834 done
13835 IFS=$as_save_IFS
13839 ac_ct_DSYMUTIL=$ac_cv_prog_ac_ct_DSYMUTIL
13840 if test -n "$ac_ct_DSYMUTIL"; then
13841 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DSYMUTIL" >&5
13842 $as_echo "$ac_ct_DSYMUTIL" >&6; }
13843 else
13844 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13845 $as_echo "no" >&6; }
13848 if test "x$ac_ct_DSYMUTIL" = x; then
13849 DSYMUTIL=":"
13850 else
13851 case $cross_compiling:$ac_tool_warned in
13852 yes:)
13853 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
13854 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
13855 ac_tool_warned=yes ;;
13856 esac
13857 DSYMUTIL=$ac_ct_DSYMUTIL
13859 else
13860 DSYMUTIL="$ac_cv_prog_DSYMUTIL"
13863 if test -n "$ac_tool_prefix"; then
13864 # Extract the first word of "${ac_tool_prefix}nmedit", so it can be a program name with args.
13865 set dummy ${ac_tool_prefix}nmedit; ac_word=$2
13866 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13867 $as_echo_n "checking for $ac_word... " >&6; }
13868 if test "${ac_cv_prog_NMEDIT+set}" = set; then :
13869 $as_echo_n "(cached) " >&6
13870 else
13871 if test -n "$NMEDIT"; then
13872 ac_cv_prog_NMEDIT="$NMEDIT" # Let the user override the test.
13873 else
13874 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13875 for as_dir in $PATH
13877 IFS=$as_save_IFS
13878 test -z "$as_dir" && as_dir=.
13879 for ac_exec_ext in '' $ac_executable_extensions; do
13880 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
13881 ac_cv_prog_NMEDIT="${ac_tool_prefix}nmedit"
13882 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13883 break 2
13885 done
13886 done
13887 IFS=$as_save_IFS
13891 NMEDIT=$ac_cv_prog_NMEDIT
13892 if test -n "$NMEDIT"; then
13893 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NMEDIT" >&5
13894 $as_echo "$NMEDIT" >&6; }
13895 else
13896 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13897 $as_echo "no" >&6; }
13902 if test -z "$ac_cv_prog_NMEDIT"; then
13903 ac_ct_NMEDIT=$NMEDIT
13904 # Extract the first word of "nmedit", so it can be a program name with args.
13905 set dummy nmedit; ac_word=$2
13906 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13907 $as_echo_n "checking for $ac_word... " >&6; }
13908 if test "${ac_cv_prog_ac_ct_NMEDIT+set}" = set; then :
13909 $as_echo_n "(cached) " >&6
13910 else
13911 if test -n "$ac_ct_NMEDIT"; then
13912 ac_cv_prog_ac_ct_NMEDIT="$ac_ct_NMEDIT" # Let the user override the test.
13913 else
13914 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13915 for as_dir in $PATH
13917 IFS=$as_save_IFS
13918 test -z "$as_dir" && as_dir=.
13919 for ac_exec_ext in '' $ac_executable_extensions; do
13920 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
13921 ac_cv_prog_ac_ct_NMEDIT="nmedit"
13922 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13923 break 2
13925 done
13926 done
13927 IFS=$as_save_IFS
13931 ac_ct_NMEDIT=$ac_cv_prog_ac_ct_NMEDIT
13932 if test -n "$ac_ct_NMEDIT"; then
13933 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_NMEDIT" >&5
13934 $as_echo "$ac_ct_NMEDIT" >&6; }
13935 else
13936 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13937 $as_echo "no" >&6; }
13940 if test "x$ac_ct_NMEDIT" = x; then
13941 NMEDIT=":"
13942 else
13943 case $cross_compiling:$ac_tool_warned in
13944 yes:)
13945 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
13946 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
13947 ac_tool_warned=yes ;;
13948 esac
13949 NMEDIT=$ac_ct_NMEDIT
13951 else
13952 NMEDIT="$ac_cv_prog_NMEDIT"
13955 if test -n "$ac_tool_prefix"; then
13956 # Extract the first word of "${ac_tool_prefix}lipo", so it can be a program name with args.
13957 set dummy ${ac_tool_prefix}lipo; ac_word=$2
13958 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13959 $as_echo_n "checking for $ac_word... " >&6; }
13960 if test "${ac_cv_prog_LIPO+set}" = set; then :
13961 $as_echo_n "(cached) " >&6
13962 else
13963 if test -n "$LIPO"; then
13964 ac_cv_prog_LIPO="$LIPO" # Let the user override the test.
13965 else
13966 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13967 for as_dir in $PATH
13969 IFS=$as_save_IFS
13970 test -z "$as_dir" && as_dir=.
13971 for ac_exec_ext in '' $ac_executable_extensions; do
13972 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
13973 ac_cv_prog_LIPO="${ac_tool_prefix}lipo"
13974 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13975 break 2
13977 done
13978 done
13979 IFS=$as_save_IFS
13983 LIPO=$ac_cv_prog_LIPO
13984 if test -n "$LIPO"; then
13985 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO" >&5
13986 $as_echo "$LIPO" >&6; }
13987 else
13988 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13989 $as_echo "no" >&6; }
13994 if test -z "$ac_cv_prog_LIPO"; then
13995 ac_ct_LIPO=$LIPO
13996 # Extract the first word of "lipo", so it can be a program name with args.
13997 set dummy lipo; ac_word=$2
13998 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13999 $as_echo_n "checking for $ac_word... " >&6; }
14000 if test "${ac_cv_prog_ac_ct_LIPO+set}" = set; then :
14001 $as_echo_n "(cached) " >&6
14002 else
14003 if test -n "$ac_ct_LIPO"; then
14004 ac_cv_prog_ac_ct_LIPO="$ac_ct_LIPO" # Let the user override the test.
14005 else
14006 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14007 for as_dir in $PATH
14009 IFS=$as_save_IFS
14010 test -z "$as_dir" && as_dir=.
14011 for ac_exec_ext in '' $ac_executable_extensions; do
14012 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
14013 ac_cv_prog_ac_ct_LIPO="lipo"
14014 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
14015 break 2
14017 done
14018 done
14019 IFS=$as_save_IFS
14023 ac_ct_LIPO=$ac_cv_prog_ac_ct_LIPO
14024 if test -n "$ac_ct_LIPO"; then
14025 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_LIPO" >&5
14026 $as_echo "$ac_ct_LIPO" >&6; }
14027 else
14028 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14029 $as_echo "no" >&6; }
14032 if test "x$ac_ct_LIPO" = x; then
14033 LIPO=":"
14034 else
14035 case $cross_compiling:$ac_tool_warned in
14036 yes:)
14037 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
14038 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
14039 ac_tool_warned=yes ;;
14040 esac
14041 LIPO=$ac_ct_LIPO
14043 else
14044 LIPO="$ac_cv_prog_LIPO"
14047 if test -n "$ac_tool_prefix"; then
14048 # Extract the first word of "${ac_tool_prefix}otool", so it can be a program name with args.
14049 set dummy ${ac_tool_prefix}otool; ac_word=$2
14050 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
14051 $as_echo_n "checking for $ac_word... " >&6; }
14052 if test "${ac_cv_prog_OTOOL+set}" = set; then :
14053 $as_echo_n "(cached) " >&6
14054 else
14055 if test -n "$OTOOL"; then
14056 ac_cv_prog_OTOOL="$OTOOL" # Let the user override the test.
14057 else
14058 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14059 for as_dir in $PATH
14061 IFS=$as_save_IFS
14062 test -z "$as_dir" && as_dir=.
14063 for ac_exec_ext in '' $ac_executable_extensions; do
14064 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
14065 ac_cv_prog_OTOOL="${ac_tool_prefix}otool"
14066 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
14067 break 2
14069 done
14070 done
14071 IFS=$as_save_IFS
14075 OTOOL=$ac_cv_prog_OTOOL
14076 if test -n "$OTOOL"; then
14077 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL" >&5
14078 $as_echo "$OTOOL" >&6; }
14079 else
14080 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14081 $as_echo "no" >&6; }
14086 if test -z "$ac_cv_prog_OTOOL"; then
14087 ac_ct_OTOOL=$OTOOL
14088 # Extract the first word of "otool", so it can be a program name with args.
14089 set dummy otool; ac_word=$2
14090 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
14091 $as_echo_n "checking for $ac_word... " >&6; }
14092 if test "${ac_cv_prog_ac_ct_OTOOL+set}" = set; then :
14093 $as_echo_n "(cached) " >&6
14094 else
14095 if test -n "$ac_ct_OTOOL"; then
14096 ac_cv_prog_ac_ct_OTOOL="$ac_ct_OTOOL" # Let the user override the test.
14097 else
14098 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14099 for as_dir in $PATH
14101 IFS=$as_save_IFS
14102 test -z "$as_dir" && as_dir=.
14103 for ac_exec_ext in '' $ac_executable_extensions; do
14104 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
14105 ac_cv_prog_ac_ct_OTOOL="otool"
14106 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
14107 break 2
14109 done
14110 done
14111 IFS=$as_save_IFS
14115 ac_ct_OTOOL=$ac_cv_prog_ac_ct_OTOOL
14116 if test -n "$ac_ct_OTOOL"; then
14117 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL" >&5
14118 $as_echo "$ac_ct_OTOOL" >&6; }
14119 else
14120 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14121 $as_echo "no" >&6; }
14124 if test "x$ac_ct_OTOOL" = x; then
14125 OTOOL=":"
14126 else
14127 case $cross_compiling:$ac_tool_warned in
14128 yes:)
14129 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
14130 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
14131 ac_tool_warned=yes ;;
14132 esac
14133 OTOOL=$ac_ct_OTOOL
14135 else
14136 OTOOL="$ac_cv_prog_OTOOL"
14139 if test -n "$ac_tool_prefix"; then
14140 # Extract the first word of "${ac_tool_prefix}otool64", so it can be a program name with args.
14141 set dummy ${ac_tool_prefix}otool64; ac_word=$2
14142 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
14143 $as_echo_n "checking for $ac_word... " >&6; }
14144 if test "${ac_cv_prog_OTOOL64+set}" = set; then :
14145 $as_echo_n "(cached) " >&6
14146 else
14147 if test -n "$OTOOL64"; then
14148 ac_cv_prog_OTOOL64="$OTOOL64" # Let the user override the test.
14149 else
14150 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14151 for as_dir in $PATH
14153 IFS=$as_save_IFS
14154 test -z "$as_dir" && as_dir=.
14155 for ac_exec_ext in '' $ac_executable_extensions; do
14156 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
14157 ac_cv_prog_OTOOL64="${ac_tool_prefix}otool64"
14158 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
14159 break 2
14161 done
14162 done
14163 IFS=$as_save_IFS
14167 OTOOL64=$ac_cv_prog_OTOOL64
14168 if test -n "$OTOOL64"; then
14169 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL64" >&5
14170 $as_echo "$OTOOL64" >&6; }
14171 else
14172 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14173 $as_echo "no" >&6; }
14178 if test -z "$ac_cv_prog_OTOOL64"; then
14179 ac_ct_OTOOL64=$OTOOL64
14180 # Extract the first word of "otool64", so it can be a program name with args.
14181 set dummy otool64; ac_word=$2
14182 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
14183 $as_echo_n "checking for $ac_word... " >&6; }
14184 if test "${ac_cv_prog_ac_ct_OTOOL64+set}" = set; then :
14185 $as_echo_n "(cached) " >&6
14186 else
14187 if test -n "$ac_ct_OTOOL64"; then
14188 ac_cv_prog_ac_ct_OTOOL64="$ac_ct_OTOOL64" # Let the user override the test.
14189 else
14190 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14191 for as_dir in $PATH
14193 IFS=$as_save_IFS
14194 test -z "$as_dir" && as_dir=.
14195 for ac_exec_ext in '' $ac_executable_extensions; do
14196 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
14197 ac_cv_prog_ac_ct_OTOOL64="otool64"
14198 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
14199 break 2
14201 done
14202 done
14203 IFS=$as_save_IFS
14207 ac_ct_OTOOL64=$ac_cv_prog_ac_ct_OTOOL64
14208 if test -n "$ac_ct_OTOOL64"; then
14209 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL64" >&5
14210 $as_echo "$ac_ct_OTOOL64" >&6; }
14211 else
14212 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14213 $as_echo "no" >&6; }
14216 if test "x$ac_ct_OTOOL64" = x; then
14217 OTOOL64=":"
14218 else
14219 case $cross_compiling:$ac_tool_warned in
14220 yes:)
14221 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
14222 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
14223 ac_tool_warned=yes ;;
14224 esac
14225 OTOOL64=$ac_ct_OTOOL64
14227 else
14228 OTOOL64="$ac_cv_prog_OTOOL64"
14257 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -single_module linker flag" >&5
14258 $as_echo_n "checking for -single_module linker flag... " >&6; }
14259 if test "${lt_cv_apple_cc_single_mod+set}" = set; then :
14260 $as_echo_n "(cached) " >&6
14261 else
14262 lt_cv_apple_cc_single_mod=no
14263 if test -z "${LT_MULTI_MODULE}"; then
14264 # By default we will add the -single_module flag. You can override
14265 # by either setting the environment variable LT_MULTI_MODULE
14266 # non-empty at configure time, or by adding -multi_module to the
14267 # link flags.
14268 rm -rf libconftest.dylib*
14269 echo "int foo(void){return 1;}" > conftest.c
14270 echo "$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
14271 -dynamiclib -Wl,-single_module conftest.c" >&5
14272 $LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
14273 -dynamiclib -Wl,-single_module conftest.c 2>conftest.err
14274 _lt_result=$?
14275 if test -f libconftest.dylib && test ! -s conftest.err && test $_lt_result = 0; then
14276 lt_cv_apple_cc_single_mod=yes
14277 else
14278 cat conftest.err >&5
14280 rm -rf libconftest.dylib*
14281 rm -f conftest.*
14284 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_apple_cc_single_mod" >&5
14285 $as_echo "$lt_cv_apple_cc_single_mod" >&6; }
14286 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -exported_symbols_list linker flag" >&5
14287 $as_echo_n "checking for -exported_symbols_list linker flag... " >&6; }
14288 if test "${lt_cv_ld_exported_symbols_list+set}" = set; then :
14289 $as_echo_n "(cached) " >&6
14290 else
14291 lt_cv_ld_exported_symbols_list=no
14292 save_LDFLAGS=$LDFLAGS
14293 echo "_main" > conftest.sym
14294 LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym"
14295 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14296 /* end confdefs.h. */
14299 main ()
14303 return 0;
14305 _ACEOF
14306 if ac_fn_c_try_link "$LINENO"; then :
14307 lt_cv_ld_exported_symbols_list=yes
14308 else
14309 lt_cv_ld_exported_symbols_list=no
14311 rm -f core conftest.err conftest.$ac_objext \
14312 conftest$ac_exeext conftest.$ac_ext
14313 LDFLAGS="$save_LDFLAGS"
14316 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_exported_symbols_list" >&5
14317 $as_echo "$lt_cv_ld_exported_symbols_list" >&6; }
14318 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -force_load linker flag" >&5
14319 $as_echo_n "checking for -force_load linker flag... " >&6; }
14320 if test "${lt_cv_ld_force_load+set}" = set; then :
14321 $as_echo_n "(cached) " >&6
14322 else
14323 lt_cv_ld_force_load=no
14324 cat > conftest.c << _LT_EOF
14325 int forced_loaded() { return 2;}
14326 _LT_EOF
14327 echo "$LTCC $LTCFLAGS -c -o conftest.o conftest.c" >&5
14328 $LTCC $LTCFLAGS -c -o conftest.o conftest.c 2>&5
14329 echo "$AR cru libconftest.a conftest.o" >&5
14330 $AR cru libconftest.a conftest.o 2>&5
14331 cat > conftest.c << _LT_EOF
14332 int main() { return 0;}
14333 _LT_EOF
14334 echo "$LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a" >&5
14335 $LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a 2>conftest.err
14336 _lt_result=$?
14337 if test -f conftest && test ! -s conftest.err && test $_lt_result = 0 && $GREP forced_load conftest 2>&1 >/dev/null; then
14338 lt_cv_ld_force_load=yes
14339 else
14340 cat conftest.err >&5
14342 rm -f conftest.err libconftest.a conftest conftest.c
14343 rm -rf conftest.dSYM
14346 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_force_load" >&5
14347 $as_echo "$lt_cv_ld_force_load" >&6; }
14348 case $host_os in
14349 rhapsody* | darwin1.[012])
14350 _lt_dar_allow_undefined='${wl}-undefined ${wl}suppress' ;;
14351 darwin1.*)
14352 _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
14353 darwin*) # darwin 5.x on
14354 # if running on 10.5 or later, the deployment target defaults
14355 # to the OS version, if on x86, and 10.4, the deployment
14356 # target defaults to 10.4. Don't you love it?
14357 case ${MACOSX_DEPLOYMENT_TARGET-10.0},$host in
14358 10.0,*86*-darwin8*|10.0,*-darwin[91]*)
14359 _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
14360 10.[012]*)
14361 _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
14362 10.*)
14363 _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
14364 esac
14366 esac
14367 if test "$lt_cv_apple_cc_single_mod" = "yes"; then
14368 _lt_dar_single_mod='$single_module'
14370 if test "$lt_cv_ld_exported_symbols_list" = "yes"; then
14371 _lt_dar_export_syms=' ${wl}-exported_symbols_list,$output_objdir/${libname}-symbols.expsym'
14372 else
14373 _lt_dar_export_syms='~$NMEDIT -s $output_objdir/${libname}-symbols.expsym ${lib}'
14375 if test "$DSYMUTIL" != ":" && test "$lt_cv_ld_force_load" = "no"; then
14376 _lt_dsymutil='~$DSYMUTIL $lib || :'
14377 else
14378 _lt_dsymutil=
14381 esac
14383 for ac_header in dlfcn.h
14384 do :
14385 ac_fn_c_check_header_preproc "$LINENO" "dlfcn.h" "ac_cv_header_dlfcn_h"
14386 if test "x$ac_cv_header_dlfcn_h" = x""yes; then :
14387 cat >>confdefs.h <<_ACEOF
14388 #define HAVE_DLFCN_H 1
14389 _ACEOF
14392 done
14398 # Set options
14402 enable_dlopen=no
14405 enable_win32_dll=no
14408 # Check whether --enable-shared was given.
14409 if test "${enable_shared+set}" = set; then :
14410 enableval=$enable_shared; p=${PACKAGE-default}
14411 case $enableval in
14412 yes) enable_shared=yes ;;
14413 no) enable_shared=no ;;
14415 enable_shared=no
14416 # Look at the argument we got. We use all the common list separators.
14417 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
14418 for pkg in $enableval; do
14419 IFS="$lt_save_ifs"
14420 if test "X$pkg" = "X$p"; then
14421 enable_shared=yes
14423 done
14424 IFS="$lt_save_ifs"
14426 esac
14427 else
14428 enable_shared=yes
14439 # Check whether --enable-static was given.
14440 if test "${enable_static+set}" = set; then :
14441 enableval=$enable_static; p=${PACKAGE-default}
14442 case $enableval in
14443 yes) enable_static=yes ;;
14444 no) enable_static=no ;;
14446 enable_static=no
14447 # Look at the argument we got. We use all the common list separators.
14448 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
14449 for pkg in $enableval; do
14450 IFS="$lt_save_ifs"
14451 if test "X$pkg" = "X$p"; then
14452 enable_static=yes
14454 done
14455 IFS="$lt_save_ifs"
14457 esac
14458 else
14459 enable_static=yes
14471 # Check whether --with-pic was given.
14472 if test "${with_pic+set}" = set; then :
14473 withval=$with_pic; p=${PACKAGE-default}
14474 case "$withval" in
14475 yes|no) pic_mode="$withval" ;;
14477 pic_mode=default
14478 # Look at the argument we got. We use all the common list separators.
14479 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
14480 for pkg in $withval; do
14481 IFS="$lt_save_ifs"
14482 if test "X$pkg" = "X$p"; then
14483 pic_mode=yes
14485 done
14486 IFS="$lt_save_ifs"
14488 esac
14489 else
14490 pic_mode=default
14494 test -z "$pic_mode" && pic_mode=default
14502 # Check whether --enable-fast-install was given.
14503 if test "${enable_fast_install+set}" = set; then :
14504 enableval=$enable_fast_install; p=${PACKAGE-default}
14505 case $enableval in
14506 yes) enable_fast_install=yes ;;
14507 no) enable_fast_install=no ;;
14509 enable_fast_install=no
14510 # Look at the argument we got. We use all the common list separators.
14511 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
14512 for pkg in $enableval; do
14513 IFS="$lt_save_ifs"
14514 if test "X$pkg" = "X$p"; then
14515 enable_fast_install=yes
14517 done
14518 IFS="$lt_save_ifs"
14520 esac
14521 else
14522 enable_fast_install=yes
14535 # This can be used to rebuild libtool when needed
14536 LIBTOOL_DEPS="$ltmain"
14538 # Always use our own libtool.
14539 LIBTOOL='$(SHELL) $(top_builddir)/libtool'
14566 test -z "$LN_S" && LN_S="ln -s"
14581 if test -n "${ZSH_VERSION+set}" ; then
14582 setopt NO_GLOB_SUBST
14585 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for objdir" >&5
14586 $as_echo_n "checking for objdir... " >&6; }
14587 if test "${lt_cv_objdir+set}" = set; then :
14588 $as_echo_n "(cached) " >&6
14589 else
14590 rm -f .libs 2>/dev/null
14591 mkdir .libs 2>/dev/null
14592 if test -d .libs; then
14593 lt_cv_objdir=.libs
14594 else
14595 # MS-DOS does not allow filenames that begin with a dot.
14596 lt_cv_objdir=_libs
14598 rmdir .libs 2>/dev/null
14600 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_objdir" >&5
14601 $as_echo "$lt_cv_objdir" >&6; }
14602 objdir=$lt_cv_objdir
14608 cat >>confdefs.h <<_ACEOF
14609 #define LT_OBJDIR "$lt_cv_objdir/"
14610 _ACEOF
14615 case $host_os in
14616 aix3*)
14617 # AIX sometimes has problems with the GCC collect2 program. For some
14618 # reason, if we set the COLLECT_NAMES environment variable, the problems
14619 # vanish in a puff of smoke.
14620 if test "X${COLLECT_NAMES+set}" != Xset; then
14621 COLLECT_NAMES=
14622 export COLLECT_NAMES
14625 esac
14627 # Global variables:
14628 ofile=libtool
14629 can_build_shared=yes
14631 # All known linkers require a `.a' archive for static linking (except MSVC,
14632 # which needs '.lib').
14633 libext=a
14635 with_gnu_ld="$lt_cv_prog_gnu_ld"
14637 old_CC="$CC"
14638 old_CFLAGS="$CFLAGS"
14640 # Set sane defaults for various variables
14641 test -z "$CC" && CC=cc
14642 test -z "$LTCC" && LTCC=$CC
14643 test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
14644 test -z "$LD" && LD=ld
14645 test -z "$ac_objext" && ac_objext=o
14647 for cc_temp in $compiler""; do
14648 case $cc_temp in
14649 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
14650 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
14651 \-*) ;;
14652 *) break;;
14653 esac
14654 done
14655 cc_basename=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
14658 # Only perform the check for file, if the check method requires it
14659 test -z "$MAGIC_CMD" && MAGIC_CMD=file
14660 case $deplibs_check_method in
14661 file_magic*)
14662 if test "$file_magic_cmd" = '$MAGIC_CMD'; then
14663 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ac_tool_prefix}file" >&5
14664 $as_echo_n "checking for ${ac_tool_prefix}file... " >&6; }
14665 if test "${lt_cv_path_MAGIC_CMD+set}" = set; then :
14666 $as_echo_n "(cached) " >&6
14667 else
14668 case $MAGIC_CMD in
14669 [\\/*] | ?:[\\/]*)
14670 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
14673 lt_save_MAGIC_CMD="$MAGIC_CMD"
14674 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
14675 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
14676 for ac_dir in $ac_dummy; do
14677 IFS="$lt_save_ifs"
14678 test -z "$ac_dir" && ac_dir=.
14679 if test -f $ac_dir/${ac_tool_prefix}file; then
14680 lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
14681 if test -n "$file_magic_test_file"; then
14682 case $deplibs_check_method in
14683 "file_magic "*)
14684 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
14685 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
14686 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
14687 $EGREP "$file_magic_regex" > /dev/null; then
14689 else
14690 cat <<_LT_EOF 1>&2
14692 *** Warning: the command libtool uses to detect shared libraries,
14693 *** $file_magic_cmd, produces output that libtool cannot recognize.
14694 *** The result is that libtool may fail to recognize shared libraries
14695 *** as such. This will affect the creation of libtool libraries that
14696 *** depend on shared libraries, but programs linked with such libtool
14697 *** libraries will work regardless of this problem. Nevertheless, you
14698 *** may want to report the problem to your system manager and/or to
14699 *** bug-libtool@gnu.org
14701 _LT_EOF
14702 fi ;;
14703 esac
14705 break
14707 done
14708 IFS="$lt_save_ifs"
14709 MAGIC_CMD="$lt_save_MAGIC_CMD"
14711 esac
14714 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
14715 if test -n "$MAGIC_CMD"; then
14716 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
14717 $as_echo "$MAGIC_CMD" >&6; }
14718 else
14719 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14720 $as_echo "no" >&6; }
14727 if test -z "$lt_cv_path_MAGIC_CMD"; then
14728 if test -n "$ac_tool_prefix"; then
14729 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for file" >&5
14730 $as_echo_n "checking for file... " >&6; }
14731 if test "${lt_cv_path_MAGIC_CMD+set}" = set; then :
14732 $as_echo_n "(cached) " >&6
14733 else
14734 case $MAGIC_CMD in
14735 [\\/*] | ?:[\\/]*)
14736 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
14739 lt_save_MAGIC_CMD="$MAGIC_CMD"
14740 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
14741 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
14742 for ac_dir in $ac_dummy; do
14743 IFS="$lt_save_ifs"
14744 test -z "$ac_dir" && ac_dir=.
14745 if test -f $ac_dir/file; then
14746 lt_cv_path_MAGIC_CMD="$ac_dir/file"
14747 if test -n "$file_magic_test_file"; then
14748 case $deplibs_check_method in
14749 "file_magic "*)
14750 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
14751 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
14752 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
14753 $EGREP "$file_magic_regex" > /dev/null; then
14755 else
14756 cat <<_LT_EOF 1>&2
14758 *** Warning: the command libtool uses to detect shared libraries,
14759 *** $file_magic_cmd, produces output that libtool cannot recognize.
14760 *** The result is that libtool may fail to recognize shared libraries
14761 *** as such. This will affect the creation of libtool libraries that
14762 *** depend on shared libraries, but programs linked with such libtool
14763 *** libraries will work regardless of this problem. Nevertheless, you
14764 *** may want to report the problem to your system manager and/or to
14765 *** bug-libtool@gnu.org
14767 _LT_EOF
14768 fi ;;
14769 esac
14771 break
14773 done
14774 IFS="$lt_save_ifs"
14775 MAGIC_CMD="$lt_save_MAGIC_CMD"
14777 esac
14780 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
14781 if test -n "$MAGIC_CMD"; then
14782 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
14783 $as_echo "$MAGIC_CMD" >&6; }
14784 else
14785 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14786 $as_echo "no" >&6; }
14790 else
14791 MAGIC_CMD=:
14797 esac
14799 # Use C for the default configuration in the libtool script
14801 lt_save_CC="$CC"
14802 ac_ext=c
14803 ac_cpp='$CPP $CPPFLAGS'
14804 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
14805 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
14806 ac_compiler_gnu=$ac_cv_c_compiler_gnu
14809 # Source file extension for C test sources.
14810 ac_ext=c
14812 # Object file extension for compiled C test sources.
14813 objext=o
14814 objext=$objext
14816 # Code to be used in simple compile tests
14817 lt_simple_compile_test_code="int some_variable = 0;"
14819 # Code to be used in simple link tests
14820 lt_simple_link_test_code='int main(){return(0);}'
14828 # If no C compiler was specified, use CC.
14829 LTCC=${LTCC-"$CC"}
14831 # If no C compiler flags were specified, use CFLAGS.
14832 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
14834 # Allow CC to be a program name with arguments.
14835 compiler=$CC
14837 # Save the default compiler, since it gets overwritten when the other
14838 # tags are being tested, and _LT_TAGVAR(compiler, []) is a NOP.
14839 compiler_DEFAULT=$CC
14841 # save warnings/boilerplate of simple test code
14842 ac_outfile=conftest.$ac_objext
14843 echo "$lt_simple_compile_test_code" >conftest.$ac_ext
14844 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
14845 _lt_compiler_boilerplate=`cat conftest.err`
14846 $RM conftest*
14848 ac_outfile=conftest.$ac_objext
14849 echo "$lt_simple_link_test_code" >conftest.$ac_ext
14850 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
14851 _lt_linker_boilerplate=`cat conftest.err`
14852 $RM -r conftest*
14855 ## CAVEAT EMPTOR:
14856 ## There is no encapsulation within the following macros, do not change
14857 ## the running order or otherwise move them around unless you know exactly
14858 ## what you are doing...
14859 if test -n "$compiler"; then
14861 lt_prog_compiler_no_builtin_flag=
14863 if test "$GCC" = yes; then
14864 case $cc_basename in
14865 nvcc*)
14866 lt_prog_compiler_no_builtin_flag=' -Xcompiler -fno-builtin' ;;
14868 lt_prog_compiler_no_builtin_flag=' -fno-builtin' ;;
14869 esac
14871 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
14872 $as_echo_n "checking if $compiler supports -fno-rtti -fno-exceptions... " >&6; }
14873 if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then :
14874 $as_echo_n "(cached) " >&6
14875 else
14876 lt_cv_prog_compiler_rtti_exceptions=no
14877 ac_outfile=conftest.$ac_objext
14878 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
14879 lt_compiler_flag="-fno-rtti -fno-exceptions"
14880 # Insert the option either (1) after the last *FLAGS variable, or
14881 # (2) before a word containing "conftest.", or (3) at the end.
14882 # Note that $ac_compile itself does not contain backslashes and begins
14883 # with a dollar sign (not a hyphen), so the echo should work correctly.
14884 # The option is referenced via a variable to avoid confusing sed.
14885 lt_compile=`echo "$ac_compile" | $SED \
14886 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
14887 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
14888 -e 's:$: $lt_compiler_flag:'`
14889 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
14890 (eval "$lt_compile" 2>conftest.err)
14891 ac_status=$?
14892 cat conftest.err >&5
14893 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14894 if (exit $ac_status) && test -s "$ac_outfile"; then
14895 # The compiler can only warn and ignore the option if not recognized
14896 # So say no if there are warnings other than the usual output.
14897 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
14898 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
14899 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
14900 lt_cv_prog_compiler_rtti_exceptions=yes
14903 $RM conftest*
14906 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
14907 $as_echo "$lt_cv_prog_compiler_rtti_exceptions" >&6; }
14909 if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
14910 lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
14911 else
14922 lt_prog_compiler_wl=
14923 lt_prog_compiler_pic=
14924 lt_prog_compiler_static=
14926 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
14927 $as_echo_n "checking for $compiler option to produce PIC... " >&6; }
14929 if test "$GCC" = yes; then
14930 lt_prog_compiler_wl='-Wl,'
14931 lt_prog_compiler_static='-static'
14933 case $host_os in
14934 aix*)
14935 # All AIX code is PIC.
14936 if test "$host_cpu" = ia64; then
14937 # AIX 5 now supports IA64 processor
14938 lt_prog_compiler_static='-Bstatic'
14940 lt_prog_compiler_pic='-fPIC'
14943 amigaos*)
14944 case $host_cpu in
14945 powerpc)
14946 # see comment about AmigaOS4 .so support
14947 lt_prog_compiler_pic='-fPIC'
14949 m68k)
14950 # FIXME: we need at least 68020 code to build shared libraries, but
14951 # adding the `-m68020' flag to GCC prevents building anything better,
14952 # like `-m68040'.
14953 lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
14955 esac
14958 beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
14959 # PIC is the default for these OSes.
14962 mingw* | cygwin* | pw32* | os2* | cegcc*)
14963 # This hack is so that the source file can tell whether it is being
14964 # built for inclusion in a dll (and should export symbols for example).
14965 # Although the cygwin gcc ignores -fPIC, still need this for old-style
14966 # (--disable-auto-import) libraries
14967 lt_prog_compiler_pic='-DDLL_EXPORT'
14970 darwin* | rhapsody*)
14971 # PIC is the default on this platform
14972 # Common symbols not allowed in MH_DYLIB files
14973 lt_prog_compiler_pic='-fno-common'
14976 haiku*)
14977 # PIC is the default for Haiku.
14978 # The "-static" flag exists, but is broken.
14979 lt_prog_compiler_static=
14982 hpux*)
14983 # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
14984 # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag
14985 # sets the default TLS model and affects inlining.
14986 case $host_cpu in
14987 hppa*64*)
14988 # +Z the default
14991 lt_prog_compiler_pic='-fPIC'
14993 esac
14996 interix[3-9]*)
14997 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
14998 # Instead, we relocate shared libraries at runtime.
15001 msdosdjgpp*)
15002 # Just because we use GCC doesn't mean we suddenly get shared libraries
15003 # on systems that don't support them.
15004 lt_prog_compiler_can_build_shared=no
15005 enable_shared=no
15008 *nto* | *qnx*)
15009 # QNX uses GNU C++, but need to define -shared option too, otherwise
15010 # it will coredump.
15011 lt_prog_compiler_pic='-fPIC -shared'
15014 sysv4*MP*)
15015 if test -d /usr/nec; then
15016 lt_prog_compiler_pic=-Kconform_pic
15021 lt_prog_compiler_pic='-fPIC'
15023 esac
15025 case $cc_basename in
15026 nvcc*) # Cuda Compiler Driver 2.2
15027 lt_prog_compiler_wl='-Xlinker '
15028 lt_prog_compiler_pic='-Xcompiler -fPIC'
15030 esac
15031 else
15032 # PORTME Check for flag to pass linker flags through the system compiler.
15033 case $host_os in
15034 aix*)
15035 lt_prog_compiler_wl='-Wl,'
15036 if test "$host_cpu" = ia64; then
15037 # AIX 5 now supports IA64 processor
15038 lt_prog_compiler_static='-Bstatic'
15039 else
15040 lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
15044 mingw* | cygwin* | pw32* | os2* | cegcc*)
15045 # This hack is so that the source file can tell whether it is being
15046 # built for inclusion in a dll (and should export symbols for example).
15047 lt_prog_compiler_pic='-DDLL_EXPORT'
15050 hpux9* | hpux10* | hpux11*)
15051 lt_prog_compiler_wl='-Wl,'
15052 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
15053 # not for PA HP-UX.
15054 case $host_cpu in
15055 hppa*64*|ia64*)
15056 # +Z the default
15059 lt_prog_compiler_pic='+Z'
15061 esac
15062 # Is there a better lt_prog_compiler_static that works with the bundled CC?
15063 lt_prog_compiler_static='${wl}-a ${wl}archive'
15066 irix5* | irix6* | nonstopux*)
15067 lt_prog_compiler_wl='-Wl,'
15068 # PIC (with -KPIC) is the default.
15069 lt_prog_compiler_static='-non_shared'
15072 linux* | k*bsd*-gnu | kopensolaris*-gnu)
15073 case $cc_basename in
15074 # old Intel for x86_64 which still supported -KPIC.
15075 ecc*)
15076 lt_prog_compiler_wl='-Wl,'
15077 lt_prog_compiler_pic='-KPIC'
15078 lt_prog_compiler_static='-static'
15080 # icc used to be incompatible with GCC.
15081 # ICC 10 doesn't accept -KPIC any more.
15082 icc* | ifort*)
15083 lt_prog_compiler_wl='-Wl,'
15084 lt_prog_compiler_pic='-fPIC'
15085 lt_prog_compiler_static='-static'
15087 # Lahey Fortran 8.1.
15088 lf95*)
15089 lt_prog_compiler_wl='-Wl,'
15090 lt_prog_compiler_pic='--shared'
15091 lt_prog_compiler_static='--static'
15093 pgcc* | pgf77* | pgf90* | pgf95* | pgfortran*)
15094 # Portland Group compilers (*not* the Pentium gcc compiler,
15095 # which looks to be a dead project)
15096 lt_prog_compiler_wl='-Wl,'
15097 lt_prog_compiler_pic='-fpic'
15098 lt_prog_compiler_static='-Bstatic'
15100 ccc*)
15101 lt_prog_compiler_wl='-Wl,'
15102 # All Alpha code is PIC.
15103 lt_prog_compiler_static='-non_shared'
15105 xl* | bgxl* | bgf* | mpixl*)
15106 # IBM XL C 8.0/Fortran 10.1, 11.1 on PPC and BlueGene
15107 lt_prog_compiler_wl='-Wl,'
15108 lt_prog_compiler_pic='-qpic'
15109 lt_prog_compiler_static='-qstaticlink'
15112 case `$CC -V 2>&1 | sed 5q` in
15113 *Sun\ F* | *Sun*Fortran*)
15114 # Sun Fortran 8.3 passes all unrecognized flags to the linker
15115 lt_prog_compiler_pic='-KPIC'
15116 lt_prog_compiler_static='-Bstatic'
15117 lt_prog_compiler_wl=''
15119 *Sun\ C*)
15120 # Sun C 5.9
15121 lt_prog_compiler_pic='-KPIC'
15122 lt_prog_compiler_static='-Bstatic'
15123 lt_prog_compiler_wl='-Wl,'
15125 esac
15127 esac
15130 newsos6)
15131 lt_prog_compiler_pic='-KPIC'
15132 lt_prog_compiler_static='-Bstatic'
15135 *nto* | *qnx*)
15136 # QNX uses GNU C++, but need to define -shared option too, otherwise
15137 # it will coredump.
15138 lt_prog_compiler_pic='-fPIC -shared'
15141 osf3* | osf4* | osf5*)
15142 lt_prog_compiler_wl='-Wl,'
15143 # All OSF/1 code is PIC.
15144 lt_prog_compiler_static='-non_shared'
15147 rdos*)
15148 lt_prog_compiler_static='-non_shared'
15151 solaris*)
15152 lt_prog_compiler_pic='-KPIC'
15153 lt_prog_compiler_static='-Bstatic'
15154 case $cc_basename in
15155 f77* | f90* | f95*)
15156 lt_prog_compiler_wl='-Qoption ld ';;
15158 lt_prog_compiler_wl='-Wl,';;
15159 esac
15162 sunos4*)
15163 lt_prog_compiler_wl='-Qoption ld '
15164 lt_prog_compiler_pic='-PIC'
15165 lt_prog_compiler_static='-Bstatic'
15168 sysv4 | sysv4.2uw2* | sysv4.3*)
15169 lt_prog_compiler_wl='-Wl,'
15170 lt_prog_compiler_pic='-KPIC'
15171 lt_prog_compiler_static='-Bstatic'
15174 sysv4*MP*)
15175 if test -d /usr/nec ;then
15176 lt_prog_compiler_pic='-Kconform_pic'
15177 lt_prog_compiler_static='-Bstatic'
15181 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
15182 lt_prog_compiler_wl='-Wl,'
15183 lt_prog_compiler_pic='-KPIC'
15184 lt_prog_compiler_static='-Bstatic'
15187 unicos*)
15188 lt_prog_compiler_wl='-Wl,'
15189 lt_prog_compiler_can_build_shared=no
15192 uts4*)
15193 lt_prog_compiler_pic='-pic'
15194 lt_prog_compiler_static='-Bstatic'
15198 lt_prog_compiler_can_build_shared=no
15200 esac
15203 case $host_os in
15204 # For platforms which do not support PIC, -DPIC is meaningless:
15205 *djgpp*)
15206 lt_prog_compiler_pic=
15209 lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
15211 esac
15212 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_prog_compiler_pic" >&5
15213 $as_echo "$lt_prog_compiler_pic" >&6; }
15221 # Check to make sure the PIC flag actually works.
15223 if test -n "$lt_prog_compiler_pic"; then
15224 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
15225 $as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic works... " >&6; }
15226 if test "${lt_cv_prog_compiler_pic_works+set}" = set; then :
15227 $as_echo_n "(cached) " >&6
15228 else
15229 lt_cv_prog_compiler_pic_works=no
15230 ac_outfile=conftest.$ac_objext
15231 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
15232 lt_compiler_flag="$lt_prog_compiler_pic -DPIC"
15233 # Insert the option either (1) after the last *FLAGS variable, or
15234 # (2) before a word containing "conftest.", or (3) at the end.
15235 # Note that $ac_compile itself does not contain backslashes and begins
15236 # with a dollar sign (not a hyphen), so the echo should work correctly.
15237 # The option is referenced via a variable to avoid confusing sed.
15238 lt_compile=`echo "$ac_compile" | $SED \
15239 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
15240 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
15241 -e 's:$: $lt_compiler_flag:'`
15242 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
15243 (eval "$lt_compile" 2>conftest.err)
15244 ac_status=$?
15245 cat conftest.err >&5
15246 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15247 if (exit $ac_status) && test -s "$ac_outfile"; then
15248 # The compiler can only warn and ignore the option if not recognized
15249 # So say no if there are warnings other than the usual output.
15250 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
15251 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
15252 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
15253 lt_cv_prog_compiler_pic_works=yes
15256 $RM conftest*
15259 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works" >&5
15260 $as_echo "$lt_cv_prog_compiler_pic_works" >&6; }
15262 if test x"$lt_cv_prog_compiler_pic_works" = xyes; then
15263 case $lt_prog_compiler_pic in
15264 "" | " "*) ;;
15265 *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
15266 esac
15267 else
15268 lt_prog_compiler_pic=
15269 lt_prog_compiler_can_build_shared=no
15280 # Check to make sure the static flag actually works.
15282 wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
15283 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
15284 $as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
15285 if test "${lt_cv_prog_compiler_static_works+set}" = set; then :
15286 $as_echo_n "(cached) " >&6
15287 else
15288 lt_cv_prog_compiler_static_works=no
15289 save_LDFLAGS="$LDFLAGS"
15290 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
15291 echo "$lt_simple_link_test_code" > conftest.$ac_ext
15292 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
15293 # The linker can only warn and ignore the option if not recognized
15294 # So say no if there are warnings
15295 if test -s conftest.err; then
15296 # Append any errors to the config.log.
15297 cat conftest.err 1>&5
15298 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
15299 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
15300 if diff conftest.exp conftest.er2 >/dev/null; then
15301 lt_cv_prog_compiler_static_works=yes
15303 else
15304 lt_cv_prog_compiler_static_works=yes
15307 $RM -r conftest*
15308 LDFLAGS="$save_LDFLAGS"
15311 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works" >&5
15312 $as_echo "$lt_cv_prog_compiler_static_works" >&6; }
15314 if test x"$lt_cv_prog_compiler_static_works" = xyes; then
15316 else
15317 lt_prog_compiler_static=
15326 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
15327 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
15328 if test "${lt_cv_prog_compiler_c_o+set}" = set; then :
15329 $as_echo_n "(cached) " >&6
15330 else
15331 lt_cv_prog_compiler_c_o=no
15332 $RM -r conftest 2>/dev/null
15333 mkdir conftest
15334 cd conftest
15335 mkdir out
15336 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
15338 lt_compiler_flag="-o out/conftest2.$ac_objext"
15339 # Insert the option either (1) after the last *FLAGS variable, or
15340 # (2) before a word containing "conftest.", or (3) at the end.
15341 # Note that $ac_compile itself does not contain backslashes and begins
15342 # with a dollar sign (not a hyphen), so the echo should work correctly.
15343 lt_compile=`echo "$ac_compile" | $SED \
15344 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
15345 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
15346 -e 's:$: $lt_compiler_flag:'`
15347 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
15348 (eval "$lt_compile" 2>out/conftest.err)
15349 ac_status=$?
15350 cat out/conftest.err >&5
15351 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15352 if (exit $ac_status) && test -s out/conftest2.$ac_objext
15353 then
15354 # The compiler can only warn and ignore the option if not recognized
15355 # So say no if there are warnings
15356 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
15357 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
15358 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
15359 lt_cv_prog_compiler_c_o=yes
15362 chmod u+w . 2>&5
15363 $RM conftest*
15364 # SGI C++ compiler will create directory out/ii_files/ for
15365 # template instantiation
15366 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
15367 $RM out/* && rmdir out
15368 cd ..
15369 $RM -r conftest
15370 $RM conftest*
15373 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
15374 $as_echo "$lt_cv_prog_compiler_c_o" >&6; }
15381 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
15382 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
15383 if test "${lt_cv_prog_compiler_c_o+set}" = set; then :
15384 $as_echo_n "(cached) " >&6
15385 else
15386 lt_cv_prog_compiler_c_o=no
15387 $RM -r conftest 2>/dev/null
15388 mkdir conftest
15389 cd conftest
15390 mkdir out
15391 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
15393 lt_compiler_flag="-o out/conftest2.$ac_objext"
15394 # Insert the option either (1) after the last *FLAGS variable, or
15395 # (2) before a word containing "conftest.", or (3) at the end.
15396 # Note that $ac_compile itself does not contain backslashes and begins
15397 # with a dollar sign (not a hyphen), so the echo should work correctly.
15398 lt_compile=`echo "$ac_compile" | $SED \
15399 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
15400 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
15401 -e 's:$: $lt_compiler_flag:'`
15402 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
15403 (eval "$lt_compile" 2>out/conftest.err)
15404 ac_status=$?
15405 cat out/conftest.err >&5
15406 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15407 if (exit $ac_status) && test -s out/conftest2.$ac_objext
15408 then
15409 # The compiler can only warn and ignore the option if not recognized
15410 # So say no if there are warnings
15411 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
15412 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
15413 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
15414 lt_cv_prog_compiler_c_o=yes
15417 chmod u+w . 2>&5
15418 $RM conftest*
15419 # SGI C++ compiler will create directory out/ii_files/ for
15420 # template instantiation
15421 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
15422 $RM out/* && rmdir out
15423 cd ..
15424 $RM -r conftest
15425 $RM conftest*
15428 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
15429 $as_echo "$lt_cv_prog_compiler_c_o" >&6; }
15434 hard_links="nottested"
15435 if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then
15436 # do not overwrite the value of need_locks provided by the user
15437 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
15438 $as_echo_n "checking if we can lock with hard links... " >&6; }
15439 hard_links=yes
15440 $RM conftest*
15441 ln conftest.a conftest.b 2>/dev/null && hard_links=no
15442 touch conftest.a
15443 ln conftest.a conftest.b 2>&5 || hard_links=no
15444 ln conftest.a conftest.b 2>/dev/null && hard_links=no
15445 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
15446 $as_echo "$hard_links" >&6; }
15447 if test "$hard_links" = no; then
15448 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
15449 $as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
15450 need_locks=warn
15452 else
15453 need_locks=no
15461 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
15462 $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
15464 runpath_var=
15465 allow_undefined_flag=
15466 always_export_symbols=no
15467 archive_cmds=
15468 archive_expsym_cmds=
15469 compiler_needs_object=no
15470 enable_shared_with_static_runtimes=no
15471 export_dynamic_flag_spec=
15472 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
15473 hardcode_automatic=no
15474 hardcode_direct=no
15475 hardcode_direct_absolute=no
15476 hardcode_libdir_flag_spec=
15477 hardcode_libdir_flag_spec_ld=
15478 hardcode_libdir_separator=
15479 hardcode_minus_L=no
15480 hardcode_shlibpath_var=unsupported
15481 inherit_rpath=no
15482 link_all_deplibs=unknown
15483 module_cmds=
15484 module_expsym_cmds=
15485 old_archive_from_new_cmds=
15486 old_archive_from_expsyms_cmds=
15487 thread_safe_flag_spec=
15488 whole_archive_flag_spec=
15489 # include_expsyms should be a list of space-separated symbols to be *always*
15490 # included in the symbol list
15491 include_expsyms=
15492 # exclude_expsyms can be an extended regexp of symbols to exclude
15493 # it will be wrapped by ` (' and `)$', so one must not match beginning or
15494 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
15495 # as well as any symbol that contains `d'.
15496 exclude_expsyms='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
15497 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
15498 # platforms (ab)use it in PIC code, but their linkers get confused if
15499 # the symbol is explicitly referenced. Since portable code cannot
15500 # rely on this symbol name, it's probably fine to never include it in
15501 # preloaded symbol tables.
15502 # Exclude shared library initialization/finalization symbols.
15503 extract_expsyms_cmds=
15505 case $host_os in
15506 cygwin* | mingw* | pw32* | cegcc*)
15507 # FIXME: the MSVC++ port hasn't been tested in a loooong time
15508 # When not using gcc, we currently assume that we are using
15509 # Microsoft Visual C++.
15510 if test "$GCC" != yes; then
15511 with_gnu_ld=no
15514 interix*)
15515 # we just hope/assume this is gcc and not c89 (= MSVC++)
15516 with_gnu_ld=yes
15518 openbsd*)
15519 with_gnu_ld=no
15521 esac
15523 ld_shlibs=yes
15525 # On some targets, GNU ld is compatible enough with the native linker
15526 # that we're better off using the native interface for both.
15527 lt_use_gnu_ld_interface=no
15528 if test "$with_gnu_ld" = yes; then
15529 case $host_os in
15530 aix*)
15531 # The AIX port of GNU ld has always aspired to compatibility
15532 # with the native linker. However, as the warning in the GNU ld
15533 # block says, versions before 2.19.5* couldn't really create working
15534 # shared libraries, regardless of the interface used.
15535 case `$LD -v 2>&1` in
15536 *\ \(GNU\ Binutils\)\ 2.19.5*) ;;
15537 *\ \(GNU\ Binutils\)\ 2.[2-9]*) ;;
15538 *\ \(GNU\ Binutils\)\ [3-9]*) ;;
15540 lt_use_gnu_ld_interface=yes
15542 esac
15545 lt_use_gnu_ld_interface=yes
15547 esac
15550 if test "$lt_use_gnu_ld_interface" = yes; then
15551 # If archive_cmds runs LD, not CC, wlarc should be empty
15552 wlarc='${wl}'
15554 # Set some defaults for GNU ld with shared library support. These
15555 # are reset later if shared libraries are not supported. Putting them
15556 # here allows them to be overridden if necessary.
15557 runpath_var=LD_RUN_PATH
15558 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
15559 export_dynamic_flag_spec='${wl}--export-dynamic'
15560 # ancient GNU ld didn't support --whole-archive et. al.
15561 if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then
15562 whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
15563 else
15564 whole_archive_flag_spec=
15566 supports_anon_versioning=no
15567 case `$LD -v 2>&1` in
15568 *GNU\ gold*) supports_anon_versioning=yes ;;
15569 *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
15570 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
15571 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
15572 *\ 2.11.*) ;; # other 2.11 versions
15573 *) supports_anon_versioning=yes ;;
15574 esac
15576 # See if GNU ld supports shared libraries.
15577 case $host_os in
15578 aix[3-9]*)
15579 # On AIX/PPC, the GNU linker is very broken
15580 if test "$host_cpu" != ia64; then
15581 ld_shlibs=no
15582 cat <<_LT_EOF 1>&2
15584 *** Warning: the GNU linker, at least up to release 2.19, is reported
15585 *** to be unable to reliably create shared libraries on AIX.
15586 *** Therefore, libtool is disabling shared libraries support. If you
15587 *** really care for shared libraries, you may want to install binutils
15588 *** 2.20 or above, or modify your PATH so that a non-GNU linker is found.
15589 *** You will then need to restart the configuration process.
15591 _LT_EOF
15595 amigaos*)
15596 case $host_cpu in
15597 powerpc)
15598 # see comment about AmigaOS4 .so support
15599 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
15600 archive_expsym_cmds=''
15602 m68k)
15603 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)'
15604 hardcode_libdir_flag_spec='-L$libdir'
15605 hardcode_minus_L=yes
15607 esac
15610 beos*)
15611 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
15612 allow_undefined_flag=unsupported
15613 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
15614 # support --undefined. This deserves some investigation. FIXME
15615 archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
15616 else
15617 ld_shlibs=no
15621 cygwin* | mingw* | pw32* | cegcc*)
15622 # _LT_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
15623 # as there is no search path for DLLs.
15624 hardcode_libdir_flag_spec='-L$libdir'
15625 export_dynamic_flag_spec='${wl}--export-all-symbols'
15626 allow_undefined_flag=unsupported
15627 always_export_symbols=no
15628 enable_shared_with_static_runtimes=yes
15629 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
15631 if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
15632 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
15633 # If the export-symbols file already is a .def file (1st line
15634 # is EXPORTS), use it as is; otherwise, prepend...
15635 archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
15636 cp $export_symbols $output_objdir/$soname.def;
15637 else
15638 echo EXPORTS > $output_objdir/$soname.def;
15639 cat $export_symbols >> $output_objdir/$soname.def;
15641 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
15642 else
15643 ld_shlibs=no
15647 haiku*)
15648 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
15649 link_all_deplibs=yes
15652 interix[3-9]*)
15653 hardcode_direct=no
15654 hardcode_shlibpath_var=no
15655 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
15656 export_dynamic_flag_spec='${wl}-E'
15657 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
15658 # Instead, shared libraries are loaded at an image base (0x10000000 by
15659 # default) and relocated if they conflict, which is a slow very memory
15660 # consuming and fragmenting process. To avoid this, we pick a random,
15661 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
15662 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
15663 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
15664 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'
15667 gnu* | linux* | tpf* | k*bsd*-gnu | kopensolaris*-gnu)
15668 tmp_diet=no
15669 if test "$host_os" = linux-dietlibc; then
15670 case $cc_basename in
15671 diet\ *) tmp_diet=yes;; # linux-dietlibc with static linking (!diet-dyn)
15672 esac
15674 if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \
15675 && test "$tmp_diet" = no
15676 then
15677 tmp_addflag=
15678 tmp_sharedflag='-shared'
15679 case $cc_basename,$host_cpu in
15680 pgcc*) # Portland Group C compiler
15681 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'
15682 tmp_addflag=' $pic_flag'
15684 pgf77* | pgf90* | pgf95* | pgfortran*)
15685 # Portland Group f77 and f90 compilers
15686 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'
15687 tmp_addflag=' $pic_flag -Mnomain' ;;
15688 ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64
15689 tmp_addflag=' -i_dynamic' ;;
15690 efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64
15691 tmp_addflag=' -i_dynamic -nofor_main' ;;
15692 ifc* | ifort*) # Intel Fortran compiler
15693 tmp_addflag=' -nofor_main' ;;
15694 lf95*) # Lahey Fortran 8.1
15695 whole_archive_flag_spec=
15696 tmp_sharedflag='--shared' ;;
15697 xl[cC]* | bgxl[cC]* | mpixl[cC]*) # IBM XL C 8.0 on PPC (deal with xlf below)
15698 tmp_sharedflag='-qmkshrobj'
15699 tmp_addflag= ;;
15700 nvcc*) # Cuda Compiler Driver 2.2
15701 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'
15702 compiler_needs_object=yes
15704 esac
15705 case `$CC -V 2>&1 | sed 5q` in
15706 *Sun\ C*) # Sun C 5.9
15707 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'
15708 compiler_needs_object=yes
15709 tmp_sharedflag='-G' ;;
15710 *Sun\ F*) # Sun Fortran 8.3
15711 tmp_sharedflag='-G' ;;
15712 esac
15713 archive_cmds='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
15715 if test "x$supports_anon_versioning" = xyes; then
15716 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
15717 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
15718 echo "local: *; };" >> $output_objdir/$libname.ver~
15719 $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
15722 case $cc_basename in
15723 xlf* | bgf* | bgxlf* | mpixlf*)
15724 # IBM XL Fortran 10.1 on PPC cannot create shared libs itself
15725 whole_archive_flag_spec='--whole-archive$convenience --no-whole-archive'
15726 hardcode_libdir_flag_spec=
15727 hardcode_libdir_flag_spec_ld='-rpath $libdir'
15728 archive_cmds='$LD -shared $libobjs $deplibs $compiler_flags -soname $soname -o $lib'
15729 if test "x$supports_anon_versioning" = xyes; then
15730 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
15731 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
15732 echo "local: *; };" >> $output_objdir/$libname.ver~
15733 $LD -shared $libobjs $deplibs $compiler_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib'
15736 esac
15737 else
15738 ld_shlibs=no
15742 netbsd*)
15743 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
15744 archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
15745 wlarc=
15746 else
15747 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
15748 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
15752 solaris*)
15753 if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then
15754 ld_shlibs=no
15755 cat <<_LT_EOF 1>&2
15757 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
15758 *** create shared libraries on Solaris systems. Therefore, libtool
15759 *** is disabling shared libraries support. We urge you to upgrade GNU
15760 *** binutils to release 2.9.1 or newer. Another option is to modify
15761 *** your PATH or compiler configuration so that the native linker is
15762 *** used, and then restart.
15764 _LT_EOF
15765 elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
15766 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
15767 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
15768 else
15769 ld_shlibs=no
15773 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
15774 case `$LD -v 2>&1` in
15775 *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
15776 ld_shlibs=no
15777 cat <<_LT_EOF 1>&2
15779 *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
15780 *** reliably create shared libraries on SCO systems. Therefore, libtool
15781 *** is disabling shared libraries support. We urge you to upgrade GNU
15782 *** binutils to release 2.16.91.0.3 or newer. Another option is to modify
15783 *** your PATH or compiler configuration so that the native linker is
15784 *** used, and then restart.
15786 _LT_EOF
15789 # For security reasons, it is highly recommended that you always
15790 # use absolute paths for naming shared libraries, and exclude the
15791 # DT_RUNPATH tag from executables and libraries. But doing so
15792 # requires that you compile everything twice, which is a pain.
15793 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
15794 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
15795 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
15796 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
15797 else
15798 ld_shlibs=no
15801 esac
15804 sunos4*)
15805 archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
15806 wlarc=
15807 hardcode_direct=yes
15808 hardcode_shlibpath_var=no
15812 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
15813 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
15814 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
15815 else
15816 ld_shlibs=no
15819 esac
15821 if test "$ld_shlibs" = no; then
15822 runpath_var=
15823 hardcode_libdir_flag_spec=
15824 export_dynamic_flag_spec=
15825 whole_archive_flag_spec=
15827 else
15828 # PORTME fill in a description of your system's linker (not GNU ld)
15829 case $host_os in
15830 aix3*)
15831 allow_undefined_flag=unsupported
15832 always_export_symbols=yes
15833 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'
15834 # Note: this linker hardcodes the directories in LIBPATH if there
15835 # are no directories specified by -L.
15836 hardcode_minus_L=yes
15837 if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
15838 # Neither direct hardcoding nor static linking is supported with a
15839 # broken collect2.
15840 hardcode_direct=unsupported
15844 aix[4-9]*)
15845 if test "$host_cpu" = ia64; then
15846 # On IA64, the linker does run time linking by default, so we don't
15847 # have to do anything special.
15848 aix_use_runtimelinking=no
15849 exp_sym_flag='-Bexport'
15850 no_entry_flag=""
15851 else
15852 # If we're using GNU nm, then we don't want the "-C" option.
15853 # -C means demangle to AIX nm, but means don't demangle with GNU nm
15854 # Also, AIX nm treats weak defined symbols like other global
15855 # defined symbols, whereas GNU nm marks them as "W".
15856 if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
15857 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'
15858 else
15859 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'
15861 aix_use_runtimelinking=no
15863 # Test if we are trying to use run time linking or normal
15864 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
15865 # need to do runtime linking.
15866 case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
15867 for ld_flag in $LDFLAGS; do
15868 if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
15869 aix_use_runtimelinking=yes
15870 break
15872 done
15874 esac
15876 exp_sym_flag='-bexport'
15877 no_entry_flag='-bnoentry'
15880 # When large executables or shared objects are built, AIX ld can
15881 # have problems creating the table of contents. If linking a library
15882 # or program results in "error TOC overflow" add -mminimal-toc to
15883 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
15884 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
15886 archive_cmds=''
15887 hardcode_direct=yes
15888 hardcode_direct_absolute=yes
15889 hardcode_libdir_separator=':'
15890 link_all_deplibs=yes
15891 file_list_spec='${wl}-f,'
15893 if test "$GCC" = yes; then
15894 case $host_os in aix4.[012]|aix4.[012].*)
15895 # We only want to do this on AIX 4.2 and lower, the check
15896 # below for broken collect2 doesn't work under 4.3+
15897 collect2name=`${CC} -print-prog-name=collect2`
15898 if test -f "$collect2name" &&
15899 strings "$collect2name" | $GREP resolve_lib_name >/dev/null
15900 then
15901 # We have reworked collect2
15903 else
15904 # We have old collect2
15905 hardcode_direct=unsupported
15906 # It fails to find uninstalled libraries when the uninstalled
15907 # path is not listed in the libpath. Setting hardcode_minus_L
15908 # to unsupported forces relinking
15909 hardcode_minus_L=yes
15910 hardcode_libdir_flag_spec='-L$libdir'
15911 hardcode_libdir_separator=
15914 esac
15915 shared_flag='-shared'
15916 if test "$aix_use_runtimelinking" = yes; then
15917 shared_flag="$shared_flag "'${wl}-G'
15919 else
15920 # not using gcc
15921 if test "$host_cpu" = ia64; then
15922 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
15923 # chokes on -Wl,-G. The following line is correct:
15924 shared_flag='-G'
15925 else
15926 if test "$aix_use_runtimelinking" = yes; then
15927 shared_flag='${wl}-G'
15928 else
15929 shared_flag='${wl}-bM:SRE'
15934 export_dynamic_flag_spec='${wl}-bexpall'
15935 # It seems that -bexpall does not export symbols beginning with
15936 # underscore (_), so it is better to generate a list of symbols to export.
15937 always_export_symbols=yes
15938 if test "$aix_use_runtimelinking" = yes; then
15939 # Warning - without using the other runtime loading flags (-brtl),
15940 # -berok will link without error, but may produce a broken library.
15941 allow_undefined_flag='-berok'
15942 # Determine the default libpath from the value encoded in an
15943 # empty executable.
15944 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15945 /* end confdefs.h. */
15948 main ()
15952 return 0;
15954 _ACEOF
15955 if ac_fn_c_try_link "$LINENO"; then :
15957 lt_aix_libpath_sed='
15958 /Import File Strings/,/^$/ {
15959 /^0/ {
15960 s/^0 *\(.*\)$/\1/
15964 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
15965 # Check for a 64-bit object if we didn't find anything.
15966 if test -z "$aix_libpath"; then
15967 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
15970 rm -f core conftest.err conftest.$ac_objext \
15971 conftest$ac_exeext conftest.$ac_ext
15972 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
15974 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
15975 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"
15976 else
15977 if test "$host_cpu" = ia64; then
15978 hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
15979 allow_undefined_flag="-z nodefs"
15980 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"
15981 else
15982 # Determine the default libpath from the value encoded in an
15983 # empty executable.
15984 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15985 /* end confdefs.h. */
15988 main ()
15992 return 0;
15994 _ACEOF
15995 if ac_fn_c_try_link "$LINENO"; then :
15997 lt_aix_libpath_sed='
15998 /Import File Strings/,/^$/ {
15999 /^0/ {
16000 s/^0 *\(.*\)$/\1/
16004 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
16005 # Check for a 64-bit object if we didn't find anything.
16006 if test -z "$aix_libpath"; then
16007 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
16010 rm -f core conftest.err conftest.$ac_objext \
16011 conftest$ac_exeext conftest.$ac_ext
16012 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
16014 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
16015 # Warning - without using the other run time loading flags,
16016 # -berok will link without error, but may produce a broken library.
16017 no_undefined_flag=' ${wl}-bernotok'
16018 allow_undefined_flag=' ${wl}-berok'
16019 if test "$with_gnu_ld" = yes; then
16020 # We only use this code for GNU lds that support --whole-archive.
16021 whole_archive_flag_spec='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
16022 else
16023 # Exported symbols can be pulled into shared objects from archives
16024 whole_archive_flag_spec='$convenience'
16026 archive_cmds_need_lc=yes
16027 # This is similar to how AIX traditionally builds its shared libraries.
16028 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'
16033 amigaos*)
16034 case $host_cpu in
16035 powerpc)
16036 # see comment about AmigaOS4 .so support
16037 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
16038 archive_expsym_cmds=''
16040 m68k)
16041 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)'
16042 hardcode_libdir_flag_spec='-L$libdir'
16043 hardcode_minus_L=yes
16045 esac
16048 bsdi[45]*)
16049 export_dynamic_flag_spec=-rdynamic
16052 cygwin* | mingw* | pw32* | cegcc*)
16053 # When not using gcc, we currently assume that we are using
16054 # Microsoft Visual C++.
16055 # hardcode_libdir_flag_spec is actually meaningless, as there is
16056 # no search path for DLLs.
16057 hardcode_libdir_flag_spec=' '
16058 allow_undefined_flag=unsupported
16059 # Tell ltmain to make .lib files, not .a files.
16060 libext=lib
16061 # Tell ltmain to make .dll files, not .so files.
16062 shrext_cmds=".dll"
16063 # FIXME: Setting linknames here is a bad hack.
16064 archive_cmds='$CC -o $lib $libobjs $compiler_flags `func_echo_all "$deplibs" | $SED '\''s/ -lc$//'\''` -link -dll~linknames='
16065 # The linker will automatically build a .lib file if we build a DLL.
16066 old_archive_from_new_cmds='true'
16067 # FIXME: Should let the user specify the lib program.
16068 old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs'
16069 fix_srcfile_path='`cygpath -w "$srcfile"`'
16070 enable_shared_with_static_runtimes=yes
16073 darwin* | rhapsody*)
16076 archive_cmds_need_lc=no
16077 hardcode_direct=no
16078 hardcode_automatic=yes
16079 hardcode_shlibpath_var=unsupported
16080 if test "$lt_cv_ld_force_load" = "yes"; then
16081 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\"`'
16082 else
16083 whole_archive_flag_spec=''
16085 link_all_deplibs=yes
16086 allow_undefined_flag="$_lt_dar_allow_undefined"
16087 case $cc_basename in
16088 ifort*) _lt_dar_can_shared=yes ;;
16089 *) _lt_dar_can_shared=$GCC ;;
16090 esac
16091 if test "$_lt_dar_can_shared" = "yes"; then
16092 output_verbose_link_cmd=func_echo_all
16093 archive_cmds="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod${_lt_dsymutil}"
16094 module_cmds="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
16095 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}"
16096 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}"
16098 else
16099 ld_shlibs=no
16104 dgux*)
16105 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
16106 hardcode_libdir_flag_spec='-L$libdir'
16107 hardcode_shlibpath_var=no
16110 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
16111 # support. Future versions do this automatically, but an explicit c++rt0.o
16112 # does not break anything, and helps significantly (at the cost of a little
16113 # extra space).
16114 freebsd2.2*)
16115 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
16116 hardcode_libdir_flag_spec='-R$libdir'
16117 hardcode_direct=yes
16118 hardcode_shlibpath_var=no
16121 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
16122 freebsd2.*)
16123 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
16124 hardcode_direct=yes
16125 hardcode_minus_L=yes
16126 hardcode_shlibpath_var=no
16129 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
16130 freebsd* | dragonfly*)
16131 archive_cmds='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
16132 hardcode_libdir_flag_spec='-R$libdir'
16133 hardcode_direct=yes
16134 hardcode_shlibpath_var=no
16137 hpux9*)
16138 if test "$GCC" = yes; then
16139 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'
16140 else
16141 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'
16143 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
16144 hardcode_libdir_separator=:
16145 hardcode_direct=yes
16147 # hardcode_minus_L: Not really in the search PATH,
16148 # but as the default location of the library.
16149 hardcode_minus_L=yes
16150 export_dynamic_flag_spec='${wl}-E'
16153 hpux10*)
16154 if test "$GCC" = yes && test "$with_gnu_ld" = no; then
16155 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
16156 else
16157 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
16159 if test "$with_gnu_ld" = no; then
16160 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
16161 hardcode_libdir_flag_spec_ld='+b $libdir'
16162 hardcode_libdir_separator=:
16163 hardcode_direct=yes
16164 hardcode_direct_absolute=yes
16165 export_dynamic_flag_spec='${wl}-E'
16166 # hardcode_minus_L: Not really in the search PATH,
16167 # but as the default location of the library.
16168 hardcode_minus_L=yes
16172 hpux11*)
16173 if test "$GCC" = yes && test "$with_gnu_ld" = no; then
16174 case $host_cpu in
16175 hppa*64*)
16176 archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
16178 ia64*)
16179 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
16182 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
16184 esac
16185 else
16186 case $host_cpu in
16187 hppa*64*)
16188 archive_cmds='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
16190 ia64*)
16191 archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
16195 # Older versions of the 11.00 compiler do not understand -b yet
16196 # (HP92453-01 A.11.01.20 doesn't, HP92453-01 B.11.X.35175-35176.GP does)
16197 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC understands -b" >&5
16198 $as_echo_n "checking if $CC understands -b... " >&6; }
16199 if test "${lt_cv_prog_compiler__b+set}" = set; then :
16200 $as_echo_n "(cached) " >&6
16201 else
16202 lt_cv_prog_compiler__b=no
16203 save_LDFLAGS="$LDFLAGS"
16204 LDFLAGS="$LDFLAGS -b"
16205 echo "$lt_simple_link_test_code" > conftest.$ac_ext
16206 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
16207 # The linker can only warn and ignore the option if not recognized
16208 # So say no if there are warnings
16209 if test -s conftest.err; then
16210 # Append any errors to the config.log.
16211 cat conftest.err 1>&5
16212 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
16213 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
16214 if diff conftest.exp conftest.er2 >/dev/null; then
16215 lt_cv_prog_compiler__b=yes
16217 else
16218 lt_cv_prog_compiler__b=yes
16221 $RM -r conftest*
16222 LDFLAGS="$save_LDFLAGS"
16225 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler__b" >&5
16226 $as_echo "$lt_cv_prog_compiler__b" >&6; }
16228 if test x"$lt_cv_prog_compiler__b" = xyes; then
16229 archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
16230 else
16231 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
16235 esac
16237 if test "$with_gnu_ld" = no; then
16238 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
16239 hardcode_libdir_separator=:
16241 case $host_cpu in
16242 hppa*64*|ia64*)
16243 hardcode_direct=no
16244 hardcode_shlibpath_var=no
16247 hardcode_direct=yes
16248 hardcode_direct_absolute=yes
16249 export_dynamic_flag_spec='${wl}-E'
16251 # hardcode_minus_L: Not really in the search PATH,
16252 # but as the default location of the library.
16253 hardcode_minus_L=yes
16255 esac
16259 irix5* | irix6* | nonstopux*)
16260 if test "$GCC" = yes; then
16261 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'
16262 # Try to use the -exported_symbol ld option, if it does not
16263 # work, assume that -exports_file does not work either and
16264 # implicitly export all symbols.
16265 save_LDFLAGS="$LDFLAGS"
16266 LDFLAGS="$LDFLAGS -shared ${wl}-exported_symbol ${wl}foo ${wl}-update_registry ${wl}/dev/null"
16267 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16268 /* end confdefs.h. */
16269 int foo(void) {}
16270 _ACEOF
16271 if ac_fn_c_try_link "$LINENO"; then :
16272 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'
16275 rm -f core conftest.err conftest.$ac_objext \
16276 conftest$ac_exeext conftest.$ac_ext
16277 LDFLAGS="$save_LDFLAGS"
16278 else
16279 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'
16280 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'
16282 archive_cmds_need_lc='no'
16283 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
16284 hardcode_libdir_separator=:
16285 inherit_rpath=yes
16286 link_all_deplibs=yes
16289 netbsd*)
16290 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
16291 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
16292 else
16293 archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
16295 hardcode_libdir_flag_spec='-R$libdir'
16296 hardcode_direct=yes
16297 hardcode_shlibpath_var=no
16300 newsos6)
16301 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
16302 hardcode_direct=yes
16303 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
16304 hardcode_libdir_separator=:
16305 hardcode_shlibpath_var=no
16308 *nto* | *qnx*)
16311 openbsd*)
16312 if test -f /usr/libexec/ld.so; then
16313 hardcode_direct=yes
16314 hardcode_shlibpath_var=no
16315 hardcode_direct_absolute=yes
16316 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
16317 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
16318 archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
16319 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
16320 export_dynamic_flag_spec='${wl}-E'
16321 else
16322 case $host_os in
16323 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
16324 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
16325 hardcode_libdir_flag_spec='-R$libdir'
16328 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
16329 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
16331 esac
16333 else
16334 ld_shlibs=no
16338 os2*)
16339 hardcode_libdir_flag_spec='-L$libdir'
16340 hardcode_minus_L=yes
16341 allow_undefined_flag=unsupported
16342 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'
16343 old_archive_from_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
16346 osf3*)
16347 if test "$GCC" = yes; then
16348 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
16349 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'
16350 else
16351 allow_undefined_flag=' -expect_unresolved \*'
16352 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'
16354 archive_cmds_need_lc='no'
16355 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
16356 hardcode_libdir_separator=:
16359 osf4* | osf5*) # as osf3* with the addition of -msym flag
16360 if test "$GCC" = yes; then
16361 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
16362 archive_cmds='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags ${wl}-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'
16363 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
16364 else
16365 allow_undefined_flag=' -expect_unresolved \*'
16366 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'
16367 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~
16368 $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'
16370 # Both c and cxx compiler support -rpath directly
16371 hardcode_libdir_flag_spec='-rpath $libdir'
16373 archive_cmds_need_lc='no'
16374 hardcode_libdir_separator=:
16377 solaris*)
16378 no_undefined_flag=' -z defs'
16379 if test "$GCC" = yes; then
16380 wlarc='${wl}'
16381 archive_cmds='$CC -shared ${wl}-z ${wl}text ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
16382 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
16383 $CC -shared ${wl}-z ${wl}text ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
16384 else
16385 case `$CC -V 2>&1` in
16386 *"Compilers 5.0"*)
16387 wlarc=''
16388 archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
16389 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
16390 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp'
16393 wlarc='${wl}'
16394 archive_cmds='$CC -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $compiler_flags'
16395 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
16396 $CC -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
16398 esac
16400 hardcode_libdir_flag_spec='-R$libdir'
16401 hardcode_shlibpath_var=no
16402 case $host_os in
16403 solaris2.[0-5] | solaris2.[0-5].*) ;;
16405 # The compiler driver will combine and reorder linker options,
16406 # but understands `-z linker_flag'. GCC discards it without `$wl',
16407 # but is careful enough not to reorder.
16408 # Supported since Solaris 2.6 (maybe 2.5.1?)
16409 if test "$GCC" = yes; then
16410 whole_archive_flag_spec='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
16411 else
16412 whole_archive_flag_spec='-z allextract$convenience -z defaultextract'
16415 esac
16416 link_all_deplibs=yes
16419 sunos4*)
16420 if test "x$host_vendor" = xsequent; then
16421 # Use $CC to link under sequent, because it throws in some extra .o
16422 # files that make .init and .fini sections work.
16423 archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
16424 else
16425 archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
16427 hardcode_libdir_flag_spec='-L$libdir'
16428 hardcode_direct=yes
16429 hardcode_minus_L=yes
16430 hardcode_shlibpath_var=no
16433 sysv4)
16434 case $host_vendor in
16435 sni)
16436 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
16437 hardcode_direct=yes # is this really true???
16439 siemens)
16440 ## LD is ld it makes a PLAMLIB
16441 ## CC just makes a GrossModule.
16442 archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
16443 reload_cmds='$CC -r -o $output$reload_objs'
16444 hardcode_direct=no
16446 motorola)
16447 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
16448 hardcode_direct=no #Motorola manual says yes, but my tests say they lie
16450 esac
16451 runpath_var='LD_RUN_PATH'
16452 hardcode_shlibpath_var=no
16455 sysv4.3*)
16456 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
16457 hardcode_shlibpath_var=no
16458 export_dynamic_flag_spec='-Bexport'
16461 sysv4*MP*)
16462 if test -d /usr/nec; then
16463 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
16464 hardcode_shlibpath_var=no
16465 runpath_var=LD_RUN_PATH
16466 hardcode_runpath_var=yes
16467 ld_shlibs=yes
16471 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
16472 no_undefined_flag='${wl}-z,text'
16473 archive_cmds_need_lc=no
16474 hardcode_shlibpath_var=no
16475 runpath_var='LD_RUN_PATH'
16477 if test "$GCC" = yes; then
16478 archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
16479 archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
16480 else
16481 archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
16482 archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
16486 sysv5* | sco3.2v5* | sco5v6*)
16487 # Note: We can NOT use -z defs as we might desire, because we do not
16488 # link with -lc, and that would cause any symbols used from libc to
16489 # always be unresolved, which means just about no library would
16490 # ever link correctly. If we're not using GNU ld we use -z text
16491 # though, which does catch some bad symbols but isn't as heavy-handed
16492 # as -z defs.
16493 no_undefined_flag='${wl}-z,text'
16494 allow_undefined_flag='${wl}-z,nodefs'
16495 archive_cmds_need_lc=no
16496 hardcode_shlibpath_var=no
16497 hardcode_libdir_flag_spec='${wl}-R,$libdir'
16498 hardcode_libdir_separator=':'
16499 link_all_deplibs=yes
16500 export_dynamic_flag_spec='${wl}-Bexport'
16501 runpath_var='LD_RUN_PATH'
16503 if test "$GCC" = yes; then
16504 archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
16505 archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
16506 else
16507 archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
16508 archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
16512 uts4*)
16513 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
16514 hardcode_libdir_flag_spec='-L$libdir'
16515 hardcode_shlibpath_var=no
16519 ld_shlibs=no
16521 esac
16523 if test x$host_vendor = xsni; then
16524 case $host in
16525 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
16526 export_dynamic_flag_spec='${wl}-Blargedynsym'
16528 esac
16532 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs" >&5
16533 $as_echo "$ld_shlibs" >&6; }
16534 test "$ld_shlibs" = no && can_build_shared=no
16536 with_gnu_ld=$with_gnu_ld
16553 # Do we need to explicitly link libc?
16555 case "x$archive_cmds_need_lc" in
16556 x|xyes)
16557 # Assume -lc should be added
16558 archive_cmds_need_lc=yes
16560 if test "$enable_shared" = yes && test "$GCC" = yes; then
16561 case $archive_cmds in
16562 *'~'*)
16563 # FIXME: we may have to deal with multi-command sequences.
16565 '$CC '*)
16566 # Test whether the compiler implicitly links with -lc since on some
16567 # systems, -lgcc has to come before -lc. If gcc already passes -lc
16568 # to ld, don't add -lc before -lgcc.
16569 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
16570 $as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
16571 if test "${lt_cv_archive_cmds_need_lc+set}" = set; then :
16572 $as_echo_n "(cached) " >&6
16573 else
16574 $RM conftest*
16575 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
16577 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
16578 (eval $ac_compile) 2>&5
16579 ac_status=$?
16580 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
16581 test $ac_status = 0; } 2>conftest.err; then
16582 soname=conftest
16583 lib=conftest
16584 libobjs=conftest.$ac_objext
16585 deplibs=
16586 wl=$lt_prog_compiler_wl
16587 pic_flag=$lt_prog_compiler_pic
16588 compiler_flags=-v
16589 linker_flags=-v
16590 verstring=
16591 output_objdir=.
16592 libname=conftest
16593 lt_save_allow_undefined_flag=$allow_undefined_flag
16594 allow_undefined_flag=
16595 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5
16596 (eval $archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
16597 ac_status=$?
16598 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
16599 test $ac_status = 0; }
16600 then
16601 lt_cv_archive_cmds_need_lc=no
16602 else
16603 lt_cv_archive_cmds_need_lc=yes
16605 allow_undefined_flag=$lt_save_allow_undefined_flag
16606 else
16607 cat conftest.err 1>&5
16609 $RM conftest*
16612 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc" >&5
16613 $as_echo "$lt_cv_archive_cmds_need_lc" >&6; }
16614 archive_cmds_need_lc=$lt_cv_archive_cmds_need_lc
16616 esac
16619 esac
16777 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
16778 $as_echo_n "checking dynamic linker characteristics... " >&6; }
16780 if test "$GCC" = yes; then
16781 case $host_os in
16782 darwin*) lt_awk_arg="/^libraries:/,/LR/" ;;
16783 *) lt_awk_arg="/^libraries:/" ;;
16784 esac
16785 case $host_os in
16786 mingw* | cegcc*) lt_sed_strip_eq="s,=\([A-Za-z]:\),\1,g" ;;
16787 *) lt_sed_strip_eq="s,=/,/,g" ;;
16788 esac
16789 lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e $lt_sed_strip_eq`
16790 case $lt_search_path_spec in
16791 *\;*)
16792 # if the path contains ";" then we assume it to be the separator
16793 # otherwise default to the standard path separator (i.e. ":") - it is
16794 # assumed that no part of a normal pathname contains ";" but that should
16795 # okay in the real world where ";" in dirpaths is itself problematic.
16796 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED 's/;/ /g'`
16799 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED "s/$PATH_SEPARATOR/ /g"`
16801 esac
16802 # Ok, now we have the path, separated by spaces, we can step through it
16803 # and add multilib dir if necessary.
16804 lt_tmp_lt_search_path_spec=
16805 lt_multi_os_dir=`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null`
16806 for lt_sys_path in $lt_search_path_spec; do
16807 if test -d "$lt_sys_path/$lt_multi_os_dir"; then
16808 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path/$lt_multi_os_dir"
16809 else
16810 test -d "$lt_sys_path" && \
16811 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path"
16813 done
16814 lt_search_path_spec=`$ECHO "$lt_tmp_lt_search_path_spec" | awk '
16815 BEGIN {RS=" "; FS="/|\n";} {
16816 lt_foo="";
16817 lt_count=0;
16818 for (lt_i = NF; lt_i > 0; lt_i--) {
16819 if ($lt_i != "" && $lt_i != ".") {
16820 if ($lt_i == "..") {
16821 lt_count++;
16822 } else {
16823 if (lt_count == 0) {
16824 lt_foo="/" $lt_i lt_foo;
16825 } else {
16826 lt_count--;
16831 if (lt_foo != "") { lt_freq[lt_foo]++; }
16832 if (lt_freq[lt_foo] == 1) { print lt_foo; }
16834 # AWK program above erroneously prepends '/' to C:/dos/paths
16835 # for these hosts.
16836 case $host_os in
16837 mingw* | cegcc*) lt_search_path_spec=`$ECHO "$lt_search_path_spec" |\
16838 $SED 's,/\([A-Za-z]:\),\1,g'` ;;
16839 esac
16840 sys_lib_search_path_spec=`$ECHO "$lt_search_path_spec" | $lt_NL2SP`
16841 else
16842 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
16844 library_names_spec=
16845 libname_spec='lib$name'
16846 soname_spec=
16847 shrext_cmds=".so"
16848 postinstall_cmds=
16849 postuninstall_cmds=
16850 finish_cmds=
16851 finish_eval=
16852 shlibpath_var=
16853 shlibpath_overrides_runpath=unknown
16854 version_type=none
16855 dynamic_linker="$host_os ld.so"
16856 sys_lib_dlsearch_path_spec="/lib /usr/lib"
16857 need_lib_prefix=unknown
16858 hardcode_into_libs=no
16860 # when you set need_version to no, make sure it does not cause -set_version
16861 # flags to be left without arguments
16862 need_version=unknown
16864 case $host_os in
16865 aix3*)
16866 version_type=linux
16867 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
16868 shlibpath_var=LIBPATH
16870 # AIX 3 has no versioning support, so we append a major version to the name.
16871 soname_spec='${libname}${release}${shared_ext}$major'
16874 aix[4-9]*)
16875 version_type=linux
16876 need_lib_prefix=no
16877 need_version=no
16878 hardcode_into_libs=yes
16879 if test "$host_cpu" = ia64; then
16880 # AIX 5 supports IA64
16881 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
16882 shlibpath_var=LD_LIBRARY_PATH
16883 else
16884 # With GCC up to 2.95.x, collect2 would create an import file
16885 # for dependence libraries. The import file would start with
16886 # the line `#! .'. This would cause the generated library to
16887 # depend on `.', always an invalid library. This was fixed in
16888 # development snapshots of GCC prior to 3.0.
16889 case $host_os in
16890 aix4 | aix4.[01] | aix4.[01].*)
16891 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
16892 echo ' yes '
16893 echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then
16895 else
16896 can_build_shared=no
16899 esac
16900 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
16901 # soname into executable. Probably we can add versioning support to
16902 # collect2, so additional links can be useful in future.
16903 if test "$aix_use_runtimelinking" = yes; then
16904 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
16905 # instead of lib<name>.a to let people know that these are not
16906 # typical AIX shared libraries.
16907 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16908 else
16909 # We preserve .a as extension for shared libraries through AIX4.2
16910 # and later when we are not doing run time linking.
16911 library_names_spec='${libname}${release}.a $libname.a'
16912 soname_spec='${libname}${release}${shared_ext}$major'
16914 shlibpath_var=LIBPATH
16918 amigaos*)
16919 case $host_cpu in
16920 powerpc)
16921 # Since July 2007 AmigaOS4 officially supports .so libraries.
16922 # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
16923 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16925 m68k)
16926 library_names_spec='$libname.ixlibrary $libname.a'
16927 # Create ${libname}_ixlibrary.a entries in /sys/libs.
16928 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'
16930 esac
16933 beos*)
16934 library_names_spec='${libname}${shared_ext}'
16935 dynamic_linker="$host_os ld.so"
16936 shlibpath_var=LIBRARY_PATH
16939 bsdi[45]*)
16940 version_type=linux
16941 need_version=no
16942 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16943 soname_spec='${libname}${release}${shared_ext}$major'
16944 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
16945 shlibpath_var=LD_LIBRARY_PATH
16946 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
16947 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
16948 # the default ld.so.conf also contains /usr/contrib/lib and
16949 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
16950 # libtool to hard-code these into programs
16953 cygwin* | mingw* | pw32* | cegcc*)
16954 version_type=windows
16955 shrext_cmds=".dll"
16956 need_version=no
16957 need_lib_prefix=no
16959 case $GCC,$host_os in
16960 yes,cygwin* | yes,mingw* | yes,pw32* | yes,cegcc*)
16961 library_names_spec='$libname.dll.a'
16962 # DLL is installed to $(libdir)/../bin by postinstall_cmds
16963 postinstall_cmds='base_file=`basename \${file}`~
16964 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
16965 dldir=$destdir/`dirname \$dlpath`~
16966 test -d \$dldir || mkdir -p \$dldir~
16967 $install_prog $dir/$dlname \$dldir/$dlname~
16968 chmod a+x \$dldir/$dlname~
16969 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
16970 eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
16972 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
16973 dlpath=$dir/\$dldll~
16974 $RM \$dlpath'
16975 shlibpath_overrides_runpath=yes
16977 case $host_os in
16978 cygwin*)
16979 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
16980 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
16982 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/lib/w32api"
16984 mingw* | cegcc*)
16985 # MinGW DLLs use traditional 'lib' prefix
16986 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
16988 pw32*)
16989 # pw32 DLLs use 'pw' prefix rather than 'lib'
16990 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
16992 esac
16996 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
16998 esac
16999 dynamic_linker='Win32 ld.exe'
17000 # FIXME: first we should search . and the directory the executable is in
17001 shlibpath_var=PATH
17004 darwin* | rhapsody*)
17005 dynamic_linker="$host_os dyld"
17006 version_type=darwin
17007 need_lib_prefix=no
17008 need_version=no
17009 library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext'
17010 soname_spec='${libname}${release}${major}$shared_ext'
17011 shlibpath_overrides_runpath=yes
17012 shlibpath_var=DYLD_LIBRARY_PATH
17013 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
17015 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib"
17016 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
17019 dgux*)
17020 version_type=linux
17021 need_lib_prefix=no
17022 need_version=no
17023 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
17024 soname_spec='${libname}${release}${shared_ext}$major'
17025 shlibpath_var=LD_LIBRARY_PATH
17028 freebsd* | dragonfly*)
17029 # DragonFly does not have aout. When/if they implement a new
17030 # versioning mechanism, adjust this.
17031 if test -x /usr/bin/objformat; then
17032 objformat=`/usr/bin/objformat`
17033 else
17034 case $host_os in
17035 freebsd[23].*) objformat=aout ;;
17036 *) objformat=elf ;;
17037 esac
17039 version_type=freebsd-$objformat
17040 case $version_type in
17041 freebsd-elf*)
17042 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
17043 need_version=no
17044 need_lib_prefix=no
17046 freebsd-*)
17047 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
17048 need_version=yes
17050 esac
17051 shlibpath_var=LD_LIBRARY_PATH
17052 case $host_os in
17053 freebsd2.*)
17054 shlibpath_overrides_runpath=yes
17056 freebsd3.[01]* | freebsdelf3.[01]*)
17057 shlibpath_overrides_runpath=yes
17058 hardcode_into_libs=yes
17060 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
17061 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
17062 shlibpath_overrides_runpath=no
17063 hardcode_into_libs=yes
17065 *) # from 4.6 on, and DragonFly
17066 shlibpath_overrides_runpath=yes
17067 hardcode_into_libs=yes
17069 esac
17072 gnu*)
17073 version_type=linux
17074 need_lib_prefix=no
17075 need_version=no
17076 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
17077 soname_spec='${libname}${release}${shared_ext}$major'
17078 shlibpath_var=LD_LIBRARY_PATH
17079 hardcode_into_libs=yes
17082 haiku*)
17083 version_type=linux
17084 need_lib_prefix=no
17085 need_version=no
17086 dynamic_linker="$host_os runtime_loader"
17087 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
17088 soname_spec='${libname}${release}${shared_ext}$major'
17089 shlibpath_var=LIBRARY_PATH
17090 shlibpath_overrides_runpath=yes
17091 sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/beos/system/lib'
17092 hardcode_into_libs=yes
17095 hpux9* | hpux10* | hpux11*)
17096 # Give a soname corresponding to the major version so that dld.sl refuses to
17097 # link against other versions.
17098 version_type=sunos
17099 need_lib_prefix=no
17100 need_version=no
17101 case $host_cpu in
17102 ia64*)
17103 shrext_cmds='.so'
17104 hardcode_into_libs=yes
17105 dynamic_linker="$host_os dld.so"
17106 shlibpath_var=LD_LIBRARY_PATH
17107 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
17108 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17109 soname_spec='${libname}${release}${shared_ext}$major'
17110 if test "X$HPUX_IA64_MODE" = X32; then
17111 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
17112 else
17113 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
17115 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
17117 hppa*64*)
17118 shrext_cmds='.sl'
17119 hardcode_into_libs=yes
17120 dynamic_linker="$host_os dld.sl"
17121 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
17122 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
17123 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17124 soname_spec='${libname}${release}${shared_ext}$major'
17125 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
17126 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
17129 shrext_cmds='.sl'
17130 dynamic_linker="$host_os dld.sl"
17131 shlibpath_var=SHLIB_PATH
17132 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
17133 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17134 soname_spec='${libname}${release}${shared_ext}$major'
17136 esac
17137 # HP-UX runs *really* slowly unless shared libraries are mode 555, ...
17138 postinstall_cmds='chmod 555 $lib'
17139 # or fails outright, so override atomically:
17140 install_override_mode=555
17143 interix[3-9]*)
17144 version_type=linux
17145 need_lib_prefix=no
17146 need_version=no
17147 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
17148 soname_spec='${libname}${release}${shared_ext}$major'
17149 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
17150 shlibpath_var=LD_LIBRARY_PATH
17151 shlibpath_overrides_runpath=no
17152 hardcode_into_libs=yes
17155 irix5* | irix6* | nonstopux*)
17156 case $host_os in
17157 nonstopux*) version_type=nonstopux ;;
17159 if test "$lt_cv_prog_gnu_ld" = yes; then
17160 version_type=linux
17161 else
17162 version_type=irix
17163 fi ;;
17164 esac
17165 need_lib_prefix=no
17166 need_version=no
17167 soname_spec='${libname}${release}${shared_ext}$major'
17168 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
17169 case $host_os in
17170 irix5* | nonstopux*)
17171 libsuff= shlibsuff=
17174 case $LD in # libtool.m4 will add one of these switches to LD
17175 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
17176 libsuff= shlibsuff= libmagic=32-bit;;
17177 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
17178 libsuff=32 shlibsuff=N32 libmagic=N32;;
17179 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
17180 libsuff=64 shlibsuff=64 libmagic=64-bit;;
17181 *) libsuff= shlibsuff= libmagic=never-match;;
17182 esac
17184 esac
17185 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
17186 shlibpath_overrides_runpath=no
17187 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
17188 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
17189 hardcode_into_libs=yes
17192 # No shared lib support for Linux oldld, aout, or coff.
17193 linux*oldld* | linux*aout* | linux*coff*)
17194 dynamic_linker=no
17197 # This must be Linux ELF.
17198 linux* | k*bsd*-gnu | kopensolaris*-gnu)
17199 version_type=linux
17200 need_lib_prefix=no
17201 need_version=no
17202 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17203 soname_spec='${libname}${release}${shared_ext}$major'
17204 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
17205 shlibpath_var=LD_LIBRARY_PATH
17206 shlibpath_overrides_runpath=no
17208 # Some binutils ld are patched to set DT_RUNPATH
17209 if test "${lt_cv_shlibpath_overrides_runpath+set}" = set; then :
17210 $as_echo_n "(cached) " >&6
17211 else
17212 lt_cv_shlibpath_overrides_runpath=no
17213 save_LDFLAGS=$LDFLAGS
17214 save_libdir=$libdir
17215 eval "libdir=/foo; wl=\"$lt_prog_compiler_wl\"; \
17216 LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec\""
17217 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17218 /* end confdefs.h. */
17221 main ()
17225 return 0;
17227 _ACEOF
17228 if ac_fn_c_try_link "$LINENO"; then :
17229 if ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then :
17230 lt_cv_shlibpath_overrides_runpath=yes
17233 rm -f core conftest.err conftest.$ac_objext \
17234 conftest$ac_exeext conftest.$ac_ext
17235 LDFLAGS=$save_LDFLAGS
17236 libdir=$save_libdir
17240 shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath
17242 # This implies no fast_install, which is unacceptable.
17243 # Some rework will be needed to allow for fast_install
17244 # before this can be enabled.
17245 hardcode_into_libs=yes
17247 # Append ld.so.conf contents to the search path
17248 if test -f /etc/ld.so.conf; then
17249 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' ' '`
17250 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
17253 # We used to test for /lib/ld.so.1 and disable shared libraries on
17254 # powerpc, because MkLinux only supported shared libraries with the
17255 # GNU dynamic linker. Since this was broken with cross compilers,
17256 # most powerpc-linux boxes support dynamic linking these days and
17257 # people can always --disable-shared, the test was removed, and we
17258 # assume the GNU/Linux dynamic linker is in use.
17259 dynamic_linker='GNU/Linux ld.so'
17262 netbsd*)
17263 version_type=sunos
17264 need_lib_prefix=no
17265 need_version=no
17266 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
17267 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
17268 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
17269 dynamic_linker='NetBSD (a.out) ld.so'
17270 else
17271 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
17272 soname_spec='${libname}${release}${shared_ext}$major'
17273 dynamic_linker='NetBSD ld.elf_so'
17275 shlibpath_var=LD_LIBRARY_PATH
17276 shlibpath_overrides_runpath=yes
17277 hardcode_into_libs=yes
17280 newsos6)
17281 version_type=linux
17282 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17283 shlibpath_var=LD_LIBRARY_PATH
17284 shlibpath_overrides_runpath=yes
17287 *nto* | *qnx*)
17288 version_type=qnx
17289 need_lib_prefix=no
17290 need_version=no
17291 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17292 soname_spec='${libname}${release}${shared_ext}$major'
17293 shlibpath_var=LD_LIBRARY_PATH
17294 shlibpath_overrides_runpath=no
17295 hardcode_into_libs=yes
17296 dynamic_linker='ldqnx.so'
17299 openbsd*)
17300 version_type=sunos
17301 sys_lib_dlsearch_path_spec="/usr/lib"
17302 need_lib_prefix=no
17303 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
17304 case $host_os in
17305 openbsd3.3 | openbsd3.3.*) need_version=yes ;;
17306 *) need_version=no ;;
17307 esac
17308 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
17309 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
17310 shlibpath_var=LD_LIBRARY_PATH
17311 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
17312 case $host_os in
17313 openbsd2.[89] | openbsd2.[89].*)
17314 shlibpath_overrides_runpath=no
17317 shlibpath_overrides_runpath=yes
17319 esac
17320 else
17321 shlibpath_overrides_runpath=yes
17325 os2*)
17326 libname_spec='$name'
17327 shrext_cmds=".dll"
17328 need_lib_prefix=no
17329 library_names_spec='$libname${shared_ext} $libname.a'
17330 dynamic_linker='OS/2 ld.exe'
17331 shlibpath_var=LIBPATH
17334 osf3* | osf4* | osf5*)
17335 version_type=osf
17336 need_lib_prefix=no
17337 need_version=no
17338 soname_spec='${libname}${release}${shared_ext}$major'
17339 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17340 shlibpath_var=LD_LIBRARY_PATH
17341 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
17342 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
17345 rdos*)
17346 dynamic_linker=no
17349 solaris*)
17350 version_type=linux
17351 need_lib_prefix=no
17352 need_version=no
17353 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17354 soname_spec='${libname}${release}${shared_ext}$major'
17355 shlibpath_var=LD_LIBRARY_PATH
17356 shlibpath_overrides_runpath=yes
17357 hardcode_into_libs=yes
17358 # ldd complains unless libraries are executable
17359 postinstall_cmds='chmod +x $lib'
17362 sunos4*)
17363 version_type=sunos
17364 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
17365 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
17366 shlibpath_var=LD_LIBRARY_PATH
17367 shlibpath_overrides_runpath=yes
17368 if test "$with_gnu_ld" = yes; then
17369 need_lib_prefix=no
17371 need_version=yes
17374 sysv4 | sysv4.3*)
17375 version_type=linux
17376 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17377 soname_spec='${libname}${release}${shared_ext}$major'
17378 shlibpath_var=LD_LIBRARY_PATH
17379 case $host_vendor in
17380 sni)
17381 shlibpath_overrides_runpath=no
17382 need_lib_prefix=no
17383 runpath_var=LD_RUN_PATH
17385 siemens)
17386 need_lib_prefix=no
17388 motorola)
17389 need_lib_prefix=no
17390 need_version=no
17391 shlibpath_overrides_runpath=no
17392 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
17394 esac
17397 sysv4*MP*)
17398 if test -d /usr/nec ;then
17399 version_type=linux
17400 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
17401 soname_spec='$libname${shared_ext}.$major'
17402 shlibpath_var=LD_LIBRARY_PATH
17406 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
17407 version_type=freebsd-elf
17408 need_lib_prefix=no
17409 need_version=no
17410 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
17411 soname_spec='${libname}${release}${shared_ext}$major'
17412 shlibpath_var=LD_LIBRARY_PATH
17413 shlibpath_overrides_runpath=yes
17414 hardcode_into_libs=yes
17415 if test "$with_gnu_ld" = yes; then
17416 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
17417 else
17418 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
17419 case $host_os in
17420 sco3.2v5*)
17421 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
17423 esac
17425 sys_lib_dlsearch_path_spec='/usr/lib'
17428 tpf*)
17429 # TPF is a cross-target only. Preferred cross-host = GNU/Linux.
17430 version_type=linux
17431 need_lib_prefix=no
17432 need_version=no
17433 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17434 shlibpath_var=LD_LIBRARY_PATH
17435 shlibpath_overrides_runpath=no
17436 hardcode_into_libs=yes
17439 uts4*)
17440 version_type=linux
17441 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17442 soname_spec='${libname}${release}${shared_ext}$major'
17443 shlibpath_var=LD_LIBRARY_PATH
17447 dynamic_linker=no
17449 esac
17450 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
17451 $as_echo "$dynamic_linker" >&6; }
17452 test "$dynamic_linker" = no && can_build_shared=no
17454 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
17455 if test "$GCC" = yes; then
17456 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
17459 if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
17460 sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
17462 if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
17463 sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
17557 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
17558 $as_echo_n "checking how to hardcode library paths into programs... " >&6; }
17559 hardcode_action=
17560 if test -n "$hardcode_libdir_flag_spec" ||
17561 test -n "$runpath_var" ||
17562 test "X$hardcode_automatic" = "Xyes" ; then
17564 # We can hardcode non-existent directories.
17565 if test "$hardcode_direct" != no &&
17566 # If the only mechanism to avoid hardcoding is shlibpath_var, we
17567 # have to relink, otherwise we might link with an installed library
17568 # when we should be linking with a yet-to-be-installed one
17569 ## test "$_LT_TAGVAR(hardcode_shlibpath_var, )" != no &&
17570 test "$hardcode_minus_L" != no; then
17571 # Linking always hardcodes the temporary library directory.
17572 hardcode_action=relink
17573 else
17574 # We can link without hardcoding, and we can hardcode nonexisting dirs.
17575 hardcode_action=immediate
17577 else
17578 # We cannot hardcode anything, or else we can only hardcode existing
17579 # directories.
17580 hardcode_action=unsupported
17582 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action" >&5
17583 $as_echo "$hardcode_action" >&6; }
17585 if test "$hardcode_action" = relink ||
17586 test "$inherit_rpath" = yes; then
17587 # Fast installation is not supported
17588 enable_fast_install=no
17589 elif test "$shlibpath_overrides_runpath" = yes ||
17590 test "$enable_shared" = no; then
17591 # Fast installation is not necessary
17592 enable_fast_install=needless
17600 if test "x$enable_dlopen" != xyes; then
17601 enable_dlopen=unknown
17602 enable_dlopen_self=unknown
17603 enable_dlopen_self_static=unknown
17604 else
17605 lt_cv_dlopen=no
17606 lt_cv_dlopen_libs=
17608 case $host_os in
17609 beos*)
17610 lt_cv_dlopen="load_add_on"
17611 lt_cv_dlopen_libs=
17612 lt_cv_dlopen_self=yes
17615 mingw* | pw32* | cegcc*)
17616 lt_cv_dlopen="LoadLibrary"
17617 lt_cv_dlopen_libs=
17620 cygwin*)
17621 lt_cv_dlopen="dlopen"
17622 lt_cv_dlopen_libs=
17625 darwin*)
17626 # if libdl is installed we need to link against it
17627 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
17628 $as_echo_n "checking for dlopen in -ldl... " >&6; }
17629 if test "${ac_cv_lib_dl_dlopen+set}" = set; then :
17630 $as_echo_n "(cached) " >&6
17631 else
17632 ac_check_lib_save_LIBS=$LIBS
17633 LIBS="-ldl $LIBS"
17634 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17635 /* end confdefs.h. */
17637 /* Override any GCC internal prototype to avoid an error.
17638 Use char because int might match the return type of a GCC
17639 builtin and then its argument prototype would still apply. */
17640 #ifdef __cplusplus
17641 extern "C"
17642 #endif
17643 char dlopen ();
17645 main ()
17647 return dlopen ();
17649 return 0;
17651 _ACEOF
17652 if ac_fn_c_try_link "$LINENO"; then :
17653 ac_cv_lib_dl_dlopen=yes
17654 else
17655 ac_cv_lib_dl_dlopen=no
17657 rm -f core conftest.err conftest.$ac_objext \
17658 conftest$ac_exeext conftest.$ac_ext
17659 LIBS=$ac_check_lib_save_LIBS
17661 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
17662 $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
17663 if test "x$ac_cv_lib_dl_dlopen" = x""yes; then :
17664 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
17665 else
17667 lt_cv_dlopen="dyld"
17668 lt_cv_dlopen_libs=
17669 lt_cv_dlopen_self=yes
17676 ac_fn_c_check_func "$LINENO" "shl_load" "ac_cv_func_shl_load"
17677 if test "x$ac_cv_func_shl_load" = x""yes; then :
17678 lt_cv_dlopen="shl_load"
17679 else
17680 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shl_load in -ldld" >&5
17681 $as_echo_n "checking for shl_load in -ldld... " >&6; }
17682 if test "${ac_cv_lib_dld_shl_load+set}" = set; then :
17683 $as_echo_n "(cached) " >&6
17684 else
17685 ac_check_lib_save_LIBS=$LIBS
17686 LIBS="-ldld $LIBS"
17687 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17688 /* end confdefs.h. */
17690 /* Override any GCC internal prototype to avoid an error.
17691 Use char because int might match the return type of a GCC
17692 builtin and then its argument prototype would still apply. */
17693 #ifdef __cplusplus
17694 extern "C"
17695 #endif
17696 char shl_load ();
17698 main ()
17700 return shl_load ();
17702 return 0;
17704 _ACEOF
17705 if ac_fn_c_try_link "$LINENO"; then :
17706 ac_cv_lib_dld_shl_load=yes
17707 else
17708 ac_cv_lib_dld_shl_load=no
17710 rm -f core conftest.err conftest.$ac_objext \
17711 conftest$ac_exeext conftest.$ac_ext
17712 LIBS=$ac_check_lib_save_LIBS
17714 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_shl_load" >&5
17715 $as_echo "$ac_cv_lib_dld_shl_load" >&6; }
17716 if test "x$ac_cv_lib_dld_shl_load" = x""yes; then :
17717 lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-ldld"
17718 else
17719 ac_fn_c_check_func "$LINENO" "dlopen" "ac_cv_func_dlopen"
17720 if test "x$ac_cv_func_dlopen" = x""yes; then :
17721 lt_cv_dlopen="dlopen"
17722 else
17723 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
17724 $as_echo_n "checking for dlopen in -ldl... " >&6; }
17725 if test "${ac_cv_lib_dl_dlopen+set}" = set; then :
17726 $as_echo_n "(cached) " >&6
17727 else
17728 ac_check_lib_save_LIBS=$LIBS
17729 LIBS="-ldl $LIBS"
17730 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17731 /* end confdefs.h. */
17733 /* Override any GCC internal prototype to avoid an error.
17734 Use char because int might match the return type of a GCC
17735 builtin and then its argument prototype would still apply. */
17736 #ifdef __cplusplus
17737 extern "C"
17738 #endif
17739 char dlopen ();
17741 main ()
17743 return dlopen ();
17745 return 0;
17747 _ACEOF
17748 if ac_fn_c_try_link "$LINENO"; then :
17749 ac_cv_lib_dl_dlopen=yes
17750 else
17751 ac_cv_lib_dl_dlopen=no
17753 rm -f core conftest.err conftest.$ac_objext \
17754 conftest$ac_exeext conftest.$ac_ext
17755 LIBS=$ac_check_lib_save_LIBS
17757 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
17758 $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
17759 if test "x$ac_cv_lib_dl_dlopen" = x""yes; then :
17760 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
17761 else
17762 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -lsvld" >&5
17763 $as_echo_n "checking for dlopen in -lsvld... " >&6; }
17764 if test "${ac_cv_lib_svld_dlopen+set}" = set; then :
17765 $as_echo_n "(cached) " >&6
17766 else
17767 ac_check_lib_save_LIBS=$LIBS
17768 LIBS="-lsvld $LIBS"
17769 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17770 /* end confdefs.h. */
17772 /* Override any GCC internal prototype to avoid an error.
17773 Use char because int might match the return type of a GCC
17774 builtin and then its argument prototype would still apply. */
17775 #ifdef __cplusplus
17776 extern "C"
17777 #endif
17778 char dlopen ();
17780 main ()
17782 return dlopen ();
17784 return 0;
17786 _ACEOF
17787 if ac_fn_c_try_link "$LINENO"; then :
17788 ac_cv_lib_svld_dlopen=yes
17789 else
17790 ac_cv_lib_svld_dlopen=no
17792 rm -f core conftest.err conftest.$ac_objext \
17793 conftest$ac_exeext conftest.$ac_ext
17794 LIBS=$ac_check_lib_save_LIBS
17796 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_svld_dlopen" >&5
17797 $as_echo "$ac_cv_lib_svld_dlopen" >&6; }
17798 if test "x$ac_cv_lib_svld_dlopen" = x""yes; then :
17799 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
17800 else
17801 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dld_link in -ldld" >&5
17802 $as_echo_n "checking for dld_link in -ldld... " >&6; }
17803 if test "${ac_cv_lib_dld_dld_link+set}" = set; then :
17804 $as_echo_n "(cached) " >&6
17805 else
17806 ac_check_lib_save_LIBS=$LIBS
17807 LIBS="-ldld $LIBS"
17808 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17809 /* end confdefs.h. */
17811 /* Override any GCC internal prototype to avoid an error.
17812 Use char because int might match the return type of a GCC
17813 builtin and then its argument prototype would still apply. */
17814 #ifdef __cplusplus
17815 extern "C"
17816 #endif
17817 char dld_link ();
17819 main ()
17821 return dld_link ();
17823 return 0;
17825 _ACEOF
17826 if ac_fn_c_try_link "$LINENO"; then :
17827 ac_cv_lib_dld_dld_link=yes
17828 else
17829 ac_cv_lib_dld_dld_link=no
17831 rm -f core conftest.err conftest.$ac_objext \
17832 conftest$ac_exeext conftest.$ac_ext
17833 LIBS=$ac_check_lib_save_LIBS
17835 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_dld_link" >&5
17836 $as_echo "$ac_cv_lib_dld_dld_link" >&6; }
17837 if test "x$ac_cv_lib_dld_dld_link" = x""yes; then :
17838 lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-ldld"
17857 esac
17859 if test "x$lt_cv_dlopen" != xno; then
17860 enable_dlopen=yes
17861 else
17862 enable_dlopen=no
17865 case $lt_cv_dlopen in
17866 dlopen)
17867 save_CPPFLAGS="$CPPFLAGS"
17868 test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
17870 save_LDFLAGS="$LDFLAGS"
17871 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
17873 save_LIBS="$LIBS"
17874 LIBS="$lt_cv_dlopen_libs $LIBS"
17876 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a program can dlopen itself" >&5
17877 $as_echo_n "checking whether a program can dlopen itself... " >&6; }
17878 if test "${lt_cv_dlopen_self+set}" = set; then :
17879 $as_echo_n "(cached) " >&6
17880 else
17881 if test "$cross_compiling" = yes; then :
17882 lt_cv_dlopen_self=cross
17883 else
17884 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
17885 lt_status=$lt_dlunknown
17886 cat > conftest.$ac_ext <<_LT_EOF
17887 #line 17881 "configure"
17888 #include "confdefs.h"
17890 #if HAVE_DLFCN_H
17891 #include <dlfcn.h>
17892 #endif
17894 #include <stdio.h>
17896 #ifdef RTLD_GLOBAL
17897 # define LT_DLGLOBAL RTLD_GLOBAL
17898 #else
17899 # ifdef DL_GLOBAL
17900 # define LT_DLGLOBAL DL_GLOBAL
17901 # else
17902 # define LT_DLGLOBAL 0
17903 # endif
17904 #endif
17906 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
17907 find out it does not work in some platform. */
17908 #ifndef LT_DLLAZY_OR_NOW
17909 # ifdef RTLD_LAZY
17910 # define LT_DLLAZY_OR_NOW RTLD_LAZY
17911 # else
17912 # ifdef DL_LAZY
17913 # define LT_DLLAZY_OR_NOW DL_LAZY
17914 # else
17915 # ifdef RTLD_NOW
17916 # define LT_DLLAZY_OR_NOW RTLD_NOW
17917 # else
17918 # ifdef DL_NOW
17919 # define LT_DLLAZY_OR_NOW DL_NOW
17920 # else
17921 # define LT_DLLAZY_OR_NOW 0
17922 # endif
17923 # endif
17924 # endif
17925 # endif
17926 #endif
17928 /* When -fvisbility=hidden is used, assume the code has been annotated
17929 correspondingly for the symbols needed. */
17930 #if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
17931 void fnord () __attribute__((visibility("default")));
17932 #endif
17934 void fnord () { int i=42; }
17935 int main ()
17937 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
17938 int status = $lt_dlunknown;
17940 if (self)
17942 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
17943 else
17945 if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
17946 else puts (dlerror ());
17948 /* dlclose (self); */
17950 else
17951 puts (dlerror ());
17953 return status;
17955 _LT_EOF
17956 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
17957 (eval $ac_link) 2>&5
17958 ac_status=$?
17959 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
17960 test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
17961 (./conftest; exit; ) >&5 2>/dev/null
17962 lt_status=$?
17963 case x$lt_status in
17964 x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
17965 x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
17966 x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;;
17967 esac
17968 else :
17969 # compilation failed
17970 lt_cv_dlopen_self=no
17973 rm -fr conftest*
17977 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self" >&5
17978 $as_echo "$lt_cv_dlopen_self" >&6; }
17980 if test "x$lt_cv_dlopen_self" = xyes; then
17981 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
17982 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a statically linked program can dlopen itself" >&5
17983 $as_echo_n "checking whether a statically linked program can dlopen itself... " >&6; }
17984 if test "${lt_cv_dlopen_self_static+set}" = set; then :
17985 $as_echo_n "(cached) " >&6
17986 else
17987 if test "$cross_compiling" = yes; then :
17988 lt_cv_dlopen_self_static=cross
17989 else
17990 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
17991 lt_status=$lt_dlunknown
17992 cat > conftest.$ac_ext <<_LT_EOF
17993 #line 17987 "configure"
17994 #include "confdefs.h"
17996 #if HAVE_DLFCN_H
17997 #include <dlfcn.h>
17998 #endif
18000 #include <stdio.h>
18002 #ifdef RTLD_GLOBAL
18003 # define LT_DLGLOBAL RTLD_GLOBAL
18004 #else
18005 # ifdef DL_GLOBAL
18006 # define LT_DLGLOBAL DL_GLOBAL
18007 # else
18008 # define LT_DLGLOBAL 0
18009 # endif
18010 #endif
18012 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
18013 find out it does not work in some platform. */
18014 #ifndef LT_DLLAZY_OR_NOW
18015 # ifdef RTLD_LAZY
18016 # define LT_DLLAZY_OR_NOW RTLD_LAZY
18017 # else
18018 # ifdef DL_LAZY
18019 # define LT_DLLAZY_OR_NOW DL_LAZY
18020 # else
18021 # ifdef RTLD_NOW
18022 # define LT_DLLAZY_OR_NOW RTLD_NOW
18023 # else
18024 # ifdef DL_NOW
18025 # define LT_DLLAZY_OR_NOW DL_NOW
18026 # else
18027 # define LT_DLLAZY_OR_NOW 0
18028 # endif
18029 # endif
18030 # endif
18031 # endif
18032 #endif
18034 /* When -fvisbility=hidden is used, assume the code has been annotated
18035 correspondingly for the symbols needed. */
18036 #if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
18037 void fnord () __attribute__((visibility("default")));
18038 #endif
18040 void fnord () { int i=42; }
18041 int main ()
18043 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
18044 int status = $lt_dlunknown;
18046 if (self)
18048 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
18049 else
18051 if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
18052 else puts (dlerror ());
18054 /* dlclose (self); */
18056 else
18057 puts (dlerror ());
18059 return status;
18061 _LT_EOF
18062 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
18063 (eval $ac_link) 2>&5
18064 ac_status=$?
18065 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
18066 test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
18067 (./conftest; exit; ) >&5 2>/dev/null
18068 lt_status=$?
18069 case x$lt_status in
18070 x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
18071 x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
18072 x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;;
18073 esac
18074 else :
18075 # compilation failed
18076 lt_cv_dlopen_self_static=no
18079 rm -fr conftest*
18083 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self_static" >&5
18084 $as_echo "$lt_cv_dlopen_self_static" >&6; }
18087 CPPFLAGS="$save_CPPFLAGS"
18088 LDFLAGS="$save_LDFLAGS"
18089 LIBS="$save_LIBS"
18091 esac
18093 case $lt_cv_dlopen_self in
18094 yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
18095 *) enable_dlopen_self=unknown ;;
18096 esac
18098 case $lt_cv_dlopen_self_static in
18099 yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
18100 *) enable_dlopen_self_static=unknown ;;
18101 esac
18120 striplib=
18121 old_striplib=
18122 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stripping libraries is possible" >&5
18123 $as_echo_n "checking whether stripping libraries is possible... " >&6; }
18124 if test -n "$STRIP" && $STRIP -V 2>&1 | $GREP "GNU strip" >/dev/null; then
18125 test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
18126 test -z "$striplib" && striplib="$STRIP --strip-unneeded"
18127 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
18128 $as_echo "yes" >&6; }
18129 else
18130 # FIXME - insert some real tests, host_os isn't really good enough
18131 case $host_os in
18132 darwin*)
18133 if test -n "$STRIP" ; then
18134 striplib="$STRIP -x"
18135 old_striplib="$STRIP -S"
18136 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
18137 $as_echo "yes" >&6; }
18138 else
18139 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
18140 $as_echo "no" >&6; }
18144 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
18145 $as_echo "no" >&6; }
18147 esac
18161 # Report which library types will actually be built
18162 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if libtool supports shared libraries" >&5
18163 $as_echo_n "checking if libtool supports shared libraries... " >&6; }
18164 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $can_build_shared" >&5
18165 $as_echo "$can_build_shared" >&6; }
18167 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build shared libraries" >&5
18168 $as_echo_n "checking whether to build shared libraries... " >&6; }
18169 test "$can_build_shared" = "no" && enable_shared=no
18171 # On AIX, shared libraries and static libraries use the same namespace, and
18172 # are all built from PIC.
18173 case $host_os in
18174 aix3*)
18175 test "$enable_shared" = yes && enable_static=no
18176 if test -n "$RANLIB"; then
18177 archive_cmds="$archive_cmds~\$RANLIB \$lib"
18178 postinstall_cmds='$RANLIB $lib'
18182 aix[4-9]*)
18183 if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
18184 test "$enable_shared" = yes && enable_static=no
18187 esac
18188 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_shared" >&5
18189 $as_echo "$enable_shared" >&6; }
18191 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build static libraries" >&5
18192 $as_echo_n "checking whether to build static libraries... " >&6; }
18193 # Make sure either enable_shared or enable_static is yes.
18194 test "$enable_shared" = yes || enable_static=yes
18195 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_static" >&5
18196 $as_echo "$enable_static" >&6; }
18202 ac_ext=c
18203 ac_cpp='$CPP $CPPFLAGS'
18204 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18205 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18206 ac_compiler_gnu=$ac_cv_c_compiler_gnu
18208 CC="$lt_save_CC"
18210 if test -n "$CXX" && ( test "X$CXX" != "Xno" &&
18211 ( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) ||
18212 (test "X$CXX" != "Xg++"))) ; then
18213 ac_ext=cpp
18214 ac_cpp='$CXXCPP $CPPFLAGS'
18215 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18216 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18217 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
18218 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C++ preprocessor" >&5
18219 $as_echo_n "checking how to run the C++ preprocessor... " >&6; }
18220 if test -z "$CXXCPP"; then
18221 if test "${ac_cv_prog_CXXCPP+set}" = set; then :
18222 $as_echo_n "(cached) " >&6
18223 else
18224 # Double quotes because CXXCPP needs to be expanded
18225 for CXXCPP in "$CXX -E" "/lib/cpp"
18227 ac_preproc_ok=false
18228 for ac_cxx_preproc_warn_flag in '' yes
18230 # Use a header file that comes with gcc, so configuring glibc
18231 # with a fresh cross-compiler works.
18232 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
18233 # <limits.h> exists even on freestanding compilers.
18234 # On the NeXT, cc -E runs the code through the compiler's parser,
18235 # not just through cpp. "Syntax error" is here to catch this case.
18236 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18237 /* end confdefs.h. */
18238 #ifdef __STDC__
18239 # include <limits.h>
18240 #else
18241 # include <assert.h>
18242 #endif
18243 Syntax error
18244 _ACEOF
18245 if ac_fn_cxx_try_cpp "$LINENO"; then :
18247 else
18248 # Broken: fails on valid input.
18249 continue
18251 rm -f conftest.err conftest.$ac_ext
18253 # OK, works on sane cases. Now check whether nonexistent headers
18254 # can be detected and how.
18255 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18256 /* end confdefs.h. */
18257 #include <ac_nonexistent.h>
18258 _ACEOF
18259 if ac_fn_cxx_try_cpp "$LINENO"; then :
18260 # Broken: success on invalid input.
18261 continue
18262 else
18263 # Passes both tests.
18264 ac_preproc_ok=:
18265 break
18267 rm -f conftest.err conftest.$ac_ext
18269 done
18270 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
18271 rm -f conftest.err conftest.$ac_ext
18272 if $ac_preproc_ok; then :
18273 break
18276 done
18277 ac_cv_prog_CXXCPP=$CXXCPP
18280 CXXCPP=$ac_cv_prog_CXXCPP
18281 else
18282 ac_cv_prog_CXXCPP=$CXXCPP
18284 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXXCPP" >&5
18285 $as_echo "$CXXCPP" >&6; }
18286 ac_preproc_ok=false
18287 for ac_cxx_preproc_warn_flag in '' yes
18289 # Use a header file that comes with gcc, so configuring glibc
18290 # with a fresh cross-compiler works.
18291 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
18292 # <limits.h> exists even on freestanding compilers.
18293 # On the NeXT, cc -E runs the code through the compiler's parser,
18294 # not just through cpp. "Syntax error" is here to catch this case.
18295 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18296 /* end confdefs.h. */
18297 #ifdef __STDC__
18298 # include <limits.h>
18299 #else
18300 # include <assert.h>
18301 #endif
18302 Syntax error
18303 _ACEOF
18304 if ac_fn_cxx_try_cpp "$LINENO"; then :
18306 else
18307 # Broken: fails on valid input.
18308 continue
18310 rm -f conftest.err conftest.$ac_ext
18312 # OK, works on sane cases. Now check whether nonexistent headers
18313 # can be detected and how.
18314 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18315 /* end confdefs.h. */
18316 #include <ac_nonexistent.h>
18317 _ACEOF
18318 if ac_fn_cxx_try_cpp "$LINENO"; then :
18319 # Broken: success on invalid input.
18320 continue
18321 else
18322 # Passes both tests.
18323 ac_preproc_ok=:
18324 break
18326 rm -f conftest.err conftest.$ac_ext
18328 done
18329 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
18330 rm -f conftest.err conftest.$ac_ext
18331 if $ac_preproc_ok; then :
18333 else
18334 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
18335 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
18336 as_fn_error "C++ preprocessor \"$CXXCPP\" fails sanity check
18337 See \`config.log' for more details." "$LINENO" 5; }
18340 ac_ext=c
18341 ac_cpp='$CPP $CPPFLAGS'
18342 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18343 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18344 ac_compiler_gnu=$ac_cv_c_compiler_gnu
18346 else
18347 _lt_caught_CXX_error=yes
18350 ac_ext=cpp
18351 ac_cpp='$CXXCPP $CPPFLAGS'
18352 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18353 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18354 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
18356 archive_cmds_need_lc_CXX=no
18357 allow_undefined_flag_CXX=
18358 always_export_symbols_CXX=no
18359 archive_expsym_cmds_CXX=
18360 compiler_needs_object_CXX=no
18361 export_dynamic_flag_spec_CXX=
18362 hardcode_direct_CXX=no
18363 hardcode_direct_absolute_CXX=no
18364 hardcode_libdir_flag_spec_CXX=
18365 hardcode_libdir_flag_spec_ld_CXX=
18366 hardcode_libdir_separator_CXX=
18367 hardcode_minus_L_CXX=no
18368 hardcode_shlibpath_var_CXX=unsupported
18369 hardcode_automatic_CXX=no
18370 inherit_rpath_CXX=no
18371 module_cmds_CXX=
18372 module_expsym_cmds_CXX=
18373 link_all_deplibs_CXX=unknown
18374 old_archive_cmds_CXX=$old_archive_cmds
18375 reload_flag_CXX=$reload_flag
18376 reload_cmds_CXX=$reload_cmds
18377 no_undefined_flag_CXX=
18378 whole_archive_flag_spec_CXX=
18379 enable_shared_with_static_runtimes_CXX=no
18381 # Source file extension for C++ test sources.
18382 ac_ext=cpp
18384 # Object file extension for compiled C++ test sources.
18385 objext=o
18386 objext_CXX=$objext
18388 # No sense in running all these tests if we already determined that
18389 # the CXX compiler isn't working. Some variables (like enable_shared)
18390 # are currently assumed to apply to all compilers on this platform,
18391 # and will be corrupted by setting them based on a non-working compiler.
18392 if test "$_lt_caught_CXX_error" != yes; then
18393 # Code to be used in simple compile tests
18394 lt_simple_compile_test_code="int some_variable = 0;"
18396 # Code to be used in simple link tests
18397 lt_simple_link_test_code='int main(int, char *[]) { return(0); }'
18399 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
18406 # If no C compiler was specified, use CC.
18407 LTCC=${LTCC-"$CC"}
18409 # If no C compiler flags were specified, use CFLAGS.
18410 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
18412 # Allow CC to be a program name with arguments.
18413 compiler=$CC
18416 # save warnings/boilerplate of simple test code
18417 ac_outfile=conftest.$ac_objext
18418 echo "$lt_simple_compile_test_code" >conftest.$ac_ext
18419 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
18420 _lt_compiler_boilerplate=`cat conftest.err`
18421 $RM conftest*
18423 ac_outfile=conftest.$ac_objext
18424 echo "$lt_simple_link_test_code" >conftest.$ac_ext
18425 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
18426 _lt_linker_boilerplate=`cat conftest.err`
18427 $RM -r conftest*
18430 # Allow CC to be a program name with arguments.
18431 lt_save_CC=$CC
18432 lt_save_LD=$LD
18433 lt_save_GCC=$GCC
18434 GCC=$GXX
18435 lt_save_with_gnu_ld=$with_gnu_ld
18436 lt_save_path_LD=$lt_cv_path_LD
18437 if test -n "${lt_cv_prog_gnu_ldcxx+set}"; then
18438 lt_cv_prog_gnu_ld=$lt_cv_prog_gnu_ldcxx
18439 else
18440 $as_unset lt_cv_prog_gnu_ld
18442 if test -n "${lt_cv_path_LDCXX+set}"; then
18443 lt_cv_path_LD=$lt_cv_path_LDCXX
18444 else
18445 $as_unset lt_cv_path_LD
18447 test -z "${LDCXX+set}" || LD=$LDCXX
18448 CC=${CXX-"c++"}
18449 compiler=$CC
18450 compiler_CXX=$CC
18451 for cc_temp in $compiler""; do
18452 case $cc_temp in
18453 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
18454 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
18455 \-*) ;;
18456 *) break;;
18457 esac
18458 done
18459 cc_basename=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
18462 if test -n "$compiler"; then
18463 # We don't want -fno-exception when compiling C++ code, so set the
18464 # no_builtin_flag separately
18465 if test "$GXX" = yes; then
18466 lt_prog_compiler_no_builtin_flag_CXX=' -fno-builtin'
18467 else
18468 lt_prog_compiler_no_builtin_flag_CXX=
18471 if test "$GXX" = yes; then
18472 # Set up default GNU C++ configuration
18476 # Check whether --with-gnu-ld was given.
18477 if test "${with_gnu_ld+set}" = set; then :
18478 withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
18479 else
18480 with_gnu_ld=no
18483 ac_prog=ld
18484 if test "$GCC" = yes; then
18485 # Check if gcc -print-prog-name=ld gives a path.
18486 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
18487 $as_echo_n "checking for ld used by $CC... " >&6; }
18488 case $host in
18489 *-*-mingw*)
18490 # gcc leaves a trailing carriage return which upsets mingw
18491 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
18493 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
18494 esac
18495 case $ac_prog in
18496 # Accept absolute paths.
18497 [\\/]* | ?:[\\/]*)
18498 re_direlt='/[^/][^/]*/\.\./'
18499 # Canonicalize the pathname of ld
18500 ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
18501 while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
18502 ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
18503 done
18504 test -z "$LD" && LD="$ac_prog"
18507 # If it fails, then pretend we aren't using GCC.
18508 ac_prog=ld
18511 # If it is relative, then search for the first ld in PATH.
18512 with_gnu_ld=unknown
18514 esac
18515 elif test "$with_gnu_ld" = yes; then
18516 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
18517 $as_echo_n "checking for GNU ld... " >&6; }
18518 else
18519 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
18520 $as_echo_n "checking for non-GNU ld... " >&6; }
18522 if test "${lt_cv_path_LD+set}" = set; then :
18523 $as_echo_n "(cached) " >&6
18524 else
18525 if test -z "$LD"; then
18526 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
18527 for ac_dir in $PATH; do
18528 IFS="$lt_save_ifs"
18529 test -z "$ac_dir" && ac_dir=.
18530 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
18531 lt_cv_path_LD="$ac_dir/$ac_prog"
18532 # Check to see if the program is GNU ld. I'd rather use --version,
18533 # but apparently some variants of GNU ld only accept -v.
18534 # Break only if it was the GNU/non-GNU ld that we prefer.
18535 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
18536 *GNU* | *'with BFD'*)
18537 test "$with_gnu_ld" != no && break
18540 test "$with_gnu_ld" != yes && break
18542 esac
18544 done
18545 IFS="$lt_save_ifs"
18546 else
18547 lt_cv_path_LD="$LD" # Let the user override the test with a path.
18551 LD="$lt_cv_path_LD"
18552 if test -n "$LD"; then
18553 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
18554 $as_echo "$LD" >&6; }
18555 else
18556 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
18557 $as_echo "no" >&6; }
18559 test -z "$LD" && as_fn_error "no acceptable ld found in \$PATH" "$LINENO" 5
18560 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
18561 $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
18562 if test "${lt_cv_prog_gnu_ld+set}" = set; then :
18563 $as_echo_n "(cached) " >&6
18564 else
18565 # I'd rather use --version here, but apparently some GNU lds only accept -v.
18566 case `$LD -v 2>&1 </dev/null` in
18567 *GNU* | *'with BFD'*)
18568 lt_cv_prog_gnu_ld=yes
18571 lt_cv_prog_gnu_ld=no
18573 esac
18575 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
18576 $as_echo "$lt_cv_prog_gnu_ld" >&6; }
18577 with_gnu_ld=$lt_cv_prog_gnu_ld
18585 # Check if GNU C++ uses GNU ld as the underlying linker, since the
18586 # archiving commands below assume that GNU ld is being used.
18587 if test "$with_gnu_ld" = yes; then
18588 archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
18589 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'
18591 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
18592 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
18594 # If archive_cmds runs LD, not CC, wlarc should be empty
18595 # XXX I think wlarc can be eliminated in ltcf-cxx, but I need to
18596 # investigate it a little bit more. (MM)
18597 wlarc='${wl}'
18599 # ancient GNU ld didn't support --whole-archive et. al.
18600 if eval "`$CC -print-prog-name=ld` --help 2>&1" |
18601 $GREP 'no-whole-archive' > /dev/null; then
18602 whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
18603 else
18604 whole_archive_flag_spec_CXX=
18606 else
18607 with_gnu_ld=no
18608 wlarc=
18610 # A generic and very simple default shared library creation
18611 # command for GNU C++ for the case where it uses the native
18612 # linker, instead of GNU ld. If possible, this setting should
18613 # overridden to take advantage of the native linker features on
18614 # the platform it is being used on.
18615 archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
18618 # Commands to make compiler produce verbose output that lists
18619 # what "hidden" libraries, object files and flags are used when
18620 # linking a shared library.
18621 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
18623 else
18624 GXX=no
18625 with_gnu_ld=no
18626 wlarc=
18629 # PORTME: fill in a description of your system's C++ link characteristics
18630 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
18631 $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
18632 ld_shlibs_CXX=yes
18633 case $host_os in
18634 aix3*)
18635 # FIXME: insert proper C++ library support
18636 ld_shlibs_CXX=no
18638 aix[4-9]*)
18639 if test "$host_cpu" = ia64; then
18640 # On IA64, the linker does run time linking by default, so we don't
18641 # have to do anything special.
18642 aix_use_runtimelinking=no
18643 exp_sym_flag='-Bexport'
18644 no_entry_flag=""
18645 else
18646 aix_use_runtimelinking=no
18648 # Test if we are trying to use run time linking or normal
18649 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
18650 # need to do runtime linking.
18651 case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
18652 for ld_flag in $LDFLAGS; do
18653 case $ld_flag in
18654 *-brtl*)
18655 aix_use_runtimelinking=yes
18656 break
18658 esac
18659 done
18661 esac
18663 exp_sym_flag='-bexport'
18664 no_entry_flag='-bnoentry'
18667 # When large executables or shared objects are built, AIX ld can
18668 # have problems creating the table of contents. If linking a library
18669 # or program results in "error TOC overflow" add -mminimal-toc to
18670 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
18671 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
18673 archive_cmds_CXX=''
18674 hardcode_direct_CXX=yes
18675 hardcode_direct_absolute_CXX=yes
18676 hardcode_libdir_separator_CXX=':'
18677 link_all_deplibs_CXX=yes
18678 file_list_spec_CXX='${wl}-f,'
18680 if test "$GXX" = yes; then
18681 case $host_os in aix4.[012]|aix4.[012].*)
18682 # We only want to do this on AIX 4.2 and lower, the check
18683 # below for broken collect2 doesn't work under 4.3+
18684 collect2name=`${CC} -print-prog-name=collect2`
18685 if test -f "$collect2name" &&
18686 strings "$collect2name" | $GREP resolve_lib_name >/dev/null
18687 then
18688 # We have reworked collect2
18690 else
18691 # We have old collect2
18692 hardcode_direct_CXX=unsupported
18693 # It fails to find uninstalled libraries when the uninstalled
18694 # path is not listed in the libpath. Setting hardcode_minus_L
18695 # to unsupported forces relinking
18696 hardcode_minus_L_CXX=yes
18697 hardcode_libdir_flag_spec_CXX='-L$libdir'
18698 hardcode_libdir_separator_CXX=
18700 esac
18701 shared_flag='-shared'
18702 if test "$aix_use_runtimelinking" = yes; then
18703 shared_flag="$shared_flag "'${wl}-G'
18705 else
18706 # not using gcc
18707 if test "$host_cpu" = ia64; then
18708 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
18709 # chokes on -Wl,-G. The following line is correct:
18710 shared_flag='-G'
18711 else
18712 if test "$aix_use_runtimelinking" = yes; then
18713 shared_flag='${wl}-G'
18714 else
18715 shared_flag='${wl}-bM:SRE'
18720 export_dynamic_flag_spec_CXX='${wl}-bexpall'
18721 # It seems that -bexpall does not export symbols beginning with
18722 # underscore (_), so it is better to generate a list of symbols to
18723 # export.
18724 always_export_symbols_CXX=yes
18725 if test "$aix_use_runtimelinking" = yes; then
18726 # Warning - without using the other runtime loading flags (-brtl),
18727 # -berok will link without error, but may produce a broken library.
18728 allow_undefined_flag_CXX='-berok'
18729 # Determine the default libpath from the value encoded in an empty
18730 # executable.
18731 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18732 /* end confdefs.h. */
18735 main ()
18739 return 0;
18741 _ACEOF
18742 if ac_fn_cxx_try_link "$LINENO"; then :
18744 lt_aix_libpath_sed='
18745 /Import File Strings/,/^$/ {
18746 /^0/ {
18747 s/^0 *\(.*\)$/\1/
18751 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
18752 # Check for a 64-bit object if we didn't find anything.
18753 if test -z "$aix_libpath"; then
18754 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
18757 rm -f core conftest.err conftest.$ac_objext \
18758 conftest$ac_exeext conftest.$ac_ext
18759 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
18761 hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
18763 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"
18764 else
18765 if test "$host_cpu" = ia64; then
18766 hardcode_libdir_flag_spec_CXX='${wl}-R $libdir:/usr/lib:/lib'
18767 allow_undefined_flag_CXX="-z nodefs"
18768 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"
18769 else
18770 # Determine the default libpath from the value encoded in an
18771 # empty executable.
18772 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18773 /* end confdefs.h. */
18776 main ()
18780 return 0;
18782 _ACEOF
18783 if ac_fn_cxx_try_link "$LINENO"; then :
18785 lt_aix_libpath_sed='
18786 /Import File Strings/,/^$/ {
18787 /^0/ {
18788 s/^0 *\(.*\)$/\1/
18792 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
18793 # Check for a 64-bit object if we didn't find anything.
18794 if test -z "$aix_libpath"; then
18795 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
18798 rm -f core conftest.err conftest.$ac_objext \
18799 conftest$ac_exeext conftest.$ac_ext
18800 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
18802 hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
18803 # Warning - without using the other run time loading flags,
18804 # -berok will link without error, but may produce a broken library.
18805 no_undefined_flag_CXX=' ${wl}-bernotok'
18806 allow_undefined_flag_CXX=' ${wl}-berok'
18807 if test "$with_gnu_ld" = yes; then
18808 # We only use this code for GNU lds that support --whole-archive.
18809 whole_archive_flag_spec_CXX='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
18810 else
18811 # Exported symbols can be pulled into shared objects from archives
18812 whole_archive_flag_spec_CXX='$convenience'
18814 archive_cmds_need_lc_CXX=yes
18815 # This is similar to how AIX traditionally builds its shared
18816 # libraries.
18817 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'
18822 beos*)
18823 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
18824 allow_undefined_flag_CXX=unsupported
18825 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
18826 # support --undefined. This deserves some investigation. FIXME
18827 archive_cmds_CXX='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
18828 else
18829 ld_shlibs_CXX=no
18833 chorus*)
18834 case $cc_basename in
18836 # FIXME: insert proper C++ library support
18837 ld_shlibs_CXX=no
18839 esac
18842 cygwin* | mingw* | pw32* | cegcc*)
18843 # _LT_TAGVAR(hardcode_libdir_flag_spec, CXX) is actually meaningless,
18844 # as there is no search path for DLLs.
18845 hardcode_libdir_flag_spec_CXX='-L$libdir'
18846 export_dynamic_flag_spec_CXX='${wl}--export-all-symbols'
18847 allow_undefined_flag_CXX=unsupported
18848 always_export_symbols_CXX=no
18849 enable_shared_with_static_runtimes_CXX=yes
18851 if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
18852 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'
18853 # If the export-symbols file already is a .def file (1st line
18854 # is EXPORTS), use it as is; otherwise, prepend...
18855 archive_expsym_cmds_CXX='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
18856 cp $export_symbols $output_objdir/$soname.def;
18857 else
18858 echo EXPORTS > $output_objdir/$soname.def;
18859 cat $export_symbols >> $output_objdir/$soname.def;
18861 $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'
18862 else
18863 ld_shlibs_CXX=no
18866 darwin* | rhapsody*)
18869 archive_cmds_need_lc_CXX=no
18870 hardcode_direct_CXX=no
18871 hardcode_automatic_CXX=yes
18872 hardcode_shlibpath_var_CXX=unsupported
18873 if test "$lt_cv_ld_force_load" = "yes"; then
18874 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\"`'
18875 else
18876 whole_archive_flag_spec_CXX=''
18878 link_all_deplibs_CXX=yes
18879 allow_undefined_flag_CXX="$_lt_dar_allow_undefined"
18880 case $cc_basename in
18881 ifort*) _lt_dar_can_shared=yes ;;
18882 *) _lt_dar_can_shared=$GCC ;;
18883 esac
18884 if test "$_lt_dar_can_shared" = "yes"; then
18885 output_verbose_link_cmd=func_echo_all
18886 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}"
18887 module_cmds_CXX="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
18888 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}"
18889 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}"
18890 if test "$lt_cv_apple_cc_single_mod" != "yes"; then
18891 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}"
18892 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}"
18895 else
18896 ld_shlibs_CXX=no
18901 dgux*)
18902 case $cc_basename in
18903 ec++*)
18904 # FIXME: insert proper C++ library support
18905 ld_shlibs_CXX=no
18907 ghcx*)
18908 # Green Hills C++ Compiler
18909 # FIXME: insert proper C++ library support
18910 ld_shlibs_CXX=no
18913 # FIXME: insert proper C++ library support
18914 ld_shlibs_CXX=no
18916 esac
18919 freebsd2.*)
18920 # C++ shared libraries reported to be fairly broken before
18921 # switch to ELF
18922 ld_shlibs_CXX=no
18925 freebsd-elf*)
18926 archive_cmds_need_lc_CXX=no
18929 freebsd* | dragonfly*)
18930 # FreeBSD 3 and later use GNU C++ and GNU ld with standard ELF
18931 # conventions
18932 ld_shlibs_CXX=yes
18935 gnu*)
18938 haiku*)
18939 archive_cmds_CXX='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
18940 link_all_deplibs_CXX=yes
18943 hpux9*)
18944 hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
18945 hardcode_libdir_separator_CXX=:
18946 export_dynamic_flag_spec_CXX='${wl}-E'
18947 hardcode_direct_CXX=yes
18948 hardcode_minus_L_CXX=yes # Not in the search PATH,
18949 # but as the default
18950 # location of the library.
18952 case $cc_basename in
18953 CC*)
18954 # FIXME: insert proper C++ library support
18955 ld_shlibs_CXX=no
18957 aCC*)
18958 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'
18959 # Commands to make compiler produce verbose output that lists
18960 # what "hidden" libraries, object files and flags are used when
18961 # linking a shared library.
18963 # There doesn't appear to be a way to prevent this compiler from
18964 # explicitly linking system object files so we need to strip them
18965 # from the output so that they don't get included in the library
18966 # dependencies.
18967 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"'
18970 if test "$GXX" = yes; then
18971 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'
18972 else
18973 # FIXME: insert proper C++ library support
18974 ld_shlibs_CXX=no
18977 esac
18980 hpux10*|hpux11*)
18981 if test $with_gnu_ld = no; then
18982 hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
18983 hardcode_libdir_separator_CXX=:
18985 case $host_cpu in
18986 hppa*64*|ia64*)
18989 export_dynamic_flag_spec_CXX='${wl}-E'
18991 esac
18993 case $host_cpu in
18994 hppa*64*|ia64*)
18995 hardcode_direct_CXX=no
18996 hardcode_shlibpath_var_CXX=no
18999 hardcode_direct_CXX=yes
19000 hardcode_direct_absolute_CXX=yes
19001 hardcode_minus_L_CXX=yes # Not in the search PATH,
19002 # but as the default
19003 # location of the library.
19005 esac
19007 case $cc_basename in
19008 CC*)
19009 # FIXME: insert proper C++ library support
19010 ld_shlibs_CXX=no
19012 aCC*)
19013 case $host_cpu in
19014 hppa*64*)
19015 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
19017 ia64*)
19018 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
19021 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
19023 esac
19024 # Commands to make compiler produce verbose output that lists
19025 # what "hidden" libraries, object files and flags are used when
19026 # linking a shared library.
19028 # There doesn't appear to be a way to prevent this compiler from
19029 # explicitly linking system object files so we need to strip them
19030 # from the output so that they don't get included in the library
19031 # dependencies.
19032 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"'
19035 if test "$GXX" = yes; then
19036 if test $with_gnu_ld = no; then
19037 case $host_cpu in
19038 hppa*64*)
19039 archive_cmds_CXX='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
19041 ia64*)
19042 archive_cmds_CXX='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
19045 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'
19047 esac
19049 else
19050 # FIXME: insert proper C++ library support
19051 ld_shlibs_CXX=no
19054 esac
19057 interix[3-9]*)
19058 hardcode_direct_CXX=no
19059 hardcode_shlibpath_var_CXX=no
19060 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
19061 export_dynamic_flag_spec_CXX='${wl}-E'
19062 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
19063 # Instead, shared libraries are loaded at an image base (0x10000000 by
19064 # default) and relocated if they conflict, which is a slow very memory
19065 # consuming and fragmenting process. To avoid this, we pick a random,
19066 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
19067 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
19068 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'
19069 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'
19071 irix5* | irix6*)
19072 case $cc_basename in
19073 CC*)
19074 # SGI C++
19075 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'
19077 # Archives containing C++ object files must be created using
19078 # "CC -ar", where "CC" is the IRIX C++ compiler. This is
19079 # necessary to make sure instantiated templates are included
19080 # in the archive.
19081 old_archive_cmds_CXX='$CC -ar -WR,-u -o $oldlib $oldobjs'
19084 if test "$GXX" = yes; then
19085 if test "$with_gnu_ld" = no; then
19086 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'
19087 else
19088 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'
19091 link_all_deplibs_CXX=yes
19093 esac
19094 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
19095 hardcode_libdir_separator_CXX=:
19096 inherit_rpath_CXX=yes
19099 linux* | k*bsd*-gnu | kopensolaris*-gnu)
19100 case $cc_basename in
19101 KCC*)
19102 # Kuck and Associates, Inc. (KAI) C++ Compiler
19104 # KCC will only create a shared library if the output file
19105 # ends with ".so" (or ".sl" for HP-UX), so rename the library
19106 # to its proper name (with version) after linking.
19107 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'
19108 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'
19109 # Commands to make compiler produce verbose output that lists
19110 # what "hidden" libraries, object files and flags are used when
19111 # linking a shared library.
19113 # There doesn't appear to be a way to prevent this compiler from
19114 # explicitly linking system object files so we need to strip them
19115 # from the output so that they don't get included in the library
19116 # dependencies.
19117 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"'
19119 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
19120 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
19122 # Archives containing C++ object files must be created using
19123 # "CC -Bstatic", where "CC" is the KAI C++ compiler.
19124 old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs'
19126 icpc* | ecpc* )
19127 # Intel C++
19128 with_gnu_ld=yes
19129 # version 8.0 and above of icpc choke on multiply defined symbols
19130 # if we add $predep_objects and $postdep_objects, however 7.1 and
19131 # earlier do not add the objects themselves.
19132 case `$CC -V 2>&1` in
19133 *"Version 7."*)
19134 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
19135 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'
19137 *) # Version 8.0 or newer
19138 tmp_idyn=
19139 case $host_cpu in
19140 ia64*) tmp_idyn=' -i_dynamic';;
19141 esac
19142 archive_cmds_CXX='$CC -shared'"$tmp_idyn"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
19143 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'
19145 esac
19146 archive_cmds_need_lc_CXX=no
19147 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
19148 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
19149 whole_archive_flag_spec_CXX='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
19151 pgCC* | pgcpp*)
19152 # Portland Group C++ compiler
19153 case `$CC -V` in
19154 *pgCC\ [1-5].* | *pgcpp\ [1-5].*)
19155 prelink_cmds_CXX='tpldir=Template.dir~
19156 rm -rf $tpldir~
19157 $CC --prelink_objects --instantiation_dir $tpldir $objs $libobjs $compile_deplibs~
19158 compile_command="$compile_command `find $tpldir -name \*.o | $NL2SP`"'
19159 old_archive_cmds_CXX='tpldir=Template.dir~
19160 rm -rf $tpldir~
19161 $CC --prelink_objects --instantiation_dir $tpldir $oldobjs$old_deplibs~
19162 $AR $AR_FLAGS $oldlib$oldobjs$old_deplibs `find $tpldir -name \*.o | $NL2SP`~
19163 $RANLIB $oldlib'
19164 archive_cmds_CXX='tpldir=Template.dir~
19165 rm -rf $tpldir~
19166 $CC --prelink_objects --instantiation_dir $tpldir $predep_objects $libobjs $deplibs $convenience $postdep_objects~
19167 $CC -shared $pic_flag $predep_objects $libobjs $deplibs `find $tpldir -name \*.o | $NL2SP` $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname -o $lib'
19168 archive_expsym_cmds_CXX='tpldir=Template.dir~
19169 rm -rf $tpldir~
19170 $CC --prelink_objects --instantiation_dir $tpldir $predep_objects $libobjs $deplibs $convenience $postdep_objects~
19171 $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'
19173 *) # Version 6 and above use weak symbols
19174 archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname -o $lib'
19175 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'
19177 esac
19179 hardcode_libdir_flag_spec_CXX='${wl}--rpath ${wl}$libdir'
19180 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
19181 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'
19183 cxx*)
19184 # Compaq C++
19185 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
19186 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'
19188 runpath_var=LD_RUN_PATH
19189 hardcode_libdir_flag_spec_CXX='-rpath $libdir'
19190 hardcode_libdir_separator_CXX=:
19192 # Commands to make compiler produce verbose output that lists
19193 # what "hidden" libraries, object files and flags are used when
19194 # linking a shared library.
19196 # There doesn't appear to be a way to prevent this compiler from
19197 # explicitly linking system object files so we need to strip them
19198 # from the output so that they don't get included in the library
19199 # dependencies.
19200 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'
19202 xl* | mpixl* | bgxl*)
19203 # IBM XL 8.0 on PPC, with GNU ld
19204 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
19205 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
19206 archive_cmds_CXX='$CC -qmkshrobj $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
19207 if test "x$supports_anon_versioning" = xyes; then
19208 archive_expsym_cmds_CXX='echo "{ global:" > $output_objdir/$libname.ver~
19209 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
19210 echo "local: *; };" >> $output_objdir/$libname.ver~
19211 $CC -qmkshrobj $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
19215 case `$CC -V 2>&1 | sed 5q` in
19216 *Sun\ C*)
19217 # Sun C++ 5.9
19218 no_undefined_flag_CXX=' -zdefs'
19219 archive_cmds_CXX='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
19220 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'
19221 hardcode_libdir_flag_spec_CXX='-R$libdir'
19222 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'
19223 compiler_needs_object_CXX=yes
19225 # Not sure whether something based on
19226 # $CC $CFLAGS -v conftest.$objext -o libconftest$shared_ext 2>&1
19227 # would be better.
19228 output_verbose_link_cmd='func_echo_all'
19230 # Archives containing C++ object files must be created using
19231 # "CC -xar", where "CC" is the Sun C++ compiler. This is
19232 # necessary to make sure instantiated templates are included
19233 # in the archive.
19234 old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs'
19236 esac
19238 esac
19241 lynxos*)
19242 # FIXME: insert proper C++ library support
19243 ld_shlibs_CXX=no
19246 m88k*)
19247 # FIXME: insert proper C++ library support
19248 ld_shlibs_CXX=no
19251 mvs*)
19252 case $cc_basename in
19253 cxx*)
19254 # FIXME: insert proper C++ library support
19255 ld_shlibs_CXX=no
19258 # FIXME: insert proper C++ library support
19259 ld_shlibs_CXX=no
19261 esac
19264 netbsd*)
19265 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
19266 archive_cmds_CXX='$LD -Bshareable -o $lib $predep_objects $libobjs $deplibs $postdep_objects $linker_flags'
19267 wlarc=
19268 hardcode_libdir_flag_spec_CXX='-R$libdir'
19269 hardcode_direct_CXX=yes
19270 hardcode_shlibpath_var_CXX=no
19272 # Workaround some broken pre-1.5 toolchains
19273 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP conftest.$objext | $SED -e "s:-lgcc -lc -lgcc::"'
19276 *nto* | *qnx*)
19277 ld_shlibs_CXX=yes
19280 openbsd2*)
19281 # C++ shared libraries are fairly broken
19282 ld_shlibs_CXX=no
19285 openbsd*)
19286 if test -f /usr/libexec/ld.so; then
19287 hardcode_direct_CXX=yes
19288 hardcode_shlibpath_var_CXX=no
19289 hardcode_direct_absolute_CXX=yes
19290 archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
19291 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
19292 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
19293 archive_expsym_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-retain-symbols-file,$export_symbols -o $lib'
19294 export_dynamic_flag_spec_CXX='${wl}-E'
19295 whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
19297 output_verbose_link_cmd=func_echo_all
19298 else
19299 ld_shlibs_CXX=no
19303 osf3* | osf4* | osf5*)
19304 case $cc_basename in
19305 KCC*)
19306 # Kuck and Associates, Inc. (KAI) C++ Compiler
19308 # KCC will only create a shared library if the output file
19309 # ends with ".so" (or ".sl" for HP-UX), so rename the library
19310 # to its proper name (with version) after linking.
19311 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'
19313 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
19314 hardcode_libdir_separator_CXX=:
19316 # Archives containing C++ object files must be created using
19317 # the KAI C++ compiler.
19318 case $host in
19319 osf3*) old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs' ;;
19320 *) old_archive_cmds_CXX='$CC -o $oldlib $oldobjs' ;;
19321 esac
19323 RCC*)
19324 # Rational C++ 2.4.1
19325 # FIXME: insert proper C++ library support
19326 ld_shlibs_CXX=no
19328 cxx*)
19329 case $host in
19330 osf3*)
19331 allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
19332 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'
19333 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
19336 allow_undefined_flag_CXX=' -expect_unresolved \*'
19337 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'
19338 archive_expsym_cmds_CXX='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done~
19339 echo "-hidden">> $lib.exp~
19340 $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~
19341 $RM $lib.exp'
19342 hardcode_libdir_flag_spec_CXX='-rpath $libdir'
19344 esac
19346 hardcode_libdir_separator_CXX=:
19348 # Commands to make compiler produce verbose output that lists
19349 # what "hidden" libraries, object files and flags are used when
19350 # linking a shared library.
19352 # There doesn't appear to be a way to prevent this compiler from
19353 # explicitly linking system object files so we need to strip them
19354 # from the output so that they don't get included in the library
19355 # dependencies.
19356 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"'
19359 if test "$GXX" = yes && test "$with_gnu_ld" = no; then
19360 allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
19361 case $host in
19362 osf3*)
19363 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'
19366 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'
19368 esac
19370 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
19371 hardcode_libdir_separator_CXX=:
19373 # Commands to make compiler produce verbose output that lists
19374 # what "hidden" libraries, object files and flags are used when
19375 # linking a shared library.
19376 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
19378 else
19379 # FIXME: insert proper C++ library support
19380 ld_shlibs_CXX=no
19383 esac
19386 psos*)
19387 # FIXME: insert proper C++ library support
19388 ld_shlibs_CXX=no
19391 sunos4*)
19392 case $cc_basename in
19393 CC*)
19394 # Sun C++ 4.x
19395 # FIXME: insert proper C++ library support
19396 ld_shlibs_CXX=no
19398 lcc*)
19399 # Lucid
19400 # FIXME: insert proper C++ library support
19401 ld_shlibs_CXX=no
19404 # FIXME: insert proper C++ library support
19405 ld_shlibs_CXX=no
19407 esac
19410 solaris*)
19411 case $cc_basename in
19412 CC*)
19413 # Sun C++ 4.2, 5.x and Centerline C++
19414 archive_cmds_need_lc_CXX=yes
19415 no_undefined_flag_CXX=' -zdefs'
19416 archive_cmds_CXX='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
19417 archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
19418 $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'
19420 hardcode_libdir_flag_spec_CXX='-R$libdir'
19421 hardcode_shlibpath_var_CXX=no
19422 case $host_os in
19423 solaris2.[0-5] | solaris2.[0-5].*) ;;
19425 # The compiler driver will combine and reorder linker options,
19426 # but understands `-z linker_flag'.
19427 # Supported since Solaris 2.6 (maybe 2.5.1?)
19428 whole_archive_flag_spec_CXX='-z allextract$convenience -z defaultextract'
19430 esac
19431 link_all_deplibs_CXX=yes
19433 output_verbose_link_cmd='func_echo_all'
19435 # Archives containing C++ object files must be created using
19436 # "CC -xar", where "CC" is the Sun C++ compiler. This is
19437 # necessary to make sure instantiated templates are included
19438 # in the archive.
19439 old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs'
19441 gcx*)
19442 # Green Hills C++ Compiler
19443 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
19445 # The C++ compiler must be used to create the archive.
19446 old_archive_cmds_CXX='$CC $LDFLAGS -archive -o $oldlib $oldobjs'
19449 # GNU C++ compiler with Solaris linker
19450 if test "$GXX" = yes && test "$with_gnu_ld" = no; then
19451 no_undefined_flag_CXX=' ${wl}-z ${wl}defs'
19452 if $CC --version | $GREP -v '^2\.7' > /dev/null; then
19453 archive_cmds_CXX='$CC -shared -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
19454 archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
19455 $CC -shared -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$RM $lib.exp'
19457 # Commands to make compiler produce verbose output that lists
19458 # what "hidden" libraries, object files and flags are used when
19459 # linking a shared library.
19460 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
19461 else
19462 # g++ 2.7 appears to require `-G' NOT `-shared' on this
19463 # platform.
19464 archive_cmds_CXX='$CC -G -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
19465 archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
19466 $CC -G -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$RM $lib.exp'
19468 # Commands to make compiler produce verbose output that lists
19469 # what "hidden" libraries, object files and flags are used when
19470 # linking a shared library.
19471 output_verbose_link_cmd='$CC -G $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
19474 hardcode_libdir_flag_spec_CXX='${wl}-R $wl$libdir'
19475 case $host_os in
19476 solaris2.[0-5] | solaris2.[0-5].*) ;;
19478 whole_archive_flag_spec_CXX='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
19480 esac
19483 esac
19486 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
19487 no_undefined_flag_CXX='${wl}-z,text'
19488 archive_cmds_need_lc_CXX=no
19489 hardcode_shlibpath_var_CXX=no
19490 runpath_var='LD_RUN_PATH'
19492 case $cc_basename in
19493 CC*)
19494 archive_cmds_CXX='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
19495 archive_expsym_cmds_CXX='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
19498 archive_cmds_CXX='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
19499 archive_expsym_cmds_CXX='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
19501 esac
19504 sysv5* | sco3.2v5* | sco5v6*)
19505 # Note: We can NOT use -z defs as we might desire, because we do not
19506 # link with -lc, and that would cause any symbols used from libc to
19507 # always be unresolved, which means just about no library would
19508 # ever link correctly. If we're not using GNU ld we use -z text
19509 # though, which does catch some bad symbols but isn't as heavy-handed
19510 # as -z defs.
19511 no_undefined_flag_CXX='${wl}-z,text'
19512 allow_undefined_flag_CXX='${wl}-z,nodefs'
19513 archive_cmds_need_lc_CXX=no
19514 hardcode_shlibpath_var_CXX=no
19515 hardcode_libdir_flag_spec_CXX='${wl}-R,$libdir'
19516 hardcode_libdir_separator_CXX=':'
19517 link_all_deplibs_CXX=yes
19518 export_dynamic_flag_spec_CXX='${wl}-Bexport'
19519 runpath_var='LD_RUN_PATH'
19521 case $cc_basename in
19522 CC*)
19523 archive_cmds_CXX='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
19524 archive_expsym_cmds_CXX='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
19525 old_archive_cmds_CXX='$CC -Tprelink_objects $oldobjs~
19526 '"$old_archive_cmds_CXX"
19527 reload_cmds_CXX='$CC -Tprelink_objects $reload_objs~
19528 '"$reload_cmds_CXX"
19531 archive_cmds_CXX='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
19532 archive_expsym_cmds_CXX='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
19534 esac
19537 tandem*)
19538 case $cc_basename in
19539 NCC*)
19540 # NonStop-UX NCC 3.20
19541 # FIXME: insert proper C++ library support
19542 ld_shlibs_CXX=no
19545 # FIXME: insert proper C++ library support
19546 ld_shlibs_CXX=no
19548 esac
19551 vxworks*)
19552 # FIXME: insert proper C++ library support
19553 ld_shlibs_CXX=no
19557 # FIXME: insert proper C++ library support
19558 ld_shlibs_CXX=no
19560 esac
19562 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs_CXX" >&5
19563 $as_echo "$ld_shlibs_CXX" >&6; }
19564 test "$ld_shlibs_CXX" = no && can_build_shared=no
19566 GCC_CXX="$GXX"
19567 LD_CXX="$LD"
19569 ## CAVEAT EMPTOR:
19570 ## There is no encapsulation within the following macros, do not change
19571 ## the running order or otherwise move them around unless you know exactly
19572 ## what you are doing...
19573 # Dependencies to place before and after the object being linked:
19574 predep_objects_CXX=
19575 postdep_objects_CXX=
19576 predeps_CXX=
19577 postdeps_CXX=
19578 compiler_lib_search_path_CXX=
19580 cat > conftest.$ac_ext <<_LT_EOF
19581 class Foo
19583 public:
19584 Foo (void) { a = 0; }
19585 private:
19586 int a;
19588 _LT_EOF
19590 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
19591 (eval $ac_compile) 2>&5
19592 ac_status=$?
19593 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
19594 test $ac_status = 0; }; then
19595 # Parse the compiler output and extract the necessary
19596 # objects, libraries and library flags.
19598 # Sentinel used to keep track of whether or not we are before
19599 # the conftest object file.
19600 pre_test_object_deps_done=no
19602 for p in `eval "$output_verbose_link_cmd"`; do
19603 case $p in
19605 -L* | -R* | -l*)
19606 # Some compilers place space between "-{L,R}" and the path.
19607 # Remove the space.
19608 if test $p = "-L" ||
19609 test $p = "-R"; then
19610 prev=$p
19611 continue
19612 else
19613 prev=
19616 if test "$pre_test_object_deps_done" = no; then
19617 case $p in
19618 -L* | -R*)
19619 # Internal compiler library paths should come after those
19620 # provided the user. The postdeps already come after the
19621 # user supplied libs so there is no need to process them.
19622 if test -z "$compiler_lib_search_path_CXX"; then
19623 compiler_lib_search_path_CXX="${prev}${p}"
19624 else
19625 compiler_lib_search_path_CXX="${compiler_lib_search_path_CXX} ${prev}${p}"
19628 # The "-l" case would never come before the object being
19629 # linked, so don't bother handling this case.
19630 esac
19631 else
19632 if test -z "$postdeps_CXX"; then
19633 postdeps_CXX="${prev}${p}"
19634 else
19635 postdeps_CXX="${postdeps_CXX} ${prev}${p}"
19640 *.$objext)
19641 # This assumes that the test object file only shows up
19642 # once in the compiler output.
19643 if test "$p" = "conftest.$objext"; then
19644 pre_test_object_deps_done=yes
19645 continue
19648 if test "$pre_test_object_deps_done" = no; then
19649 if test -z "$predep_objects_CXX"; then
19650 predep_objects_CXX="$p"
19651 else
19652 predep_objects_CXX="$predep_objects_CXX $p"
19654 else
19655 if test -z "$postdep_objects_CXX"; then
19656 postdep_objects_CXX="$p"
19657 else
19658 postdep_objects_CXX="$postdep_objects_CXX $p"
19663 *) ;; # Ignore the rest.
19665 esac
19666 done
19668 # Clean up.
19669 rm -f a.out a.exe
19670 else
19671 echo "libtool.m4: error: problem compiling CXX test program"
19674 $RM -f confest.$objext
19676 # PORTME: override above test on systems where it is broken
19677 case $host_os in
19678 interix[3-9]*)
19679 # Interix 3.5 installs completely hosed .la files for C++, so rather than
19680 # hack all around it, let's just trust "g++" to DTRT.
19681 predep_objects_CXX=
19682 postdep_objects_CXX=
19683 postdeps_CXX=
19686 linux*)
19687 case `$CC -V 2>&1 | sed 5q` in
19688 *Sun\ C*)
19689 # Sun C++ 5.9
19691 # The more standards-conforming stlport4 library is
19692 # incompatible with the Cstd library. Avoid specifying
19693 # it if it's in CXXFLAGS. Ignore libCrun as
19694 # -library=stlport4 depends on it.
19695 case " $CXX $CXXFLAGS " in
19696 *" -library=stlport4 "*)
19697 solaris_use_stlport4=yes
19699 esac
19701 if test "$solaris_use_stlport4" != yes; then
19702 postdeps_CXX='-library=Cstd -library=Crun'
19705 esac
19708 solaris*)
19709 case $cc_basename in
19710 CC*)
19711 # The more standards-conforming stlport4 library is
19712 # incompatible with the Cstd library. Avoid specifying
19713 # it if it's in CXXFLAGS. Ignore libCrun as
19714 # -library=stlport4 depends on it.
19715 case " $CXX $CXXFLAGS " in
19716 *" -library=stlport4 "*)
19717 solaris_use_stlport4=yes
19719 esac
19721 # Adding this requires a known-good setup of shared libraries for
19722 # Sun compiler versions before 5.6, else PIC objects from an old
19723 # archive will be linked into the output, leading to subtle bugs.
19724 if test "$solaris_use_stlport4" != yes; then
19725 postdeps_CXX='-library=Cstd -library=Crun'
19728 esac
19730 esac
19733 case " $postdeps_CXX " in
19734 *" -lc "*) archive_cmds_need_lc_CXX=no ;;
19735 esac
19736 compiler_lib_search_dirs_CXX=
19737 if test -n "${compiler_lib_search_path_CXX}"; then
19738 compiler_lib_search_dirs_CXX=`echo " ${compiler_lib_search_path_CXX}" | ${SED} -e 's! -L! !g' -e 's!^ !!'`
19771 lt_prog_compiler_wl_CXX=
19772 lt_prog_compiler_pic_CXX=
19773 lt_prog_compiler_static_CXX=
19775 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
19776 $as_echo_n "checking for $compiler option to produce PIC... " >&6; }
19778 # C++ specific cases for pic, static, wl, etc.
19779 if test "$GXX" = yes; then
19780 lt_prog_compiler_wl_CXX='-Wl,'
19781 lt_prog_compiler_static_CXX='-static'
19783 case $host_os in
19784 aix*)
19785 # All AIX code is PIC.
19786 if test "$host_cpu" = ia64; then
19787 # AIX 5 now supports IA64 processor
19788 lt_prog_compiler_static_CXX='-Bstatic'
19790 lt_prog_compiler_pic_CXX='-fPIC'
19793 amigaos*)
19794 case $host_cpu in
19795 powerpc)
19796 # see comment about AmigaOS4 .so support
19797 lt_prog_compiler_pic_CXX='-fPIC'
19799 m68k)
19800 # FIXME: we need at least 68020 code to build shared libraries, but
19801 # adding the `-m68020' flag to GCC prevents building anything better,
19802 # like `-m68040'.
19803 lt_prog_compiler_pic_CXX='-m68020 -resident32 -malways-restore-a4'
19805 esac
19808 beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
19809 # PIC is the default for these OSes.
19811 mingw* | cygwin* | os2* | pw32* | cegcc*)
19812 # This hack is so that the source file can tell whether it is being
19813 # built for inclusion in a dll (and should export symbols for example).
19814 # Although the cygwin gcc ignores -fPIC, still need this for old-style
19815 # (--disable-auto-import) libraries
19816 lt_prog_compiler_pic_CXX='-DDLL_EXPORT'
19818 darwin* | rhapsody*)
19819 # PIC is the default on this platform
19820 # Common symbols not allowed in MH_DYLIB files
19821 lt_prog_compiler_pic_CXX='-fno-common'
19823 *djgpp*)
19824 # DJGPP does not support shared libraries at all
19825 lt_prog_compiler_pic_CXX=
19827 haiku*)
19828 # PIC is the default for Haiku.
19829 # The "-static" flag exists, but is broken.
19830 lt_prog_compiler_static_CXX=
19832 interix[3-9]*)
19833 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
19834 # Instead, we relocate shared libraries at runtime.
19836 sysv4*MP*)
19837 if test -d /usr/nec; then
19838 lt_prog_compiler_pic_CXX=-Kconform_pic
19841 hpux*)
19842 # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
19843 # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag
19844 # sets the default TLS model and affects inlining.
19845 case $host_cpu in
19846 hppa*64*)
19849 lt_prog_compiler_pic_CXX='-fPIC'
19851 esac
19853 *qnx* | *nto*)
19854 # QNX uses GNU C++, but need to define -shared option too, otherwise
19855 # it will coredump.
19856 lt_prog_compiler_pic_CXX='-fPIC -shared'
19859 lt_prog_compiler_pic_CXX='-fPIC'
19861 esac
19862 else
19863 case $host_os in
19864 aix[4-9]*)
19865 # All AIX code is PIC.
19866 if test "$host_cpu" = ia64; then
19867 # AIX 5 now supports IA64 processor
19868 lt_prog_compiler_static_CXX='-Bstatic'
19869 else
19870 lt_prog_compiler_static_CXX='-bnso -bI:/lib/syscalls.exp'
19873 chorus*)
19874 case $cc_basename in
19875 cxch68*)
19876 # Green Hills C++ Compiler
19877 # _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"
19879 esac
19881 dgux*)
19882 case $cc_basename in
19883 ec++*)
19884 lt_prog_compiler_pic_CXX='-KPIC'
19886 ghcx*)
19887 # Green Hills C++ Compiler
19888 lt_prog_compiler_pic_CXX='-pic'
19892 esac
19894 freebsd* | dragonfly*)
19895 # FreeBSD uses GNU C++
19897 hpux9* | hpux10* | hpux11*)
19898 case $cc_basename in
19899 CC*)
19900 lt_prog_compiler_wl_CXX='-Wl,'
19901 lt_prog_compiler_static_CXX='${wl}-a ${wl}archive'
19902 if test "$host_cpu" != ia64; then
19903 lt_prog_compiler_pic_CXX='+Z'
19906 aCC*)
19907 lt_prog_compiler_wl_CXX='-Wl,'
19908 lt_prog_compiler_static_CXX='${wl}-a ${wl}archive'
19909 case $host_cpu in
19910 hppa*64*|ia64*)
19911 # +Z the default
19914 lt_prog_compiler_pic_CXX='+Z'
19916 esac
19920 esac
19922 interix*)
19923 # This is c89, which is MS Visual C++ (no shared libs)
19924 # Anyone wants to do a port?
19926 irix5* | irix6* | nonstopux*)
19927 case $cc_basename in
19928 CC*)
19929 lt_prog_compiler_wl_CXX='-Wl,'
19930 lt_prog_compiler_static_CXX='-non_shared'
19931 # CC pic flag -KPIC is the default.
19935 esac
19937 linux* | k*bsd*-gnu | kopensolaris*-gnu)
19938 case $cc_basename in
19939 KCC*)
19940 # KAI C++ Compiler
19941 lt_prog_compiler_wl_CXX='--backend -Wl,'
19942 lt_prog_compiler_pic_CXX='-fPIC'
19944 ecpc* )
19945 # old Intel C++ for x86_64 which still supported -KPIC.
19946 lt_prog_compiler_wl_CXX='-Wl,'
19947 lt_prog_compiler_pic_CXX='-KPIC'
19948 lt_prog_compiler_static_CXX='-static'
19950 icpc* )
19951 # Intel C++, used to be incompatible with GCC.
19952 # ICC 10 doesn't accept -KPIC any more.
19953 lt_prog_compiler_wl_CXX='-Wl,'
19954 lt_prog_compiler_pic_CXX='-fPIC'
19955 lt_prog_compiler_static_CXX='-static'
19957 pgCC* | pgcpp*)
19958 # Portland Group C++ compiler
19959 lt_prog_compiler_wl_CXX='-Wl,'
19960 lt_prog_compiler_pic_CXX='-fpic'
19961 lt_prog_compiler_static_CXX='-Bstatic'
19963 cxx*)
19964 # Compaq C++
19965 # Make sure the PIC flag is empty. It appears that all Alpha
19966 # Linux and Compaq Tru64 Unix objects are PIC.
19967 lt_prog_compiler_pic_CXX=
19968 lt_prog_compiler_static_CXX='-non_shared'
19970 xlc* | xlC* | bgxl[cC]* | mpixl[cC]*)
19971 # IBM XL 8.0, 9.0 on PPC and BlueGene
19972 lt_prog_compiler_wl_CXX='-Wl,'
19973 lt_prog_compiler_pic_CXX='-qpic'
19974 lt_prog_compiler_static_CXX='-qstaticlink'
19977 case `$CC -V 2>&1 | sed 5q` in
19978 *Sun\ C*)
19979 # Sun C++ 5.9
19980 lt_prog_compiler_pic_CXX='-KPIC'
19981 lt_prog_compiler_static_CXX='-Bstatic'
19982 lt_prog_compiler_wl_CXX='-Qoption ld '
19984 esac
19986 esac
19988 lynxos*)
19990 m88k*)
19992 mvs*)
19993 case $cc_basename in
19994 cxx*)
19995 lt_prog_compiler_pic_CXX='-W c,exportall'
19999 esac
20001 netbsd*)
20003 *qnx* | *nto*)
20004 # QNX uses GNU C++, but need to define -shared option too, otherwise
20005 # it will coredump.
20006 lt_prog_compiler_pic_CXX='-fPIC -shared'
20008 osf3* | osf4* | osf5*)
20009 case $cc_basename in
20010 KCC*)
20011 lt_prog_compiler_wl_CXX='--backend -Wl,'
20013 RCC*)
20014 # Rational C++ 2.4.1
20015 lt_prog_compiler_pic_CXX='-pic'
20017 cxx*)
20018 # Digital/Compaq C++
20019 lt_prog_compiler_wl_CXX='-Wl,'
20020 # Make sure the PIC flag is empty. It appears that all Alpha
20021 # Linux and Compaq Tru64 Unix objects are PIC.
20022 lt_prog_compiler_pic_CXX=
20023 lt_prog_compiler_static_CXX='-non_shared'
20027 esac
20029 psos*)
20031 solaris*)
20032 case $cc_basename in
20033 CC*)
20034 # Sun C++ 4.2, 5.x and Centerline C++
20035 lt_prog_compiler_pic_CXX='-KPIC'
20036 lt_prog_compiler_static_CXX='-Bstatic'
20037 lt_prog_compiler_wl_CXX='-Qoption ld '
20039 gcx*)
20040 # Green Hills C++ Compiler
20041 lt_prog_compiler_pic_CXX='-PIC'
20045 esac
20047 sunos4*)
20048 case $cc_basename in
20049 CC*)
20050 # Sun C++ 4.x
20051 lt_prog_compiler_pic_CXX='-pic'
20052 lt_prog_compiler_static_CXX='-Bstatic'
20054 lcc*)
20055 # Lucid
20056 lt_prog_compiler_pic_CXX='-pic'
20060 esac
20062 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
20063 case $cc_basename in
20064 CC*)
20065 lt_prog_compiler_wl_CXX='-Wl,'
20066 lt_prog_compiler_pic_CXX='-KPIC'
20067 lt_prog_compiler_static_CXX='-Bstatic'
20069 esac
20071 tandem*)
20072 case $cc_basename in
20073 NCC*)
20074 # NonStop-UX NCC 3.20
20075 lt_prog_compiler_pic_CXX='-KPIC'
20079 esac
20081 vxworks*)
20084 lt_prog_compiler_can_build_shared_CXX=no
20086 esac
20089 case $host_os in
20090 # For platforms which do not support PIC, -DPIC is meaningless:
20091 *djgpp*)
20092 lt_prog_compiler_pic_CXX=
20095 lt_prog_compiler_pic_CXX="$lt_prog_compiler_pic_CXX -DPIC"
20097 esac
20098 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_prog_compiler_pic_CXX" >&5
20099 $as_echo "$lt_prog_compiler_pic_CXX" >&6; }
20104 # Check to make sure the PIC flag actually works.
20106 if test -n "$lt_prog_compiler_pic_CXX"; then
20107 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works" >&5
20108 $as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works... " >&6; }
20109 if test "${lt_cv_prog_compiler_pic_works_CXX+set}" = set; then :
20110 $as_echo_n "(cached) " >&6
20111 else
20112 lt_cv_prog_compiler_pic_works_CXX=no
20113 ac_outfile=conftest.$ac_objext
20114 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
20115 lt_compiler_flag="$lt_prog_compiler_pic_CXX -DPIC"
20116 # Insert the option either (1) after the last *FLAGS variable, or
20117 # (2) before a word containing "conftest.", or (3) at the end.
20118 # Note that $ac_compile itself does not contain backslashes and begins
20119 # with a dollar sign (not a hyphen), so the echo should work correctly.
20120 # The option is referenced via a variable to avoid confusing sed.
20121 lt_compile=`echo "$ac_compile" | $SED \
20122 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
20123 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
20124 -e 's:$: $lt_compiler_flag:'`
20125 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
20126 (eval "$lt_compile" 2>conftest.err)
20127 ac_status=$?
20128 cat conftest.err >&5
20129 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20130 if (exit $ac_status) && test -s "$ac_outfile"; then
20131 # The compiler can only warn and ignore the option if not recognized
20132 # So say no if there are warnings other than the usual output.
20133 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
20134 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
20135 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
20136 lt_cv_prog_compiler_pic_works_CXX=yes
20139 $RM conftest*
20142 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works_CXX" >&5
20143 $as_echo "$lt_cv_prog_compiler_pic_works_CXX" >&6; }
20145 if test x"$lt_cv_prog_compiler_pic_works_CXX" = xyes; then
20146 case $lt_prog_compiler_pic_CXX in
20147 "" | " "*) ;;
20148 *) lt_prog_compiler_pic_CXX=" $lt_prog_compiler_pic_CXX" ;;
20149 esac
20150 else
20151 lt_prog_compiler_pic_CXX=
20152 lt_prog_compiler_can_build_shared_CXX=no
20160 # Check to make sure the static flag actually works.
20162 wl=$lt_prog_compiler_wl_CXX eval lt_tmp_static_flag=\"$lt_prog_compiler_static_CXX\"
20163 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
20164 $as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
20165 if test "${lt_cv_prog_compiler_static_works_CXX+set}" = set; then :
20166 $as_echo_n "(cached) " >&6
20167 else
20168 lt_cv_prog_compiler_static_works_CXX=no
20169 save_LDFLAGS="$LDFLAGS"
20170 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
20171 echo "$lt_simple_link_test_code" > conftest.$ac_ext
20172 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
20173 # The linker can only warn and ignore the option if not recognized
20174 # So say no if there are warnings
20175 if test -s conftest.err; then
20176 # Append any errors to the config.log.
20177 cat conftest.err 1>&5
20178 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
20179 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
20180 if diff conftest.exp conftest.er2 >/dev/null; then
20181 lt_cv_prog_compiler_static_works_CXX=yes
20183 else
20184 lt_cv_prog_compiler_static_works_CXX=yes
20187 $RM -r conftest*
20188 LDFLAGS="$save_LDFLAGS"
20191 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works_CXX" >&5
20192 $as_echo "$lt_cv_prog_compiler_static_works_CXX" >&6; }
20194 if test x"$lt_cv_prog_compiler_static_works_CXX" = xyes; then
20196 else
20197 lt_prog_compiler_static_CXX=
20203 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
20204 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
20205 if test "${lt_cv_prog_compiler_c_o_CXX+set}" = set; then :
20206 $as_echo_n "(cached) " >&6
20207 else
20208 lt_cv_prog_compiler_c_o_CXX=no
20209 $RM -r conftest 2>/dev/null
20210 mkdir conftest
20211 cd conftest
20212 mkdir out
20213 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
20215 lt_compiler_flag="-o out/conftest2.$ac_objext"
20216 # Insert the option either (1) after the last *FLAGS variable, or
20217 # (2) before a word containing "conftest.", or (3) at the end.
20218 # Note that $ac_compile itself does not contain backslashes and begins
20219 # with a dollar sign (not a hyphen), so the echo should work correctly.
20220 lt_compile=`echo "$ac_compile" | $SED \
20221 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
20222 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
20223 -e 's:$: $lt_compiler_flag:'`
20224 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
20225 (eval "$lt_compile" 2>out/conftest.err)
20226 ac_status=$?
20227 cat out/conftest.err >&5
20228 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20229 if (exit $ac_status) && test -s out/conftest2.$ac_objext
20230 then
20231 # The compiler can only warn and ignore the option if not recognized
20232 # So say no if there are warnings
20233 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
20234 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
20235 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
20236 lt_cv_prog_compiler_c_o_CXX=yes
20239 chmod u+w . 2>&5
20240 $RM conftest*
20241 # SGI C++ compiler will create directory out/ii_files/ for
20242 # template instantiation
20243 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
20244 $RM out/* && rmdir out
20245 cd ..
20246 $RM -r conftest
20247 $RM conftest*
20250 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o_CXX" >&5
20251 $as_echo "$lt_cv_prog_compiler_c_o_CXX" >&6; }
20255 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
20256 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
20257 if test "${lt_cv_prog_compiler_c_o_CXX+set}" = set; then :
20258 $as_echo_n "(cached) " >&6
20259 else
20260 lt_cv_prog_compiler_c_o_CXX=no
20261 $RM -r conftest 2>/dev/null
20262 mkdir conftest
20263 cd conftest
20264 mkdir out
20265 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
20267 lt_compiler_flag="-o out/conftest2.$ac_objext"
20268 # Insert the option either (1) after the last *FLAGS variable, or
20269 # (2) before a word containing "conftest.", or (3) at the end.
20270 # Note that $ac_compile itself does not contain backslashes and begins
20271 # with a dollar sign (not a hyphen), so the echo should work correctly.
20272 lt_compile=`echo "$ac_compile" | $SED \
20273 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
20274 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
20275 -e 's:$: $lt_compiler_flag:'`
20276 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
20277 (eval "$lt_compile" 2>out/conftest.err)
20278 ac_status=$?
20279 cat out/conftest.err >&5
20280 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20281 if (exit $ac_status) && test -s out/conftest2.$ac_objext
20282 then
20283 # The compiler can only warn and ignore the option if not recognized
20284 # So say no if there are warnings
20285 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
20286 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
20287 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
20288 lt_cv_prog_compiler_c_o_CXX=yes
20291 chmod u+w . 2>&5
20292 $RM conftest*
20293 # SGI C++ compiler will create directory out/ii_files/ for
20294 # template instantiation
20295 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
20296 $RM out/* && rmdir out
20297 cd ..
20298 $RM -r conftest
20299 $RM conftest*
20302 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o_CXX" >&5
20303 $as_echo "$lt_cv_prog_compiler_c_o_CXX" >&6; }
20308 hard_links="nottested"
20309 if test "$lt_cv_prog_compiler_c_o_CXX" = no && test "$need_locks" != no; then
20310 # do not overwrite the value of need_locks provided by the user
20311 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
20312 $as_echo_n "checking if we can lock with hard links... " >&6; }
20313 hard_links=yes
20314 $RM conftest*
20315 ln conftest.a conftest.b 2>/dev/null && hard_links=no
20316 touch conftest.a
20317 ln conftest.a conftest.b 2>&5 || hard_links=no
20318 ln conftest.a conftest.b 2>/dev/null && hard_links=no
20319 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
20320 $as_echo "$hard_links" >&6; }
20321 if test "$hard_links" = no; then
20322 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
20323 $as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
20324 need_locks=warn
20326 else
20327 need_locks=no
20332 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
20333 $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
20335 export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
20336 case $host_os in
20337 aix[4-9]*)
20338 # If we're using GNU nm, then we don't want the "-C" option.
20339 # -C means demangle to AIX nm, but means don't demangle with GNU nm
20340 # Also, AIX nm treats weak defined symbols like other global defined
20341 # symbols, whereas GNU nm marks them as "W".
20342 if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
20343 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'
20344 else
20345 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'
20348 pw32*)
20349 export_symbols_cmds_CXX="$ltdll_cmds"
20351 cygwin* | mingw* | cegcc*)
20352 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'
20355 export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
20357 esac
20358 exclude_expsyms_CXX='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
20360 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs_CXX" >&5
20361 $as_echo "$ld_shlibs_CXX" >&6; }
20362 test "$ld_shlibs_CXX" = no && can_build_shared=no
20364 with_gnu_ld_CXX=$with_gnu_ld
20372 # Do we need to explicitly link libc?
20374 case "x$archive_cmds_need_lc_CXX" in
20375 x|xyes)
20376 # Assume -lc should be added
20377 archive_cmds_need_lc_CXX=yes
20379 if test "$enable_shared" = yes && test "$GCC" = yes; then
20380 case $archive_cmds_CXX in
20381 *'~'*)
20382 # FIXME: we may have to deal with multi-command sequences.
20384 '$CC '*)
20385 # Test whether the compiler implicitly links with -lc since on some
20386 # systems, -lgcc has to come before -lc. If gcc already passes -lc
20387 # to ld, don't add -lc before -lgcc.
20388 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
20389 $as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
20390 if test "${lt_cv_archive_cmds_need_lc_CXX+set}" = set; then :
20391 $as_echo_n "(cached) " >&6
20392 else
20393 $RM conftest*
20394 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
20396 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
20397 (eval $ac_compile) 2>&5
20398 ac_status=$?
20399 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
20400 test $ac_status = 0; } 2>conftest.err; then
20401 soname=conftest
20402 lib=conftest
20403 libobjs=conftest.$ac_objext
20404 deplibs=
20405 wl=$lt_prog_compiler_wl_CXX
20406 pic_flag=$lt_prog_compiler_pic_CXX
20407 compiler_flags=-v
20408 linker_flags=-v
20409 verstring=
20410 output_objdir=.
20411 libname=conftest
20412 lt_save_allow_undefined_flag=$allow_undefined_flag_CXX
20413 allow_undefined_flag_CXX=
20414 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds_CXX 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5
20415 (eval $archive_cmds_CXX 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
20416 ac_status=$?
20417 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
20418 test $ac_status = 0; }
20419 then
20420 lt_cv_archive_cmds_need_lc_CXX=no
20421 else
20422 lt_cv_archive_cmds_need_lc_CXX=yes
20424 allow_undefined_flag_CXX=$lt_save_allow_undefined_flag
20425 else
20426 cat conftest.err 1>&5
20428 $RM conftest*
20431 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc_CXX" >&5
20432 $as_echo "$lt_cv_archive_cmds_need_lc_CXX" >&6; }
20433 archive_cmds_need_lc_CXX=$lt_cv_archive_cmds_need_lc_CXX
20435 esac
20438 esac
20503 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
20504 $as_echo_n "checking dynamic linker characteristics... " >&6; }
20506 library_names_spec=
20507 libname_spec='lib$name'
20508 soname_spec=
20509 shrext_cmds=".so"
20510 postinstall_cmds=
20511 postuninstall_cmds=
20512 finish_cmds=
20513 finish_eval=
20514 shlibpath_var=
20515 shlibpath_overrides_runpath=unknown
20516 version_type=none
20517 dynamic_linker="$host_os ld.so"
20518 sys_lib_dlsearch_path_spec="/lib /usr/lib"
20519 need_lib_prefix=unknown
20520 hardcode_into_libs=no
20522 # when you set need_version to no, make sure it does not cause -set_version
20523 # flags to be left without arguments
20524 need_version=unknown
20526 case $host_os in
20527 aix3*)
20528 version_type=linux
20529 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
20530 shlibpath_var=LIBPATH
20532 # AIX 3 has no versioning support, so we append a major version to the name.
20533 soname_spec='${libname}${release}${shared_ext}$major'
20536 aix[4-9]*)
20537 version_type=linux
20538 need_lib_prefix=no
20539 need_version=no
20540 hardcode_into_libs=yes
20541 if test "$host_cpu" = ia64; then
20542 # AIX 5 supports IA64
20543 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
20544 shlibpath_var=LD_LIBRARY_PATH
20545 else
20546 # With GCC up to 2.95.x, collect2 would create an import file
20547 # for dependence libraries. The import file would start with
20548 # the line `#! .'. This would cause the generated library to
20549 # depend on `.', always an invalid library. This was fixed in
20550 # development snapshots of GCC prior to 3.0.
20551 case $host_os in
20552 aix4 | aix4.[01] | aix4.[01].*)
20553 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
20554 echo ' yes '
20555 echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then
20557 else
20558 can_build_shared=no
20561 esac
20562 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
20563 # soname into executable. Probably we can add versioning support to
20564 # collect2, so additional links can be useful in future.
20565 if test "$aix_use_runtimelinking" = yes; then
20566 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
20567 # instead of lib<name>.a to let people know that these are not
20568 # typical AIX shared libraries.
20569 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20570 else
20571 # We preserve .a as extension for shared libraries through AIX4.2
20572 # and later when we are not doing run time linking.
20573 library_names_spec='${libname}${release}.a $libname.a'
20574 soname_spec='${libname}${release}${shared_ext}$major'
20576 shlibpath_var=LIBPATH
20580 amigaos*)
20581 case $host_cpu in
20582 powerpc)
20583 # Since July 2007 AmigaOS4 officially supports .so libraries.
20584 # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
20585 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20587 m68k)
20588 library_names_spec='$libname.ixlibrary $libname.a'
20589 # Create ${libname}_ixlibrary.a entries in /sys/libs.
20590 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'
20592 esac
20595 beos*)
20596 library_names_spec='${libname}${shared_ext}'
20597 dynamic_linker="$host_os ld.so"
20598 shlibpath_var=LIBRARY_PATH
20601 bsdi[45]*)
20602 version_type=linux
20603 need_version=no
20604 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20605 soname_spec='${libname}${release}${shared_ext}$major'
20606 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
20607 shlibpath_var=LD_LIBRARY_PATH
20608 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
20609 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
20610 # the default ld.so.conf also contains /usr/contrib/lib and
20611 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
20612 # libtool to hard-code these into programs
20615 cygwin* | mingw* | pw32* | cegcc*)
20616 version_type=windows
20617 shrext_cmds=".dll"
20618 need_version=no
20619 need_lib_prefix=no
20621 case $GCC,$host_os in
20622 yes,cygwin* | yes,mingw* | yes,pw32* | yes,cegcc*)
20623 library_names_spec='$libname.dll.a'
20624 # DLL is installed to $(libdir)/../bin by postinstall_cmds
20625 postinstall_cmds='base_file=`basename \${file}`~
20626 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
20627 dldir=$destdir/`dirname \$dlpath`~
20628 test -d \$dldir || mkdir -p \$dldir~
20629 $install_prog $dir/$dlname \$dldir/$dlname~
20630 chmod a+x \$dldir/$dlname~
20631 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
20632 eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
20634 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
20635 dlpath=$dir/\$dldll~
20636 $RM \$dlpath'
20637 shlibpath_overrides_runpath=yes
20639 case $host_os in
20640 cygwin*)
20641 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
20642 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
20645 mingw* | cegcc*)
20646 # MinGW DLLs use traditional 'lib' prefix
20647 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
20649 pw32*)
20650 # pw32 DLLs use 'pw' prefix rather than 'lib'
20651 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
20653 esac
20657 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
20659 esac
20660 dynamic_linker='Win32 ld.exe'
20661 # FIXME: first we should search . and the directory the executable is in
20662 shlibpath_var=PATH
20665 darwin* | rhapsody*)
20666 dynamic_linker="$host_os dyld"
20667 version_type=darwin
20668 need_lib_prefix=no
20669 need_version=no
20670 library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext'
20671 soname_spec='${libname}${release}${major}$shared_ext'
20672 shlibpath_overrides_runpath=yes
20673 shlibpath_var=DYLD_LIBRARY_PATH
20674 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
20676 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
20679 dgux*)
20680 version_type=linux
20681 need_lib_prefix=no
20682 need_version=no
20683 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
20684 soname_spec='${libname}${release}${shared_ext}$major'
20685 shlibpath_var=LD_LIBRARY_PATH
20688 freebsd* | dragonfly*)
20689 # DragonFly does not have aout. When/if they implement a new
20690 # versioning mechanism, adjust this.
20691 if test -x /usr/bin/objformat; then
20692 objformat=`/usr/bin/objformat`
20693 else
20694 case $host_os in
20695 freebsd[23].*) objformat=aout ;;
20696 *) objformat=elf ;;
20697 esac
20699 version_type=freebsd-$objformat
20700 case $version_type in
20701 freebsd-elf*)
20702 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
20703 need_version=no
20704 need_lib_prefix=no
20706 freebsd-*)
20707 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
20708 need_version=yes
20710 esac
20711 shlibpath_var=LD_LIBRARY_PATH
20712 case $host_os in
20713 freebsd2.*)
20714 shlibpath_overrides_runpath=yes
20716 freebsd3.[01]* | freebsdelf3.[01]*)
20717 shlibpath_overrides_runpath=yes
20718 hardcode_into_libs=yes
20720 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
20721 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
20722 shlibpath_overrides_runpath=no
20723 hardcode_into_libs=yes
20725 *) # from 4.6 on, and DragonFly
20726 shlibpath_overrides_runpath=yes
20727 hardcode_into_libs=yes
20729 esac
20732 gnu*)
20733 version_type=linux
20734 need_lib_prefix=no
20735 need_version=no
20736 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
20737 soname_spec='${libname}${release}${shared_ext}$major'
20738 shlibpath_var=LD_LIBRARY_PATH
20739 hardcode_into_libs=yes
20742 haiku*)
20743 version_type=linux
20744 need_lib_prefix=no
20745 need_version=no
20746 dynamic_linker="$host_os runtime_loader"
20747 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
20748 soname_spec='${libname}${release}${shared_ext}$major'
20749 shlibpath_var=LIBRARY_PATH
20750 shlibpath_overrides_runpath=yes
20751 sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/beos/system/lib'
20752 hardcode_into_libs=yes
20755 hpux9* | hpux10* | hpux11*)
20756 # Give a soname corresponding to the major version so that dld.sl refuses to
20757 # link against other versions.
20758 version_type=sunos
20759 need_lib_prefix=no
20760 need_version=no
20761 case $host_cpu in
20762 ia64*)
20763 shrext_cmds='.so'
20764 hardcode_into_libs=yes
20765 dynamic_linker="$host_os dld.so"
20766 shlibpath_var=LD_LIBRARY_PATH
20767 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
20768 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20769 soname_spec='${libname}${release}${shared_ext}$major'
20770 if test "X$HPUX_IA64_MODE" = X32; then
20771 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
20772 else
20773 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
20775 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
20777 hppa*64*)
20778 shrext_cmds='.sl'
20779 hardcode_into_libs=yes
20780 dynamic_linker="$host_os dld.sl"
20781 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
20782 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
20783 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20784 soname_spec='${libname}${release}${shared_ext}$major'
20785 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
20786 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
20789 shrext_cmds='.sl'
20790 dynamic_linker="$host_os dld.sl"
20791 shlibpath_var=SHLIB_PATH
20792 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
20793 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20794 soname_spec='${libname}${release}${shared_ext}$major'
20796 esac
20797 # HP-UX runs *really* slowly unless shared libraries are mode 555, ...
20798 postinstall_cmds='chmod 555 $lib'
20799 # or fails outright, so override atomically:
20800 install_override_mode=555
20803 interix[3-9]*)
20804 version_type=linux
20805 need_lib_prefix=no
20806 need_version=no
20807 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
20808 soname_spec='${libname}${release}${shared_ext}$major'
20809 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
20810 shlibpath_var=LD_LIBRARY_PATH
20811 shlibpath_overrides_runpath=no
20812 hardcode_into_libs=yes
20815 irix5* | irix6* | nonstopux*)
20816 case $host_os in
20817 nonstopux*) version_type=nonstopux ;;
20819 if test "$lt_cv_prog_gnu_ld" = yes; then
20820 version_type=linux
20821 else
20822 version_type=irix
20823 fi ;;
20824 esac
20825 need_lib_prefix=no
20826 need_version=no
20827 soname_spec='${libname}${release}${shared_ext}$major'
20828 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
20829 case $host_os in
20830 irix5* | nonstopux*)
20831 libsuff= shlibsuff=
20834 case $LD in # libtool.m4 will add one of these switches to LD
20835 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
20836 libsuff= shlibsuff= libmagic=32-bit;;
20837 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
20838 libsuff=32 shlibsuff=N32 libmagic=N32;;
20839 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
20840 libsuff=64 shlibsuff=64 libmagic=64-bit;;
20841 *) libsuff= shlibsuff= libmagic=never-match;;
20842 esac
20844 esac
20845 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
20846 shlibpath_overrides_runpath=no
20847 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
20848 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
20849 hardcode_into_libs=yes
20852 # No shared lib support for Linux oldld, aout, or coff.
20853 linux*oldld* | linux*aout* | linux*coff*)
20854 dynamic_linker=no
20857 # This must be Linux ELF.
20858 linux* | k*bsd*-gnu | kopensolaris*-gnu)
20859 version_type=linux
20860 need_lib_prefix=no
20861 need_version=no
20862 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20863 soname_spec='${libname}${release}${shared_ext}$major'
20864 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
20865 shlibpath_var=LD_LIBRARY_PATH
20866 shlibpath_overrides_runpath=no
20868 # Some binutils ld are patched to set DT_RUNPATH
20869 if test "${lt_cv_shlibpath_overrides_runpath+set}" = set; then :
20870 $as_echo_n "(cached) " >&6
20871 else
20872 lt_cv_shlibpath_overrides_runpath=no
20873 save_LDFLAGS=$LDFLAGS
20874 save_libdir=$libdir
20875 eval "libdir=/foo; wl=\"$lt_prog_compiler_wl_CXX\"; \
20876 LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec_CXX\""
20877 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20878 /* end confdefs.h. */
20881 main ()
20885 return 0;
20887 _ACEOF
20888 if ac_fn_cxx_try_link "$LINENO"; then :
20889 if ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then :
20890 lt_cv_shlibpath_overrides_runpath=yes
20893 rm -f core conftest.err conftest.$ac_objext \
20894 conftest$ac_exeext conftest.$ac_ext
20895 LDFLAGS=$save_LDFLAGS
20896 libdir=$save_libdir
20900 shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath
20902 # This implies no fast_install, which is unacceptable.
20903 # Some rework will be needed to allow for fast_install
20904 # before this can be enabled.
20905 hardcode_into_libs=yes
20907 # Append ld.so.conf contents to the search path
20908 if test -f /etc/ld.so.conf; then
20909 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' ' '`
20910 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
20913 # We used to test for /lib/ld.so.1 and disable shared libraries on
20914 # powerpc, because MkLinux only supported shared libraries with the
20915 # GNU dynamic linker. Since this was broken with cross compilers,
20916 # most powerpc-linux boxes support dynamic linking these days and
20917 # people can always --disable-shared, the test was removed, and we
20918 # assume the GNU/Linux dynamic linker is in use.
20919 dynamic_linker='GNU/Linux ld.so'
20922 netbsd*)
20923 version_type=sunos
20924 need_lib_prefix=no
20925 need_version=no
20926 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
20927 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
20928 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
20929 dynamic_linker='NetBSD (a.out) ld.so'
20930 else
20931 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
20932 soname_spec='${libname}${release}${shared_ext}$major'
20933 dynamic_linker='NetBSD ld.elf_so'
20935 shlibpath_var=LD_LIBRARY_PATH
20936 shlibpath_overrides_runpath=yes
20937 hardcode_into_libs=yes
20940 newsos6)
20941 version_type=linux
20942 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20943 shlibpath_var=LD_LIBRARY_PATH
20944 shlibpath_overrides_runpath=yes
20947 *nto* | *qnx*)
20948 version_type=qnx
20949 need_lib_prefix=no
20950 need_version=no
20951 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20952 soname_spec='${libname}${release}${shared_ext}$major'
20953 shlibpath_var=LD_LIBRARY_PATH
20954 shlibpath_overrides_runpath=no
20955 hardcode_into_libs=yes
20956 dynamic_linker='ldqnx.so'
20959 openbsd*)
20960 version_type=sunos
20961 sys_lib_dlsearch_path_spec="/usr/lib"
20962 need_lib_prefix=no
20963 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
20964 case $host_os in
20965 openbsd3.3 | openbsd3.3.*) need_version=yes ;;
20966 *) need_version=no ;;
20967 esac
20968 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
20969 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
20970 shlibpath_var=LD_LIBRARY_PATH
20971 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
20972 case $host_os in
20973 openbsd2.[89] | openbsd2.[89].*)
20974 shlibpath_overrides_runpath=no
20977 shlibpath_overrides_runpath=yes
20979 esac
20980 else
20981 shlibpath_overrides_runpath=yes
20985 os2*)
20986 libname_spec='$name'
20987 shrext_cmds=".dll"
20988 need_lib_prefix=no
20989 library_names_spec='$libname${shared_ext} $libname.a'
20990 dynamic_linker='OS/2 ld.exe'
20991 shlibpath_var=LIBPATH
20994 osf3* | osf4* | osf5*)
20995 version_type=osf
20996 need_lib_prefix=no
20997 need_version=no
20998 soname_spec='${libname}${release}${shared_ext}$major'
20999 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
21000 shlibpath_var=LD_LIBRARY_PATH
21001 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
21002 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
21005 rdos*)
21006 dynamic_linker=no
21009 solaris*)
21010 version_type=linux
21011 need_lib_prefix=no
21012 need_version=no
21013 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
21014 soname_spec='${libname}${release}${shared_ext}$major'
21015 shlibpath_var=LD_LIBRARY_PATH
21016 shlibpath_overrides_runpath=yes
21017 hardcode_into_libs=yes
21018 # ldd complains unless libraries are executable
21019 postinstall_cmds='chmod +x $lib'
21022 sunos4*)
21023 version_type=sunos
21024 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
21025 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
21026 shlibpath_var=LD_LIBRARY_PATH
21027 shlibpath_overrides_runpath=yes
21028 if test "$with_gnu_ld" = yes; then
21029 need_lib_prefix=no
21031 need_version=yes
21034 sysv4 | sysv4.3*)
21035 version_type=linux
21036 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
21037 soname_spec='${libname}${release}${shared_ext}$major'
21038 shlibpath_var=LD_LIBRARY_PATH
21039 case $host_vendor in
21040 sni)
21041 shlibpath_overrides_runpath=no
21042 need_lib_prefix=no
21043 runpath_var=LD_RUN_PATH
21045 siemens)
21046 need_lib_prefix=no
21048 motorola)
21049 need_lib_prefix=no
21050 need_version=no
21051 shlibpath_overrides_runpath=no
21052 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
21054 esac
21057 sysv4*MP*)
21058 if test -d /usr/nec ;then
21059 version_type=linux
21060 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
21061 soname_spec='$libname${shared_ext}.$major'
21062 shlibpath_var=LD_LIBRARY_PATH
21066 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
21067 version_type=freebsd-elf
21068 need_lib_prefix=no
21069 need_version=no
21070 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
21071 soname_spec='${libname}${release}${shared_ext}$major'
21072 shlibpath_var=LD_LIBRARY_PATH
21073 shlibpath_overrides_runpath=yes
21074 hardcode_into_libs=yes
21075 if test "$with_gnu_ld" = yes; then
21076 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
21077 else
21078 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
21079 case $host_os in
21080 sco3.2v5*)
21081 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
21083 esac
21085 sys_lib_dlsearch_path_spec='/usr/lib'
21088 tpf*)
21089 # TPF is a cross-target only. Preferred cross-host = GNU/Linux.
21090 version_type=linux
21091 need_lib_prefix=no
21092 need_version=no
21093 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
21094 shlibpath_var=LD_LIBRARY_PATH
21095 shlibpath_overrides_runpath=no
21096 hardcode_into_libs=yes
21099 uts4*)
21100 version_type=linux
21101 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
21102 soname_spec='${libname}${release}${shared_ext}$major'
21103 shlibpath_var=LD_LIBRARY_PATH
21107 dynamic_linker=no
21109 esac
21110 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
21111 $as_echo "$dynamic_linker" >&6; }
21112 test "$dynamic_linker" = no && can_build_shared=no
21114 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
21115 if test "$GCC" = yes; then
21116 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
21119 if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
21120 sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
21122 if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
21123 sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
21163 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
21164 $as_echo_n "checking how to hardcode library paths into programs... " >&6; }
21165 hardcode_action_CXX=
21166 if test -n "$hardcode_libdir_flag_spec_CXX" ||
21167 test -n "$runpath_var_CXX" ||
21168 test "X$hardcode_automatic_CXX" = "Xyes" ; then
21170 # We can hardcode non-existent directories.
21171 if test "$hardcode_direct_CXX" != no &&
21172 # If the only mechanism to avoid hardcoding is shlibpath_var, we
21173 # have to relink, otherwise we might link with an installed library
21174 # when we should be linking with a yet-to-be-installed one
21175 ## test "$_LT_TAGVAR(hardcode_shlibpath_var, CXX)" != no &&
21176 test "$hardcode_minus_L_CXX" != no; then
21177 # Linking always hardcodes the temporary library directory.
21178 hardcode_action_CXX=relink
21179 else
21180 # We can link without hardcoding, and we can hardcode nonexisting dirs.
21181 hardcode_action_CXX=immediate
21183 else
21184 # We cannot hardcode anything, or else we can only hardcode existing
21185 # directories.
21186 hardcode_action_CXX=unsupported
21188 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action_CXX" >&5
21189 $as_echo "$hardcode_action_CXX" >&6; }
21191 if test "$hardcode_action_CXX" = relink ||
21192 test "$inherit_rpath_CXX" = yes; then
21193 # Fast installation is not supported
21194 enable_fast_install=no
21195 elif test "$shlibpath_overrides_runpath" = yes ||
21196 test "$enable_shared" = no; then
21197 # Fast installation is not necessary
21198 enable_fast_install=needless
21207 fi # test -n "$compiler"
21209 CC=$lt_save_CC
21210 LDCXX=$LD
21211 LD=$lt_save_LD
21212 GCC=$lt_save_GCC
21213 with_gnu_ld=$lt_save_with_gnu_ld
21214 lt_cv_path_LDCXX=$lt_cv_path_LD
21215 lt_cv_path_LD=$lt_save_path_LD
21216 lt_cv_prog_gnu_ldcxx=$lt_cv_prog_gnu_ld
21217 lt_cv_prog_gnu_ld=$lt_save_with_gnu_ld
21218 fi # test "$_lt_caught_CXX_error" != yes
21220 ac_ext=c
21221 ac_cpp='$CPP $CPPFLAGS'
21222 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
21223 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
21224 ac_compiler_gnu=$ac_cv_c_compiler_gnu
21241 # Only expand once:
21247 # Identify the assembler which will work hand-in-glove with the newly
21248 # built GCC, so that we can examine its features. This is the assembler
21249 # which will be driven by the driver program.
21251 # If build != host, and we aren't building gas in-tree, we identify a
21252 # build->target assembler and hope that it will have the same features
21253 # as the host->target assembler we'll be using.
21254 gcc_cv_gas_major_version=
21255 gcc_cv_gas_minor_version=
21256 gcc_cv_as_gas_srcdir=`echo $srcdir | sed -e 's,/gcc$,,'`/gas
21258 if test "${gcc_cv_as+set}" = set; then :
21260 else
21262 if test -x "$DEFAULT_ASSEMBLER"; then
21263 gcc_cv_as="$DEFAULT_ASSEMBLER"
21264 elif test -f $gcc_cv_as_gas_srcdir/configure.in \
21265 && test -f ../gas/Makefile \
21266 && test x$build = x$host; then
21267 gcc_cv_as=../gas/as-new$build_exeext
21268 elif test -x as$build_exeext; then
21269 # Build using assembler in the current directory.
21270 gcc_cv_as=./as$build_exeext
21271 elif ( set dummy $AS_FOR_TARGET; test -x $2 ); then
21272 gcc_cv_as="$AS_FOR_TARGET"
21273 else
21274 # Extract the first word of "$AS_FOR_TARGET", so it can be a program name with args.
21275 set dummy $AS_FOR_TARGET; ac_word=$2
21276 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
21277 $as_echo_n "checking for $ac_word... " >&6; }
21278 if test "${ac_cv_path_gcc_cv_as+set}" = set; then :
21279 $as_echo_n "(cached) " >&6
21280 else
21281 case $gcc_cv_as in
21282 [\\/]* | ?:[\\/]*)
21283 ac_cv_path_gcc_cv_as="$gcc_cv_as" # Let the user override the test with a path.
21286 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
21287 for as_dir in $PATH
21289 IFS=$as_save_IFS
21290 test -z "$as_dir" && as_dir=.
21291 for ac_exec_ext in '' $ac_executable_extensions; do
21292 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
21293 ac_cv_path_gcc_cv_as="$as_dir/$ac_word$ac_exec_ext"
21294 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
21295 break 2
21297 done
21298 done
21299 IFS=$as_save_IFS
21302 esac
21304 gcc_cv_as=$ac_cv_path_gcc_cv_as
21305 if test -n "$gcc_cv_as"; then
21306 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as" >&5
21307 $as_echo "$gcc_cv_as" >&6; }
21308 else
21309 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
21310 $as_echo "no" >&6; }
21317 ORIGINAL_AS_FOR_TARGET=$gcc_cv_as
21319 case "$ORIGINAL_AS_FOR_TARGET" in
21320 ./as | ./as$build_exeext) ;;
21321 *) ac_config_files="$ac_config_files as:exec-tool.in"
21323 esac
21325 { $as_echo "$as_me:${as_lineno-$LINENO}: checking what assembler to use" >&5
21326 $as_echo_n "checking what assembler to use... " >&6; }
21327 if test "$gcc_cv_as" = ../gas/as-new$build_exeext; then
21328 # Single tree build which includes gas. We want to prefer it
21329 # over whatever linker top-level may have detected, since
21330 # we'll use what we're building after installation anyway.
21331 { $as_echo "$as_me:${as_lineno-$LINENO}: result: newly built gas" >&5
21332 $as_echo "newly built gas" >&6; }
21333 in_tree_gas=yes
21334 gcc_cv_as_bfd_srcdir=`echo $srcdir | sed -e 's,/gcc$,,'`/bfd
21335 for f in $gcc_cv_as_bfd_srcdir/configure \
21336 $gcc_cv_as_gas_srcdir/configure \
21337 $gcc_cv_as_gas_srcdir/configure.in \
21338 $gcc_cv_as_gas_srcdir/Makefile.in ; do
21339 gcc_cv_gas_version=`sed -n -e 's/^[ ]*VERSION=[^0-9A-Za-z_]*\([0-9]*\.[0-9]*.*\)/VERSION=\1/p' < $f`
21340 if test x$gcc_cv_gas_version != x; then
21341 break
21343 done
21344 case $gcc_cv_gas_version in
21345 VERSION=[0-9]*) ;;
21346 *) as_fn_error "cannot find version of in-tree assembler" "$LINENO" 5;;
21347 esac
21348 gcc_cv_gas_major_version=`expr "$gcc_cv_gas_version" : "VERSION=\([0-9]*\)"`
21349 gcc_cv_gas_minor_version=`expr "$gcc_cv_gas_version" : "VERSION=[0-9]*\.\([0-9]*\)"`
21350 gcc_cv_gas_patch_version=`expr "$gcc_cv_gas_version" : "VERSION=[0-9]*\.[0-9]*\.\([0-9]*\)"`
21351 case $gcc_cv_gas_patch_version in
21352 "") gcc_cv_gas_patch_version="0" ;;
21353 esac
21354 gcc_cv_gas_vers=`expr \( \( $gcc_cv_gas_major_version \* 1000 \) \
21355 + $gcc_cv_gas_minor_version \) \* 1000 \
21356 + $gcc_cv_gas_patch_version`
21358 in_tree_gas_is_elf=no
21359 if grep 'obj_format = elf' ../gas/Makefile > /dev/null \
21360 || (grep 'obj_format = multi' ../gas/Makefile \
21361 && grep 'extra_objects =.* obj-elf' ../gas/Makefile) > /dev/null
21362 then
21363 in_tree_gas_is_elf=yes
21365 else
21366 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as" >&5
21367 $as_echo "$gcc_cv_as" >&6; }
21368 in_tree_gas=no
21371 # Identify the linker which will work hand-in-glove with the newly
21372 # built GCC, so that we can examine its features. This is the linker
21373 # which will be driven by the driver program.
21375 # If build != host, and we aren't building gas in-tree, we identify a
21376 # build->target linker and hope that it will have the same features
21377 # as the host->target linker we'll be using.
21378 gcc_cv_gld_major_version=
21379 gcc_cv_gld_minor_version=
21380 gcc_cv_ld_gld_srcdir=`echo $srcdir | sed -e 's,/gcc$,,'`/ld
21381 gcc_cv_ld_bfd_srcdir=`echo $srcdir | sed -e 's,/gcc$,,'`/bfd
21383 if test "${gcc_cv_ld+set}" = set; then :
21385 else
21387 if test -x "$DEFAULT_LINKER"; then
21388 gcc_cv_ld="$DEFAULT_LINKER"
21389 elif test -f $gcc_cv_ld_gld_srcdir/configure.in \
21390 && test -f ../ld/Makefile \
21391 && test x$build = x$host; then
21392 gcc_cv_ld=../ld/ld-new$build_exeext
21393 elif test -x collect-ld$build_exeext; then
21394 # Build using linker in the current directory.
21395 gcc_cv_ld=./collect-ld$build_exeext
21396 elif ( set dummy $LD_FOR_TARGET; test -x $2 ); then
21397 gcc_cv_ld="$LD_FOR_TARGET"
21398 else
21399 # Extract the first word of "$LD_FOR_TARGET", so it can be a program name with args.
21400 set dummy $LD_FOR_TARGET; ac_word=$2
21401 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
21402 $as_echo_n "checking for $ac_word... " >&6; }
21403 if test "${ac_cv_path_gcc_cv_ld+set}" = set; then :
21404 $as_echo_n "(cached) " >&6
21405 else
21406 case $gcc_cv_ld in
21407 [\\/]* | ?:[\\/]*)
21408 ac_cv_path_gcc_cv_ld="$gcc_cv_ld" # Let the user override the test with a path.
21411 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
21412 for as_dir in $PATH
21414 IFS=$as_save_IFS
21415 test -z "$as_dir" && as_dir=.
21416 for ac_exec_ext in '' $ac_executable_extensions; do
21417 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
21418 ac_cv_path_gcc_cv_ld="$as_dir/$ac_word$ac_exec_ext"
21419 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
21420 break 2
21422 done
21423 done
21424 IFS=$as_save_IFS
21427 esac
21429 gcc_cv_ld=$ac_cv_path_gcc_cv_ld
21430 if test -n "$gcc_cv_ld"; then
21431 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld" >&5
21432 $as_echo "$gcc_cv_ld" >&6; }
21433 else
21434 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
21435 $as_echo "no" >&6; }
21442 ORIGINAL_PLUGIN_LD_FOR_TARGET=$gcc_cv_ld
21443 PLUGIN_LD_SUFFIX=`basename $gcc_cv_ld | sed -e "s,$target_alias-,,"`
21444 # if the PLUGIN_LD is set ld-new, just have it as ld
21445 # as that is the installed named.
21446 if test x$PLUGIN_LD_SUFFIX = xld-new \
21447 || test x$PLUGIN_LD_SUFFIX = xcollect-ld ; then
21448 PLUGIN_LD_SUFFIX=ld
21451 # Check whether --with-plugin-ld was given.
21452 if test "${with_plugin_ld+set}" = set; then :
21453 withval=$with_plugin_ld; if test x"$withval" != x; then
21454 ORIGINAL_PLUGIN_LD_FOR_TARGET="$withval"
21455 PLUGIN_LD_SUFFIX=`echo $withval | sed -e "s,$target_alias-,,"`
21461 cat >>confdefs.h <<_ACEOF
21462 #define PLUGIN_LD_SUFFIX "$PLUGIN_LD_SUFFIX"
21463 _ACEOF
21466 # Check to see if we are using gold instead of ld
21467 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using gold" >&5
21468 $as_echo_n "checking whether we are using gold... " >&6; }
21469 ld_is_gold=no
21470 if test x$gcc_cv_ld != x; then
21471 if $gcc_cv_ld --version 2>/dev/null | sed 1q \
21472 | grep "GNU gold" > /dev/null; then
21473 ld_is_gold=yes
21476 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_is_gold" >&5
21477 $as_echo "$ld_is_gold" >&6; }
21479 ORIGINAL_LD_FOR_TARGET=$gcc_cv_ld
21481 case "$ORIGINAL_LD_FOR_TARGET" in
21482 ./collect-ld | ./collect-ld$build_exeext) ;;
21483 *) ac_config_files="$ac_config_files collect-ld:exec-tool.in"
21485 esac
21487 { $as_echo "$as_me:${as_lineno-$LINENO}: checking what linker to use" >&5
21488 $as_echo_n "checking what linker to use... " >&6; }
21489 if test "$gcc_cv_ld" = ../ld/ld-new$build_exeext \
21490 || test "$gcc_cv_ld" = ../gold/ld-new$build_exeext; then
21491 # Single tree build which includes ld. We want to prefer it
21492 # over whatever linker top-level may have detected, since
21493 # we'll use what we're building after installation anyway.
21494 { $as_echo "$as_me:${as_lineno-$LINENO}: result: newly built ld" >&5
21495 $as_echo "newly built ld" >&6; }
21496 in_tree_ld=yes
21497 in_tree_ld_is_elf=no
21498 if (grep 'EMUL = .*elf' ../ld/Makefile \
21499 || grep 'EMUL = .*linux' ../ld/Makefile \
21500 || grep 'EMUL = .*lynx' ../ld/Makefile) > /dev/null; then
21501 in_tree_ld_is_elf=yes
21502 elif test "$ld_is_gold" = yes; then
21503 in_tree_ld_is_elf=yes
21505 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
21507 gcc_cv_gld_version=`sed -n -e 's/^[ ]*VERSION=[^0-9A-Za-z_]*\([0-9]*\.[0-9]*.*\)/VERSION=\1/p' < $f`
21508 if test x$gcc_cv_gld_version != x; then
21509 break
21511 done
21512 case $gcc_cv_gld_version in
21513 VERSION=[0-9]*) ;;
21514 *) as_fn_error "cannot find version of in-tree linker" "$LINENO" 5 ;;
21515 esac
21516 gcc_cv_gld_major_version=`expr "$gcc_cv_gld_version" : "VERSION=\([0-9]*\)"`
21517 gcc_cv_gld_minor_version=`expr "$gcc_cv_gld_version" : "VERSION=[0-9]*\.\([0-9]*\)"`
21518 else
21519 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld" >&5
21520 $as_echo "$gcc_cv_ld" >&6; }
21521 in_tree_ld=no
21524 # Figure out what nm we will be using.
21525 gcc_cv_binutils_srcdir=`echo $srcdir | sed -e 's,/gcc$,,'`/binutils
21526 if test "${gcc_cv_nm+set}" = set; then :
21528 else
21530 if test -f $gcc_cv_binutils_srcdir/configure.in \
21531 && test -f ../binutils/Makefile \
21532 && test x$build = x$host; then
21533 gcc_cv_nm=../binutils/nm-new$build_exeext
21534 elif test -x nm$build_exeext; then
21535 gcc_cv_nm=./nm$build_exeext
21536 elif ( set dummy $NM_FOR_TARGET; test -x $2 ); then
21537 gcc_cv_nm="$NM_FOR_TARGET"
21538 else
21539 # Extract the first word of "$NM_FOR_TARGET", so it can be a program name with args.
21540 set dummy $NM_FOR_TARGET; ac_word=$2
21541 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
21542 $as_echo_n "checking for $ac_word... " >&6; }
21543 if test "${ac_cv_path_gcc_cv_nm+set}" = set; then :
21544 $as_echo_n "(cached) " >&6
21545 else
21546 case $gcc_cv_nm in
21547 [\\/]* | ?:[\\/]*)
21548 ac_cv_path_gcc_cv_nm="$gcc_cv_nm" # Let the user override the test with a path.
21551 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
21552 for as_dir in $PATH
21554 IFS=$as_save_IFS
21555 test -z "$as_dir" && as_dir=.
21556 for ac_exec_ext in '' $ac_executable_extensions; do
21557 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
21558 ac_cv_path_gcc_cv_nm="$as_dir/$ac_word$ac_exec_ext"
21559 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
21560 break 2
21562 done
21563 done
21564 IFS=$as_save_IFS
21567 esac
21569 gcc_cv_nm=$ac_cv_path_gcc_cv_nm
21570 if test -n "$gcc_cv_nm"; then
21571 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_nm" >&5
21572 $as_echo "$gcc_cv_nm" >&6; }
21573 else
21574 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
21575 $as_echo "no" >&6; }
21582 { $as_echo "$as_me:${as_lineno-$LINENO}: checking what nm to use" >&5
21583 $as_echo_n "checking what nm to use... " >&6; }
21584 if test "$gcc_cv_nm" = ../binutils/nm-new$build_exeext; then
21585 # Single tree build which includes binutils.
21586 { $as_echo "$as_me:${as_lineno-$LINENO}: result: newly built nm" >&5
21587 $as_echo "newly built nm" >&6; }
21588 in_tree_nm=yes
21589 else
21590 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_nm" >&5
21591 $as_echo "$gcc_cv_nm" >&6; }
21592 in_tree_nm=no
21595 ORIGINAL_NM_FOR_TARGET=$gcc_cv_nm
21597 case "$ORIGINAL_NM_FOR_TARGET" in
21598 ./nm | ./nm$build_exeext) ;;
21599 *) ac_config_files="$ac_config_files nm:exec-tool.in"
21601 esac
21604 # Figure out what objdump we will be using.
21605 if test "${gcc_cv_objdump+set}" = set; then :
21607 else
21609 if test -f $gcc_cv_binutils_srcdir/configure.in \
21610 && test -f ../binutils/Makefile \
21611 && test x$build = x$host; then
21612 # Single tree build which includes binutils.
21613 gcc_cv_objdump=../binutils/objdump$build_exeext
21614 elif test -x objdump$build_exeext; then
21615 gcc_cv_objdump=./objdump$build_exeext
21616 elif ( set dummy $OBJDUMP_FOR_TARGET; test -x $2 ); then
21617 gcc_cv_objdump="$OBJDUMP_FOR_TARGET"
21618 else
21619 # Extract the first word of "$OBJDUMP_FOR_TARGET", so it can be a program name with args.
21620 set dummy $OBJDUMP_FOR_TARGET; ac_word=$2
21621 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
21622 $as_echo_n "checking for $ac_word... " >&6; }
21623 if test "${ac_cv_path_gcc_cv_objdump+set}" = set; then :
21624 $as_echo_n "(cached) " >&6
21625 else
21626 case $gcc_cv_objdump in
21627 [\\/]* | ?:[\\/]*)
21628 ac_cv_path_gcc_cv_objdump="$gcc_cv_objdump" # Let the user override the test with a path.
21631 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
21632 for as_dir in $PATH
21634 IFS=$as_save_IFS
21635 test -z "$as_dir" && as_dir=.
21636 for ac_exec_ext in '' $ac_executable_extensions; do
21637 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
21638 ac_cv_path_gcc_cv_objdump="$as_dir/$ac_word$ac_exec_ext"
21639 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
21640 break 2
21642 done
21643 done
21644 IFS=$as_save_IFS
21647 esac
21649 gcc_cv_objdump=$ac_cv_path_gcc_cv_objdump
21650 if test -n "$gcc_cv_objdump"; then
21651 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_objdump" >&5
21652 $as_echo "$gcc_cv_objdump" >&6; }
21653 else
21654 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
21655 $as_echo "no" >&6; }
21662 { $as_echo "$as_me:${as_lineno-$LINENO}: checking what objdump to use" >&5
21663 $as_echo_n "checking what objdump to use... " >&6; }
21664 if test "$gcc_cv_objdump" = ../binutils/objdump$build_exeext; then
21665 # Single tree build which includes binutils.
21666 { $as_echo "$as_me:${as_lineno-$LINENO}: result: newly built objdump" >&5
21667 $as_echo "newly built objdump" >&6; }
21668 elif test x$gcc_cv_objdump = x; then
21669 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
21670 $as_echo "not found" >&6; }
21671 else
21672 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_objdump" >&5
21673 $as_echo "$gcc_cv_objdump" >&6; }
21676 # Figure out what readelf we will be using.
21677 if test "${gcc_cv_readelf+set}" = set; then :
21679 else
21681 if test -f $gcc_cv_binutils_srcdir/configure.in \
21682 && test -f ../binutils/Makefile \
21683 && test x$build = x$host; then
21684 # Single tree build which includes binutils.
21685 gcc_cv_readelf=../binutils/readelf$build_exeext
21686 elif test -x readelf$build_exeext; then
21687 gcc_cv_readelf=./readelf$build_exeext
21688 else
21689 # Extract the first word of "readelf", so it can be a program name with args.
21690 set dummy readelf; ac_word=$2
21691 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
21692 $as_echo_n "checking for $ac_word... " >&6; }
21693 if test "${ac_cv_path_gcc_cv_readelf+set}" = set; then :
21694 $as_echo_n "(cached) " >&6
21695 else
21696 case $gcc_cv_readelf in
21697 [\\/]* | ?:[\\/]*)
21698 ac_cv_path_gcc_cv_readelf="$gcc_cv_readelf" # Let the user override the test with a path.
21701 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
21702 for as_dir in $PATH
21704 IFS=$as_save_IFS
21705 test -z "$as_dir" && as_dir=.
21706 for ac_exec_ext in '' $ac_executable_extensions; do
21707 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
21708 ac_cv_path_gcc_cv_readelf="$as_dir/$ac_word$ac_exec_ext"
21709 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
21710 break 2
21712 done
21713 done
21714 IFS=$as_save_IFS
21717 esac
21719 gcc_cv_readelf=$ac_cv_path_gcc_cv_readelf
21720 if test -n "$gcc_cv_readelf"; then
21721 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_readelf" >&5
21722 $as_echo "$gcc_cv_readelf" >&6; }
21723 else
21724 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
21725 $as_echo "no" >&6; }
21732 { $as_echo "$as_me:${as_lineno-$LINENO}: checking what readelf to use" >&5
21733 $as_echo_n "checking what readelf to use... " >&6; }
21734 if test "$gcc_cv_readelf" = ../binutils/readelf$build_exeext; then
21735 # Single tree build which includes binutils.
21736 { $as_echo "$as_me:${as_lineno-$LINENO}: result: newly built readelf" >&5
21737 $as_echo "newly built readelf" >&6; }
21738 elif test x$gcc_cv_readelf = x; then
21739 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
21740 $as_echo "not found" >&6; }
21741 else
21742 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_readelf" >&5
21743 $as_echo "$gcc_cv_readelf" >&6; }
21746 # Figure out what assembler alignment features are present.
21747 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler flags" >&5
21748 $as_echo_n "checking assembler flags... " >&6; }
21749 if test "${gcc_cv_as_flags+set}" = set; then :
21750 $as_echo_n "(cached) " >&6
21751 else
21752 case "$target" in
21753 i[34567]86-*-linux*)
21754 gcc_cv_as_flags="--32"
21756 powerpc*-*-darwin*)
21757 gcc_cv_as_flags="-arch ppc"
21760 gcc_cv_as_flags=" "
21762 esac
21764 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_flags" >&5
21765 $as_echo "$gcc_cv_as_flags" >&6; }
21767 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .balign and .p2align" >&5
21768 $as_echo_n "checking assembler for .balign and .p2align... " >&6; }
21769 if test "${gcc_cv_as_balign_and_p2align+set}" = set; then :
21770 $as_echo_n "(cached) " >&6
21771 else
21772 gcc_cv_as_balign_and_p2align=no
21773 if test $in_tree_gas = yes; then
21774 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 6 \) \* 1000 + 0`
21775 then gcc_cv_as_balign_and_p2align=yes
21777 elif test x$gcc_cv_as != x; then
21778 $as_echo '.balign 4
21779 .p2align 2' > conftest.s
21780 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
21781 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
21782 (eval $ac_try) 2>&5
21783 ac_status=$?
21784 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
21785 test $ac_status = 0; }; }
21786 then
21787 gcc_cv_as_balign_and_p2align=yes
21788 else
21789 echo "configure: failed program was" >&5
21790 cat conftest.s >&5
21792 rm -f conftest.o conftest.s
21795 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_balign_and_p2align" >&5
21796 $as_echo "$gcc_cv_as_balign_and_p2align" >&6; }
21797 if test $gcc_cv_as_balign_and_p2align = yes; then
21799 $as_echo "#define HAVE_GAS_BALIGN_AND_P2ALIGN 1" >>confdefs.h
21803 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .p2align with maximum skip" >&5
21804 $as_echo_n "checking assembler for .p2align with maximum skip... " >&6; }
21805 if test "${gcc_cv_as_max_skip_p2align+set}" = set; then :
21806 $as_echo_n "(cached) " >&6
21807 else
21808 gcc_cv_as_max_skip_p2align=no
21809 if test $in_tree_gas = yes; then
21810 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 8 \) \* 1000 + 0`
21811 then gcc_cv_as_max_skip_p2align=yes
21813 elif test x$gcc_cv_as != x; then
21814 $as_echo '.p2align 4,,7' > conftest.s
21815 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
21816 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
21817 (eval $ac_try) 2>&5
21818 ac_status=$?
21819 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
21820 test $ac_status = 0; }; }
21821 then
21822 gcc_cv_as_max_skip_p2align=yes
21823 else
21824 echo "configure: failed program was" >&5
21825 cat conftest.s >&5
21827 rm -f conftest.o conftest.s
21830 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_max_skip_p2align" >&5
21831 $as_echo "$gcc_cv_as_max_skip_p2align" >&6; }
21832 if test $gcc_cv_as_max_skip_p2align = yes; then
21834 $as_echo "#define HAVE_GAS_MAX_SKIP_P2ALIGN 1" >>confdefs.h
21838 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .literal16" >&5
21839 $as_echo_n "checking assembler for .literal16... " >&6; }
21840 if test "${gcc_cv_as_literal16+set}" = set; then :
21841 $as_echo_n "(cached) " >&6
21842 else
21843 gcc_cv_as_literal16=no
21844 if test $in_tree_gas = yes; then
21845 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 8 \) \* 1000 + 0`
21846 then gcc_cv_as_literal16=yes
21848 elif test x$gcc_cv_as != x; then
21849 $as_echo '.literal16' > conftest.s
21850 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
21851 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
21852 (eval $ac_try) 2>&5
21853 ac_status=$?
21854 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
21855 test $ac_status = 0; }; }
21856 then
21857 gcc_cv_as_literal16=yes
21858 else
21859 echo "configure: failed program was" >&5
21860 cat conftest.s >&5
21862 rm -f conftest.o conftest.s
21865 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_literal16" >&5
21866 $as_echo "$gcc_cv_as_literal16" >&6; }
21867 if test $gcc_cv_as_literal16 = yes; then
21869 $as_echo "#define HAVE_GAS_LITERAL16 1" >>confdefs.h
21873 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for working .subsection -1" >&5
21874 $as_echo_n "checking assembler for working .subsection -1... " >&6; }
21875 if test "${gcc_cv_as_subsection_m1+set}" = set; then :
21876 $as_echo_n "(cached) " >&6
21877 else
21878 gcc_cv_as_subsection_m1=no
21879 if test $in_tree_gas = yes; then
21880 if test $in_tree_gas_is_elf = yes \
21881 && test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 9 \) \* 1000 + 0`
21882 then gcc_cv_as_subsection_m1=yes
21884 elif test x$gcc_cv_as != x; then
21885 $as_echo 'conftest_label1: .word 0
21886 .subsection -1
21887 conftest_label2: .word 0
21888 .previous' > conftest.s
21889 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
21890 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
21891 (eval $ac_try) 2>&5
21892 ac_status=$?
21893 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
21894 test $ac_status = 0; }; }
21895 then
21896 if test x$gcc_cv_nm != x; then
21897 $gcc_cv_nm conftest.o | grep conftest_label1 > conftest.nm1
21898 $gcc_cv_nm conftest.o | grep conftest_label2 | sed -e 's/label2/label1/' > conftest.nm2
21899 if cmp conftest.nm1 conftest.nm2 > /dev/null 2>&1
21900 then :
21901 else gcc_cv_as_subsection_m1=yes
21903 rm -f conftest.nm1 conftest.nm2
21905 else
21906 echo "configure: failed program was" >&5
21907 cat conftest.s >&5
21909 rm -f conftest.o conftest.s
21912 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_subsection_m1" >&5
21913 $as_echo "$gcc_cv_as_subsection_m1" >&6; }
21914 if test $gcc_cv_as_subsection_m1 = yes; then
21916 $as_echo "#define HAVE_GAS_SUBSECTION_ORDERING 1" >>confdefs.h
21920 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .weak" >&5
21921 $as_echo_n "checking assembler for .weak... " >&6; }
21922 if test "${gcc_cv_as_weak+set}" = set; then :
21923 $as_echo_n "(cached) " >&6
21924 else
21925 gcc_cv_as_weak=no
21926 if test $in_tree_gas = yes; then
21927 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 2 \) \* 1000 + 0`
21928 then gcc_cv_as_weak=yes
21930 elif test x$gcc_cv_as != x; then
21931 $as_echo ' .weak foobar' > conftest.s
21932 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
21933 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
21934 (eval $ac_try) 2>&5
21935 ac_status=$?
21936 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
21937 test $ac_status = 0; }; }
21938 then
21939 gcc_cv_as_weak=yes
21940 else
21941 echo "configure: failed program was" >&5
21942 cat conftest.s >&5
21944 rm -f conftest.o conftest.s
21947 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_weak" >&5
21948 $as_echo "$gcc_cv_as_weak" >&6; }
21949 if test $gcc_cv_as_weak = yes; then
21951 $as_echo "#define HAVE_GAS_WEAK 1" >>confdefs.h
21955 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .weakref" >&5
21956 $as_echo_n "checking assembler for .weakref... " >&6; }
21957 if test "${gcc_cv_as_weakref+set}" = set; then :
21958 $as_echo_n "(cached) " >&6
21959 else
21960 gcc_cv_as_weakref=no
21961 if test $in_tree_gas = yes; then
21962 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 17 \) \* 1000 + 0`
21963 then gcc_cv_as_weakref=yes
21965 elif test x$gcc_cv_as != x; then
21966 $as_echo ' .weakref foobar, barfnot' > conftest.s
21967 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
21968 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
21969 (eval $ac_try) 2>&5
21970 ac_status=$?
21971 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
21972 test $ac_status = 0; }; }
21973 then
21974 gcc_cv_as_weakref=yes
21975 else
21976 echo "configure: failed program was" >&5
21977 cat conftest.s >&5
21979 rm -f conftest.o conftest.s
21982 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_weakref" >&5
21983 $as_echo "$gcc_cv_as_weakref" >&6; }
21984 if test $gcc_cv_as_weakref = yes; then
21986 $as_echo "#define HAVE_GAS_WEAKREF 1" >>confdefs.h
21990 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .nsubspa comdat" >&5
21991 $as_echo_n "checking assembler for .nsubspa comdat... " >&6; }
21992 if test "${gcc_cv_as_nsubspa_comdat+set}" = set; then :
21993 $as_echo_n "(cached) " >&6
21994 else
21995 gcc_cv_as_nsubspa_comdat=no
21996 if test $in_tree_gas = yes; then
21997 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 15 \) \* 1000 + 91`
21998 then gcc_cv_as_nsubspa_comdat=yes
22000 elif test x$gcc_cv_as != x; then
22001 $as_echo ' .SPACE $TEXT$
22002 .NSUBSPA $CODE$,COMDAT' > conftest.s
22003 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
22004 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
22005 (eval $ac_try) 2>&5
22006 ac_status=$?
22007 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
22008 test $ac_status = 0; }; }
22009 then
22010 gcc_cv_as_nsubspa_comdat=yes
22011 else
22012 echo "configure: failed program was" >&5
22013 cat conftest.s >&5
22015 rm -f conftest.o conftest.s
22018 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_nsubspa_comdat" >&5
22019 $as_echo "$gcc_cv_as_nsubspa_comdat" >&6; }
22020 if test $gcc_cv_as_nsubspa_comdat = yes; then
22022 $as_echo "#define HAVE_GAS_NSUBSPA_COMDAT 1" >>confdefs.h
22026 # .hidden needs to be supported in both the assembler and the linker,
22027 # because GNU LD versions before 2.12.1 have buggy support for STV_HIDDEN.
22028 # This is irritatingly difficult to feature test for; we have to check the
22029 # date string after the version number. If we've got an in-tree
22030 # ld, we don't know its patchlevel version, so we set the baseline at 2.13
22031 # to be safe.
22032 # The gcc_GAS_CHECK_FEATURE call just sets a cache variable.
22033 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .hidden" >&5
22034 $as_echo_n "checking assembler for .hidden... " >&6; }
22035 if test "${gcc_cv_as_hidden+set}" = set; then :
22036 $as_echo_n "(cached) " >&6
22037 else
22038 gcc_cv_as_hidden=no
22039 if test $in_tree_gas = yes; then
22040 if test $in_tree_gas_is_elf = yes \
22041 && test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 13 \) \* 1000 + 0`
22042 then gcc_cv_as_hidden=yes
22044 elif test x$gcc_cv_as != x; then
22045 $as_echo ' .hidden foobar
22046 foobar:' > conftest.s
22047 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
22048 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
22049 (eval $ac_try) 2>&5
22050 ac_status=$?
22051 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
22052 test $ac_status = 0; }; }
22053 then
22055 # Solaris 9/x86 as incorrectly emits an alias for a hidden symbol with
22056 # STV_HIDDEN, so disable .hidden support if so.
22057 case "${target}" in
22058 i?86-*-solaris2* | x86_64-*-solaris2.1[0-9]*)
22059 if test x$gcc_cv_as != x && test x$gcc_cv_objdump != x; then
22060 cat > conftest.s <<EOF
22061 .globl hidden
22062 .hidden hidden
22063 hidden:
22064 .globl default
22065 .set default,hidden
22067 if $gcc_cv_as -o conftest.o conftest.s > /dev/null 2>&1 \
22068 && $gcc_cv_objdump -t conftest.o 2>/dev/null | \
22069 grep '\.hidden default' > /dev/null; then
22070 gcc_cv_as_hidden=no
22071 else
22072 gcc_cv_as_hidden=yes
22074 else
22075 # Assume bug is present if objdump is missing.
22076 gcc_cv_as_hidden=no
22080 gcc_cv_as_hidden=yes
22082 esac
22083 else
22084 echo "configure: failed program was" >&5
22085 cat conftest.s >&5
22087 rm -f conftest.o conftest.s
22090 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_hidden" >&5
22091 $as_echo "$gcc_cv_as_hidden" >&6; }
22093 case "${target}" in
22094 *-*-darwin*)
22095 # Darwin as has some visibility support, though with a different syntax.
22096 gcc_cv_as_hidden=yes
22098 esac
22100 # gnu_indirect_function type is an extension proposed at
22101 # http://groups.google/com/group/generic-abi/files. It allows dynamic runtime
22102 # selection of function implementation
22103 # Check whether --enable-gnu-indirect-function was given.
22104 if test "${enable_gnu_indirect_function+set}" = set; then :
22105 enableval=$enable_gnu_indirect_function; case $enable_gnu_indirect_function in
22106 yes | no) ;;
22107 *) as_fn_error "'$enable_gnu_indirect_function' is an invalid value for --enable-gnu-indirect-function.
22108 Valid choices are 'yes' and 'no'." "$LINENO" 5 ;;
22109 esac
22110 else
22111 enable_gnu_indirect_function="$default_gnu_indirect_function"
22114 if test x$enable_gnu_indirect_function = xyes; then
22116 $as_echo "#define HAVE_GNU_INDIRECT_FUNCTION 1" >>confdefs.h
22120 if test $in_tree_ld != yes ; then
22121 ld_ver=`$gcc_cv_ld --version 2>/dev/null | sed 1q`
22122 if echo "$ld_ver" | grep GNU > /dev/null; then
22123 if test x"$ld_is_gold" = xyes; then
22124 # GNU gold --version looks like this:
22126 # GNU gold (GNU Binutils 2.21.51.20110225) 1.11
22128 # We extract the binutils version which is more familiar and specific
22129 # than the gold version.
22130 ld_vers=`echo $ld_ver | sed -n \
22131 -e 's,^[^)]*[ ]\([0-9][0-9]*\.[0-9][0-9]*[^)]*\)) .*$,\1,p'`
22132 else
22133 # GNU ld --version looks like this:
22135 # GNU ld (GNU Binutils) 2.21.51.20110225
22136 ld_vers=`echo $ld_ver | sed -n \
22137 -e 's,^.*[ ]\([0-9][0-9]*\.[0-9][0-9]*.*\)$,\1,p'`
22139 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'`
22140 ld_vers_major=`expr "$ld_vers" : '\([0-9]*\)'`
22141 ld_vers_minor=`expr "$ld_vers" : '[0-9]*\.\([0-9]*\)'`
22142 ld_vers_patch=`expr "$ld_vers" : '[0-9]*\.[0-9]*\.\([0-9]*\)'`
22143 else
22144 case "${target}" in
22145 *-*-solaris2*)
22146 # See acinclude.m4 (gcc_SUN_LD_VERSION) for the version number
22147 # format.
22149 # Don't reuse gcc_gv_sun_ld_vers_* in case a linker other than
22150 # /usr/ccs/bin/ld has been configured.
22151 ld_ver=`$gcc_cv_ld -V 2>&1`
22152 if echo "$ld_ver" | grep 'Solaris Link Editors' > /dev/null; then
22153 ld_vers=`echo $ld_ver | sed -n \
22154 -e 's,^.*: 5\.[0-9][0-9]*-\([0-9]\.[0-9][0-9]*\).*$,\1,p'`
22155 ld_vers_major=`expr "$ld_vers" : '\([0-9]*\)'`
22156 ld_vers_minor=`expr "$ld_vers" : '[0-9]*\.\([0-9]*\)'`
22159 esac
22163 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker for .hidden support" >&5
22164 $as_echo_n "checking linker for .hidden support... " >&6; }
22165 if test "${gcc_cv_ld_hidden+set}" = set; then :
22166 $as_echo_n "(cached) " >&6
22167 else
22168 if test $in_tree_ld = yes ; then
22169 gcc_cv_ld_hidden=no
22170 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 \
22171 && test $in_tree_ld_is_elf = yes; then
22172 gcc_cv_ld_hidden=yes
22174 else
22175 gcc_cv_ld_hidden=yes
22176 if test x"$ld_is_gold" = xyes; then
22178 elif echo "$ld_ver" | grep GNU > /dev/null; then
22179 case "${target}" in
22180 mmix-knuth-mmixware)
22181 # The linker emits by default mmo, not ELF, so "no" is appropriate.
22182 gcc_cv_ld_hidden=no
22184 esac
22185 if test 0"$ld_date" -lt 20020404; then
22186 if test -n "$ld_date"; then
22187 # If there was date string, but was earlier than 2002-04-04, fail
22188 gcc_cv_ld_hidden=no
22189 elif test -z "$ld_vers"; then
22190 # If there was no date string nor ld version number, something is wrong
22191 gcc_cv_ld_hidden=no
22192 else
22193 test -z "$ld_vers_patch" && ld_vers_patch=0
22194 if test "$ld_vers_major" -lt 2; then
22195 gcc_cv_ld_hidden=no
22196 elif test "$ld_vers_major" -eq 2 -a "$ld_vers_minor" -lt 12; then
22197 gcc_cv_ld_hidden="no"
22198 elif test "$ld_vers_major" -eq 2 -a "$ld_vers_minor" -eq 12 -a "$ld_vers_patch" -eq 0; then
22199 gcc_cv_ld_hidden=no
22203 else
22204 case "${target}" in
22205 *-*-darwin*)
22206 # Darwin ld has some visibility support.
22207 gcc_cv_ld_hidden=yes
22209 hppa64*-*-hpux* | ia64*-*-hpux*)
22210 gcc_cv_ld_hidden=yes
22212 *-*-solaris2.9* | *-*-solaris2.1[0-9]*)
22213 # Support for .hidden in Sun ld appeared in Solaris 9 FCS, but
22214 # .symbolic was only added in Solaris 9 12/02.
22215 gcc_cv_ld_hidden=yes
22218 gcc_cv_ld_hidden=no
22220 esac
22224 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_hidden" >&5
22225 $as_echo "$gcc_cv_ld_hidden" >&6; }
22226 libgcc_visibility=no
22229 if test $gcc_cv_as_hidden = yes && test $gcc_cv_ld_hidden = yes; then
22230 libgcc_visibility=yes
22232 $as_echo "#define HAVE_GAS_HIDDEN 1" >>confdefs.h
22236 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker read-only and read-write section mixing" >&5
22237 $as_echo_n "checking linker read-only and read-write section mixing... " >&6; }
22238 gcc_cv_ld_ro_rw_mix=unknown
22239 if test $in_tree_ld = yes ; then
22240 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 \
22241 && test $in_tree_ld_is_elf = yes; then
22242 gcc_cv_ld_ro_rw_mix=read-write
22244 elif test x$gcc_cv_as != x -a x$gcc_cv_ld != x -a x$gcc_cv_objdump != x ; then
22245 echo '.section myfoosect, "a"' > conftest1.s
22246 echo '.section myfoosect, "aw"' > conftest2.s
22247 echo '.byte 1' >> conftest2.s
22248 echo '.section myfoosect, "a"' > conftest3.s
22249 echo '.byte 0' >> conftest3.s
22250 if $gcc_cv_as -o conftest1.o conftest1.s > /dev/null 2>&1 \
22251 && $gcc_cv_as -o conftest2.o conftest2.s > /dev/null 2>&1 \
22252 && $gcc_cv_as -o conftest3.o conftest3.s > /dev/null 2>&1 \
22253 && $gcc_cv_ld -shared -o conftest1.so conftest1.o \
22254 conftest2.o conftest3.o > /dev/null 2>&1; then
22255 gcc_cv_ld_ro_rw_mix=`$gcc_cv_objdump -h conftest1.so \
22256 | sed -e '/myfoosect/!d' -e N`
22257 if echo "$gcc_cv_ld_ro_rw_mix" | grep CONTENTS > /dev/null; then
22258 if echo "$gcc_cv_ld_ro_rw_mix" | grep READONLY > /dev/null; then
22259 gcc_cv_ld_ro_rw_mix=read-only
22260 else
22261 gcc_cv_ld_ro_rw_mix=read-write
22265 rm -f conftest.* conftest[123].*
22267 if test x$gcc_cv_ld_ro_rw_mix = xread-write; then
22269 $as_echo "#define HAVE_LD_RO_RW_SECTION_MIXING 1" >>confdefs.h
22272 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_ro_rw_mix" >&5
22273 $as_echo "$gcc_cv_ld_ro_rw_mix" >&6; }
22275 if test "x${build}" = "x${target}" && test "x${build}" = "x${host}"; then
22276 case "${target}" in
22277 *-*-solaris2*)
22279 # Solaris 2 ld -V output looks like this for a regular version:
22281 # ld: Software Generation Utilities - Solaris Link Editors: 5.11-1.1699
22283 # but test versions add stuff at the end:
22285 # ld: Software Generation Utilities - Solaris Link Editors: 5.11-1.1701:onnv-ab196087-6931056-03/25/10
22287 gcc_cv_sun_ld_ver=`/usr/ccs/bin/ld -V 2>&1`
22288 if echo "$gcc_cv_sun_ld_ver" | grep 'Solaris Link Editors' > /dev/null; then
22289 gcc_cv_sun_ld_vers=`echo $gcc_cv_sun_ld_ver | sed -n \
22290 -e 's,^.*: 5\.[0-9][0-9]*-\([0-9]\.[0-9][0-9]*\).*$,\1,p'`
22291 gcc_cv_sun_ld_vers_major=`expr "$gcc_cv_sun_ld_vers" : '\([0-9]*\)'`
22292 gcc_cv_sun_ld_vers_minor=`expr "$gcc_cv_sun_ld_vers" : '[0-9]*\.\([0-9]*\)'`
22295 esac
22298 # Check whether --enable-initfini-array was given.
22299 if test "${enable_initfini_array+set}" = set; then :
22300 enableval=$enable_initfini_array;
22301 else
22303 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for .preinit_array/.init_array/.fini_array support" >&5
22304 $as_echo_n "checking for .preinit_array/.init_array/.fini_array support... " >&6; }
22305 if test "${gcc_cv_initfini_array+set}" = set; then :
22306 $as_echo_n "(cached) " >&6
22307 else
22308 if test "x${build}" = "x${target}" && test "x${build}" = "x${host}"; then
22309 case "${target}" in
22310 ia64-*)
22311 if test "$cross_compiling" = yes; then :
22312 gcc_cv_initfini_array=no
22313 else
22314 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22315 /* end confdefs.h. */
22317 #ifndef __ELF__
22318 #error Not an ELF OS
22319 #endif
22320 /* We turn on .preinit_array/.init_array/.fini_array support for ia64
22321 if it can be used. */
22322 static int x = -1;
22323 int main (void) { return x; }
22324 int foo (void) { x = 0; }
22325 int (*fp) (void) __attribute__ ((section (".init_array"))) = foo;
22327 _ACEOF
22328 if ac_fn_c_try_run "$LINENO"; then :
22329 gcc_cv_initfini_array=yes
22330 else
22331 gcc_cv_initfini_array=no
22333 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
22334 conftest.$ac_objext conftest.beam conftest.$ac_ext
22338 gcc_cv_initfini_array=no
22339 if test $in_tree_ld = yes ; then
22340 if test "$gcc_cv_gld_major_version" -eq 2 \
22341 -a "$gcc_cv_gld_minor_version" -ge 22 \
22342 -o "$gcc_cv_gld_major_version" -gt 2 \
22343 && test $in_tree_ld_is_elf = yes; then
22344 gcc_cv_initfini_array=yes
22346 elif test x$gcc_cv_as != x -a x$gcc_cv_ld != x -a x$gcc_cv_objdump != x ; then
22347 cat > conftest.s <<\EOF
22348 .section .dtors,"a",%progbits
22349 .balign 4
22350 .byte 'A', 'A', 'A', 'A'
22351 .section .ctors,"a",%progbits
22352 .balign 4
22353 .byte 'B', 'B', 'B', 'B'
22354 .section .fini_array.65530,"a",%progbits
22355 .balign 4
22356 .byte 'C', 'C', 'C', 'C'
22357 .section .init_array.65530,"a",%progbits
22358 .balign 4
22359 .byte 'D', 'D', 'D', 'D'
22360 .section .dtors.64528,"a",%progbits
22361 .balign 4
22362 .byte 'E', 'E', 'E', 'E'
22363 .section .ctors.64528,"a",%progbits
22364 .balign 4
22365 .byte 'F', 'F', 'F', 'F'
22366 .section .fini_array.01005,"a",%progbits
22367 .balign 4
22368 .byte 'G', 'G', 'G', 'G'
22369 .section .init_array.01005,"a",%progbits
22370 .balign 4
22371 .byte 'H', 'H', 'H', 'H'
22372 .text
22373 .globl _start
22374 _start:
22376 if $gcc_cv_as -o conftest.o conftest.s > /dev/null 2>&1 \
22377 && $gcc_cv_ld -o conftest conftest.o > /dev/null 2>&1 \
22378 && $gcc_cv_objdump -s -j .init_array conftest \
22379 | grep HHHHFFFFDDDDBBBB > /dev/null 2>&1 \
22380 && $gcc_cv_objdump -s -j .fini_array conftest \
22381 | grep GGGGEEEECCCCAAAA > /dev/null 2>&1; then
22382 gcc_cv_initfini_array=yes
22384 rm -f conftest conftest.*
22386 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22387 /* end confdefs.h. */
22389 #ifndef __ELF__
22390 # error Not an ELF OS
22391 #endif
22392 #include <stdlib.h>
22393 #if defined __GLIBC_PREREQ
22394 # if __GLIBC_PREREQ (2, 4)
22395 # else
22396 # error GLIBC 2.4 required
22397 # endif
22398 #else
22399 # if defined __sun__ && defined __svr4__
22400 /* Solaris ld.so.1 supports .init_array/.fini_array since Solaris 8. */
22401 # else
22402 # error The C library not known to support .init_array/.fini_array
22403 # endif
22404 #endif
22406 _ACEOF
22407 if ac_fn_c_try_cpp "$LINENO"; then :
22409 else
22410 gcc_cv_initfini_array=no
22412 rm -f conftest.err conftest.$ac_ext;;
22413 esac
22414 else
22415 { $as_echo "$as_me:${as_lineno-$LINENO}: checking cross compile... guessing" >&5
22416 $as_echo_n "checking cross compile... guessing... " >&6; }
22417 gcc_cv_initfini_array=no
22420 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_initfini_array" >&5
22421 $as_echo "$gcc_cv_initfini_array" >&6; }
22422 enable_initfini_array=$gcc_cv_initfini_array
22426 if test $enable_initfini_array = yes; then
22428 $as_echo "#define HAVE_INITFINI_ARRAY_SUPPORT 1" >>confdefs.h
22432 # Check if we have .[us]leb128, and support symbol arithmetic with it.
22433 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .sleb128 and .uleb128" >&5
22434 $as_echo_n "checking assembler for .sleb128 and .uleb128... " >&6; }
22435 if test "${gcc_cv_as_leb128+set}" = set; then :
22436 $as_echo_n "(cached) " >&6
22437 else
22438 gcc_cv_as_leb128=no
22439 if test $in_tree_gas = yes; then
22440 if test $in_tree_gas_is_elf = yes \
22441 && test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 11 \) \* 1000 + 0`
22442 then gcc_cv_as_leb128=yes
22444 elif test x$gcc_cv_as != x; then
22445 $as_echo ' .data
22446 .uleb128 L2 - L1
22448 .uleb128 1280
22449 .sleb128 -1010
22450 L2:' > conftest.s
22451 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
22452 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
22453 (eval $ac_try) 2>&5
22454 ac_status=$?
22455 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
22456 test $ac_status = 0; }; }
22457 then
22458 # GAS versions before 2.11 do not support uleb128,
22459 # despite appearing to.
22460 # ??? There exists an elf-specific test that will crash
22461 # the assembler. Perhaps it's better to figure out whether
22462 # arbitrary sections are supported and try the test.
22463 as_ver=`$gcc_cv_as --version 2>/dev/null | sed 1q`
22464 if echo "$as_ver" | grep GNU > /dev/null; then
22465 as_vers=`echo $as_ver | sed -n \
22466 -e 's,^.*[ ]\([0-9][0-9]*\.[0-9][0-9]*.*\)$,\1,p'`
22467 as_major=`expr "$as_vers" : '\([0-9]*\)'`
22468 as_minor=`expr "$as_vers" : '[0-9]*\.\([0-9]*\)'`
22469 if test $as_major -eq 2 && test $as_minor -lt 11
22470 then :
22471 else gcc_cv_as_leb128=yes
22474 else
22475 echo "configure: failed program was" >&5
22476 cat conftest.s >&5
22478 rm -f conftest.o conftest.s
22481 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_leb128" >&5
22482 $as_echo "$gcc_cv_as_leb128" >&6; }
22483 if test $gcc_cv_as_leb128 = yes; then
22485 $as_echo "#define HAVE_AS_LEB128 1" >>confdefs.h
22489 # Check if we have assembler support for unwind directives.
22490 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for cfi directives" >&5
22491 $as_echo_n "checking assembler for cfi directives... " >&6; }
22492 if test "${gcc_cv_as_cfi_directive+set}" = set; then :
22493 $as_echo_n "(cached) " >&6
22494 else
22495 gcc_cv_as_cfi_directive=no
22496 if test x$gcc_cv_as != x; then
22497 $as_echo ' .text
22498 .cfi_startproc
22499 .cfi_offset 0, 0
22500 .cfi_same_value 1
22501 .cfi_def_cfa 1, 2
22502 .cfi_escape 1, 2, 3, 4, 5
22503 .cfi_endproc' > conftest.s
22504 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
22505 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
22506 (eval $ac_try) 2>&5
22507 ac_status=$?
22508 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
22509 test $ac_status = 0; }; }
22510 then
22511 case "$target" in
22512 *-*-solaris*)
22513 # If the linker used on Solaris (like Sun ld) isn't capable of merging
22514 # read-only and read-write sections, we need to make sure that the
22515 # assembler used emits read-write .eh_frame sections.
22516 if test "x$gcc_cv_ld_ro_rw_mix" != xread-write; then
22517 if test "x$gcc_cv_objdump" != x; then
22518 if $gcc_cv_objdump -h conftest.o 2>/dev/null | \
22519 sed -e /.eh_frame/!d -e N | grep READONLY > /dev/null; then
22520 gcc_cv_as_cfi_directive=no
22521 else
22522 case "$target" in
22523 i?86-*-solaris2.1[0-9]* | x86_64-*-solaris2.1[0-9]*)
22524 # On Solaris/x86, make sure that GCC and gas agree on using
22525 # read-only .eh_frame sections for 64-bit.
22526 if $gcc_cv_as --64 -o conftest.o conftest.s > /dev/null 2>&1 && \
22527 $gcc_cv_objdump -h conftest.o 2>/dev/null | \
22528 sed -e /.eh_frame/!d -e N | \
22529 grep READONLY > /dev/null; then
22530 gcc_cv_as_cfi_directive=yes
22531 else
22532 gcc_cv_as_cfi_directive=no
22536 gcc_cv_as_cfi_directive=yes
22538 esac
22540 else
22541 # no objdump, err on the side of caution
22542 gcc_cv_as_cfi_directive=no
22544 else
22545 gcc_cv_as_cfi_directive=yes
22548 *-*-*)
22549 gcc_cv_as_cfi_directive=yes
22551 esac
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_directive" >&5
22560 $as_echo "$gcc_cv_as_cfi_directive" >&6; }
22562 if test $gcc_cv_as_cfi_directive = yes && test x$gcc_cv_objdump != x; then
22563 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for working cfi advance" >&5
22564 $as_echo_n "checking assembler for working cfi advance... " >&6; }
22565 if test "${gcc_cv_as_cfi_advance_working+set}" = set; then :
22566 $as_echo_n "(cached) " >&6
22567 else
22568 gcc_cv_as_cfi_advance_working=no
22569 if test x$gcc_cv_as != x; then
22570 $as_echo ' .text
22571 .cfi_startproc
22572 .cfi_adjust_cfa_offset 64
22573 .skip 75040, 0
22574 .cfi_adjust_cfa_offset 128
22575 .cfi_endproc' > conftest.s
22576 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
22577 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
22578 (eval $ac_try) 2>&5
22579 ac_status=$?
22580 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
22581 test $ac_status = 0; }; }
22582 then
22584 if $gcc_cv_objdump -Wf conftest.o 2>/dev/null \
22585 | grep 'DW_CFA_advance_loc[24]:[ ][ ]*75040[ ]' >/dev/null; then
22586 gcc_cv_as_cfi_advance_working=yes
22589 else
22590 echo "configure: failed program was" >&5
22591 cat conftest.s >&5
22593 rm -f conftest.o conftest.s
22596 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_cfi_advance_working" >&5
22597 $as_echo "$gcc_cv_as_cfi_advance_working" >&6; }
22599 else
22600 # no objdump, err on the side of caution
22601 gcc_cv_as_cfi_advance_working=no
22605 cat >>confdefs.h <<_ACEOF
22606 #define HAVE_GAS_CFI_DIRECTIVE `if test $gcc_cv_as_cfi_directive = yes \
22607 && test $gcc_cv_as_cfi_advance_working = yes; then echo 1; else echo 0; fi`
22608 _ACEOF
22612 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for cfi personality directive" >&5
22613 $as_echo_n "checking assembler for cfi personality directive... " >&6; }
22614 if test "${gcc_cv_as_cfi_personality_directive+set}" = set; then :
22615 $as_echo_n "(cached) " >&6
22616 else
22617 gcc_cv_as_cfi_personality_directive=no
22618 if test x$gcc_cv_as != x; then
22619 $as_echo ' .text
22620 .cfi_startproc
22621 .cfi_personality 0, symbol
22622 .cfi_endproc' > conftest.s
22623 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
22624 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
22625 (eval $ac_try) 2>&5
22626 ac_status=$?
22627 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
22628 test $ac_status = 0; }; }
22629 then
22630 gcc_cv_as_cfi_personality_directive=yes
22631 else
22632 echo "configure: failed program was" >&5
22633 cat conftest.s >&5
22635 rm -f conftest.o conftest.s
22638 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_cfi_personality_directive" >&5
22639 $as_echo "$gcc_cv_as_cfi_personality_directive" >&6; }
22642 cat >>confdefs.h <<_ACEOF
22643 #define HAVE_GAS_CFI_PERSONALITY_DIRECTIVE `if test $gcc_cv_as_cfi_personality_directive = yes;
22644 then echo 1; else echo 0; fi`
22645 _ACEOF
22648 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for cfi sections directive" >&5
22649 $as_echo_n "checking assembler for cfi sections directive... " >&6; }
22650 if test "${gcc_cv_as_cfi_sections_directive+set}" = set; then :
22651 $as_echo_n "(cached) " >&6
22652 else
22653 gcc_cv_as_cfi_sections_directive=no
22654 if test x$gcc_cv_as != x; then
22655 $as_echo ' .text
22656 .cfi_sections .debug_frame, .eh_frame
22657 .cfi_startproc
22658 .cfi_endproc' > conftest.s
22659 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
22660 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
22661 (eval $ac_try) 2>&5
22662 ac_status=$?
22663 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
22664 test $ac_status = 0; }; }
22665 then
22666 case $target_os in
22667 win32 | pe | cygwin* | mingw32* | uwin*)
22668 # Need to check that we generated the correct relocation for the
22669 # .debug_frame section. This was fixed for binutils 2.21.
22670 gcc_cv_as_cfi_sections_directive=no
22671 if test "x$gcc_cv_objdump" != x; then
22672 if $gcc_cv_objdump -j .debug_frame -r conftest.o 2>/dev/null | \
22673 grep secrel > /dev/null; then
22674 gcc_cv_as_cfi_sections_directive=yes
22679 gcc_cv_as_cfi_sections_directive=yes
22681 esac
22682 else
22683 echo "configure: failed program was" >&5
22684 cat conftest.s >&5
22686 rm -f conftest.o conftest.s
22689 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_cfi_sections_directive" >&5
22690 $as_echo "$gcc_cv_as_cfi_sections_directive" >&6; }
22694 cat >>confdefs.h <<_ACEOF
22695 #define HAVE_GAS_CFI_SECTIONS_DIRECTIVE `if test $gcc_cv_as_cfi_sections_directive = yes;
22696 then echo 1; else echo 0; fi`
22697 _ACEOF
22700 # GAS versions up to and including 2.11.0 may mis-optimize
22701 # .eh_frame data.
22702 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for eh_frame optimization" >&5
22703 $as_echo_n "checking assembler for eh_frame optimization... " >&6; }
22704 if test "${gcc_cv_as_eh_frame+set}" = set; then :
22705 $as_echo_n "(cached) " >&6
22706 else
22707 gcc_cv_as_eh_frame=no
22708 if test $in_tree_gas = yes; then
22709 if test $in_tree_gas_is_elf = yes \
22710 && test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 12 \) \* 1000 + 0`
22711 then gcc_cv_as_eh_frame=yes
22713 elif test x$gcc_cv_as != x; then
22714 $as_echo ' .text
22715 .LFB1:
22716 .4byte 0
22717 .L1:
22718 .4byte 0
22719 .LFE1:
22720 .section .eh_frame,"aw",@progbits
22721 __FRAME_BEGIN__:
22722 .4byte .LECIE1-.LSCIE1
22723 .LSCIE1:
22724 .4byte 0x0
22725 .byte 0x1
22726 .ascii "z\0"
22727 .byte 0x1
22728 .byte 0x78
22729 .byte 0x1a
22730 .byte 0x0
22731 .byte 0x4
22732 .4byte 1
22733 .p2align 1
22734 .LECIE1:
22735 .LSFDE1:
22736 .4byte .LEFDE1-.LASFDE1
22737 .LASFDE1:
22738 .4byte .LASFDE1-__FRAME_BEGIN__
22739 .4byte .LFB1
22740 .4byte .LFE1-.LFB1
22741 .byte 0x4
22742 .4byte .LFE1-.LFB1
22743 .byte 0x4
22744 .4byte .L1-.LFB1
22745 .LEFDE1:' > conftest.s
22746 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
22747 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
22748 (eval $ac_try) 2>&5
22749 ac_status=$?
22750 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
22751 test $ac_status = 0; }; }
22752 then
22753 cat > conftest.lit <<EOF
22754 0000 10000000 00000000 017a0001 781a0004 .........z..x...
22755 0010 01000000 12000000 18000000 00000000 ................
22756 0020 08000000 04080000 0044 .........D
22758 cat > conftest.big <<EOF
22759 0000 00000010 00000000 017a0001 781a0004 .........z..x...
22760 0010 00000001 00000012 00000018 00000000 ................
22761 0020 00000008 04000000 0844 .........D
22763 # If the assembler didn't choke, and we can objdump,
22764 # and we got the correct data, then succeed.
22765 # The text in the here-document typically retains its unix-style line
22766 # endings, while the output of objdump will use host line endings.
22767 # Therefore, use diff -b for the comparisons.
22768 if test x$gcc_cv_objdump != x \
22769 && $gcc_cv_objdump -s -j .eh_frame conftest.o 2>/dev/null \
22770 | tail -3 > conftest.got \
22771 && { diff -b conftest.lit conftest.got > /dev/null 2>&1 \
22772 || diff -b conftest.big conftest.got > /dev/null 2>&1; }
22773 then
22774 gcc_cv_as_eh_frame=yes
22775 elif { ac_try='$gcc_cv_as -o conftest.o --traditional-format /dev/null'
22776 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
22777 (eval $ac_try) 2>&5
22778 ac_status=$?
22779 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
22780 test $ac_status = 0; }; }; then
22781 gcc_cv_as_eh_frame=buggy
22782 else
22783 # Uh oh, what do we do now?
22784 gcc_cv_as_eh_frame=no
22786 else
22787 echo "configure: failed program was" >&5
22788 cat conftest.s >&5
22790 rm -f conftest.o conftest.s
22793 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_eh_frame" >&5
22794 $as_echo "$gcc_cv_as_eh_frame" >&6; }
22797 if test $gcc_cv_as_eh_frame = buggy; then
22799 $as_echo "#define USE_AS_TRADITIONAL_FORMAT 1" >>confdefs.h
22803 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for section merging support" >&5
22804 $as_echo_n "checking assembler for section merging support... " >&6; }
22805 if test "${gcc_cv_as_shf_merge+set}" = set; then :
22806 $as_echo_n "(cached) " >&6
22807 else
22808 gcc_cv_as_shf_merge=no
22809 if test $in_tree_gas = yes; then
22810 if test $in_tree_gas_is_elf = yes \
22811 && test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 12 \) \* 1000 + 0`
22812 then gcc_cv_as_shf_merge=yes
22814 elif test x$gcc_cv_as != x; then
22815 $as_echo '.section .rodata.str, "aMS", @progbits, 1' > conftest.s
22816 if { ac_try='$gcc_cv_as $gcc_cv_as_flags --fatal-warnings -o conftest.o conftest.s >&5'
22817 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
22818 (eval $ac_try) 2>&5
22819 ac_status=$?
22820 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
22821 test $ac_status = 0; }; }
22822 then
22823 gcc_cv_as_shf_merge=yes
22824 else
22825 echo "configure: failed program was" >&5
22826 cat conftest.s >&5
22828 rm -f conftest.o conftest.s
22831 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_shf_merge" >&5
22832 $as_echo "$gcc_cv_as_shf_merge" >&6; }
22834 if test $gcc_cv_as_shf_merge = no; then
22835 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for section merging support" >&5
22836 $as_echo_n "checking assembler for section merging support... " >&6; }
22837 if test "${gcc_cv_as_shf_merge+set}" = set; then :
22838 $as_echo_n "(cached) " >&6
22839 else
22840 gcc_cv_as_shf_merge=no
22841 if test $in_tree_gas = yes; then
22842 if test $in_tree_gas_is_elf = yes \
22843 && test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 12 \) \* 1000 + 0`
22844 then gcc_cv_as_shf_merge=yes
22846 elif test x$gcc_cv_as != x; then
22847 $as_echo '.section .rodata.str, "aMS", %progbits, 1' > conftest.s
22848 if { ac_try='$gcc_cv_as $gcc_cv_as_flags --fatal-warnings -o conftest.o conftest.s >&5'
22849 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
22850 (eval $ac_try) 2>&5
22851 ac_status=$?
22852 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
22853 test $ac_status = 0; }; }
22854 then
22855 gcc_cv_as_shf_merge=yes
22856 else
22857 echo "configure: failed program was" >&5
22858 cat conftest.s >&5
22860 rm -f conftest.o conftest.s
22863 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_shf_merge" >&5
22864 $as_echo "$gcc_cv_as_shf_merge" >&6; }
22868 cat >>confdefs.h <<_ACEOF
22869 #define HAVE_GAS_SHF_MERGE `if test $gcc_cv_as_shf_merge = yes; then echo 1; else echo 0; fi`
22870 _ACEOF
22873 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for COMDAT group support (GNU as)" >&5
22874 $as_echo_n "checking assembler for COMDAT group support (GNU as)... " >&6; }
22875 if test "${gcc_cv_as_comdat_group+set}" = set; then :
22876 $as_echo_n "(cached) " >&6
22877 else
22878 gcc_cv_as_comdat_group=no
22879 if test $in_tree_gas = yes; then
22880 if test $in_tree_gas_is_elf = yes \
22881 && test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 16 \) \* 1000 + 0`
22882 then gcc_cv_as_comdat_group=yes
22884 elif test x$gcc_cv_as != x; then
22885 $as_echo '.section .text,"axG",@progbits,.foo,comdat' > conftest.s
22886 if { ac_try='$gcc_cv_as $gcc_cv_as_flags --fatal-warnings -o conftest.o conftest.s >&5'
22887 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
22888 (eval $ac_try) 2>&5
22889 ac_status=$?
22890 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
22891 test $ac_status = 0; }; }
22892 then
22893 gcc_cv_as_comdat_group=yes
22894 else
22895 echo "configure: failed program was" >&5
22896 cat conftest.s >&5
22898 rm -f conftest.o conftest.s
22901 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_comdat_group" >&5
22902 $as_echo "$gcc_cv_as_comdat_group" >&6; }
22904 if test $gcc_cv_as_comdat_group = yes; then
22905 gcc_cv_as_comdat_group_percent=no
22906 gcc_cv_as_comdat_group_group=no
22907 else
22908 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for COMDAT group support (GNU as, %type)" >&5
22909 $as_echo_n "checking assembler for COMDAT group support (GNU as, %type)... " >&6; }
22910 if test "${gcc_cv_as_comdat_group_percent+set}" = set; then :
22911 $as_echo_n "(cached) " >&6
22912 else
22913 gcc_cv_as_comdat_group_percent=no
22914 if test $in_tree_gas = yes; then
22915 if test $in_tree_gas_is_elf = yes \
22916 && test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 16 \) \* 1000 + 0`
22917 then gcc_cv_as_comdat_group_percent=yes
22919 elif test x$gcc_cv_as != x; then
22920 $as_echo '.section .text,"axG",%progbits,.foo,comdat' > conftest.s
22921 if { ac_try='$gcc_cv_as $gcc_cv_as_flags --fatal-warnings -o conftest.o conftest.s >&5'
22922 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
22923 (eval $ac_try) 2>&5
22924 ac_status=$?
22925 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
22926 test $ac_status = 0; }; }
22927 then
22928 gcc_cv_as_comdat_group_percent=yes
22929 else
22930 echo "configure: failed program was" >&5
22931 cat conftest.s >&5
22933 rm -f conftest.o conftest.s
22936 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_comdat_group_percent" >&5
22937 $as_echo "$gcc_cv_as_comdat_group_percent" >&6; }
22939 if test $gcc_cv_as_comdat_group_percent = yes; then
22940 gcc_cv_as_comdat_group_group=no
22941 else
22942 if test -z "${gcc_cv_as_comdat_group_group+set}"; then
22943 gcc_cv_as_comdat_group_group=no
22945 case "${target}" in
22946 # Sun as uses a completely different syntax.
22947 *-*-solaris2*)
22948 case "${target}" in
22949 sparc*-*-solaris2*)
22950 conftest_s='
22951 .group foo,".text%foo",#comdat
22952 .section ".text%foo", #alloc,#execinstr,#progbits
22953 .globl foo
22954 foo:
22957 i?86-*-solaris2* | x86_64-*-solaris2.1[0-9]*)
22958 conftest_s='
22959 .group foo,.text%foo,#comdat
22960 .section .text%foo, "ax", @progbits
22961 .globl foo
22962 foo:
22965 esac
22966 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for COMDAT group support (Sun as, .group)" >&5
22967 $as_echo_n "checking assembler for COMDAT group support (Sun as, .group)... " >&6; }
22968 if test "${gcc_cv_as_comdat_group_group+set}" = set; then :
22969 $as_echo_n "(cached) " >&6
22970 else
22971 gcc_cv_as_comdat_group_group=no
22972 if test x$gcc_cv_as != x; then
22973 $as_echo "$conftest_s" > conftest.s
22974 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
22975 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
22976 (eval $ac_try) 2>&5
22977 ac_status=$?
22978 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
22979 test $ac_status = 0; }; }
22980 then
22981 gcc_cv_as_comdat_group_group=yes
22982 else
22983 echo "configure: failed program was" >&5
22984 cat conftest.s >&5
22986 rm -f conftest.o conftest.s
22989 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_comdat_group_group" >&5
22990 $as_echo "$gcc_cv_as_comdat_group_group" >&6; }
22993 esac
22996 if test x"$ld_is_gold" = xyes; then
22997 comdat_group=yes
22998 elif test $in_tree_ld = yes ; then
22999 comdat_group=no
23000 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 \
23001 && test $in_tree_ld_is_elf = yes; then
23002 comdat_group=yes
23004 elif echo "$ld_ver" | grep GNU > /dev/null; then
23005 comdat_group=yes
23006 if test 0"$ld_date" -lt 20050308; then
23007 if test -n "$ld_date"; then
23008 # If there was date string, but was earlier than 2005-03-08, fail
23009 comdat_group=no
23010 elif test "$ld_vers_major" -lt 2; then
23011 comdat_group=no
23012 elif test "$ld_vers_major" -eq 2 -a "$ld_vers_minor" -lt 16; then
23013 comdat_group=no
23016 else
23017 case "${target}" in
23018 *-*-solaris2.1[1-9]*)
23019 comdat_group=no
23020 # Sun ld has COMDAT group support since Solaris 9, but it doesn't
23021 # interoperate with GNU as until Solaris 11 build 130, i.e. ld
23022 # version 1.688.
23024 # If using Sun as for COMDAT group as emitted by GCC, one needs at
23025 # least ld version 1.2267.
23026 if test "$ld_vers_major" -gt 1; then
23027 comdat_group=yes
23028 elif test "x$gas_flag" = xyes && test "$ld_vers_minor" -ge 1688; then
23029 comdat_group=yes
23030 elif test "$ld_vers_minor" -ge 2267; then
23031 comdat_group=yes
23035 # Assume linkers other than GNU ld don't support COMDAT group.
23036 comdat_group=no
23038 esac
23040 # Allow overriding the automatic COMDAT group tests above.
23041 # Check whether --enable-comdat was given.
23042 if test "${enable_comdat+set}" = set; then :
23043 enableval=$enable_comdat; comdat_group="$enable_comdat"
23046 if test $comdat_group = no; then
23047 gcc_cv_as_comdat_group=no
23048 gcc_cv_as_comdat_group_percent=no
23049 gcc_cv_as_comdat_group_group=no
23052 cat >>confdefs.h <<_ACEOF
23053 #define HAVE_COMDAT_GROUP `if test $gcc_cv_as_comdat_group = yes \
23054 || test $gcc_cv_as_comdat_group_percent = yes \
23055 || test $gcc_cv_as_comdat_group_group = yes; then echo 1; else echo 0; fi`
23056 _ACEOF
23059 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for line table discriminator support" >&5
23060 $as_echo_n "checking assembler for line table discriminator support... " >&6; }
23061 if test "${gcc_cv_as_discriminator+set}" = set; then :
23062 $as_echo_n "(cached) " >&6
23063 else
23064 gcc_cv_as_discriminator=no
23065 if test $in_tree_gas = yes; then
23066 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 19 \) \* 1000 + 51`
23067 then gcc_cv_as_discriminator=yes
23069 elif test x$gcc_cv_as != x; then
23070 $as_echo ' .text
23071 .file 1 "conf.c"
23072 .loc 1 1 0 discriminator 1' > conftest.s
23073 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
23074 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
23075 (eval $ac_try) 2>&5
23076 ac_status=$?
23077 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
23078 test $ac_status = 0; }; }
23079 then
23080 gcc_cv_as_discriminator=yes
23081 else
23082 echo "configure: failed program was" >&5
23083 cat conftest.s >&5
23085 rm -f conftest.o conftest.s
23088 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_discriminator" >&5
23089 $as_echo "$gcc_cv_as_discriminator" >&6; }
23090 if test $gcc_cv_as_discriminator = yes; then
23092 $as_echo "#define HAVE_GAS_DISCRIMINATOR 1" >>confdefs.h
23096 # Thread-local storage - the check is heavily parameterized.
23097 conftest_s=
23098 tls_first_major=
23099 tls_first_minor=
23100 tls_as_opt=
23101 case "$target" in
23102 alpha*-*-*)
23103 conftest_s='
23104 .section ".tdata","awT",@progbits
23105 foo: .long 25
23106 .text
23107 ldq $27,__tls_get_addr($29) !literal!1
23108 lda $16,foo($29) !tlsgd!1
23109 jsr $26,($27),__tls_get_addr !lituse_tlsgd!1
23110 ldq $27,__tls_get_addr($29) !literal!2
23111 lda $16,foo($29) !tlsldm!2
23112 jsr $26,($27),__tls_get_addr !lituse_tlsldm!2
23113 ldq $1,foo($29) !gotdtprel
23114 ldah $2,foo($29) !dtprelhi
23115 lda $3,foo($2) !dtprello
23116 lda $4,foo($29) !dtprel
23117 ldq $1,foo($29) !gottprel
23118 ldah $2,foo($29) !tprelhi
23119 lda $3,foo($2) !tprello
23120 lda $4,foo($29) !tprel'
23121 tls_first_major=2
23122 tls_first_minor=13
23123 tls_as_opt=--fatal-warnings
23125 cris-*-*|crisv32-*-*)
23126 conftest_s='
23127 .section ".tdata","awT",@progbits
23128 x: .long 25
23129 .text
23130 move.d x:IE,$r10
23131 nop'
23132 tls_first_major=2
23133 tls_first_minor=20
23134 tls_as_opt=--fatal-warnings
23136 frv*-*-*)
23137 conftest_s='
23138 .section ".tdata","awT",@progbits
23139 x: .long 25
23140 .text
23141 call #gettlsoff(x)'
23142 tls_first_major=2
23143 tls_first_minor=14
23145 hppa*-*-linux*)
23146 conftest_s='
23147 t1: .reg %r20
23148 t2: .reg %r21
23149 gp: .reg %r19
23150 .section ".tdata","awT",@progbits
23151 foo: .long 25
23152 .text
23153 .align 4
23154 addil LT%foo-$tls_gdidx$,gp
23155 ldo RT%foo-$tls_gdidx$(%r1),%arg0
23156 b __tls_get_addr
23158 addil LT%foo-$tls_ldidx$,gp
23159 b __tls_get_addr
23160 ldo RT%foo-$tls_ldidx$(%r1),%arg0
23161 addil LR%foo-$tls_dtpoff$,%ret0
23162 ldo RR%foo-$tls_dtpoff$(%r1),%t1
23163 mfctl %cr27,%t1
23164 addil LT%foo-$tls_ieoff$,gp
23165 ldw RT%foo-$tls_ieoff$(%r1),%t2
23166 add %t1,%t2,%t3
23167 mfctl %cr27,%t1
23168 addil LR%foo-$tls_leoff$,%t1
23169 ldo RR%foo-$tls_leoff$(%r1),%t2'
23170 tls_first_major=2
23171 tls_first_minor=15
23172 tls_as_opt=--fatal-warnings
23174 arm*-*-*)
23175 conftest_s='
23176 .section ".tdata","awT",%progbits
23177 foo: .long 25
23178 .text
23179 .word foo(gottpoff)
23180 .word foo(tpoff)
23181 .word foo(tlsgd)
23182 .word foo(tlsldm)
23183 .word foo(tlsldo)'
23184 tls_first_major=2
23185 tls_first_minor=17
23187 i[34567]86-*-* | x86_64-*-solaris2.1[0-9]*)
23188 case "$target" in
23189 i[34567]86-*-solaris2.*)
23190 on_solaris=yes
23191 tga_func=___tls_get_addr
23193 x86_64-*-solaris2.1[0-9]*)
23194 on_solaris=yes
23195 tga_func=__tls_get_addr
23198 on_solaris=no
23200 esac
23201 if test x$on_solaris = xyes && test x$gas_flag = xno; then
23202 conftest_s='
23203 .section .tdata,"awt",@progbits'
23204 tls_first_major=0
23205 tls_first_minor=0
23207 $as_echo "#define TLS_SECTION_ASM_FLAG 't'" >>confdefs.h
23209 else
23210 conftest_s='
23211 .section ".tdata","awT",@progbits'
23212 tls_first_major=2
23213 tls_first_minor=14
23214 tls_as_opt="--fatal-warnings"
23216 conftest_s="$conftest_s
23217 foo: .long 25
23218 .text
23219 movl %gs:0, %eax
23220 leal foo@tlsgd(,%ebx,1), %eax
23221 leal foo@tlsldm(%ebx), %eax
23222 leal foo@dtpoff(%eax), %edx
23223 movl foo@gottpoff(%ebx), %eax
23224 subl foo@gottpoff(%ebx), %eax
23225 addl foo@gotntpoff(%ebx), %eax
23226 movl foo@indntpoff, %eax
23227 movl \$foo@tpoff, %eax
23228 subl \$foo@tpoff, %eax
23229 leal foo@ntpoff(%ecx), %eax"
23231 x86_64-*-*)
23232 conftest_s='
23233 .section ".tdata","awT",@progbits
23234 foo: .long 25
23235 .text
23236 movq %fs:0, %rax
23237 leaq foo@TLSGD(%rip), %rdi
23238 leaq foo@TLSLD(%rip), %rdi
23239 leaq foo@DTPOFF(%rax), %rdx
23240 movq foo@GOTTPOFF(%rip), %rax
23241 movq $foo@TPOFF, %rax'
23242 tls_first_major=2
23243 tls_first_minor=14
23244 tls_as_opt=--fatal-warnings
23246 ia64-*-*)
23247 conftest_s='
23248 .section ".tdata","awT",@progbits
23249 foo: data8 25
23250 .text
23251 addl r16 = @ltoff(@dtpmod(foo#)), gp
23252 addl r17 = @ltoff(@dtprel(foo#)), gp
23253 addl r18 = @ltoff(@tprel(foo#)), gp
23254 addl r19 = @dtprel(foo#), gp
23255 adds r21 = @dtprel(foo#), r13
23256 movl r23 = @dtprel(foo#)
23257 addl r20 = @tprel(foo#), gp
23258 adds r22 = @tprel(foo#), r13
23259 movl r24 = @tprel(foo#)'
23260 tls_first_major=2
23261 tls_first_minor=13
23262 tls_as_opt=--fatal-warnings
23264 microblaze*-*-*)
23265 conftest_s='
23266 .section .tdata,"awT",@progbits
23268 .word 2
23269 .text
23270 addik r5,r20,x@TLSGD
23271 addik r5,r20,x@TLSLDM'
23272 tls_first_major=2
23273 tls_first_minor=20
23274 tls_as_opt='--fatal-warnings'
23276 mips*-*-*)
23277 conftest_s='
23278 .section .tdata,"awT",@progbits
23280 .word 2
23281 .text
23282 addiu $4, $28, %tlsgd(x)
23283 addiu $4, $28, %tlsldm(x)
23284 lui $4, %dtprel_hi(x)
23285 addiu $4, $4, %dtprel_lo(x)
23286 lw $4, %gottprel(x)($28)
23287 lui $4, %tprel_hi(x)
23288 addiu $4, $4, %tprel_lo(x)'
23289 tls_first_major=2
23290 tls_first_minor=16
23291 tls_as_opt='-32 --fatal-warnings'
23293 m68k-*-*)
23294 conftest_s='
23295 .section .tdata,"awT",@progbits
23297 .word 2
23298 .text
23299 foo:
23300 move.l x@TLSGD(%a5),%a0
23301 move.l x@TLSLDM(%a5),%a0
23302 move.l x@TLSLDO(%a5),%a0
23303 move.l x@TLSIE(%a5),%a0
23304 move.l x@TLSLE(%a5),%a0'
23305 tls_first_major=2
23306 tls_first_minor=19
23307 tls_as_opt='--fatal-warnings'
23309 aarch64*-*-*)
23310 conftest_s='
23311 .section ".tdata","awT",%progbits
23312 foo: .long 25
23313 .text
23314 adrp x0, :tlsgd:x
23315 add x0, x0, #:tlsgd_lo12:x
23316 bl __tls_get_addr
23317 nop'
23318 tls_first_major=2
23319 tls_first_minor=20
23320 tls_as_opt='--fatal-warnings'
23322 powerpc-ibm-aix*)
23323 conftest_s='
23324 .extern __get_tpointer
23325 .toc
23326 LC..1:
23327 .tc a[TC],a[TL]@le
23328 .csect .text[PR]
23329 .tlstest:
23330 lwz 9,LC..1(2)
23331 bla __get_tpointer
23332 lwzx 3,9,3
23333 .globl a
23334 .csect a[TL],4
23336 .space 4'
23337 tls_first_major=0
23338 tls_first_minor=0
23340 powerpc64*-*-*)
23341 conftest_s='
23342 .section ".tdata","awT",@progbits
23343 .align 3
23344 ld0: .space 8
23345 ld1: .space 8
23346 x1: .space 8
23347 x2: .space 8
23348 x3: .space 8
23349 .text
23350 addi 3,2,ld0@got@tlsgd
23351 bl .__tls_get_addr
23353 addi 3,2,ld1@toc
23354 bl .__tls_get_addr
23356 addi 3,2,x1@got@tlsld
23357 bl .__tls_get_addr
23359 addi 9,3,x1@dtprel
23360 bl .__tls_get_addr
23362 addis 9,3,x2@dtprel@ha
23363 addi 9,9,x2@dtprel@l
23364 bl .__tls_get_addr
23366 ld 9,x3@got@dtprel(2)
23367 add 9,9,3
23368 bl .__tls_get_addr
23369 nop'
23370 tls_first_major=2
23371 tls_first_minor=14
23372 tls_as_opt="-a64 --fatal-warnings"
23374 powerpc*-*-*)
23375 conftest_s='
23376 .section ".tdata","awT",@progbits
23377 .align 2
23378 ld0: .space 4
23379 ld1: .space 4
23380 x1: .space 4
23381 x2: .space 4
23382 x3: .space 4
23383 .text
23384 addi 3,31,ld0@got@tlsgd
23385 bl __tls_get_addr
23386 addi 3,31,x1@got@tlsld
23387 bl __tls_get_addr
23388 addi 9,3,x1@dtprel
23389 addis 9,3,x2@dtprel@ha
23390 addi 9,9,x2@dtprel@l
23391 lwz 9,x3@got@tprel(31)
23392 add 9,9,x@tls
23393 addi 9,2,x1@tprel
23394 addis 9,2,x2@tprel@ha
23395 addi 9,9,x2@tprel@l'
23396 tls_first_major=2
23397 tls_first_minor=14
23398 tls_as_opt="-a32 --fatal-warnings"
23400 s390-*-*)
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@NTPOFF
23409 .long foo@GOTNTPOFF
23410 .long foo@INDNTPOFF
23411 l %r1,foo@GOTNTPOFF(%r12)
23412 l %r1,0(%r1):tls_load:foo
23413 bas %r14,0(%r1,%r13):tls_gdcall:foo
23414 bas %r14,0(%r1,%r13):tls_ldcall:foo'
23415 tls_first_major=2
23416 tls_first_minor=14
23417 tls_as_opt="-m31 --fatal-warnings"
23419 s390x-*-*)
23420 conftest_s='
23421 .section ".tdata","awT",@progbits
23422 foo: .long 25
23423 .text
23424 .quad foo@TLSGD
23425 .quad foo@TLSLDM
23426 .quad foo@DTPOFF
23427 .quad foo@NTPOFF
23428 .quad foo@GOTNTPOFF
23429 lg %r1,foo@GOTNTPOFF(%r12)
23430 larl %r1,foo@INDNTPOFF
23431 brasl %r14,__tls_get_offset@PLT:tls_gdcall:foo
23432 brasl %r14,__tls_get_offset@PLT:tls_ldcall:foo'
23433 tls_first_major=2
23434 tls_first_minor=14
23435 tls_as_opt="-m64 -Aesame --fatal-warnings"
23437 sh-*-* | sh[34]-*-*)
23438 conftest_s='
23439 .section ".tdata","awT",@progbits
23440 foo: .long 25
23441 .text
23442 .long foo@TLSGD
23443 .long foo@TLSLDM
23444 .long foo@DTPOFF
23445 .long foo@GOTTPOFF
23446 .long foo@TPOFF'
23447 tls_first_major=2
23448 tls_first_minor=13
23449 tls_as_opt=--fatal-warnings
23451 sparc*-*-*)
23452 case "$target" in
23453 sparc*-sun-solaris2.*)
23454 on_solaris=yes
23455 tga_func=__tls_get_addr
23458 on_solaris=no
23460 esac
23461 if test x$on_solaris = xyes && test x$gas_flag = xno; then
23462 conftest_s='
23463 .section ".tdata",#alloc,#write,#tls'
23464 tls_first_major=0
23465 tls_first_minor=0
23466 else
23467 conftest_s='
23468 .section ".tdata","awT",@progbits'
23469 tls_first_major=2
23470 tls_first_minor=14
23471 tls_as_opt="-32 --fatal-warnings"
23473 conftest_s="$conftest_s
23474 foo: .long 25
23475 .text
23476 sethi %tgd_hi22(foo), %o0
23477 add %o0, %tgd_lo10(foo), %o1
23478 add %l7, %o1, %o0, %tgd_add(foo)
23479 call __tls_get_addr, %tgd_call(foo)
23480 sethi %tldm_hi22(foo), %l1
23481 add %l1, %tldm_lo10(foo), %l2
23482 add %l7, %l2, %o0, %tldm_add(foo)
23483 call __tls_get_addr, %tldm_call(foo)
23484 sethi %tldo_hix22(foo), %l3
23485 xor %l3, %tldo_lox10(foo), %l4
23486 add %o0, %l4, %l5, %tldo_add(foo)
23487 sethi %tie_hi22(foo), %o3
23488 add %o3, %tie_lo10(foo), %o3
23489 ld [%l7 + %o3], %o2, %tie_ld(foo)
23490 add %g7, %o2, %o4, %tie_add(foo)
23491 sethi %tle_hix22(foo), %l1
23492 xor %l1, %tle_lox10(foo), %o5
23493 ld [%g7 + %o5], %o1"
23495 tilepro*-*-*)
23496 conftest_s='
23497 .section ".tdata","awT",@progbits
23498 foo: .long 25
23499 .text
23500 addli r0, zero, tls_gd(foo)
23501 auli r0, zero, tls_gd_ha16(foo)
23502 addli r0, r0, tls_gd_lo16(foo)
23503 jal __tls_get_addr
23504 addli r0, zero, tls_ie(foo)
23505 auli r0, r0, tls_ie_ha16(foo)
23506 addli r0, r0, tls_ie_lo16(foo)'
23507 tls_first_major=2
23508 tls_first_minor=22
23509 tls_as_opt="--fatal-warnings"
23511 tilegx*-*-*)
23512 conftest_s='
23513 .section ".tdata","awT",@progbits
23514 foo: .long 25
23515 .text
23516 shl16insli r0, zero, hw0_last_tls_gd(foo)
23517 shl16insli r0, zero, hw1_last_tls_gd(foo)
23518 shl16insli r0, r0, hw0_tls_gd(foo)
23519 jal __tls_get_addr
23520 shl16insli r0, zero, hw1_last_tls_ie(foo)
23521 shl16insli r0, r0, hw0_tls_ie(foo)'
23522 tls_first_major=2
23523 tls_first_minor=22
23524 tls_as_opt="--fatal-warnings"
23526 xtensa*-*-*)
23527 conftest_s='
23528 .section ".tdata","awT",@progbits
23529 foo: .long 25
23530 .text
23531 movi a8, foo@TLSFUNC
23532 movi a10, foo@TLSARG
23533 callx8.tls a8, foo@TLSCALL'
23534 tls_first_major=2
23535 tls_first_minor=19
23537 esac
23538 set_have_as_tls=no
23539 if test "x$enable_tls" = xno ; then
23540 : # TLS explicitly disabled.
23541 elif test "x$enable_tls" = xyes ; then
23542 set_have_as_tls=yes # TLS explicitly enabled.
23543 elif test -z "$tls_first_major"; then
23544 : # If we don't have a check, assume no support.
23545 else
23546 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for thread-local storage support" >&5
23547 $as_echo_n "checking assembler for thread-local storage support... " >&6; }
23548 if test "${gcc_cv_as_tls+set}" = set; then :
23549 $as_echo_n "(cached) " >&6
23550 else
23551 gcc_cv_as_tls=no
23552 if test $in_tree_gas = yes; then
23553 if test $gcc_cv_gas_vers -ge `expr \( \( $tls_first_major \* 1000 \) + $tls_first_minor \) \* 1000 + 0`
23554 then gcc_cv_as_tls=yes
23556 elif test x$gcc_cv_as != x; then
23557 $as_echo "$conftest_s" > conftest.s
23558 if { ac_try='$gcc_cv_as $gcc_cv_as_flags $tls_as_opt -o conftest.o conftest.s >&5'
23559 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
23560 (eval $ac_try) 2>&5
23561 ac_status=$?
23562 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
23563 test $ac_status = 0; }; }
23564 then
23565 gcc_cv_as_tls=yes
23566 else
23567 echo "configure: failed program was" >&5
23568 cat conftest.s >&5
23570 rm -f conftest.o conftest.s
23573 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_tls" >&5
23574 $as_echo "$gcc_cv_as_tls" >&6; }
23575 if test $gcc_cv_as_tls = yes; then
23576 set_have_as_tls=yes
23579 case "$target" in
23580 # TLS was introduced in the Solaris 9 FCS release. Support for GNU-style
23581 # TLS on x86 was only introduced in Solaris 9 4/04, replacing the earlier
23582 # Sun style that Sun ld and GCC don't support any longer.
23583 *-*-solaris2.*)
23584 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker and ld.so.1 TLS support" >&5
23585 $as_echo_n "checking linker and ld.so.1 TLS support... " >&6; }
23586 ld_tls_support=no
23587 # Check ld and ld.so.1 TLS support.
23588 if echo "$ld_ver" | grep GNU > /dev/null; then
23589 # Assume all interesting versions of GNU ld have TLS support.
23590 # FIXME: still need ld.so.1 support, i.e. ld version checks below.
23591 ld_tls_support=yes
23592 else
23593 case "$target" in
23594 # Solaris 9/x86 ld has GNU style TLS support since version 1.374.
23595 i?86-*-solaris2.9)
23596 min_tls_ld_vers_minor=374
23598 # Solaris 9/SPARC and Solaris 10+ ld have TLS support since FCS.
23599 sparc*-*-solaris2.9 | *-*-solaris2.1[0-9]*)
23600 min_tls_ld_vers_minor=343
23602 esac
23603 if test "$ld_vers_major" -gt 1 || \
23604 test "$ld_vers_minor" -ge "$min_tls_ld_vers_minor"; then
23605 ld_tls_support=yes
23606 else
23607 set_have_as_tls=no
23610 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_tls_support" >&5
23611 $as_echo "$ld_tls_support" >&6; }
23613 save_LIBS="$LIBS"
23614 save_LDFLAGS="$LDFLAGS"
23615 LIBS=
23616 LDFLAGS=
23618 { $as_echo "$as_me:${as_lineno-$LINENO}: checking library containing $tga_func" >&5
23619 $as_echo_n "checking library containing $tga_func... " >&6; }
23620 # Before Solaris 10, __tls_get_addr (SPARC/x64) resp. ___tls_get_addr
23621 # (32-bit x86) only lived in libthread, so check for that. Keep
23622 # set_have_as_tls if found, disable if not.
23623 as_ac_Search=`$as_echo "ac_cv_search_$tga_func" | $as_tr_sh`
23624 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing $tga_func" >&5
23625 $as_echo_n "checking for library containing $tga_func... " >&6; }
23626 if { as_var=$as_ac_Search; eval "test \"\${$as_var+set}\" = set"; }; then :
23627 $as_echo_n "(cached) " >&6
23628 else
23629 ac_func_search_save_LIBS=$LIBS
23630 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23631 /* end confdefs.h. */
23633 /* Override any GCC internal prototype to avoid an error.
23634 Use char because int might match the return type of a GCC
23635 builtin and then its argument prototype would still apply. */
23636 #ifdef __cplusplus
23637 extern "C"
23638 #endif
23639 char $tga_func ();
23641 main ()
23643 return $tga_func ();
23645 return 0;
23647 _ACEOF
23648 for ac_lib in '' thread; do
23649 if test -z "$ac_lib"; then
23650 ac_res="none required"
23651 else
23652 ac_res=-l$ac_lib
23653 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
23655 if ac_fn_c_try_link "$LINENO"; then :
23656 eval "$as_ac_Search=\$ac_res"
23658 rm -f core conftest.err conftest.$ac_objext \
23659 conftest$ac_exeext
23660 if { as_var=$as_ac_Search; eval "test \"\${$as_var+set}\" = set"; }; then :
23661 break
23663 done
23664 if { as_var=$as_ac_Search; eval "test \"\${$as_var+set}\" = set"; }; then :
23666 else
23667 eval "$as_ac_Search=no"
23669 rm conftest.$ac_ext
23670 LIBS=$ac_func_search_save_LIBS
23672 eval ac_res=\$$as_ac_Search
23673 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
23674 $as_echo "$ac_res" >&6; }
23675 eval ac_res=\$$as_ac_Search
23676 if test "$ac_res" != no; then :
23677 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
23679 else
23680 set_have_as_tls=no
23683 # Clear LIBS if we cannot support TLS.
23684 if test $set_have_as_tls = no; then
23685 LIBS=
23687 # Always define LIB_TLS_SPEC, even without TLS support.
23689 cat >>confdefs.h <<_ACEOF
23690 #define LIB_TLS_SPEC "$LIBS"
23691 _ACEOF
23693 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIBS" >&5
23694 $as_echo "$LIBS" >&6; }
23696 LIBS="$save_LIBS"
23697 LDFLAGS="$save_LDFLAGS"
23699 esac
23700 if test $set_have_as_tls = yes ; then
23702 $as_echo "#define HAVE_AS_TLS 1" >>confdefs.h
23706 # Target-specific assembler checks.
23708 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker -Bstatic/-Bdynamic option" >&5
23709 $as_echo_n "checking linker -Bstatic/-Bdynamic option... " >&6; }
23710 gcc_cv_ld_static_dynamic=no
23711 gcc_cv_ld_static_option='-Bstatic'
23712 gcc_cv_ld_dynamic_option='-Bdynamic'
23713 if test $in_tree_ld = yes ; then
23714 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
23715 gcc_cv_ld_static_dynamic=yes
23717 elif test x$gcc_cv_ld != x; then
23718 # Check if linker supports -Bstatic/-Bdynamic option
23719 if $gcc_cv_ld --help 2>/dev/null | grep -- -Bstatic > /dev/null \
23720 && $gcc_cv_ld --help 2>/dev/null | grep -- -Bdynamic > /dev/null; then
23721 gcc_cv_ld_static_dynamic=yes
23722 else
23723 case "$target" in
23724 # AIX ld uses -b flags
23725 *-*-aix4.[23]* | *-*-aix[5-9]*)
23726 gcc_cv_ld_static_dynamic=yes
23727 gcc_cv_ld_static_option="-bstatic"
23728 gcc_cv_ld_dynamic_option="-bdynamic"
23730 # HP-UX ld uses -a flags to select between shared and archive.
23731 *-*-hpux*)
23732 if test x"$gnu_ld" = xno; then
23733 gcc_cv_ld_static_dynamic=yes
23734 gcc_cv_ld_static_option="-aarchive_shared"
23735 gcc_cv_ld_dynamic_option="-adefault"
23738 # Solaris 2 ld always supports -Bstatic/-Bdynamic.
23739 *-*-solaris2*)
23740 gcc_cv_ld_static_dynamic=yes
23742 esac
23745 if test x"$gcc_cv_ld_static_dynamic" = xyes; then
23747 $as_echo "#define HAVE_LD_STATIC_DYNAMIC 1" >>confdefs.h
23750 cat >>confdefs.h <<_ACEOF
23751 #define LD_STATIC_OPTION "$gcc_cv_ld_static_option"
23752 _ACEOF
23755 cat >>confdefs.h <<_ACEOF
23756 #define LD_DYNAMIC_OPTION "$gcc_cv_ld_dynamic_option"
23757 _ACEOF
23760 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_static_dynamic" >&5
23761 $as_echo "$gcc_cv_ld_static_dynamic" >&6; }
23763 if test x"$demangler_in_ld" = xyes; then
23764 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker --demangle support" >&5
23765 $as_echo_n "checking linker --demangle support... " >&6; }
23766 gcc_cv_ld_demangle=no
23767 if test $in_tree_ld = yes; then
23768 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 \
23769 gcc_cv_ld_demangle=yes
23771 elif test x$gcc_cv_ld != x -a x"$gnu_ld" = xyes; then
23772 # Check if the GNU linker supports --demangle option
23773 if $gcc_cv_ld --help 2>/dev/null | grep no-demangle > /dev/null; then
23774 gcc_cv_ld_demangle=yes
23777 if test x"$gcc_cv_ld_demangle" = xyes; then
23779 $as_echo "#define HAVE_LD_DEMANGLE 1" >>confdefs.h
23782 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_demangle" >&5
23783 $as_echo "$gcc_cv_ld_demangle" >&6; }
23786 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker plugin support" >&5
23787 $as_echo_n "checking linker plugin support... " >&6; }
23788 gcc_cv_lto_plugin=0
23789 if test -f liblto_plugin.la; then
23790 save_ld_ver="$ld_ver"
23791 save_ld_vers_major="$ld_vers_major"
23792 save_ld_vers_minor="$ld_vers_minor"
23793 save_ld_is_gold="$ld_is_gold"
23795 ld_is_gold=no
23797 if test $in_tree_ld = yes -a x"$ORIGINAL_PLUGIN_LD_FOR_TARGET" = x"$gcc_cv_ld"; then
23798 ld_ver="GNU ld"
23799 # FIXME: ld_is_gold?
23800 ld_vers_major="$gcc_cv_gld_major_version"
23801 ld_vers_minor="$gcc_cv_gld_minor_version"
23802 else
23803 # Determine plugin linker version.
23804 # FIXME: Partial duplicate from above, generalize.
23805 ld_ver=`$ORIGINAL_PLUGIN_LD_FOR_TARGET --version 2>/dev/null | sed 1q`
23806 if echo "$ld_ver" | grep GNU > /dev/null; then
23807 if echo "$ld_ver" | grep "GNU gold" > /dev/null; then
23808 ld_is_gold=yes
23809 ld_vers=`echo $ld_ver | sed -n \
23810 -e 's,^[^)]*[ ]\([0-9][0-9]*\.[0-9][0-9]*[^)]*\)) .*$,\1,p'`
23811 else
23812 ld_vers=`echo $ld_ver | sed -n \
23813 -e 's,^.*[ ]\([0-9][0-9]*\.[0-9][0-9]*.*\)$,\1,p'`
23815 ld_vers_major=`expr "$ld_vers" : '\([0-9]*\)'`
23816 ld_vers_minor=`expr "$ld_vers" : '[0-9]*\.\([0-9]*\)'`
23820 # Determine plugin support.
23821 if echo "$ld_ver" | grep GNU > /dev/null; then
23822 # Require GNU ld or gold 2.21+ for plugin support by default.
23823 if test "$ld_vers_major" -eq 2 -a "$ld_vers_minor" -ge 21; then
23824 gcc_cv_lto_plugin=2
23825 # Allow -fuse-linker-plugin to enable plugin support in GNU gold 2.20.
23826 elif test "$ld_is_gold" = yes -a "$ld_vers_major" -eq 2 -a "$ld_vers_minor" -eq 20; then
23827 gcc_cv_lto_plugin=1
23831 ld_ver="$save_ld_ver"
23832 ld_vers_major="$save_ld_vers_major"
23833 ld_vers_minor="$save_ld_vers_minor"
23834 ld_is_gold="$save_ld_is_gold"
23837 cat >>confdefs.h <<_ACEOF
23838 #define HAVE_LTO_PLUGIN $gcc_cv_lto_plugin
23839 _ACEOF
23841 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_lto_plugin" >&5
23842 $as_echo "$gcc_cv_lto_plugin" >&6; }
23844 case "$target" in
23845 # All TARGET_ABI_OSF targets.
23846 alpha*-*-linux* | alpha*-*-*bsd*)
23847 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for explicit relocation support" >&5
23848 $as_echo_n "checking assembler for explicit relocation support... " >&6; }
23849 if test "${gcc_cv_as_alpha_explicit_relocs+set}" = set; then :
23850 $as_echo_n "(cached) " >&6
23851 else
23852 gcc_cv_as_alpha_explicit_relocs=no
23853 if test $in_tree_gas = yes; then
23854 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 12 \) \* 1000 + 0`
23855 then gcc_cv_as_alpha_explicit_relocs=yes
23857 elif test x$gcc_cv_as != x; then
23858 $as_echo ' .set nomacro
23859 .text
23860 extbl $3, $2, $3 !lituse_bytoff!1
23861 ldq $2, a($29) !literal!1
23862 ldq $4, b($29) !literal!2
23863 ldq_u $3, 0($2) !lituse_base!1
23864 ldq $27, f($29) !literal!5
23865 jsr $26, ($27), f !lituse_jsr!5
23866 ldah $29, 0($26) !gpdisp!3
23867 lda $0, c($29) !gprel
23868 ldah $1, d($29) !gprelhigh
23869 lda $1, d($1) !gprellow
23870 lda $29, 0($29) !gpdisp!3' > conftest.s
23871 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
23872 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
23873 (eval $ac_try) 2>&5
23874 ac_status=$?
23875 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
23876 test $ac_status = 0; }; }
23877 then
23878 gcc_cv_as_alpha_explicit_relocs=yes
23879 else
23880 echo "configure: failed program was" >&5
23881 cat conftest.s >&5
23883 rm -f conftest.o conftest.s
23886 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_alpha_explicit_relocs" >&5
23887 $as_echo "$gcc_cv_as_alpha_explicit_relocs" >&6; }
23888 if test $gcc_cv_as_alpha_explicit_relocs = yes; then
23890 $as_echo "#define HAVE_AS_EXPLICIT_RELOCS 1" >>confdefs.h
23893 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for jsrdirect relocation support" >&5
23894 $as_echo_n "checking assembler for jsrdirect relocation support... " >&6; }
23895 if test "${gcc_cv_as_alpha_jsrdirect_relocs+set}" = set; then :
23896 $as_echo_n "(cached) " >&6
23897 else
23898 gcc_cv_as_alpha_jsrdirect_relocs=no
23899 if test $in_tree_gas = yes; then
23900 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 16 \) \* 1000 + 90`
23901 then gcc_cv_as_alpha_jsrdirect_relocs=yes
23903 elif test x$gcc_cv_as != x; then
23904 $as_echo ' .set nomacro
23905 .text
23906 ldq $27, a($29) !literal!1
23907 jsr $26, ($27), a !lituse_jsrdirect!1' > conftest.s
23908 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
23909 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
23910 (eval $ac_try) 2>&5
23911 ac_status=$?
23912 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
23913 test $ac_status = 0; }; }
23914 then
23915 gcc_cv_as_alpha_jsrdirect_relocs=yes
23916 else
23917 echo "configure: failed program was" >&5
23918 cat conftest.s >&5
23920 rm -f conftest.o conftest.s
23923 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_alpha_jsrdirect_relocs" >&5
23924 $as_echo "$gcc_cv_as_alpha_jsrdirect_relocs" >&6; }
23925 if test $gcc_cv_as_alpha_jsrdirect_relocs = yes; then
23927 $as_echo "#define HAVE_AS_JSRDIRECT_RELOCS 1" >>confdefs.h
23932 cris-*-*)
23933 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for -no-mul-bug-abort option" >&5
23934 $as_echo_n "checking assembler for -no-mul-bug-abort option... " >&6; }
23935 if test "${gcc_cv_as_cris_no_mul_bug+set}" = set; then :
23936 $as_echo_n "(cached) " >&6
23937 else
23938 gcc_cv_as_cris_no_mul_bug=no
23939 if test $in_tree_gas = yes; then
23940 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 15 \) \* 1000 + 91`
23941 then gcc_cv_as_cris_no_mul_bug=yes
23943 elif test x$gcc_cv_as != x; then
23944 $as_echo '.text' > conftest.s
23945 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -no-mul-bug-abort -o conftest.o conftest.s >&5'
23946 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
23947 (eval $ac_try) 2>&5
23948 ac_status=$?
23949 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
23950 test $ac_status = 0; }; }
23951 then
23952 gcc_cv_as_cris_no_mul_bug=yes
23953 else
23954 echo "configure: failed program was" >&5
23955 cat conftest.s >&5
23957 rm -f conftest.o conftest.s
23960 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_cris_no_mul_bug" >&5
23961 $as_echo "$gcc_cv_as_cris_no_mul_bug" >&6; }
23962 if test $gcc_cv_as_cris_no_mul_bug = yes; then
23964 $as_echo "#define HAVE_AS_NO_MUL_BUG_ABORT_OPTION 1" >>confdefs.h
23969 sparc*-*-*)
23970 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .register" >&5
23971 $as_echo_n "checking assembler for .register... " >&6; }
23972 if test "${gcc_cv_as_sparc_register_op+set}" = set; then :
23973 $as_echo_n "(cached) " >&6
23974 else
23975 gcc_cv_as_sparc_register_op=no
23976 if test x$gcc_cv_as != x; then
23977 $as_echo '.register %g2, #scratch' > conftest.s
23978 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
23979 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
23980 (eval $ac_try) 2>&5
23981 ac_status=$?
23982 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
23983 test $ac_status = 0; }; }
23984 then
23985 gcc_cv_as_sparc_register_op=yes
23986 else
23987 echo "configure: failed program was" >&5
23988 cat conftest.s >&5
23990 rm -f conftest.o conftest.s
23993 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_sparc_register_op" >&5
23994 $as_echo "$gcc_cv_as_sparc_register_op" >&6; }
23995 if test $gcc_cv_as_sparc_register_op = yes; then
23997 $as_echo "#define HAVE_AS_REGISTER_PSEUDO_OP 1" >>confdefs.h
24001 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for #nobits" >&5
24002 $as_echo_n "checking assembler for #nobits... " >&6; }
24003 if test "${gcc_cv_as_sparc_nobits+set}" = set; then :
24004 $as_echo_n "(cached) " >&6
24005 else
24006 gcc_cv_as_sparc_nobits=no
24007 if test x$gcc_cv_as != x; then
24008 $as_echo '.section "nobits",#alloc,#write,#nobits
24009 .section "progbits",#alloc,#write,#progbits' > conftest.s
24010 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
24011 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
24012 (eval $ac_try) 2>&5
24013 ac_status=$?
24014 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24015 test $ac_status = 0; }; }
24016 then
24017 gcc_cv_as_sparc_nobits=yes
24018 else
24019 echo "configure: failed program was" >&5
24020 cat conftest.s >&5
24022 rm -f conftest.o conftest.s
24025 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_sparc_nobits" >&5
24026 $as_echo "$gcc_cv_as_sparc_nobits" >&6; }
24029 cat >>confdefs.h <<_ACEOF
24030 #define HAVE_AS_SPARC_NOBITS `if test $gcc_cv_as_sparc_nobits = yes; then echo 1; else echo 0; fi`
24031 _ACEOF
24034 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for -relax option" >&5
24035 $as_echo_n "checking assembler for -relax option... " >&6; }
24036 if test "${gcc_cv_as_sparc_relax+set}" = set; then :
24037 $as_echo_n "(cached) " >&6
24038 else
24039 gcc_cv_as_sparc_relax=no
24040 if test x$gcc_cv_as != x; then
24041 $as_echo '.text' > conftest.s
24042 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -relax -o conftest.o conftest.s >&5'
24043 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
24044 (eval $ac_try) 2>&5
24045 ac_status=$?
24046 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24047 test $ac_status = 0; }; }
24048 then
24049 gcc_cv_as_sparc_relax=yes
24050 else
24051 echo "configure: failed program was" >&5
24052 cat conftest.s >&5
24054 rm -f conftest.o conftest.s
24057 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_sparc_relax" >&5
24058 $as_echo "$gcc_cv_as_sparc_relax" >&6; }
24059 if test $gcc_cv_as_sparc_relax = yes; then
24061 $as_echo "#define HAVE_AS_RELAX_OPTION 1" >>confdefs.h
24065 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for GOTDATA_OP relocs" >&5
24066 $as_echo_n "checking assembler for GOTDATA_OP relocs... " >&6; }
24067 if test "${gcc_cv_as_sparc_gotdata_op+set}" = set; then :
24068 $as_echo_n "(cached) " >&6
24069 else
24070 gcc_cv_as_sparc_gotdata_op=no
24071 if test x$gcc_cv_as != x; then
24072 $as_echo '.text
24073 .align 4
24074 foo:
24076 bar:
24077 sethi %gdop_hix22(foo), %g1
24078 xor %g1, %gdop_lox10(foo), %g1
24079 ld [%l7 + %g1], %g2, %gdop(foo)' > conftest.s
24080 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -K PIC -o conftest.o conftest.s >&5'
24081 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
24082 (eval $ac_try) 2>&5
24083 ac_status=$?
24084 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24085 test $ac_status = 0; }; }
24086 then
24087 if test x$gcc_cv_ld != x \
24088 && $gcc_cv_ld -o conftest conftest.o -G > /dev/null 2>&1; then
24089 if test x$gcc_cv_objdump != x; then
24090 if $gcc_cv_objdump -s -j .text conftest 2> /dev/null \
24091 | grep ' 03000004 82186004 c405c001'> /dev/null 2>&1; then
24092 gcc_cv_as_sparc_gotdata_op=no
24093 else
24094 gcc_cv_as_sparc_gotdata_op=yes
24098 rm -f conftest
24099 else
24100 echo "configure: failed program was" >&5
24101 cat conftest.s >&5
24103 rm -f conftest.o conftest.s
24106 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_sparc_gotdata_op" >&5
24107 $as_echo "$gcc_cv_as_sparc_gotdata_op" >&6; }
24108 if test $gcc_cv_as_sparc_gotdata_op = yes; then
24110 $as_echo "#define HAVE_AS_SPARC_GOTDATA_OP 1" >>confdefs.h
24114 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for unaligned pcrel relocs" >&5
24115 $as_echo_n "checking assembler for unaligned pcrel relocs... " >&6; }
24116 if test "${gcc_cv_as_sparc_ua_pcrel+set}" = set; then :
24117 $as_echo_n "(cached) " >&6
24118 else
24119 gcc_cv_as_sparc_ua_pcrel=no
24120 if test x$gcc_cv_as != x; then
24121 $as_echo '.text
24122 foo:
24124 .data
24125 .align 4
24126 .byte 0
24127 .uaword %r_disp32(foo)' > conftest.s
24128 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -K PIC -o conftest.o conftest.s >&5'
24129 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
24130 (eval $ac_try) 2>&5
24131 ac_status=$?
24132 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24133 test $ac_status = 0; }; }
24134 then
24135 if test x$gcc_cv_ld != x \
24136 && $gcc_cv_ld -o conftest conftest.o -G > /dev/null 2>&1; then
24137 gcc_cv_as_sparc_ua_pcrel=yes
24139 rm -f conftest
24140 else
24141 echo "configure: failed program was" >&5
24142 cat conftest.s >&5
24144 rm -f conftest.o conftest.s
24147 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_sparc_ua_pcrel" >&5
24148 $as_echo "$gcc_cv_as_sparc_ua_pcrel" >&6; }
24149 if test $gcc_cv_as_sparc_ua_pcrel = yes; then
24151 $as_echo "#define HAVE_AS_SPARC_UA_PCREL 1" >>confdefs.h
24154 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for unaligned pcrel relocs against hidden symbols" >&5
24155 $as_echo_n "checking assembler for unaligned pcrel relocs against hidden symbols... " >&6; }
24156 if test "${gcc_cv_as_sparc_ua_pcrel_hidden+set}" = set; then :
24157 $as_echo_n "(cached) " >&6
24158 else
24159 gcc_cv_as_sparc_ua_pcrel_hidden=no
24160 if test x$gcc_cv_as != x; then
24161 $as_echo '.data
24162 .align 4
24163 .byte 0x31
24164 .uaword %r_disp32(foo)
24165 .byte 0x32, 0x33, 0x34
24166 .global foo
24167 .hidden foo
24168 foo:
24169 .skip 4' > conftest.s
24170 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -K PIC -o conftest.o conftest.s >&5'
24171 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
24172 (eval $ac_try) 2>&5
24173 ac_status=$?
24174 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24175 test $ac_status = 0; }; }
24176 then
24177 if test x$gcc_cv_ld != x && test x$gcc_cv_objdump != x \
24178 && $gcc_cv_ld -o conftest conftest.o -G > /dev/null 2>&1 \
24179 && $gcc_cv_objdump -s -j .data conftest 2> /dev/null \
24180 | grep ' 31000000 07323334' > /dev/null 2>&1; then
24181 if $gcc_cv_objdump -R conftest 2> /dev/null \
24182 | grep 'DISP32' > /dev/null 2>&1; then
24184 else
24185 gcc_cv_as_sparc_ua_pcrel_hidden=yes
24188 rm -f conftest
24189 else
24190 echo "configure: failed program was" >&5
24191 cat conftest.s >&5
24193 rm -f conftest.o conftest.s
24196 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_sparc_ua_pcrel_hidden" >&5
24197 $as_echo "$gcc_cv_as_sparc_ua_pcrel_hidden" >&6; }
24198 if test $gcc_cv_as_sparc_ua_pcrel_hidden = yes; then
24200 $as_echo "#define HAVE_AS_SPARC_UA_PCREL_HIDDEN 1" >>confdefs.h
24204 fi # unaligned pcrel relocs
24206 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for offsetable %lo()" >&5
24207 $as_echo_n "checking assembler for offsetable %lo()... " >&6; }
24208 if test "${gcc_cv_as_sparc_offsetable_lo10+set}" = set; then :
24209 $as_echo_n "(cached) " >&6
24210 else
24211 gcc_cv_as_sparc_offsetable_lo10=no
24212 if test x$gcc_cv_as != x; then
24213 $as_echo '.text
24214 or %g1, %lo(ab) + 12, %g1
24215 or %g1, %lo(ab + 12), %g1' > conftest.s
24216 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -xarch=v9 -o conftest.o conftest.s >&5'
24217 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
24218 (eval $ac_try) 2>&5
24219 ac_status=$?
24220 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24221 test $ac_status = 0; }; }
24222 then
24223 if test x$gcc_cv_objdump != x \
24224 && $gcc_cv_objdump -s -j .text conftest.o 2> /dev/null \
24225 | grep ' 82106000 82106000' > /dev/null 2>&1; then
24226 gcc_cv_as_sparc_offsetable_lo10=yes
24228 else
24229 echo "configure: failed program was" >&5
24230 cat conftest.s >&5
24232 rm -f conftest.o conftest.s
24235 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_sparc_offsetable_lo10" >&5
24236 $as_echo "$gcc_cv_as_sparc_offsetable_lo10" >&6; }
24237 if test $gcc_cv_as_sparc_offsetable_lo10 = yes; then
24239 $as_echo "#define HAVE_AS_OFFSETABLE_LO10 1" >>confdefs.h
24243 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for FMAF, HPC, and VIS 3.0 instructions" >&5
24244 $as_echo_n "checking assembler for FMAF, HPC, and VIS 3.0 instructions... " >&6; }
24245 if test "${gcc_cv_as_sparc_fmaf+set}" = set; then :
24246 $as_echo_n "(cached) " >&6
24247 else
24248 gcc_cv_as_sparc_fmaf=no
24249 if test x$gcc_cv_as != x; then
24250 $as_echo '.text
24251 .register %g2, #scratch
24252 .register %g3, #scratch
24253 .align 4
24254 fmaddd %f0, %f2, %f4, %f6
24255 addxccc %g1, %g2, %g3
24256 fsrl32 %f2, %f4, %f8
24257 fnaddd %f10, %f12, %f14' > conftest.s
24258 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -xarch=v9d -o conftest.o conftest.s >&5'
24259 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
24260 (eval $ac_try) 2>&5
24261 ac_status=$?
24262 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24263 test $ac_status = 0; }; }
24264 then
24265 gcc_cv_as_sparc_fmaf=yes
24266 else
24267 echo "configure: failed program was" >&5
24268 cat conftest.s >&5
24270 rm -f conftest.o conftest.s
24273 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_sparc_fmaf" >&5
24274 $as_echo "$gcc_cv_as_sparc_fmaf" >&6; }
24275 if test $gcc_cv_as_sparc_fmaf = yes; then
24277 $as_echo "#define HAVE_AS_FMAF_HPC_VIS3 1" >>confdefs.h
24281 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for SPARC4 instructions" >&5
24282 $as_echo_n "checking assembler for SPARC4 instructions... " >&6; }
24283 if test "${gcc_cv_as_sparc_sparc4+set}" = set; then :
24284 $as_echo_n "(cached) " >&6
24285 else
24286 gcc_cv_as_sparc_sparc4=no
24287 if test x$gcc_cv_as != x; then
24288 $as_echo '.text
24289 .register %g2, #scratch
24290 .register %g3, #scratch
24291 .align 4
24292 cxbe %g2, %g3, 1f
24293 1: cwbneg %g2, %g3, 1f
24294 1: sha1
24296 aes_kexpand0 %f4, %f6, %f8
24297 des_round %f38, %f40, %f42, %f44
24298 camellia_f %f54, %f56, %f58, %f60
24299 kasumi_fi_xor %f46, %f48, %f50, %f52' > conftest.s
24300 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -xarch=sparc4 -o conftest.o conftest.s >&5'
24301 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
24302 (eval $ac_try) 2>&5
24303 ac_status=$?
24304 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24305 test $ac_status = 0; }; }
24306 then
24307 gcc_cv_as_sparc_sparc4=yes
24308 else
24309 echo "configure: failed program was" >&5
24310 cat conftest.s >&5
24312 rm -f conftest.o conftest.s
24315 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_sparc_sparc4" >&5
24316 $as_echo "$gcc_cv_as_sparc_sparc4" >&6; }
24317 if test $gcc_cv_as_sparc_sparc4 = yes; then
24319 $as_echo "#define HAVE_AS_SPARC4 1" >>confdefs.h
24324 i[34567]86-*-* | x86_64-*-*)
24325 case $target_os in
24326 cygwin*)
24327 # Full C++ conformance when using a shared libstdc++-v3 requires some
24328 # support from the Cygwin DLL, which in more recent versions exports
24329 # wrappers to aid in interposing and redirecting operators new, delete,
24330 # etc., as per n2800 #17.6.4.6 [replacement.functions]. Check if we
24331 # are configuring for a version of Cygwin that exports the wrappers.
24332 if test x$host = x$target; then
24333 ac_fn_c_check_func "$LINENO" "__wrap__Znaj" "ac_cv_func___wrap__Znaj"
24334 if test "x$ac_cv_func___wrap__Znaj" = x""yes; then :
24335 gcc_ac_cygwin_dll_wrappers=yes
24336 else
24337 gcc_ac_cygwin_dll_wrappers=no
24340 else
24341 # Can't check presence of libc functions during cross-compile, so
24342 # we just have to assume we're building for an up-to-date target.
24343 gcc_ac_cygwin_dll_wrappers=yes
24346 cat >>confdefs.h <<_ACEOF
24347 #define USE_CYGWIN_LIBSTDCXX_WRAPPERS `if test $gcc_ac_cygwin_dll_wrappers = yes; then echo 1; else echo 0; fi`
24348 _ACEOF
24350 esac
24351 case $target_os in
24352 cygwin* | pe | mingw32* | interix*)
24353 # Recent binutils allows the three-operand form of ".comm" on PE. This
24354 # definition is used unconditionally to initialise the default state of
24355 # the target option variable that governs usage of the feature.
24356 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .comm with alignment" >&5
24357 $as_echo_n "checking assembler for .comm with alignment... " >&6; }
24358 if test "${gcc_cv_as_comm_has_align+set}" = set; then :
24359 $as_echo_n "(cached) " >&6
24360 else
24361 gcc_cv_as_comm_has_align=no
24362 if test $in_tree_gas = yes; then
24363 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 19 \) \* 1000 + 52`
24364 then gcc_cv_as_comm_has_align=yes
24366 elif test x$gcc_cv_as != x; then
24367 $as_echo '.comm foo,1,32' > conftest.s
24368 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
24369 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
24370 (eval $ac_try) 2>&5
24371 ac_status=$?
24372 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24373 test $ac_status = 0; }; }
24374 then
24375 gcc_cv_as_comm_has_align=yes
24376 else
24377 echo "configure: failed program was" >&5
24378 cat conftest.s >&5
24380 rm -f conftest.o conftest.s
24383 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_comm_has_align" >&5
24384 $as_echo "$gcc_cv_as_comm_has_align" >&6; }
24387 cat >>confdefs.h <<_ACEOF
24388 #define HAVE_GAS_ALIGNED_COMM `if test $gcc_cv_as_comm_has_align = yes; then echo 1; else echo 0; fi`
24389 _ACEOF
24391 # Used for DWARF 2 in PE
24392 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .secrel32 relocs" >&5
24393 $as_echo_n "checking assembler for .secrel32 relocs... " >&6; }
24394 if test "${gcc_cv_as_ix86_pe_secrel32+set}" = set; then :
24395 $as_echo_n "(cached) " >&6
24396 else
24397 gcc_cv_as_ix86_pe_secrel32=no
24398 if test $in_tree_gas = yes; then
24399 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 15 \) \* 1000 + 91`
24400 then gcc_cv_as_ix86_pe_secrel32=yes
24402 elif test x$gcc_cv_as != x; then
24403 $as_echo '.text
24404 foo: nop
24405 .data
24406 .secrel32 foo' > conftest.s
24407 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
24408 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
24409 (eval $ac_try) 2>&5
24410 ac_status=$?
24411 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24412 test $ac_status = 0; }; }
24413 then
24414 if test x$gcc_cv_ld != x \
24415 && $gcc_cv_ld -o conftest conftest.o > /dev/null 2>&1; then
24416 gcc_cv_as_ix86_pe_secrel32=yes
24418 rm -f conftest
24419 else
24420 echo "configure: failed program was" >&5
24421 cat conftest.s >&5
24423 rm -f conftest.o conftest.s
24426 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_ix86_pe_secrel32" >&5
24427 $as_echo "$gcc_cv_as_ix86_pe_secrel32" >&6; }
24428 if test $gcc_cv_as_ix86_pe_secrel32 = yes; then
24430 $as_echo "#define HAVE_GAS_PE_SECREL32_RELOC 1" >>confdefs.h
24433 # Test if the assembler supports the extended form of the .section
24434 # directive that specifies section alignment. LTO support uses this,
24435 # but normally only after installation, so we warn but don't fail the
24436 # configure if LTO is enabled but the assembler does not support it.
24437 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .section with alignment" >&5
24438 $as_echo_n "checking assembler for .section with alignment... " >&6; }
24439 if test "${gcc_cv_as_section_has_align+set}" = set; then :
24440 $as_echo_n "(cached) " >&6
24441 else
24442 gcc_cv_as_section_has_align=no
24443 if test $in_tree_gas = yes; then
24444 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 20 \) \* 1000 + 1`
24445 then gcc_cv_as_section_has_align=yes
24447 elif test x$gcc_cv_as != x; then
24448 $as_echo '.section lto_test,"dr0"' > conftest.s
24449 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -fatal-warnings -o conftest.o conftest.s >&5'
24450 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
24451 (eval $ac_try) 2>&5
24452 ac_status=$?
24453 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24454 test $ac_status = 0; }; }
24455 then
24456 gcc_cv_as_section_has_align=yes
24457 else
24458 echo "configure: failed program was" >&5
24459 cat conftest.s >&5
24461 rm -f conftest.o conftest.s
24464 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_section_has_align" >&5
24465 $as_echo "$gcc_cv_as_section_has_align" >&6; }
24467 if test x$gcc_cv_as_section_has_align != xyes; then
24468 case ",$enable_languages," in
24469 *,lto,*)
24470 { $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
24471 $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;}
24473 esac
24475 # Test if the assembler supports the section flag 'e' for specifying
24476 # an excluded section.
24477 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .section with e" >&5
24478 $as_echo_n "checking assembler for .section with e... " >&6; }
24479 if test "${gcc_cv_as_section_has_e+set}" = set; then :
24480 $as_echo_n "(cached) " >&6
24481 else
24482 gcc_cv_as_section_has_e=no
24483 if test $in_tree_gas = yes; then
24484 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 22 \) \* 1000 + 51`
24485 then gcc_cv_as_section_has_e=yes
24487 elif test x$gcc_cv_as != x; then
24488 $as_echo '.section foo1,"e"
24489 .byte 0,0,0,0' > conftest.s
24490 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
24491 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
24492 (eval $ac_try) 2>&5
24493 ac_status=$?
24494 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24495 test $ac_status = 0; }; }
24496 then
24497 gcc_cv_as_section_has_e=yes
24498 else
24499 echo "configure: failed program was" >&5
24500 cat conftest.s >&5
24502 rm -f conftest.o conftest.s
24505 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_section_has_e" >&5
24506 $as_echo "$gcc_cv_as_section_has_e" >&6; }
24509 cat >>confdefs.h <<_ACEOF
24510 #define HAVE_GAS_SECTION_EXCLUDE `if test $gcc_cv_as_section_has_e = yes; then echo 1; else echo 0; fi`
24511 _ACEOF
24514 esac
24516 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for filds and fists mnemonics" >&5
24517 $as_echo_n "checking assembler for filds and fists mnemonics... " >&6; }
24518 if test "${gcc_cv_as_ix86_filds+set}" = set; then :
24519 $as_echo_n "(cached) " >&6
24520 else
24521 gcc_cv_as_ix86_filds=no
24522 if test x$gcc_cv_as != x; then
24523 $as_echo 'filds mem; fists mem' > conftest.s
24524 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
24525 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
24526 (eval $ac_try) 2>&5
24527 ac_status=$?
24528 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24529 test $ac_status = 0; }; }
24530 then
24531 gcc_cv_as_ix86_filds=yes
24532 else
24533 echo "configure: failed program was" >&5
24534 cat conftest.s >&5
24536 rm -f conftest.o conftest.s
24539 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_ix86_filds" >&5
24540 $as_echo "$gcc_cv_as_ix86_filds" >&6; }
24541 if test $gcc_cv_as_ix86_filds = yes; then
24543 $as_echo "#define HAVE_AS_IX86_FILDS 1" >>confdefs.h
24547 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for fildq and fistpq mnemonics" >&5
24548 $as_echo_n "checking assembler for fildq and fistpq mnemonics... " >&6; }
24549 if test "${gcc_cv_as_ix86_fildq+set}" = set; then :
24550 $as_echo_n "(cached) " >&6
24551 else
24552 gcc_cv_as_ix86_fildq=no
24553 if test x$gcc_cv_as != x; then
24554 $as_echo 'fildq mem; fistpq mem' > conftest.s
24555 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
24556 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
24557 (eval $ac_try) 2>&5
24558 ac_status=$?
24559 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24560 test $ac_status = 0; }; }
24561 then
24562 gcc_cv_as_ix86_fildq=yes
24563 else
24564 echo "configure: failed program was" >&5
24565 cat conftest.s >&5
24567 rm -f conftest.o conftest.s
24570 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_ix86_fildq" >&5
24571 $as_echo "$gcc_cv_as_ix86_fildq" >&6; }
24572 if test $gcc_cv_as_ix86_fildq = yes; then
24574 $as_echo "#define HAVE_AS_IX86_FILDQ 1" >>confdefs.h
24578 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for cmov syntax" >&5
24579 $as_echo_n "checking assembler for cmov syntax... " >&6; }
24580 if test "${gcc_cv_as_ix86_cmov_sun_syntax+set}" = set; then :
24581 $as_echo_n "(cached) " >&6
24582 else
24583 gcc_cv_as_ix86_cmov_sun_syntax=no
24584 if test x$gcc_cv_as != x; then
24585 $as_echo 'cmovl.l %edx, %eax' > conftest.s
24586 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
24587 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
24588 (eval $ac_try) 2>&5
24589 ac_status=$?
24590 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24591 test $ac_status = 0; }; }
24592 then
24593 gcc_cv_as_ix86_cmov_sun_syntax=yes
24594 else
24595 echo "configure: failed program was" >&5
24596 cat conftest.s >&5
24598 rm -f conftest.o conftest.s
24601 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_ix86_cmov_sun_syntax" >&5
24602 $as_echo "$gcc_cv_as_ix86_cmov_sun_syntax" >&6; }
24603 if test $gcc_cv_as_ix86_cmov_sun_syntax = yes; then
24605 $as_echo "#define HAVE_AS_IX86_CMOV_SUN_SYNTAX 1" >>confdefs.h
24609 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for ffreep mnemonic" >&5
24610 $as_echo_n "checking assembler for ffreep mnemonic... " >&6; }
24611 if test "${gcc_cv_as_ix86_ffreep+set}" = set; then :
24612 $as_echo_n "(cached) " >&6
24613 else
24614 gcc_cv_as_ix86_ffreep=no
24615 if test x$gcc_cv_as != x; then
24616 $as_echo 'ffreep %st(1)' > conftest.s
24617 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
24618 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
24619 (eval $ac_try) 2>&5
24620 ac_status=$?
24621 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24622 test $ac_status = 0; }; }
24623 then
24624 gcc_cv_as_ix86_ffreep=yes
24625 else
24626 echo "configure: failed program was" >&5
24627 cat conftest.s >&5
24629 rm -f conftest.o conftest.s
24632 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_ix86_ffreep" >&5
24633 $as_echo "$gcc_cv_as_ix86_ffreep" >&6; }
24634 if test $gcc_cv_as_ix86_ffreep = yes; then
24636 $as_echo "#define HAVE_AS_IX86_FFREEP 1" >>confdefs.h
24640 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .quad directive" >&5
24641 $as_echo_n "checking assembler for .quad directive... " >&6; }
24642 if test "${gcc_cv_as_ix86_quad+set}" = set; then :
24643 $as_echo_n "(cached) " >&6
24644 else
24645 gcc_cv_as_ix86_quad=no
24646 if test x$gcc_cv_as != x; then
24647 $as_echo '.quad 0' > conftest.s
24648 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
24649 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
24650 (eval $ac_try) 2>&5
24651 ac_status=$?
24652 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24653 test $ac_status = 0; }; }
24654 then
24655 gcc_cv_as_ix86_quad=yes
24656 else
24657 echo "configure: failed program was" >&5
24658 cat conftest.s >&5
24660 rm -f conftest.o conftest.s
24663 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_ix86_quad" >&5
24664 $as_echo "$gcc_cv_as_ix86_quad" >&6; }
24665 if test $gcc_cv_as_ix86_quad = yes; then
24667 $as_echo "#define HAVE_AS_IX86_QUAD 1" >>confdefs.h
24671 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for sahf mnemonic" >&5
24672 $as_echo_n "checking assembler for sahf mnemonic... " >&6; }
24673 if test "${gcc_cv_as_ix86_sahf+set}" = set; then :
24674 $as_echo_n "(cached) " >&6
24675 else
24676 gcc_cv_as_ix86_sahf=no
24677 if test x$gcc_cv_as != x; then
24678 $as_echo '.code64
24679 sahf' > conftest.s
24680 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
24681 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
24682 (eval $ac_try) 2>&5
24683 ac_status=$?
24684 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24685 test $ac_status = 0; }; }
24686 then
24687 gcc_cv_as_ix86_sahf=yes
24688 else
24689 echo "configure: failed program was" >&5
24690 cat conftest.s >&5
24692 rm -f conftest.o conftest.s
24695 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_ix86_sahf" >&5
24696 $as_echo "$gcc_cv_as_ix86_sahf" >&6; }
24697 if test $gcc_cv_as_ix86_sahf = yes; then
24699 $as_echo "#define HAVE_AS_IX86_SAHF 1" >>confdefs.h
24703 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for hle prefixes" >&5
24704 $as_echo_n "checking assembler for hle prefixes... " >&6; }
24705 if test "${gcc_cv_as_ix86_hle+set}" = set; then :
24706 $as_echo_n "(cached) " >&6
24707 else
24708 gcc_cv_as_ix86_hle=no
24709 if test x$gcc_cv_as != x; then
24710 $as_echo 'lock xacquire cmpxchg %esi, (%ecx)' > conftest.s
24711 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
24712 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
24713 (eval $ac_try) 2>&5
24714 ac_status=$?
24715 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24716 test $ac_status = 0; }; }
24717 then
24718 gcc_cv_as_ix86_hle=yes
24719 else
24720 echo "configure: failed program was" >&5
24721 cat conftest.s >&5
24723 rm -f conftest.o conftest.s
24726 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_ix86_hle" >&5
24727 $as_echo "$gcc_cv_as_ix86_hle" >&6; }
24728 if test $gcc_cv_as_ix86_hle = yes; then
24730 $as_echo "#define HAVE_AS_IX86_HLE 1" >>confdefs.h
24734 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for swap suffix" >&5
24735 $as_echo_n "checking assembler for swap suffix... " >&6; }
24736 if test "${gcc_cv_as_ix86_swap+set}" = set; then :
24737 $as_echo_n "(cached) " >&6
24738 else
24739 gcc_cv_as_ix86_swap=no
24740 if test x$gcc_cv_as != x; then
24741 $as_echo 'movl.s %esp, %ebp' > conftest.s
24742 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
24743 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
24744 (eval $ac_try) 2>&5
24745 ac_status=$?
24746 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24747 test $ac_status = 0; }; }
24748 then
24749 gcc_cv_as_ix86_swap=yes
24750 else
24751 echo "configure: failed program was" >&5
24752 cat conftest.s >&5
24754 rm -f conftest.o conftest.s
24757 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_ix86_swap" >&5
24758 $as_echo "$gcc_cv_as_ix86_swap" >&6; }
24759 if test $gcc_cv_as_ix86_swap = yes; then
24761 $as_echo "#define HAVE_AS_IX86_SWAP 1" >>confdefs.h
24765 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for different section symbol subtraction" >&5
24766 $as_echo_n "checking assembler for different section symbol subtraction... " >&6; }
24767 if test "${gcc_cv_as_ix86_diff_sect_delta+set}" = set; then :
24768 $as_echo_n "(cached) " >&6
24769 else
24770 gcc_cv_as_ix86_diff_sect_delta=no
24771 if test x$gcc_cv_as != x; then
24772 $as_echo '.section .rodata
24773 .L1:
24774 .long .L2-.L1
24775 .long .L3-.L1
24776 .text
24777 .L3: nop
24778 .L2: nop' > conftest.s
24779 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
24780 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
24781 (eval $ac_try) 2>&5
24782 ac_status=$?
24783 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24784 test $ac_status = 0; }; }
24785 then
24786 gcc_cv_as_ix86_diff_sect_delta=yes
24787 else
24788 echo "configure: failed program was" >&5
24789 cat conftest.s >&5
24791 rm -f conftest.o conftest.s
24794 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_ix86_diff_sect_delta" >&5
24795 $as_echo "$gcc_cv_as_ix86_diff_sect_delta" >&6; }
24796 if test $gcc_cv_as_ix86_diff_sect_delta = yes; then
24798 $as_echo "#define HAVE_AS_IX86_DIFF_SECT_DELTA 1" >>confdefs.h
24802 # These two are used unconditionally by i386.[ch]; it is to be defined
24803 # to 1 if the feature is present, 0 otherwise.
24804 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for GOTOFF in data" >&5
24805 $as_echo_n "checking assembler for GOTOFF in data... " >&6; }
24806 if test "${gcc_cv_as_ix86_gotoff_in_data+set}" = set; then :
24807 $as_echo_n "(cached) " >&6
24808 else
24809 gcc_cv_as_ix86_gotoff_in_data=no
24810 if test $in_tree_gas = yes; then
24811 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 11 \) \* 1000 + 0`
24812 then gcc_cv_as_ix86_gotoff_in_data=yes
24814 elif test x$gcc_cv_as != x; then
24815 $as_echo ' .text
24816 .L0:
24818 .data
24819 .long .L0@GOTOFF' > conftest.s
24820 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
24821 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
24822 (eval $ac_try) 2>&5
24823 ac_status=$?
24824 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24825 test $ac_status = 0; }; }
24826 then
24827 gcc_cv_as_ix86_gotoff_in_data=yes
24828 else
24829 echo "configure: failed program was" >&5
24830 cat conftest.s >&5
24832 rm -f conftest.o conftest.s
24835 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_ix86_gotoff_in_data" >&5
24836 $as_echo "$gcc_cv_as_ix86_gotoff_in_data" >&6; }
24839 cat >>confdefs.h <<_ACEOF
24840 #define HAVE_AS_GOTOFF_IN_DATA `if test $gcc_cv_as_ix86_gotoff_in_data = yes; then echo 1; else echo 0; fi`
24841 _ACEOF
24844 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for rep and lock prefix" >&5
24845 $as_echo_n "checking assembler for rep and lock prefix... " >&6; }
24846 if test "${gcc_cv_as_ix86_rep_lock_prefix+set}" = set; then :
24847 $as_echo_n "(cached) " >&6
24848 else
24849 gcc_cv_as_ix86_rep_lock_prefix=no
24850 if test x$gcc_cv_as != x; then
24851 $as_echo 'rep movsl
24852 rep ret
24853 rep nop
24854 rep bsf %ecx, %eax
24855 rep bsr %ecx, %eax
24856 lock addl %edi, (%eax,%esi)
24857 lock orl $0, (%esp)' > conftest.s
24858 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
24859 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
24860 (eval $ac_try) 2>&5
24861 ac_status=$?
24862 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24863 test $ac_status = 0; }; }
24864 then
24865 gcc_cv_as_ix86_rep_lock_prefix=yes
24866 else
24867 echo "configure: failed program was" >&5
24868 cat conftest.s >&5
24870 rm -f conftest.o conftest.s
24873 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_ix86_rep_lock_prefix" >&5
24874 $as_echo "$gcc_cv_as_ix86_rep_lock_prefix" >&6; }
24875 if test $gcc_cv_as_ix86_rep_lock_prefix = yes; then
24877 $as_echo "#define HAVE_AS_IX86_REP_LOCK_PREFIX 1" >>confdefs.h
24881 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for R_386_TLS_GD_PLT reloc" >&5
24882 $as_echo_n "checking assembler for R_386_TLS_GD_PLT reloc... " >&6; }
24883 if test "${gcc_cv_as_ix86_tlsgdplt+set}" = set; then :
24884 $as_echo_n "(cached) " >&6
24885 else
24886 gcc_cv_as_ix86_tlsgdplt=no
24887 if test x$gcc_cv_as != x; then
24888 $as_echo 'call tls_gd@tlsgdplt' > conftest.s
24889 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
24890 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
24891 (eval $ac_try) 2>&5
24892 ac_status=$?
24893 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24894 test $ac_status = 0; }; }
24895 then
24896 if test x$gcc_cv_ld != x \
24897 && $gcc_cv_ld -o conftest conftest.o -G > /dev/null 2>&1; then
24898 gcc_cv_as_ix86_tlsgdplt=yes
24900 rm -f conftest
24901 else
24902 echo "configure: failed program was" >&5
24903 cat conftest.s >&5
24905 rm -f conftest.o conftest.s
24908 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_ix86_tlsgdplt" >&5
24909 $as_echo "$gcc_cv_as_ix86_tlsgdplt" >&6; }
24910 if test $gcc_cv_as_ix86_tlsgdplt = yes; then
24912 $as_echo "#define HAVE_AS_IX86_TLSGDPLT 1" >>confdefs.h
24916 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for R_386_TLS_LDM_PLT reloc" >&5
24917 $as_echo_n "checking assembler for R_386_TLS_LDM_PLT reloc... " >&6; }
24918 if test "${gcc_cv_as_ix86_tlsldmplt+set}" = set; then :
24919 $as_echo_n "(cached) " >&6
24920 else
24921 gcc_cv_as_ix86_tlsldmplt=no
24922 if test x$gcc_cv_as != x; then
24923 $as_echo 'tls_ld:
24924 call tls_ld@tlsldmplt' > conftest.s
24925 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
24926 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
24927 (eval $ac_try) 2>&5
24928 ac_status=$?
24929 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24930 test $ac_status = 0; }; }
24931 then
24932 if test x$gcc_cv_ld != x \
24933 && $gcc_cv_ld -o conftest conftest.o -G > /dev/null 2>&1; then
24934 gcc_cv_as_ix86_tlsldmplt=yes
24936 rm -f conftest
24937 else
24938 echo "configure: failed program was" >&5
24939 cat conftest.s >&5
24941 rm -f conftest.o conftest.s
24944 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_ix86_tlsldmplt" >&5
24945 $as_echo "$gcc_cv_as_ix86_tlsldmplt" >&6; }
24946 if test $gcc_cv_as_ix86_tlsldmplt = yes; then
24948 $as_echo "#define HAVE_AS_IX86_TLSLDMPLT 1" >>confdefs.h
24954 ia64*-*-*)
24955 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for ltoffx and ldxmov relocs" >&5
24956 $as_echo_n "checking assembler for ltoffx and ldxmov relocs... " >&6; }
24957 if test "${gcc_cv_as_ia64_ltoffx_ldxmov_relocs+set}" = set; then :
24958 $as_echo_n "(cached) " >&6
24959 else
24960 gcc_cv_as_ia64_ltoffx_ldxmov_relocs=no
24961 if test $in_tree_gas = yes; then
24962 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 14 \) \* 1000 + 0`
24963 then gcc_cv_as_ia64_ltoffx_ldxmov_relocs=yes
24965 elif test x$gcc_cv_as != x; then
24966 $as_echo ' .text
24967 addl r15 = @ltoffx(x#), gp
24969 ld8.mov r16 = [r15], x#' > conftest.s
24970 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
24971 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
24972 (eval $ac_try) 2>&5
24973 ac_status=$?
24974 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24975 test $ac_status = 0; }; }
24976 then
24977 gcc_cv_as_ia64_ltoffx_ldxmov_relocs=yes
24978 else
24979 echo "configure: failed program was" >&5
24980 cat conftest.s >&5
24982 rm -f conftest.o conftest.s
24985 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_ia64_ltoffx_ldxmov_relocs" >&5
24986 $as_echo "$gcc_cv_as_ia64_ltoffx_ldxmov_relocs" >&6; }
24987 if test $gcc_cv_as_ia64_ltoffx_ldxmov_relocs = yes; then
24989 $as_echo "#define HAVE_AS_LTOFFX_LDXMOV_RELOCS 1" >>confdefs.h
24995 powerpc*-*-*)
24996 case $target in
24997 *-*-aix*) conftest_s=' .machine "pwr5"
24998 .csect .text[PR]
24999 mfcr 3,128';;
25000 *-*-darwin*)
25001 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .machine directive support" >&5
25002 $as_echo_n "checking assembler for .machine directive support... " >&6; }
25003 if test "${gcc_cv_as_machine_directive+set}" = set; then :
25004 $as_echo_n "(cached) " >&6
25005 else
25006 gcc_cv_as_machine_directive=no
25007 if test x$gcc_cv_as != x; then
25008 $as_echo ' .machine ppc7400' > conftest.s
25009 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
25010 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
25011 (eval $ac_try) 2>&5
25012 ac_status=$?
25013 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25014 test $ac_status = 0; }; }
25015 then
25016 gcc_cv_as_machine_directive=yes
25017 else
25018 echo "configure: failed program was" >&5
25019 cat conftest.s >&5
25021 rm -f conftest.o conftest.s
25024 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_machine_directive" >&5
25025 $as_echo "$gcc_cv_as_machine_directive" >&6; }
25027 if test x$gcc_cv_as_machine_directive != xyes; then
25028 echo "*** This target requires an assembler supporting \".machine\"" >&2
25029 echo you can get it from: ftp://gcc.gnu.org/pub/gcc/infrastructure/cctools-528.5.dmg >&2
25030 test x$build = x$target && exit 1
25032 conftest_s=' .text
25033 mfcr r3,128';;
25034 *) conftest_s=' .machine power4
25035 .text
25036 mfcr 3,128';;
25037 esac
25039 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for mfcr field support" >&5
25040 $as_echo_n "checking assembler for mfcr field support... " >&6; }
25041 if test "${gcc_cv_as_powerpc_mfcrf+set}" = set; then :
25042 $as_echo_n "(cached) " >&6
25043 else
25044 gcc_cv_as_powerpc_mfcrf=no
25045 if test $in_tree_gas = yes; then
25046 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 14 \) \* 1000 + 0`
25047 then gcc_cv_as_powerpc_mfcrf=yes
25049 elif test x$gcc_cv_as != x; then
25050 $as_echo "$conftest_s" > conftest.s
25051 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
25052 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
25053 (eval $ac_try) 2>&5
25054 ac_status=$?
25055 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25056 test $ac_status = 0; }; }
25057 then
25058 gcc_cv_as_powerpc_mfcrf=yes
25059 else
25060 echo "configure: failed program was" >&5
25061 cat conftest.s >&5
25063 rm -f conftest.o conftest.s
25066 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_powerpc_mfcrf" >&5
25067 $as_echo "$gcc_cv_as_powerpc_mfcrf" >&6; }
25068 if test $gcc_cv_as_powerpc_mfcrf = yes; then
25070 $as_echo "#define HAVE_AS_MFCRF 1" >>confdefs.h
25074 case $target in
25075 *-*-aix*) conftest_s=' .machine "pwr5"
25076 .csect .text[PR]
25077 popcntb 3,3';;
25078 *) conftest_s=' .machine power5
25079 .text
25080 popcntb 3,3';;
25081 esac
25083 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for popcntb support" >&5
25084 $as_echo_n "checking assembler for popcntb support... " >&6; }
25085 if test "${gcc_cv_as_powerpc_popcntb+set}" = set; then :
25086 $as_echo_n "(cached) " >&6
25087 else
25088 gcc_cv_as_powerpc_popcntb=no
25089 if test $in_tree_gas = yes; then
25090 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 17 \) \* 1000 + 0`
25091 then gcc_cv_as_powerpc_popcntb=yes
25093 elif test x$gcc_cv_as != x; then
25094 $as_echo "$conftest_s" > conftest.s
25095 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
25096 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
25097 (eval $ac_try) 2>&5
25098 ac_status=$?
25099 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25100 test $ac_status = 0; }; }
25101 then
25102 gcc_cv_as_powerpc_popcntb=yes
25103 else
25104 echo "configure: failed program was" >&5
25105 cat conftest.s >&5
25107 rm -f conftest.o conftest.s
25110 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_powerpc_popcntb" >&5
25111 $as_echo "$gcc_cv_as_powerpc_popcntb" >&6; }
25112 if test $gcc_cv_as_powerpc_popcntb = yes; then
25114 $as_echo "#define HAVE_AS_POPCNTB 1" >>confdefs.h
25118 case $target in
25119 *-*-aix*) conftest_s=' .machine "pwr5x"
25120 .csect .text[PR]
25121 frin 1,1';;
25122 *) conftest_s=' .machine power5
25123 .text
25124 frin 1,1';;
25125 esac
25127 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for fp round support" >&5
25128 $as_echo_n "checking assembler for fp round support... " >&6; }
25129 if test "${gcc_cv_as_powerpc_fprnd+set}" = set; then :
25130 $as_echo_n "(cached) " >&6
25131 else
25132 gcc_cv_as_powerpc_fprnd=no
25133 if test $in_tree_gas = yes; then
25134 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 17 \) \* 1000 + 0`
25135 then gcc_cv_as_powerpc_fprnd=yes
25137 elif test x$gcc_cv_as != x; then
25138 $as_echo "$conftest_s" > conftest.s
25139 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
25140 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
25141 (eval $ac_try) 2>&5
25142 ac_status=$?
25143 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25144 test $ac_status = 0; }; }
25145 then
25146 gcc_cv_as_powerpc_fprnd=yes
25147 else
25148 echo "configure: failed program was" >&5
25149 cat conftest.s >&5
25151 rm -f conftest.o conftest.s
25154 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_powerpc_fprnd" >&5
25155 $as_echo "$gcc_cv_as_powerpc_fprnd" >&6; }
25156 if test $gcc_cv_as_powerpc_fprnd = yes; then
25158 $as_echo "#define HAVE_AS_FPRND 1" >>confdefs.h
25162 case $target in
25163 *-*-aix*) conftest_s=' .machine "pwr6"
25164 .csect .text[PR]
25165 mffgpr 1,3';;
25166 *) conftest_s=' .machine power6
25167 .text
25168 mffgpr 1,3';;
25169 esac
25171 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for move fp gpr support" >&5
25172 $as_echo_n "checking assembler for move fp gpr support... " >&6; }
25173 if test "${gcc_cv_as_powerpc_mfpgpr+set}" = set; then :
25174 $as_echo_n "(cached) " >&6
25175 else
25176 gcc_cv_as_powerpc_mfpgpr=no
25177 if test $in_tree_gas = yes; then
25178 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 19 \) \* 1000 + 2`
25179 then gcc_cv_as_powerpc_mfpgpr=yes
25181 elif test x$gcc_cv_as != x; then
25182 $as_echo "$conftest_s" > conftest.s
25183 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
25184 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
25185 (eval $ac_try) 2>&5
25186 ac_status=$?
25187 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25188 test $ac_status = 0; }; }
25189 then
25190 gcc_cv_as_powerpc_mfpgpr=yes
25191 else
25192 echo "configure: failed program was" >&5
25193 cat conftest.s >&5
25195 rm -f conftest.o conftest.s
25198 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_powerpc_mfpgpr" >&5
25199 $as_echo "$gcc_cv_as_powerpc_mfpgpr" >&6; }
25200 if test $gcc_cv_as_powerpc_mfpgpr = yes; then
25202 $as_echo "#define HAVE_AS_MFPGPR 1" >>confdefs.h
25206 case $target in
25207 *-*-aix*) conftest_s=' .csect .text[PR]
25208 LCF..0:
25209 addis 11,30,_GLOBAL_OFFSET_TABLE_-LCF..0@ha';;
25210 *-*-darwin*)
25211 conftest_s=' .text
25212 LCF0:
25213 addis r11,r30,_GLOBAL_OFFSET_TABLE_-LCF0@ha';;
25214 *) conftest_s=' .text
25215 .LCF0:
25216 addis 11,30,_GLOBAL_OFFSET_TABLE_-.LCF0@ha';;
25217 esac
25219 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for rel16 relocs" >&5
25220 $as_echo_n "checking assembler for rel16 relocs... " >&6; }
25221 if test "${gcc_cv_as_powerpc_rel16+set}" = set; then :
25222 $as_echo_n "(cached) " >&6
25223 else
25224 gcc_cv_as_powerpc_rel16=no
25225 if test $in_tree_gas = yes; then
25226 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 17 \) \* 1000 + 0`
25227 then gcc_cv_as_powerpc_rel16=yes
25229 elif test x$gcc_cv_as != x; then
25230 $as_echo "$conftest_s" > conftest.s
25231 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -a32 -o conftest.o conftest.s >&5'
25232 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
25233 (eval $ac_try) 2>&5
25234 ac_status=$?
25235 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25236 test $ac_status = 0; }; }
25237 then
25238 gcc_cv_as_powerpc_rel16=yes
25239 else
25240 echo "configure: failed program was" >&5
25241 cat conftest.s >&5
25243 rm -f conftest.o conftest.s
25246 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_powerpc_rel16" >&5
25247 $as_echo "$gcc_cv_as_powerpc_rel16" >&6; }
25248 if test $gcc_cv_as_powerpc_rel16 = yes; then
25250 $as_echo "#define HAVE_AS_REL16 1" >>confdefs.h
25254 case $target in
25255 *-*-aix*) conftest_s=' .machine "pwr6"
25256 .csect .text[PR]
25257 cmpb 3,4,5';;
25258 *) conftest_s=' .machine power6
25259 .text
25260 cmpb 3,4,5';;
25261 esac
25263 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for compare bytes support" >&5
25264 $as_echo_n "checking assembler for compare bytes support... " >&6; }
25265 if test "${gcc_cv_as_powerpc_cmpb+set}" = set; then :
25266 $as_echo_n "(cached) " >&6
25267 else
25268 gcc_cv_as_powerpc_cmpb=no
25269 if test $in_tree_gas = yes; then
25270 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 19 \) \* 1000 + 2`
25271 then gcc_cv_as_powerpc_cmpb=yes
25273 elif test x$gcc_cv_as != x; then
25274 $as_echo "$conftest_s" > conftest.s
25275 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -a32 -o conftest.o conftest.s >&5'
25276 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
25277 (eval $ac_try) 2>&5
25278 ac_status=$?
25279 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25280 test $ac_status = 0; }; }
25281 then
25282 gcc_cv_as_powerpc_cmpb=yes
25283 else
25284 echo "configure: failed program was" >&5
25285 cat conftest.s >&5
25287 rm -f conftest.o conftest.s
25290 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_powerpc_cmpb" >&5
25291 $as_echo "$gcc_cv_as_powerpc_cmpb" >&6; }
25292 if test $gcc_cv_as_powerpc_cmpb = yes; then
25294 $as_echo "#define HAVE_AS_CMPB 1" >>confdefs.h
25298 case $target in
25299 *-*-aix*) conftest_s=' .machine "pwr6"
25300 .csect .text[PR]
25301 dadd 1,2,3';;
25302 *) conftest_s=' .machine power6
25303 .text
25304 dadd 1,2,3';;
25305 esac
25307 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for decimal float support" >&5
25308 $as_echo_n "checking assembler for decimal float support... " >&6; }
25309 if test "${gcc_cv_as_powerpc_dfp+set}" = set; then :
25310 $as_echo_n "(cached) " >&6
25311 else
25312 gcc_cv_as_powerpc_dfp=no
25313 if test $in_tree_gas = yes; then
25314 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 19 \) \* 1000 + 2`
25315 then gcc_cv_as_powerpc_dfp=yes
25317 elif test x$gcc_cv_as != x; then
25318 $as_echo "$conftest_s" > conftest.s
25319 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -a32 -o conftest.o conftest.s >&5'
25320 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
25321 (eval $ac_try) 2>&5
25322 ac_status=$?
25323 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25324 test $ac_status = 0; }; }
25325 then
25326 gcc_cv_as_powerpc_dfp=yes
25327 else
25328 echo "configure: failed program was" >&5
25329 cat conftest.s >&5
25331 rm -f conftest.o conftest.s
25334 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_powerpc_dfp" >&5
25335 $as_echo "$gcc_cv_as_powerpc_dfp" >&6; }
25336 if test $gcc_cv_as_powerpc_dfp = yes; then
25338 $as_echo "#define HAVE_AS_DFP 1" >>confdefs.h
25342 case $target in
25343 *-*-aix*) conftest_s=' .machine "pwr7"
25344 .csect .text[PR]
25345 lxvd2x 1,2,3';;
25346 *) conftest_s=' .machine power7
25347 .text
25348 lxvd2x 1,2,3';;
25349 esac
25351 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for vector-scalar support" >&5
25352 $as_echo_n "checking assembler for vector-scalar support... " >&6; }
25353 if test "${gcc_cv_as_powerpc_vsx+set}" = set; then :
25354 $as_echo_n "(cached) " >&6
25355 else
25356 gcc_cv_as_powerpc_vsx=no
25357 if test $in_tree_gas = yes; then
25358 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 19 \) \* 1000 + 2`
25359 then gcc_cv_as_powerpc_vsx=yes
25361 elif test x$gcc_cv_as != x; then
25362 $as_echo "$conftest_s" > conftest.s
25363 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -a32 -o conftest.o conftest.s >&5'
25364 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
25365 (eval $ac_try) 2>&5
25366 ac_status=$?
25367 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25368 test $ac_status = 0; }; }
25369 then
25370 gcc_cv_as_powerpc_vsx=yes
25371 else
25372 echo "configure: failed program was" >&5
25373 cat conftest.s >&5
25375 rm -f conftest.o conftest.s
25378 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_powerpc_vsx" >&5
25379 $as_echo "$gcc_cv_as_powerpc_vsx" >&6; }
25380 if test $gcc_cv_as_powerpc_vsx = yes; then
25382 $as_echo "#define HAVE_AS_VSX 1" >>confdefs.h
25386 case $target in
25387 *-*-aix*) conftest_s=' .machine "pwr7"
25388 .csect .text[PR]
25389 popcntd 3,3';;
25390 *) conftest_s=' .machine power7
25391 .text
25392 popcntd 3,3';;
25393 esac
25395 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for popcntd support" >&5
25396 $as_echo_n "checking assembler for popcntd support... " >&6; }
25397 if test "${gcc_cv_as_powerpc_popcntd+set}" = set; then :
25398 $as_echo_n "(cached) " >&6
25399 else
25400 gcc_cv_as_powerpc_popcntd=no
25401 if test $in_tree_gas = yes; then
25402 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 19 \) \* 1000 + 2`
25403 then gcc_cv_as_powerpc_popcntd=yes
25405 elif test x$gcc_cv_as != x; then
25406 $as_echo "$conftest_s" > conftest.s
25407 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -a32 -o conftest.o conftest.s >&5'
25408 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
25409 (eval $ac_try) 2>&5
25410 ac_status=$?
25411 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25412 test $ac_status = 0; }; }
25413 then
25414 gcc_cv_as_powerpc_popcntd=yes
25415 else
25416 echo "configure: failed program was" >&5
25417 cat conftest.s >&5
25419 rm -f conftest.o conftest.s
25422 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_powerpc_popcntd" >&5
25423 $as_echo "$gcc_cv_as_powerpc_popcntd" >&6; }
25424 if test $gcc_cv_as_powerpc_popcntd = yes; then
25426 $as_echo "#define HAVE_AS_POPCNTD 1" >>confdefs.h
25430 case $target in
25431 *-*-aix*) conftest_s=' .machine "pwr8"
25432 .csect .text[PR]';;
25433 *) conftest_s=' .machine power8
25434 .text';;
25435 esac
25437 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for power8 support" >&5
25438 $as_echo_n "checking assembler for power8 support... " >&6; }
25439 if test "${gcc_cv_as_powerpc_power8+set}" = set; then :
25440 $as_echo_n "(cached) " >&6
25441 else
25442 gcc_cv_as_powerpc_power8=no
25443 if test $in_tree_gas = yes; then
25444 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 19 \) \* 1000 + 2`
25445 then gcc_cv_as_powerpc_power8=yes
25447 elif test x$gcc_cv_as != x; then
25448 $as_echo "$conftest_s" > conftest.s
25449 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -a32 -o conftest.o conftest.s >&5'
25450 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
25451 (eval $ac_try) 2>&5
25452 ac_status=$?
25453 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25454 test $ac_status = 0; }; }
25455 then
25456 gcc_cv_as_powerpc_power8=yes
25457 else
25458 echo "configure: failed program was" >&5
25459 cat conftest.s >&5
25461 rm -f conftest.o conftest.s
25464 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_powerpc_power8" >&5
25465 $as_echo "$gcc_cv_as_powerpc_power8" >&6; }
25466 if test $gcc_cv_as_powerpc_power8 = yes; then
25468 $as_echo "#define HAVE_AS_POWER8 1" >>confdefs.h
25472 case $target in
25473 *-*-aix*) conftest_s=' .csect .text[PR]
25474 lwsync';;
25475 *) conftest_s=' .text
25476 lwsync';;
25477 esac
25479 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for lwsync support" >&5
25480 $as_echo_n "checking assembler for lwsync support... " >&6; }
25481 if test "${gcc_cv_as_powerpc_lwsync+set}" = set; then :
25482 $as_echo_n "(cached) " >&6
25483 else
25484 gcc_cv_as_powerpc_lwsync=no
25485 if test $in_tree_gas = yes; then
25486 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 19 \) \* 1000 + 2`
25487 then gcc_cv_as_powerpc_lwsync=yes
25489 elif test x$gcc_cv_as != x; then
25490 $as_echo "$conftest_s" > conftest.s
25491 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -a32 -o conftest.o conftest.s >&5'
25492 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
25493 (eval $ac_try) 2>&5
25494 ac_status=$?
25495 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25496 test $ac_status = 0; }; }
25497 then
25498 gcc_cv_as_powerpc_lwsync=yes
25499 else
25500 echo "configure: failed program was" >&5
25501 cat conftest.s >&5
25503 rm -f conftest.o conftest.s
25506 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_powerpc_lwsync" >&5
25507 $as_echo "$gcc_cv_as_powerpc_lwsync" >&6; }
25508 if test $gcc_cv_as_powerpc_lwsync = yes; then
25510 $as_echo "#define HAVE_AS_LWSYNC 1" >>confdefs.h
25514 case $target in
25515 *-*-aix*) conftest_s=' .machine "476"
25516 .csect .text[PR]
25517 dci 0';;
25518 *) conftest_s=' .machine "476"
25519 .text
25520 dci 0';;
25521 esac
25523 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for data cache invalidate support" >&5
25524 $as_echo_n "checking assembler for data cache invalidate support... " >&6; }
25525 if test "${gcc_cv_as_powerpc_dci+set}" = set; then :
25526 $as_echo_n "(cached) " >&6
25527 else
25528 gcc_cv_as_powerpc_dci=no
25529 if test $in_tree_gas = yes; then
25530 if test $gcc_cv_gas_vers -ge `expr \( \( 9 \* 1000 \) + 99 \) \* 1000 + 0`
25531 then gcc_cv_as_powerpc_dci=yes
25533 elif test x$gcc_cv_as != x; then
25534 $as_echo "$conftest_s" > conftest.s
25535 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -a32 -o conftest.o conftest.s >&5'
25536 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
25537 (eval $ac_try) 2>&5
25538 ac_status=$?
25539 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25540 test $ac_status = 0; }; }
25541 then
25542 gcc_cv_as_powerpc_dci=yes
25543 else
25544 echo "configure: failed program was" >&5
25545 cat conftest.s >&5
25547 rm -f conftest.o conftest.s
25550 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_powerpc_dci" >&5
25551 $as_echo "$gcc_cv_as_powerpc_dci" >&6; }
25552 if test $gcc_cv_as_powerpc_dci = yes; then
25554 $as_echo "#define HAVE_AS_DCI 1" >>confdefs.h
25558 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .gnu_attribute support" >&5
25559 $as_echo_n "checking assembler for .gnu_attribute support... " >&6; }
25560 if test "${gcc_cv_as_powerpc_gnu_attribute+set}" = set; then :
25561 $as_echo_n "(cached) " >&6
25562 else
25563 gcc_cv_as_powerpc_gnu_attribute=no
25564 if test $in_tree_gas = yes; then
25565 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 18 \) \* 1000 + 0`
25566 then gcc_cv_as_powerpc_gnu_attribute=yes
25568 elif test x$gcc_cv_as != x; then
25569 $as_echo '.gnu_attribute 4,1' > conftest.s
25570 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
25571 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
25572 (eval $ac_try) 2>&5
25573 ac_status=$?
25574 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25575 test $ac_status = 0; }; }
25576 then
25577 gcc_cv_as_powerpc_gnu_attribute=yes
25578 else
25579 echo "configure: failed program was" >&5
25580 cat conftest.s >&5
25582 rm -f conftest.o conftest.s
25585 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_powerpc_gnu_attribute" >&5
25586 $as_echo "$gcc_cv_as_powerpc_gnu_attribute" >&6; }
25587 if test $gcc_cv_as_powerpc_gnu_attribute = yes; then
25589 $as_echo "#define HAVE_AS_GNU_ATTRIBUTE 1" >>confdefs.h
25593 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for tls marker support" >&5
25594 $as_echo_n "checking assembler for tls marker support... " >&6; }
25595 if test "${gcc_cv_as_powerpc_tls_markers+set}" = set; then :
25596 $as_echo_n "(cached) " >&6
25597 else
25598 gcc_cv_as_powerpc_tls_markers=no
25599 if test $in_tree_gas = yes; then
25600 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 20 \) \* 1000 + 0`
25601 then gcc_cv_as_powerpc_tls_markers=yes
25603 elif test x$gcc_cv_as != x; then
25604 $as_echo ' bl __tls_get_addr(x@tlsgd)' > conftest.s
25605 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
25606 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
25607 (eval $ac_try) 2>&5
25608 ac_status=$?
25609 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25610 test $ac_status = 0; }; }
25611 then
25612 gcc_cv_as_powerpc_tls_markers=yes
25613 else
25614 echo "configure: failed program was" >&5
25615 cat conftest.s >&5
25617 rm -f conftest.o conftest.s
25620 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_powerpc_tls_markers" >&5
25621 $as_echo "$gcc_cv_as_powerpc_tls_markers" >&6; }
25622 if test $gcc_cv_as_powerpc_tls_markers = yes; then
25624 $as_echo "#define HAVE_AS_TLS_MARKERS 1" >>confdefs.h
25628 case $target in
25629 *-*-aix*)
25630 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .ref support" >&5
25631 $as_echo_n "checking assembler for .ref support... " >&6; }
25632 if test "${gcc_cv_as_aix_ref+set}" = set; then :
25633 $as_echo_n "(cached) " >&6
25634 else
25635 gcc_cv_as_aix_ref=no
25636 if test $in_tree_gas = yes; then
25637 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 21 \) \* 1000 + 0`
25638 then gcc_cv_as_aix_ref=yes
25640 elif test x$gcc_cv_as != x; then
25641 $as_echo ' .csect stuff[rw]
25642 stuff:
25643 .long 1
25644 .extern sym
25645 .ref sym
25646 ' > conftest.s
25647 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
25648 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
25649 (eval $ac_try) 2>&5
25650 ac_status=$?
25651 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25652 test $ac_status = 0; }; }
25653 then
25654 gcc_cv_as_aix_ref=yes
25655 else
25656 echo "configure: failed program was" >&5
25657 cat conftest.s >&5
25659 rm -f conftest.o conftest.s
25662 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_aix_ref" >&5
25663 $as_echo "$gcc_cv_as_aix_ref" >&6; }
25664 if test $gcc_cv_as_aix_ref = yes; then
25666 $as_echo "#define HAVE_AS_REF 1" >>confdefs.h
25670 esac
25673 mips*-*-*)
25674 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for explicit relocation support" >&5
25675 $as_echo_n "checking assembler for explicit relocation support... " >&6; }
25676 if test "${gcc_cv_as_mips_explicit_relocs+set}" = set; then :
25677 $as_echo_n "(cached) " >&6
25678 else
25679 gcc_cv_as_mips_explicit_relocs=no
25680 if test $in_tree_gas = yes; then
25681 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 14 \) \* 1000 + 0`
25682 then gcc_cv_as_mips_explicit_relocs=yes
25684 elif test x$gcc_cv_as != x; then
25685 $as_echo ' lw $4,%gp_rel(foo)($4)' > conftest.s
25686 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
25687 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
25688 (eval $ac_try) 2>&5
25689 ac_status=$?
25690 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25691 test $ac_status = 0; }; }
25692 then
25693 gcc_cv_as_mips_explicit_relocs=yes
25694 else
25695 echo "configure: failed program was" >&5
25696 cat conftest.s >&5
25698 rm -f conftest.o conftest.s
25701 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_mips_explicit_relocs" >&5
25702 $as_echo "$gcc_cv_as_mips_explicit_relocs" >&6; }
25703 if test $gcc_cv_as_mips_explicit_relocs = yes; then
25704 if test x$target_cpu_default = x
25705 then target_cpu_default=MASK_EXPLICIT_RELOCS
25706 else target_cpu_default="($target_cpu_default)|MASK_EXPLICIT_RELOCS"
25709 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for -mno-shared support" >&5
25710 $as_echo_n "checking assembler for -mno-shared support... " >&6; }
25711 if test "${gcc_cv_as_mips_no_shared+set}" = set; then :
25712 $as_echo_n "(cached) " >&6
25713 else
25714 gcc_cv_as_mips_no_shared=no
25715 if test $in_tree_gas = yes; then
25716 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 16 \) \* 1000 + 0`
25717 then gcc_cv_as_mips_no_shared=yes
25719 elif test x$gcc_cv_as != x; then
25720 $as_echo 'nop' > conftest.s
25721 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -mno-shared -o conftest.o conftest.s >&5'
25722 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
25723 (eval $ac_try) 2>&5
25724 ac_status=$?
25725 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25726 test $ac_status = 0; }; }
25727 then
25728 gcc_cv_as_mips_no_shared=yes
25729 else
25730 echo "configure: failed program was" >&5
25731 cat conftest.s >&5
25733 rm -f conftest.o conftest.s
25736 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_mips_no_shared" >&5
25737 $as_echo "$gcc_cv_as_mips_no_shared" >&6; }
25738 if test $gcc_cv_as_mips_no_shared = yes; then
25740 $as_echo "#define HAVE_AS_NO_SHARED 1" >>confdefs.h
25744 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .gnu_attribute support" >&5
25745 $as_echo_n "checking assembler for .gnu_attribute support... " >&6; }
25746 if test "${gcc_cv_as_mips_gnu_attribute+set}" = set; then :
25747 $as_echo_n "(cached) " >&6
25748 else
25749 gcc_cv_as_mips_gnu_attribute=no
25750 if test $in_tree_gas = yes; then
25751 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 18 \) \* 1000 + 0`
25752 then gcc_cv_as_mips_gnu_attribute=yes
25754 elif test x$gcc_cv_as != x; then
25755 $as_echo '.gnu_attribute 4,1' > conftest.s
25756 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
25757 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
25758 (eval $ac_try) 2>&5
25759 ac_status=$?
25760 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25761 test $ac_status = 0; }; }
25762 then
25763 gcc_cv_as_mips_gnu_attribute=yes
25764 else
25765 echo "configure: failed program was" >&5
25766 cat conftest.s >&5
25768 rm -f conftest.o conftest.s
25771 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_mips_gnu_attribute" >&5
25772 $as_echo "$gcc_cv_as_mips_gnu_attribute" >&6; }
25773 if test $gcc_cv_as_mips_gnu_attribute = yes; then
25775 $as_echo "#define HAVE_AS_GNU_ATTRIBUTE 1" >>confdefs.h
25779 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .dtprelword support" >&5
25780 $as_echo_n "checking assembler for .dtprelword support... " >&6; }
25781 if test "${gcc_cv_as_mips_dtprelword+set}" = set; then :
25782 $as_echo_n "(cached) " >&6
25783 else
25784 gcc_cv_as_mips_dtprelword=no
25785 if test $in_tree_gas = yes; then
25786 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 18 \) \* 1000 + 0`
25787 then gcc_cv_as_mips_dtprelword=yes
25789 elif test x$gcc_cv_as != x; then
25790 $as_echo '.section .tdata,"awT",@progbits
25792 .word 2
25793 .text
25794 .dtprelword x+0x8000' > conftest.s
25795 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
25796 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
25797 (eval $ac_try) 2>&5
25798 ac_status=$?
25799 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25800 test $ac_status = 0; }; }
25801 then
25802 gcc_cv_as_mips_dtprelword=yes
25803 else
25804 echo "configure: failed program was" >&5
25805 cat conftest.s >&5
25807 rm -f conftest.o conftest.s
25810 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_mips_dtprelword" >&5
25811 $as_echo "$gcc_cv_as_mips_dtprelword" >&6; }
25812 if test $gcc_cv_as_mips_dtprelword = yes; then
25814 $as_echo "#define HAVE_AS_DTPRELWORD 1" >>confdefs.h
25818 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for DSPR1 mult with four accumulators support" >&5
25819 $as_echo_n "checking assembler for DSPR1 mult with four accumulators support... " >&6; }
25820 if test "${gcc_cv_as_mips_dspr1_mult+set}" = set; then :
25821 $as_echo_n "(cached) " >&6
25822 else
25823 gcc_cv_as_mips_dspr1_mult=no
25824 if test x$gcc_cv_as != x; then
25825 $as_echo ' .set mips32r2
25826 .set nodspr2
25827 .set dsp
25828 madd $ac3,$4,$5
25829 maddu $ac3,$4,$5
25830 msub $ac3,$4,$5
25831 msubu $ac3,$4,$5
25832 mult $ac3,$4,$5
25833 multu $ac3,$4,$5' > conftest.s
25834 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
25835 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
25836 (eval $ac_try) 2>&5
25837 ac_status=$?
25838 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25839 test $ac_status = 0; }; }
25840 then
25841 gcc_cv_as_mips_dspr1_mult=yes
25842 else
25843 echo "configure: failed program was" >&5
25844 cat conftest.s >&5
25846 rm -f conftest.o conftest.s
25849 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_mips_dspr1_mult" >&5
25850 $as_echo "$gcc_cv_as_mips_dspr1_mult" >&6; }
25851 if test $gcc_cv_as_mips_dspr1_mult = yes; then
25853 $as_echo "#define HAVE_AS_DSPR1_MULT 1" >>confdefs.h
25857 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler and linker for explicit JALR relocation" >&5
25858 $as_echo_n "checking assembler and linker for explicit JALR relocation... " >&6; }
25859 gcc_cv_as_ld_jalr_reloc=no
25860 if test $gcc_cv_as_mips_explicit_relocs = yes; then
25861 if test $in_tree_ld = yes ; then
25862 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 \
25863 && test $in_tree_ld_is_elf = yes; then
25864 gcc_cv_as_ld_jalr_reloc=yes
25866 elif test x$gcc_cv_as != x -a x$gcc_cv_ld != x -a x$gcc_cv_objdump != x; then
25867 echo ' .ent x' > conftest.s
25868 echo 'x: ld $2,%got_disp(y)($3)' >> conftest.s
25869 echo ' ld $25,%call16(y)($28)' >> conftest.s
25870 echo ' .reloc 1f,R_MIPS_JALR,y' >> conftest.s
25871 echo '1: jalr $25' >> conftest.s
25872 echo ' .reloc 1f,R_MIPS_JALR,x' >> conftest.s
25873 echo '1: jalr $25' >> conftest.s
25874 echo ' .end x' >> conftest.s
25875 if $gcc_cv_as -o conftest.o conftest.s >/dev/null 2>&5 \
25876 && $gcc_cv_ld -shared -o conftest.so conftest.o >/dev/null 2>&5; then
25877 if $gcc_cv_objdump -d conftest.so | grep jalr >/dev/null 2>&1 \
25878 && $gcc_cv_objdump -d conftest.so | grep "bal.*<x>" >/dev/null 2>&1; then
25879 gcc_cv_as_ld_jalr_reloc=yes
25882 rm -f conftest.*
25885 if test $gcc_cv_as_ld_jalr_reloc = yes; then
25886 if test x$target_cpu_default = x; then
25887 target_cpu_default=MASK_RELAX_PIC_CALLS
25888 else
25889 target_cpu_default="($target_cpu_default)|MASK_RELAX_PIC_CALLS"
25892 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_ld_jalr_reloc" >&5
25893 $as_echo "$gcc_cv_as_ld_jalr_reloc" >&6; }
25895 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker for .eh_frame personality relaxation" >&5
25896 $as_echo_n "checking linker for .eh_frame personality relaxation... " >&6; }
25897 if test "${gcc_cv_ld_mips_personality_relaxation+set}" = set; then :
25898 $as_echo_n "(cached) " >&6
25899 else
25900 gcc_cv_ld_mips_personality_relaxation=no
25901 if test $in_tree_ld = yes ; then
25902 if test "$gcc_cv_gld_major_version" -eq 2 \
25903 -a "$gcc_cv_gld_minor_version" -ge 21 \
25904 -o "$gcc_cv_gld_major_version" -gt 2; then
25905 gcc_cv_ld_mips_personality_relaxation=yes
25907 elif test x$gcc_cv_as != x \
25908 -a x$gcc_cv_ld != x \
25909 -a x$gcc_cv_readelf != x ; then
25910 cat > conftest.s <<EOF
25911 .cfi_startproc
25912 .cfi_personality 0x80,indirect_ptr
25913 .ent test
25914 test:
25916 .end test
25917 .cfi_endproc
25919 .section .data,"aw",@progbits
25920 indirect_ptr:
25921 .dc.a personality
25923 if $gcc_cv_as -KPIC -o conftest.o conftest.s > /dev/null 2>&1 \
25924 && $gcc_cv_ld -o conftest conftest.o -shared > /dev/null 2>&1; then
25925 if $gcc_cv_readelf -d conftest 2>&1 \
25926 | grep TEXTREL > /dev/null 2>&1; then
25928 elif $gcc_cv_readelf --relocs conftest 2>&1 \
25929 | grep 'R_MIPS_REL32 *$' > /dev/null 2>&1; then
25931 else
25932 gcc_cv_ld_mips_personality_relaxation=yes
25936 rm -f conftest.s conftest.o conftest
25938 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_mips_personality_relaxation" >&5
25939 $as_echo "$gcc_cv_ld_mips_personality_relaxation" >&6; }
25940 if test x$gcc_cv_ld_mips_personality_relaxation = xyes; then
25942 $as_echo "#define HAVE_LD_PERSONALITY_RELAXATION 1" >>confdefs.h
25946 esac
25948 # Mips and HP-UX need the GNU assembler.
25949 # Linux on IA64 might be able to use the Intel assembler.
25951 case "$target" in
25952 mips*-*-* | *-*-hpux* )
25953 if test x$gas_flag = xyes \
25954 || test x"$host" != x"$build" \
25955 || test ! -x "$gcc_cv_as" \
25956 || "$gcc_cv_as" -v < /dev/null 2>&1 | grep GNU > /dev/null; then
25958 else
25959 echo "*** This configuration requires the GNU assembler" >&2
25960 exit 1
25963 esac
25965 # ??? Not all targets support dwarf2 debug_line, even within a version
25966 # of gas. Moreover, we need to emit a valid instruction to trigger any
25967 # info to the output file. So, as supported targets are added to gas 2.11,
25968 # add some instruction here to (also) show we expect this might work.
25969 # ??? Once 2.11 is released, probably need to add first known working
25970 # version to the per-target configury.
25971 case "$cpu_type" in
25972 alpha | arm | avr | bfin | cris | i386 | m32c | m68k | microblaze | mips \
25973 | pa | rs6000 | score | sparc | spu | tilegx | tilepro | xstormy16 | xtensa)
25974 insn="nop"
25976 ia64 | s390)
25977 insn="nop 0"
25979 mmix)
25980 insn="swym 0"
25982 esac
25983 if test x"$insn" != x; then
25984 conftest_s="\
25985 .file 1 \"conftest.s\"
25986 .loc 1 3 0
25987 $insn"
25988 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for dwarf2 debug_line support" >&5
25989 $as_echo_n "checking assembler for dwarf2 debug_line support... " >&6; }
25990 if test "${gcc_cv_as_dwarf2_debug_line+set}" = set; then :
25991 $as_echo_n "(cached) " >&6
25992 else
25993 gcc_cv_as_dwarf2_debug_line=no
25994 if test $in_tree_gas = yes; then
25995 if test $in_tree_gas_is_elf = yes \
25996 && test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 11 \) \* 1000 + 0`
25997 then gcc_cv_as_dwarf2_debug_line=yes
25999 elif test x$gcc_cv_as != x; then
26000 $as_echo "$conftest_s" > conftest.s
26001 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
26002 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
26003 (eval $ac_try) 2>&5
26004 ac_status=$?
26005 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
26006 test $ac_status = 0; }; }
26007 then
26008 if test x$gcc_cv_objdump != x \
26009 && $gcc_cv_objdump -h conftest.o 2> /dev/null \
26010 | grep debug_line > /dev/null 2>&1; then
26011 gcc_cv_as_dwarf2_debug_line=yes
26013 else
26014 echo "configure: failed program was" >&5
26015 cat conftest.s >&5
26017 rm -f conftest.o conftest.s
26020 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_dwarf2_debug_line" >&5
26021 $as_echo "$gcc_cv_as_dwarf2_debug_line" >&6; }
26024 # The .debug_line file table must be in the exact order that
26025 # we specified the files, since these indices are also used
26026 # by DW_AT_decl_file. Approximate this test by testing if
26027 # the assembler bitches if the same index is assigned twice.
26028 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for buggy dwarf2 .file directive" >&5
26029 $as_echo_n "checking assembler for buggy dwarf2 .file directive... " >&6; }
26030 if test "${gcc_cv_as_dwarf2_file_buggy+set}" = set; then :
26031 $as_echo_n "(cached) " >&6
26032 else
26033 gcc_cv_as_dwarf2_file_buggy=no
26034 if test x$gcc_cv_as != x; then
26035 $as_echo ' .file 1 "foo.s"
26036 .file 1 "bar.s"' > conftest.s
26037 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
26038 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
26039 (eval $ac_try) 2>&5
26040 ac_status=$?
26041 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
26042 test $ac_status = 0; }; }
26043 then
26044 gcc_cv_as_dwarf2_file_buggy=yes
26045 else
26046 echo "configure: failed program was" >&5
26047 cat conftest.s >&5
26049 rm -f conftest.o conftest.s
26052 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_dwarf2_file_buggy" >&5
26053 $as_echo "$gcc_cv_as_dwarf2_file_buggy" >&6; }
26056 if test $gcc_cv_as_dwarf2_debug_line = yes \
26057 && test $gcc_cv_as_dwarf2_file_buggy = no; then
26059 $as_echo "#define HAVE_AS_DWARF2_DEBUG_LINE 1" >>confdefs.h
26063 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for --gdwarf2 option" >&5
26064 $as_echo_n "checking assembler for --gdwarf2 option... " >&6; }
26065 if test "${gcc_cv_as_gdwarf2_flag+set}" = set; then :
26066 $as_echo_n "(cached) " >&6
26067 else
26068 gcc_cv_as_gdwarf2_flag=no
26069 if test $in_tree_gas = yes; then
26070 if test $in_tree_gas_is_elf = yes \
26071 && test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 11 \) \* 1000 + 0`
26072 then gcc_cv_as_gdwarf2_flag=yes
26074 elif test x$gcc_cv_as != x; then
26075 $as_echo "$insn" > conftest.s
26076 if { ac_try='$gcc_cv_as $gcc_cv_as_flags --gdwarf2 -o conftest.o conftest.s >&5'
26077 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
26078 (eval $ac_try) 2>&5
26079 ac_status=$?
26080 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
26081 test $ac_status = 0; }; }
26082 then
26083 gcc_cv_as_gdwarf2_flag=yes
26084 else
26085 echo "configure: failed program was" >&5
26086 cat conftest.s >&5
26088 rm -f conftest.o conftest.s
26091 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_gdwarf2_flag" >&5
26092 $as_echo "$gcc_cv_as_gdwarf2_flag" >&6; }
26093 if test $gcc_cv_as_gdwarf2_flag = yes; then
26095 $as_echo "#define HAVE_AS_GDWARF2_DEBUG_FLAG 1" >>confdefs.h
26099 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for --gstabs option" >&5
26100 $as_echo_n "checking assembler for --gstabs option... " >&6; }
26101 if test "${gcc_cv_as_gstabs_flag+set}" = set; then :
26102 $as_echo_n "(cached) " >&6
26103 else
26104 gcc_cv_as_gstabs_flag=no
26105 if test $in_tree_gas = yes; then
26106 if test $in_tree_gas_is_elf = yes \
26107 && test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 11 \) \* 1000 + 0`
26108 then gcc_cv_as_gstabs_flag=yes
26110 elif test x$gcc_cv_as != x; then
26111 $as_echo "$insn" > conftest.s
26112 if { ac_try='$gcc_cv_as $gcc_cv_as_flags --gstabs -o conftest.o conftest.s >&5'
26113 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
26114 (eval $ac_try) 2>&5
26115 ac_status=$?
26116 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
26117 test $ac_status = 0; }; }
26118 then
26119 # The native Solaris 9/Intel assembler doesn't understand --gstabs
26120 # and warns about it, but still exits successfully. So check for
26121 # this.
26122 if { ac_try='$gcc_cv_as --gstabs -o conftest.o conftest.s 2>&1 | grep -i warning > /dev/null'
26123 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
26124 (eval $ac_try) 2>&5
26125 ac_status=$?
26126 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
26127 test $ac_status = 0; }; }
26128 then :
26129 else gcc_cv_as_gstabs_flag=yes
26131 else
26132 echo "configure: failed program was" >&5
26133 cat conftest.s >&5
26135 rm -f conftest.o conftest.s
26138 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_gstabs_flag" >&5
26139 $as_echo "$gcc_cv_as_gstabs_flag" >&6; }
26140 if test $gcc_cv_as_gstabs_flag = yes; then
26142 $as_echo "#define HAVE_AS_GSTABS_DEBUG_FLAG 1" >>confdefs.h
26146 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for --debug-prefix-map option" >&5
26147 $as_echo_n "checking assembler for --debug-prefix-map option... " >&6; }
26148 if test "${gcc_cv_as_debug_prefix_map_flag+set}" = set; then :
26149 $as_echo_n "(cached) " >&6
26150 else
26151 gcc_cv_as_debug_prefix_map_flag=no
26152 if test $in_tree_gas = yes; then
26153 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 18 \) \* 1000 + 0`
26154 then gcc_cv_as_debug_prefix_map_flag=yes
26156 elif test x$gcc_cv_as != x; then
26157 $as_echo "$insn" > conftest.s
26158 if { ac_try='$gcc_cv_as $gcc_cv_as_flags --debug-prefix-map /a=/b -o conftest.o conftest.s >&5'
26159 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
26160 (eval $ac_try) 2>&5
26161 ac_status=$?
26162 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
26163 test $ac_status = 0; }; }
26164 then
26165 gcc_cv_as_debug_prefix_map_flag=yes
26166 else
26167 echo "configure: failed program was" >&5
26168 cat conftest.s >&5
26170 rm -f conftest.o conftest.s
26173 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_debug_prefix_map_flag" >&5
26174 $as_echo "$gcc_cv_as_debug_prefix_map_flag" >&6; }
26175 if test $gcc_cv_as_debug_prefix_map_flag = yes; then
26177 $as_echo "#define HAVE_AS_DEBUG_PREFIX_MAP 1" >>confdefs.h
26182 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .lcomm with alignment" >&5
26183 $as_echo_n "checking assembler for .lcomm with alignment... " >&6; }
26184 if test "${gcc_cv_as_lcomm_with_alignment+set}" = set; then :
26185 $as_echo_n "(cached) " >&6
26186 else
26187 gcc_cv_as_lcomm_with_alignment=no
26188 if test x$gcc_cv_as != x; then
26189 $as_echo '.lcomm bar,4,16' > conftest.s
26190 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
26191 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
26192 (eval $ac_try) 2>&5
26193 ac_status=$?
26194 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
26195 test $ac_status = 0; }; }
26196 then
26197 gcc_cv_as_lcomm_with_alignment=yes
26198 else
26199 echo "configure: failed program was" >&5
26200 cat conftest.s >&5
26202 rm -f conftest.o conftest.s
26205 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_lcomm_with_alignment" >&5
26206 $as_echo "$gcc_cv_as_lcomm_with_alignment" >&6; }
26207 if test $gcc_cv_as_lcomm_with_alignment = yes; then
26209 $as_echo "#define HAVE_GAS_LCOMM_WITH_ALIGNMENT 1" >>confdefs.h
26213 # Check whether --enable-gnu-unique-object was given.
26214 if test "${enable_gnu_unique_object+set}" = set; then :
26215 enableval=$enable_gnu_unique_object; case $enable_gnu_unique_object in
26216 yes | no) ;;
26217 *) as_fn_error "'$enable_gnu_unique_object' is an invalid value for --enable-gnu-unique-object.
26218 Valid choices are 'yes' and 'no'." "$LINENO" 5 ;;
26219 esac
26220 else
26221 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for gnu_unique_object" >&5
26222 $as_echo_n "checking assembler for gnu_unique_object... " >&6; }
26223 if test "${gcc_cv_as_gnu_unique_object+set}" = set; then :
26224 $as_echo_n "(cached) " >&6
26225 else
26226 gcc_cv_as_gnu_unique_object=no
26227 if test $in_tree_gas = yes; then
26228 if test $in_tree_gas_is_elf = yes \
26229 && test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 19 \) \* 1000 + 52`
26230 then gcc_cv_as_gnu_unique_object=yes
26232 elif test x$gcc_cv_as != x; then
26233 $as_echo '.type foo, '$target_type_format_char'gnu_unique_object' > conftest.s
26234 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
26235 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
26236 (eval $ac_try) 2>&5
26237 ac_status=$?
26238 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
26239 test $ac_status = 0; }; }
26240 then
26241 gcc_cv_as_gnu_unique_object=yes
26242 else
26243 echo "configure: failed program was" >&5
26244 cat conftest.s >&5
26246 rm -f conftest.o conftest.s
26249 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_gnu_unique_object" >&5
26250 $as_echo "$gcc_cv_as_gnu_unique_object" >&6; }
26251 if test $gcc_cv_as_gnu_unique_object = yes; then
26252 # We need to unquote above to to use the definition from config.gcc.
26253 # Also check for ld.so support, i.e. glibc 2.11 or higher.
26254 if test x$host = x$build -a x$host = x$target &&
26255 ldd --version 2>/dev/null &&
26256 glibcver=`ldd --version 2>/dev/null | sed 's/.* //;q'`; then
26257 glibcmajor=`expr "$glibcver" : "\([0-9]*\)"`
26258 glibcminor=`expr "$glibcver" : "[2-9]*\.\([0-9]*\)"`
26259 glibcnum=`expr $glibcmajor \* 1000 + $glibcminor`
26260 if test "$glibcnum" -ge 2011 ; then
26261 enable_gnu_unique_object=yes
26267 if test x$enable_gnu_unique_object = xyes; then
26269 $as_echo "#define HAVE_GAS_GNU_UNIQUE_OBJECT 1" >>confdefs.h
26273 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for tolerance to line number 0" >&5
26274 $as_echo_n "checking assembler for tolerance to line number 0... " >&6; }
26275 if test "${gcc_cv_as_line_zero+set}" = set; then :
26276 $as_echo_n "(cached) " >&6
26277 else
26278 gcc_cv_as_line_zero=no
26279 if test $in_tree_gas = yes; then
26280 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 16 \) \* 1000 + 91`
26281 then gcc_cv_as_line_zero=yes
26283 elif test "x$gcc_cv_as" != x; then
26284 { echo '# 1 "test.s" 1'; echo '# 0 "" 2'; } > conftest.s
26285 if { ac_try='$gcc_cv_as -o conftest.o conftest.s >&5 2>conftest.out'
26286 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
26287 (eval $ac_try) 2>&5
26288 ac_status=$?
26289 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
26290 test $ac_status = 0; }; } &&
26291 test "x`cat conftest.out`" = x
26292 then
26293 gcc_cv_as_line_zero=yes
26294 else
26295 echo "configure: failed program was" >&5
26296 cat conftest.s >&5
26297 echo "configure: error output was" >&5
26298 cat conftest.out >&5
26300 rm -f conftest.o conftest.s conftest.out
26303 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_line_zero" >&5
26304 $as_echo "$gcc_cv_as_line_zero" >&6; }
26305 if test "x$gcc_cv_as_line_zero" = xyes; then
26307 $as_echo "#define HAVE_AS_LINE_ZERO 1" >>confdefs.h
26311 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker PT_GNU_EH_FRAME support" >&5
26312 $as_echo_n "checking linker PT_GNU_EH_FRAME support... " >&6; }
26313 gcc_cv_ld_eh_frame_hdr=no
26314 if test $in_tree_ld = yes ; then
26315 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 \
26316 && test $in_tree_ld_is_elf = yes; then
26317 gcc_cv_ld_eh_frame_hdr=yes
26319 elif test x$gcc_cv_ld != x; then
26320 if echo "$ld_ver" | grep GNU > /dev/null; then
26321 # Check if linker supports --eh-frame-hdr option
26322 if $gcc_cv_ld --help 2>/dev/null | grep eh-frame-hdr > /dev/null; then
26323 gcc_cv_ld_eh_frame_hdr=yes
26325 else
26326 case "$target" in
26327 *-*-solaris2*)
26328 # Sun ld has various bugs in .eh_frame_hdr support before version 1.2251.
26329 if test "$ld_vers_major" -gt 1 || test "$ld_vers_minor" -ge 2251; then
26330 gcc_cv_ld_eh_frame_hdr=yes
26333 esac
26337 if test x"$gcc_cv_ld_eh_frame_hdr" = xyes; then
26339 $as_echo "#define HAVE_LD_EH_FRAME_HDR 1" >>confdefs.h
26342 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_eh_frame_hdr" >&5
26343 $as_echo "$gcc_cv_ld_eh_frame_hdr" >&6; }
26345 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker position independent executable support" >&5
26346 $as_echo_n "checking linker position independent executable support... " >&6; }
26347 gcc_cv_ld_pie=no
26348 if test $in_tree_ld = yes ; then
26349 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 \
26350 && test $in_tree_ld_is_elf = yes; then
26351 gcc_cv_ld_pie=yes
26353 elif test x$gcc_cv_ld != x; then
26354 # Check if linker supports -pie option
26355 if $gcc_cv_ld --help 2>/dev/null | grep -- -pie > /dev/null; then
26356 gcc_cv_ld_pie=yes
26359 if test x"$gcc_cv_ld_pie" = xyes; then
26361 $as_echo "#define HAVE_LD_PIE 1" >>confdefs.h
26364 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_pie" >&5
26365 $as_echo "$gcc_cv_ld_pie" >&6; }
26367 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker EH-compatible garbage collection of sections" >&5
26368 $as_echo_n "checking linker EH-compatible garbage collection of sections... " >&6; }
26369 gcc_cv_ld_eh_gc_sections=no
26370 if test $in_tree_ld = yes ; then
26371 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 \
26372 && test $in_tree_ld_is_elf = yes; then
26373 gcc_cv_ld_eh_gc_sections=yes
26375 elif test x$gcc_cv_as != x -a x$gcc_cv_ld != x -a x$gcc_cv_objdump != x ; then
26376 cat > conftest.s <<EOF
26377 .section .text
26378 .globl _start
26379 .type _start, @function
26380 _start:
26381 .long foo
26382 .size _start, .-_start
26383 .section .text.foo,"ax",@progbits
26384 .type foo, @function
26385 foo:
26386 .long 0
26387 .size foo, .-foo
26388 .section .gcc_except_table.foo,"a",@progbits
26389 .L0:
26390 .long 0
26391 .section .eh_frame,"a",@progbits
26392 .long .L0
26394 if $gcc_cv_as -o conftest.o conftest.s > /dev/null 2>&1; then
26395 if $gcc_cv_ld -o conftest conftest.o --entry=_start --gc-sections 2>&1 \
26396 | grep "gc-sections option ignored" > /dev/null; then
26397 gcc_cv_ld_eh_gc_sections=no
26398 elif $gcc_cv_objdump -h conftest 2> /dev/null \
26399 | grep gcc_except_table > /dev/null; then
26400 gcc_cv_ld_eh_gc_sections=yes
26401 # If no COMDAT groups, the compiler will emit .gnu.linkonce.t. sections.
26402 if test x$gcc_cv_as_comdat_group != xyes; then
26403 gcc_cv_ld_eh_gc_sections=no
26404 cat > conftest.s <<EOF
26405 .section .text
26406 .globl _start
26407 .type _start, @function
26408 _start:
26409 .long foo
26410 .size _start, .-_start
26411 .section .gnu.linkonce.t.foo,"ax",@progbits
26412 .type foo, @function
26413 foo:
26414 .long 0
26415 .size foo, .-foo
26416 .section .gcc_except_table.foo,"a",@progbits
26417 .L0:
26418 .long 0
26419 .section .eh_frame,"a",@progbits
26420 .long .L0
26422 if $gcc_cv_as -o conftest.o conftest.s > /dev/null 2>&1; then
26423 if $gcc_cv_ld -o conftest conftest.o --entry=_start --gc-sections 2>&1 \
26424 | grep "gc-sections option ignored" > /dev/null; then
26425 gcc_cv_ld_eh_gc_sections=no
26426 elif $gcc_cv_objdump -h conftest 2> /dev/null \
26427 | grep gcc_except_table > /dev/null; then
26428 gcc_cv_ld_eh_gc_sections=yes
26434 rm -f conftest.s conftest.o conftest
26436 case "$target" in
26437 hppa*-*-linux*)
26438 # ??? This apparently exposes a binutils bug with PC-relative relocations.
26439 gcc_cv_ld_eh_gc_sections=no
26441 esac
26442 if test x$gcc_cv_ld_eh_gc_sections = xyes; then
26444 $as_echo "#define HAVE_LD_EH_GC_SECTIONS 1" >>confdefs.h
26447 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_eh_gc_sections" >&5
26448 $as_echo "$gcc_cv_ld_eh_gc_sections" >&6; }
26450 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker EH garbage collection of sections bug" >&5
26451 $as_echo_n "checking linker EH garbage collection of sections bug... " >&6; }
26452 gcc_cv_ld_eh_gc_sections_bug=no
26453 if test $in_tree_ld = yes ; then
26454 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 \
26455 && test $in_tree_ld_is_elf = yes; then
26456 gcc_cv_ld_eh_gc_sections_bug=yes
26458 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
26459 gcc_cv_ld_eh_gc_sections_bug=yes
26460 cat > conftest.s <<EOF
26461 .section .text
26462 .globl _start
26463 .type _start, @function
26464 _start:
26465 .long foo
26466 .size _start, .-_start
26467 .section .text.startup.foo,"ax",@progbits
26468 .type foo, @function
26469 foo:
26470 .long 0
26471 .size foo, .-foo
26472 .section .gcc_except_table.foo,"a",@progbits
26473 .L0:
26474 .long 0
26475 .section .eh_frame,"a",@progbits
26476 .long .L0
26478 if $gcc_cv_as -o conftest.o conftest.s > /dev/null 2>&1; then
26479 if $gcc_cv_ld -o conftest conftest.o --entry=_start --gc-sections 2>&1 \
26480 | grep "gc-sections option ignored" > /dev/null; then
26482 elif $gcc_cv_objdump -h conftest 2> /dev/null \
26483 | grep gcc_except_table > /dev/null; then
26484 gcc_cv_ld_eh_gc_sections_bug=no
26487 rm -f conftest.s conftest.o conftest
26489 if test x$gcc_cv_ld_eh_gc_sections_bug = xyes; then
26491 $as_echo "#define HAVE_LD_EH_GC_SECTIONS_BUG 1" >>confdefs.h
26494 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_eh_gc_sections_bug" >&5
26495 $as_echo "$gcc_cv_ld_eh_gc_sections_bug" >&6; }
26497 # --------
26498 # UNSORTED
26499 # --------
26501 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker --as-needed support" >&5
26502 $as_echo_n "checking linker --as-needed support... " >&6; }
26503 if test "${gcc_cv_ld_as_needed+set}" = set; then :
26504 $as_echo_n "(cached) " >&6
26505 else
26506 gcc_cv_ld_as_needed=no
26507 if test $in_tree_ld = yes ; then
26508 if test "$gcc_cv_gld_major_version" -eq 2 -a "$gcc_cv_gld_minor_version" -ge 16 -o "$gcc_cv_gld_major_version" -gt 2 \
26509 && test $in_tree_ld_is_elf = yes; then
26510 gcc_cv_ld_as_needed=yes
26512 elif test x$gcc_cv_ld != x; then
26513 # Check if linker supports --as-needed and --no-as-needed options
26514 if $gcc_cv_ld --help 2>/dev/null | grep as-needed > /dev/null; then
26515 gcc_cv_ld_as_needed=yes
26520 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_as_needed" >&5
26521 $as_echo "$gcc_cv_ld_as_needed" >&6; }
26522 if test x"$gcc_cv_ld_as_needed" = xyes; then
26524 $as_echo "#define HAVE_LD_AS_NEEDED 1" >>confdefs.h
26528 case "$target:$tm_file" in
26529 powerpc64-*-freebsd* | powerpc64*-*-linux* | powerpc*-*-linux*rs6000/biarch64.h*)
26530 case "$target" in
26531 *le-*-linux*)
26532 emul_name="-melf64lppc"
26534 *-*-linux*)
26535 emul_name="-melf64ppc"
26537 *-*-freebsd*)
26538 emul_name="-melf64ppc_fbsd"
26540 esac
26541 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker support for omitting dot symbols" >&5
26542 $as_echo_n "checking linker support for omitting dot symbols... " >&6; }
26543 if test "${gcc_cv_ld_no_dot_syms+set}" = set; then :
26544 $as_echo_n "(cached) " >&6
26545 else
26546 gcc_cv_ld_no_dot_syms=no
26547 if test x"$ld_is_gold" = xyes; then
26548 gcc_cv_ld_no_dot_syms=yes
26549 elif test $in_tree_ld = yes ; then
26550 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
26551 gcc_cv_ld_no_dot_syms=yes
26553 elif test x$gcc_cv_as != x -a x$gcc_cv_ld != x ; then
26554 cat > conftest1.s <<EOF
26555 .text
26556 bl .foo
26558 cat > conftest2.s <<EOF
26559 .section ".opd","aw"
26560 .align 3
26561 .globl foo
26562 .type foo,@function
26563 foo:
26564 .quad .LEfoo,.TOC.@tocbase,0
26565 .text
26566 .LEfoo:
26568 .size foo,.-.LEfoo
26570 if $gcc_cv_as -a64 -o conftest1.o conftest1.s > /dev/null 2>&1 \
26571 && $gcc_cv_as -a64 -o conftest2.o conftest2.s > /dev/null 2>&1 \
26572 && $gcc_cv_ld $emul_name -o conftest conftest1.o conftest2.o > /dev/null 2>&1; then
26573 gcc_cv_ld_no_dot_syms=yes
26575 rm -f conftest conftest1.o conftest2.o conftest1.s conftest2.s
26579 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_no_dot_syms" >&5
26580 $as_echo "$gcc_cv_ld_no_dot_syms" >&6; }
26581 if test x"$gcc_cv_ld_no_dot_syms" = xyes; then
26583 $as_echo "#define HAVE_LD_NO_DOT_SYMS 1" >>confdefs.h
26587 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker large toc support" >&5
26588 $as_echo_n "checking linker large toc support... " >&6; }
26589 if test "${gcc_cv_ld_large_toc+set}" = set; then :
26590 $as_echo_n "(cached) " >&6
26591 else
26592 gcc_cv_ld_large_toc=no
26593 if test x"$ld_is_gold" = xyes; then
26594 gcc_cv_ld_large_toc=yes
26595 elif test $in_tree_ld = yes ; then
26596 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
26597 gcc_cv_ld_large_toc=yes
26599 elif test x$gcc_cv_as != x -a x$gcc_cv_ld != x ; then
26600 cat > conftest.s <<EOF
26601 .section ".tbss","awT",@nobits
26602 .align 3
26603 ie0: .space 8
26604 .global _start
26605 .text
26606 _start:
26607 addis 9,13,ie0@got@tprel@ha
26608 ld 9,ie0@got@tprel@l(9)
26610 if $gcc_cv_as -a64 -o conftest.o conftest.s > /dev/null 2>&1 \
26611 && $gcc_cv_ld $emul_name --no-toc-sort -o conftest conftest.o > /dev/null 2>&1; then
26612 gcc_cv_ld_large_toc=yes
26614 rm -f conftest conftest.o conftest.s
26618 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_large_toc" >&5
26619 $as_echo "$gcc_cv_ld_large_toc" >&6; }
26620 if test x"$gcc_cv_ld_large_toc" = xyes; then
26622 $as_echo "#define HAVE_LD_LARGE_TOC 1" >>confdefs.h
26626 esac
26628 case "$target" in
26629 *-*-aix*)
26630 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker large toc support" >&5
26631 $as_echo_n "checking linker large toc support... " >&6; }
26632 if test "${gcc_cv_ld_large_toc+set}" = set; then :
26633 $as_echo_n "(cached) " >&6
26634 else
26635 gcc_cv_ld_large_toc=no
26636 if test x$gcc_cv_as != x ; then
26637 cat > conftest.s <<EOF
26638 .toc
26639 LC..1:
26640 .tc a[TC],a[RW]
26641 .extern a[RW]
26642 .csect .text[PR]
26643 .largetoctest:
26644 addis 9,LC..1@u(2)
26645 ld 3,LC..1@l(9)
26647 if $gcc_cv_as -a64 -o conftest.o conftest.s > /dev/null 2>&1; then
26648 gcc_cv_ld_large_toc=yes
26650 rm -f conftest conftest.o conftest.s
26654 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_large_toc" >&5
26655 $as_echo "$gcc_cv_ld_large_toc" >&6; }
26656 if test x"$gcc_cv_ld_large_toc" = xyes; then
26658 $as_echo "#define HAVE_LD_LARGE_TOC 1" >>confdefs.h
26662 esac
26664 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker --build-id support" >&5
26665 $as_echo_n "checking linker --build-id support... " >&6; }
26666 if test "${gcc_cv_ld_buildid+set}" = set; then :
26667 $as_echo_n "(cached) " >&6
26668 else
26669 gcc_cv_ld_buildid=no
26670 if test $in_tree_ld = yes ; then
26671 if test "$gcc_cv_gld_major_version" -eq 2 -a \
26672 "$gcc_cv_gld_minor_version" -ge 18 -o \
26673 "$gcc_cv_gld_major_version" -gt 2 \
26674 && test $in_tree_ld_is_elf = yes; then
26675 gcc_cv_ld_buildid=yes
26677 elif test x$gcc_cv_ld != x; then
26678 if $gcc_cv_ld --help 2>/dev/null | grep build-id > /dev/null; then
26679 gcc_cv_ld_buildid=yes
26683 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_buildid" >&5
26684 $as_echo "$gcc_cv_ld_buildid" >&6; }
26685 if test x"$gcc_cv_ld_buildid" = xyes; then
26687 $as_echo "#define HAVE_LD_BUILDID 1" >>confdefs.h
26691 # Check whether --enable-linker-build-id was given.
26692 if test "${enable_linker_build_id+set}" = set; then :
26693 enableval=$enable_linker_build_id;
26694 else
26695 enable_linker_build_id=no
26699 if test x"$enable_linker_build_id" = xyes; then
26700 if test x"$gcc_cv_ld_buildid" = xyes; then
26702 $as_echo "#define ENABLE_LD_BUILDID 1" >>confdefs.h
26704 else
26705 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: --build-id is not supported by your linker; --enable-linker-build-id ignored" >&5
26706 $as_echo "$as_me: WARNING: --build-id is not supported by your linker; --enable-linker-build-id ignored" >&2;}
26710 # In binutils 2.21, GNU ld gained support for new emulations fully
26711 # supporting the Solaris 2 ABI. Detect their presence in the linker used.
26712 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker *_sol2 emulation support" >&5
26713 $as_echo_n "checking linker *_sol2 emulation support... " >&6; }
26714 if test "${gcc_cv_ld_sol2_emulation+set}" = set; then :
26715 $as_echo_n "(cached) " >&6
26716 else
26717 gcc_cv_ld_sol2_emulation=no
26718 if test $in_tree_ld = yes ; then
26719 if test "$gcc_cv_gld_major_version" -eq 2 -a \
26720 "$gcc_cv_gld_minor_version" -ge 21 -o \
26721 "$gcc_cv_gld_major_version" -gt 2 \
26722 && test $in_tree_ld_is_elf = yes; then
26723 gcc_cv_ld_sol2_emulation=yes
26725 elif test x$gcc_cv_ld != x; then
26726 if $gcc_cv_ld -V 2>/dev/null | sed -e '1,/Supported emulations/d;q' | \
26727 grep _sol2 > /dev/null; then
26728 gcc_cv_ld_sol2_emulation=yes
26732 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_sol2_emulation" >&5
26733 $as_echo "$gcc_cv_ld_sol2_emulation" >&6; }
26734 if test x"$gcc_cv_ld_sol2_emulation" = xyes; then
26736 $as_echo "#define HAVE_LD_SOL2_EMULATION 1" >>confdefs.h
26740 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker --sysroot support" >&5
26741 $as_echo_n "checking linker --sysroot support... " >&6; }
26742 if test "${gcc_cv_ld_sysroot+set}" = set; then :
26743 $as_echo_n "(cached) " >&6
26744 else
26745 gcc_cv_ld_sysroot=no
26746 if test $in_tree_ld = yes ; then
26747 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
26748 gcc_cv_ld_sysroot=yes
26750 elif test x$gcc_cv_ld != x; then
26751 if $gcc_cv_ld --help 2>/dev/null | grep sysroot > /dev/null; then
26752 gcc_cv_ld_sysroot=yes
26756 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_sysroot" >&5
26757 $as_echo "$gcc_cv_ld_sysroot" >&6; }
26758 if test x"$gcc_cv_ld_sysroot" = xyes; then
26760 $as_echo "#define HAVE_LD_SYSROOT 1" >>confdefs.h
26764 if test x$with_sysroot = x && test x$host = x$target \
26765 && test "$prefix" != "/usr" && test "x$prefix" != "x$local_prefix" \
26766 && test "$prefix" != "NONE"; then
26768 cat >>confdefs.h <<_ACEOF
26769 #define PREFIX_INCLUDE_DIR "$prefix/include"
26770 _ACEOF
26774 if test x$host != x$target || test "x$TARGET_SYSTEM_ROOT" != x; then
26775 if test "x$with_headers" != x; then
26776 target_header_dir=$with_headers
26777 elif test "x$with_sysroot" = x; then
26778 target_header_dir="${test_exec_prefix}/${target_noncanonical}/sys-include"
26779 elif test "x$with_build_sysroot" != "x"; then
26780 target_header_dir="${with_build_sysroot}${native_system_header_dir}"
26781 elif test "x$with_sysroot" = xyes; then
26782 target_header_dir="${test_exec_prefix}/${target_noncanonical}/sys-root${native_system_header_dir}"
26783 else
26784 target_header_dir="${with_sysroot}${native_system_header_dir}"
26786 else
26787 target_header_dir=${native_system_header_dir}
26790 # Test for stack protector support in target C library.
26791 { $as_echo "$as_me:${as_lineno-$LINENO}: checking __stack_chk_fail in target C library" >&5
26792 $as_echo_n "checking __stack_chk_fail in target C library... " >&6; }
26793 if test "${gcc_cv_libc_provides_ssp+set}" = set; then :
26794 $as_echo_n "(cached) " >&6
26795 else
26796 gcc_cv_libc_provides_ssp=no
26797 case "$target" in
26798 *-*-linux* | *-*-kfreebsd*-gnu | *-*-knetbsd*-gnu)
26799 # glibc 2.4 and later provides __stack_chk_fail and
26800 # either __stack_chk_guard, or TLS access to stack guard canary.
26801 if test -f $target_header_dir/features.h \
26802 && $EGREP '^[ ]*#[ ]*define[ ]+__GNU_LIBRARY__[ ]+([1-9][0-9]|[6-9])' \
26803 $target_header_dir/features.h > /dev/null; then
26804 if $EGREP '^[ ]*#[ ]*define[ ]+__GLIBC__[ ]+([1-9][0-9]|[3-9])' \
26805 $target_header_dir/features.h > /dev/null; then
26806 gcc_cv_libc_provides_ssp=yes
26807 elif $EGREP '^[ ]*#[ ]*define[ ]+__GLIBC__[ ]+2' \
26808 $target_header_dir/features.h > /dev/null \
26809 && $EGREP '^[ ]*#[ ]*define[ ]+__GLIBC_MINOR__[ ]+([1-9][0-9]|[4-9])' \
26810 $target_header_dir/features.h > /dev/null; then
26811 gcc_cv_libc_provides_ssp=yes
26812 elif $EGREP '^[ ]*#[ ]*define[ ]+__UCLIBC__[ ]+1' \
26813 $target_header_dir/features.h > /dev/null && \
26814 test -f $target_header_dir/bits/uClibc_config.h && \
26815 $EGREP '^[ ]*#[ ]*define[ ]+__UCLIBC_HAS_SSP__[ ]+1' \
26816 $target_header_dir/bits/uClibc_config.h > /dev/null; then
26817 gcc_cv_libc_provides_ssp=yes
26819 # all versions of Bionic support stack protector
26820 elif test -f $target_header_dir/sys/cdefs.h \
26821 && $EGREP '^[ ]*#[ ]*define[ ]+__BIONIC__[ ]+1' \
26822 $target_header_dir/sys/cdefs.h > /dev/null; then
26823 gcc_cv_libc_provides_ssp=yes
26826 *-*-gnu*)
26827 # Avoid complicated tests (see
26828 # <http://gcc.gnu.org/ml/gcc/2008-10/msg00130.html>) and for now
26829 # simply assert that glibc does provide this, which is true for all
26830 # realistically usable GNU/Hurd configurations.
26831 gcc_cv_libc_provides_ssp=yes;;
26832 *-*-darwin* | *-*-freebsd*)
26833 ac_fn_c_check_func "$LINENO" "__stack_chk_fail" "ac_cv_func___stack_chk_fail"
26834 if test "x$ac_cv_func___stack_chk_fail" = x""yes; then :
26835 gcc_cv_libc_provides_ssp=yes
26836 else
26837 echo "no __stack_chk_fail on this target"
26841 *) gcc_cv_libc_provides_ssp=no ;;
26842 esac
26844 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_libc_provides_ssp" >&5
26845 $as_echo "$gcc_cv_libc_provides_ssp" >&6; }
26847 if test x$gcc_cv_libc_provides_ssp = xyes; then
26849 $as_echo "#define TARGET_LIBC_PROVIDES_SSP 1" >>confdefs.h
26853 # Test for <sys/sdt.h> on the target.
26855 { $as_echo "$as_me:${as_lineno-$LINENO}: checking sys/sdt.h in the target C library" >&5
26856 $as_echo_n "checking sys/sdt.h in the target C library... " >&6; }
26857 have_sys_sdt_h=no
26858 if test -f $target_header_dir/sys/sdt.h; then
26859 have_sys_sdt_h=yes
26861 $as_echo "#define HAVE_SYS_SDT_H 1" >>confdefs.h
26864 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_sys_sdt_h" >&5
26865 $as_echo "$have_sys_sdt_h" >&6; }
26867 # Check if TFmode long double should be used by default or not.
26868 # Some glibc targets used DFmode long double, but with glibc 2.4
26869 # and later they can use TFmode.
26870 case "$target" in
26871 powerpc*-*-linux* | \
26872 sparc*-*-linux* | \
26873 s390*-*-linux* | \
26874 alpha*-*-linux*)
26876 # Check whether --with-long-double-128 was given.
26877 if test "${with_long_double_128+set}" = set; then :
26878 withval=$with_long_double_128; gcc_cv_target_ldbl128="$with_long_double_128"
26879 else
26880 gcc_cv_target_ldbl128=no
26881 grep '^[ ]*#[ ]*define[ ][ ]*__LONG_DOUBLE_MATH_OPTIONAL' \
26882 $target_header_dir/bits/wordsize.h > /dev/null 2>&1 \
26883 && gcc_cv_target_ldbl128=yes
26888 esac
26889 if test x$gcc_cv_target_ldbl128 = xyes; then
26891 $as_echo "#define TARGET_DEFAULT_LONG_DOUBLE_128 1" >>confdefs.h
26895 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dl_iterate_phdr in target C library" >&5
26896 $as_echo_n "checking dl_iterate_phdr in target C library... " >&6; }
26897 gcc_cv_target_dl_iterate_phdr=unknown
26898 case "$target" in
26899 # Restrict to Solaris 11+. While most of the Solaris 11 linker changes
26900 # were backported to Solaris 10 Update 10, dl_iterate_phdr only lives in
26901 # libdl there, both complicating its use and breaking compatibility
26902 # between Solaris 10 updates.
26903 *-*-solaris2.1[1-9]*)
26904 # <link.h> needs both a dl_iterate_phdr declaration and support for
26905 # compilation with largefile support.
26906 if grep dl_iterate_phdr $target_header_dir/link.h > /dev/null 2>&1 \
26907 && grep 'large file capable' $target_header_dir/link.h > /dev/null 2>&1; then
26908 gcc_cv_target_dl_iterate_phdr=yes
26909 else
26910 gcc_cv_target_dl_iterate_phdr=no
26913 esac
26915 if test x$gcc_cv_target_dl_iterate_phdr = xyes; then
26917 $as_echo "#define TARGET_DL_ITERATE_PHDR 1" >>confdefs.h
26920 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_target_dl_iterate_phdr" >&5
26921 $as_echo "$gcc_cv_target_dl_iterate_phdr" >&6; }
26923 # We no longer support different GC mechanisms. Emit an error if
26924 # the user configures with --with-gc.
26926 # Check whether --with-gc was given.
26927 if test "${with_gc+set}" = set; then :
26928 withval=$with_gc; as_fn_error "Configure option --with-gc is only supported up to GCC 4.7.x" "$LINENO" 5
26932 # Libraries to use on the host. This will normally be set by the top
26933 # level Makefile. Here we simply capture the value for our Makefile.
26934 if test -z "${HOST_LIBS+set}"; then
26935 HOST_LIBS=
26939 # Use the system's zlib library.
26940 zlibdir=-L../zlib
26941 zlibinc="-I\$(srcdir)/../zlib"
26943 # Check whether --with-system-zlib was given.
26944 if test "${with_system_zlib+set}" = set; then :
26945 withval=$with_system_zlib; zlibdir=
26946 zlibinc=
26954 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable maintainer-specific portions of Makefiles" >&5
26955 $as_echo_n "checking whether to enable maintainer-specific portions of Makefiles... " >&6; }
26956 # Check whether --enable-maintainer-mode was given.
26957 if test "${enable_maintainer_mode+set}" = set; then :
26958 enableval=$enable_maintainer_mode; maintainer_mode=$enableval
26959 else
26960 maintainer_mode=no
26964 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $maintainer_mode" >&5
26965 $as_echo "$maintainer_mode" >&6; }
26967 if test "$maintainer_mode" = "yes"; then
26968 MAINT=''
26969 else
26970 MAINT='#'
26973 # --------------
26974 # Language hooks
26975 # --------------
26977 # Make empty files to contain the specs and options for each language.
26978 # Then add #include lines to for a compiler that has specs and/or options.
26980 subdirs=
26981 lang_opt_files=
26982 lang_specs_files=
26983 lang_tree_files=
26984 # These (without "all_") are set in each config-lang.in.
26985 # `language' must be a single word so is spelled singularly.
26986 all_languages=
26987 all_compilers=
26988 all_outputs='Makefile'
26989 # List of language makefile fragments.
26990 all_lang_makefrags=
26991 # Additional files for gengtype
26992 all_gtfiles="$target_gtfiles"
26994 # These are the languages that are set in --enable-languages,
26995 # and are available in the GCC tree.
26996 all_selected_languages=
26998 # Add the language fragments.
26999 # Languages are added via two mechanisms. Some information must be
27000 # recorded in makefile variables, these are defined in config-lang.in.
27001 # We accumulate them and plug them into the main Makefile.
27002 # The other mechanism is a set of hooks for each of the main targets
27003 # like `clean', `install', etc.
27005 language_hooks="Make-hooks"
27007 for lang in ${srcdir}/*/config-lang.in
27009 test "$lang" = "${srcdir}/*/config-lang.in" && continue
27011 lang_alias=`sed -n -e 's,^language=['"'"'"'"]\(.*\)["'"'"'"'].*$,\1,p' -e 's,^language=\([^ ]*\).*$,\1,p' $lang`
27012 if test "x$lang_alias" = x
27013 then
27014 echo "$lang doesn't set \$language." 1>&2
27015 exit 1
27017 subdir="`echo $lang | sed -e 's,^.*/\([^/]*\)/config-lang.in$,\1,'`"
27018 subdirs="$subdirs $subdir"
27020 # $gcc_subdir is where the gcc integration files are to be found
27021 # for a language, both for internal compiler purposes (compiler
27022 # sources implementing front-end to GCC tree converters), and for
27023 # build infrastructure purposes (Make-lang.in, etc.)
27025 # This will be <subdir> (relative to $srcdir) if a line like
27026 # gcc_subdir="<subdir>" or gcc_subdir=<subdir>
27027 # is found in <langdir>/config-lang.in, and will remain <langdir>
27028 # otherwise.
27030 # Except for the language alias (fetched above), the regular
27031 # "config-lang.in" contents are always retrieved from $gcc_subdir,
27032 # so a <langdir>/config-lang.in setting gcc_subdir typically sets
27033 # only this and the language alias.
27035 gcc_subdir=`sed -n -e 's,^gcc_subdir=['"'"'"'"]\(.*\)["'"'"'"'].*$,\1,p' -e 's,^gcc_subdir=\([^ ]*\).*$,\1,p' $lang`
27036 if [ "$gcc_subdir" = "" ]; then
27037 gcc_subdir="$subdir"
27040 case ",$enable_languages," in
27041 *,$lang_alias,*)
27042 all_selected_languages="$all_selected_languages $lang_alias"
27043 if test -f $srcdir/$gcc_subdir/lang-specs.h; then
27044 lang_specs_files="$lang_specs_files $srcdir/$gcc_subdir/lang-specs.h"
27047 esac
27049 language=
27050 boot_language=
27051 compilers=
27052 outputs=
27053 gtfiles=
27054 subdir_requires=
27055 . ${srcdir}/$gcc_subdir/config-lang.in
27056 if test "x$language" = x
27057 then
27058 echo "${srcdir}/$gcc_subdir/config-lang.in doesn't set \$language." 1>&2
27059 exit 1
27062 ok=:
27063 case ",$enable_languages," in
27064 *,$lang_alias,*) ;;
27066 for i in $subdir_requires; do
27067 test -f "${srcdir}/$i/config-lang.in" && continue
27068 ok=false
27069 break
27070 done
27072 esac
27073 $ok || continue
27075 all_lang_makefrags="$all_lang_makefrags \$(srcdir)/$gcc_subdir/Make-lang.in"
27076 if test -f $srcdir/$gcc_subdir/lang.opt; then
27077 lang_opt_files="$lang_opt_files $srcdir/$gcc_subdir/lang.opt"
27078 all_opt_files="$all_opt_files $srcdir/$gcc_subdir/lang.opt"
27080 if test -f $srcdir/$gcc_subdir/$subdir-tree.def; then
27081 lang_tree_files="$lang_tree_files $srcdir/$gcc_subdir/$subdir-tree.def"
27083 all_languages="$all_languages $language"
27084 all_compilers="$all_compilers $compilers"
27085 all_outputs="$all_outputs $outputs"
27086 all_gtfiles="$all_gtfiles [$subdir] $gtfiles"
27087 case ",$enable_languages," in
27088 *,lto,*)
27090 $as_echo "#define ENABLE_LTO 1" >>confdefs.h
27092 enable_lto=yes
27095 *) ;;
27096 esac
27097 done
27099 check_languages=
27100 for language in $all_selected_languages
27102 check_languages="$check_languages check-$language"
27103 done
27105 # We link each language in with a set of hooks, reached indirectly via
27106 # lang.${target}. Only do so for selected languages.
27108 rm -f Make-hooks
27109 touch Make-hooks
27110 target_list="all.cross start.encap rest.encap tags \
27111 install-common install-man install-info install-pdf install-html dvi \
27112 pdf html uninstall info man srcextra srcman srcinfo \
27113 mostlyclean clean distclean maintainer-clean install-plugin"
27115 for t in $target_list
27118 for lang in $all_selected_languages
27120 x="$x $lang.$t"
27121 done
27122 echo "lang.$t: $x" >> Make-hooks
27123 done
27125 # --------
27126 # Option include files
27127 # --------
27129 ${AWK} -f $srcdir/opt-include.awk $all_opt_files > option-includes.mk
27130 option_includes="option-includes.mk"
27133 # --------
27134 # UNSORTED
27135 # --------
27137 # Create .gdbinit.
27139 echo "dir ." > .gdbinit
27140 echo "dir ${srcdir}" >> .gdbinit
27141 if test x$gdb_needs_out_file_path = xyes
27142 then
27143 echo "dir ${srcdir}/config/"`dirname ${out_file}` >> .gdbinit
27145 if test "x$subdirs" != x; then
27146 for s in $subdirs
27148 echo "dir ${srcdir}/$s" >> .gdbinit
27149 done
27151 echo "source ${srcdir}/gdbinit.in" >> .gdbinit
27153 gcc_tooldir='$(libsubdir)/$(libsubdir_to_prefix)$(target_noncanonical)'
27157 # Find a directory in which to install a shared libgcc.
27159 # Check whether --enable-version-specific-runtime-libs was given.
27160 if test "${enable_version_specific_runtime_libs+set}" = set; then :
27161 enableval=$enable_version_specific_runtime_libs;
27165 # Set default prefix canonicalization.
27167 # Check whether --enable-canonical-prefixes was given.
27168 if test "${enable_canonical_prefixes+set}" = set; then :
27169 enableval=$enable_canonical_prefixes;
27170 else
27171 enable_canonical_prefixes=yes
27174 if test x"$enable_canonical_prefixes" = xyes; then
27176 $as_echo "#define ENABLE_CANONICAL_PREFIXES 1" >>confdefs.h
27180 # Substitute configuration variables
27243 # Echo link setup.
27244 if test x${build} = x${host} ; then
27245 if test x${host} = x${target} ; then
27246 echo "Links are now set up to build a native compiler for ${target}." 1>&2
27247 else
27248 echo "Links are now set up to build a cross-compiler" 1>&2
27249 echo " from ${host} to ${target}." 1>&2
27251 else
27252 if test x${host} = x${target} ; then
27253 echo "Links are now set up to build (on ${build}) a native compiler" 1>&2
27254 echo " for ${target}." 1>&2
27255 else
27256 echo "Links are now set up to build (on ${build}) a cross-compiler" 1>&2
27257 echo " from ${host} to ${target}." 1>&2
27269 if test "x${CLOOGLIBS}" != "x" ; then
27271 $as_echo "#define HAVE_cloog 1" >>confdefs.h
27275 # Check for plugin support
27276 # Check whether --enable-plugin was given.
27277 if test "${enable_plugin+set}" = set; then :
27278 enableval=$enable_plugin; enable_plugin=$enableval
27279 else
27280 enable_plugin=yes; default_plugin=yes
27284 pluginlibs=
27286 case "${host}" in
27287 *-*-darwin*)
27288 if test x$build = x$host; then
27289 export_sym_check="nm${exeext} -g"
27290 elif test x$host = x$target; then
27291 export_sym_check="$gcc_cv_nm -g"
27292 else
27293 export_sym_check=
27297 if test x$build = x$host; then
27298 export_sym_check="objdump${exeext} -T"
27299 elif test x$host = x$target; then
27300 export_sym_check="$gcc_cv_objdump -T"
27301 else
27302 export_sym_check=
27305 esac
27307 if test x"$enable_plugin" = x"yes"; then
27309 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for exported symbols" >&5
27310 $as_echo_n "checking for exported symbols... " >&6; }
27311 if test "x$export_sym_check" != x; then
27312 echo "int main() {return 0;} int foobar() {return 0;}" > conftest.c
27313 ${CC} ${CFLAGS} ${LDFLAGS} conftest.c -o conftest > /dev/null 2>&1
27314 if $export_sym_check conftest | grep foobar > /dev/null; then
27315 : # No need to use a flag
27316 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
27317 $as_echo "yes" >&6; }
27318 else
27319 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
27320 $as_echo "yes" >&6; }
27321 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -rdynamic" >&5
27322 $as_echo_n "checking for -rdynamic... " >&6; }
27323 ${CC} ${CFLAGS} ${LDFLAGS} -rdynamic conftest.c -o conftest > /dev/null 2>&1
27324 if $export_sym_check conftest | grep foobar > /dev/null; then
27325 plugin_rdynamic=yes
27326 pluginlibs="-rdynamic"
27327 else
27328 plugin_rdynamic=no
27329 enable_plugin=no
27331 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $plugin_rdynamic" >&5
27332 $as_echo "$plugin_rdynamic" >&6; }
27334 else
27335 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unable to check" >&5
27336 $as_echo "unable to check" >&6; }
27339 # Check -ldl
27340 saved_LIBS="$LIBS"
27341 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing dlopen" >&5
27342 $as_echo_n "checking for library containing dlopen... " >&6; }
27343 if test "${ac_cv_search_dlopen+set}" = set; then :
27344 $as_echo_n "(cached) " >&6
27345 else
27346 ac_func_search_save_LIBS=$LIBS
27347 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
27348 /* end confdefs.h. */
27350 /* Override any GCC internal prototype to avoid an error.
27351 Use char because int might match the return type of a GCC
27352 builtin and then its argument prototype would still apply. */
27353 #ifdef __cplusplus
27354 extern "C"
27355 #endif
27356 char dlopen ();
27358 main ()
27360 return dlopen ();
27362 return 0;
27364 _ACEOF
27365 for ac_lib in '' dl; do
27366 if test -z "$ac_lib"; then
27367 ac_res="none required"
27368 else
27369 ac_res=-l$ac_lib
27370 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
27372 if ac_fn_c_try_link "$LINENO"; then :
27373 ac_cv_search_dlopen=$ac_res
27375 rm -f core conftest.err conftest.$ac_objext \
27376 conftest$ac_exeext
27377 if test "${ac_cv_search_dlopen+set}" = set; then :
27378 break
27380 done
27381 if test "${ac_cv_search_dlopen+set}" = set; then :
27383 else
27384 ac_cv_search_dlopen=no
27386 rm conftest.$ac_ext
27387 LIBS=$ac_func_search_save_LIBS
27389 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_dlopen" >&5
27390 $as_echo "$ac_cv_search_dlopen" >&6; }
27391 ac_res=$ac_cv_search_dlopen
27392 if test "$ac_res" != no; then :
27393 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
27397 if test x"$ac_cv_search_dlopen" = x"-ldl"; then
27398 pluginlibs="$pluginlibs -ldl"
27400 LIBS="$saved_LIBS"
27402 # Check that we can build shared objects with -fPIC -shared
27403 saved_LDFLAGS="$LDFLAGS"
27404 saved_CFLAGS="$CFLAGS"
27405 case "${host}" in
27406 *-*-darwin*)
27407 CFLAGS=`echo $CFLAGS | sed s/-mdynamic-no-pic//g`
27408 CFLAGS="$CFLAGS -fPIC"
27409 LDFLAGS="$LDFLAGS -shared -undefined dynamic_lookup"
27412 CFLAGS="$CFLAGS -fPIC"
27413 LDFLAGS="$LDFLAGS -fPIC -shared"
27415 esac
27416 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -fPIC -shared" >&5
27417 $as_echo_n "checking for -fPIC -shared... " >&6; }
27418 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
27419 /* end confdefs.h. */
27420 extern int X;
27422 main ()
27424 return X == 0;
27426 return 0;
27428 _ACEOF
27429 if ac_fn_c_try_link "$LINENO"; then :
27430 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
27431 $as_echo "yes" >&6; }; have_pic_shared=yes
27432 else
27433 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
27434 $as_echo "no" >&6; }; have_pic_shared=no
27436 rm -f core conftest.err conftest.$ac_objext \
27437 conftest$ac_exeext conftest.$ac_ext
27438 if test x"$have_pic_shared" != x"yes" -o x"$ac_cv_search_dlopen" = x"no"; then
27439 pluginlibs=
27440 enable_plugin=no
27442 LDFLAGS="$saved_LDFLAGS"
27443 CFLAGS="$saved_CFLAGS"
27445 # If plugin support had been requested but not available, fail.
27446 if test x"$enable_plugin" = x"no" ; then
27447 if test x"$default_plugin" != x"yes"; then
27448 as_fn_error "
27449 Building GCC with plugin support requires a host that supports
27450 -fPIC, -shared, -ldl and -rdynamic." "$LINENO" 5
27457 if test x"$enable_plugin" = x"yes"; then
27459 $as_echo "#define ENABLE_PLUGIN 1" >>confdefs.h
27464 # Check whether --enable-libquadmath-support was given.
27465 if test "${enable_libquadmath_support+set}" = set; then :
27466 enableval=$enable_libquadmath_support; ENABLE_LIBQUADMATH_SUPPORT=$enableval
27467 else
27468 ENABLE_LIBQUADMATH_SUPPORT=yes
27471 if test "${ENABLE_LIBQUADMATH_SUPPORT}" != "no" ; then
27473 $as_echo "#define ENABLE_LIBQUADMATH_SUPPORT 1" >>confdefs.h
27478 warn_frame_larger_than_extra_text=
27480 # Check whether --with-warn-frame-larger-than-extra-text was given.
27481 if test "${with_warn_frame_larger_than_extra_text+set}" = set; then :
27482 withval=$with_warn_frame_larger_than_extra_text; case "${withval}" in
27483 yes) as_fn_error "bad value ${withval} given for frame size warning text" "$LINENO" 5 ;;
27484 no) ;;
27485 *) warn_frame_larger_than_extra_text="$withval" ;;
27486 esac
27490 cat >>confdefs.h <<_ACEOF
27491 #define WARN_FRAME_LARGER_THAN_EXTRA_TEXT "$warn_frame_larger_than_extra_text"
27492 _ACEOF
27496 # Specify what hash style to use by default.
27498 # Check whether --with-linker-hash-style was given.
27499 if test "${with_linker_hash_style+set}" = set; then :
27500 withval=$with_linker_hash_style; case x"$withval" in
27501 xsysv)
27502 LINKER_HASH_STYLE=sysv
27504 xgnu)
27505 LINKER_HASH_STYLE=gnu
27507 xboth)
27508 LINKER_HASH_STYLE=both
27511 as_fn_error "$withval is an invalid option to --with-linker-hash-style" "$LINENO" 5
27513 esac
27514 else
27515 LINKER_HASH_STYLE=''
27518 if test x"${LINKER_HASH_STYLE}" != x; then
27520 cat >>confdefs.h <<_ACEOF
27521 #define LINKER_HASH_STYLE "$LINKER_HASH_STYLE"
27522 _ACEOF
27526 # Configure the subdirectories
27527 # AC_CONFIG_SUBDIRS($subdirs)
27529 # Create the Makefile
27530 # and configure language subdirectories
27531 ac_config_files="$ac_config_files $all_outputs"
27534 ac_config_commands="$ac_config_commands default"
27536 cat >confcache <<\_ACEOF
27537 # This file is a shell script that caches the results of configure
27538 # tests run on this system so they can be shared between configure
27539 # scripts and configure runs, see configure's option --config-cache.
27540 # It is not useful on other systems. If it contains results you don't
27541 # want to keep, you may remove or edit it.
27543 # config.status only pays attention to the cache file if you give it
27544 # the --recheck option to rerun configure.
27546 # `ac_cv_env_foo' variables (set or unset) will be overridden when
27547 # loading this file, other *unset* `ac_cv_foo' will be assigned the
27548 # following values.
27550 _ACEOF
27552 # The following way of writing the cache mishandles newlines in values,
27553 # but we know of no workaround that is simple, portable, and efficient.
27554 # So, we kill variables containing newlines.
27555 # Ultrix sh set writes to stderr and can't be redirected directly,
27556 # and sets the high bit in the cache file unless we assign to the vars.
27558 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
27559 eval ac_val=\$$ac_var
27560 case $ac_val in #(
27561 *${as_nl}*)
27562 case $ac_var in #(
27563 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
27564 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
27565 esac
27566 case $ac_var in #(
27567 _ | IFS | as_nl) ;; #(
27568 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
27569 *) { eval $ac_var=; unset $ac_var;} ;;
27570 esac ;;
27571 esac
27572 done
27574 (set) 2>&1 |
27575 case $as_nl`(ac_space=' '; set) 2>&1` in #(
27576 *${as_nl}ac_space=\ *)
27577 # `set' does not quote correctly, so add quotes: double-quote
27578 # substitution turns \\\\ into \\, and sed turns \\ into \.
27579 sed -n \
27580 "s/'/'\\\\''/g;
27581 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
27582 ;; #(
27584 # `set' quotes correctly as required by POSIX, so do not add quotes.
27585 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
27587 esac |
27588 sort
27590 sed '
27591 /^ac_cv_env_/b end
27592 t clear
27593 :clear
27594 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
27595 t end
27596 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
27597 :end' >>confcache
27598 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
27599 if test -w "$cache_file"; then
27600 test "x$cache_file" != "x/dev/null" &&
27601 { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
27602 $as_echo "$as_me: updating cache $cache_file" >&6;}
27603 cat confcache >$cache_file
27604 else
27605 { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
27606 $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
27609 rm -f confcache
27611 test "x$prefix" = xNONE && prefix=$ac_default_prefix
27612 # Let make expand exec_prefix.
27613 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
27615 DEFS=-DHAVE_CONFIG_H
27617 ac_libobjs=
27618 ac_ltlibobjs=
27619 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
27620 # 1. Remove the extension, and $U if already installed.
27621 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
27622 ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
27623 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
27624 # will be set to the directory where LIBOBJS objects are built.
27625 as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
27626 as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
27627 done
27628 LIBOBJS=$ac_libobjs
27630 LTLIBOBJS=$ac_ltlibobjs
27635 : ${CONFIG_STATUS=./config.status}
27636 ac_write_fail=0
27637 ac_clean_files_save=$ac_clean_files
27638 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
27639 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
27640 $as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
27641 as_write_fail=0
27642 cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
27643 #! $SHELL
27644 # Generated by $as_me.
27645 # Run this file to recreate the current configuration.
27646 # Compiler output produced by configure, useful for debugging
27647 # configure, is in config.log if it exists.
27649 debug=false
27650 ac_cs_recheck=false
27651 ac_cs_silent=false
27653 SHELL=\${CONFIG_SHELL-$SHELL}
27654 export SHELL
27655 _ASEOF
27656 cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
27657 ## -------------------- ##
27658 ## M4sh Initialization. ##
27659 ## -------------------- ##
27661 # Be more Bourne compatible
27662 DUALCASE=1; export DUALCASE # for MKS sh
27663 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
27664 emulate sh
27665 NULLCMD=:
27666 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
27667 # is contrary to our usage. Disable this feature.
27668 alias -g '${1+"$@"}'='"$@"'
27669 setopt NO_GLOB_SUBST
27670 else
27671 case `(set -o) 2>/dev/null` in #(
27672 *posix*) :
27673 set -o posix ;; #(
27674 *) :
27676 esac
27680 as_nl='
27682 export as_nl
27683 # Printing a long string crashes Solaris 7 /usr/bin/printf.
27684 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
27685 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
27686 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
27687 # Prefer a ksh shell builtin over an external printf program on Solaris,
27688 # but without wasting forks for bash or zsh.
27689 if test -z "$BASH_VERSION$ZSH_VERSION" \
27690 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
27691 as_echo='print -r --'
27692 as_echo_n='print -rn --'
27693 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
27694 as_echo='printf %s\n'
27695 as_echo_n='printf %s'
27696 else
27697 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
27698 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
27699 as_echo_n='/usr/ucb/echo -n'
27700 else
27701 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
27702 as_echo_n_body='eval
27703 arg=$1;
27704 case $arg in #(
27705 *"$as_nl"*)
27706 expr "X$arg" : "X\\(.*\\)$as_nl";
27707 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
27708 esac;
27709 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
27711 export as_echo_n_body
27712 as_echo_n='sh -c $as_echo_n_body as_echo'
27714 export as_echo_body
27715 as_echo='sh -c $as_echo_body as_echo'
27718 # The user is always right.
27719 if test "${PATH_SEPARATOR+set}" != set; then
27720 PATH_SEPARATOR=:
27721 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
27722 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
27723 PATH_SEPARATOR=';'
27728 # IFS
27729 # We need space, tab and new line, in precisely that order. Quoting is
27730 # there to prevent editors from complaining about space-tab.
27731 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
27732 # splitting by setting IFS to empty value.)
27733 IFS=" "" $as_nl"
27735 # Find who we are. Look in the path if we contain no directory separator.
27736 case $0 in #((
27737 *[\\/]* ) as_myself=$0 ;;
27738 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
27739 for as_dir in $PATH
27741 IFS=$as_save_IFS
27742 test -z "$as_dir" && as_dir=.
27743 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
27744 done
27745 IFS=$as_save_IFS
27748 esac
27749 # We did not find ourselves, most probably we were run as `sh COMMAND'
27750 # in which case we are not to be found in the path.
27751 if test "x$as_myself" = x; then
27752 as_myself=$0
27754 if test ! -f "$as_myself"; then
27755 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
27756 exit 1
27759 # Unset variables that we do not need and which cause bugs (e.g. in
27760 # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
27761 # suppresses any "Segmentation fault" message there. '((' could
27762 # trigger a bug in pdksh 5.2.14.
27763 for as_var in BASH_ENV ENV MAIL MAILPATH
27764 do eval test x\${$as_var+set} = xset \
27765 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
27766 done
27767 PS1='$ '
27768 PS2='> '
27769 PS4='+ '
27771 # NLS nuisances.
27772 LC_ALL=C
27773 export LC_ALL
27774 LANGUAGE=C
27775 export LANGUAGE
27777 # CDPATH.
27778 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
27781 # as_fn_error ERROR [LINENO LOG_FD]
27782 # ---------------------------------
27783 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
27784 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
27785 # script with status $?, using 1 if that was 0.
27786 as_fn_error ()
27788 as_status=$?; test $as_status -eq 0 && as_status=1
27789 if test "$3"; then
27790 as_lineno=${as_lineno-"$2"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
27791 $as_echo "$as_me:${as_lineno-$LINENO}: error: $1" >&$3
27793 $as_echo "$as_me: error: $1" >&2
27794 as_fn_exit $as_status
27795 } # as_fn_error
27798 # as_fn_set_status STATUS
27799 # -----------------------
27800 # Set $? to STATUS, without forking.
27801 as_fn_set_status ()
27803 return $1
27804 } # as_fn_set_status
27806 # as_fn_exit STATUS
27807 # -----------------
27808 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
27809 as_fn_exit ()
27811 set +e
27812 as_fn_set_status $1
27813 exit $1
27814 } # as_fn_exit
27816 # as_fn_unset VAR
27817 # ---------------
27818 # Portably unset VAR.
27819 as_fn_unset ()
27821 { eval $1=; unset $1;}
27823 as_unset=as_fn_unset
27824 # as_fn_append VAR VALUE
27825 # ----------------------
27826 # Append the text in VALUE to the end of the definition contained in VAR. Take
27827 # advantage of any shell optimizations that allow amortized linear growth over
27828 # repeated appends, instead of the typical quadratic growth present in naive
27829 # implementations.
27830 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
27831 eval 'as_fn_append ()
27833 eval $1+=\$2
27835 else
27836 as_fn_append ()
27838 eval $1=\$$1\$2
27840 fi # as_fn_append
27842 # as_fn_arith ARG...
27843 # ------------------
27844 # Perform arithmetic evaluation on the ARGs, and store the result in the
27845 # global $as_val. Take advantage of shells that can avoid forks. The arguments
27846 # must be portable across $(()) and expr.
27847 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
27848 eval 'as_fn_arith ()
27850 as_val=$(( $* ))
27852 else
27853 as_fn_arith ()
27855 as_val=`expr "$@" || test $? -eq 1`
27857 fi # as_fn_arith
27860 if expr a : '\(a\)' >/dev/null 2>&1 &&
27861 test "X`expr 00001 : '.*\(...\)'`" = X001; then
27862 as_expr=expr
27863 else
27864 as_expr=false
27867 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
27868 as_basename=basename
27869 else
27870 as_basename=false
27873 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
27874 as_dirname=dirname
27875 else
27876 as_dirname=false
27879 as_me=`$as_basename -- "$0" ||
27880 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
27881 X"$0" : 'X\(//\)$' \| \
27882 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
27883 $as_echo X/"$0" |
27884 sed '/^.*\/\([^/][^/]*\)\/*$/{
27885 s//\1/
27888 /^X\/\(\/\/\)$/{
27889 s//\1/
27892 /^X\/\(\/\).*/{
27893 s//\1/
27896 s/.*/./; q'`
27898 # Avoid depending upon Character Ranges.
27899 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
27900 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
27901 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
27902 as_cr_digits='0123456789'
27903 as_cr_alnum=$as_cr_Letters$as_cr_digits
27905 ECHO_C= ECHO_N= ECHO_T=
27906 case `echo -n x` in #(((((
27907 -n*)
27908 case `echo 'xy\c'` in
27909 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
27910 xy) ECHO_C='\c';;
27911 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
27912 ECHO_T=' ';;
27913 esac;;
27915 ECHO_N='-n';;
27916 esac
27918 rm -f conf$$ conf$$.exe conf$$.file
27919 if test -d conf$$.dir; then
27920 rm -f conf$$.dir/conf$$.file
27921 else
27922 rm -f conf$$.dir
27923 mkdir conf$$.dir 2>/dev/null
27925 if (echo >conf$$.file) 2>/dev/null; then
27926 if ln -s conf$$.file conf$$ 2>/dev/null; then
27927 as_ln_s='ln -s'
27928 # ... but there are two gotchas:
27929 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
27930 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
27931 # In both cases, we have to default to `cp -p'.
27932 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
27933 as_ln_s='cp -p'
27934 elif ln conf$$.file conf$$ 2>/dev/null; then
27935 as_ln_s=ln
27936 else
27937 as_ln_s='cp -p'
27939 else
27940 as_ln_s='cp -p'
27942 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
27943 rmdir conf$$.dir 2>/dev/null
27946 # as_fn_mkdir_p
27947 # -------------
27948 # Create "$as_dir" as a directory, including parents if necessary.
27949 as_fn_mkdir_p ()
27952 case $as_dir in #(
27953 -*) as_dir=./$as_dir;;
27954 esac
27955 test -d "$as_dir" || eval $as_mkdir_p || {
27956 as_dirs=
27957 while :; do
27958 case $as_dir in #(
27959 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
27960 *) as_qdir=$as_dir;;
27961 esac
27962 as_dirs="'$as_qdir' $as_dirs"
27963 as_dir=`$as_dirname -- "$as_dir" ||
27964 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
27965 X"$as_dir" : 'X\(//\)[^/]' \| \
27966 X"$as_dir" : 'X\(//\)$' \| \
27967 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
27968 $as_echo X"$as_dir" |
27969 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
27970 s//\1/
27973 /^X\(\/\/\)[^/].*/{
27974 s//\1/
27977 /^X\(\/\/\)$/{
27978 s//\1/
27981 /^X\(\/\).*/{
27982 s//\1/
27985 s/.*/./; q'`
27986 test -d "$as_dir" && break
27987 done
27988 test -z "$as_dirs" || eval "mkdir $as_dirs"
27989 } || test -d "$as_dir" || as_fn_error "cannot create directory $as_dir"
27992 } # as_fn_mkdir_p
27993 if mkdir -p . 2>/dev/null; then
27994 as_mkdir_p='mkdir -p "$as_dir"'
27995 else
27996 test -d ./-p && rmdir ./-p
27997 as_mkdir_p=false
28000 if test -x / >/dev/null 2>&1; then
28001 as_test_x='test -x'
28002 else
28003 if ls -dL / >/dev/null 2>&1; then
28004 as_ls_L_option=L
28005 else
28006 as_ls_L_option=
28008 as_test_x='
28009 eval sh -c '\''
28010 if test -d "$1"; then
28011 test -d "$1/.";
28012 else
28013 case $1 in #(
28014 -*)set "./$1";;
28015 esac;
28016 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in #((
28017 ???[sx]*):;;*)false;;esac;fi
28018 '\'' sh
28021 as_executable_p=$as_test_x
28023 # Sed expression to map a string onto a valid CPP name.
28024 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
28026 # Sed expression to map a string onto a valid variable name.
28027 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
28030 exec 6>&1
28031 ## ----------------------------------- ##
28032 ## Main body of $CONFIG_STATUS script. ##
28033 ## ----------------------------------- ##
28034 _ASEOF
28035 test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
28037 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
28038 # Save the log message, to keep $0 and so on meaningful, and to
28039 # report actual input values of CONFIG_FILES etc. instead of their
28040 # values after options handling.
28041 ac_log="
28042 This file was extended by $as_me, which was
28043 generated by GNU Autoconf 2.64. Invocation command line was
28045 CONFIG_FILES = $CONFIG_FILES
28046 CONFIG_HEADERS = $CONFIG_HEADERS
28047 CONFIG_LINKS = $CONFIG_LINKS
28048 CONFIG_COMMANDS = $CONFIG_COMMANDS
28049 $ $0 $@
28051 on `(hostname || uname -n) 2>/dev/null | sed 1q`
28054 _ACEOF
28056 case $ac_config_files in *"
28057 "*) set x $ac_config_files; shift; ac_config_files=$*;;
28058 esac
28060 case $ac_config_headers in *"
28061 "*) set x $ac_config_headers; shift; ac_config_headers=$*;;
28062 esac
28065 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
28066 # Files that config.status was made for.
28067 config_files="$ac_config_files"
28068 config_headers="$ac_config_headers"
28069 config_commands="$ac_config_commands"
28071 _ACEOF
28073 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
28074 ac_cs_usage="\
28075 \`$as_me' instantiates files and other configuration actions
28076 from templates according to the current configuration. Unless the files
28077 and actions are specified as TAGs, all are instantiated by default.
28079 Usage: $0 [OPTION]... [TAG]...
28081 -h, --help print this help, then exit
28082 -V, --version print version number and configuration settings, then exit
28083 -q, --quiet, --silent
28084 do not print progress messages
28085 -d, --debug don't remove temporary files
28086 --recheck update $as_me by reconfiguring in the same conditions
28087 --file=FILE[:TEMPLATE]
28088 instantiate the configuration file FILE
28089 --header=FILE[:TEMPLATE]
28090 instantiate the configuration header FILE
28092 Configuration files:
28093 $config_files
28095 Configuration headers:
28096 $config_headers
28098 Configuration commands:
28099 $config_commands
28101 Report bugs to the package provider."
28103 _ACEOF
28104 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
28105 ac_cs_version="\\
28106 config.status
28107 configured by $0, generated by GNU Autoconf 2.64,
28108 with options \\"`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`\\"
28110 Copyright (C) 2009 Free Software Foundation, Inc.
28111 This config.status script is free software; the Free Software Foundation
28112 gives unlimited permission to copy, distribute and modify it."
28114 ac_pwd='$ac_pwd'
28115 srcdir='$srcdir'
28116 AWK='$AWK'
28117 test -n "\$AWK" || AWK=awk
28118 _ACEOF
28120 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
28121 # The default lists apply if the user does not specify any file.
28122 ac_need_defaults=:
28123 while test $# != 0
28125 case $1 in
28126 --*=*)
28127 ac_option=`expr "X$1" : 'X\([^=]*\)='`
28128 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
28129 ac_shift=:
28132 ac_option=$1
28133 ac_optarg=$2
28134 ac_shift=shift
28136 esac
28138 case $ac_option in
28139 # Handling of the options.
28140 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
28141 ac_cs_recheck=: ;;
28142 --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
28143 $as_echo "$ac_cs_version"; exit ;;
28144 --debug | --debu | --deb | --de | --d | -d )
28145 debug=: ;;
28146 --file | --fil | --fi | --f )
28147 $ac_shift
28148 case $ac_optarg in
28149 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
28150 esac
28151 as_fn_append CONFIG_FILES " '$ac_optarg'"
28152 ac_need_defaults=false;;
28153 --header | --heade | --head | --hea )
28154 $ac_shift
28155 case $ac_optarg in
28156 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
28157 esac
28158 as_fn_append CONFIG_HEADERS " '$ac_optarg'"
28159 ac_need_defaults=false;;
28160 --he | --h)
28161 # Conflict between --help and --header
28162 as_fn_error "ambiguous option: \`$1'
28163 Try \`$0 --help' for more information.";;
28164 --help | --hel | -h )
28165 $as_echo "$ac_cs_usage"; exit ;;
28166 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
28167 | -silent | --silent | --silen | --sile | --sil | --si | --s)
28168 ac_cs_silent=: ;;
28170 # This is an error.
28171 -*) as_fn_error "unrecognized option: \`$1'
28172 Try \`$0 --help' for more information." ;;
28174 *) as_fn_append ac_config_targets " $1"
28175 ac_need_defaults=false ;;
28177 esac
28178 shift
28179 done
28181 ac_configure_extra_args=
28183 if $ac_cs_silent; then
28184 exec 6>/dev/null
28185 ac_configure_extra_args="$ac_configure_extra_args --silent"
28188 _ACEOF
28189 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
28190 if \$ac_cs_recheck; then
28191 set X '$SHELL' '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
28192 shift
28193 \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
28194 CONFIG_SHELL='$SHELL'
28195 export CONFIG_SHELL
28196 exec "\$@"
28199 _ACEOF
28200 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
28201 exec 5>>config.log
28203 echo
28204 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
28205 ## Running $as_me. ##
28206 _ASBOX
28207 $as_echo "$ac_log"
28208 } >&5
28210 _ACEOF
28211 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
28213 # INIT-COMMANDS
28215 subdirs='$subdirs'
28217 _ACEOF
28219 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
28221 # Handling of arguments.
28222 for ac_config_target in $ac_config_targets
28224 case $ac_config_target in
28225 "auto-host.h") CONFIG_HEADERS="$CONFIG_HEADERS auto-host.h:config.in" ;;
28226 "as") CONFIG_FILES="$CONFIG_FILES as:exec-tool.in" ;;
28227 "collect-ld") CONFIG_FILES="$CONFIG_FILES collect-ld:exec-tool.in" ;;
28228 "nm") CONFIG_FILES="$CONFIG_FILES nm:exec-tool.in" ;;
28229 "$all_outputs") CONFIG_FILES="$CONFIG_FILES $all_outputs" ;;
28230 "default") CONFIG_COMMANDS="$CONFIG_COMMANDS default" ;;
28232 *) as_fn_error "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
28233 esac
28234 done
28237 # If the user did not use the arguments to specify the items to instantiate,
28238 # then the envvar interface is used. Set only those that are not.
28239 # We use the long form for the default assignment because of an extremely
28240 # bizarre bug on SunOS 4.1.3.
28241 if $ac_need_defaults; then
28242 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
28243 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
28244 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
28247 # Have a temporary directory for convenience. Make it in the build tree
28248 # simply because there is no reason against having it here, and in addition,
28249 # creating and moving files from /tmp can sometimes cause problems.
28250 # Hook for its removal unless debugging.
28251 # Note that there is a small window in which the directory will not be cleaned:
28252 # after its creation but before its name has been assigned to `$tmp'.
28253 $debug ||
28255 tmp=
28256 trap 'exit_status=$?
28257 { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status
28259 trap 'as_fn_exit 1' 1 2 13 15
28261 # Create a (secure) tmp directory for tmp files.
28264 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
28265 test -n "$tmp" && test -d "$tmp"
28266 } ||
28268 tmp=./conf$$-$RANDOM
28269 (umask 077 && mkdir "$tmp")
28270 } || as_fn_error "cannot create a temporary directory in ." "$LINENO" 5
28272 # Set up the scripts for CONFIG_FILES section.
28273 # No need to generate them if there are no CONFIG_FILES.
28274 # This happens for instance with `./config.status config.h'.
28275 if test -n "$CONFIG_FILES"; then
28277 if $AWK 'BEGIN { getline <"/dev/null" }' </dev/null 2>/dev/null; then
28278 ac_cs_awk_getline=:
28279 ac_cs_awk_pipe_init=
28280 ac_cs_awk_read_file='
28281 while ((getline aline < (F[key])) > 0)
28282 print(aline)
28283 close(F[key])'
28284 ac_cs_awk_pipe_fini=
28285 else
28286 ac_cs_awk_getline=false
28287 ac_cs_awk_pipe_init="print \"cat <<'|#_!!_#|' &&\""
28288 ac_cs_awk_read_file='
28289 print "|#_!!_#|"
28290 print "cat " F[key] " &&"
28291 '$ac_cs_awk_pipe_init
28292 # The final `:' finishes the AND list.
28293 ac_cs_awk_pipe_fini='END { print "|#_!!_#|"; print ":" }'
28295 ac_cr=`echo X | tr X '\015'`
28296 # On cygwin, bash can eat \r inside `` if the user requested igncr.
28297 # But we know of no other shell where ac_cr would be empty at this
28298 # point, so we can use a bashism as a fallback.
28299 if test "x$ac_cr" = x; then
28300 eval ac_cr=\$\'\\r\'
28302 ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
28303 if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
28304 ac_cs_awk_cr='\r'
28305 else
28306 ac_cs_awk_cr=$ac_cr
28309 echo 'BEGIN {' >"$tmp/subs1.awk" &&
28310 _ACEOF
28312 # Create commands to substitute file output variables.
28314 echo "cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1" &&
28315 echo 'cat >>"\$tmp/subs1.awk" <<\\_ACAWK &&' &&
28316 echo "$ac_subst_files" | sed 's/.*/F["&"]="$&"/' &&
28317 echo "_ACAWK" &&
28318 echo "_ACEOF"
28319 } >conf$$files.sh &&
28320 . ./conf$$files.sh ||
28321 as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5
28322 rm -f conf$$files.sh
28325 echo "cat >conf$$subs.awk <<_ACEOF" &&
28326 echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
28327 echo "_ACEOF"
28328 } >conf$$subs.sh ||
28329 as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5
28330 ac_delim_num=`echo "$ac_subst_vars" | grep -c '$'`
28331 ac_delim='%!_!# '
28332 for ac_last_try in false false false false false :; do
28333 . ./conf$$subs.sh ||
28334 as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5
28336 ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
28337 if test $ac_delim_n = $ac_delim_num; then
28338 break
28339 elif $ac_last_try; then
28340 as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5
28341 else
28342 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
28344 done
28345 rm -f conf$$subs.sh
28347 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
28348 cat >>"\$tmp/subs1.awk" <<\\_ACAWK &&
28349 _ACEOF
28350 sed -n '
28352 s/^/S["/; s/!.*/"]=/
28355 s/^[^!]*!//
28356 :repl
28357 t repl
28358 s/'"$ac_delim"'$//
28359 t delim
28362 s/\(.\{148\}\).*/\1/
28363 t more1
28364 s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
28367 b repl
28368 :more1
28369 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
28372 s/.\{148\}//
28373 t nl
28374 :delim
28376 s/\(.\{148\}\).*/\1/
28377 t more2
28378 s/["\\]/\\&/g; s/^/"/; s/$/"/
28381 :more2
28382 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
28385 s/.\{148\}//
28386 t delim
28387 ' <conf$$subs.awk | sed '
28388 /^[^""]/{
28390 s/\n//
28392 ' >>$CONFIG_STATUS || ac_write_fail=1
28393 rm -f conf$$subs.awk
28394 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
28395 _ACAWK
28396 cat >>"\$tmp/subs1.awk" <<_ACAWK &&
28397 for (key in S) S_is_set[key] = 1
28398 FS = "\a"
28399 \$ac_cs_awk_pipe_init
28402 line = $ 0
28403 nfields = split(line, field, "@")
28404 substed = 0
28405 len = length(field[1])
28406 for (i = 2; i < nfields; i++) {
28407 key = field[i]
28408 keylen = length(key)
28409 if (S_is_set[key]) {
28410 value = S[key]
28411 line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
28412 len += length(value) + length(field[++i])
28413 substed = 1
28414 } else
28415 len += 1 + keylen
28417 if (nfields == 3 && !substed) {
28418 key = field[2]
28419 if (F[key] != "" && line ~ /^[ ]*@.*@[ ]*$/) {
28420 \$ac_cs_awk_read_file
28421 next
28424 print line
28426 \$ac_cs_awk_pipe_fini
28427 _ACAWK
28428 _ACEOF
28429 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
28430 if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
28431 sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
28432 else
28434 fi < "$tmp/subs1.awk" > "$tmp/subs.awk" \
28435 || as_fn_error "could not setup config files machinery" "$LINENO" 5
28436 _ACEOF
28438 # VPATH may cause trouble with some makes, so we remove $(srcdir),
28439 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
28440 # trailing colons and then remove the whole line if VPATH becomes empty
28441 # (actually we leave an empty line to preserve line numbers).
28442 if test "x$srcdir" = x.; then
28443 ac_vpsub='/^[ ]*VPATH[ ]*=/{
28444 s/:*\$(srcdir):*/:/
28445 s/:*\${srcdir}:*/:/
28446 s/:*@srcdir@:*/:/
28447 s/^\([^=]*=[ ]*\):*/\1/
28448 s/:*$//
28449 s/^[^=]*=[ ]*$//
28453 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
28454 fi # test -n "$CONFIG_FILES"
28456 # Set up the scripts for CONFIG_HEADERS section.
28457 # No need to generate them if there are no CONFIG_HEADERS.
28458 # This happens for instance with `./config.status Makefile'.
28459 if test -n "$CONFIG_HEADERS"; then
28460 cat >"$tmp/defines.awk" <<\_ACAWK ||
28461 BEGIN {
28462 _ACEOF
28464 # Transform confdefs.h into an awk script `defines.awk', embedded as
28465 # here-document in config.status, that substitutes the proper values into
28466 # config.h.in to produce config.h.
28468 # Create a delimiter string that does not exist in confdefs.h, to ease
28469 # handling of long lines.
28470 ac_delim='%!_!# '
28471 for ac_last_try in false false :; do
28472 ac_t=`sed -n "/$ac_delim/p" confdefs.h`
28473 if test -z "$ac_t"; then
28474 break
28475 elif $ac_last_try; then
28476 as_fn_error "could not make $CONFIG_HEADERS" "$LINENO" 5
28477 else
28478 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
28480 done
28482 # For the awk script, D is an array of macro values keyed by name,
28483 # likewise P contains macro parameters if any. Preserve backslash
28484 # newline sequences.
28486 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
28487 sed -n '
28488 s/.\{148\}/&'"$ac_delim"'/g
28489 t rset
28490 :rset
28491 s/^[ ]*#[ ]*define[ ][ ]*/ /
28492 t def
28494 :def
28495 s/\\$//
28496 t bsnl
28497 s/["\\]/\\&/g
28498 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
28499 D["\1"]=" \3"/p
28500 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2"/p
28502 :bsnl
28503 s/["\\]/\\&/g
28504 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
28505 D["\1"]=" \3\\\\\\n"\\/p
28506 t cont
28507 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
28508 t cont
28510 :cont
28512 s/.\{148\}/&'"$ac_delim"'/g
28513 t clear
28514 :clear
28515 s/\\$//
28516 t bsnlc
28517 s/["\\]/\\&/g; s/^/"/; s/$/"/p
28519 :bsnlc
28520 s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
28521 b cont
28522 ' <confdefs.h | sed '
28523 s/'"$ac_delim"'/"\\\
28524 "/g' >>$CONFIG_STATUS || ac_write_fail=1
28526 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
28527 for (key in D) D_is_set[key] = 1
28528 FS = "\a"
28530 /^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
28531 line = \$ 0
28532 split(line, arg, " ")
28533 if (arg[1] == "#") {
28534 defundef = arg[2]
28535 mac1 = arg[3]
28536 } else {
28537 defundef = substr(arg[1], 2)
28538 mac1 = arg[2]
28540 split(mac1, mac2, "(") #)
28541 macro = mac2[1]
28542 prefix = substr(line, 1, index(line, defundef) - 1)
28543 if (D_is_set[macro]) {
28544 # Preserve the white space surrounding the "#".
28545 print prefix "define", macro P[macro] D[macro]
28546 next
28547 } else {
28548 # Replace #undef with comments. This is necessary, for example,
28549 # in the case of _POSIX_SOURCE, which is predefined and required
28550 # on some systems where configure will not decide to define it.
28551 if (defundef == "undef") {
28552 print "/*", prefix defundef, macro, "*/"
28553 next
28557 { print }
28558 _ACAWK
28559 _ACEOF
28560 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
28561 as_fn_error "could not setup config headers machinery" "$LINENO" 5
28562 fi # test -n "$CONFIG_HEADERS"
28565 eval set X " :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS"
28566 shift
28567 for ac_tag
28569 case $ac_tag in
28570 :[FHLC]) ac_mode=$ac_tag; continue;;
28571 esac
28572 case $ac_mode$ac_tag in
28573 :[FHL]*:*);;
28574 :L* | :C*:*) as_fn_error "invalid tag \`$ac_tag'" "$LINENO" 5;;
28575 :[FH]-) ac_tag=-:-;;
28576 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
28577 esac
28578 ac_save_IFS=$IFS
28579 IFS=:
28580 set x $ac_tag
28581 IFS=$ac_save_IFS
28582 shift
28583 ac_file=$1
28584 shift
28586 case $ac_mode in
28587 :L) ac_source=$1;;
28588 :[FH])
28589 ac_file_inputs=
28590 for ac_f
28592 case $ac_f in
28593 -) ac_f="$tmp/stdin";;
28594 *) # Look for the file first in the build tree, then in the source tree
28595 # (if the path is not absolute). The absolute path cannot be DOS-style,
28596 # because $ac_f cannot contain `:'.
28597 test -f "$ac_f" ||
28598 case $ac_f in
28599 [\\/$]*) false;;
28600 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
28601 esac ||
28602 as_fn_error "cannot find input file: \`$ac_f'" "$LINENO" 5;;
28603 esac
28604 case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
28605 as_fn_append ac_file_inputs " '$ac_f'"
28606 done
28608 # Let's still pretend it is `configure' which instantiates (i.e., don't
28609 # use $as_me), people would be surprised to read:
28610 # /* config.h. Generated by config.status. */
28611 configure_input='Generated from '`
28612 $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
28613 `' by configure.'
28614 if test x"$ac_file" != x-; then
28615 configure_input="$ac_file. $configure_input"
28616 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
28617 $as_echo "$as_me: creating $ac_file" >&6;}
28619 # Neutralize special characters interpreted by sed in replacement strings.
28620 case $configure_input in #(
28621 *\&* | *\|* | *\\* )
28622 ac_sed_conf_input=`$as_echo "$configure_input" |
28623 sed 's/[\\\\&|]/\\\\&/g'`;; #(
28624 *) ac_sed_conf_input=$configure_input;;
28625 esac
28627 case $ac_tag in
28628 *:-:* | *:-) cat >"$tmp/stdin" \
28629 || as_fn_error "could not create $ac_file" "$LINENO" 5 ;;
28630 esac
28632 esac
28634 ac_dir=`$as_dirname -- "$ac_file" ||
28635 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
28636 X"$ac_file" : 'X\(//\)[^/]' \| \
28637 X"$ac_file" : 'X\(//\)$' \| \
28638 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
28639 $as_echo X"$ac_file" |
28640 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
28641 s//\1/
28644 /^X\(\/\/\)[^/].*/{
28645 s//\1/
28648 /^X\(\/\/\)$/{
28649 s//\1/
28652 /^X\(\/\).*/{
28653 s//\1/
28656 s/.*/./; q'`
28657 as_dir="$ac_dir"; as_fn_mkdir_p
28658 ac_builddir=.
28660 case "$ac_dir" in
28661 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
28663 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
28664 # A ".." for each directory in $ac_dir_suffix.
28665 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
28666 case $ac_top_builddir_sub in
28667 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
28668 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
28669 esac ;;
28670 esac
28671 ac_abs_top_builddir=$ac_pwd
28672 ac_abs_builddir=$ac_pwd$ac_dir_suffix
28673 # for backward compatibility:
28674 ac_top_builddir=$ac_top_build_prefix
28676 case $srcdir in
28677 .) # We are building in place.
28678 ac_srcdir=.
28679 ac_top_srcdir=$ac_top_builddir_sub
28680 ac_abs_top_srcdir=$ac_pwd ;;
28681 [\\/]* | ?:[\\/]* ) # Absolute name.
28682 ac_srcdir=$srcdir$ac_dir_suffix;
28683 ac_top_srcdir=$srcdir
28684 ac_abs_top_srcdir=$srcdir ;;
28685 *) # Relative name.
28686 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
28687 ac_top_srcdir=$ac_top_build_prefix$srcdir
28688 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
28689 esac
28690 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
28693 case $ac_mode in
28696 # CONFIG_FILE
28699 _ACEOF
28701 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
28702 # If the template does not know about datarootdir, expand it.
28703 # FIXME: This hack should be removed a few years after 2.60.
28704 ac_datarootdir_hack=; ac_datarootdir_seen=
28705 ac_sed_dataroot='
28706 /datarootdir/ {
28710 /@datadir@/p
28711 /@docdir@/p
28712 /@infodir@/p
28713 /@localedir@/p
28714 /@mandir@/p'
28715 case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
28716 *datarootdir*) ac_datarootdir_seen=yes;;
28717 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
28718 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
28719 $as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
28720 _ACEOF
28721 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
28722 ac_datarootdir_hack='
28723 s&@datadir@&$datadir&g
28724 s&@docdir@&$docdir&g
28725 s&@infodir@&$infodir&g
28726 s&@localedir@&$localedir&g
28727 s&@mandir@&$mandir&g
28728 s&\\\${datarootdir}&$datarootdir&g' ;;
28729 esac
28730 _ACEOF
28732 # Neutralize VPATH when `$srcdir' = `.'.
28733 # Shell code in configure.ac might set extrasub.
28734 # FIXME: do we really want to maintain this feature?
28735 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
28736 ac_sed_extra="$ac_vpsub
28737 $extrasub
28738 _ACEOF
28739 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
28741 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
28742 s|@configure_input@|$ac_sed_conf_input|;t t
28743 s&@top_builddir@&$ac_top_builddir_sub&;t t
28744 s&@top_build_prefix@&$ac_top_build_prefix&;t t
28745 s&@srcdir@&$ac_srcdir&;t t
28746 s&@abs_srcdir@&$ac_abs_srcdir&;t t
28747 s&@top_srcdir@&$ac_top_srcdir&;t t
28748 s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
28749 s&@builddir@&$ac_builddir&;t t
28750 s&@abs_builddir@&$ac_abs_builddir&;t t
28751 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
28752 $ac_datarootdir_hack
28754 eval sed \"\$ac_sed_extra\" "$ac_file_inputs" |
28755 if $ac_cs_awk_getline; then
28756 $AWK -f "$tmp/subs.awk"
28757 else
28758 $AWK -f "$tmp/subs.awk" | $SHELL
28759 fi >$tmp/out \
28760 || as_fn_error "could not create $ac_file" "$LINENO" 5
28762 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
28763 { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out"`; test -n "$ac_out"; } &&
28764 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' "$tmp/out"`; test -z "$ac_out"; } &&
28765 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
28766 which seems to be undefined. Please make sure it is defined." >&5
28767 $as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
28768 which seems to be undefined. Please make sure it is defined." >&2;}
28770 rm -f "$tmp/stdin"
28771 case $ac_file in
28772 -) cat "$tmp/out" && rm -f "$tmp/out";;
28773 *) rm -f "$ac_file" && mv "$tmp/out" "$ac_file";;
28774 esac \
28775 || as_fn_error "could not create $ac_file" "$LINENO" 5
28779 # CONFIG_HEADER
28781 if test x"$ac_file" != x-; then
28783 $as_echo "/* $configure_input */" \
28784 && eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs"
28785 } >"$tmp/config.h" \
28786 || as_fn_error "could not create $ac_file" "$LINENO" 5
28787 if diff "$ac_file" "$tmp/config.h" >/dev/null 2>&1; then
28788 { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
28789 $as_echo "$as_me: $ac_file is unchanged" >&6;}
28790 else
28791 rm -f "$ac_file"
28792 mv "$tmp/config.h" "$ac_file" \
28793 || as_fn_error "could not create $ac_file" "$LINENO" 5
28795 else
28796 $as_echo "/* $configure_input */" \
28797 && eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs" \
28798 || as_fn_error "could not create -" "$LINENO" 5
28802 :C) { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
28803 $as_echo "$as_me: executing $ac_file commands" >&6;}
28805 esac
28808 case $ac_file$ac_mode in
28809 "as":F) chmod +x as ;;
28810 "collect-ld":F) chmod +x collect-ld ;;
28811 "nm":F) chmod +x nm ;;
28812 "default":C)
28813 case ${CONFIG_HEADERS} in
28814 *auto-host.h:config.in*)
28815 echo > cstamp-h ;;
28816 esac
28817 # Make sure all the subdirs exist.
28818 for d in $subdirs doc build common c-family
28820 test -d $d || mkdir $d
28821 done
28824 esac
28825 done # for ac_tag
28828 as_fn_exit 0
28829 _ACEOF
28830 ac_clean_files=$ac_clean_files_save
28832 test $ac_write_fail = 0 ||
28833 as_fn_error "write failure creating $CONFIG_STATUS" "$LINENO" 5
28836 # configure is writing to config.log, and then calls config.status.
28837 # config.status does its own redirection, appending to config.log.
28838 # Unfortunately, on DOS this fails, as config.log is still kept open
28839 # by configure, so config.status won't be able to write to it; its
28840 # output is simply discarded. So we exec the FD to /dev/null,
28841 # effectively closing config.log, so it can be properly (re)opened and
28842 # appended to by config.status. When coming back to configure, we
28843 # need to make the FD available again.
28844 if test "$no_create" != yes; then
28845 ac_cs_success=:
28846 ac_config_status_args=
28847 test "$silent" = yes &&
28848 ac_config_status_args="$ac_config_status_args --quiet"
28849 exec 5>/dev/null
28850 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
28851 exec 5>>config.log
28852 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
28853 # would make configure fail if this is the last instruction.
28854 $ac_cs_success || as_fn_exit $?
28856 if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
28857 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
28858 $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}