Merged revisions 196716,196830,198094,198116,198502,198877,199007,199262,199319,19946...
[official-gcc.git] / main / gcc / configure
blobffa687470afc4363adb0439f313c6c8b3764108b
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 DO_LINK_MUTEX
674 MAINT
675 zlibinc
676 zlibdir
677 HOST_LIBS
678 libgcc_visibility
679 gcc_cv_readelf
680 gcc_cv_objdump
681 ORIGINAL_NM_FOR_TARGET
682 gcc_cv_nm
683 ORIGINAL_LD_FOR_TARGET
684 ORIGINAL_PLUGIN_LD_FOR_TARGET
685 gcc_cv_ld
686 ORIGINAL_AS_FOR_TARGET
687 gcc_cv_as
688 enable_fast_install
689 objdir
690 OTOOL64
691 OTOOL
692 LIPO
693 NMEDIT
694 DSYMUTIL
695 STRIP
696 OBJDUMP
697 ac_ct_DUMPBIN
698 DUMPBIN
700 FGREP
702 LIBTOOL
703 collect2
704 STMP_FIXINC
705 BUILD_LDFLAGS
706 BUILD_CXXFLAGS
707 BUILD_CFLAGS
708 CXX_FOR_BUILD
709 CC_FOR_BUILD
710 inhibit_libc
711 SYSTEM_HEADER_DIR
713 CROSS
714 CATOBJEXT
715 GENCAT
716 INSTOBJEXT
717 DATADIRNAME
718 CATALOGS
719 POSUB
720 GMSGFMT
721 XGETTEXT
722 INCINTL
723 LIBINTL_DEP
724 LIBINTL
725 USE_NLS
726 extra_opt_files
727 extra_modes_file
728 NATIVE_SYSTEM_HEADER_DIR
729 objext
730 manext
731 LIBICONV_DEP
732 LTLIBICONV
733 LIBICONV
734 LDEXP_LIB
735 EXTRA_GCC_LIBS
736 GNAT_LIBEXC
737 COLLECT2_LIBS
738 CCDEPMODE
739 DEPDIR
740 am__leading_dot
741 CXXCPP
744 BISON
745 FLEX
746 GENERATED_MANPAGES
747 BUILD_INFO
748 MAKEINFO
749 have_mktemp_command
750 make_compare_target
751 INSTALL_DATA
752 INSTALL_PROGRAM
753 INSTALL
754 ranlib_flags
755 RANLIB
757 LN_S
759 SET_MAKE
760 REPORT_BUGS_TEXI
761 REPORT_BUGS_TO
762 PKGVERSION
763 CONFIGURE_SPECS
764 CROSS_SYSTEM_HEADER_DIR
765 TARGET_SYSTEM_ROOT_DEFINE
766 TARGET_SYSTEM_ROOT
767 RUNTIME_ROOT_PREFIX_DEFINE
768 SYSROOT_CFLAGS_FOR_TARGET
769 enable_shared
770 enable_fixed_point
771 enable_decimal_float
772 with_float
773 with_cpu
774 enable_multiarch
775 enable_multilib
776 coverage_flags
777 valgrind_command
778 valgrind_path_defines
779 valgrind_path
780 TREECHECKING
781 TREEBROWSER
782 nocommon_flag
783 noexception_flags
784 warn_cxxflags
785 warn_cflags
786 c_strict_warn
787 strict_warn
788 c_loose_warn
789 loose_warn
790 EGREP
791 GREP
793 PICFLAG_FOR_TARGET
794 GNATMAKE
795 GNATBIND
796 ac_ct_CXX
797 CXXFLAGS
799 OBJEXT
800 EXEEXT
801 ac_ct_CC
802 CPPFLAGS
803 LDFLAGS
804 CFLAGS
806 GENINSRC
807 target_subdir
808 host_subdir
809 build_subdir
810 build_libsubdir
811 target_noncanonical
812 target_os
813 target_vendor
814 target_cpu
815 target
816 host_os
817 host_vendor
818 host_cpu
819 host
820 build_os
821 build_vendor
822 build_cpu
823 build
824 target_alias
825 host_alias
826 build_alias
827 LIBS
828 ECHO_T
829 ECHO_N
830 ECHO_C
831 DEFS
832 mandir
833 localedir
834 libdir
835 psdir
836 pdfdir
837 dvidir
838 htmldir
839 infodir
840 docdir
841 oldincludedir
842 includedir
843 localstatedir
844 sharedstatedir
845 sysconfdir
846 datadir
847 datarootdir
848 libexecdir
849 sbindir
850 bindir
851 program_transform_name
852 prefix
853 exec_prefix
854 PACKAGE_URL
855 PACKAGE_BUGREPORT
856 PACKAGE_STRING
857 PACKAGE_VERSION
858 PACKAGE_TARNAME
859 PACKAGE_NAME
860 PATH_SEPARATOR
861 SHELL'
862 ac_subst_files='option_includes
863 language_hooks'
864 ac_user_opts='
865 enable_option_checking
866 with_build_libsubdir
867 with_local_prefix
868 with_gxx_include_dir
869 with_cpp_install_dir
870 enable_generated_files_in_srcdir
871 with_gnu_ld
872 with_ld
873 with_demangler_in_ld
874 with_gnu_as
875 with_as
876 enable_largefile
877 enable_werror_always
878 enable_checking
879 enable_coverage
880 enable_gather_detailed_mem_stats
881 with_stabs
882 enable_multilib
883 enable_multiarch
884 enable___cxa_atexit
885 enable_decimal_float
886 enable_fixed_point
887 enable_threads
888 enable_tls
889 enable_objc_gc
890 with_dwarf2
891 enable_shared
892 with_native_system_header_dir
893 with_build_sysroot
894 with_runtime_root_prefix
895 with_sysroot
896 with_specs
897 with_pkgversion
898 with_bugurl
899 enable_languages
900 with_multilib_list
901 enable_rpath
902 with_libiconv_prefix
903 enable_sjlj_exceptions
904 enable_secureplt
905 enable_leading_mingw64_underscores
906 enable_cld
907 enable_frame_pointer
908 enable_win32_registry
909 enable_static
910 with_pic
911 enable_fast_install
912 enable_libtool_lock
913 with_plugin_ld
914 enable_gnu_indirect_function
915 enable_initfini_array
916 enable_comdat
917 enable_gnu_unique_object
918 enable_linker_build_id
919 with_long_double_128
920 with_gc
921 with_system_zlib
922 enable_maintainer_mode
923 enable_link_mutex
924 enable_version_specific_runtime_libs
925 enable_canonical_prefixes
926 enable_plugin
927 enable_libquadmath_support
928 with_warn_frame_larger_than_extra_text
929 with_linker_hash_style
931 ac_precious_vars='build_alias
932 host_alias
933 target_alias
935 CFLAGS
936 LDFLAGS
937 LIBS
938 CPPFLAGS
940 CXXFLAGS
943 CXXCPP
944 GMPLIBS
945 GMPINC
946 ISLLIBS
947 ISLINC
948 CLOOGLIBS
949 CLOOGINC'
952 # Initialize some variables set by options.
953 ac_init_help=
954 ac_init_version=false
955 ac_unrecognized_opts=
956 ac_unrecognized_sep=
957 # The variables have the same names as the options, with
958 # dashes changed to underlines.
959 cache_file=/dev/null
960 exec_prefix=NONE
961 no_create=
962 no_recursion=
963 prefix=NONE
964 program_prefix=NONE
965 program_suffix=NONE
966 program_transform_name=s,x,x,
967 silent=
968 site=
969 srcdir=
970 verbose=
971 x_includes=NONE
972 x_libraries=NONE
974 # Installation directory options.
975 # These are left unexpanded so users can "make install exec_prefix=/foo"
976 # and all the variables that are supposed to be based on exec_prefix
977 # by default will actually change.
978 # Use braces instead of parens because sh, perl, etc. also accept them.
979 # (The list follows the same order as the GNU Coding Standards.)
980 bindir='${exec_prefix}/bin'
981 sbindir='${exec_prefix}/sbin'
982 libexecdir='${exec_prefix}/libexec'
983 datarootdir='${prefix}/share'
984 datadir='${datarootdir}'
985 sysconfdir='${prefix}/etc'
986 sharedstatedir='${prefix}/com'
987 localstatedir='${prefix}/var'
988 includedir='${prefix}/include'
989 oldincludedir='/usr/include'
990 docdir='${datarootdir}/doc/${PACKAGE}'
991 infodir='${datarootdir}/info'
992 htmldir='${docdir}'
993 dvidir='${docdir}'
994 pdfdir='${docdir}'
995 psdir='${docdir}'
996 libdir='${exec_prefix}/lib'
997 localedir='${datarootdir}/locale'
998 mandir='${datarootdir}/man'
1000 ac_prev=
1001 ac_dashdash=
1002 for ac_option
1004 # If the previous option needs an argument, assign it.
1005 if test -n "$ac_prev"; then
1006 eval $ac_prev=\$ac_option
1007 ac_prev=
1008 continue
1011 case $ac_option in
1012 *=*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
1013 *) ac_optarg=yes ;;
1014 esac
1016 # Accept the important Cygnus configure options, so we can diagnose typos.
1018 case $ac_dashdash$ac_option in
1020 ac_dashdash=yes ;;
1022 -bindir | --bindir | --bindi | --bind | --bin | --bi)
1023 ac_prev=bindir ;;
1024 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
1025 bindir=$ac_optarg ;;
1027 -build | --build | --buil | --bui | --bu)
1028 ac_prev=build_alias ;;
1029 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
1030 build_alias=$ac_optarg ;;
1032 -cache-file | --cache-file | --cache-fil | --cache-fi \
1033 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
1034 ac_prev=cache_file ;;
1035 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
1036 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
1037 cache_file=$ac_optarg ;;
1039 --config-cache | -C)
1040 cache_file=config.cache ;;
1042 -datadir | --datadir | --datadi | --datad)
1043 ac_prev=datadir ;;
1044 -datadir=* | --datadir=* | --datadi=* | --datad=*)
1045 datadir=$ac_optarg ;;
1047 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
1048 | --dataroo | --dataro | --datar)
1049 ac_prev=datarootdir ;;
1050 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
1051 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
1052 datarootdir=$ac_optarg ;;
1054 -disable-* | --disable-*)
1055 ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
1056 # Reject names that are not valid shell variable names.
1057 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1058 as_fn_error "invalid feature name: $ac_useropt"
1059 ac_useropt_orig=$ac_useropt
1060 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1061 case $ac_user_opts in
1063 "enable_$ac_useropt"
1064 "*) ;;
1065 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
1066 ac_unrecognized_sep=', ';;
1067 esac
1068 eval enable_$ac_useropt=no ;;
1070 -docdir | --docdir | --docdi | --doc | --do)
1071 ac_prev=docdir ;;
1072 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
1073 docdir=$ac_optarg ;;
1075 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
1076 ac_prev=dvidir ;;
1077 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
1078 dvidir=$ac_optarg ;;
1080 -enable-* | --enable-*)
1081 ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
1082 # Reject names that are not valid shell variable names.
1083 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1084 as_fn_error "invalid feature name: $ac_useropt"
1085 ac_useropt_orig=$ac_useropt
1086 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1087 case $ac_user_opts in
1089 "enable_$ac_useropt"
1090 "*) ;;
1091 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
1092 ac_unrecognized_sep=', ';;
1093 esac
1094 eval enable_$ac_useropt=\$ac_optarg ;;
1096 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
1097 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
1098 | --exec | --exe | --ex)
1099 ac_prev=exec_prefix ;;
1100 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
1101 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
1102 | --exec=* | --exe=* | --ex=*)
1103 exec_prefix=$ac_optarg ;;
1105 -gas | --gas | --ga | --g)
1106 # Obsolete; use --with-gas.
1107 with_gas=yes ;;
1109 -help | --help | --hel | --he | -h)
1110 ac_init_help=long ;;
1111 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
1112 ac_init_help=recursive ;;
1113 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
1114 ac_init_help=short ;;
1116 -host | --host | --hos | --ho)
1117 ac_prev=host_alias ;;
1118 -host=* | --host=* | --hos=* | --ho=*)
1119 host_alias=$ac_optarg ;;
1121 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
1122 ac_prev=htmldir ;;
1123 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
1124 | --ht=*)
1125 htmldir=$ac_optarg ;;
1127 -includedir | --includedir | --includedi | --included | --include \
1128 | --includ | --inclu | --incl | --inc)
1129 ac_prev=includedir ;;
1130 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
1131 | --includ=* | --inclu=* | --incl=* | --inc=*)
1132 includedir=$ac_optarg ;;
1134 -infodir | --infodir | --infodi | --infod | --info | --inf)
1135 ac_prev=infodir ;;
1136 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
1137 infodir=$ac_optarg ;;
1139 -libdir | --libdir | --libdi | --libd)
1140 ac_prev=libdir ;;
1141 -libdir=* | --libdir=* | --libdi=* | --libd=*)
1142 libdir=$ac_optarg ;;
1144 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
1145 | --libexe | --libex | --libe)
1146 ac_prev=libexecdir ;;
1147 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
1148 | --libexe=* | --libex=* | --libe=*)
1149 libexecdir=$ac_optarg ;;
1151 -localedir | --localedir | --localedi | --localed | --locale)
1152 ac_prev=localedir ;;
1153 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
1154 localedir=$ac_optarg ;;
1156 -localstatedir | --localstatedir | --localstatedi | --localstated \
1157 | --localstate | --localstat | --localsta | --localst | --locals)
1158 ac_prev=localstatedir ;;
1159 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
1160 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
1161 localstatedir=$ac_optarg ;;
1163 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1164 ac_prev=mandir ;;
1165 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1166 mandir=$ac_optarg ;;
1168 -nfp | --nfp | --nf)
1169 # Obsolete; use --without-fp.
1170 with_fp=no ;;
1172 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1173 | --no-cr | --no-c | -n)
1174 no_create=yes ;;
1176 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1177 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1178 no_recursion=yes ;;
1180 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1181 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1182 | --oldin | --oldi | --old | --ol | --o)
1183 ac_prev=oldincludedir ;;
1184 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1185 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1186 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1187 oldincludedir=$ac_optarg ;;
1189 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1190 ac_prev=prefix ;;
1191 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1192 prefix=$ac_optarg ;;
1194 -program-prefix | --program-prefix | --program-prefi | --program-pref \
1195 | --program-pre | --program-pr | --program-p)
1196 ac_prev=program_prefix ;;
1197 -program-prefix=* | --program-prefix=* | --program-prefi=* \
1198 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1199 program_prefix=$ac_optarg ;;
1201 -program-suffix | --program-suffix | --program-suffi | --program-suff \
1202 | --program-suf | --program-su | --program-s)
1203 ac_prev=program_suffix ;;
1204 -program-suffix=* | --program-suffix=* | --program-suffi=* \
1205 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1206 program_suffix=$ac_optarg ;;
1208 -program-transform-name | --program-transform-name \
1209 | --program-transform-nam | --program-transform-na \
1210 | --program-transform-n | --program-transform- \
1211 | --program-transform | --program-transfor \
1212 | --program-transfo | --program-transf \
1213 | --program-trans | --program-tran \
1214 | --progr-tra | --program-tr | --program-t)
1215 ac_prev=program_transform_name ;;
1216 -program-transform-name=* | --program-transform-name=* \
1217 | --program-transform-nam=* | --program-transform-na=* \
1218 | --program-transform-n=* | --program-transform-=* \
1219 | --program-transform=* | --program-transfor=* \
1220 | --program-transfo=* | --program-transf=* \
1221 | --program-trans=* | --program-tran=* \
1222 | --progr-tra=* | --program-tr=* | --program-t=*)
1223 program_transform_name=$ac_optarg ;;
1225 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1226 ac_prev=pdfdir ;;
1227 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1228 pdfdir=$ac_optarg ;;
1230 -psdir | --psdir | --psdi | --psd | --ps)
1231 ac_prev=psdir ;;
1232 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1233 psdir=$ac_optarg ;;
1235 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1236 | -silent | --silent | --silen | --sile | --sil)
1237 silent=yes ;;
1239 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1240 ac_prev=sbindir ;;
1241 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1242 | --sbi=* | --sb=*)
1243 sbindir=$ac_optarg ;;
1245 -sharedstatedir | --sharedstatedir | --sharedstatedi \
1246 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1247 | --sharedst | --shareds | --shared | --share | --shar \
1248 | --sha | --sh)
1249 ac_prev=sharedstatedir ;;
1250 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1251 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1252 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1253 | --sha=* | --sh=*)
1254 sharedstatedir=$ac_optarg ;;
1256 -site | --site | --sit)
1257 ac_prev=site ;;
1258 -site=* | --site=* | --sit=*)
1259 site=$ac_optarg ;;
1261 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1262 ac_prev=srcdir ;;
1263 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1264 srcdir=$ac_optarg ;;
1266 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1267 | --syscon | --sysco | --sysc | --sys | --sy)
1268 ac_prev=sysconfdir ;;
1269 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1270 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1271 sysconfdir=$ac_optarg ;;
1273 -target | --target | --targe | --targ | --tar | --ta | --t)
1274 ac_prev=target_alias ;;
1275 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1276 target_alias=$ac_optarg ;;
1278 -v | -verbose | --verbose | --verbos | --verbo | --verb)
1279 verbose=yes ;;
1281 -version | --version | --versio | --versi | --vers | -V)
1282 ac_init_version=: ;;
1284 -with-* | --with-*)
1285 ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1286 # Reject names that are not valid shell variable names.
1287 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1288 as_fn_error "invalid package name: $ac_useropt"
1289 ac_useropt_orig=$ac_useropt
1290 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1291 case $ac_user_opts in
1293 "with_$ac_useropt"
1294 "*) ;;
1295 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1296 ac_unrecognized_sep=', ';;
1297 esac
1298 eval with_$ac_useropt=\$ac_optarg ;;
1300 -without-* | --without-*)
1301 ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1302 # Reject names that are not valid shell variable names.
1303 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1304 as_fn_error "invalid package name: $ac_useropt"
1305 ac_useropt_orig=$ac_useropt
1306 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1307 case $ac_user_opts in
1309 "with_$ac_useropt"
1310 "*) ;;
1311 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1312 ac_unrecognized_sep=', ';;
1313 esac
1314 eval with_$ac_useropt=no ;;
1316 --x)
1317 # Obsolete; use --with-x.
1318 with_x=yes ;;
1320 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1321 | --x-incl | --x-inc | --x-in | --x-i)
1322 ac_prev=x_includes ;;
1323 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1324 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1325 x_includes=$ac_optarg ;;
1327 -x-libraries | --x-libraries | --x-librarie | --x-librari \
1328 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1329 ac_prev=x_libraries ;;
1330 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1331 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1332 x_libraries=$ac_optarg ;;
1334 -*) as_fn_error "unrecognized option: \`$ac_option'
1335 Try \`$0 --help' for more information."
1338 *=*)
1339 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1340 # Reject names that are not valid shell variable names.
1341 case $ac_envvar in #(
1342 '' | [0-9]* | *[!_$as_cr_alnum]* )
1343 as_fn_error "invalid variable name: \`$ac_envvar'" ;;
1344 esac
1345 eval $ac_envvar=\$ac_optarg
1346 export $ac_envvar ;;
1349 # FIXME: should be removed in autoconf 3.0.
1350 $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1351 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1352 $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1353 : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
1356 esac
1357 done
1359 if test -n "$ac_prev"; then
1360 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1361 as_fn_error "missing argument to $ac_option"
1364 if test -n "$ac_unrecognized_opts"; then
1365 case $enable_option_checking in
1366 no) ;;
1367 fatal) as_fn_error "unrecognized options: $ac_unrecognized_opts" ;;
1368 *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1369 esac
1372 # Check all directory arguments for consistency.
1373 for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1374 datadir sysconfdir sharedstatedir localstatedir includedir \
1375 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1376 libdir localedir mandir
1378 eval ac_val=\$$ac_var
1379 # Remove trailing slashes.
1380 case $ac_val in
1381 */ )
1382 ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1383 eval $ac_var=\$ac_val;;
1384 esac
1385 # Be sure to have absolute directory names.
1386 case $ac_val in
1387 [\\/$]* | ?:[\\/]* ) continue;;
1388 NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1389 esac
1390 as_fn_error "expected an absolute directory name for --$ac_var: $ac_val"
1391 done
1393 # There might be people who depend on the old broken behavior: `$host'
1394 # used to hold the argument of --host etc.
1395 # FIXME: To remove some day.
1396 build=$build_alias
1397 host=$host_alias
1398 target=$target_alias
1400 # FIXME: To remove some day.
1401 if test "x$host_alias" != x; then
1402 if test "x$build_alias" = x; then
1403 cross_compiling=maybe
1404 $as_echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
1405 If a cross compiler is detected then cross compile mode will be used." >&2
1406 elif test "x$build_alias" != "x$host_alias"; then
1407 cross_compiling=yes
1411 ac_tool_prefix=
1412 test -n "$host_alias" && ac_tool_prefix=$host_alias-
1414 test "$silent" = yes && exec 6>/dev/null
1417 ac_pwd=`pwd` && test -n "$ac_pwd" &&
1418 ac_ls_di=`ls -di .` &&
1419 ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1420 as_fn_error "working directory cannot be determined"
1421 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1422 as_fn_error "pwd does not report name of working directory"
1425 # Find the source files, if location was not specified.
1426 if test -z "$srcdir"; then
1427 ac_srcdir_defaulted=yes
1428 # Try the directory containing this script, then the parent directory.
1429 ac_confdir=`$as_dirname -- "$as_myself" ||
1430 $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1431 X"$as_myself" : 'X\(//\)[^/]' \| \
1432 X"$as_myself" : 'X\(//\)$' \| \
1433 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1434 $as_echo X"$as_myself" |
1435 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1436 s//\1/
1439 /^X\(\/\/\)[^/].*/{
1440 s//\1/
1443 /^X\(\/\/\)$/{
1444 s//\1/
1447 /^X\(\/\).*/{
1448 s//\1/
1451 s/.*/./; q'`
1452 srcdir=$ac_confdir
1453 if test ! -r "$srcdir/$ac_unique_file"; then
1454 srcdir=..
1456 else
1457 ac_srcdir_defaulted=no
1459 if test ! -r "$srcdir/$ac_unique_file"; then
1460 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1461 as_fn_error "cannot find sources ($ac_unique_file) in $srcdir"
1463 ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1464 ac_abs_confdir=`(
1465 cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error "$ac_msg"
1466 pwd)`
1467 # When building in place, set srcdir=.
1468 if test "$ac_abs_confdir" = "$ac_pwd"; then
1469 srcdir=.
1471 # Remove unnecessary trailing slashes from srcdir.
1472 # Double slashes in file names in object file debugging info
1473 # mess up M-x gdb in Emacs.
1474 case $srcdir in
1475 */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1476 esac
1477 for ac_var in $ac_precious_vars; do
1478 eval ac_env_${ac_var}_set=\${${ac_var}+set}
1479 eval ac_env_${ac_var}_value=\$${ac_var}
1480 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1481 eval ac_cv_env_${ac_var}_value=\$${ac_var}
1482 done
1485 # Report the --help message.
1487 if test "$ac_init_help" = "long"; then
1488 # Omit some internal or obsolete options to make the list less imposing.
1489 # This message is too long to be a string in the A/UX 3.1 sh.
1490 cat <<_ACEOF
1491 \`configure' configures this package to adapt to many kinds of systems.
1493 Usage: $0 [OPTION]... [VAR=VALUE]...
1495 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1496 VAR=VALUE. See below for descriptions of some of the useful variables.
1498 Defaults for the options are specified in brackets.
1500 Configuration:
1501 -h, --help display this help and exit
1502 --help=short display options specific to this package
1503 --help=recursive display the short help of all the included packages
1504 -V, --version display version information and exit
1505 -q, --quiet, --silent do not print \`checking...' messages
1506 --cache-file=FILE cache test results in FILE [disabled]
1507 -C, --config-cache alias for \`--cache-file=config.cache'
1508 -n, --no-create do not create output files
1509 --srcdir=DIR find the sources in DIR [configure dir or \`..']
1511 Installation directories:
1512 --prefix=PREFIX install architecture-independent files in PREFIX
1513 [$ac_default_prefix]
1514 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
1515 [PREFIX]
1517 By default, \`make install' will install all the files in
1518 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1519 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1520 for instance \`--prefix=\$HOME'.
1522 For better control, use the options below.
1524 Fine tuning of the installation directories:
1525 --bindir=DIR user executables [EPREFIX/bin]
1526 --sbindir=DIR system admin executables [EPREFIX/sbin]
1527 --libexecdir=DIR program executables [EPREFIX/libexec]
1528 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1529 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1530 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1531 --libdir=DIR object code libraries [EPREFIX/lib]
1532 --includedir=DIR C header files [PREFIX/include]
1533 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1534 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1535 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1536 --infodir=DIR info documentation [DATAROOTDIR/info]
1537 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1538 --mandir=DIR man documentation [DATAROOTDIR/man]
1539 --docdir=DIR documentation root [DATAROOTDIR/doc/PACKAGE]
1540 --htmldir=DIR html documentation [DOCDIR]
1541 --dvidir=DIR dvi documentation [DOCDIR]
1542 --pdfdir=DIR pdf documentation [DOCDIR]
1543 --psdir=DIR ps documentation [DOCDIR]
1544 _ACEOF
1546 cat <<\_ACEOF
1548 Program names:
1549 --program-prefix=PREFIX prepend PREFIX to installed program names
1550 --program-suffix=SUFFIX append SUFFIX to installed program names
1551 --program-transform-name=PROGRAM run sed PROGRAM on installed program names
1553 System types:
1554 --build=BUILD configure for building on BUILD [guessed]
1555 --host=HOST cross-compile to build programs to run on HOST [BUILD]
1556 --target=TARGET configure for building compilers for TARGET [HOST]
1557 _ACEOF
1560 if test -n "$ac_init_help"; then
1562 cat <<\_ACEOF
1564 Optional Features:
1565 --disable-option-checking ignore unrecognized --enable/--with options
1566 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
1567 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
1568 --enable-generated-files-in-srcdir
1569 put copies of generated files in source dir intended
1570 for creating source tarballs for users without
1571 texinfo bison or flex
1572 --disable-largefile omit support for large files
1573 --enable-werror-always enable -Werror despite compiler version
1574 --enable-checking[=LIST]
1575 enable expensive run-time checks. With LIST, enable
1576 only specific categories of checks. Categories are:
1577 yes,no,all,none,release. Flags are:
1578 assert,df,fold,gc,gcac,gimple,misc,
1579 rtlflag,rtl,runtime,tree,valgrind,types
1580 --enable-coverage[=LEVEL]
1581 enable compiler's code coverage collection. Use to
1582 measure compiler performance and locate unused parts
1583 of the compiler. With LEVEL, specify optimization.
1584 Values are opt, noopt, default is noopt
1585 --enable-gather-detailed-mem-stats
1586 enable detailed memory allocation stats gathering
1587 --enable-multilib enable library support for multiple ABIs
1588 --enable-multiarch enable support for multiarch paths
1589 --enable-__cxa_atexit enable __cxa_atexit for C++
1590 --enable-decimal-float={no,yes,bid,dpd}
1591 enable decimal float extension to C. Selecting 'bid'
1592 or 'dpd' choses which decimal floating point format
1593 to use
1594 --enable-fixed-point enable fixed-point arithmetic extension to C
1595 --enable-threads[=LIB] enable thread usage for target GCC, using LIB thread
1596 package
1597 --enable-tls enable or disable generation of tls code overriding
1598 the assembler check for tls support
1599 --enable-objc-gc enable the use of Boehm's garbage collector with the
1600 GNU Objective-C runtime
1601 --disable-shared don't provide a shared libgcc
1602 --enable-languages=LIST specify which front-ends to build
1603 --disable-rpath do not hardcode runtime library paths
1604 --enable-sjlj-exceptions
1605 arrange to use setjmp/longjmp exception handling
1606 --enable-secureplt enable -msecure-plt by default for PowerPC
1607 --enable-leading-mingw64-underscores
1608 enable leading underscores on 64 bit mingw targets
1609 --enable-cld enable -mcld by default for 32bit x86
1610 --enable-frame-pointer enable -fno-omit-frame-pointer by default for 32bit
1612 --disable-win32-registry
1613 disable lookup of installation paths in the Registry
1614 on Windows hosts
1615 --enable-win32-registry enable registry lookup (default)
1616 --enable-win32-registry=KEY
1617 use KEY instead of GCC version as the last portion
1618 of the registry key
1619 --enable-shared[=PKGS] build shared libraries [default=yes]
1620 --enable-static[=PKGS] build static libraries [default=yes]
1621 --enable-fast-install[=PKGS]
1622 optimize for fast installation [default=yes]
1623 --disable-libtool-lock avoid locking (might break parallel builds)
1624 --enable-gnu-indirect-function
1625 enable the use of the @gnu_indirect_function to
1626 glibc systems
1627 --enable-initfini-array use .init_array/.fini_array sections
1628 --enable-comdat enable COMDAT group support
1629 --enable-gnu-unique-object
1630 enable the use of the @gnu_unique_object ELF
1631 extension on glibc systems
1632 --enable-linker-build-id
1633 compiler will always pass --build-id to linker
1634 --enable-maintainer-mode
1635 enable make rules and dependencies not useful (and
1636 sometimes confusing) to the casual installer
1637 --enable-link-mutex avoid linking multiple front-ends at once to avoid
1638 thrashing on the build machine
1639 --enable-version-specific-runtime-libs
1640 specify that runtime libraries should be installed
1641 in a compiler-specific directory
1642 --enable-canonical-prefixes
1643 enable or disable prefix canonicalization
1644 --enable-plugin enable plugin support
1645 --disable-libquadmath-support
1646 disable libquadmath support for Fortran
1648 Optional Packages:
1649 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1650 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
1651 --with-build-libsubdir=DIR Directory where to find libraries for build system
1652 --with-local-prefix=DIR specifies directory to put local include
1653 --with-gxx-include-dir=DIR
1654 specifies directory to put g++ header files
1655 --with-cpp-install-dir=DIR
1656 install the user visible C preprocessor in DIR
1657 (relative to PREFIX) as well as PREFIX/bin
1658 --with-gnu-ld arrange to work with GNU ld
1659 --with-ld arrange to use the specified ld (full pathname)
1660 --with-demangler-in-ld try to use demangler in GNU ld
1661 --with-gnu-as arrange to work with GNU as
1662 --with-as arrange to use the specified as (full pathname)
1663 --with-stabs arrange to use stabs instead of host debug format
1664 --with-dwarf2 force the default debug format to be DWARF 2
1665 --with-native-system-header-dir=dir
1666 use dir as the directory to look for standard
1667 system header files in. Defaults to /usr/include.
1668 --with-build-sysroot=sysroot
1669 use sysroot as the system root during the build
1670 --with-runtime-root-prefix=prefix
1671 prepend prefix to paths used by the compiler to
1672 name the dynamic linker and other files used at
1673 runtime. Defaults to empty (no prefix).
1674 --with-sysroot[=DIR] search for usr/lib, usr/include, et al, within DIR
1675 --with-specs=SPECS add SPECS to driver command-line processing
1676 --with-pkgversion=PKG Use PKG in the version string in place of "GCC"
1677 --with-bugurl=URL Direct users to URL to report a bug
1678 --with-multilib-list select multilibs (AArch64, SH and x86-64 only)
1679 --with-gnu-ld assume the C compiler uses GNU ld default=no
1680 --with-libiconv-prefix[=DIR] search for libiconv in DIR/include and DIR/lib
1681 --without-libiconv-prefix don't search for libiconv in includedir and libdir
1682 --with-pic try to use only PIC/non-PIC objects [default=use
1683 both]
1684 --with-gnu-ld assume the C compiler uses GNU ld [default=no]
1685 --with-plugin-ld=[ARG] specify the plugin linker
1686 --with-long-double-128 use 128-bit long double by default
1687 --with-gc={page,zone} this option is not supported anymore. It used to
1688 choose the garbage collection mechanism to use with
1689 the compiler
1690 --with-system-zlib use installed libz
1691 --with-warn-frame-larger-than-extra-text=TEXT
1692 specifies extra text for frame size warnings
1693 --with-linker-hash-style={sysv,gnu,both}
1694 specify the linker hash style
1696 Some influential environment variables:
1697 CC C compiler command
1698 CFLAGS C compiler flags
1699 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1700 nonstandard directory <lib dir>
1701 LIBS libraries to pass to the linker, e.g. -l<library>
1702 CPPFLAGS C/C++/Objective C preprocessor flags, e.g. -I<include dir> if
1703 you have headers in a nonstandard directory <include dir>
1704 CXX C++ compiler command
1705 CXXFLAGS C++ compiler flags
1706 CPP C preprocessor
1707 CXXCPP C++ preprocessor
1708 GMPLIBS How to link GMP
1709 GMPINC How to find GMP include files
1710 ISLLIBS How to link ISL
1711 ISLINC How to find ISL include files
1712 CLOOGLIBS How to link CLOOG
1713 CLOOGINC How to find CLOOG include files
1715 Use these variables to override the choices made by `configure' or to help
1716 it to find libraries and programs with nonstandard names/locations.
1718 Report bugs to the package provider.
1719 _ACEOF
1720 ac_status=$?
1723 if test "$ac_init_help" = "recursive"; then
1724 # If there are subdirs, report their specific --help.
1725 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1726 test -d "$ac_dir" ||
1727 { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1728 continue
1729 ac_builddir=.
1731 case "$ac_dir" in
1732 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1734 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
1735 # A ".." for each directory in $ac_dir_suffix.
1736 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
1737 case $ac_top_builddir_sub in
1738 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1739 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1740 esac ;;
1741 esac
1742 ac_abs_top_builddir=$ac_pwd
1743 ac_abs_builddir=$ac_pwd$ac_dir_suffix
1744 # for backward compatibility:
1745 ac_top_builddir=$ac_top_build_prefix
1747 case $srcdir in
1748 .) # We are building in place.
1749 ac_srcdir=.
1750 ac_top_srcdir=$ac_top_builddir_sub
1751 ac_abs_top_srcdir=$ac_pwd ;;
1752 [\\/]* | ?:[\\/]* ) # Absolute name.
1753 ac_srcdir=$srcdir$ac_dir_suffix;
1754 ac_top_srcdir=$srcdir
1755 ac_abs_top_srcdir=$srcdir ;;
1756 *) # Relative name.
1757 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1758 ac_top_srcdir=$ac_top_build_prefix$srcdir
1759 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1760 esac
1761 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1763 cd "$ac_dir" || { ac_status=$?; continue; }
1764 # Check for guested configure.
1765 if test -f "$ac_srcdir/configure.gnu"; then
1766 echo &&
1767 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1768 elif test -f "$ac_srcdir/configure"; then
1769 echo &&
1770 $SHELL "$ac_srcdir/configure" --help=recursive
1771 else
1772 $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1773 fi || ac_status=$?
1774 cd "$ac_pwd" || { ac_status=$?; break; }
1775 done
1778 test -n "$ac_init_help" && exit $ac_status
1779 if $ac_init_version; then
1780 cat <<\_ACEOF
1781 configure
1782 generated by GNU Autoconf 2.64
1784 Copyright (C) 2009 Free Software Foundation, Inc.
1785 This configure script is free software; the Free Software Foundation
1786 gives unlimited permission to copy, distribute and modify it.
1787 _ACEOF
1788 exit
1791 ## ------------------------ ##
1792 ## Autoconf initialization. ##
1793 ## ------------------------ ##
1795 # ac_fn_c_try_compile LINENO
1796 # --------------------------
1797 # Try to compile conftest.$ac_ext, and return whether this succeeded.
1798 ac_fn_c_try_compile ()
1800 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1801 rm -f conftest.$ac_objext
1802 if { { ac_try="$ac_compile"
1803 case "(($ac_try" in
1804 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1805 *) ac_try_echo=$ac_try;;
1806 esac
1807 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1808 $as_echo "$ac_try_echo"; } >&5
1809 (eval "$ac_compile") 2>conftest.err
1810 ac_status=$?
1811 if test -s conftest.err; then
1812 grep -v '^ *+' conftest.err >conftest.er1
1813 cat conftest.er1 >&5
1814 mv -f conftest.er1 conftest.err
1816 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1817 test $ac_status = 0; } && {
1818 test -z "$ac_c_werror_flag" ||
1819 test ! -s conftest.err
1820 } && test -s conftest.$ac_objext; then :
1821 ac_retval=0
1822 else
1823 $as_echo "$as_me: failed program was:" >&5
1824 sed 's/^/| /' conftest.$ac_ext >&5
1826 ac_retval=1
1828 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1829 return $ac_retval
1831 } # ac_fn_c_try_compile
1833 # ac_fn_cxx_try_compile LINENO
1834 # ----------------------------
1835 # Try to compile conftest.$ac_ext, and return whether this succeeded.
1836 ac_fn_cxx_try_compile ()
1838 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1839 rm -f conftest.$ac_objext
1840 if { { ac_try="$ac_compile"
1841 case "(($ac_try" in
1842 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1843 *) ac_try_echo=$ac_try;;
1844 esac
1845 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1846 $as_echo "$ac_try_echo"; } >&5
1847 (eval "$ac_compile") 2>conftest.err
1848 ac_status=$?
1849 if test -s conftest.err; then
1850 grep -v '^ *+' conftest.err >conftest.er1
1851 cat conftest.er1 >&5
1852 mv -f conftest.er1 conftest.err
1854 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1855 test $ac_status = 0; } && {
1856 test -z "$ac_cxx_werror_flag" ||
1857 test ! -s conftest.err
1858 } && test -s conftest.$ac_objext; then :
1859 ac_retval=0
1860 else
1861 $as_echo "$as_me: failed program was:" >&5
1862 sed 's/^/| /' conftest.$ac_ext >&5
1864 ac_retval=1
1866 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1867 return $ac_retval
1869 } # ac_fn_cxx_try_compile
1871 # ac_fn_c_try_cpp LINENO
1872 # ----------------------
1873 # Try to preprocess conftest.$ac_ext, and return whether this succeeded.
1874 ac_fn_c_try_cpp ()
1876 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1877 if { { ac_try="$ac_cpp conftest.$ac_ext"
1878 case "(($ac_try" in
1879 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1880 *) ac_try_echo=$ac_try;;
1881 esac
1882 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1883 $as_echo "$ac_try_echo"; } >&5
1884 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
1885 ac_status=$?
1886 if test -s conftest.err; then
1887 grep -v '^ *+' conftest.err >conftest.er1
1888 cat conftest.er1 >&5
1889 mv -f conftest.er1 conftest.err
1891 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1892 test $ac_status = 0; } >/dev/null && {
1893 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
1894 test ! -s conftest.err
1895 }; then :
1896 ac_retval=0
1897 else
1898 $as_echo "$as_me: failed program was:" >&5
1899 sed 's/^/| /' conftest.$ac_ext >&5
1901 ac_retval=1
1903 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1904 return $ac_retval
1906 } # ac_fn_c_try_cpp
1908 # ac_fn_c_check_header_mongrel LINENO HEADER VAR INCLUDES
1909 # -------------------------------------------------------
1910 # Tests whether HEADER exists, giving a warning if it cannot be compiled using
1911 # the include files in INCLUDES and setting the cache variable VAR
1912 # accordingly.
1913 ac_fn_c_check_header_mongrel ()
1915 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1916 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
1917 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1918 $as_echo_n "checking for $2... " >&6; }
1919 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
1920 $as_echo_n "(cached) " >&6
1922 eval ac_res=\$$3
1923 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1924 $as_echo "$ac_res" >&6; }
1925 else
1926 # Is the header compilable?
1927 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5
1928 $as_echo_n "checking $2 usability... " >&6; }
1929 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1930 /* end confdefs.h. */
1932 #include <$2>
1933 _ACEOF
1934 if ac_fn_c_try_compile "$LINENO"; then :
1935 ac_header_compiler=yes
1936 else
1937 ac_header_compiler=no
1939 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1940 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5
1941 $as_echo "$ac_header_compiler" >&6; }
1943 # Is the header present?
1944 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5
1945 $as_echo_n "checking $2 presence... " >&6; }
1946 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1947 /* end confdefs.h. */
1948 #include <$2>
1949 _ACEOF
1950 if ac_fn_c_try_cpp "$LINENO"; then :
1951 ac_header_preproc=yes
1952 else
1953 ac_header_preproc=no
1955 rm -f conftest.err conftest.$ac_ext
1956 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5
1957 $as_echo "$ac_header_preproc" >&6; }
1959 # So? What about this header?
1960 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in #((
1961 yes:no: )
1962 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5
1963 $as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;}
1964 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
1965 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
1967 no:yes:* )
1968 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5
1969 $as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;}
1970 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: check for missing prerequisite headers?" >&5
1971 $as_echo "$as_me: WARNING: $2: check for missing prerequisite headers?" >&2;}
1972 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5
1973 $as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;}
1974 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&5
1975 $as_echo "$as_me: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&2;}
1976 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
1977 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
1979 esac
1980 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1981 $as_echo_n "checking for $2... " >&6; }
1982 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
1983 $as_echo_n "(cached) " >&6
1984 else
1985 eval "$3=\$ac_header_compiler"
1987 eval ac_res=\$$3
1988 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1989 $as_echo "$ac_res" >&6; }
1991 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1993 } # ac_fn_c_check_header_mongrel
1995 # ac_fn_c_try_run LINENO
1996 # ----------------------
1997 # Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
1998 # that executables *can* be run.
1999 ac_fn_c_try_run ()
2001 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2002 if { { ac_try="$ac_link"
2003 case "(($ac_try" in
2004 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2005 *) ac_try_echo=$ac_try;;
2006 esac
2007 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2008 $as_echo "$ac_try_echo"; } >&5
2009 (eval "$ac_link") 2>&5
2010 ac_status=$?
2011 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2012 test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
2013 { { case "(($ac_try" in
2014 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2015 *) ac_try_echo=$ac_try;;
2016 esac
2017 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2018 $as_echo "$ac_try_echo"; } >&5
2019 (eval "$ac_try") 2>&5
2020 ac_status=$?
2021 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2022 test $ac_status = 0; }; }; then :
2023 ac_retval=0
2024 else
2025 $as_echo "$as_me: program exited with status $ac_status" >&5
2026 $as_echo "$as_me: failed program was:" >&5
2027 sed 's/^/| /' conftest.$ac_ext >&5
2029 ac_retval=$ac_status
2031 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
2032 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2033 return $ac_retval
2035 } # ac_fn_c_try_run
2037 # ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
2038 # -------------------------------------------------------
2039 # Tests whether HEADER exists and can be compiled using the include files in
2040 # INCLUDES, setting the cache variable VAR accordingly.
2041 ac_fn_c_check_header_compile ()
2043 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2044 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2045 $as_echo_n "checking for $2... " >&6; }
2046 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
2047 $as_echo_n "(cached) " >&6
2048 else
2049 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2050 /* end confdefs.h. */
2052 #include <$2>
2053 _ACEOF
2054 if ac_fn_c_try_compile "$LINENO"; then :
2055 eval "$3=yes"
2056 else
2057 eval "$3=no"
2059 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2061 eval ac_res=\$$3
2062 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2063 $as_echo "$ac_res" >&6; }
2064 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2066 } # ac_fn_c_check_header_compile
2068 # ac_fn_c_compute_int LINENO EXPR VAR INCLUDES
2069 # --------------------------------------------
2070 # Tries to find the compile-time value of EXPR in a program that includes
2071 # INCLUDES, setting VAR accordingly. Returns whether the value could be
2072 # computed
2073 ac_fn_c_compute_int ()
2075 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2076 if test "$cross_compiling" = yes; then
2077 # Depending upon the size, compute the lo and hi bounds.
2078 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2079 /* end confdefs.h. */
2082 main ()
2084 static int test_array [1 - 2 * !(($2) >= 0)];
2085 test_array [0] = 0
2088 return 0;
2090 _ACEOF
2091 if ac_fn_c_try_compile "$LINENO"; then :
2092 ac_lo=0 ac_mid=0
2093 while :; do
2094 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2095 /* end confdefs.h. */
2098 main ()
2100 static int test_array [1 - 2 * !(($2) <= $ac_mid)];
2101 test_array [0] = 0
2104 return 0;
2106 _ACEOF
2107 if ac_fn_c_try_compile "$LINENO"; then :
2108 ac_hi=$ac_mid; break
2109 else
2110 as_fn_arith $ac_mid + 1 && ac_lo=$as_val
2111 if test $ac_lo -le $ac_mid; then
2112 ac_lo= ac_hi=
2113 break
2115 as_fn_arith 2 '*' $ac_mid + 1 && ac_mid=$as_val
2117 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2118 done
2119 else
2120 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2121 /* end confdefs.h. */
2124 main ()
2126 static int test_array [1 - 2 * !(($2) < 0)];
2127 test_array [0] = 0
2130 return 0;
2132 _ACEOF
2133 if ac_fn_c_try_compile "$LINENO"; then :
2134 ac_hi=-1 ac_mid=-1
2135 while :; do
2136 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2137 /* end confdefs.h. */
2140 main ()
2142 static int test_array [1 - 2 * !(($2) >= $ac_mid)];
2143 test_array [0] = 0
2146 return 0;
2148 _ACEOF
2149 if ac_fn_c_try_compile "$LINENO"; then :
2150 ac_lo=$ac_mid; break
2151 else
2152 as_fn_arith '(' $ac_mid ')' - 1 && ac_hi=$as_val
2153 if test $ac_mid -le $ac_hi; then
2154 ac_lo= ac_hi=
2155 break
2157 as_fn_arith 2 '*' $ac_mid && ac_mid=$as_val
2159 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2160 done
2161 else
2162 ac_lo= ac_hi=
2164 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2166 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2167 # Binary search between lo and hi bounds.
2168 while test "x$ac_lo" != "x$ac_hi"; do
2169 as_fn_arith '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo && ac_mid=$as_val
2170 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2171 /* end confdefs.h. */
2174 main ()
2176 static int test_array [1 - 2 * !(($2) <= $ac_mid)];
2177 test_array [0] = 0
2180 return 0;
2182 _ACEOF
2183 if ac_fn_c_try_compile "$LINENO"; then :
2184 ac_hi=$ac_mid
2185 else
2186 as_fn_arith '(' $ac_mid ')' + 1 && ac_lo=$as_val
2188 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2189 done
2190 case $ac_lo in #((
2191 ?*) eval "$3=\$ac_lo"; ac_retval=0 ;;
2192 '') ac_retval=1 ;;
2193 esac
2194 else
2195 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2196 /* end confdefs.h. */
2198 static long int longval () { return $2; }
2199 static unsigned long int ulongval () { return $2; }
2200 #include <stdio.h>
2201 #include <stdlib.h>
2203 main ()
2206 FILE *f = fopen ("conftest.val", "w");
2207 if (! f)
2208 return 1;
2209 if (($2) < 0)
2211 long int i = longval ();
2212 if (i != ($2))
2213 return 1;
2214 fprintf (f, "%ld", i);
2216 else
2218 unsigned long int i = ulongval ();
2219 if (i != ($2))
2220 return 1;
2221 fprintf (f, "%lu", i);
2223 /* Do not output a trailing newline, as this causes \r\n confusion
2224 on some platforms. */
2225 return ferror (f) || fclose (f) != 0;
2228 return 0;
2230 _ACEOF
2231 if ac_fn_c_try_run "$LINENO"; then :
2232 echo >>conftest.val; read $3 <conftest.val; ac_retval=0
2233 else
2234 ac_retval=1
2236 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
2237 conftest.$ac_objext conftest.beam conftest.$ac_ext
2238 rm -f conftest.val
2241 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2242 return $ac_retval
2244 } # ac_fn_c_compute_int
2246 # ac_fn_c_check_type LINENO TYPE VAR INCLUDES
2247 # -------------------------------------------
2248 # Tests whether TYPE exists after having included INCLUDES, setting cache
2249 # variable VAR accordingly.
2250 ac_fn_c_check_type ()
2252 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2253 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2254 $as_echo_n "checking for $2... " >&6; }
2255 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
2256 $as_echo_n "(cached) " >&6
2257 else
2258 eval "$3=no"
2259 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2260 /* end confdefs.h. */
2263 main ()
2265 if (sizeof ($2))
2266 return 0;
2268 return 0;
2270 _ACEOF
2271 if ac_fn_c_try_compile "$LINENO"; then :
2272 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2273 /* end confdefs.h. */
2276 main ()
2278 if (sizeof (($2)))
2279 return 0;
2281 return 0;
2283 _ACEOF
2284 if ac_fn_c_try_compile "$LINENO"; then :
2286 else
2287 eval "$3=yes"
2289 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2291 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2293 eval ac_res=\$$3
2294 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2295 $as_echo "$ac_res" >&6; }
2296 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2298 } # ac_fn_c_check_type
2300 # ac_fn_c_find_intX_t LINENO BITS VAR
2301 # -----------------------------------
2302 # Finds a signed integer type with width BITS, setting cache variable VAR
2303 # accordingly.
2304 ac_fn_c_find_intX_t ()
2306 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2307 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for int$2_t" >&5
2308 $as_echo_n "checking for int$2_t... " >&6; }
2309 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
2310 $as_echo_n "(cached) " >&6
2311 else
2312 eval "$3=no"
2313 for ac_type in int$2_t 'int' 'long int' \
2314 'long long int' 'short int' 'signed char'; do
2315 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2316 /* end confdefs.h. */
2317 $ac_includes_default
2319 main ()
2321 static int test_array [1 - 2 * !(0 < ($ac_type) (((($ac_type) 1 << ($2 - 2)) - 1) * 2 + 1))];
2322 test_array [0] = 0
2325 return 0;
2327 _ACEOF
2328 if ac_fn_c_try_compile "$LINENO"; then :
2329 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2330 /* end confdefs.h. */
2331 $ac_includes_default
2333 main ()
2335 static int test_array [1 - 2 * !(($ac_type) (((($ac_type) 1 << ($2 - 2)) - 1) * 2 + 1)
2336 < ($ac_type) (((($ac_type) 1 << ($2 - 2)) - 1) * 2 + 2))];
2337 test_array [0] = 0
2340 return 0;
2342 _ACEOF
2343 if ac_fn_c_try_compile "$LINENO"; then :
2345 else
2346 case $ac_type in #(
2347 int$2_t) :
2348 eval "$3=yes" ;; #(
2349 *) :
2350 eval "$3=\$ac_type" ;;
2351 esac
2353 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2355 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2356 eval as_val=\$$3
2357 if test "x$as_val" = x""no; then :
2359 else
2360 break
2362 done
2364 eval ac_res=\$$3
2365 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2366 $as_echo "$ac_res" >&6; }
2367 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2369 } # ac_fn_c_find_intX_t
2371 # ac_fn_c_try_link LINENO
2372 # -----------------------
2373 # Try to link conftest.$ac_ext, and return whether this succeeded.
2374 ac_fn_c_try_link ()
2376 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2377 rm -f conftest.$ac_objext conftest$ac_exeext
2378 if { { ac_try="$ac_link"
2379 case "(($ac_try" in
2380 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2381 *) ac_try_echo=$ac_try;;
2382 esac
2383 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2384 $as_echo "$ac_try_echo"; } >&5
2385 (eval "$ac_link") 2>conftest.err
2386 ac_status=$?
2387 if test -s conftest.err; then
2388 grep -v '^ *+' conftest.err >conftest.er1
2389 cat conftest.er1 >&5
2390 mv -f conftest.er1 conftest.err
2392 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2393 test $ac_status = 0; } && {
2394 test -z "$ac_c_werror_flag" ||
2395 test ! -s conftest.err
2396 } && test -s conftest$ac_exeext && {
2397 test "$cross_compiling" = yes ||
2398 $as_test_x conftest$ac_exeext
2399 }; then :
2400 ac_retval=0
2401 else
2402 $as_echo "$as_me: failed program was:" >&5
2403 sed 's/^/| /' conftest.$ac_ext >&5
2405 ac_retval=1
2407 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
2408 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
2409 # interfere with the next link command; also delete a directory that is
2410 # left behind by Apple's compiler. We do this before executing the actions.
2411 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
2412 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2413 return $ac_retval
2415 } # ac_fn_c_try_link
2417 # ac_fn_c_find_uintX_t LINENO BITS VAR
2418 # ------------------------------------
2419 # Finds an unsigned integer type with width BITS, setting cache variable VAR
2420 # accordingly.
2421 ac_fn_c_find_uintX_t ()
2423 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2424 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for uint$2_t" >&5
2425 $as_echo_n "checking for uint$2_t... " >&6; }
2426 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
2427 $as_echo_n "(cached) " >&6
2428 else
2429 eval "$3=no"
2430 for ac_type in uint$2_t 'unsigned int' 'unsigned long int' \
2431 'unsigned long long int' 'unsigned short int' 'unsigned char'; do
2432 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2433 /* end confdefs.h. */
2434 $ac_includes_default
2436 main ()
2438 static int test_array [1 - 2 * !(($ac_type) -1 >> ($2 - 1) == 1)];
2439 test_array [0] = 0
2442 return 0;
2444 _ACEOF
2445 if ac_fn_c_try_compile "$LINENO"; then :
2446 case $ac_type in #(
2447 uint$2_t) :
2448 eval "$3=yes" ;; #(
2449 *) :
2450 eval "$3=\$ac_type" ;;
2451 esac
2453 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2454 eval as_val=\$$3
2455 if test "x$as_val" = x""no; then :
2457 else
2458 break
2460 done
2462 eval ac_res=\$$3
2463 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2464 $as_echo "$ac_res" >&6; }
2465 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2467 } # ac_fn_c_find_uintX_t
2469 # ac_fn_c_check_header_preproc LINENO HEADER VAR
2470 # ----------------------------------------------
2471 # Tests whether HEADER is present, setting the cache variable VAR accordingly.
2472 ac_fn_c_check_header_preproc ()
2474 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2475 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2476 $as_echo_n "checking for $2... " >&6; }
2477 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
2478 $as_echo_n "(cached) " >&6
2479 else
2480 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2481 /* end confdefs.h. */
2482 #include <$2>
2483 _ACEOF
2484 if ac_fn_c_try_cpp "$LINENO"; then :
2485 eval "$3=yes"
2486 else
2487 eval "$3=no"
2489 rm -f conftest.err conftest.$ac_ext
2491 eval ac_res=\$$3
2492 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2493 $as_echo "$ac_res" >&6; }
2494 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2496 } # ac_fn_c_check_header_preproc
2498 # ac_fn_cxx_try_cpp LINENO
2499 # ------------------------
2500 # Try to preprocess conftest.$ac_ext, and return whether this succeeded.
2501 ac_fn_cxx_try_cpp ()
2503 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2504 if { { ac_try="$ac_cpp conftest.$ac_ext"
2505 case "(($ac_try" in
2506 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2507 *) ac_try_echo=$ac_try;;
2508 esac
2509 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2510 $as_echo "$ac_try_echo"; } >&5
2511 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
2512 ac_status=$?
2513 if test -s conftest.err; then
2514 grep -v '^ *+' conftest.err >conftest.er1
2515 cat conftest.er1 >&5
2516 mv -f conftest.er1 conftest.err
2518 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2519 test $ac_status = 0; } >/dev/null && {
2520 test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
2521 test ! -s conftest.err
2522 }; then :
2523 ac_retval=0
2524 else
2525 $as_echo "$as_me: failed program was:" >&5
2526 sed 's/^/| /' conftest.$ac_ext >&5
2528 ac_retval=1
2530 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2531 return $ac_retval
2533 } # ac_fn_cxx_try_cpp
2535 # ac_fn_cxx_check_header_preproc LINENO HEADER VAR
2536 # ------------------------------------------------
2537 # Tests whether HEADER is present, setting the cache variable VAR accordingly.
2538 ac_fn_cxx_check_header_preproc ()
2540 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2541 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2542 $as_echo_n "checking for $2... " >&6; }
2543 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
2544 $as_echo_n "(cached) " >&6
2545 else
2546 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2547 /* end confdefs.h. */
2548 #include <$2>
2549 _ACEOF
2550 if ac_fn_cxx_try_cpp "$LINENO"; then :
2551 eval "$3=yes"
2552 else
2553 eval "$3=no"
2555 rm -f conftest.err conftest.$ac_ext
2557 eval ac_res=\$$3
2558 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2559 $as_echo "$ac_res" >&6; }
2560 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2562 } # ac_fn_cxx_check_header_preproc
2564 # ac_fn_c_check_func LINENO FUNC VAR
2565 # ----------------------------------
2566 # Tests whether FUNC exists, setting the cache variable VAR accordingly
2567 ac_fn_c_check_func ()
2569 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2570 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2571 $as_echo_n "checking for $2... " >&6; }
2572 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
2573 $as_echo_n "(cached) " >&6
2574 else
2575 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2576 /* end confdefs.h. */
2577 /* Define $2 to an innocuous variant, in case <limits.h> declares $2.
2578 For example, HP-UX 11i <limits.h> declares gettimeofday. */
2579 #define $2 innocuous_$2
2581 /* System header to define __stub macros and hopefully few prototypes,
2582 which can conflict with char $2 (); below.
2583 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
2584 <limits.h> exists even on freestanding compilers. */
2586 #ifdef __STDC__
2587 # include <limits.h>
2588 #else
2589 # include <assert.h>
2590 #endif
2592 #undef $2
2594 /* Override any GCC internal prototype to avoid an error.
2595 Use char because int might match the return type of a GCC
2596 builtin and then its argument prototype would still apply. */
2597 #ifdef __cplusplus
2598 extern "C"
2599 #endif
2600 char $2 ();
2601 /* The GNU C library defines this for functions which it implements
2602 to always fail with ENOSYS. Some functions are actually named
2603 something starting with __ and the normal name is an alias. */
2604 #if defined __stub_$2 || defined __stub___$2
2605 choke me
2606 #endif
2609 main ()
2611 return $2 ();
2613 return 0;
2615 _ACEOF
2616 if ac_fn_c_try_link "$LINENO"; then :
2617 eval "$3=yes"
2618 else
2619 eval "$3=no"
2621 rm -f core conftest.err conftest.$ac_objext \
2622 conftest$ac_exeext conftest.$ac_ext
2624 eval ac_res=\$$3
2625 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2626 $as_echo "$ac_res" >&6; }
2627 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2629 } # ac_fn_c_check_func
2631 # ac_fn_cxx_try_link LINENO
2632 # -------------------------
2633 # Try to link conftest.$ac_ext, and return whether this succeeded.
2634 ac_fn_cxx_try_link ()
2636 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2637 rm -f conftest.$ac_objext conftest$ac_exeext
2638 if { { ac_try="$ac_link"
2639 case "(($ac_try" in
2640 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2641 *) ac_try_echo=$ac_try;;
2642 esac
2643 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2644 $as_echo "$ac_try_echo"; } >&5
2645 (eval "$ac_link") 2>conftest.err
2646 ac_status=$?
2647 if test -s conftest.err; then
2648 grep -v '^ *+' conftest.err >conftest.er1
2649 cat conftest.er1 >&5
2650 mv -f conftest.er1 conftest.err
2652 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2653 test $ac_status = 0; } && {
2654 test -z "$ac_cxx_werror_flag" ||
2655 test ! -s conftest.err
2656 } && test -s conftest$ac_exeext && {
2657 test "$cross_compiling" = yes ||
2658 $as_test_x conftest$ac_exeext
2659 }; then :
2660 ac_retval=0
2661 else
2662 $as_echo "$as_me: failed program was:" >&5
2663 sed 's/^/| /' conftest.$ac_ext >&5
2665 ac_retval=1
2667 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
2668 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
2669 # interfere with the next link command; also delete a directory that is
2670 # left behind by Apple's compiler. We do this before executing the actions.
2671 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
2672 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2673 return $ac_retval
2675 } # ac_fn_cxx_try_link
2676 cat >config.log <<_ACEOF
2677 This file contains any messages produced by compilers while
2678 running configure, to aid debugging if configure makes a mistake.
2680 It was created by $as_me, which was
2681 generated by GNU Autoconf 2.64. Invocation command line was
2683 $ $0 $@
2685 _ACEOF
2686 exec 5>>config.log
2688 cat <<_ASUNAME
2689 ## --------- ##
2690 ## Platform. ##
2691 ## --------- ##
2693 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
2694 uname -m = `(uname -m) 2>/dev/null || echo unknown`
2695 uname -r = `(uname -r) 2>/dev/null || echo unknown`
2696 uname -s = `(uname -s) 2>/dev/null || echo unknown`
2697 uname -v = `(uname -v) 2>/dev/null || echo unknown`
2699 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
2700 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
2702 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
2703 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
2704 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
2705 /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
2706 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
2707 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
2708 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
2710 _ASUNAME
2712 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2713 for as_dir in $PATH
2715 IFS=$as_save_IFS
2716 test -z "$as_dir" && as_dir=.
2717 $as_echo "PATH: $as_dir"
2718 done
2719 IFS=$as_save_IFS
2721 } >&5
2723 cat >&5 <<_ACEOF
2726 ## ----------- ##
2727 ## Core tests. ##
2728 ## ----------- ##
2730 _ACEOF
2733 # Keep a trace of the command line.
2734 # Strip out --no-create and --no-recursion so they do not pile up.
2735 # Strip out --silent because we don't want to record it for future runs.
2736 # Also quote any args containing shell meta-characters.
2737 # Make two passes to allow for proper duplicate-argument suppression.
2738 ac_configure_args=
2739 ac_configure_args0=
2740 ac_configure_args1=
2741 ac_must_keep_next=false
2742 for ac_pass in 1 2
2744 for ac_arg
2746 case $ac_arg in
2747 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
2748 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
2749 | -silent | --silent | --silen | --sile | --sil)
2750 continue ;;
2751 *\'*)
2752 ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
2753 esac
2754 case $ac_pass in
2755 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
2757 as_fn_append ac_configure_args1 " '$ac_arg'"
2758 if test $ac_must_keep_next = true; then
2759 ac_must_keep_next=false # Got value, back to normal.
2760 else
2761 case $ac_arg in
2762 *=* | --config-cache | -C | -disable-* | --disable-* \
2763 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
2764 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
2765 | -with-* | --with-* | -without-* | --without-* | --x)
2766 case "$ac_configure_args0 " in
2767 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
2768 esac
2770 -* ) ac_must_keep_next=true ;;
2771 esac
2773 as_fn_append ac_configure_args " '$ac_arg'"
2775 esac
2776 done
2777 done
2778 { ac_configure_args0=; unset ac_configure_args0;}
2779 { ac_configure_args1=; unset ac_configure_args1;}
2781 # When interrupted or exit'd, cleanup temporary files, and complete
2782 # config.log. We remove comments because anyway the quotes in there
2783 # would cause problems or look ugly.
2784 # WARNING: Use '\'' to represent an apostrophe within the trap.
2785 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
2786 trap 'exit_status=$?
2787 # Save into config.log some information that might help in debugging.
2789 echo
2791 cat <<\_ASBOX
2792 ## ---------------- ##
2793 ## Cache variables. ##
2794 ## ---------------- ##
2795 _ASBOX
2796 echo
2797 # The following way of writing the cache mishandles newlines in values,
2799 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
2800 eval ac_val=\$$ac_var
2801 case $ac_val in #(
2802 *${as_nl}*)
2803 case $ac_var in #(
2804 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
2805 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
2806 esac
2807 case $ac_var in #(
2808 _ | IFS | as_nl) ;; #(
2809 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
2810 *) { eval $ac_var=; unset $ac_var;} ;;
2811 esac ;;
2812 esac
2813 done
2814 (set) 2>&1 |
2815 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
2816 *${as_nl}ac_space=\ *)
2817 sed -n \
2818 "s/'\''/'\''\\\\'\'''\''/g;
2819 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
2820 ;; #(
2822 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
2824 esac |
2825 sort
2827 echo
2829 cat <<\_ASBOX
2830 ## ----------------- ##
2831 ## Output variables. ##
2832 ## ----------------- ##
2833 _ASBOX
2834 echo
2835 for ac_var in $ac_subst_vars
2837 eval ac_val=\$$ac_var
2838 case $ac_val in
2839 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2840 esac
2841 $as_echo "$ac_var='\''$ac_val'\''"
2842 done | sort
2843 echo
2845 if test -n "$ac_subst_files"; then
2846 cat <<\_ASBOX
2847 ## ------------------- ##
2848 ## File substitutions. ##
2849 ## ------------------- ##
2850 _ASBOX
2851 echo
2852 for ac_var in $ac_subst_files
2854 eval ac_val=\$$ac_var
2855 case $ac_val in
2856 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2857 esac
2858 $as_echo "$ac_var='\''$ac_val'\''"
2859 done | sort
2860 echo
2863 if test -s confdefs.h; then
2864 cat <<\_ASBOX
2865 ## ----------- ##
2866 ## confdefs.h. ##
2867 ## ----------- ##
2868 _ASBOX
2869 echo
2870 cat confdefs.h
2871 echo
2873 test "$ac_signal" != 0 &&
2874 $as_echo "$as_me: caught signal $ac_signal"
2875 $as_echo "$as_me: exit $exit_status"
2876 } >&5
2877 rm -f core *.core core.conftest.* &&
2878 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
2879 exit $exit_status
2881 for ac_signal in 1 2 13 15; do
2882 trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
2883 done
2884 ac_signal=0
2886 # confdefs.h avoids OS command line length limits that DEFS can exceed.
2887 rm -f -r conftest* confdefs.h
2889 $as_echo "/* confdefs.h */" > confdefs.h
2891 # Predefined preprocessor variables.
2893 cat >>confdefs.h <<_ACEOF
2894 #define PACKAGE_NAME "$PACKAGE_NAME"
2895 _ACEOF
2897 cat >>confdefs.h <<_ACEOF
2898 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
2899 _ACEOF
2901 cat >>confdefs.h <<_ACEOF
2902 #define PACKAGE_VERSION "$PACKAGE_VERSION"
2903 _ACEOF
2905 cat >>confdefs.h <<_ACEOF
2906 #define PACKAGE_STRING "$PACKAGE_STRING"
2907 _ACEOF
2909 cat >>confdefs.h <<_ACEOF
2910 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
2911 _ACEOF
2913 cat >>confdefs.h <<_ACEOF
2914 #define PACKAGE_URL "$PACKAGE_URL"
2915 _ACEOF
2918 # Let the site file select an alternate cache file if it wants to.
2919 # Prefer an explicitly selected file to automatically selected ones.
2920 ac_site_file1=NONE
2921 ac_site_file2=NONE
2922 if test -n "$CONFIG_SITE"; then
2923 ac_site_file1=$CONFIG_SITE
2924 elif test "x$prefix" != xNONE; then
2925 ac_site_file1=$prefix/share/config.site
2926 ac_site_file2=$prefix/etc/config.site
2927 else
2928 ac_site_file1=$ac_default_prefix/share/config.site
2929 ac_site_file2=$ac_default_prefix/etc/config.site
2931 for ac_site_file in "$ac_site_file1" "$ac_site_file2"
2933 test "x$ac_site_file" = xNONE && continue
2934 if test -r "$ac_site_file"; then
2935 { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
2936 $as_echo "$as_me: loading site script $ac_site_file" >&6;}
2937 sed 's/^/| /' "$ac_site_file" >&5
2938 . "$ac_site_file"
2940 done
2942 if test -r "$cache_file"; then
2943 # Some versions of bash will fail to source /dev/null (special
2944 # files actually), so we avoid doing that.
2945 if test -f "$cache_file"; then
2946 { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
2947 $as_echo "$as_me: loading cache $cache_file" >&6;}
2948 case $cache_file in
2949 [\\/]* | ?:[\\/]* ) . "$cache_file";;
2950 *) . "./$cache_file";;
2951 esac
2953 else
2954 { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
2955 $as_echo "$as_me: creating cache $cache_file" >&6;}
2956 >$cache_file
2959 # Check that the precious variables saved in the cache have kept the same
2960 # value.
2961 ac_cache_corrupted=false
2962 for ac_var in $ac_precious_vars; do
2963 eval ac_old_set=\$ac_cv_env_${ac_var}_set
2964 eval ac_new_set=\$ac_env_${ac_var}_set
2965 eval ac_old_val=\$ac_cv_env_${ac_var}_value
2966 eval ac_new_val=\$ac_env_${ac_var}_value
2967 case $ac_old_set,$ac_new_set in
2968 set,)
2969 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
2970 $as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
2971 ac_cache_corrupted=: ;;
2972 ,set)
2973 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
2974 $as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
2975 ac_cache_corrupted=: ;;
2976 ,);;
2978 if test "x$ac_old_val" != "x$ac_new_val"; then
2979 # differences in whitespace do not lead to failure.
2980 ac_old_val_w=`echo x $ac_old_val`
2981 ac_new_val_w=`echo x $ac_new_val`
2982 if test "$ac_old_val_w" != "$ac_new_val_w"; then
2983 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
2984 $as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
2985 ac_cache_corrupted=:
2986 else
2987 { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
2988 $as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
2989 eval $ac_var=\$ac_old_val
2991 { $as_echo "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5
2992 $as_echo "$as_me: former value: \`$ac_old_val'" >&2;}
2993 { $as_echo "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5
2994 $as_echo "$as_me: current value: \`$ac_new_val'" >&2;}
2995 fi;;
2996 esac
2997 # Pass precious variables to config.status.
2998 if test "$ac_new_set" = set; then
2999 case $ac_new_val in
3000 *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
3001 *) ac_arg=$ac_var=$ac_new_val ;;
3002 esac
3003 case " $ac_configure_args " in
3004 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
3005 *) as_fn_append ac_configure_args " '$ac_arg'" ;;
3006 esac
3008 done
3009 if $ac_cache_corrupted; then
3010 { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3011 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3012 { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
3013 $as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
3014 as_fn_error "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
3016 ## -------------------- ##
3017 ## Main body of script. ##
3018 ## -------------------- ##
3020 ac_ext=c
3021 ac_cpp='$CPP $CPPFLAGS'
3022 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3023 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3024 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3031 ac_config_headers="$ac_config_headers auto-host.h:config.in"
3034 gcc_version=`cat $srcdir/BASE-VER`
3036 # Determine the host, build, and target systems
3037 ac_aux_dir=
3038 for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do
3039 for ac_t in install-sh install.sh shtool; do
3040 if test -f "$ac_dir/$ac_t"; then
3041 ac_aux_dir=$ac_dir
3042 ac_install_sh="$ac_aux_dir/$ac_t -c"
3043 break 2
3045 done
3046 done
3047 if test -z "$ac_aux_dir"; then
3048 as_fn_error "cannot find install-sh, install.sh, or shtool in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" "$LINENO" 5
3051 # These three variables are undocumented and unsupported,
3052 # and are intended to be withdrawn in a future Autoconf release.
3053 # They can cause serious problems if a builder's source tree is in a directory
3054 # whose full name contains unusual characters.
3055 ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
3056 ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
3057 ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
3060 # Make sure we can run config.sub.
3061 $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
3062 as_fn_error "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
3064 { $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
3065 $as_echo_n "checking build system type... " >&6; }
3066 if test "${ac_cv_build+set}" = set; then :
3067 $as_echo_n "(cached) " >&6
3068 else
3069 ac_build_alias=$build_alias
3070 test "x$ac_build_alias" = x &&
3071 ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
3072 test "x$ac_build_alias" = x &&
3073 as_fn_error "cannot guess build type; you must specify one" "$LINENO" 5
3074 ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
3075 as_fn_error "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
3078 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
3079 $as_echo "$ac_cv_build" >&6; }
3080 case $ac_cv_build in
3081 *-*-*) ;;
3082 *) as_fn_error "invalid value of canonical build" "$LINENO" 5;;
3083 esac
3084 build=$ac_cv_build
3085 ac_save_IFS=$IFS; IFS='-'
3086 set x $ac_cv_build
3087 shift
3088 build_cpu=$1
3089 build_vendor=$2
3090 shift; shift
3091 # Remember, the first character of IFS is used to create $*,
3092 # except with old shells:
3093 build_os=$*
3094 IFS=$ac_save_IFS
3095 case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
3098 { $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
3099 $as_echo_n "checking host system type... " >&6; }
3100 if test "${ac_cv_host+set}" = set; then :
3101 $as_echo_n "(cached) " >&6
3102 else
3103 if test "x$host_alias" = x; then
3104 ac_cv_host=$ac_cv_build
3105 else
3106 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
3107 as_fn_error "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
3111 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
3112 $as_echo "$ac_cv_host" >&6; }
3113 case $ac_cv_host in
3114 *-*-*) ;;
3115 *) as_fn_error "invalid value of canonical host" "$LINENO" 5;;
3116 esac
3117 host=$ac_cv_host
3118 ac_save_IFS=$IFS; IFS='-'
3119 set x $ac_cv_host
3120 shift
3121 host_cpu=$1
3122 host_vendor=$2
3123 shift; shift
3124 # Remember, the first character of IFS is used to create $*,
3125 # except with old shells:
3126 host_os=$*
3127 IFS=$ac_save_IFS
3128 case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
3131 { $as_echo "$as_me:${as_lineno-$LINENO}: checking target system type" >&5
3132 $as_echo_n "checking target system type... " >&6; }
3133 if test "${ac_cv_target+set}" = set; then :
3134 $as_echo_n "(cached) " >&6
3135 else
3136 if test "x$target_alias" = x; then
3137 ac_cv_target=$ac_cv_host
3138 else
3139 ac_cv_target=`$SHELL "$ac_aux_dir/config.sub" $target_alias` ||
3140 as_fn_error "$SHELL $ac_aux_dir/config.sub $target_alias failed" "$LINENO" 5
3144 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_target" >&5
3145 $as_echo "$ac_cv_target" >&6; }
3146 case $ac_cv_target in
3147 *-*-*) ;;
3148 *) as_fn_error "invalid value of canonical target" "$LINENO" 5;;
3149 esac
3150 target=$ac_cv_target
3151 ac_save_IFS=$IFS; IFS='-'
3152 set x $ac_cv_target
3153 shift
3154 target_cpu=$1
3155 target_vendor=$2
3156 shift; shift
3157 # Remember, the first character of IFS is used to create $*,
3158 # except with old shells:
3159 target_os=$*
3160 IFS=$ac_save_IFS
3161 case $target_os in *\ *) target_os=`echo "$target_os" | sed 's/ /-/g'`;; esac
3164 # The aliases save the names the user supplied, while $host etc.
3165 # will get canonicalized.
3166 test -n "$target_alias" &&
3167 test "$program_prefix$program_suffix$program_transform_name" = \
3168 NONENONEs,x,x, &&
3169 program_prefix=${target_alias}-
3171 # Determine the noncanonical target name, for directory use.
3172 case ${build_alias} in
3173 "") build_noncanonical=${build} ;;
3174 *) build_noncanonical=${build_alias} ;;
3175 esac
3177 case ${host_alias} in
3178 "") host_noncanonical=${build_noncanonical} ;;
3179 *) host_noncanonical=${host_alias} ;;
3180 esac
3182 case ${target_alias} in
3183 "") target_noncanonical=${host_noncanonical} ;;
3184 *) target_noncanonical=${target_alias} ;;
3185 esac
3190 # Determine the target- and build-specific subdirectories
3192 # post-stage1 host modules use a different CC_FOR_BUILD so, in order to
3193 # have matching libraries, they should use host libraries: Makefile.tpl
3194 # arranges to pass --with-build-libsubdir=$(HOST_SUBDIR).
3195 # However, they still use the build modules, because the corresponding
3196 # host modules (e.g. bison) are only built for the host when bootstrap
3197 # finishes. So:
3198 # - build_subdir is where we find build modules, and never changes.
3199 # - build_libsubdir is where we find build libraries, and can be overridden.
3201 # Prefix 'build-' so this never conflicts with target_subdir.
3202 build_subdir="build-${build_noncanonical}"
3204 # Check whether --with-build-libsubdir was given.
3205 if test "${with_build_libsubdir+set}" = set; then :
3206 withval=$with_build_libsubdir; build_libsubdir="$withval"
3207 else
3208 build_libsubdir="$build_subdir"
3211 # --srcdir=. covers the toplevel, while "test -d" covers the subdirectories
3212 if ( test $srcdir = . && test -d gcc ) \
3213 || test -d $srcdir/../host-${host_noncanonical}; then
3214 host_subdir="host-${host_noncanonical}"
3215 else
3216 host_subdir=.
3218 # No prefix.
3219 target_subdir=${target_noncanonical}
3222 # Set program_transform_name
3223 test "$program_prefix" != NONE &&
3224 program_transform_name="s&^&$program_prefix&;$program_transform_name"
3225 # Use a double $ so make ignores it.
3226 test "$program_suffix" != NONE &&
3227 program_transform_name="s&\$&$program_suffix&;$program_transform_name"
3228 # Double any \ or $.
3229 # By default was `s,x,x', remove it if useless.
3230 ac_script='s/[\\$]/&&/g;s/;s,x,x,$//'
3231 program_transform_name=`$as_echo "$program_transform_name" | sed "$ac_script"`
3234 # Check for bogus environment variables.
3235 # Test if LIBRARY_PATH contains the notation for the current directory
3236 # since this would lead to problems installing/building glibc.
3237 # LIBRARY_PATH contains the current directory if one of the following
3238 # is true:
3239 # - one of the terminals (":" and ";") is the first or last sign
3240 # - two terminals occur directly after each other
3241 # - the path contains an element with a dot in it
3242 { $as_echo "$as_me:${as_lineno-$LINENO}: checking LIBRARY_PATH variable" >&5
3243 $as_echo_n "checking LIBRARY_PATH variable... " >&6; }
3244 case ${LIBRARY_PATH} in
3245 [:\;]* | *[:\;] | *[:\;][:\;]* | *[:\;]. | .[:\;]*| . | *[:\;].[:\;]* )
3246 library_path_setting="contains current directory"
3249 library_path_setting="ok"
3251 esac
3252 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $library_path_setting" >&5
3253 $as_echo "$library_path_setting" >&6; }
3254 if test "$library_path_setting" != "ok"; then
3255 as_fn_error "
3256 *** LIBRARY_PATH shouldn't contain the current directory when
3257 *** building gcc. Please change the environment variable
3258 *** and run configure again." "$LINENO" 5
3261 # Test if GCC_EXEC_PREFIX contains the notation for the current directory
3262 # since this would lead to problems installing/building glibc.
3263 # GCC_EXEC_PREFIX contains the current directory if one of the following
3264 # is true:
3265 # - one of the terminals (":" and ";") is the first or last sign
3266 # - two terminals occur directly after each other
3267 # - the path contains an element with a dot in it
3268 { $as_echo "$as_me:${as_lineno-$LINENO}: checking GCC_EXEC_PREFIX variable" >&5
3269 $as_echo_n "checking GCC_EXEC_PREFIX variable... " >&6; }
3270 case ${GCC_EXEC_PREFIX} in
3271 [:\;]* | *[:\;] | *[:\;][:\;]* | *[:\;]. | .[:\;]*| . | *[:\;].[:\;]* )
3272 gcc_exec_prefix_setting="contains current directory"
3275 gcc_exec_prefix_setting="ok"
3277 esac
3278 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_exec_prefix_setting" >&5
3279 $as_echo "$gcc_exec_prefix_setting" >&6; }
3280 if test "$gcc_exec_prefix_setting" != "ok"; then
3281 as_fn_error "
3282 *** GCC_EXEC_PREFIX shouldn't contain the current directory when
3283 *** building gcc. Please change the environment variable
3284 *** and run configure again." "$LINENO" 5
3287 # -----------
3288 # Directories
3289 # -----------
3291 # Specify the local prefix
3292 local_prefix=
3294 # Check whether --with-local-prefix was given.
3295 if test "${with_local_prefix+set}" = set; then :
3296 withval=$with_local_prefix; case "${withval}" in
3297 yes) as_fn_error "bad value ${withval} given for local include directory prefix" "$LINENO" 5 ;;
3298 no) ;;
3299 *) local_prefix=$with_local_prefix ;;
3300 esac
3304 # Default local prefix if it is empty
3305 if test x$local_prefix = x; then
3306 local_prefix=/usr/local
3309 # Don't set gcc_gxx_include_dir to gxx_include_dir since that's only
3310 # passed in by the toplevel make and thus we'd get different behavior
3311 # depending on where we built the sources.
3312 gcc_gxx_include_dir=
3313 # Specify the g++ header file directory
3315 # Check whether --with-gxx-include-dir was given.
3316 if test "${with_gxx_include_dir+set}" = set; then :
3317 withval=$with_gxx_include_dir; case "${withval}" in
3318 yes) as_fn_error "bad value ${withval} given for g++ include directory" "$LINENO" 5 ;;
3319 no) ;;
3320 *) gcc_gxx_include_dir=$with_gxx_include_dir ;;
3321 esac
3325 # This logic must match libstdc++-v3/acinclude.m4:GLIBCXX_EXPORT_INSTALL_INFO.
3326 if test x${gcc_gxx_include_dir} = x; then
3327 if test x${enable_version_specific_runtime_libs} = xyes; then
3328 gcc_gxx_include_dir='${libsubdir}/include/c++'
3329 else
3330 libstdcxx_incdir='include/c++/$(version)'
3331 if test x$host != x$target; then
3332 libstdcxx_incdir="$target_alias/$libstdcxx_incdir"
3334 gcc_gxx_include_dir="\$(libsubdir)/\$(libsubdir_to_prefix)$libstdcxx_incdir"
3338 gcc_gxx_include_dir_add_sysroot=0
3339 if test "${with_sysroot+set}" = set; then
3340 gcc_gxx_without_sysroot=`expr "${gcc_gxx_include_dir}" : "${with_sysroot}"'\(.*\)'`
3341 if test "${gcc_gxx_without_sysroot}"; then
3342 gcc_gxx_include_dir="${gcc_gxx_without_sysroot}"
3343 gcc_gxx_include_dir_add_sysroot=1
3348 # Check whether --with-cpp_install_dir was given.
3349 if test "${with_cpp_install_dir+set}" = set; then :
3350 withval=$with_cpp_install_dir; if test x$withval = xyes; then
3351 as_fn_error "option --with-cpp-install-dir requires an argument" "$LINENO" 5
3352 elif test x$withval != xno; then
3353 cpp_install_dir=$withval
3358 # We would like to our source tree to be readonly. However when releases or
3359 # pre-releases are generated, the flex/bison generated files as well as the
3360 # various formats of manuals need to be included along with the rest of the
3361 # sources. Therefore we have --enable-generated-files-in-srcdir to do
3362 # just that.
3364 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to place generated files in the source directory" >&5
3365 $as_echo_n "checking whether to place generated files in the source directory... " >&6; }
3366 # Check whether --enable-generated-files-in-srcdir was given.
3367 if test "${enable_generated_files_in_srcdir+set}" = set; then :
3368 enableval=$enable_generated_files_in_srcdir; generated_files_in_srcdir=$enableval
3369 else
3370 generated_files_in_srcdir=no
3374 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $generated_files_in_srcdir" >&5
3375 $as_echo "$generated_files_in_srcdir" >&6; }
3377 if test "$generated_files_in_srcdir" = "yes"; then
3378 GENINSRC=''
3379 else
3380 GENINSRC='#'
3384 # -------------------
3385 # Find default linker
3386 # -------------------
3388 # With GNU ld
3390 # Check whether --with-gnu-ld was given.
3391 if test "${with_gnu_ld+set}" = set; then :
3392 withval=$with_gnu_ld; gnu_ld_flag="$with_gnu_ld"
3393 else
3394 gnu_ld_flag=no
3398 # With pre-defined ld
3400 # Check whether --with-ld was given.
3401 if test "${with_ld+set}" = set; then :
3402 withval=$with_ld; DEFAULT_LINKER="$with_ld"
3405 if test x"${DEFAULT_LINKER+set}" = x"set"; then
3406 if test ! -x "$DEFAULT_LINKER"; then
3407 as_fn_error "cannot execute: $DEFAULT_LINKER: check --with-ld or env. var. DEFAULT_LINKER" "$LINENO" 5
3408 elif $DEFAULT_LINKER -v < /dev/null 2>&1 | grep GNU > /dev/null; then
3409 gnu_ld_flag=yes
3412 cat >>confdefs.h <<_ACEOF
3413 #define DEFAULT_LINKER "$DEFAULT_LINKER"
3414 _ACEOF
3418 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a default linker was specified" >&5
3419 $as_echo_n "checking whether a default linker was specified... " >&6; }
3420 if test x"${DEFAULT_LINKER+set}" = x"set"; then
3421 if test x"$gnu_ld_flag" = x"no"; then
3422 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes ($DEFAULT_LINKER)" >&5
3423 $as_echo "yes ($DEFAULT_LINKER)" >&6; }
3424 else
3425 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes ($DEFAULT_LINKER - GNU ld)" >&5
3426 $as_echo "yes ($DEFAULT_LINKER - GNU ld)" >&6; }
3428 else
3429 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3430 $as_echo "no" >&6; }
3433 # With demangler in GNU ld
3435 # Check whether --with-demangler-in-ld was given.
3436 if test "${with_demangler_in_ld+set}" = set; then :
3437 withval=$with_demangler_in_ld; demangler_in_ld="$with_demangler_in_ld"
3438 else
3439 demangler_in_ld=yes
3443 # ----------------------
3444 # Find default assembler
3445 # ----------------------
3447 # With GNU as
3449 # Check whether --with-gnu-as was given.
3450 if test "${with_gnu_as+set}" = set; then :
3451 withval=$with_gnu_as; gas_flag="$with_gnu_as"
3452 else
3453 gas_flag=no
3458 # Check whether --with-as was given.
3459 if test "${with_as+set}" = set; then :
3460 withval=$with_as; DEFAULT_ASSEMBLER="$with_as"
3463 if test x"${DEFAULT_ASSEMBLER+set}" = x"set"; then
3464 if test ! -x "$DEFAULT_ASSEMBLER"; then
3465 as_fn_error "cannot execute: $DEFAULT_ASSEMBLER: check --with-as or env. var. DEFAULT_ASSEMBLER" "$LINENO" 5
3466 elif $DEFAULT_ASSEMBLER -v < /dev/null 2>&1 | grep GNU > /dev/null; then
3467 gas_flag=yes
3470 cat >>confdefs.h <<_ACEOF
3471 #define DEFAULT_ASSEMBLER "$DEFAULT_ASSEMBLER"
3472 _ACEOF
3476 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a default assembler was specified" >&5
3477 $as_echo_n "checking whether a default assembler was specified... " >&6; }
3478 if test x"${DEFAULT_ASSEMBLER+set}" = x"set"; then
3479 if test x"$gas_flag" = x"no"; then
3480 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes ($DEFAULT_ASSEMBLER)" >&5
3481 $as_echo "yes ($DEFAULT_ASSEMBLER)" >&6; }
3482 else
3483 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes ($DEFAULT_ASSEMBLER - GNU as)" >&5
3484 $as_echo "yes ($DEFAULT_ASSEMBLER - GNU as)" >&6; }
3486 else
3487 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3488 $as_echo "no" >&6; }
3491 # ---------------
3492 # Find C compiler
3493 # ---------------
3495 # If a non-executable a.out is present (e.g. created by GNU as above even if
3496 # invoked with -v only), the IRIX 6 native ld just overwrites the existing
3497 # file, even when creating an executable, so an execution test fails.
3498 # Remove possible default executable files to avoid this.
3500 # FIXME: This really belongs into AC_PROG_CC and can be removed once
3501 # Autoconf includes it.
3502 rm -f a.out a.exe b.out
3504 # Find the native compiler
3505 ac_ext=c
3506 ac_cpp='$CPP $CPPFLAGS'
3507 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3508 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3509 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3510 if test -n "$ac_tool_prefix"; then
3511 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
3512 set dummy ${ac_tool_prefix}gcc; ac_word=$2
3513 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3514 $as_echo_n "checking for $ac_word... " >&6; }
3515 if test "${ac_cv_prog_CC+set}" = set; then :
3516 $as_echo_n "(cached) " >&6
3517 else
3518 if test -n "$CC"; then
3519 ac_cv_prog_CC="$CC" # Let the user override the test.
3520 else
3521 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3522 for as_dir in $PATH
3524 IFS=$as_save_IFS
3525 test -z "$as_dir" && as_dir=.
3526 for ac_exec_ext in '' $ac_executable_extensions; do
3527 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3528 ac_cv_prog_CC="${ac_tool_prefix}gcc"
3529 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3530 break 2
3532 done
3533 done
3534 IFS=$as_save_IFS
3538 CC=$ac_cv_prog_CC
3539 if test -n "$CC"; then
3540 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3541 $as_echo "$CC" >&6; }
3542 else
3543 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3544 $as_echo "no" >&6; }
3549 if test -z "$ac_cv_prog_CC"; then
3550 ac_ct_CC=$CC
3551 # Extract the first word of "gcc", so it can be a program name with args.
3552 set dummy gcc; ac_word=$2
3553 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3554 $as_echo_n "checking for $ac_word... " >&6; }
3555 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then :
3556 $as_echo_n "(cached) " >&6
3557 else
3558 if test -n "$ac_ct_CC"; then
3559 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3560 else
3561 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3562 for as_dir in $PATH
3564 IFS=$as_save_IFS
3565 test -z "$as_dir" && as_dir=.
3566 for ac_exec_ext in '' $ac_executable_extensions; do
3567 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3568 ac_cv_prog_ac_ct_CC="gcc"
3569 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3570 break 2
3572 done
3573 done
3574 IFS=$as_save_IFS
3578 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3579 if test -n "$ac_ct_CC"; then
3580 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3581 $as_echo "$ac_ct_CC" >&6; }
3582 else
3583 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3584 $as_echo "no" >&6; }
3587 if test "x$ac_ct_CC" = x; then
3588 CC=""
3589 else
3590 case $cross_compiling:$ac_tool_warned in
3591 yes:)
3592 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3593 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3594 ac_tool_warned=yes ;;
3595 esac
3596 CC=$ac_ct_CC
3598 else
3599 CC="$ac_cv_prog_CC"
3602 if test -z "$CC"; then
3603 if test -n "$ac_tool_prefix"; then
3604 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
3605 set dummy ${ac_tool_prefix}cc; ac_word=$2
3606 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3607 $as_echo_n "checking for $ac_word... " >&6; }
3608 if test "${ac_cv_prog_CC+set}" = set; then :
3609 $as_echo_n "(cached) " >&6
3610 else
3611 if test -n "$CC"; then
3612 ac_cv_prog_CC="$CC" # Let the user override the test.
3613 else
3614 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3615 for as_dir in $PATH
3617 IFS=$as_save_IFS
3618 test -z "$as_dir" && as_dir=.
3619 for ac_exec_ext in '' $ac_executable_extensions; do
3620 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3621 ac_cv_prog_CC="${ac_tool_prefix}cc"
3622 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3623 break 2
3625 done
3626 done
3627 IFS=$as_save_IFS
3631 CC=$ac_cv_prog_CC
3632 if test -n "$CC"; then
3633 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3634 $as_echo "$CC" >&6; }
3635 else
3636 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3637 $as_echo "no" >&6; }
3643 if test -z "$CC"; then
3644 # Extract the first word of "cc", so it can be a program name with args.
3645 set dummy cc; ac_word=$2
3646 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3647 $as_echo_n "checking for $ac_word... " >&6; }
3648 if test "${ac_cv_prog_CC+set}" = set; then :
3649 $as_echo_n "(cached) " >&6
3650 else
3651 if test -n "$CC"; then
3652 ac_cv_prog_CC="$CC" # Let the user override the test.
3653 else
3654 ac_prog_rejected=no
3655 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3656 for as_dir in $PATH
3658 IFS=$as_save_IFS
3659 test -z "$as_dir" && as_dir=.
3660 for ac_exec_ext in '' $ac_executable_extensions; do
3661 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3662 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
3663 ac_prog_rejected=yes
3664 continue
3666 ac_cv_prog_CC="cc"
3667 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3668 break 2
3670 done
3671 done
3672 IFS=$as_save_IFS
3674 if test $ac_prog_rejected = yes; then
3675 # We found a bogon in the path, so make sure we never use it.
3676 set dummy $ac_cv_prog_CC
3677 shift
3678 if test $# != 0; then
3679 # We chose a different compiler from the bogus one.
3680 # However, it has the same basename, so the bogon will be chosen
3681 # first if we set CC to just the basename; use the full file name.
3682 shift
3683 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
3688 CC=$ac_cv_prog_CC
3689 if test -n "$CC"; then
3690 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3691 $as_echo "$CC" >&6; }
3692 else
3693 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3694 $as_echo "no" >&6; }
3699 if test -z "$CC"; then
3700 if test -n "$ac_tool_prefix"; then
3701 for ac_prog in cl.exe
3703 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3704 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
3705 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3706 $as_echo_n "checking for $ac_word... " >&6; }
3707 if test "${ac_cv_prog_CC+set}" = set; then :
3708 $as_echo_n "(cached) " >&6
3709 else
3710 if test -n "$CC"; then
3711 ac_cv_prog_CC="$CC" # Let the user override the test.
3712 else
3713 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3714 for as_dir in $PATH
3716 IFS=$as_save_IFS
3717 test -z "$as_dir" && as_dir=.
3718 for ac_exec_ext in '' $ac_executable_extensions; do
3719 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3720 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
3721 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3722 break 2
3724 done
3725 done
3726 IFS=$as_save_IFS
3730 CC=$ac_cv_prog_CC
3731 if test -n "$CC"; then
3732 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3733 $as_echo "$CC" >&6; }
3734 else
3735 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3736 $as_echo "no" >&6; }
3740 test -n "$CC" && break
3741 done
3743 if test -z "$CC"; then
3744 ac_ct_CC=$CC
3745 for ac_prog in cl.exe
3747 # Extract the first word of "$ac_prog", so it can be a program name with args.
3748 set dummy $ac_prog; ac_word=$2
3749 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3750 $as_echo_n "checking for $ac_word... " >&6; }
3751 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then :
3752 $as_echo_n "(cached) " >&6
3753 else
3754 if test -n "$ac_ct_CC"; then
3755 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3756 else
3757 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3758 for as_dir in $PATH
3760 IFS=$as_save_IFS
3761 test -z "$as_dir" && as_dir=.
3762 for ac_exec_ext in '' $ac_executable_extensions; do
3763 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3764 ac_cv_prog_ac_ct_CC="$ac_prog"
3765 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3766 break 2
3768 done
3769 done
3770 IFS=$as_save_IFS
3774 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3775 if test -n "$ac_ct_CC"; then
3776 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3777 $as_echo "$ac_ct_CC" >&6; }
3778 else
3779 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3780 $as_echo "no" >&6; }
3784 test -n "$ac_ct_CC" && break
3785 done
3787 if test "x$ac_ct_CC" = x; then
3788 CC=""
3789 else
3790 case $cross_compiling:$ac_tool_warned in
3791 yes:)
3792 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3793 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3794 ac_tool_warned=yes ;;
3795 esac
3796 CC=$ac_ct_CC
3803 test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3804 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3805 as_fn_error "no acceptable C compiler found in \$PATH
3806 See \`config.log' for more details." "$LINENO" 5; }
3808 # Provide some information about the compiler.
3809 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
3810 set X $ac_compile
3811 ac_compiler=$2
3812 for ac_option in --version -v -V -qversion; do
3813 { { ac_try="$ac_compiler $ac_option >&5"
3814 case "(($ac_try" in
3815 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3816 *) ac_try_echo=$ac_try;;
3817 esac
3818 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3819 $as_echo "$ac_try_echo"; } >&5
3820 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
3821 ac_status=$?
3822 if test -s conftest.err; then
3823 sed '10a\
3824 ... rest of stderr output deleted ...
3825 10q' conftest.err >conftest.er1
3826 cat conftest.er1 >&5
3827 rm -f conftest.er1 conftest.err
3829 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3830 test $ac_status = 0; }
3831 done
3833 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3834 /* end confdefs.h. */
3837 main ()
3841 return 0;
3843 _ACEOF
3844 ac_clean_files_save=$ac_clean_files
3845 ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out conftest.out"
3846 # Try to create an executable without -o first, disregard a.out.
3847 # It will help us diagnose broken compilers, and finding out an intuition
3848 # of exeext.
3849 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
3850 $as_echo_n "checking for C compiler default output file name... " >&6; }
3851 ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
3853 # The possible output files:
3854 ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
3856 ac_rmfiles=
3857 for ac_file in $ac_files
3859 case $ac_file in
3860 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3861 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
3862 esac
3863 done
3864 rm -f $ac_rmfiles
3866 if { { ac_try="$ac_link_default"
3867 case "(($ac_try" in
3868 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3869 *) ac_try_echo=$ac_try;;
3870 esac
3871 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3872 $as_echo "$ac_try_echo"; } >&5
3873 (eval "$ac_link_default") 2>&5
3874 ac_status=$?
3875 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3876 test $ac_status = 0; }; then :
3877 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
3878 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
3879 # in a Makefile. We should not override ac_cv_exeext if it was cached,
3880 # so that the user can short-circuit this test for compilers unknown to
3881 # Autoconf.
3882 for ac_file in $ac_files ''
3884 test -f "$ac_file" || continue
3885 case $ac_file in
3886 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
3888 [ab].out )
3889 # We found the default executable, but exeext='' is most
3890 # certainly right.
3891 break;;
3892 *.* )
3893 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
3894 then :; else
3895 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3897 # We set ac_cv_exeext here because the later test for it is not
3898 # safe: cross compilers may not add the suffix if given an `-o'
3899 # argument, so we may need to know it at that point already.
3900 # Even if this section looks crufty: it has the advantage of
3901 # actually working.
3902 break;;
3904 break;;
3905 esac
3906 done
3907 test "$ac_cv_exeext" = no && ac_cv_exeext=
3909 else
3910 ac_file=''
3912 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
3913 $as_echo "$ac_file" >&6; }
3914 if test -z "$ac_file"; then :
3915 $as_echo "$as_me: failed program was:" >&5
3916 sed 's/^/| /' conftest.$ac_ext >&5
3918 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3919 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3920 { as_fn_set_status 77
3921 as_fn_error "C compiler cannot create executables
3922 See \`config.log' for more details." "$LINENO" 5; }; }
3924 ac_exeext=$ac_cv_exeext
3926 # Check that the compiler produces executables we can run. If not, either
3927 # the compiler is broken, or we cross compile.
3928 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
3929 $as_echo_n "checking whether the C compiler works... " >&6; }
3930 # If not cross compiling, check that we can run a simple program.
3931 if test "$cross_compiling" != yes; then
3932 if { ac_try='./$ac_file'
3933 { { case "(($ac_try" in
3934 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3935 *) ac_try_echo=$ac_try;;
3936 esac
3937 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3938 $as_echo "$ac_try_echo"; } >&5
3939 (eval "$ac_try") 2>&5
3940 ac_status=$?
3941 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3942 test $ac_status = 0; }; }; then
3943 cross_compiling=no
3944 else
3945 if test "$cross_compiling" = maybe; then
3946 cross_compiling=yes
3947 else
3948 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3949 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3950 as_fn_error "cannot run C compiled programs.
3951 If you meant to cross compile, use \`--host'.
3952 See \`config.log' for more details." "$LINENO" 5; }
3956 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3957 $as_echo "yes" >&6; }
3959 rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out conftest.out
3960 ac_clean_files=$ac_clean_files_save
3961 # Check that the compiler produces executables we can run. If not, either
3962 # the compiler is broken, or we cross compile.
3963 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
3964 $as_echo_n "checking whether we are cross compiling... " >&6; }
3965 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
3966 $as_echo "$cross_compiling" >&6; }
3968 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
3969 $as_echo_n "checking for suffix of executables... " >&6; }
3970 if { { ac_try="$ac_link"
3971 case "(($ac_try" in
3972 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3973 *) ac_try_echo=$ac_try;;
3974 esac
3975 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3976 $as_echo "$ac_try_echo"; } >&5
3977 (eval "$ac_link") 2>&5
3978 ac_status=$?
3979 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3980 test $ac_status = 0; }; then :
3981 # If both `conftest.exe' and `conftest' are `present' (well, observable)
3982 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
3983 # work properly (i.e., refer to `conftest.exe'), while it won't with
3984 # `rm'.
3985 for ac_file in conftest.exe conftest conftest.*; do
3986 test -f "$ac_file" || continue
3987 case $ac_file in
3988 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3989 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3990 break;;
3991 * ) break;;
3992 esac
3993 done
3994 else
3995 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3996 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3997 as_fn_error "cannot compute suffix of executables: cannot compile and link
3998 See \`config.log' for more details." "$LINENO" 5; }
4000 rm -f conftest$ac_cv_exeext
4001 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
4002 $as_echo "$ac_cv_exeext" >&6; }
4004 rm -f conftest.$ac_ext
4005 EXEEXT=$ac_cv_exeext
4006 ac_exeext=$EXEEXT
4007 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
4008 $as_echo_n "checking for suffix of object files... " >&6; }
4009 if test "${ac_cv_objext+set}" = set; then :
4010 $as_echo_n "(cached) " >&6
4011 else
4012 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4013 /* end confdefs.h. */
4016 main ()
4020 return 0;
4022 _ACEOF
4023 rm -f conftest.o conftest.obj
4024 if { { ac_try="$ac_compile"
4025 case "(($ac_try" in
4026 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4027 *) ac_try_echo=$ac_try;;
4028 esac
4029 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4030 $as_echo "$ac_try_echo"; } >&5
4031 (eval "$ac_compile") 2>&5
4032 ac_status=$?
4033 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4034 test $ac_status = 0; }; then :
4035 for ac_file in conftest.o conftest.obj conftest.*; do
4036 test -f "$ac_file" || continue;
4037 case $ac_file in
4038 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
4039 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
4040 break;;
4041 esac
4042 done
4043 else
4044 $as_echo "$as_me: failed program was:" >&5
4045 sed 's/^/| /' conftest.$ac_ext >&5
4047 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4048 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4049 as_fn_error "cannot compute suffix of object files: cannot compile
4050 See \`config.log' for more details." "$LINENO" 5; }
4052 rm -f conftest.$ac_cv_objext conftest.$ac_ext
4054 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
4055 $as_echo "$ac_cv_objext" >&6; }
4056 OBJEXT=$ac_cv_objext
4057 ac_objext=$OBJEXT
4058 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
4059 $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
4060 if test "${ac_cv_c_compiler_gnu+set}" = set; then :
4061 $as_echo_n "(cached) " >&6
4062 else
4063 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4064 /* end confdefs.h. */
4067 main ()
4069 #ifndef __GNUC__
4070 choke me
4071 #endif
4074 return 0;
4076 _ACEOF
4077 if ac_fn_c_try_compile "$LINENO"; then :
4078 ac_compiler_gnu=yes
4079 else
4080 ac_compiler_gnu=no
4082 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4083 ac_cv_c_compiler_gnu=$ac_compiler_gnu
4086 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
4087 $as_echo "$ac_cv_c_compiler_gnu" >&6; }
4088 if test $ac_compiler_gnu = yes; then
4089 GCC=yes
4090 else
4091 GCC=
4093 ac_test_CFLAGS=${CFLAGS+set}
4094 ac_save_CFLAGS=$CFLAGS
4095 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
4096 $as_echo_n "checking whether $CC accepts -g... " >&6; }
4097 if test "${ac_cv_prog_cc_g+set}" = set; then :
4098 $as_echo_n "(cached) " >&6
4099 else
4100 ac_save_c_werror_flag=$ac_c_werror_flag
4101 ac_c_werror_flag=yes
4102 ac_cv_prog_cc_g=no
4103 CFLAGS="-g"
4104 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4105 /* end confdefs.h. */
4108 main ()
4112 return 0;
4114 _ACEOF
4115 if ac_fn_c_try_compile "$LINENO"; then :
4116 ac_cv_prog_cc_g=yes
4117 else
4118 CFLAGS=""
4119 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4120 /* end confdefs.h. */
4123 main ()
4127 return 0;
4129 _ACEOF
4130 if ac_fn_c_try_compile "$LINENO"; then :
4132 else
4133 ac_c_werror_flag=$ac_save_c_werror_flag
4134 CFLAGS="-g"
4135 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4136 /* end confdefs.h. */
4139 main ()
4143 return 0;
4145 _ACEOF
4146 if ac_fn_c_try_compile "$LINENO"; then :
4147 ac_cv_prog_cc_g=yes
4149 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4151 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4153 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4154 ac_c_werror_flag=$ac_save_c_werror_flag
4156 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
4157 $as_echo "$ac_cv_prog_cc_g" >&6; }
4158 if test "$ac_test_CFLAGS" = set; then
4159 CFLAGS=$ac_save_CFLAGS
4160 elif test $ac_cv_prog_cc_g = yes; then
4161 if test "$GCC" = yes; then
4162 CFLAGS="-g -O2"
4163 else
4164 CFLAGS="-g"
4166 else
4167 if test "$GCC" = yes; then
4168 CFLAGS="-O2"
4169 else
4170 CFLAGS=
4173 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
4174 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
4175 if test "${ac_cv_prog_cc_c89+set}" = set; then :
4176 $as_echo_n "(cached) " >&6
4177 else
4178 ac_cv_prog_cc_c89=no
4179 ac_save_CC=$CC
4180 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4181 /* end confdefs.h. */
4182 #include <stdarg.h>
4183 #include <stdio.h>
4184 #include <sys/types.h>
4185 #include <sys/stat.h>
4186 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
4187 struct buf { int x; };
4188 FILE * (*rcsopen) (struct buf *, struct stat *, int);
4189 static char *e (p, i)
4190 char **p;
4191 int i;
4193 return p[i];
4195 static char *f (char * (*g) (char **, int), char **p, ...)
4197 char *s;
4198 va_list v;
4199 va_start (v,p);
4200 s = g (p, va_arg (v,int));
4201 va_end (v);
4202 return s;
4205 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
4206 function prototypes and stuff, but not '\xHH' hex character constants.
4207 These don't provoke an error unfortunately, instead are silently treated
4208 as 'x'. The following induces an error, until -std is added to get
4209 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
4210 array size at least. It's necessary to write '\x00'==0 to get something
4211 that's true only with -std. */
4212 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
4214 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
4215 inside strings and character constants. */
4216 #define FOO(x) 'x'
4217 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
4219 int test (int i, double x);
4220 struct s1 {int (*f) (int a);};
4221 struct s2 {int (*f) (double a);};
4222 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
4223 int argc;
4224 char **argv;
4226 main ()
4228 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
4230 return 0;
4232 _ACEOF
4233 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
4234 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
4236 CC="$ac_save_CC $ac_arg"
4237 if ac_fn_c_try_compile "$LINENO"; then :
4238 ac_cv_prog_cc_c89=$ac_arg
4240 rm -f core conftest.err conftest.$ac_objext
4241 test "x$ac_cv_prog_cc_c89" != "xno" && break
4242 done
4243 rm -f conftest.$ac_ext
4244 CC=$ac_save_CC
4247 # AC_CACHE_VAL
4248 case "x$ac_cv_prog_cc_c89" in
4250 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
4251 $as_echo "none needed" >&6; } ;;
4252 xno)
4253 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
4254 $as_echo "unsupported" >&6; } ;;
4256 CC="$CC $ac_cv_prog_cc_c89"
4257 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
4258 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
4259 esac
4260 if test "x$ac_cv_prog_cc_c89" != xno; then :
4264 ac_ext=c
4265 ac_cpp='$CPP $CPPFLAGS'
4266 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4267 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4268 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4270 ac_ext=cpp
4271 ac_cpp='$CXXCPP $CPPFLAGS'
4272 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4273 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4274 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
4275 if test -z "$CXX"; then
4276 if test -n "$CCC"; then
4277 CXX=$CCC
4278 else
4279 if test -n "$ac_tool_prefix"; then
4280 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
4282 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
4283 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
4284 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4285 $as_echo_n "checking for $ac_word... " >&6; }
4286 if test "${ac_cv_prog_CXX+set}" = set; then :
4287 $as_echo_n "(cached) " >&6
4288 else
4289 if test -n "$CXX"; then
4290 ac_cv_prog_CXX="$CXX" # Let the user override the test.
4291 else
4292 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4293 for as_dir in $PATH
4295 IFS=$as_save_IFS
4296 test -z "$as_dir" && as_dir=.
4297 for ac_exec_ext in '' $ac_executable_extensions; do
4298 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4299 ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
4300 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4301 break 2
4303 done
4304 done
4305 IFS=$as_save_IFS
4309 CXX=$ac_cv_prog_CXX
4310 if test -n "$CXX"; then
4311 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXX" >&5
4312 $as_echo "$CXX" >&6; }
4313 else
4314 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4315 $as_echo "no" >&6; }
4319 test -n "$CXX" && break
4320 done
4322 if test -z "$CXX"; then
4323 ac_ct_CXX=$CXX
4324 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
4326 # Extract the first word of "$ac_prog", so it can be a program name with args.
4327 set dummy $ac_prog; ac_word=$2
4328 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4329 $as_echo_n "checking for $ac_word... " >&6; }
4330 if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then :
4331 $as_echo_n "(cached) " >&6
4332 else
4333 if test -n "$ac_ct_CXX"; then
4334 ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
4335 else
4336 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4337 for as_dir in $PATH
4339 IFS=$as_save_IFS
4340 test -z "$as_dir" && as_dir=.
4341 for ac_exec_ext in '' $ac_executable_extensions; do
4342 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4343 ac_cv_prog_ac_ct_CXX="$ac_prog"
4344 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4345 break 2
4347 done
4348 done
4349 IFS=$as_save_IFS
4353 ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
4354 if test -n "$ac_ct_CXX"; then
4355 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CXX" >&5
4356 $as_echo "$ac_ct_CXX" >&6; }
4357 else
4358 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4359 $as_echo "no" >&6; }
4363 test -n "$ac_ct_CXX" && break
4364 done
4366 if test "x$ac_ct_CXX" = x; then
4367 CXX="g++"
4368 else
4369 case $cross_compiling:$ac_tool_warned in
4370 yes:)
4371 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4372 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4373 ac_tool_warned=yes ;;
4374 esac
4375 CXX=$ac_ct_CXX
4381 # Provide some information about the compiler.
4382 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C++ compiler version" >&5
4383 set X $ac_compile
4384 ac_compiler=$2
4385 for ac_option in --version -v -V -qversion; do
4386 { { ac_try="$ac_compiler $ac_option >&5"
4387 case "(($ac_try" in
4388 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4389 *) ac_try_echo=$ac_try;;
4390 esac
4391 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4392 $as_echo "$ac_try_echo"; } >&5
4393 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
4394 ac_status=$?
4395 if test -s conftest.err; then
4396 sed '10a\
4397 ... rest of stderr output deleted ...
4398 10q' conftest.err >conftest.er1
4399 cat conftest.er1 >&5
4400 rm -f conftest.er1 conftest.err
4402 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4403 test $ac_status = 0; }
4404 done
4406 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C++ compiler" >&5
4407 $as_echo_n "checking whether we are using the GNU C++ compiler... " >&6; }
4408 if test "${ac_cv_cxx_compiler_gnu+set}" = set; then :
4409 $as_echo_n "(cached) " >&6
4410 else
4411 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4412 /* end confdefs.h. */
4415 main ()
4417 #ifndef __GNUC__
4418 choke me
4419 #endif
4422 return 0;
4424 _ACEOF
4425 if ac_fn_cxx_try_compile "$LINENO"; then :
4426 ac_compiler_gnu=yes
4427 else
4428 ac_compiler_gnu=no
4430 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4431 ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
4434 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cxx_compiler_gnu" >&5
4435 $as_echo "$ac_cv_cxx_compiler_gnu" >&6; }
4436 if test $ac_compiler_gnu = yes; then
4437 GXX=yes
4438 else
4439 GXX=
4441 ac_test_CXXFLAGS=${CXXFLAGS+set}
4442 ac_save_CXXFLAGS=$CXXFLAGS
4443 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CXX accepts -g" >&5
4444 $as_echo_n "checking whether $CXX accepts -g... " >&6; }
4445 if test "${ac_cv_prog_cxx_g+set}" = set; then :
4446 $as_echo_n "(cached) " >&6
4447 else
4448 ac_save_cxx_werror_flag=$ac_cxx_werror_flag
4449 ac_cxx_werror_flag=yes
4450 ac_cv_prog_cxx_g=no
4451 CXXFLAGS="-g"
4452 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4453 /* end confdefs.h. */
4456 main ()
4460 return 0;
4462 _ACEOF
4463 if ac_fn_cxx_try_compile "$LINENO"; then :
4464 ac_cv_prog_cxx_g=yes
4465 else
4466 CXXFLAGS=""
4467 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4468 /* end confdefs.h. */
4471 main ()
4475 return 0;
4477 _ACEOF
4478 if ac_fn_cxx_try_compile "$LINENO"; then :
4480 else
4481 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
4482 CXXFLAGS="-g"
4483 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4484 /* end confdefs.h. */
4487 main ()
4491 return 0;
4493 _ACEOF
4494 if ac_fn_cxx_try_compile "$LINENO"; then :
4495 ac_cv_prog_cxx_g=yes
4497 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4499 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4501 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4502 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
4504 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cxx_g" >&5
4505 $as_echo "$ac_cv_prog_cxx_g" >&6; }
4506 if test "$ac_test_CXXFLAGS" = set; then
4507 CXXFLAGS=$ac_save_CXXFLAGS
4508 elif test $ac_cv_prog_cxx_g = yes; then
4509 if test "$GXX" = yes; then
4510 CXXFLAGS="-g -O2"
4511 else
4512 CXXFLAGS="-g"
4514 else
4515 if test "$GXX" = yes; then
4516 CXXFLAGS="-O2"
4517 else
4518 CXXFLAGS=
4521 ac_ext=c
4522 ac_cpp='$CPP $CPPFLAGS'
4523 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4524 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4525 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4530 if test -n "$ac_tool_prefix"; then
4531 # Extract the first word of "${ac_tool_prefix}gnatbind", so it can be a program name with args.
4532 set dummy ${ac_tool_prefix}gnatbind; ac_word=$2
4533 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4534 $as_echo_n "checking for $ac_word... " >&6; }
4535 if test "${ac_cv_prog_GNATBIND+set}" = set; then :
4536 $as_echo_n "(cached) " >&6
4537 else
4538 if test -n "$GNATBIND"; then
4539 ac_cv_prog_GNATBIND="$GNATBIND" # Let the user override the test.
4540 else
4541 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4542 for as_dir in $PATH
4544 IFS=$as_save_IFS
4545 test -z "$as_dir" && as_dir=.
4546 for ac_exec_ext in '' $ac_executable_extensions; do
4547 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4548 ac_cv_prog_GNATBIND="${ac_tool_prefix}gnatbind"
4549 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4550 break 2
4552 done
4553 done
4554 IFS=$as_save_IFS
4558 GNATBIND=$ac_cv_prog_GNATBIND
4559 if test -n "$GNATBIND"; then
4560 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GNATBIND" >&5
4561 $as_echo "$GNATBIND" >&6; }
4562 else
4563 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4564 $as_echo "no" >&6; }
4569 if test -z "$ac_cv_prog_GNATBIND"; then
4570 ac_ct_GNATBIND=$GNATBIND
4571 # Extract the first word of "gnatbind", so it can be a program name with args.
4572 set dummy gnatbind; ac_word=$2
4573 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4574 $as_echo_n "checking for $ac_word... " >&6; }
4575 if test "${ac_cv_prog_ac_ct_GNATBIND+set}" = set; then :
4576 $as_echo_n "(cached) " >&6
4577 else
4578 if test -n "$ac_ct_GNATBIND"; then
4579 ac_cv_prog_ac_ct_GNATBIND="$ac_ct_GNATBIND" # Let the user override the test.
4580 else
4581 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4582 for as_dir in $PATH
4584 IFS=$as_save_IFS
4585 test -z "$as_dir" && as_dir=.
4586 for ac_exec_ext in '' $ac_executable_extensions; do
4587 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4588 ac_cv_prog_ac_ct_GNATBIND="gnatbind"
4589 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4590 break 2
4592 done
4593 done
4594 IFS=$as_save_IFS
4598 ac_ct_GNATBIND=$ac_cv_prog_ac_ct_GNATBIND
4599 if test -n "$ac_ct_GNATBIND"; then
4600 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_GNATBIND" >&5
4601 $as_echo "$ac_ct_GNATBIND" >&6; }
4602 else
4603 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4604 $as_echo "no" >&6; }
4607 if test "x$ac_ct_GNATBIND" = x; then
4608 GNATBIND="no"
4609 else
4610 case $cross_compiling:$ac_tool_warned in
4611 yes:)
4612 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4613 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4614 ac_tool_warned=yes ;;
4615 esac
4616 GNATBIND=$ac_ct_GNATBIND
4618 else
4619 GNATBIND="$ac_cv_prog_GNATBIND"
4622 if test -n "$ac_tool_prefix"; then
4623 # Extract the first word of "${ac_tool_prefix}gnatmake", so it can be a program name with args.
4624 set dummy ${ac_tool_prefix}gnatmake; ac_word=$2
4625 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4626 $as_echo_n "checking for $ac_word... " >&6; }
4627 if test "${ac_cv_prog_GNATMAKE+set}" = set; then :
4628 $as_echo_n "(cached) " >&6
4629 else
4630 if test -n "$GNATMAKE"; then
4631 ac_cv_prog_GNATMAKE="$GNATMAKE" # Let the user override the test.
4632 else
4633 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4634 for as_dir in $PATH
4636 IFS=$as_save_IFS
4637 test -z "$as_dir" && as_dir=.
4638 for ac_exec_ext in '' $ac_executable_extensions; do
4639 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4640 ac_cv_prog_GNATMAKE="${ac_tool_prefix}gnatmake"
4641 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4642 break 2
4644 done
4645 done
4646 IFS=$as_save_IFS
4650 GNATMAKE=$ac_cv_prog_GNATMAKE
4651 if test -n "$GNATMAKE"; then
4652 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GNATMAKE" >&5
4653 $as_echo "$GNATMAKE" >&6; }
4654 else
4655 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4656 $as_echo "no" >&6; }
4661 if test -z "$ac_cv_prog_GNATMAKE"; then
4662 ac_ct_GNATMAKE=$GNATMAKE
4663 # Extract the first word of "gnatmake", so it can be a program name with args.
4664 set dummy gnatmake; ac_word=$2
4665 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4666 $as_echo_n "checking for $ac_word... " >&6; }
4667 if test "${ac_cv_prog_ac_ct_GNATMAKE+set}" = set; then :
4668 $as_echo_n "(cached) " >&6
4669 else
4670 if test -n "$ac_ct_GNATMAKE"; then
4671 ac_cv_prog_ac_ct_GNATMAKE="$ac_ct_GNATMAKE" # Let the user override the test.
4672 else
4673 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4674 for as_dir in $PATH
4676 IFS=$as_save_IFS
4677 test -z "$as_dir" && as_dir=.
4678 for ac_exec_ext in '' $ac_executable_extensions; do
4679 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4680 ac_cv_prog_ac_ct_GNATMAKE="gnatmake"
4681 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4682 break 2
4684 done
4685 done
4686 IFS=$as_save_IFS
4690 ac_ct_GNATMAKE=$ac_cv_prog_ac_ct_GNATMAKE
4691 if test -n "$ac_ct_GNATMAKE"; then
4692 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_GNATMAKE" >&5
4693 $as_echo "$ac_ct_GNATMAKE" >&6; }
4694 else
4695 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4696 $as_echo "no" >&6; }
4699 if test "x$ac_ct_GNATMAKE" = x; then
4700 GNATMAKE="no"
4701 else
4702 case $cross_compiling:$ac_tool_warned in
4703 yes:)
4704 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4705 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4706 ac_tool_warned=yes ;;
4707 esac
4708 GNATMAKE=$ac_ct_GNATMAKE
4710 else
4711 GNATMAKE="$ac_cv_prog_GNATMAKE"
4714 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether compiler driver understands Ada" >&5
4715 $as_echo_n "checking whether compiler driver understands Ada... " >&6; }
4716 if test "${acx_cv_cc_gcc_supports_ada+set}" = set; then :
4717 $as_echo_n "(cached) " >&6
4718 else
4719 cat >conftest.adb <<EOF
4720 procedure conftest is begin null; end conftest;
4722 acx_cv_cc_gcc_supports_ada=no
4723 # There is a bug in old released versions of GCC which causes the
4724 # driver to exit successfully when the appropriate language module
4725 # has not been installed. This is fixed in 2.95.4, 3.0.2, and 3.1.
4726 # Therefore we must check for the error message as well as an
4727 # unsuccessful exit.
4728 # Other compilers, like HP Tru64 UNIX cc, exit successfully when
4729 # given a .adb file, but produce no object file. So we must check
4730 # if an object file was really produced to guard against this.
4731 errors=`(${CC} -I"$srcdir"/ada -c conftest.adb) 2>&1 || echo failure`
4732 if test x"$errors" = x && test -f conftest.$ac_objext; then
4733 acx_cv_cc_gcc_supports_ada=yes
4735 rm -f conftest.*
4737 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $acx_cv_cc_gcc_supports_ada" >&5
4738 $as_echo "$acx_cv_cc_gcc_supports_ada" >&6; }
4740 if test "x$GNATBIND" != xno && test "x$GNATMAKE" != xno && test x$acx_cv_cc_gcc_supports_ada != xno; then
4741 have_gnat=yes
4742 else
4743 have_gnat=no
4747 # Remove the -O2: for historical reasons, unless bootstrapping we prefer
4748 # optimizations to be activated explicitly by the toplevel.
4749 case "$CC" in
4750 */prev-gcc/xgcc*) ;;
4751 *) CFLAGS=`echo "$CFLAGS " | sed -e "s/-Ofast[ ]//" -e "s/-O[gs][ ]//" -e "s/-O[0-9]*[ ]//" `
4752 CXXFLAGS=`echo "$CXXFLAGS " | sed -e "s/-Ofast[ ]//" -e "s/-O[gs][ ]//" -e "s/-O[0-9]*[ ]//" ` ;;
4753 esac
4757 # Determine PICFLAG for target gnatlib.
4762 case "${target}" in
4763 # PIC is the default on some targets or must not be used.
4764 *-*-darwin*)
4765 # PIC is the default on this platform
4766 # Common symbols not allowed in MH_DYLIB files
4767 PICFLAG_FOR_TARGET=-fno-common
4769 alpha*-dec-osf5*)
4770 # PIC is the default.
4772 hppa*64*-*-hpux*)
4773 # PIC is the default for 64-bit PA HP-UX.
4775 i[34567]86-*-cygwin* | x86_64-*-cygwin*)
4777 i[34567]86-*-mingw* | x86_64-*-mingw*)
4779 i[34567]86-*-interix[3-9]*)
4780 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
4781 # Instead, we relocate shared libraries at runtime.
4783 i[34567]86-*-nto-qnx*)
4784 # QNX uses GNU C++, but need to define -shared option too, otherwise
4785 # it will coredump.
4786 PICFLAG_FOR_TARGET='-fPIC -shared'
4788 i[34567]86-pc-msdosdjgpp*)
4789 # DJGPP does not support shared libraries at all.
4791 ia64*-*-hpux*)
4792 # On IA64 HP-UX, PIC is the default but the pic flag
4793 # sets the default TLS model and affects inlining.
4794 PICFLAG_FOR_TARGET=-fPIC
4796 mips-sgi-irix6*)
4797 # PIC is the default.
4799 rs6000-ibm-aix* | powerpc-ibm-aix*)
4800 # All AIX code is PIC.
4803 # Some targets support both -fPIC and -fpic, but prefer the latter.
4804 # FIXME: Why?
4805 i[34567]86-*-* | x86_64-*-*)
4806 PICFLAG_FOR_TARGET=-fpic
4808 m68k-*-*)
4809 PICFLAG_FOR_TARGET=-fpic
4811 # FIXME: Override -fPIC default in libgcc only?
4812 sh-*-linux* | sh[2346lbe]*-*-linux*)
4813 PICFLAG_FOR_TARGET=-fpic
4815 # FIXME: Simplify to sh*-*-netbsd*?
4816 sh-*-netbsdelf* | shl*-*-netbsdelf* | sh5-*-netbsd* | sh5l*-*-netbsd* | \
4817 sh64-*-netbsd* | sh64l*-*-netbsd*)
4818 PICFLAG_FOR_TARGET=-fpic
4820 # Default to -fPIC unless specified otherwise.
4822 PICFLAG_FOR_TARGET=-fPIC
4824 esac
4826 # If the user explicitly uses -fpic/-fPIC, keep that.
4827 case "${CFLAGS_FOR_TARGET}" in
4828 *-fpic*)
4829 PICFLAG_FOR_TARGET=-fpic
4831 *-fPIC*)
4832 PICFLAG_FOR_TARGET=-fPIC
4834 esac
4838 # -------------------------
4839 # Check C compiler features
4840 # -------------------------
4843 ac_ext=c
4844 ac_cpp='$CPP $CPPFLAGS'
4845 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4846 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4847 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4848 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
4849 $as_echo_n "checking how to run the C preprocessor... " >&6; }
4850 # On Suns, sometimes $CPP names a directory.
4851 if test -n "$CPP" && test -d "$CPP"; then
4852 CPP=
4854 if test -z "$CPP"; then
4855 if test "${ac_cv_prog_CPP+set}" = set; then :
4856 $as_echo_n "(cached) " >&6
4857 else
4858 # Double quotes because CPP needs to be expanded
4859 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
4861 ac_preproc_ok=false
4862 for ac_c_preproc_warn_flag in '' yes
4864 # Use a header file that comes with gcc, so configuring glibc
4865 # with a fresh cross-compiler works.
4866 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4867 # <limits.h> exists even on freestanding compilers.
4868 # On the NeXT, cc -E runs the code through the compiler's parser,
4869 # not just through cpp. "Syntax error" is here to catch this case.
4870 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4871 /* end confdefs.h. */
4872 #ifdef __STDC__
4873 # include <limits.h>
4874 #else
4875 # include <assert.h>
4876 #endif
4877 Syntax error
4878 _ACEOF
4879 if ac_fn_c_try_cpp "$LINENO"; then :
4881 else
4882 # Broken: fails on valid input.
4883 continue
4885 rm -f conftest.err conftest.$ac_ext
4887 # OK, works on sane cases. Now check whether nonexistent headers
4888 # can be detected and how.
4889 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4890 /* end confdefs.h. */
4891 #include <ac_nonexistent.h>
4892 _ACEOF
4893 if ac_fn_c_try_cpp "$LINENO"; then :
4894 # Broken: success on invalid input.
4895 continue
4896 else
4897 # Passes both tests.
4898 ac_preproc_ok=:
4899 break
4901 rm -f conftest.err conftest.$ac_ext
4903 done
4904 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4905 rm -f conftest.err conftest.$ac_ext
4906 if $ac_preproc_ok; then :
4907 break
4910 done
4911 ac_cv_prog_CPP=$CPP
4914 CPP=$ac_cv_prog_CPP
4915 else
4916 ac_cv_prog_CPP=$CPP
4918 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
4919 $as_echo "$CPP" >&6; }
4920 ac_preproc_ok=false
4921 for ac_c_preproc_warn_flag in '' yes
4923 # Use a header file that comes with gcc, so configuring glibc
4924 # with a fresh cross-compiler works.
4925 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4926 # <limits.h> exists even on freestanding compilers.
4927 # On the NeXT, cc -E runs the code through the compiler's parser,
4928 # not just through cpp. "Syntax error" is here to catch this case.
4929 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4930 /* end confdefs.h. */
4931 #ifdef __STDC__
4932 # include <limits.h>
4933 #else
4934 # include <assert.h>
4935 #endif
4936 Syntax error
4937 _ACEOF
4938 if ac_fn_c_try_cpp "$LINENO"; then :
4940 else
4941 # Broken: fails on valid input.
4942 continue
4944 rm -f conftest.err conftest.$ac_ext
4946 # OK, works on sane cases. Now check whether nonexistent headers
4947 # can be detected and how.
4948 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4949 /* end confdefs.h. */
4950 #include <ac_nonexistent.h>
4951 _ACEOF
4952 if ac_fn_c_try_cpp "$LINENO"; then :
4953 # Broken: success on invalid input.
4954 continue
4955 else
4956 # Passes both tests.
4957 ac_preproc_ok=:
4958 break
4960 rm -f conftest.err conftest.$ac_ext
4962 done
4963 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4964 rm -f conftest.err conftest.$ac_ext
4965 if $ac_preproc_ok; then :
4967 else
4968 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4969 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4970 as_fn_error "C preprocessor \"$CPP\" fails sanity check
4971 See \`config.log' for more details." "$LINENO" 5; }
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
4981 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
4982 $as_echo_n "checking for grep that handles long lines and -e... " >&6; }
4983 if test "${ac_cv_path_GREP+set}" = set; then :
4984 $as_echo_n "(cached) " >&6
4985 else
4986 if test -z "$GREP"; then
4987 ac_path_GREP_found=false
4988 # Loop through the user's path and test for each of PROGNAME-LIST
4989 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4990 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4992 IFS=$as_save_IFS
4993 test -z "$as_dir" && as_dir=.
4994 for ac_prog in grep ggrep; do
4995 for ac_exec_ext in '' $ac_executable_extensions; do
4996 ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
4997 { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } || continue
4998 # Check for GNU ac_path_GREP and select it if it is found.
4999 # Check for GNU $ac_path_GREP
5000 case `"$ac_path_GREP" --version 2>&1` in
5001 *GNU*)
5002 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
5004 ac_count=0
5005 $as_echo_n 0123456789 >"conftest.in"
5006 while :
5008 cat "conftest.in" "conftest.in" >"conftest.tmp"
5009 mv "conftest.tmp" "conftest.in"
5010 cp "conftest.in" "conftest.nl"
5011 $as_echo 'GREP' >> "conftest.nl"
5012 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
5013 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
5014 as_fn_arith $ac_count + 1 && ac_count=$as_val
5015 if test $ac_count -gt ${ac_path_GREP_max-0}; then
5016 # Best one so far, save it but keep looking for a better one
5017 ac_cv_path_GREP="$ac_path_GREP"
5018 ac_path_GREP_max=$ac_count
5020 # 10*(2^10) chars as input seems more than enough
5021 test $ac_count -gt 10 && break
5022 done
5023 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
5024 esac
5026 $ac_path_GREP_found && break 3
5027 done
5028 done
5029 done
5030 IFS=$as_save_IFS
5031 if test -z "$ac_cv_path_GREP"; then
5032 as_fn_error "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
5034 else
5035 ac_cv_path_GREP=$GREP
5039 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
5040 $as_echo "$ac_cv_path_GREP" >&6; }
5041 GREP="$ac_cv_path_GREP"
5044 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
5045 $as_echo_n "checking for egrep... " >&6; }
5046 if test "${ac_cv_path_EGREP+set}" = set; then :
5047 $as_echo_n "(cached) " >&6
5048 else
5049 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
5050 then ac_cv_path_EGREP="$GREP -E"
5051 else
5052 if test -z "$EGREP"; then
5053 ac_path_EGREP_found=false
5054 # Loop through the user's path and test for each of PROGNAME-LIST
5055 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5056 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
5058 IFS=$as_save_IFS
5059 test -z "$as_dir" && as_dir=.
5060 for ac_prog in egrep; do
5061 for ac_exec_ext in '' $ac_executable_extensions; do
5062 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
5063 { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } || continue
5064 # Check for GNU ac_path_EGREP and select it if it is found.
5065 # Check for GNU $ac_path_EGREP
5066 case `"$ac_path_EGREP" --version 2>&1` in
5067 *GNU*)
5068 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
5070 ac_count=0
5071 $as_echo_n 0123456789 >"conftest.in"
5072 while :
5074 cat "conftest.in" "conftest.in" >"conftest.tmp"
5075 mv "conftest.tmp" "conftest.in"
5076 cp "conftest.in" "conftest.nl"
5077 $as_echo 'EGREP' >> "conftest.nl"
5078 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
5079 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
5080 as_fn_arith $ac_count + 1 && ac_count=$as_val
5081 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
5082 # Best one so far, save it but keep looking for a better one
5083 ac_cv_path_EGREP="$ac_path_EGREP"
5084 ac_path_EGREP_max=$ac_count
5086 # 10*(2^10) chars as input seems more than enough
5087 test $ac_count -gt 10 && break
5088 done
5089 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
5090 esac
5092 $ac_path_EGREP_found && break 3
5093 done
5094 done
5095 done
5096 IFS=$as_save_IFS
5097 if test -z "$ac_cv_path_EGREP"; then
5098 as_fn_error "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
5100 else
5101 ac_cv_path_EGREP=$EGREP
5106 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
5107 $as_echo "$ac_cv_path_EGREP" >&6; }
5108 EGREP="$ac_cv_path_EGREP"
5111 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
5112 $as_echo_n "checking for ANSI C header files... " >&6; }
5113 if test "${ac_cv_header_stdc+set}" = set; then :
5114 $as_echo_n "(cached) " >&6
5115 else
5116 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5117 /* end confdefs.h. */
5118 #include <stdlib.h>
5119 #include <stdarg.h>
5120 #include <string.h>
5121 #include <float.h>
5124 main ()
5128 return 0;
5130 _ACEOF
5131 if ac_fn_c_try_compile "$LINENO"; then :
5132 ac_cv_header_stdc=yes
5133 else
5134 ac_cv_header_stdc=no
5136 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5138 if test $ac_cv_header_stdc = yes; then
5139 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
5140 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5141 /* end confdefs.h. */
5142 #include <string.h>
5144 _ACEOF
5145 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5146 $EGREP "memchr" >/dev/null 2>&1; then :
5148 else
5149 ac_cv_header_stdc=no
5151 rm -f conftest*
5155 if test $ac_cv_header_stdc = yes; then
5156 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
5157 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5158 /* end confdefs.h. */
5159 #include <stdlib.h>
5161 _ACEOF
5162 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5163 $EGREP "free" >/dev/null 2>&1; then :
5165 else
5166 ac_cv_header_stdc=no
5168 rm -f conftest*
5172 if test $ac_cv_header_stdc = yes; then
5173 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
5174 if test "$cross_compiling" = yes; then :
5176 else
5177 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5178 /* end confdefs.h. */
5179 #include <ctype.h>
5180 #include <stdlib.h>
5181 #if ((' ' & 0x0FF) == 0x020)
5182 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
5183 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
5184 #else
5185 # define ISLOWER(c) \
5186 (('a' <= (c) && (c) <= 'i') \
5187 || ('j' <= (c) && (c) <= 'r') \
5188 || ('s' <= (c) && (c) <= 'z'))
5189 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
5190 #endif
5192 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
5194 main ()
5196 int i;
5197 for (i = 0; i < 256; i++)
5198 if (XOR (islower (i), ISLOWER (i))
5199 || toupper (i) != TOUPPER (i))
5200 return 2;
5201 return 0;
5203 _ACEOF
5204 if ac_fn_c_try_run "$LINENO"; then :
5206 else
5207 ac_cv_header_stdc=no
5209 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
5210 conftest.$ac_objext conftest.beam conftest.$ac_ext
5215 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
5216 $as_echo "$ac_cv_header_stdc" >&6; }
5217 if test $ac_cv_header_stdc = yes; then
5219 $as_echo "#define STDC_HEADERS 1" >>confdefs.h
5223 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
5224 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
5225 inttypes.h stdint.h unistd.h
5226 do :
5227 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
5228 ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
5230 eval as_val=\$$as_ac_Header
5231 if test "x$as_val" = x""yes; then :
5232 cat >>confdefs.h <<_ACEOF
5233 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
5234 _ACEOF
5238 done
5242 ac_fn_c_check_header_mongrel "$LINENO" "minix/config.h" "ac_cv_header_minix_config_h" "$ac_includes_default"
5243 if test "x$ac_cv_header_minix_config_h" = x""yes; then :
5244 MINIX=yes
5245 else
5246 MINIX=
5250 if test "$MINIX" = yes; then
5252 $as_echo "#define _POSIX_SOURCE 1" >>confdefs.h
5255 $as_echo "#define _POSIX_1_SOURCE 2" >>confdefs.h
5258 $as_echo "#define _MINIX 1" >>confdefs.h
5263 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether it is safe to define __EXTENSIONS__" >&5
5264 $as_echo_n "checking whether it is safe to define __EXTENSIONS__... " >&6; }
5265 if test "${ac_cv_safe_to_define___extensions__+set}" = set; then :
5266 $as_echo_n "(cached) " >&6
5267 else
5268 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5269 /* end confdefs.h. */
5271 # define __EXTENSIONS__ 1
5272 $ac_includes_default
5274 main ()
5278 return 0;
5280 _ACEOF
5281 if ac_fn_c_try_compile "$LINENO"; then :
5282 ac_cv_safe_to_define___extensions__=yes
5283 else
5284 ac_cv_safe_to_define___extensions__=no
5286 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5288 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_safe_to_define___extensions__" >&5
5289 $as_echo "$ac_cv_safe_to_define___extensions__" >&6; }
5290 test $ac_cv_safe_to_define___extensions__ = yes &&
5291 $as_echo "#define __EXTENSIONS__ 1" >>confdefs.h
5293 $as_echo "#define _ALL_SOURCE 1" >>confdefs.h
5295 $as_echo "#define _GNU_SOURCE 1" >>confdefs.h
5297 $as_echo "#define _POSIX_PTHREAD_SEMANTICS 1" >>confdefs.h
5299 $as_echo "#define _TANDEM_SOURCE 1" >>confdefs.h
5302 ac_ext=c
5303 ac_cpp='$CPP $CPPFLAGS'
5304 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5305 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5306 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5307 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
5308 $as_echo_n "checking how to run the C preprocessor... " >&6; }
5309 # On Suns, sometimes $CPP names a directory.
5310 if test -n "$CPP" && test -d "$CPP"; then
5311 CPP=
5313 if test -z "$CPP"; then
5314 if test "${ac_cv_prog_CPP+set}" = set; then :
5315 $as_echo_n "(cached) " >&6
5316 else
5317 # Double quotes because CPP needs to be expanded
5318 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
5320 ac_preproc_ok=false
5321 for ac_c_preproc_warn_flag in '' yes
5323 # Use a header file that comes with gcc, so configuring glibc
5324 # with a fresh cross-compiler works.
5325 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5326 # <limits.h> exists even on freestanding compilers.
5327 # On the NeXT, cc -E runs the code through the compiler's parser,
5328 # not just through cpp. "Syntax error" is here to catch this case.
5329 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5330 /* end confdefs.h. */
5331 #ifdef __STDC__
5332 # include <limits.h>
5333 #else
5334 # include <assert.h>
5335 #endif
5336 Syntax error
5337 _ACEOF
5338 if ac_fn_c_try_cpp "$LINENO"; then :
5340 else
5341 # Broken: fails on valid input.
5342 continue
5344 rm -f conftest.err conftest.$ac_ext
5346 # OK, works on sane cases. Now check whether nonexistent headers
5347 # can be detected and how.
5348 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5349 /* end confdefs.h. */
5350 #include <ac_nonexistent.h>
5351 _ACEOF
5352 if ac_fn_c_try_cpp "$LINENO"; then :
5353 # Broken: success on invalid input.
5354 continue
5355 else
5356 # Passes both tests.
5357 ac_preproc_ok=:
5358 break
5360 rm -f conftest.err conftest.$ac_ext
5362 done
5363 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5364 rm -f conftest.err conftest.$ac_ext
5365 if $ac_preproc_ok; then :
5366 break
5369 done
5370 ac_cv_prog_CPP=$CPP
5373 CPP=$ac_cv_prog_CPP
5374 else
5375 ac_cv_prog_CPP=$CPP
5377 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
5378 $as_echo "$CPP" >&6; }
5379 ac_preproc_ok=false
5380 for ac_c_preproc_warn_flag in '' yes
5382 # Use a header file that comes with gcc, so configuring glibc
5383 # with a fresh cross-compiler works.
5384 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5385 # <limits.h> exists even on freestanding compilers.
5386 # On the NeXT, cc -E runs the code through the compiler's parser,
5387 # not just through cpp. "Syntax error" is here to catch this case.
5388 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5389 /* end confdefs.h. */
5390 #ifdef __STDC__
5391 # include <limits.h>
5392 #else
5393 # include <assert.h>
5394 #endif
5395 Syntax error
5396 _ACEOF
5397 if ac_fn_c_try_cpp "$LINENO"; then :
5399 else
5400 # Broken: fails on valid input.
5401 continue
5403 rm -f conftest.err conftest.$ac_ext
5405 # OK, works on sane cases. Now check whether nonexistent headers
5406 # can be detected and how.
5407 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5408 /* end confdefs.h. */
5409 #include <ac_nonexistent.h>
5410 _ACEOF
5411 if ac_fn_c_try_cpp "$LINENO"; then :
5412 # Broken: success on invalid input.
5413 continue
5414 else
5415 # Passes both tests.
5416 ac_preproc_ok=:
5417 break
5419 rm -f conftest.err conftest.$ac_ext
5421 done
5422 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5423 rm -f conftest.err conftest.$ac_ext
5424 if $ac_preproc_ok; then :
5426 else
5427 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
5428 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
5429 as_fn_error "C preprocessor \"$CPP\" fails sanity check
5430 See \`config.log' for more details." "$LINENO" 5; }
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
5439 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for inline" >&5
5440 $as_echo_n "checking for inline... " >&6; }
5441 if test "${ac_cv_c_inline+set}" = set; then :
5442 $as_echo_n "(cached) " >&6
5443 else
5444 ac_cv_c_inline=no
5445 for ac_kw in inline __inline__ __inline; do
5446 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5447 /* end confdefs.h. */
5448 #ifndef __cplusplus
5449 typedef int foo_t;
5450 static $ac_kw foo_t static_foo () {return 0; }
5451 $ac_kw foo_t foo () {return 0; }
5452 #endif
5454 _ACEOF
5455 if ac_fn_c_try_compile "$LINENO"; then :
5456 ac_cv_c_inline=$ac_kw
5458 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5459 test "$ac_cv_c_inline" != no && break
5460 done
5463 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_inline" >&5
5464 $as_echo "$ac_cv_c_inline" >&6; }
5466 case $ac_cv_c_inline in
5467 inline | yes) ;;
5469 case $ac_cv_c_inline in
5470 no) ac_val=;;
5471 *) ac_val=$ac_cv_c_inline;;
5472 esac
5473 cat >>confdefs.h <<_ACEOF
5474 #ifndef __cplusplus
5475 #define inline $ac_val
5476 #endif
5477 _ACEOF
5479 esac
5482 # Check whether --enable-largefile was given.
5483 if test "${enable_largefile+set}" = set; then :
5484 enableval=$enable_largefile;
5487 if test "$enable_largefile" != no; then
5489 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for special C compiler options needed for large files" >&5
5490 $as_echo_n "checking for special C compiler options needed for large files... " >&6; }
5491 if test "${ac_cv_sys_largefile_CC+set}" = set; then :
5492 $as_echo_n "(cached) " >&6
5493 else
5494 ac_cv_sys_largefile_CC=no
5495 if test "$GCC" != yes; then
5496 ac_save_CC=$CC
5497 while :; do
5498 # IRIX 6.2 and later do not support large files by default,
5499 # so use the C compiler's -n32 option if that helps.
5500 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5501 /* end confdefs.h. */
5502 #include <sys/types.h>
5503 /* Check that off_t can represent 2**63 - 1 correctly.
5504 We can't simply define LARGE_OFF_T to be 9223372036854775807,
5505 since some C++ compilers masquerading as C compilers
5506 incorrectly reject 9223372036854775807. */
5507 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
5508 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
5509 && LARGE_OFF_T % 2147483647 == 1)
5510 ? 1 : -1];
5512 main ()
5516 return 0;
5518 _ACEOF
5519 if ac_fn_c_try_compile "$LINENO"; then :
5520 break
5522 rm -f core conftest.err conftest.$ac_objext
5523 CC="$CC -n32"
5524 if ac_fn_c_try_compile "$LINENO"; then :
5525 ac_cv_sys_largefile_CC=' -n32'; break
5527 rm -f core conftest.err conftest.$ac_objext
5528 break
5529 done
5530 CC=$ac_save_CC
5531 rm -f conftest.$ac_ext
5534 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_largefile_CC" >&5
5535 $as_echo "$ac_cv_sys_largefile_CC" >&6; }
5536 if test "$ac_cv_sys_largefile_CC" != no; then
5537 CC=$CC$ac_cv_sys_largefile_CC
5540 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _FILE_OFFSET_BITS value needed for large files" >&5
5541 $as_echo_n "checking for _FILE_OFFSET_BITS value needed for large files... " >&6; }
5542 if test "${ac_cv_sys_file_offset_bits+set}" = set; then :
5543 $as_echo_n "(cached) " >&6
5544 else
5545 while :; do
5546 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5547 /* end confdefs.h. */
5548 #include <sys/types.h>
5549 /* Check that off_t can represent 2**63 - 1 correctly.
5550 We can't simply define LARGE_OFF_T to be 9223372036854775807,
5551 since some C++ compilers masquerading as C compilers
5552 incorrectly reject 9223372036854775807. */
5553 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
5554 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
5555 && LARGE_OFF_T % 2147483647 == 1)
5556 ? 1 : -1];
5558 main ()
5562 return 0;
5564 _ACEOF
5565 if ac_fn_c_try_compile "$LINENO"; then :
5566 ac_cv_sys_file_offset_bits=no; break
5568 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5569 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5570 /* end confdefs.h. */
5571 #define _FILE_OFFSET_BITS 64
5572 #include <sys/types.h>
5573 /* Check that off_t can represent 2**63 - 1 correctly.
5574 We can't simply define LARGE_OFF_T to be 9223372036854775807,
5575 since some C++ compilers masquerading as C compilers
5576 incorrectly reject 9223372036854775807. */
5577 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
5578 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
5579 && LARGE_OFF_T % 2147483647 == 1)
5580 ? 1 : -1];
5582 main ()
5586 return 0;
5588 _ACEOF
5589 if ac_fn_c_try_compile "$LINENO"; then :
5590 ac_cv_sys_file_offset_bits=64; break
5592 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5593 ac_cv_sys_file_offset_bits=unknown
5594 break
5595 done
5597 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_file_offset_bits" >&5
5598 $as_echo "$ac_cv_sys_file_offset_bits" >&6; }
5599 case $ac_cv_sys_file_offset_bits in #(
5600 no | unknown) ;;
5602 cat >>confdefs.h <<_ACEOF
5603 #define _FILE_OFFSET_BITS $ac_cv_sys_file_offset_bits
5604 _ACEOF
5606 esac
5607 rm -rf conftest*
5608 if test $ac_cv_sys_file_offset_bits = unknown; then
5609 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _LARGE_FILES value needed for large files" >&5
5610 $as_echo_n "checking for _LARGE_FILES value needed for large files... " >&6; }
5611 if test "${ac_cv_sys_large_files+set}" = set; then :
5612 $as_echo_n "(cached) " >&6
5613 else
5614 while :; do
5615 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5616 /* end confdefs.h. */
5617 #include <sys/types.h>
5618 /* Check that off_t can represent 2**63 - 1 correctly.
5619 We can't simply define LARGE_OFF_T to be 9223372036854775807,
5620 since some C++ compilers masquerading as C compilers
5621 incorrectly reject 9223372036854775807. */
5622 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
5623 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
5624 && LARGE_OFF_T % 2147483647 == 1)
5625 ? 1 : -1];
5627 main ()
5631 return 0;
5633 _ACEOF
5634 if ac_fn_c_try_compile "$LINENO"; then :
5635 ac_cv_sys_large_files=no; break
5637 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5638 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5639 /* end confdefs.h. */
5640 #define _LARGE_FILES 1
5641 #include <sys/types.h>
5642 /* Check that off_t can represent 2**63 - 1 correctly.
5643 We can't simply define LARGE_OFF_T to be 9223372036854775807,
5644 since some C++ compilers masquerading as C compilers
5645 incorrectly reject 9223372036854775807. */
5646 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
5647 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
5648 && LARGE_OFF_T % 2147483647 == 1)
5649 ? 1 : -1];
5651 main ()
5655 return 0;
5657 _ACEOF
5658 if ac_fn_c_try_compile "$LINENO"; then :
5659 ac_cv_sys_large_files=1; break
5661 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5662 ac_cv_sys_large_files=unknown
5663 break
5664 done
5666 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_large_files" >&5
5667 $as_echo "$ac_cv_sys_large_files" >&6; }
5668 case $ac_cv_sys_large_files in #(
5669 no | unknown) ;;
5671 cat >>confdefs.h <<_ACEOF
5672 #define _LARGE_FILES $ac_cv_sys_large_files
5673 _ACEOF
5675 esac
5676 rm -rf conftest*
5681 # sizeof(char) is 1 by definition.
5682 # The cast to long int works around a bug in the HP C Compiler
5683 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
5684 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
5685 # This bug is HP SR number 8606223364.
5686 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of void *" >&5
5687 $as_echo_n "checking size of void *... " >&6; }
5688 if test "${ac_cv_sizeof_void_p+set}" = set; then :
5689 $as_echo_n "(cached) " >&6
5690 else
5691 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (void *))" "ac_cv_sizeof_void_p" "$ac_includes_default"; then :
5693 else
5694 if test "$ac_cv_type_void_p" = yes; then
5695 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
5696 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
5697 { as_fn_set_status 77
5698 as_fn_error "cannot compute sizeof (void *)
5699 See \`config.log' for more details." "$LINENO" 5; }; }
5700 else
5701 ac_cv_sizeof_void_p=0
5706 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_void_p" >&5
5707 $as_echo "$ac_cv_sizeof_void_p" >&6; }
5711 cat >>confdefs.h <<_ACEOF
5712 #define SIZEOF_VOID_P $ac_cv_sizeof_void_p
5713 _ACEOF
5716 # The cast to long int works around a bug in the HP C Compiler
5717 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
5718 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
5719 # This bug is HP SR number 8606223364.
5720 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of short" >&5
5721 $as_echo_n "checking size of short... " >&6; }
5722 if test "${ac_cv_sizeof_short+set}" = set; then :
5723 $as_echo_n "(cached) " >&6
5724 else
5725 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (short))" "ac_cv_sizeof_short" "$ac_includes_default"; then :
5727 else
5728 if test "$ac_cv_type_short" = yes; then
5729 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
5730 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
5731 { as_fn_set_status 77
5732 as_fn_error "cannot compute sizeof (short)
5733 See \`config.log' for more details." "$LINENO" 5; }; }
5734 else
5735 ac_cv_sizeof_short=0
5740 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_short" >&5
5741 $as_echo "$ac_cv_sizeof_short" >&6; }
5745 cat >>confdefs.h <<_ACEOF
5746 #define SIZEOF_SHORT $ac_cv_sizeof_short
5747 _ACEOF
5750 # The cast to long int works around a bug in the HP C Compiler
5751 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
5752 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
5753 # This bug is HP SR number 8606223364.
5754 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of int" >&5
5755 $as_echo_n "checking size of int... " >&6; }
5756 if test "${ac_cv_sizeof_int+set}" = set; then :
5757 $as_echo_n "(cached) " >&6
5758 else
5759 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (int))" "ac_cv_sizeof_int" "$ac_includes_default"; then :
5761 else
5762 if test "$ac_cv_type_int" = yes; then
5763 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
5764 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
5765 { as_fn_set_status 77
5766 as_fn_error "cannot compute sizeof (int)
5767 See \`config.log' for more details." "$LINENO" 5; }; }
5768 else
5769 ac_cv_sizeof_int=0
5774 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_int" >&5
5775 $as_echo "$ac_cv_sizeof_int" >&6; }
5779 cat >>confdefs.h <<_ACEOF
5780 #define SIZEOF_INT $ac_cv_sizeof_int
5781 _ACEOF
5784 # The cast to long int works around a bug in the HP C Compiler
5785 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
5786 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
5787 # This bug is HP SR number 8606223364.
5788 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of long" >&5
5789 $as_echo_n "checking size of long... " >&6; }
5790 if test "${ac_cv_sizeof_long+set}" = set; then :
5791 $as_echo_n "(cached) " >&6
5792 else
5793 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (long))" "ac_cv_sizeof_long" "$ac_includes_default"; then :
5795 else
5796 if test "$ac_cv_type_long" = yes; then
5797 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
5798 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
5799 { as_fn_set_status 77
5800 as_fn_error "cannot compute sizeof (long)
5801 See \`config.log' for more details." "$LINENO" 5; }; }
5802 else
5803 ac_cv_sizeof_long=0
5808 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_long" >&5
5809 $as_echo "$ac_cv_sizeof_long" >&6; }
5813 cat >>confdefs.h <<_ACEOF
5814 #define SIZEOF_LONG $ac_cv_sizeof_long
5815 _ACEOF
5818 ac_fn_c_check_type "$LINENO" "long long" "ac_cv_type_long_long" "$ac_includes_default"
5819 if test "x$ac_cv_type_long_long" = x""yes; then :
5821 cat >>confdefs.h <<_ACEOF
5822 #define HAVE_LONG_LONG 1
5823 _ACEOF
5825 # The cast to long int works around a bug in the HP C Compiler
5826 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
5827 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
5828 # This bug is HP SR number 8606223364.
5829 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of long long" >&5
5830 $as_echo_n "checking size of long long... " >&6; }
5831 if test "${ac_cv_sizeof_long_long+set}" = set; then :
5832 $as_echo_n "(cached) " >&6
5833 else
5834 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (long long))" "ac_cv_sizeof_long_long" "$ac_includes_default"; then :
5836 else
5837 if test "$ac_cv_type_long_long" = yes; then
5838 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
5839 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
5840 { as_fn_set_status 77
5841 as_fn_error "cannot compute sizeof (long long)
5842 See \`config.log' for more details." "$LINENO" 5; }; }
5843 else
5844 ac_cv_sizeof_long_long=0
5849 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_long_long" >&5
5850 $as_echo "$ac_cv_sizeof_long_long" >&6; }
5854 cat >>confdefs.h <<_ACEOF
5855 #define SIZEOF_LONG_LONG $ac_cv_sizeof_long_long
5856 _ACEOF
5861 ac_fn_c_check_type "$LINENO" "__int64" "ac_cv_type___int64" "$ac_includes_default"
5862 if test "x$ac_cv_type___int64" = x""yes; then :
5864 cat >>confdefs.h <<_ACEOF
5865 #define HAVE___INT64 1
5866 _ACEOF
5868 # The cast to long int works around a bug in the HP C Compiler
5869 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
5870 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
5871 # This bug is HP SR number 8606223364.
5872 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of __int64" >&5
5873 $as_echo_n "checking size of __int64... " >&6; }
5874 if test "${ac_cv_sizeof___int64+set}" = set; then :
5875 $as_echo_n "(cached) " >&6
5876 else
5877 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (__int64))" "ac_cv_sizeof___int64" "$ac_includes_default"; then :
5879 else
5880 if test "$ac_cv_type___int64" = yes; then
5881 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
5882 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
5883 { as_fn_set_status 77
5884 as_fn_error "cannot compute sizeof (__int64)
5885 See \`config.log' for more details." "$LINENO" 5; }; }
5886 else
5887 ac_cv_sizeof___int64=0
5892 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof___int64" >&5
5893 $as_echo "$ac_cv_sizeof___int64" >&6; }
5897 cat >>confdefs.h <<_ACEOF
5898 #define SIZEOF___INT64 $ac_cv_sizeof___int64
5899 _ACEOF
5904 ac_fn_c_find_intX_t "$LINENO" "8" "ac_cv_c_int8_t"
5905 case $ac_cv_c_int8_t in #(
5906 no|yes) ;; #(
5909 cat >>confdefs.h <<_ACEOF
5910 #define int8_t $ac_cv_c_int8_t
5911 _ACEOF
5913 esac
5915 ac_fn_c_find_intX_t "$LINENO" "16" "ac_cv_c_int16_t"
5916 case $ac_cv_c_int16_t in #(
5917 no|yes) ;; #(
5920 cat >>confdefs.h <<_ACEOF
5921 #define int16_t $ac_cv_c_int16_t
5922 _ACEOF
5924 esac
5926 ac_fn_c_find_intX_t "$LINENO" "32" "ac_cv_c_int32_t"
5927 case $ac_cv_c_int32_t in #(
5928 no|yes) ;; #(
5931 cat >>confdefs.h <<_ACEOF
5932 #define int32_t $ac_cv_c_int32_t
5933 _ACEOF
5935 esac
5937 ac_fn_c_find_intX_t "$LINENO" "64" "ac_cv_c_int64_t"
5938 case $ac_cv_c_int64_t in #(
5939 no|yes) ;; #(
5942 cat >>confdefs.h <<_ACEOF
5943 #define int64_t $ac_cv_c_int64_t
5944 _ACEOF
5946 esac
5949 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for long long int" >&5
5950 $as_echo_n "checking for long long int... " >&6; }
5951 if test "${ac_cv_type_long_long_int+set}" = set; then :
5952 $as_echo_n "(cached) " >&6
5953 else
5954 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5955 /* end confdefs.h. */
5957 /* For now, do not test the preprocessor; as of 2007 there are too many
5958 implementations with broken preprocessors. Perhaps this can
5959 be revisited in 2012. In the meantime, code should not expect
5960 #if to work with literals wider than 32 bits. */
5961 /* Test literals. */
5962 long long int ll = 9223372036854775807ll;
5963 long long int nll = -9223372036854775807LL;
5964 unsigned long long int ull = 18446744073709551615ULL;
5965 /* Test constant expressions. */
5966 typedef int a[((-9223372036854775807LL < 0 && 0 < 9223372036854775807ll)
5967 ? 1 : -1)];
5968 typedef int b[(18446744073709551615ULL <= (unsigned long long int) -1
5969 ? 1 : -1)];
5970 int i = 63;
5972 main ()
5974 /* Test availability of runtime routines for shift and division. */
5975 long long int llmax = 9223372036854775807ll;
5976 unsigned long long int ullmax = 18446744073709551615ull;
5977 return ((ll << 63) | (ll >> 63) | (ll < i) | (ll > i)
5978 | (llmax / ll) | (llmax % ll)
5979 | (ull << 63) | (ull >> 63) | (ull << i) | (ull >> i)
5980 | (ullmax / ull) | (ullmax % ull));
5982 return 0;
5985 _ACEOF
5986 if ac_fn_c_try_link "$LINENO"; then :
5987 if test "$cross_compiling" = yes; then :
5988 ac_cv_type_long_long_int=yes
5989 else
5990 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5991 /* end confdefs.h. */
5992 #include <limits.h>
5993 #ifndef LLONG_MAX
5994 # define HALF \
5995 (1LL << (sizeof (long long int) * CHAR_BIT - 2))
5996 # define LLONG_MAX (HALF - 1 + HALF)
5997 #endif
5999 main ()
6001 long long int n = 1;
6002 int i;
6003 for (i = 0; ; i++)
6005 long long int m = n << i;
6006 if (m >> i != n)
6007 return 1;
6008 if (LLONG_MAX / 2 < m)
6009 break;
6011 return 0;
6013 return 0;
6015 _ACEOF
6016 if ac_fn_c_try_run "$LINENO"; then :
6017 ac_cv_type_long_long_int=yes
6018 else
6019 ac_cv_type_long_long_int=no
6021 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
6022 conftest.$ac_objext conftest.beam conftest.$ac_ext
6025 else
6026 ac_cv_type_long_long_int=no
6028 rm -f core conftest.err conftest.$ac_objext \
6029 conftest$ac_exeext conftest.$ac_ext
6031 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_long_long_int" >&5
6032 $as_echo "$ac_cv_type_long_long_int" >&6; }
6033 if test $ac_cv_type_long_long_int = yes; then
6035 $as_echo "#define HAVE_LONG_LONG_INT 1" >>confdefs.h
6041 ac_fn_c_check_type "$LINENO" "intmax_t" "ac_cv_type_intmax_t" "$ac_includes_default"
6042 if test "x$ac_cv_type_intmax_t" = x""yes; then :
6044 $as_echo "#define HAVE_INTMAX_T 1" >>confdefs.h
6046 else
6047 test $ac_cv_type_long_long_int = yes \
6048 && ac_type='long long int' \
6049 || ac_type='long int'
6051 cat >>confdefs.h <<_ACEOF
6052 #define intmax_t $ac_type
6053 _ACEOF
6059 ac_fn_c_check_type "$LINENO" "intptr_t" "ac_cv_type_intptr_t" "$ac_includes_default"
6060 if test "x$ac_cv_type_intptr_t" = x""yes; then :
6062 $as_echo "#define HAVE_INTPTR_T 1" >>confdefs.h
6064 else
6065 for ac_type in 'int' 'long int' 'long long int'; do
6066 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6067 /* end confdefs.h. */
6068 $ac_includes_default
6070 main ()
6072 static int test_array [1 - 2 * !(sizeof (void *) <= sizeof ($ac_type))];
6073 test_array [0] = 0
6076 return 0;
6078 _ACEOF
6079 if ac_fn_c_try_compile "$LINENO"; then :
6081 cat >>confdefs.h <<_ACEOF
6082 #define intptr_t $ac_type
6083 _ACEOF
6085 ac_type=
6087 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6088 test -z "$ac_type" && break
6089 done
6093 ac_fn_c_find_uintX_t "$LINENO" "8" "ac_cv_c_uint8_t"
6094 case $ac_cv_c_uint8_t in #(
6095 no|yes) ;; #(
6098 $as_echo "#define _UINT8_T 1" >>confdefs.h
6101 cat >>confdefs.h <<_ACEOF
6102 #define uint8_t $ac_cv_c_uint8_t
6103 _ACEOF
6105 esac
6107 ac_fn_c_find_uintX_t "$LINENO" "16" "ac_cv_c_uint16_t"
6108 case $ac_cv_c_uint16_t in #(
6109 no|yes) ;; #(
6113 cat >>confdefs.h <<_ACEOF
6114 #define uint16_t $ac_cv_c_uint16_t
6115 _ACEOF
6117 esac
6119 ac_fn_c_find_uintX_t "$LINENO" "32" "ac_cv_c_uint32_t"
6120 case $ac_cv_c_uint32_t in #(
6121 no|yes) ;; #(
6124 $as_echo "#define _UINT32_T 1" >>confdefs.h
6127 cat >>confdefs.h <<_ACEOF
6128 #define uint32_t $ac_cv_c_uint32_t
6129 _ACEOF
6131 esac
6133 ac_fn_c_find_uintX_t "$LINENO" "64" "ac_cv_c_uint64_t"
6134 case $ac_cv_c_uint64_t in #(
6135 no|yes) ;; #(
6138 $as_echo "#define _UINT64_T 1" >>confdefs.h
6141 cat >>confdefs.h <<_ACEOF
6142 #define uint64_t $ac_cv_c_uint64_t
6143 _ACEOF
6145 esac
6148 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for unsigned long long int" >&5
6149 $as_echo_n "checking for unsigned long long int... " >&6; }
6150 if test "${ac_cv_type_unsigned_long_long_int+set}" = set; then :
6151 $as_echo_n "(cached) " >&6
6152 else
6153 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6154 /* end confdefs.h. */
6156 /* For now, do not test the preprocessor; as of 2007 there are too many
6157 implementations with broken preprocessors. Perhaps this can
6158 be revisited in 2012. In the meantime, code should not expect
6159 #if to work with literals wider than 32 bits. */
6160 /* Test literals. */
6161 long long int ll = 9223372036854775807ll;
6162 long long int nll = -9223372036854775807LL;
6163 unsigned long long int ull = 18446744073709551615ULL;
6164 /* Test constant expressions. */
6165 typedef int a[((-9223372036854775807LL < 0 && 0 < 9223372036854775807ll)
6166 ? 1 : -1)];
6167 typedef int b[(18446744073709551615ULL <= (unsigned long long int) -1
6168 ? 1 : -1)];
6169 int i = 63;
6171 main ()
6173 /* Test availability of runtime routines for shift and division. */
6174 long long int llmax = 9223372036854775807ll;
6175 unsigned long long int ullmax = 18446744073709551615ull;
6176 return ((ll << 63) | (ll >> 63) | (ll < i) | (ll > i)
6177 | (llmax / ll) | (llmax % ll)
6178 | (ull << 63) | (ull >> 63) | (ull << i) | (ull >> i)
6179 | (ullmax / ull) | (ullmax % ull));
6181 return 0;
6184 _ACEOF
6185 if ac_fn_c_try_link "$LINENO"; then :
6186 ac_cv_type_unsigned_long_long_int=yes
6187 else
6188 ac_cv_type_unsigned_long_long_int=no
6190 rm -f core conftest.err conftest.$ac_objext \
6191 conftest$ac_exeext conftest.$ac_ext
6193 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_unsigned_long_long_int" >&5
6194 $as_echo "$ac_cv_type_unsigned_long_long_int" >&6; }
6195 if test $ac_cv_type_unsigned_long_long_int = yes; then
6197 $as_echo "#define HAVE_UNSIGNED_LONG_LONG_INT 1" >>confdefs.h
6203 ac_fn_c_check_type "$LINENO" "uintmax_t" "ac_cv_type_uintmax_t" "$ac_includes_default"
6204 if test "x$ac_cv_type_uintmax_t" = x""yes; then :
6206 $as_echo "#define HAVE_UINTMAX_T 1" >>confdefs.h
6208 else
6209 test $ac_cv_type_unsigned_long_long_int = yes \
6210 && ac_type='unsigned long long int' \
6211 || ac_type='unsigned long int'
6213 cat >>confdefs.h <<_ACEOF
6214 #define uintmax_t $ac_type
6215 _ACEOF
6221 ac_fn_c_check_type "$LINENO" "uintptr_t" "ac_cv_type_uintptr_t" "$ac_includes_default"
6222 if test "x$ac_cv_type_uintptr_t" = x""yes; then :
6224 $as_echo "#define HAVE_UINTPTR_T 1" >>confdefs.h
6226 else
6227 for ac_type in 'unsigned int' 'unsigned long int' \
6228 'unsigned long long int'; do
6229 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6230 /* end confdefs.h. */
6231 $ac_includes_default
6233 main ()
6235 static int test_array [1 - 2 * !(sizeof (void *) <= sizeof ($ac_type))];
6236 test_array [0] = 0
6239 return 0;
6241 _ACEOF
6242 if ac_fn_c_try_compile "$LINENO"; then :
6244 cat >>confdefs.h <<_ACEOF
6245 #define uintptr_t $ac_type
6246 _ACEOF
6248 ac_type=
6250 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6251 test -z "$ac_type" && break
6252 done
6269 # ---------------------
6270 # Warnings and checking
6271 # ---------------------
6273 # Check $CC warning features (if it's GCC).
6274 # We want to use -pedantic, but we don't want warnings about
6275 # * 'long long'
6276 # * variadic macros
6277 # * overlong strings
6278 # * C++11 narrowing conversions in { }
6279 # So, we only use -pedantic if we can disable those warnings.
6281 loose_warn=
6282 save_CFLAGS="$CFLAGS"
6283 for real_option in -W -Wall -Wno-narrowing -Wwrite-strings -Wcast-qual; do
6284 # Do the check with the no- prefix removed since gcc silently
6285 # accepts any -Wno-* option on purpose
6286 case $real_option in
6287 -Wno-*) option=-W`expr x$real_option : 'x-Wno-\(.*\)'` ;;
6288 *) option=$real_option ;;
6289 esac
6290 as_acx_Woption=`$as_echo "acx_cv_prog_cc_warning_$option" | $as_tr_sh`
6292 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC supports $option" >&5
6293 $as_echo_n "checking whether $CC supports $option... " >&6; }
6294 if { as_var=$as_acx_Woption; eval "test \"\${$as_var+set}\" = set"; }; then :
6295 $as_echo_n "(cached) " >&6
6296 else
6297 CFLAGS="$option"
6298 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6299 /* end confdefs.h. */
6302 main ()
6306 return 0;
6308 _ACEOF
6309 if ac_fn_c_try_compile "$LINENO"; then :
6310 eval "$as_acx_Woption=yes"
6311 else
6312 eval "$as_acx_Woption=no"
6314 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6317 eval ac_res=\$$as_acx_Woption
6318 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
6319 $as_echo "$ac_res" >&6; }
6320 if test `eval 'as_val=${'$as_acx_Woption'};$as_echo "$as_val"'` = yes; then :
6321 loose_warn="$loose_warn${loose_warn:+ }$real_option"
6323 done
6324 CFLAGS="$save_CFLAGS"
6326 c_loose_warn=
6327 save_CFLAGS="$CFLAGS"
6328 for real_option in -Wstrict-prototypes -Wmissing-prototypes; do
6329 # Do the check with the no- prefix removed since gcc silently
6330 # accepts any -Wno-* option on purpose
6331 case $real_option in
6332 -Wno-*) option=-W`expr x$real_option : 'x-Wno-\(.*\)'` ;;
6333 *) option=$real_option ;;
6334 esac
6335 as_acx_Woption=`$as_echo "acx_cv_prog_cc_warning_$option" | $as_tr_sh`
6337 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC supports $option" >&5
6338 $as_echo_n "checking whether $CC supports $option... " >&6; }
6339 if { as_var=$as_acx_Woption; eval "test \"\${$as_var+set}\" = set"; }; then :
6340 $as_echo_n "(cached) " >&6
6341 else
6342 CFLAGS="$option"
6343 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6344 /* end confdefs.h. */
6347 main ()
6351 return 0;
6353 _ACEOF
6354 if ac_fn_c_try_compile "$LINENO"; then :
6355 eval "$as_acx_Woption=yes"
6356 else
6357 eval "$as_acx_Woption=no"
6359 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6362 eval ac_res=\$$as_acx_Woption
6363 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
6364 $as_echo "$ac_res" >&6; }
6365 if test `eval 'as_val=${'$as_acx_Woption'};$as_echo "$as_val"'` = yes; then :
6366 c_loose_warn="$c_loose_warn${c_loose_warn:+ }$real_option"
6368 done
6369 CFLAGS="$save_CFLAGS"
6371 strict_warn=
6372 save_CFLAGS="$CFLAGS"
6373 for real_option in -Wmissing-format-attribute; do
6374 # Do the check with the no- prefix removed since gcc silently
6375 # accepts any -Wno-* option on purpose
6376 case $real_option in
6377 -Wno-*) option=-W`expr x$real_option : 'x-Wno-\(.*\)'` ;;
6378 *) option=$real_option ;;
6379 esac
6380 as_acx_Woption=`$as_echo "acx_cv_prog_cc_warning_$option" | $as_tr_sh`
6382 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC supports $option" >&5
6383 $as_echo_n "checking whether $CC supports $option... " >&6; }
6384 if { as_var=$as_acx_Woption; eval "test \"\${$as_var+set}\" = set"; }; then :
6385 $as_echo_n "(cached) " >&6
6386 else
6387 CFLAGS="$option"
6388 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6389 /* end confdefs.h. */
6392 main ()
6396 return 0;
6398 _ACEOF
6399 if ac_fn_c_try_compile "$LINENO"; then :
6400 eval "$as_acx_Woption=yes"
6401 else
6402 eval "$as_acx_Woption=no"
6404 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6407 eval ac_res=\$$as_acx_Woption
6408 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
6409 $as_echo "$ac_res" >&6; }
6410 if test `eval 'as_val=${'$as_acx_Woption'};$as_echo "$as_val"'` = yes; then :
6411 strict_warn="$strict_warn${strict_warn:+ }$real_option"
6413 done
6414 CFLAGS="$save_CFLAGS"
6416 c_strict_warn=
6417 save_CFLAGS="$CFLAGS"
6418 for real_option in -Wold-style-definition -Wc++-compat; do
6419 # Do the check with the no- prefix removed since gcc silently
6420 # accepts any -Wno-* option on purpose
6421 case $real_option in
6422 -Wno-*) option=-W`expr x$real_option : 'x-Wno-\(.*\)'` ;;
6423 *) option=$real_option ;;
6424 esac
6425 as_acx_Woption=`$as_echo "acx_cv_prog_cc_warning_$option" | $as_tr_sh`
6427 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC supports $option" >&5
6428 $as_echo_n "checking whether $CC supports $option... " >&6; }
6429 if { as_var=$as_acx_Woption; eval "test \"\${$as_var+set}\" = set"; }; then :
6430 $as_echo_n "(cached) " >&6
6431 else
6432 CFLAGS="$option"
6433 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6434 /* end confdefs.h. */
6437 main ()
6441 return 0;
6443 _ACEOF
6444 if ac_fn_c_try_compile "$LINENO"; then :
6445 eval "$as_acx_Woption=yes"
6446 else
6447 eval "$as_acx_Woption=no"
6449 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6452 eval ac_res=\$$as_acx_Woption
6453 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
6454 $as_echo "$ac_res" >&6; }
6455 if test `eval 'as_val=${'$as_acx_Woption'};$as_echo "$as_val"'` = yes; then :
6456 c_strict_warn="$c_strict_warn${c_strict_warn:+ }$real_option"
6458 done
6459 CFLAGS="$save_CFLAGS"
6461 # Do the check with the no- prefix removed from the warning options
6462 # since gcc silently accepts any -Wno-* option on purpose
6463 if test "$GCC" = yes; then :
6464 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC supports -pedantic -Wlong-long -Wvariadic-macros -Woverlength-strings" >&5
6465 $as_echo_n "checking whether $CC supports -pedantic -Wlong-long -Wvariadic-macros -Woverlength-strings... " >&6; }
6466 if test "${acx_cv_prog_cc_pedantic__Wlong_long__Wvariadic_macros__Woverlength_strings+set}" = set; then :
6467 $as_echo_n "(cached) " >&6
6468 else
6469 save_CFLAGS="$CFLAGS"
6470 CFLAGS="-pedantic -Wlong-long -Wvariadic-macros -Woverlength-strings"
6471 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6472 /* end confdefs.h. */
6475 main ()
6479 return 0;
6481 _ACEOF
6482 if ac_fn_c_try_compile "$LINENO"; then :
6483 acx_cv_prog_cc_pedantic__Wlong_long__Wvariadic_macros__Woverlength_strings=yes
6484 else
6485 acx_cv_prog_cc_pedantic__Wlong_long__Wvariadic_macros__Woverlength_strings=no
6487 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6488 CFLAGS="$save_CFLAGS"
6490 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $acx_cv_prog_cc_pedantic__Wlong_long__Wvariadic_macros__Woverlength_strings" >&5
6491 $as_echo "$acx_cv_prog_cc_pedantic__Wlong_long__Wvariadic_macros__Woverlength_strings" >&6; }
6492 if test $acx_cv_prog_cc_pedantic__Wlong_long__Wvariadic_macros__Woverlength_strings = yes; then :
6493 strict_warn="$strict_warn${strict_warn:+ }-pedantic -Wno-long-long -Wno-variadic-macros -Wno-overlength-strings"
6498 # Check whether --enable-werror-always was given.
6499 if test "${enable_werror_always+set}" = set; then :
6500 enableval=$enable_werror_always;
6501 else
6502 enable_werror_always=no
6505 if test $enable_werror_always = yes; then :
6506 strict_warn="$strict_warn${strict_warn:+ }-Werror"
6511 # The above macros do nothing if the compiler is not GCC. However, the
6512 # Makefile has more goo to add other flags, so these variables are used
6513 # to enable warnings only for GCC.
6514 warn_cflags=
6515 warn_cxxflags=
6516 if test "x$GCC" = "xyes"; then
6517 warn_cflags='$(GCC_WARN_CFLAGS)'
6518 warn_cxxflags='$(GCC_WARN_CXXFLAGS)'
6523 # Disable exceptions and RTTI if building with g++
6524 noexception_flags=
6525 save_CFLAGS="$CFLAGS"
6526 for real_option in -fno-exceptions -fno-rtti -fasynchronous-unwind-tables; do
6527 # Do the check with the no- prefix removed since gcc silently
6528 # accepts any -Wno-* option on purpose
6529 case $real_option in
6530 -Wno-*) option=-W`expr x$real_option : 'x-Wno-\(.*\)'` ;;
6531 *) option=$real_option ;;
6532 esac
6533 as_acx_Woption=`$as_echo "acx_cv_prog_cc_warning_$option" | $as_tr_sh`
6535 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC supports $option" >&5
6536 $as_echo_n "checking whether $CC supports $option... " >&6; }
6537 if { as_var=$as_acx_Woption; eval "test \"\${$as_var+set}\" = set"; }; then :
6538 $as_echo_n "(cached) " >&6
6539 else
6540 CFLAGS="$option"
6541 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6542 /* end confdefs.h. */
6545 main ()
6549 return 0;
6551 _ACEOF
6552 if ac_fn_c_try_compile "$LINENO"; then :
6553 eval "$as_acx_Woption=yes"
6554 else
6555 eval "$as_acx_Woption=no"
6557 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6560 eval ac_res=\$$as_acx_Woption
6561 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
6562 $as_echo "$ac_res" >&6; }
6563 if test `eval 'as_val=${'$as_acx_Woption'};$as_echo "$as_val"'` = yes; then :
6564 noexception_flags="$noexception_flags${noexception_flags:+ }$real_option"
6566 done
6567 CFLAGS="$save_CFLAGS"
6570 # Enable expensive internal checks
6571 is_release=
6572 if test x"`cat $srcdir/DEV-PHASE`" != xexperimental; then
6573 is_release=yes
6576 # Check whether --enable-checking was given.
6577 if test "${enable_checking+set}" = set; then :
6578 enableval=$enable_checking; ac_checking_flags="${enableval}"
6579 else
6581 # Determine the default checks.
6582 if test x$is_release = x ; then
6583 ac_checking_flags=yes
6584 else
6585 ac_checking_flags=release
6589 IFS="${IFS= }"; ac_save_IFS="$IFS"; IFS="$IFS,"
6590 for check in release $ac_checking_flags
6592 case $check in
6593 # these set all the flags to specific states
6594 yes) ac_assert_checking=1 ; ac_checking=1 ; ac_df_checking= ;
6595 ac_fold_checking= ; ac_gc_checking=1 ;
6596 ac_gc_always_collect= ; ac_gimple_checking=1 ; ac_rtl_checking= ;
6597 ac_rtlflag_checking=1 ; ac_runtime_checking=1 ;
6598 ac_tree_checking=1 ; ac_valgrind_checking= ;
6599 ac_types_checking=1 ;;
6600 no|none) ac_assert_checking= ; ac_checking= ; ac_df_checking= ;
6601 ac_fold_checking= ; ac_gc_checking= ;
6602 ac_gc_always_collect= ; ac_gimple_checking= ; ac_rtl_checking= ;
6603 ac_rtlflag_checking= ; ac_runtime_checking= ;
6604 ac_tree_checking= ; ac_valgrind_checking= ;
6605 ac_types_checking= ;;
6606 all) ac_assert_checking=1 ; ac_checking=1 ; ac_df_checking=1 ;
6607 ac_fold_checking=1 ; ac_gc_checking=1 ;
6608 ac_gc_always_collect=1 ; ac_gimple_checking=1 ; ac_rtl_checking=1 ;
6609 ac_rtlflag_checking=1 ; ac_runtime_checking=1 ;
6610 ac_tree_checking=1 ; ac_valgrind_checking= ;
6611 ac_types_checking=1 ;;
6612 release) ac_assert_checking=1 ; ac_checking= ; ac_df_checking= ;
6613 ac_fold_checking= ; ac_gc_checking= ;
6614 ac_gc_always_collect= ; ac_gimple_checking= ; ac_rtl_checking= ;
6615 ac_rtlflag_checking= ; ac_runtime_checking=1 ;
6616 ac_tree_checking= ; ac_valgrind_checking= ;
6617 ac_types_checking= ;;
6618 # these enable particular checks
6619 assert) ac_assert_checking=1 ;;
6620 df) ac_df_checking=1 ;;
6621 fold) ac_fold_checking=1 ;;
6622 gc) ac_gc_checking=1 ;;
6623 gcac) ac_gc_always_collect=1 ;;
6624 gimple) ac_gimple_checking=1 ;;
6625 misc) ac_checking=1 ;;
6626 rtl) ac_rtl_checking=1 ;;
6627 rtlflag) ac_rtlflag_checking=1 ;;
6628 runtime) ac_runtime_checking=1 ;;
6629 tree) ac_tree_checking=1 ;;
6630 types) ac_types_checking=1 ;;
6631 valgrind) ac_valgrind_checking=1 ;;
6632 *) as_fn_error "unknown check category $check" "$LINENO" 5 ;;
6633 esac
6634 done
6635 IFS="$ac_save_IFS"
6637 nocommon_flag=""
6638 if test x$ac_checking != x ; then
6640 $as_echo "#define ENABLE_CHECKING 1" >>confdefs.h
6642 nocommon_flag=-fno-common
6645 if test x$ac_df_checking != x ; then
6647 $as_echo "#define ENABLE_DF_CHECKING 1" >>confdefs.h
6650 if test x$ac_assert_checking != x ; then
6652 $as_echo "#define ENABLE_ASSERT_CHECKING 1" >>confdefs.h
6655 if test x$ac_gimple_checking != x ; then
6657 $as_echo "#define ENABLE_GIMPLE_CHECKING 1" >>confdefs.h
6661 if test x$ac_runtime_checking != x ; then
6663 $as_echo "#define ENABLE_RUNTIME_CHECKING 1" >>confdefs.h
6666 if test x$ac_tree_checking != x ; then
6668 $as_echo "#define ENABLE_TREE_CHECKING 1" >>confdefs.h
6670 TREEBROWSER=tree-browser.o
6671 TREECHECKING=yes
6673 if test x$ac_types_checking != x ; then
6675 $as_echo "#define ENABLE_TYPES_CHECKING 1" >>confdefs.h
6680 if test x$ac_rtl_checking != x ; then
6682 $as_echo "#define ENABLE_RTL_CHECKING 1" >>confdefs.h
6685 if test x$ac_rtlflag_checking != x ; then
6687 $as_echo "#define ENABLE_RTL_FLAG_CHECKING 1" >>confdefs.h
6690 if test x$ac_gc_checking != x ; then
6692 $as_echo "#define ENABLE_GC_CHECKING 1" >>confdefs.h
6695 if test x$ac_gc_always_collect != x ; then
6697 $as_echo "#define ENABLE_GC_ALWAYS_COLLECT 1" >>confdefs.h
6700 if test x$ac_fold_checking != x ; then
6702 $as_echo "#define ENABLE_FOLD_CHECKING 1" >>confdefs.h
6705 valgrind_path_defines=
6706 valgrind_command=
6708 ac_fn_c_check_header_mongrel "$LINENO" "valgrind.h" "ac_cv_header_valgrind_h" "$ac_includes_default"
6709 if test "x$ac_cv_header_valgrind_h" = x""yes; then :
6710 have_valgrind_h=yes
6711 else
6712 have_valgrind_h=no
6717 if test x$ac_valgrind_checking != x ; then
6718 # It is certainly possible that there's valgrind but no valgrind.h.
6719 # GCC relies on making annotations so we must have both.
6720 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for VALGRIND_DISCARD in <valgrind/memcheck.h>" >&5
6721 $as_echo_n "checking for VALGRIND_DISCARD in <valgrind/memcheck.h>... " >&6; }
6722 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6723 /* end confdefs.h. */
6724 #include <valgrind/memcheck.h>
6725 #ifndef VALGRIND_DISCARD
6726 #error VALGRIND_DISCARD not defined
6727 #endif
6728 _ACEOF
6729 if ac_fn_c_try_cpp "$LINENO"; then :
6730 gcc_cv_header_valgrind_memcheck_h=yes
6731 else
6732 gcc_cv_header_valgrind_memcheck_h=no
6734 rm -f conftest.err conftest.$ac_ext
6735 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_header_valgrind_memcheck_h" >&5
6736 $as_echo "$gcc_cv_header_valgrind_memcheck_h" >&6; }
6737 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for VALGRIND_DISCARD in <memcheck.h>" >&5
6738 $as_echo_n "checking for VALGRIND_DISCARD in <memcheck.h>... " >&6; }
6739 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6740 /* end confdefs.h. */
6741 #include <memcheck.h>
6742 #ifndef VALGRIND_DISCARD
6743 #error VALGRIND_DISCARD not defined
6744 #endif
6745 _ACEOF
6746 if ac_fn_c_try_cpp "$LINENO"; then :
6747 gcc_cv_header_memcheck_h=yes
6748 else
6749 gcc_cv_header_memcheck_h=no
6751 rm -f conftest.err conftest.$ac_ext
6752 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_header_memcheck_h" >&5
6753 $as_echo "$gcc_cv_header_memcheck_h" >&6; }
6755 # Prepare PATH_SEPARATOR.
6756 # The user is always right.
6757 if test "${PATH_SEPARATOR+set}" != set; then
6758 echo "#! /bin/sh" >conf$$.sh
6759 echo "exit 0" >>conf$$.sh
6760 chmod +x conf$$.sh
6761 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
6762 PATH_SEPARATOR=';'
6763 else
6764 PATH_SEPARATOR=:
6766 rm -f conf$$.sh
6769 # Find out how to test for executable files. Don't use a zero-byte file,
6770 # as systems may use methods other than mode bits to determine executability.
6771 cat >conf$$.file <<_ASEOF
6772 #! /bin/sh
6773 exit 0
6774 _ASEOF
6775 chmod +x conf$$.file
6776 if test -x conf$$.file >/dev/null 2>&1; then
6777 ac_executable_p="test -x"
6778 else
6779 ac_executable_p="test -f"
6781 rm -f conf$$.file
6783 # Extract the first word of "valgrind", so it can be a program name with args.
6784 set dummy valgrind; ac_word=$2
6785 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6786 $as_echo_n "checking for $ac_word... " >&6; }
6787 if test "${ac_cv_path_valgrind_path+set}" = set; then :
6788 $as_echo_n "(cached) " >&6
6789 else
6790 case "$valgrind_path" in
6791 [\\/]* | ?:[\\/]*)
6792 ac_cv_path_valgrind_path="$valgrind_path" # Let the user override the test with a path.
6795 ac_save_IFS="$IFS"; IFS=$PATH_SEPARATOR
6796 for ac_dir in $PATH; do
6797 IFS="$ac_save_IFS"
6798 test -z "$ac_dir" && ac_dir=.
6799 for ac_exec_ext in '' $ac_executable_extensions; do
6800 if $ac_executable_p "$ac_dir/$ac_word$ac_exec_ext"; then
6801 if $ac_dir/$ac_word --version | grep valgrind- >/dev/null 2>&1; then
6802 ac_cv_path_valgrind_path="$ac_dir/$ac_word$ac_exec_ext"
6803 break 2
6806 done
6807 done
6808 IFS="$ac_save_IFS"
6810 esac
6812 valgrind_path="$ac_cv_path_valgrind_path"
6813 if test -n "$valgrind_path"; then
6814 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $valgrind_path" >&5
6815 $as_echo "$valgrind_path" >&6; }
6816 else
6817 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6818 $as_echo "no" >&6; }
6821 if test "x$valgrind_path" = "x" \
6822 || (test $have_valgrind_h = no \
6823 && test $gcc_cv_header_memcheck_h = no \
6824 && test $gcc_cv_header_valgrind_memcheck_h = no); then
6825 as_fn_error "*** Can't find both valgrind and valgrind/memcheck.h, memcheck.h or valgrind.h" "$LINENO" 5
6827 valgrind_path_defines=-DVALGRIND_PATH='\"'$valgrind_path'\"'
6828 valgrind_command="$valgrind_path -q"
6830 $as_echo "#define ENABLE_VALGRIND_CHECKING 1" >>confdefs.h
6832 if test $gcc_cv_header_valgrind_memcheck_h = yes; then
6834 $as_echo "#define HAVE_VALGRIND_MEMCHECK_H 1" >>confdefs.h
6837 if test $gcc_cv_header_memcheck_h = yes; then
6839 $as_echo "#define HAVE_MEMCHECK_H 1" >>confdefs.h
6846 # Enable code coverage collection
6847 # Check whether --enable-coverage was given.
6848 if test "${enable_coverage+set}" = set; then :
6849 enableval=$enable_coverage; case "${enableval}" in
6850 yes|noopt)
6851 coverage_flags="-fprofile-arcs -ftest-coverage -frandom-seed=\$@ -O0"
6853 opt)
6854 coverage_flags="-fprofile-arcs -ftest-coverage -frandom-seed=\$@ -O2"
6857 # a.k.a. --disable-coverage
6858 coverage_flags=""
6861 as_fn_error "unknown coverage setting $enableval" "$LINENO" 5
6863 esac
6864 else
6865 coverage_flags=""
6870 # Check whether --enable-gather-detailed-mem-stats was given.
6871 if test "${enable_gather_detailed_mem_stats+set}" = set; then :
6872 enableval=$enable_gather_detailed_mem_stats;
6873 else
6874 enable_gather_detailed_mem_stats=no
6877 gather_stats=`if test $enable_gather_detailed_mem_stats != no; then echo 1; else echo 0; fi`
6879 cat >>confdefs.h <<_ACEOF
6880 #define GATHER_STATISTICS $gather_stats
6881 _ACEOF
6884 # -------------------------------
6885 # Miscenalleous configure options
6886 # -------------------------------
6888 # With stabs
6890 # Check whether --with-stabs was given.
6891 if test "${with_stabs+set}" = set; then :
6892 withval=$with_stabs; stabs="$with_stabs"
6893 else
6894 stabs=no
6898 # Determine whether or not multilibs are enabled.
6899 # Check whether --enable-multilib was given.
6900 if test "${enable_multilib+set}" = set; then :
6901 enableval=$enable_multilib;
6902 else
6903 enable_multilib=yes
6908 # Determine whether or not multiarch is enabled.
6909 # Check whether --enable-multiarch was given.
6910 if test "${enable_multiarch+set}" = set; then :
6911 enableval=$enable_multiarch; case "${enableval}" in
6912 yes|no|auto) enable_multiarch=$enableval;;
6913 *) as_fn_error "bad value ${enableval} given for --enable-multiarch option" "$LINENO" 5 ;;
6914 esac
6915 else
6916 enable_multiarch=auto
6919 if test x${enable_multiarch} = xauto; then
6920 if test x${with_native_system_header_dir} != x; then
6921 ma_msg_suffix=", disabled auto check (configured with --native-system-header-dir)"
6922 enable_multiarch=no
6924 if test x$host != x$target && test "x$with_sysroot" = x; then
6925 ma_msg_suffix=", disabled auto check (cross build configured without --with-sysroot)"
6926 enable_multiarch=no
6929 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for multiarch configuration" >&5
6930 $as_echo_n "checking for multiarch configuration... " >&6; }
6932 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_multiarch$ma_msg_suffix" >&5
6933 $as_echo "$enable_multiarch$ma_msg_suffix" >&6; }
6935 # needed for setting the multiarch name for soft-float/hard-float ABIs
6939 # Enable __cxa_atexit for C++.
6940 # Check whether --enable-__cxa_atexit was given.
6941 if test "${enable___cxa_atexit+set}" = set; then :
6942 enableval=$enable___cxa_atexit;
6946 # Enable C extension for decimal float if target supports it.
6948 # Check whether --enable-decimal-float was given.
6949 if test "${enable_decimal_float+set}" = set; then :
6950 enableval=$enable_decimal_float;
6951 case $enable_decimal_float in
6952 yes | no | bid | dpd) default_decimal_float=$enable_decimal_float ;;
6953 *) as_fn_error "'$enable_decimal_float' is an invalid value for --enable-decimal-float.
6954 Valid choices are 'yes', 'bid', 'dpd', and 'no'." "$LINENO" 5 ;;
6955 esac
6957 else
6959 case $target in
6960 powerpc*-*-linux* | i?86*-*-linux* | x86_64*-*-linux* | s390*-*-linux* | \
6961 i?86*-*-gnu* | \
6962 i?86*-*-mingw* | x86_64*-*-mingw* | \
6963 i?86*-*-cygwin* | x86_64*-*-cygwin*)
6964 enable_decimal_float=yes
6967 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: decimal float is not supported for this target, ignored" >&5
6968 $as_echo "$as_me: WARNING: decimal float is not supported for this target, ignored" >&2;}
6969 enable_decimal_float=no
6971 esac
6976 # x86's use BID format instead of DPD
6977 case x$enable_decimal_float in
6978 xyes)
6979 case $target in
6980 i?86*-*-* | x86_64*-*-*)
6981 enable_decimal_float=bid
6984 enable_decimal_float=dpd
6986 esac
6987 default_decimal_float=$enable_decimal_float
6989 xno)
6990 # ENABLE_DECIMAL_FLOAT is set to 0. But we have to have proper
6991 # dependency on libdecnumber.
6992 default_decimal_float=dpd
6994 esac
6999 dfp=`if test $enable_decimal_float != no; then echo 1; else echo 0; fi`
7001 cat >>confdefs.h <<_ACEOF
7002 #define ENABLE_DECIMAL_FLOAT $dfp
7003 _ACEOF
7006 # Use default_decimal_float for dependency.
7007 enable_decimal_float=$default_decimal_float
7009 bid=`if test $enable_decimal_float = bid; then echo 1; else echo 0; fi`
7011 cat >>confdefs.h <<_ACEOF
7012 #define ENABLE_DECIMAL_BID_FORMAT $bid
7013 _ACEOF
7016 # Enable C extension for fixed-point arithmetic.
7017 # Check whether --enable-fixed-point was given.
7018 if test "${enable_fixed_point+set}" = set; then :
7019 enableval=$enable_fixed_point;
7020 else
7022 case $target in
7023 arm*)
7024 enable_fixed_point=yes
7027 mips*-*-*)
7028 enable_fixed_point=yes
7031 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: fixed-point is not supported for this target, ignored" >&5
7032 $as_echo "$as_me: WARNING: fixed-point is not supported for this target, ignored" >&2;}
7033 enable_fixed_point=no
7035 esac
7041 fixedpoint=`if test $enable_fixed_point = yes; then echo 1; else echo 0; fi`
7043 cat >>confdefs.h <<_ACEOF
7044 #define ENABLE_FIXED_POINT $fixedpoint
7045 _ACEOF
7048 # Enable threads
7049 # Pass with no value to take the default
7050 # Pass with a value to specify a thread package
7051 # Check whether --enable-threads was given.
7052 if test "${enable_threads+set}" = set; then :
7053 enableval=$enable_threads;
7054 else
7055 enable_threads=''
7059 # Check whether --enable-tls was given.
7060 if test "${enable_tls+set}" = set; then :
7061 enableval=$enable_tls;
7062 case $enable_tls in
7063 yes | no) ;;
7064 *) as_fn_error "'$enable_tls' is an invalid value for --enable-tls.
7065 Valid choices are 'yes' and 'no'." "$LINENO" 5 ;;
7066 esac
7068 else
7069 enable_tls=''
7073 # Check whether --enable-objc-gc was given.
7074 if test "${enable_objc_gc+set}" = set; then :
7075 enableval=$enable_objc_gc; if test x$enable_objc_gc = xno; then
7076 objc_boehm_gc=''
7077 else
7078 objc_boehm_gc=1
7080 else
7081 objc_boehm_gc=''
7086 # Check whether --with-dwarf2 was given.
7087 if test "${with_dwarf2+set}" = set; then :
7088 withval=$with_dwarf2; dwarf2="$with_dwarf2"
7089 else
7090 dwarf2=no
7094 # Check whether --enable-shared was given.
7095 if test "${enable_shared+set}" = set; then :
7096 enableval=$enable_shared;
7097 case $enable_shared in
7098 yes | no) ;;
7100 enable_shared=no
7101 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:,"
7102 for pkg in $enableval; do
7103 if test "X$pkg" = "Xgcc" || test "X$pkg" = "Xlibgcc"; then
7104 enable_shared=yes
7106 done
7107 IFS="$ac_save_ifs"
7109 esac
7111 else
7112 enable_shared=yes
7118 # Check whether --with-native-system-header-dir was given.
7119 if test "${with_native_system_header_dir+set}" = set; then :
7120 withval=$with_native_system_header_dir;
7121 case ${with_native_system_header_dir} in
7122 yes|no) as_fn_error "bad value ${withval} given for --with-native-system-header-dir" "$LINENO" 5 ;;
7123 /* | [A-Za-z]:[\\/]*) ;;
7124 *) as_fn_error "--with-native-system-header-dir argument ${withval} must be an absolute directory" "$LINENO" 5 ;;
7125 esac
7126 configured_native_system_header_dir="${withval}"
7128 else
7129 configured_native_system_header_dir=
7134 # Check whether --with-build-sysroot was given.
7135 if test "${with_build_sysroot+set}" = set; then :
7136 withval=$with_build_sysroot; if test x"$withval" != x ; then
7137 SYSROOT_CFLAGS_FOR_TARGET="--sysroot=$withval"
7139 else
7140 SYSROOT_CFLAGS_FOR_TARGET=
7146 # Check whether --with-runtime-root-prefix was given.
7147 if test "${with_runtime_root_prefix+set}" = set; then :
7148 withval=$with_runtime_root_prefix;
7149 case ${with_runtime_root_prefix} in
7150 yes|no) as_fn_error "bad value ${withval} given for runtime root prefix" "$LINENO" 5 ;;
7151 /*) ;;
7152 *) as_fn_error "${withval} should be an absolute directory" "$LINENO" 5 ;;
7153 esac
7154 RUNTIME_ROOT_PREFIX_DEFINE="-DRUNTIME_ROOT_PREFIX=\\\"${withval}\\\""
7156 else
7157 RUNTIME_ROOT_PREFIX_DEFINE=""
7162 if test "x$prefix" = xNONE; then
7163 test_prefix=/usr/local
7164 else
7165 test_prefix=$prefix
7167 if test "x$exec_prefix" = xNONE; then
7168 test_exec_prefix=$test_prefix
7169 else
7170 test_exec_prefix=$exec_prefix
7174 # Check whether --with-sysroot was given.
7175 if test "${with_sysroot+set}" = set; then :
7176 withval=$with_sysroot;
7177 case ${with_sysroot} in
7178 yes) TARGET_SYSTEM_ROOT='${exec_prefix}/${target_noncanonical}/sys-root' ;;
7179 *) TARGET_SYSTEM_ROOT=$with_sysroot ;;
7180 esac
7182 TARGET_SYSTEM_ROOT_DEFINE='-DTARGET_SYSTEM_ROOT=\"$(TARGET_SYSTEM_ROOT)\"'
7183 CROSS_SYSTEM_HEADER_DIR='$(TARGET_SYSTEM_ROOT)$${sysroot_headers_suffix}$(NATIVE_SYSTEM_HEADER_DIR)'
7185 case ${TARGET_SYSTEM_ROOT} in
7186 "${test_prefix}"|"${test_prefix}/"*|\
7187 "${test_exec_prefix}"|"${test_exec_prefix}/"*|\
7188 '${prefix}'|'${prefix}/'*|\
7189 '${exec_prefix}'|'${exec_prefix}/'*)
7190 t="$TARGET_SYSTEM_ROOT_DEFINE -DTARGET_SYSTEM_ROOT_RELOCATABLE"
7191 TARGET_SYSTEM_ROOT_DEFINE="$t"
7193 esac
7195 else
7197 TARGET_SYSTEM_ROOT=
7198 TARGET_SYSTEM_ROOT_DEFINE=
7199 CROSS_SYSTEM_HEADER_DIR='$(gcc_tooldir)/sys-include'
7208 # Check whether --with-specs was given.
7209 if test "${with_specs+set}" = set; then :
7210 withval=$with_specs; CONFIGURE_SPECS=$withval
7211 else
7212 CONFIGURE_SPECS=
7220 # Check whether --with-pkgversion was given.
7221 if test "${with_pkgversion+set}" = set; then :
7222 withval=$with_pkgversion; case "$withval" in
7223 yes) as_fn_error "package version not specified" "$LINENO" 5 ;;
7224 no) PKGVERSION= ;;
7225 *) PKGVERSION="($withval) " ;;
7226 esac
7227 else
7228 PKGVERSION="(GCC) "
7236 # Check whether --with-bugurl was given.
7237 if test "${with_bugurl+set}" = set; then :
7238 withval=$with_bugurl; case "$withval" in
7239 yes) as_fn_error "bug URL not specified" "$LINENO" 5 ;;
7240 no) BUGURL=
7242 *) BUGURL="$withval"
7244 esac
7245 else
7246 BUGURL="http://gcc.gnu.org/bugs.html"
7250 case ${BUGURL} in
7252 REPORT_BUGS_TO=
7253 REPORT_BUGS_TEXI=
7256 REPORT_BUGS_TO="<$BUGURL>"
7257 REPORT_BUGS_TEXI=@uref{`echo "$BUGURL" | sed 's/@/@@/g'`}
7259 esac;
7264 # Sanity check enable_languages in case someone does not run the toplevel
7265 # configure # script.
7266 # Check whether --enable-languages was given.
7267 if test "${enable_languages+set}" = set; then :
7268 enableval=$enable_languages; case ,${enable_languages}, in
7269 ,,|,yes,)
7270 # go safe -- we cannot be much sure without the toplevel
7271 # configure's
7272 # analysis of which target libs are present and usable
7273 enable_languages=c
7275 *,all,*)
7276 as_fn_error "only the toplevel supports --enable-languages=all" "$LINENO" 5
7278 *,c,*)
7281 enable_languages=c,${enable_languages}
7283 esac
7284 else
7285 enable_languages=c
7290 # Check whether --with-multilib-list was given.
7291 if test "${with_multilib_list+set}" = set; then :
7292 withval=$with_multilib_list; :
7293 else
7294 with_multilib_list=default
7298 # -------------------------
7299 # Checks for other programs
7300 # -------------------------
7302 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
7303 $as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
7304 set x ${MAKE-make}
7305 ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
7306 if { as_var=ac_cv_prog_make_${ac_make}_set; eval "test \"\${$as_var+set}\" = set"; }; then :
7307 $as_echo_n "(cached) " >&6
7308 else
7309 cat >conftest.make <<\_ACEOF
7310 SHELL = /bin/sh
7311 all:
7312 @echo '@@@%%%=$(MAKE)=@@@%%%'
7313 _ACEOF
7314 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
7315 case `${MAKE-make} -f conftest.make 2>/dev/null` in
7316 *@@@%%%=?*=@@@%%%*)
7317 eval ac_cv_prog_make_${ac_make}_set=yes;;
7319 eval ac_cv_prog_make_${ac_make}_set=no;;
7320 esac
7321 rm -f conftest.make
7323 if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
7324 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
7325 $as_echo "yes" >&6; }
7326 SET_MAKE=
7327 else
7328 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7329 $as_echo "no" >&6; }
7330 SET_MAKE="MAKE=${MAKE-make}"
7334 # Find some useful tools
7335 for ac_prog in gawk mawk nawk awk
7337 # Extract the first word of "$ac_prog", so it can be a program name with args.
7338 set dummy $ac_prog; ac_word=$2
7339 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7340 $as_echo_n "checking for $ac_word... " >&6; }
7341 if test "${ac_cv_prog_AWK+set}" = set; then :
7342 $as_echo_n "(cached) " >&6
7343 else
7344 if test -n "$AWK"; then
7345 ac_cv_prog_AWK="$AWK" # Let the user override the test.
7346 else
7347 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7348 for as_dir in $PATH
7350 IFS=$as_save_IFS
7351 test -z "$as_dir" && as_dir=.
7352 for ac_exec_ext in '' $ac_executable_extensions; do
7353 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7354 ac_cv_prog_AWK="$ac_prog"
7355 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7356 break 2
7358 done
7359 done
7360 IFS=$as_save_IFS
7364 AWK=$ac_cv_prog_AWK
7365 if test -n "$AWK"; then
7366 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
7367 $as_echo "$AWK" >&6; }
7368 else
7369 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7370 $as_echo "no" >&6; }
7374 test -n "$AWK" && break
7375 done
7377 # We need awk to create options.c and options.h.
7378 # Bail out if it's missing.
7379 case ${AWK} in
7380 "") as_fn_error "can't build without awk, bailing out" "$LINENO" 5 ;;
7381 esac
7383 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5
7384 $as_echo_n "checking whether ln -s works... " >&6; }
7385 if test "${gcc_cv_prog_LN_S+set}" = set; then :
7386 $as_echo_n "(cached) " >&6
7387 else
7388 rm -f conftestdata_t
7389 echo >conftestdata_f
7390 if ln -s conftestdata_f conftestdata_t 2>/dev/null
7391 then
7392 gcc_cv_prog_LN_S="ln -s"
7393 else
7394 if ln conftestdata_f conftestdata_t 2>/dev/null
7395 then
7396 gcc_cv_prog_LN_S=ln
7397 else
7398 if cp -p conftestdata_f conftestdata_t 2>/dev/null
7399 then
7400 gcc_cv_prog_LN_S="cp -p"
7401 else
7402 gcc_cv_prog_LN_S=cp
7406 rm -f conftestdata_f conftestdata_t
7409 LN_S="$gcc_cv_prog_LN_S"
7410 if test "$gcc_cv_prog_LN_S" = "ln -s"; then
7411 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
7412 $as_echo "yes" >&6; }
7413 else
7414 if test "$gcc_cv_prog_LN_S" = "ln"; then
7415 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using ln" >&5
7416 $as_echo "no, using ln" >&6; }
7417 else
7418 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, and neither does ln, so using $gcc_cv_prog_LN_S" >&5
7419 $as_echo "no, and neither does ln, so using $gcc_cv_prog_LN_S" >&6; }
7423 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln works" >&5
7424 $as_echo_n "checking whether ln works... " >&6; }
7425 if test "${acx_cv_prog_LN+set}" = set; then :
7426 $as_echo_n "(cached) " >&6
7427 else
7428 rm -f conftestdata_t
7429 echo >conftestdata_f
7430 if ln conftestdata_f conftestdata_t 2>/dev/null
7431 then
7432 acx_cv_prog_LN=ln
7433 else
7434 acx_cv_prog_LN=no
7436 rm -f conftestdata_f conftestdata_t
7439 if test $acx_cv_prog_LN = no; then
7440 LN="$LN_S"
7441 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN" >&5
7442 $as_echo "no, using $LN" >&6; }
7443 else
7444 LN="$acx_cv_prog_LN"
7445 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
7446 $as_echo "yes" >&6; }
7449 if test -n "$ac_tool_prefix"; then
7450 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
7451 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
7452 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7453 $as_echo_n "checking for $ac_word... " >&6; }
7454 if test "${ac_cv_prog_RANLIB+set}" = set; then :
7455 $as_echo_n "(cached) " >&6
7456 else
7457 if test -n "$RANLIB"; then
7458 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
7459 else
7460 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7461 for as_dir in $PATH
7463 IFS=$as_save_IFS
7464 test -z "$as_dir" && as_dir=.
7465 for ac_exec_ext in '' $ac_executable_extensions; do
7466 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7467 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
7468 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7469 break 2
7471 done
7472 done
7473 IFS=$as_save_IFS
7477 RANLIB=$ac_cv_prog_RANLIB
7478 if test -n "$RANLIB"; then
7479 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
7480 $as_echo "$RANLIB" >&6; }
7481 else
7482 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7483 $as_echo "no" >&6; }
7488 if test -z "$ac_cv_prog_RANLIB"; then
7489 ac_ct_RANLIB=$RANLIB
7490 # Extract the first word of "ranlib", so it can be a program name with args.
7491 set dummy ranlib; ac_word=$2
7492 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7493 $as_echo_n "checking for $ac_word... " >&6; }
7494 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then :
7495 $as_echo_n "(cached) " >&6
7496 else
7497 if test -n "$ac_ct_RANLIB"; then
7498 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
7499 else
7500 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7501 for as_dir in $PATH
7503 IFS=$as_save_IFS
7504 test -z "$as_dir" && as_dir=.
7505 for ac_exec_ext in '' $ac_executable_extensions; do
7506 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7507 ac_cv_prog_ac_ct_RANLIB="ranlib"
7508 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7509 break 2
7511 done
7512 done
7513 IFS=$as_save_IFS
7517 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
7518 if test -n "$ac_ct_RANLIB"; then
7519 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
7520 $as_echo "$ac_ct_RANLIB" >&6; }
7521 else
7522 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7523 $as_echo "no" >&6; }
7526 if test "x$ac_ct_RANLIB" = x; then
7527 RANLIB=":"
7528 else
7529 case $cross_compiling:$ac_tool_warned in
7530 yes:)
7531 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7532 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7533 ac_tool_warned=yes ;;
7534 esac
7535 RANLIB=$ac_ct_RANLIB
7537 else
7538 RANLIB="$ac_cv_prog_RANLIB"
7541 ranlib_flags=""
7544 # Find a good install program. We prefer a C program (faster),
7545 # so one script is as good as another. But avoid the broken or
7546 # incompatible versions:
7547 # SysV /etc/install, /usr/sbin/install
7548 # SunOS /usr/etc/install
7549 # IRIX /sbin/install
7550 # AIX /bin/install
7551 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
7552 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
7553 # ./install, which can be erroneously created by make from ./install.sh.
7554 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD compatible install" >&5
7555 $as_echo_n "checking for a BSD compatible install... " >&6; }
7556 if test -z "$INSTALL"; then
7557 if test "${ac_cv_path_install+set}" = set; then :
7558 $as_echo_n "(cached) " >&6
7559 else
7560 IFS="${IFS= }"; ac_save_IFS="$IFS"; IFS="${IFS}:"
7561 for ac_dir in $PATH; do
7562 # Account for people who put trailing slashes in PATH elements.
7563 case "$ac_dir/" in
7564 /|./|.//|/etc/*|/usr/sbin/*|/usr/etc/*|/sbin/*|/usr/afsws/bin/*|/usr/ucb/*) ;;
7566 # OSF1 and SCO ODT 3.0 have their own names for install.
7567 for ac_prog in ginstall scoinst install; do
7568 if test -f $ac_dir/$ac_prog; then
7569 if test $ac_prog = install &&
7570 grep dspmsg $ac_dir/$ac_prog >/dev/null 2>&1; then
7571 # AIX install. It has an incompatible calling convention.
7572 # OSF/1 installbsd also uses dspmsg, but is usable.
7574 else
7575 ac_cv_path_install="$ac_dir/$ac_prog -c"
7576 break 2
7579 done
7581 esac
7582 done
7583 IFS="$ac_save_IFS"
7586 if test "${ac_cv_path_install+set}" = set; then
7587 INSTALL="$ac_cv_path_install"
7588 else
7589 # As a last resort, use the slow shell script. We don't cache a
7590 # path for INSTALL within a source directory, because that will
7591 # break other packages using the cache if that directory is
7592 # removed, or if the path is relative.
7593 INSTALL="$ac_install_sh"
7596 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
7597 $as_echo "$INSTALL" >&6; }
7599 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
7600 # It thinks the first close brace ends the variable substitution.
7601 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
7603 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
7606 # See if cmp has --ignore-initial.
7607 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for cmp's capabilities" >&5
7608 $as_echo_n "checking for cmp's capabilities... " >&6; }
7609 if test "${gcc_cv_prog_cmp_skip+set}" = set; then :
7610 $as_echo_n "(cached) " >&6
7611 else
7612 echo abfoo >t1
7613 echo cdfoo >t2
7614 gcc_cv_prog_cmp_skip=slowcompare
7615 if cmp --ignore-initial=2 t1 t2 > /dev/null 2>&1; then
7616 if cmp --ignore-initial=1 t1 t2 > /dev/null 2>&1; then
7618 else
7619 gcc_cv_prog_cmp_skip=gnucompare
7622 if test $gcc_cv_prog_cmp_skip = slowcompare ; then
7623 if cmp t1 t2 2 2 > /dev/null 2>&1; then
7624 if cmp t1 t2 1 1 > /dev/null 2>&1; then
7626 else
7627 gcc_cv_prog_cmp_skip=fastcompare
7631 rm t1 t2
7634 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_prog_cmp_skip" >&5
7635 $as_echo "$gcc_cv_prog_cmp_skip" >&6; }
7636 make_compare_target=$gcc_cv_prog_cmp_skip
7640 # See if we have the mktemp command.
7641 # Extract the first word of "mktemp", so it can be a program name with args.
7642 set dummy mktemp; ac_word=$2
7643 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7644 $as_echo_n "checking for $ac_word... " >&6; }
7645 if test "${ac_cv_prog_have_mktemp_command+set}" = set; then :
7646 $as_echo_n "(cached) " >&6
7647 else
7648 if test -n "$have_mktemp_command"; then
7649 ac_cv_prog_have_mktemp_command="$have_mktemp_command" # Let the user override the test.
7650 else
7651 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7652 for as_dir in $PATH
7654 IFS=$as_save_IFS
7655 test -z "$as_dir" && as_dir=.
7656 for ac_exec_ext in '' $ac_executable_extensions; do
7657 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7658 ac_cv_prog_have_mktemp_command="yes"
7659 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7660 break 2
7662 done
7663 done
7664 IFS=$as_save_IFS
7666 test -z "$ac_cv_prog_have_mktemp_command" && ac_cv_prog_have_mktemp_command="no"
7669 have_mktemp_command=$ac_cv_prog_have_mktemp_command
7670 if test -n "$have_mktemp_command"; then
7671 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_mktemp_command" >&5
7672 $as_echo "$have_mktemp_command" >&6; }
7673 else
7674 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7675 $as_echo "no" >&6; }
7680 # See if makeinfo has been installed and is modern enough
7681 # that we can use it.
7683 # Extract the first word of "makeinfo", so it can be a program name with args.
7684 set dummy makeinfo; ac_word=$2
7685 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7686 $as_echo_n "checking for $ac_word... " >&6; }
7687 if test "${ac_cv_prog_MAKEINFO+set}" = set; then :
7688 $as_echo_n "(cached) " >&6
7689 else
7690 if test -n "$MAKEINFO"; then
7691 ac_cv_prog_MAKEINFO="$MAKEINFO" # Let the user override the test.
7692 else
7693 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7694 for as_dir in $PATH
7696 IFS=$as_save_IFS
7697 test -z "$as_dir" && as_dir=.
7698 for ac_exec_ext in '' $ac_executable_extensions; do
7699 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7700 ac_cv_prog_MAKEINFO="makeinfo"
7701 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7702 break 2
7704 done
7705 done
7706 IFS=$as_save_IFS
7710 MAKEINFO=$ac_cv_prog_MAKEINFO
7711 if test -n "$MAKEINFO"; then
7712 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAKEINFO" >&5
7713 $as_echo "$MAKEINFO" >&6; }
7714 else
7715 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7716 $as_echo "no" >&6; }
7720 if test -n "$MAKEINFO"; then
7721 # Found it, now check the version.
7722 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for modern makeinfo" >&5
7723 $as_echo_n "checking for modern makeinfo... " >&6; }
7724 if test "${gcc_cv_prog_makeinfo_modern+set}" = set; then :
7725 $as_echo_n "(cached) " >&6
7726 else
7727 ac_prog_version=`eval $MAKEINFO --version 2>&1 |
7728 sed -n 's/^.*GNU texinfo.* \([0-9][0-9.]*\).*$/\1/p'`
7730 case $ac_prog_version in
7731 '') gcc_cv_prog_makeinfo_modern=no;;
7732 4.[7-9]*|4.[1-9][0-9]*|[5-9]*|[1-9][0-9]*) gcc_cv_prog_makeinfo_modern=yes;;
7733 *) gcc_cv_prog_makeinfo_modern=no;;
7734 esac
7737 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_prog_makeinfo_modern" >&5
7738 $as_echo "$gcc_cv_prog_makeinfo_modern" >&6; }
7739 else
7740 gcc_cv_prog_makeinfo_modern=no
7742 if test $gcc_cv_prog_makeinfo_modern = no; then
7743 MAKEINFO="${CONFIG_SHELL-/bin/sh} $ac_aux_dir/missing makeinfo"
7746 if test $gcc_cv_prog_makeinfo_modern = no; then
7747 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING:
7748 *** Makeinfo is missing or too old.
7749 *** Info documentation will not be built." >&5
7750 $as_echo "$as_me: WARNING:
7751 *** Makeinfo is missing or too old.
7752 *** Info documentation will not be built." >&2;}
7753 BUILD_INFO=
7754 else
7755 BUILD_INFO=info
7759 # Is pod2man recent enough to regenerate manpages?
7760 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for recent Pod::Man" >&5
7761 $as_echo_n "checking for recent Pod::Man... " >&6; }
7762 if (perl -e 'use 1.10 Pod::Man') >/dev/null 2>&1; then
7763 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
7764 $as_echo "yes" >&6; }
7765 GENERATED_MANPAGES=generated-manpages
7766 else
7767 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7768 $as_echo "no" >&6; }
7769 GENERATED_MANPAGES=
7773 MISSING="${CONFIG_SHELL-/bin/sh} $ac_aux_dir/missing"
7775 # How about lex?
7776 for ac_prog in flex
7778 # Extract the first word of "$ac_prog", so it can be a program name with args.
7779 set dummy $ac_prog; ac_word=$2
7780 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7781 $as_echo_n "checking for $ac_word... " >&6; }
7782 if test "${ac_cv_prog_FLEX+set}" = set; then :
7783 $as_echo_n "(cached) " >&6
7784 else
7785 if test -n "$FLEX"; then
7786 ac_cv_prog_FLEX="$FLEX" # Let the user override the test.
7787 else
7788 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7789 for as_dir in $PATH
7791 IFS=$as_save_IFS
7792 test -z "$as_dir" && as_dir=.
7793 for ac_exec_ext in '' $ac_executable_extensions; do
7794 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7795 ac_cv_prog_FLEX="$ac_prog"
7796 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7797 break 2
7799 done
7800 done
7801 IFS=$as_save_IFS
7805 FLEX=$ac_cv_prog_FLEX
7806 if test -n "$FLEX"; then
7807 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $FLEX" >&5
7808 $as_echo "$FLEX" >&6; }
7809 else
7810 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7811 $as_echo "no" >&6; }
7815 test -n "$FLEX" && break
7816 done
7817 test -n "$FLEX" || FLEX="$MISSING flex"
7820 # Bison?
7821 for ac_prog in bison
7823 # Extract the first word of "$ac_prog", so it can be a program name with args.
7824 set dummy $ac_prog; ac_word=$2
7825 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7826 $as_echo_n "checking for $ac_word... " >&6; }
7827 if test "${ac_cv_prog_BISON+set}" = set; then :
7828 $as_echo_n "(cached) " >&6
7829 else
7830 if test -n "$BISON"; then
7831 ac_cv_prog_BISON="$BISON" # Let the user override the test.
7832 else
7833 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7834 for as_dir in $PATH
7836 IFS=$as_save_IFS
7837 test -z "$as_dir" && as_dir=.
7838 for ac_exec_ext in '' $ac_executable_extensions; do
7839 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7840 ac_cv_prog_BISON="$ac_prog"
7841 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7842 break 2
7844 done
7845 done
7846 IFS=$as_save_IFS
7850 BISON=$ac_cv_prog_BISON
7851 if test -n "$BISON"; then
7852 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BISON" >&5
7853 $as_echo "$BISON" >&6; }
7854 else
7855 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7856 $as_echo "no" >&6; }
7860 test -n "$BISON" && break
7861 done
7862 test -n "$BISON" || BISON="$MISSING bison"
7865 # Binutils are not build modules, unlike bison/flex/makeinfo. So we
7866 # check for build == host before using them.
7868 # NM
7869 if test x${build} = x${host} && test -f $srcdir/../binutils/nm.c \
7870 && test -d ../binutils ; then
7871 NM='${objdir}/../binutils/nm-new'
7872 else
7873 # Extract the first word of "nm", so it can be a program name with args.
7874 set dummy nm; ac_word=$2
7875 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7876 $as_echo_n "checking for $ac_word... " >&6; }
7877 if test "${ac_cv_prog_NM+set}" = set; then :
7878 $as_echo_n "(cached) " >&6
7879 else
7880 if test -n "$NM"; then
7881 ac_cv_prog_NM="$NM" # Let the user override the test.
7882 else
7883 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7884 for as_dir in $PATH
7886 IFS=$as_save_IFS
7887 test -z "$as_dir" && as_dir=.
7888 for ac_exec_ext in '' $ac_executable_extensions; do
7889 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7890 ac_cv_prog_NM="nm"
7891 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7892 break 2
7894 done
7895 done
7896 IFS=$as_save_IFS
7898 test -z "$ac_cv_prog_NM" && ac_cv_prog_NM="${CONFIG_SHELL-/bin/sh} ${srcdir}/../missing nm"
7901 NM=$ac_cv_prog_NM
7902 if test -n "$NM"; then
7903 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NM" >&5
7904 $as_echo "$NM" >&6; }
7905 else
7906 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7907 $as_echo "no" >&6; }
7913 # AR
7914 if test x${build} = x${host} && test -f $srcdir/../binutils/ar.c \
7915 && test -d ../binutils ; then
7916 AR='${objdir}/../binutils/ar'
7917 else
7918 # Extract the first word of "ar", so it can be a program name with args.
7919 set dummy ar; ac_word=$2
7920 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7921 $as_echo_n "checking for $ac_word... " >&6; }
7922 if test "${ac_cv_prog_AR+set}" = set; then :
7923 $as_echo_n "(cached) " >&6
7924 else
7925 if test -n "$AR"; then
7926 ac_cv_prog_AR="$AR" # Let the user override the test.
7927 else
7928 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7929 for as_dir in $PATH
7931 IFS=$as_save_IFS
7932 test -z "$as_dir" && as_dir=.
7933 for ac_exec_ext in '' $ac_executable_extensions; do
7934 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7935 ac_cv_prog_AR="ar"
7936 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7937 break 2
7939 done
7940 done
7941 IFS=$as_save_IFS
7943 test -z "$ac_cv_prog_AR" && ac_cv_prog_AR="${CONFIG_SHELL-/bin/sh} ${srcdir}/../missing ar"
7946 AR=$ac_cv_prog_AR
7947 if test -n "$AR"; then
7948 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
7949 $as_echo "$AR" >&6; }
7950 else
7951 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7952 $as_echo "no" >&6; }
7959 # --------------------
7960 # Checks for C headers
7961 # --------------------
7963 # Need to reject headers which give warnings, so that the -Werror bootstrap
7964 # works later. *sigh* This needs to come before all header checks.
7966 ac_c_preproc_warn_flag=yes
7968 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
7969 $as_echo_n "checking for ANSI C header files... " >&6; }
7970 if test "${ac_cv_header_stdc+set}" = set; then :
7971 $as_echo_n "(cached) " >&6
7972 else
7973 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7974 /* end confdefs.h. */
7975 #include <stdlib.h>
7976 #include <stdarg.h>
7977 #include <string.h>
7978 #include <float.h>
7981 main ()
7985 return 0;
7987 _ACEOF
7988 if ac_fn_c_try_compile "$LINENO"; then :
7989 ac_cv_header_stdc=yes
7990 else
7991 ac_cv_header_stdc=no
7993 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7995 if test $ac_cv_header_stdc = yes; then
7996 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
7997 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7998 /* end confdefs.h. */
7999 #include <string.h>
8001 _ACEOF
8002 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
8003 $EGREP "memchr" >/dev/null 2>&1; then :
8005 else
8006 ac_cv_header_stdc=no
8008 rm -f conftest*
8012 if test $ac_cv_header_stdc = yes; then
8013 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
8014 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8015 /* end confdefs.h. */
8016 #include <stdlib.h>
8018 _ACEOF
8019 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
8020 $EGREP "free" >/dev/null 2>&1; then :
8022 else
8023 ac_cv_header_stdc=no
8025 rm -f conftest*
8029 if test $ac_cv_header_stdc = yes; then
8030 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
8031 if test "$cross_compiling" = yes; then :
8033 else
8034 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8035 /* end confdefs.h. */
8036 #include <ctype.h>
8037 #include <stdlib.h>
8038 #if ((' ' & 0x0FF) == 0x020)
8039 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
8040 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
8041 #else
8042 # define ISLOWER(c) \
8043 (('a' <= (c) && (c) <= 'i') \
8044 || ('j' <= (c) && (c) <= 'r') \
8045 || ('s' <= (c) && (c) <= 'z'))
8046 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
8047 #endif
8049 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
8051 main ()
8053 int i;
8054 for (i = 0; i < 256; i++)
8055 if (XOR (islower (i), ISLOWER (i))
8056 || toupper (i) != TOUPPER (i))
8057 return 2;
8058 return 0;
8060 _ACEOF
8061 if ac_fn_c_try_run "$LINENO"; then :
8063 else
8064 ac_cv_header_stdc=no
8066 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
8067 conftest.$ac_objext conftest.beam conftest.$ac_ext
8072 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
8073 $as_echo "$ac_cv_header_stdc" >&6; }
8074 if test $ac_cv_header_stdc = yes; then
8076 $as_echo "#define STDC_HEADERS 1" >>confdefs.h
8080 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether time.h and sys/time.h may both be included" >&5
8081 $as_echo_n "checking whether time.h and sys/time.h may both be included... " >&6; }
8082 if test "${ac_cv_header_time+set}" = set; then :
8083 $as_echo_n "(cached) " >&6
8084 else
8085 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8086 /* end confdefs.h. */
8087 #include <sys/types.h>
8088 #include <sys/time.h>
8089 #include <time.h>
8092 main ()
8094 if ((struct tm *) 0)
8095 return 0;
8097 return 0;
8099 _ACEOF
8100 if ac_fn_c_try_compile "$LINENO"; then :
8101 ac_cv_header_time=yes
8102 else
8103 ac_cv_header_time=no
8105 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8107 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_time" >&5
8108 $as_echo "$ac_cv_header_time" >&6; }
8109 if test $ac_cv_header_time = yes; then
8111 $as_echo "#define TIME_WITH_SYS_TIME 1" >>confdefs.h
8115 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether string.h and strings.h may both be included" >&5
8116 $as_echo_n "checking whether string.h and strings.h may both be included... " >&6; }
8117 if test "${gcc_cv_header_string+set}" = set; then :
8118 $as_echo_n "(cached) " >&6
8119 else
8120 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8121 /* end confdefs.h. */
8122 #include <string.h>
8123 #include <strings.h>
8125 main ()
8129 return 0;
8131 _ACEOF
8132 if ac_fn_c_try_compile "$LINENO"; then :
8133 gcc_cv_header_string=yes
8134 else
8135 gcc_cv_header_string=no
8137 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8139 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_header_string" >&5
8140 $as_echo "$gcc_cv_header_string" >&6; }
8141 if test $gcc_cv_header_string = yes; then
8143 $as_echo "#define STRING_WITH_STRINGS 1" >>confdefs.h
8147 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sys/wait.h that is POSIX.1 compatible" >&5
8148 $as_echo_n "checking for sys/wait.h that is POSIX.1 compatible... " >&6; }
8149 if test "${ac_cv_header_sys_wait_h+set}" = set; then :
8150 $as_echo_n "(cached) " >&6
8151 else
8152 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8153 /* end confdefs.h. */
8154 #include <sys/types.h>
8155 #include <sys/wait.h>
8156 #ifndef WEXITSTATUS
8157 # define WEXITSTATUS(stat_val) ((unsigned int) (stat_val) >> 8)
8158 #endif
8159 #ifndef WIFEXITED
8160 # define WIFEXITED(stat_val) (((stat_val) & 255) == 0)
8161 #endif
8164 main ()
8166 int s;
8167 wait (&s);
8168 s = WIFEXITED (s) ? WEXITSTATUS (s) : 1;
8170 return 0;
8172 _ACEOF
8173 if ac_fn_c_try_compile "$LINENO"; then :
8174 ac_cv_header_sys_wait_h=yes
8175 else
8176 ac_cv_header_sys_wait_h=no
8178 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8180 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_sys_wait_h" >&5
8181 $as_echo "$ac_cv_header_sys_wait_h" >&6; }
8182 if test $ac_cv_header_sys_wait_h = yes; then
8184 $as_echo "#define HAVE_SYS_WAIT_H 1" >>confdefs.h
8188 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether termios.h defines TIOCGWINSZ" >&5
8189 $as_echo_n "checking whether termios.h defines TIOCGWINSZ... " >&6; }
8190 if test "${ac_cv_sys_tiocgwinsz_in_termios_h+set}" = set; then :
8191 $as_echo_n "(cached) " >&6
8192 else
8193 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8194 /* end confdefs.h. */
8195 #include <sys/types.h>
8196 #include <termios.h>
8197 #ifdef TIOCGWINSZ
8199 #endif
8201 _ACEOF
8202 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
8203 $EGREP "yes" >/dev/null 2>&1; then :
8204 ac_cv_sys_tiocgwinsz_in_termios_h=yes
8205 else
8206 ac_cv_sys_tiocgwinsz_in_termios_h=no
8208 rm -f conftest*
8211 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_tiocgwinsz_in_termios_h" >&5
8212 $as_echo "$ac_cv_sys_tiocgwinsz_in_termios_h" >&6; }
8214 if test $ac_cv_sys_tiocgwinsz_in_termios_h != yes; then
8215 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether sys/ioctl.h defines TIOCGWINSZ" >&5
8216 $as_echo_n "checking whether sys/ioctl.h defines TIOCGWINSZ... " >&6; }
8217 if test "${ac_cv_sys_tiocgwinsz_in_sys_ioctl_h+set}" = set; then :
8218 $as_echo_n "(cached) " >&6
8219 else
8220 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8221 /* end confdefs.h. */
8222 #include <sys/types.h>
8223 #include <sys/ioctl.h>
8224 #ifdef TIOCGWINSZ
8226 #endif
8228 _ACEOF
8229 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
8230 $EGREP "yes" >/dev/null 2>&1; then :
8231 ac_cv_sys_tiocgwinsz_in_sys_ioctl_h=yes
8232 else
8233 ac_cv_sys_tiocgwinsz_in_sys_ioctl_h=no
8235 rm -f conftest*
8238 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_tiocgwinsz_in_sys_ioctl_h" >&5
8239 $as_echo "$ac_cv_sys_tiocgwinsz_in_sys_ioctl_h" >&6; }
8241 if test $ac_cv_sys_tiocgwinsz_in_sys_ioctl_h = yes; then
8243 $as_echo "#define GWINSZ_IN_SYS_IOCTL 1" >>confdefs.h
8248 for ac_header in limits.h stddef.h string.h strings.h stdlib.h time.h iconv.h \
8249 fcntl.h unistd.h sys/file.h sys/time.h sys/mman.h \
8250 sys/resource.h sys/param.h sys/times.h sys/stat.h \
8251 direct.h malloc.h langinfo.h ldfcn.h locale.h wchar.h
8252 do :
8253 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
8254 ac_fn_c_check_header_preproc "$LINENO" "$ac_header" "$as_ac_Header"
8255 eval as_val=\$$as_ac_Header
8256 if test "x$as_val" = x""yes; then :
8257 cat >>confdefs.h <<_ACEOF
8258 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
8259 _ACEOF
8262 done
8265 # Check for thread headers.
8266 ac_fn_c_check_header_preproc "$LINENO" "thread.h" "ac_cv_header_thread_h"
8267 if test "x$ac_cv_header_thread_h" = x""yes; then :
8268 have_thread_h=yes
8269 else
8270 have_thread_h=
8273 ac_fn_c_check_header_preproc "$LINENO" "pthread.h" "ac_cv_header_pthread_h"
8274 if test "x$ac_cv_header_pthread_h" = x""yes; then :
8275 have_pthread_h=yes
8276 else
8277 have_pthread_h=
8281 # These tests can't be done till we know if we have limits.h.
8282 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for CHAR_BIT" >&5
8283 $as_echo_n "checking for CHAR_BIT... " >&6; }
8284 if test "${gcc_cv_decl_char_bit+set}" = set; then :
8285 $as_echo_n "(cached) " >&6
8286 else
8287 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8288 /* end confdefs.h. */
8289 #ifdef HAVE_LIMITS_H
8290 #include <limits.h>
8291 #endif
8292 #ifdef CHAR_BIT
8293 found
8294 #endif
8295 _ACEOF
8296 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
8297 $EGREP "found" >/dev/null 2>&1; then :
8298 gcc_cv_decl_char_bit=yes
8299 else
8300 gcc_cv_decl_char_bit=no
8302 rm -f conftest*
8306 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_decl_char_bit" >&5
8307 $as_echo "$gcc_cv_decl_char_bit" >&6; }
8308 if test $gcc_cv_decl_char_bit = no; then
8309 { $as_echo "$as_me:${as_lineno-$LINENO}: checking number of bits in a byte" >&5
8310 $as_echo_n "checking number of bits in a byte... " >&6; }
8311 if test "${gcc_cv_c_nbby+set}" = set; then :
8312 $as_echo_n "(cached) " >&6
8313 else
8315 gcc_cv_c_nbby=
8316 while test $i -lt 65; do
8317 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8318 /* end confdefs.h. */
8321 main ()
8323 switch(0) {
8324 case (unsigned char)((unsigned long)1 << $i) == ((unsigned long)1 << $i):
8325 case (unsigned char)((unsigned long)1<<($i-1)) == ((unsigned long)1<<($i-1)):
8328 return 0;
8330 _ACEOF
8331 if ac_fn_c_try_compile "$LINENO"; then :
8332 gcc_cv_c_nbby=$i; break
8334 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8335 i=`expr $i + 1`
8336 done
8337 test -z "$gcc_cv_c_nbby" && gcc_cv_c_nbby=failed
8340 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_c_nbby" >&5
8341 $as_echo "$gcc_cv_c_nbby" >&6; }
8342 if test $gcc_cv_c_nbby = failed; then
8343 as_fn_error "cannot determine number of bits in a byte" "$LINENO" 5
8344 else
8346 cat >>confdefs.h <<_ACEOF
8347 #define CHAR_BIT $gcc_cv_c_nbby
8348 _ACEOF
8352 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether byte ordering is bigendian" >&5
8353 $as_echo_n "checking whether byte ordering is bigendian... " >&6; }
8354 if test "${ac_cv_c_bigendian+set}" = set; then :
8355 $as_echo_n "(cached) " >&6
8356 else
8357 ac_cv_c_bigendian=unknown
8358 # See if we're dealing with a universal compiler.
8359 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8360 /* end confdefs.h. */
8361 #ifndef __APPLE_CC__
8362 not a universal capable compiler
8363 #endif
8364 typedef int dummy;
8366 _ACEOF
8367 if ac_fn_c_try_compile "$LINENO"; then :
8369 # Check for potential -arch flags. It is not universal unless
8370 # there are at least two -arch flags with different values.
8371 ac_arch=
8372 ac_prev=
8373 for ac_word in $CC $CFLAGS $CPPFLAGS $LDFLAGS; do
8374 if test -n "$ac_prev"; then
8375 case $ac_word in
8376 i?86 | x86_64 | ppc | ppc64)
8377 if test -z "$ac_arch" || test "$ac_arch" = "$ac_word"; then
8378 ac_arch=$ac_word
8379 else
8380 ac_cv_c_bigendian=universal
8381 break
8384 esac
8385 ac_prev=
8386 elif test "x$ac_word" = "x-arch"; then
8387 ac_prev=arch
8389 done
8391 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8392 if test $ac_cv_c_bigendian = unknown; then
8393 # See if sys/param.h defines the BYTE_ORDER macro.
8394 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8395 /* end confdefs.h. */
8396 #include <sys/types.h>
8397 #include <sys/param.h>
8400 main ()
8402 #if ! (defined BYTE_ORDER && defined BIG_ENDIAN \
8403 && defined LITTLE_ENDIAN && BYTE_ORDER && BIG_ENDIAN \
8404 && LITTLE_ENDIAN)
8405 bogus endian macros
8406 #endif
8409 return 0;
8411 _ACEOF
8412 if ac_fn_c_try_compile "$LINENO"; then :
8413 # It does; now see whether it defined to BIG_ENDIAN or not.
8414 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8415 /* end confdefs.h. */
8416 #include <sys/types.h>
8417 #include <sys/param.h>
8420 main ()
8422 #if BYTE_ORDER != BIG_ENDIAN
8423 not big endian
8424 #endif
8427 return 0;
8429 _ACEOF
8430 if ac_fn_c_try_compile "$LINENO"; then :
8431 ac_cv_c_bigendian=yes
8432 else
8433 ac_cv_c_bigendian=no
8435 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8437 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8439 if test $ac_cv_c_bigendian = unknown; then
8440 # See if <limits.h> defines _LITTLE_ENDIAN or _BIG_ENDIAN (e.g., Solaris).
8441 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8442 /* end confdefs.h. */
8443 #include <limits.h>
8446 main ()
8448 #if ! (defined _LITTLE_ENDIAN || defined _BIG_ENDIAN)
8449 bogus endian macros
8450 #endif
8453 return 0;
8455 _ACEOF
8456 if ac_fn_c_try_compile "$LINENO"; then :
8457 # It does; now see whether it defined to _BIG_ENDIAN or not.
8458 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8459 /* end confdefs.h. */
8460 #include <limits.h>
8463 main ()
8465 #ifndef _BIG_ENDIAN
8466 not big endian
8467 #endif
8470 return 0;
8472 _ACEOF
8473 if ac_fn_c_try_compile "$LINENO"; then :
8474 ac_cv_c_bigendian=yes
8475 else
8476 ac_cv_c_bigendian=no
8478 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8480 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8482 if test $ac_cv_c_bigendian = unknown; then
8483 # Compile a test program.
8484 if test "$cross_compiling" = yes; then :
8485 # Try to guess by grepping values from an object file.
8486 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8487 /* end confdefs.h. */
8488 short int ascii_mm[] =
8489 { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 };
8490 short int ascii_ii[] =
8491 { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 };
8492 int use_ascii (int i) {
8493 return ascii_mm[i] + ascii_ii[i];
8495 short int ebcdic_ii[] =
8496 { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 };
8497 short int ebcdic_mm[] =
8498 { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 };
8499 int use_ebcdic (int i) {
8500 return ebcdic_mm[i] + ebcdic_ii[i];
8502 extern int foo;
8505 main ()
8507 return use_ascii (foo) == use_ebcdic (foo);
8509 return 0;
8511 _ACEOF
8512 if ac_fn_c_try_compile "$LINENO"; then :
8513 if grep BIGenDianSyS conftest.$ac_objext >/dev/null; then
8514 ac_cv_c_bigendian=yes
8516 if grep LiTTleEnDian conftest.$ac_objext >/dev/null ; then
8517 if test "$ac_cv_c_bigendian" = unknown; then
8518 ac_cv_c_bigendian=no
8519 else
8520 # finding both strings is unlikely to happen, but who knows?
8521 ac_cv_c_bigendian=unknown
8525 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8526 else
8527 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8528 /* end confdefs.h. */
8529 $ac_includes_default
8531 main ()
8534 /* Are we little or big endian? From Harbison&Steele. */
8535 union
8537 long int l;
8538 char c[sizeof (long int)];
8539 } u;
8540 u.l = 1;
8541 return u.c[sizeof (long int) - 1] == 1;
8544 return 0;
8546 _ACEOF
8547 if ac_fn_c_try_run "$LINENO"; then :
8548 ac_cv_c_bigendian=no
8549 else
8550 ac_cv_c_bigendian=yes
8552 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
8553 conftest.$ac_objext conftest.beam conftest.$ac_ext
8558 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_bigendian" >&5
8559 $as_echo "$ac_cv_c_bigendian" >&6; }
8560 case $ac_cv_c_bigendian in #(
8561 yes)
8562 $as_echo "#define WORDS_BIGENDIAN 1" >>confdefs.h
8563 ;; #(
8565 ;; #(
8566 universal)
8568 $as_echo "#define AC_APPLE_UNIVERSAL_BUILD 1" >>confdefs.h
8570 ;; #(
8572 as_fn_error "unknown endianness
8573 presetting ac_cv_c_bigendian=no (or yes) will help" "$LINENO" 5 ;;
8574 esac
8577 # ----------------------
8578 # Checks for C++ headers
8579 # ----------------------
8581 ac_ext=cpp
8582 ac_cpp='$CXXCPP $CPPFLAGS'
8583 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8584 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8585 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
8586 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C++ preprocessor" >&5
8587 $as_echo_n "checking how to run the C++ preprocessor... " >&6; }
8588 if test -z "$CXXCPP"; then
8589 if test "${ac_cv_prog_CXXCPP+set}" = set; then :
8590 $as_echo_n "(cached) " >&6
8591 else
8592 # Double quotes because CXXCPP needs to be expanded
8593 for CXXCPP in "$CXX -E" "/lib/cpp"
8595 ac_preproc_ok=false
8596 for ac_cxx_preproc_warn_flag in '' yes
8598 # Use a header file that comes with gcc, so configuring glibc
8599 # with a fresh cross-compiler works.
8600 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
8601 # <limits.h> exists even on freestanding compilers.
8602 # On the NeXT, cc -E runs the code through the compiler's parser,
8603 # not just through cpp. "Syntax error" is here to catch this case.
8604 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8605 /* end confdefs.h. */
8606 #ifdef __STDC__
8607 # include <limits.h>
8608 #else
8609 # include <assert.h>
8610 #endif
8611 Syntax error
8612 _ACEOF
8613 if ac_fn_cxx_try_cpp "$LINENO"; then :
8615 else
8616 # Broken: fails on valid input.
8617 continue
8619 rm -f conftest.err conftest.$ac_ext
8621 # OK, works on sane cases. Now check whether nonexistent headers
8622 # can be detected and how.
8623 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8624 /* end confdefs.h. */
8625 #include <ac_nonexistent.h>
8626 _ACEOF
8627 if ac_fn_cxx_try_cpp "$LINENO"; then :
8628 # Broken: success on invalid input.
8629 continue
8630 else
8631 # Passes both tests.
8632 ac_preproc_ok=:
8633 break
8635 rm -f conftest.err conftest.$ac_ext
8637 done
8638 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
8639 rm -f conftest.err conftest.$ac_ext
8640 if $ac_preproc_ok; then :
8641 break
8644 done
8645 ac_cv_prog_CXXCPP=$CXXCPP
8648 CXXCPP=$ac_cv_prog_CXXCPP
8649 else
8650 ac_cv_prog_CXXCPP=$CXXCPP
8652 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXXCPP" >&5
8653 $as_echo "$CXXCPP" >&6; }
8654 ac_preproc_ok=false
8655 for ac_cxx_preproc_warn_flag in '' yes
8657 # Use a header file that comes with gcc, so configuring glibc
8658 # with a fresh cross-compiler works.
8659 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
8660 # <limits.h> exists even on freestanding compilers.
8661 # On the NeXT, cc -E runs the code through the compiler's parser,
8662 # not just through cpp. "Syntax error" is here to catch this case.
8663 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8664 /* end confdefs.h. */
8665 #ifdef __STDC__
8666 # include <limits.h>
8667 #else
8668 # include <assert.h>
8669 #endif
8670 Syntax error
8671 _ACEOF
8672 if ac_fn_cxx_try_cpp "$LINENO"; then :
8674 else
8675 # Broken: fails on valid input.
8676 continue
8678 rm -f conftest.err conftest.$ac_ext
8680 # OK, works on sane cases. Now check whether nonexistent headers
8681 # can be detected and how.
8682 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8683 /* end confdefs.h. */
8684 #include <ac_nonexistent.h>
8685 _ACEOF
8686 if ac_fn_cxx_try_cpp "$LINENO"; then :
8687 # Broken: success on invalid input.
8688 continue
8689 else
8690 # Passes both tests.
8691 ac_preproc_ok=:
8692 break
8694 rm -f conftest.err conftest.$ac_ext
8696 done
8697 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
8698 rm -f conftest.err conftest.$ac_ext
8699 if $ac_preproc_ok; then :
8701 else
8702 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
8703 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
8704 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: C++ preprocessor \"$CXXCPP\" fails sanity check
8705 See \`config.log' for more details." >&5
8706 $as_echo "$as_me: WARNING: C++ preprocessor \"$CXXCPP\" fails sanity check
8707 See \`config.log' for more details." >&2;}; }
8710 ac_ext=c
8711 ac_cpp='$CPP $CPPFLAGS'
8712 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8713 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8714 ac_compiler_gnu=$ac_cv_c_compiler_gnu
8717 ac_ext=cpp
8718 ac_cpp='$CXXCPP $CPPFLAGS'
8719 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8720 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8721 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
8726 for ac_header in unordered_map
8727 do :
8728 ac_fn_cxx_check_header_preproc "$LINENO" "unordered_map" "ac_cv_header_unordered_map"
8729 if test "x$ac_cv_header_unordered_map" = x""yes; then :
8730 cat >>confdefs.h <<_ACEOF
8731 #define HAVE_UNORDERED_MAP 1
8732 _ACEOF
8735 done
8737 for ac_header in tr1/unordered_map
8738 do :
8739 ac_fn_cxx_check_header_preproc "$LINENO" "tr1/unordered_map" "ac_cv_header_tr1_unordered_map"
8740 if test "x$ac_cv_header_tr1_unordered_map" = x""yes; then :
8741 cat >>confdefs.h <<_ACEOF
8742 #define HAVE_TR1_UNORDERED_MAP 1
8743 _ACEOF
8746 done
8748 for ac_header in ext/hash_map
8749 do :
8750 ac_fn_cxx_check_header_preproc "$LINENO" "ext/hash_map" "ac_cv_header_ext_hash_map"
8751 if test "x$ac_cv_header_ext_hash_map" = x""yes; then :
8752 cat >>confdefs.h <<_ACEOF
8753 #define HAVE_EXT_HASH_MAP 1
8754 _ACEOF
8757 done
8760 ac_ext=c
8761 ac_cpp='$CPP $CPPFLAGS'
8762 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8763 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8764 ac_compiler_gnu=$ac_cv_c_compiler_gnu
8767 # --------
8768 # Dependency checking.
8769 # --------
8771 ac_ext=cpp
8772 ac_cpp='$CXXCPP $CPPFLAGS'
8773 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8774 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8775 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
8777 rm -rf .tst 2>/dev/null
8778 mkdir .tst 2>/dev/null
8779 if test -d .tst; then
8780 am__leading_dot=.
8781 else
8782 am__leading_dot=_
8784 rmdir .tst 2>/dev/null
8786 DEPDIR="${am__leading_dot}deps"
8788 ac_config_commands="$ac_config_commands depdir"
8791 ac_config_commands="$ac_config_commands gccdepdir"
8794 depcc="$CC" am_compiler_list=
8796 am_depcomp=$ac_aux_dir/depcomp
8797 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
8798 $as_echo_n "checking dependency style of $depcc... " >&6; }
8799 if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then :
8800 $as_echo_n "(cached) " >&6
8801 else
8802 if test -f "$am_depcomp"; then
8803 # We make a subdir and do the tests there. Otherwise we can end up
8804 # making bogus files that we don't know about and never remove. For
8805 # instance it was reported that on HP-UX the gcc test will end up
8806 # making a dummy file named `D' -- because `-MD' means `put the output
8807 # in D'.
8808 mkdir conftest.dir
8809 # Copy depcomp to subdir because otherwise we won't find it if we're
8810 # using a relative directory.
8811 cp "$am_depcomp" conftest.dir
8812 cd conftest.dir
8813 # We will build objects and dependencies in a subdirectory because
8814 # it helps to detect inapplicable dependency modes. For instance
8815 # both Tru64's cc and ICC support -MD to output dependencies as a
8816 # side effect of compilation, but ICC will put the dependencies in
8817 # the current directory while Tru64 will put them in the object
8818 # directory.
8819 mkdir sub
8821 am_cv_CC_dependencies_compiler_type=none
8822 if test "$am_compiler_list" = ""; then
8823 am_compiler_list=`sed -n 's/^\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
8825 for depmode in $am_compiler_list; do
8826 if test $depmode = none; then break; fi
8828 $as_echo "$as_me:$LINENO: trying $depmode" >&5
8829 # Setup a source with many dependencies, because some compilers
8830 # like to wrap large dependency lists on column 80 (with \), and
8831 # we should not choose a depcomp mode which is confused by this.
8833 # We need to recreate these files for each test, as the compiler may
8834 # overwrite some of them when testing with obscure command lines.
8835 # This happens at least with the AIX C compiler.
8836 : > sub/conftest.c
8837 for i in 1 2 3 4 5 6; do
8838 echo '#include "conftst'$i'.h"' >> sub/conftest.c
8839 # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
8840 # Solaris 8's {/usr,}/bin/sh.
8841 touch sub/conftst$i.h
8842 done
8843 echo "include sub/conftest.Po" > confmf
8845 # We check with `-c' and `-o' for the sake of the "dashmstdout"
8846 # mode. It turns out that the SunPro C++ compiler does not properly
8847 # handle `-M -o', and we need to detect this.
8848 depcmd="depmode=$depmode \
8849 source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \
8850 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
8851 $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c"
8852 echo "| $depcmd" | sed -e 's/ */ /g' >&5
8853 if env $depcmd > conftest.err 2>&1 &&
8854 grep sub/conftst6.h sub/conftest.Po >>conftest.err 2>&1 &&
8855 grep sub/conftest.${OBJEXT-o} sub/conftest.Po >>conftest.err 2>&1 &&
8856 ${MAKE-make} -s -f confmf >>conftest.err 2>&1; then
8857 # icc doesn't choke on unknown options, it will just issue warnings
8858 # or remarks (even with -Werror). So we grep stderr for any message
8859 # that says an option was ignored or not supported.
8860 # When given -MP, icc 7.0 and 7.1 complain thusly:
8861 # icc: Command line warning: ignoring option '-M'; no argument required
8862 # The diagnosis changed in icc 8.0:
8863 # icc: Command line remark: option '-MP' not supported
8864 if (grep 'ignoring option' conftest.err ||
8865 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
8866 am_cv_CC_dependencies_compiler_type=$depmode
8867 $as_echo "$as_me:$LINENO: success" >&5
8868 break
8871 $as_echo "$as_me:$LINENO: failure, diagnostics are:" >&5
8872 sed -e 's/^/| /' < conftest.err >&5
8873 done
8875 cd ..
8876 rm -rf conftest.dir
8877 else
8878 am_cv_CC_dependencies_compiler_type=none
8882 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5
8883 $as_echo "$am_cv_CC_dependencies_compiler_type" >&6; }
8884 if test x${am_cv_CC_dependencies_compiler_type-none} = xnone
8885 then as_fn_error "no usable dependency style found" "$LINENO" 5
8886 else CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
8890 ac_ext=c
8891 ac_cpp='$CPP $CPPFLAGS'
8892 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8893 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8894 ac_compiler_gnu=$ac_cv_c_compiler_gnu
8897 # --------
8898 # UNSORTED
8899 # --------
8902 # These libraries may be used by collect2.
8903 # We may need a special search path to get them linked.
8904 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for collect2 libraries" >&5
8905 $as_echo_n "checking for collect2 libraries... " >&6; }
8906 if test "${gcc_cv_collect2_libs+set}" = set; then :
8907 $as_echo_n "(cached) " >&6
8908 else
8909 save_LIBS="$LIBS"
8910 for libs in '' -lld -lmld \
8911 '-L/usr/lib/cmplrs/cc2.11 -lmld' \
8912 '-L/usr/lib/cmplrs/cc3.11 -lmld'
8914 LIBS="$libs"
8915 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8916 /* end confdefs.h. */
8918 /* Override any GCC internal prototype to avoid an error.
8919 Use char because int might match the return type of a GCC
8920 builtin and then its argument prototype would still apply. */
8921 #ifdef __cplusplus
8922 extern "C"
8923 #endif
8924 char ldopen ();
8926 main ()
8928 return ldopen ();
8930 return 0;
8932 _ACEOF
8933 if ac_fn_c_try_link "$LINENO"; then :
8934 gcc_cv_collect2_libs="$libs"; break
8936 rm -f core conftest.err conftest.$ac_objext \
8937 conftest$ac_exeext conftest.$ac_ext
8938 done
8939 LIBS="$save_LIBS"
8940 test -z "$gcc_cv_collect2_libs" && gcc_cv_collect2_libs='none required'
8942 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_collect2_libs" >&5
8943 $as_echo "$gcc_cv_collect2_libs" >&6; }
8944 case $gcc_cv_collect2_libs in
8945 "none required") ;;
8946 *) COLLECT2_LIBS=$gcc_cv_collect2_libs ;;
8947 esac
8950 # When building Ada code on Alpha, we need exc_resume which is usually in
8951 # -lexc. So test for it.
8952 save_LIBS="$LIBS"
8953 LIBS=
8954 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing exc_resume" >&5
8955 $as_echo_n "checking for library containing exc_resume... " >&6; }
8956 if test "${ac_cv_search_exc_resume+set}" = set; then :
8957 $as_echo_n "(cached) " >&6
8958 else
8959 ac_func_search_save_LIBS=$LIBS
8960 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8961 /* end confdefs.h. */
8963 /* Override any GCC internal prototype to avoid an error.
8964 Use char because int might match the return type of a GCC
8965 builtin and then its argument prototype would still apply. */
8966 #ifdef __cplusplus
8967 extern "C"
8968 #endif
8969 char exc_resume ();
8971 main ()
8973 return exc_resume ();
8975 return 0;
8977 _ACEOF
8978 for ac_lib in '' exc; do
8979 if test -z "$ac_lib"; then
8980 ac_res="none required"
8981 else
8982 ac_res=-l$ac_lib
8983 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
8985 if ac_fn_c_try_link "$LINENO"; then :
8986 ac_cv_search_exc_resume=$ac_res
8988 rm -f core conftest.err conftest.$ac_objext \
8989 conftest$ac_exeext
8990 if test "${ac_cv_search_exc_resume+set}" = set; then :
8991 break
8993 done
8994 if test "${ac_cv_search_exc_resume+set}" = set; then :
8996 else
8997 ac_cv_search_exc_resume=no
8999 rm conftest.$ac_ext
9000 LIBS=$ac_func_search_save_LIBS
9002 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_exc_resume" >&5
9003 $as_echo "$ac_cv_search_exc_resume" >&6; }
9004 ac_res=$ac_cv_search_exc_resume
9005 if test "$ac_res" != no; then :
9006 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
9010 GNAT_LIBEXC="$LIBS"
9011 LIBS="$save_LIBS"
9014 # To support -mcpu=native on Solaris/SPARC, we need libkstat.
9015 save_LIBS="$LIBS"
9016 LIBS=
9017 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing kstat_open" >&5
9018 $as_echo_n "checking for library containing kstat_open... " >&6; }
9019 if test "${ac_cv_search_kstat_open+set}" = set; then :
9020 $as_echo_n "(cached) " >&6
9021 else
9022 ac_func_search_save_LIBS=$LIBS
9023 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9024 /* end confdefs.h. */
9026 /* Override any GCC internal prototype to avoid an error.
9027 Use char because int might match the return type of a GCC
9028 builtin and then its argument prototype would still apply. */
9029 #ifdef __cplusplus
9030 extern "C"
9031 #endif
9032 char kstat_open ();
9034 main ()
9036 return kstat_open ();
9038 return 0;
9040 _ACEOF
9041 for ac_lib in '' kstat; do
9042 if test -z "$ac_lib"; then
9043 ac_res="none required"
9044 else
9045 ac_res=-l$ac_lib
9046 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
9048 if ac_fn_c_try_link "$LINENO"; then :
9049 ac_cv_search_kstat_open=$ac_res
9051 rm -f core conftest.err conftest.$ac_objext \
9052 conftest$ac_exeext
9053 if test "${ac_cv_search_kstat_open+set}" = set; then :
9054 break
9056 done
9057 if test "${ac_cv_search_kstat_open+set}" = set; then :
9059 else
9060 ac_cv_search_kstat_open=no
9062 rm conftest.$ac_ext
9063 LIBS=$ac_func_search_save_LIBS
9065 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_kstat_open" >&5
9066 $as_echo "$ac_cv_search_kstat_open" >&6; }
9067 ac_res=$ac_cv_search_kstat_open
9068 if test "$ac_res" != no; then :
9069 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
9073 EXTRA_GCC_LIBS="$LIBS"
9074 LIBS="$save_LIBS"
9077 # Some systems put ldexp and frexp in libm instead of libc; assume
9078 # they're both in the same place. jcf-dump needs them.
9079 save_LIBS="$LIBS"
9080 LIBS=
9081 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing ldexp" >&5
9082 $as_echo_n "checking for library containing ldexp... " >&6; }
9083 if test "${ac_cv_search_ldexp+set}" = set; then :
9084 $as_echo_n "(cached) " >&6
9085 else
9086 ac_func_search_save_LIBS=$LIBS
9087 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9088 /* end confdefs.h. */
9090 /* Override any GCC internal prototype to avoid an error.
9091 Use char because int might match the return type of a GCC
9092 builtin and then its argument prototype would still apply. */
9093 #ifdef __cplusplus
9094 extern "C"
9095 #endif
9096 char ldexp ();
9098 main ()
9100 return ldexp ();
9102 return 0;
9104 _ACEOF
9105 for ac_lib in '' m; do
9106 if test -z "$ac_lib"; then
9107 ac_res="none required"
9108 else
9109 ac_res=-l$ac_lib
9110 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
9112 if ac_fn_c_try_link "$LINENO"; then :
9113 ac_cv_search_ldexp=$ac_res
9115 rm -f core conftest.err conftest.$ac_objext \
9116 conftest$ac_exeext
9117 if test "${ac_cv_search_ldexp+set}" = set; then :
9118 break
9120 done
9121 if test "${ac_cv_search_ldexp+set}" = set; then :
9123 else
9124 ac_cv_search_ldexp=no
9126 rm conftest.$ac_ext
9127 LIBS=$ac_func_search_save_LIBS
9129 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_ldexp" >&5
9130 $as_echo "$ac_cv_search_ldexp" >&6; }
9131 ac_res=$ac_cv_search_ldexp
9132 if test "$ac_res" != no; then :
9133 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
9137 LDEXP_LIB="$LIBS"
9138 LIBS="$save_LIBS"
9141 # Use <inttypes.h> only if it exists,
9142 # doesn't clash with <sys/types.h>, and declares intmax_t.
9143 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for inttypes.h" >&5
9144 $as_echo_n "checking for inttypes.h... " >&6; }
9145 if test "${gcc_cv_header_inttypes_h+set}" = set; then :
9146 $as_echo_n "(cached) " >&6
9147 else
9148 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9149 /* end confdefs.h. */
9150 #include <sys/types.h>
9151 #include <inttypes.h>
9153 main ()
9155 intmax_t i = -1;
9157 return 0;
9159 _ACEOF
9160 if ac_fn_c_try_compile "$LINENO"; then :
9161 gcc_cv_header_inttypes_h=yes
9162 else
9163 gcc_cv_header_inttypes_h=no
9165 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9168 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_header_inttypes_h" >&5
9169 $as_echo "$gcc_cv_header_inttypes_h" >&6; }
9170 if test $gcc_cv_header_inttypes_h = yes; then
9172 $as_echo "#define HAVE_INTTYPES_H 1" >>confdefs.h
9178 for ac_func in times clock kill getrlimit setrlimit atoll atoq \
9179 sysconf strsignal getrusage nl_langinfo \
9180 gettimeofday mbstowcs wcswidth mmap setlocale \
9181 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
9182 do :
9183 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
9184 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
9185 eval as_val=\$$as_ac_var
9186 if test "x$as_val" = x""yes; then :
9187 cat >>confdefs.h <<_ACEOF
9188 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
9189 _ACEOF
9192 done
9195 if test x$ac_cv_func_mbstowcs = xyes; then
9196 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether mbstowcs works" >&5
9197 $as_echo_n "checking whether mbstowcs works... " >&6; }
9198 if test "${gcc_cv_func_mbstowcs_works+set}" = set; then :
9199 $as_echo_n "(cached) " >&6
9200 else
9201 if test "$cross_compiling" = yes; then :
9202 gcc_cv_func_mbstowcs_works=yes
9203 else
9204 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9205 /* end confdefs.h. */
9206 #include <stdlib.h>
9207 int main()
9209 mbstowcs(0, "", 0);
9210 return 0;
9212 _ACEOF
9213 if ac_fn_c_try_run "$LINENO"; then :
9214 gcc_cv_func_mbstowcs_works=yes
9215 else
9216 gcc_cv_func_mbstowcs_works=no
9218 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
9219 conftest.$ac_objext conftest.beam conftest.$ac_ext
9223 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_func_mbstowcs_works" >&5
9224 $as_echo "$gcc_cv_func_mbstowcs_works" >&6; }
9225 if test x$gcc_cv_func_mbstowcs_works = xyes; then
9227 $as_echo "#define HAVE_WORKING_MBSTOWCS 1" >>confdefs.h
9232 ac_fn_c_check_type "$LINENO" "ssize_t" "ac_cv_type_ssize_t" "$ac_includes_default"
9233 if test "x$ac_cv_type_ssize_t" = x""yes; then :
9235 else
9237 cat >>confdefs.h <<_ACEOF
9238 #define ssize_t int
9239 _ACEOF
9243 ac_fn_c_check_type "$LINENO" "caddr_t" "ac_cv_type_caddr_t" "$ac_includes_default"
9244 if test "x$ac_cv_type_caddr_t" = x""yes; then :
9246 else
9248 cat >>confdefs.h <<_ACEOF
9249 #define caddr_t char *
9250 _ACEOF
9256 ac_fn_c_check_header_preproc "$LINENO" "sys/mman.h" "ac_cv_header_sys_mman_h"
9257 if test "x$ac_cv_header_sys_mman_h" = x""yes; then :
9258 gcc_header_sys_mman_h=yes
9259 else
9260 gcc_header_sys_mman_h=no
9263 ac_fn_c_check_func "$LINENO" "mmap" "ac_cv_func_mmap"
9264 if test "x$ac_cv_func_mmap" = x""yes; then :
9265 gcc_func_mmap=yes
9266 else
9267 gcc_func_mmap=no
9270 if test "$gcc_header_sys_mman_h" != yes \
9271 || test "$gcc_func_mmap" != yes; then
9272 gcc_cv_func_mmap_file=no
9273 gcc_cv_func_mmap_dev_zero=no
9274 gcc_cv_func_mmap_anon=no
9275 else
9276 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether read-only mmap of a plain file works" >&5
9277 $as_echo_n "checking whether read-only mmap of a plain file works... " >&6; }
9278 if test "${gcc_cv_func_mmap_file+set}" = set; then :
9279 $as_echo_n "(cached) " >&6
9280 else
9281 # Add a system to this blacklist if
9282 # mmap(0, stat_size, PROT_READ, MAP_PRIVATE, fd, 0) doesn't return a
9283 # memory area containing the same data that you'd get if you applied
9284 # read() to the same fd. The only system known to have a problem here
9285 # is VMS, where text files have record structure.
9286 case "$host_os" in
9287 *vms* | ultrix*)
9288 gcc_cv_func_mmap_file=no ;;
9290 gcc_cv_func_mmap_file=yes;;
9291 esac
9293 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_func_mmap_file" >&5
9294 $as_echo "$gcc_cv_func_mmap_file" >&6; }
9295 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether mmap from /dev/zero works" >&5
9296 $as_echo_n "checking whether mmap from /dev/zero works... " >&6; }
9297 if test "${gcc_cv_func_mmap_dev_zero+set}" = set; then :
9298 $as_echo_n "(cached) " >&6
9299 else
9300 # Add a system to this blacklist if it has mmap() but /dev/zero
9301 # does not exist, or if mmapping /dev/zero does not give anonymous
9302 # zeroed pages with both the following properties:
9303 # 1. If you map N consecutive pages in with one call, and then
9304 # unmap any subset of those pages, the pages that were not
9305 # explicitly unmapped remain accessible.
9306 # 2. If you map two adjacent blocks of memory and then unmap them
9307 # both at once, they must both go away.
9308 # Systems known to be in this category are Windows (all variants),
9309 # VMS, and Darwin.
9310 case "$host_os" in
9311 *vms* | cygwin* | pe | mingw* | darwin* | ultrix* | hpux10* | hpux11.00)
9312 gcc_cv_func_mmap_dev_zero=no ;;
9314 gcc_cv_func_mmap_dev_zero=yes;;
9315 esac
9317 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_func_mmap_dev_zero" >&5
9318 $as_echo "$gcc_cv_func_mmap_dev_zero" >&6; }
9320 # Unlike /dev/zero, the MAP_ANON(YMOUS) defines can be probed for.
9321 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for MAP_ANON(YMOUS)" >&5
9322 $as_echo_n "checking for MAP_ANON(YMOUS)... " >&6; }
9323 if test "${gcc_cv_decl_map_anon+set}" = set; then :
9324 $as_echo_n "(cached) " >&6
9325 else
9326 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9327 /* end confdefs.h. */
9328 #include <sys/types.h>
9329 #include <sys/mman.h>
9330 #include <unistd.h>
9332 #ifndef MAP_ANONYMOUS
9333 #define MAP_ANONYMOUS MAP_ANON
9334 #endif
9337 main ()
9339 int n = MAP_ANONYMOUS;
9341 return 0;
9343 _ACEOF
9344 if ac_fn_c_try_compile "$LINENO"; then :
9345 gcc_cv_decl_map_anon=yes
9346 else
9347 gcc_cv_decl_map_anon=no
9349 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9351 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_decl_map_anon" >&5
9352 $as_echo "$gcc_cv_decl_map_anon" >&6; }
9354 if test $gcc_cv_decl_map_anon = no; then
9355 gcc_cv_func_mmap_anon=no
9356 else
9357 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether mmap with MAP_ANON(YMOUS) works" >&5
9358 $as_echo_n "checking whether mmap with MAP_ANON(YMOUS) works... " >&6; }
9359 if test "${gcc_cv_func_mmap_anon+set}" = set; then :
9360 $as_echo_n "(cached) " >&6
9361 else
9362 # Add a system to this blacklist if it has mmap() and MAP_ANON or
9363 # MAP_ANONYMOUS, but using mmap(..., MAP_PRIVATE|MAP_ANONYMOUS, -1, 0)
9364 # doesn't give anonymous zeroed pages with the same properties listed
9365 # above for use of /dev/zero.
9366 # Systems known to be in this category are Windows, VMS, and SCO Unix.
9367 case "$host_os" in
9368 *vms* | cygwin* | pe | mingw* | sco* | udk* )
9369 gcc_cv_func_mmap_anon=no ;;
9371 gcc_cv_func_mmap_anon=yes;;
9372 esac
9374 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_func_mmap_anon" >&5
9375 $as_echo "$gcc_cv_func_mmap_anon" >&6; }
9379 if test $gcc_cv_func_mmap_file = yes; then
9381 $as_echo "#define HAVE_MMAP_FILE 1" >>confdefs.h
9384 if test $gcc_cv_func_mmap_dev_zero = yes; then
9386 $as_echo "#define HAVE_MMAP_DEV_ZERO 1" >>confdefs.h
9389 if test $gcc_cv_func_mmap_anon = yes; then
9391 $as_echo "#define HAVE_MMAP_ANON 1" >>confdefs.h
9396 case "${host}" in
9397 *-*-*vms*)
9398 # Under VMS, vfork works very differently than on Unix. The standard test
9399 # won't work, and it isn't easily adaptable. It makes more sense to
9400 # just force it.
9401 ac_cv_func_vfork_works=yes
9403 esac
9404 ac_fn_c_check_type "$LINENO" "pid_t" "ac_cv_type_pid_t" "$ac_includes_default"
9405 if test "x$ac_cv_type_pid_t" = x""yes; then :
9407 else
9409 cat >>confdefs.h <<_ACEOF
9410 #define pid_t int
9411 _ACEOF
9415 for ac_header in vfork.h
9416 do :
9417 ac_fn_c_check_header_preproc "$LINENO" "vfork.h" "ac_cv_header_vfork_h"
9418 if test "x$ac_cv_header_vfork_h" = x""yes; then :
9419 cat >>confdefs.h <<_ACEOF
9420 #define HAVE_VFORK_H 1
9421 _ACEOF
9424 done
9426 for ac_func in fork vfork
9427 do :
9428 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
9429 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
9430 eval as_val=\$$as_ac_var
9431 if test "x$as_val" = x""yes; then :
9432 cat >>confdefs.h <<_ACEOF
9433 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
9434 _ACEOF
9437 done
9439 if test "x$ac_cv_func_fork" = xyes; then
9440 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working fork" >&5
9441 $as_echo_n "checking for working fork... " >&6; }
9442 if test "${ac_cv_func_fork_works+set}" = set; then :
9443 $as_echo_n "(cached) " >&6
9444 else
9445 if test "$cross_compiling" = yes; then :
9446 ac_cv_func_fork_works=cross
9447 else
9448 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9449 /* end confdefs.h. */
9450 $ac_includes_default
9452 main ()
9455 /* By Ruediger Kuhlmann. */
9456 return fork () < 0;
9459 return 0;
9461 _ACEOF
9462 if ac_fn_c_try_run "$LINENO"; then :
9463 ac_cv_func_fork_works=yes
9464 else
9465 ac_cv_func_fork_works=no
9467 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
9468 conftest.$ac_objext conftest.beam conftest.$ac_ext
9472 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_fork_works" >&5
9473 $as_echo "$ac_cv_func_fork_works" >&6; }
9475 else
9476 ac_cv_func_fork_works=$ac_cv_func_fork
9478 if test "x$ac_cv_func_fork_works" = xcross; then
9479 case $host in
9480 *-*-amigaos* | *-*-msdosdjgpp*)
9481 # Override, as these systems have only a dummy fork() stub
9482 ac_cv_func_fork_works=no
9485 ac_cv_func_fork_works=yes
9487 esac
9488 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: result $ac_cv_func_fork_works guessed because of cross compilation" >&5
9489 $as_echo "$as_me: WARNING: result $ac_cv_func_fork_works guessed because of cross compilation" >&2;}
9491 ac_cv_func_vfork_works=$ac_cv_func_vfork
9492 if test "x$ac_cv_func_vfork" = xyes; then
9493 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working vfork" >&5
9494 $as_echo_n "checking for working vfork... " >&6; }
9495 if test "${ac_cv_func_vfork_works+set}" = set; then :
9496 $as_echo_n "(cached) " >&6
9497 else
9498 if test "$cross_compiling" = yes; then :
9499 ac_cv_func_vfork_works=cross
9500 else
9501 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9502 /* end confdefs.h. */
9503 /* Thanks to Paul Eggert for this test. */
9504 $ac_includes_default
9505 #include <sys/wait.h>
9506 #ifdef HAVE_VFORK_H
9507 # include <vfork.h>
9508 #endif
9509 /* On some sparc systems, changes by the child to local and incoming
9510 argument registers are propagated back to the parent. The compiler
9511 is told about this with #include <vfork.h>, but some compilers
9512 (e.g. gcc -O) don't grok <vfork.h>. Test for this by using a
9513 static variable whose address is put into a register that is
9514 clobbered by the vfork. */
9515 static void
9516 #ifdef __cplusplus
9517 sparc_address_test (int arg)
9518 # else
9519 sparc_address_test (arg) int arg;
9520 #endif
9522 static pid_t child;
9523 if (!child) {
9524 child = vfork ();
9525 if (child < 0) {
9526 perror ("vfork");
9527 _exit(2);
9529 if (!child) {
9530 arg = getpid();
9531 write(-1, "", 0);
9532 _exit (arg);
9538 main ()
9540 pid_t parent = getpid ();
9541 pid_t child;
9543 sparc_address_test (0);
9545 child = vfork ();
9547 if (child == 0) {
9548 /* Here is another test for sparc vfork register problems. This
9549 test uses lots of local variables, at least as many local
9550 variables as main has allocated so far including compiler
9551 temporaries. 4 locals are enough for gcc 1.40.3 on a Solaris
9552 4.1.3 sparc, but we use 8 to be safe. A buggy compiler should
9553 reuse the register of parent for one of the local variables,
9554 since it will think that parent can't possibly be used any more
9555 in this routine. Assigning to the local variable will thus
9556 munge parent in the parent process. */
9557 pid_t
9558 p = getpid(), p1 = getpid(), p2 = getpid(), p3 = getpid(),
9559 p4 = getpid(), p5 = getpid(), p6 = getpid(), p7 = getpid();
9560 /* Convince the compiler that p..p7 are live; otherwise, it might
9561 use the same hardware register for all 8 local variables. */
9562 if (p != p1 || p != p2 || p != p3 || p != p4
9563 || p != p5 || p != p6 || p != p7)
9564 _exit(1);
9566 /* On some systems (e.g. IRIX 3.3), vfork doesn't separate parent
9567 from child file descriptors. If the child closes a descriptor
9568 before it execs or exits, this munges the parent's descriptor
9569 as well. Test for this by closing stdout in the child. */
9570 _exit(close(fileno(stdout)) != 0);
9571 } else {
9572 int status;
9573 struct stat st;
9575 while (wait(&status) != child)
9577 return (
9578 /* Was there some problem with vforking? */
9579 child < 0
9581 /* Did the child fail? (This shouldn't happen.) */
9582 || status
9584 /* Did the vfork/compiler bug occur? */
9585 || parent != getpid()
9587 /* Did the file descriptor bug occur? */
9588 || fstat(fileno(stdout), &st) != 0
9592 _ACEOF
9593 if ac_fn_c_try_run "$LINENO"; then :
9594 ac_cv_func_vfork_works=yes
9595 else
9596 ac_cv_func_vfork_works=no
9598 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
9599 conftest.$ac_objext conftest.beam conftest.$ac_ext
9603 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_vfork_works" >&5
9604 $as_echo "$ac_cv_func_vfork_works" >&6; }
9607 if test "x$ac_cv_func_fork_works" = xcross; then
9608 ac_cv_func_vfork_works=$ac_cv_func_vfork
9609 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: result $ac_cv_func_vfork_works guessed because of cross compilation" >&5
9610 $as_echo "$as_me: WARNING: result $ac_cv_func_vfork_works guessed because of cross compilation" >&2;}
9613 if test "x$ac_cv_func_vfork_works" = xyes; then
9615 $as_echo "#define HAVE_WORKING_VFORK 1" >>confdefs.h
9617 else
9619 $as_echo "#define vfork fork" >>confdefs.h
9622 if test "x$ac_cv_func_fork_works" = xyes; then
9624 $as_echo "#define HAVE_WORKING_FORK 1" >>confdefs.h
9629 # g++ on Solaris 10+ defines _XOPEN_SOURCE=600, which exposes a different
9630 # iconv() prototype.
9631 ac_ext=cpp
9632 ac_cpp='$CXXCPP $CPPFLAGS'
9633 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
9634 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
9635 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
9638 if test "X$prefix" = "XNONE"; then
9639 acl_final_prefix="$ac_default_prefix"
9640 else
9641 acl_final_prefix="$prefix"
9643 if test "X$exec_prefix" = "XNONE"; then
9644 acl_final_exec_prefix='${prefix}'
9645 else
9646 acl_final_exec_prefix="$exec_prefix"
9648 acl_save_prefix="$prefix"
9649 prefix="$acl_final_prefix"
9650 eval acl_final_exec_prefix=\"$acl_final_exec_prefix\"
9651 prefix="$acl_save_prefix"
9654 # Check whether --with-gnu-ld was given.
9655 if test "${with_gnu_ld+set}" = set; then :
9656 withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
9657 else
9658 with_gnu_ld=no
9661 # Prepare PATH_SEPARATOR.
9662 # The user is always right.
9663 if test "${PATH_SEPARATOR+set}" != set; then
9664 echo "#! /bin/sh" >conf$$.sh
9665 echo "exit 0" >>conf$$.sh
9666 chmod +x conf$$.sh
9667 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
9668 PATH_SEPARATOR=';'
9669 else
9670 PATH_SEPARATOR=:
9672 rm -f conf$$.sh
9674 ac_prog=ld
9675 if test "$GCC" = yes; then
9676 # Check if gcc -print-prog-name=ld gives a path.
9677 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by GCC" >&5
9678 $as_echo_n "checking for ld used by GCC... " >&6; }
9679 case $host in
9680 *-*-mingw*)
9681 # gcc leaves a trailing carriage return which upsets mingw
9682 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
9684 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
9685 esac
9686 case $ac_prog in
9687 # Accept absolute paths.
9688 [\\/]* | [A-Za-z]:[\\/]*)
9689 re_direlt='/[^/][^/]*/\.\./'
9690 # Canonicalize the path of ld
9691 ac_prog=`echo $ac_prog| sed 's%\\\\%/%g'`
9692 while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
9693 ac_prog=`echo $ac_prog| sed "s%$re_direlt%/%"`
9694 done
9695 test -z "$LD" && LD="$ac_prog"
9698 # If it fails, then pretend we aren't using GCC.
9699 ac_prog=ld
9702 # If it is relative, then search for the first ld in PATH.
9703 with_gnu_ld=unknown
9705 esac
9706 elif test "$with_gnu_ld" = yes; then
9707 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
9708 $as_echo_n "checking for GNU ld... " >&6; }
9709 else
9710 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
9711 $as_echo_n "checking for non-GNU ld... " >&6; }
9713 if test "${acl_cv_path_LD+set}" = set; then :
9714 $as_echo_n "(cached) " >&6
9715 else
9716 if test -z "$LD"; then
9717 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}${PATH_SEPARATOR-:}"
9718 for ac_dir in $PATH; do
9719 test -z "$ac_dir" && ac_dir=.
9720 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
9721 acl_cv_path_LD="$ac_dir/$ac_prog"
9722 # Check to see if the program is GNU ld. I'd rather use --version,
9723 # but apparently some GNU ld's only accept -v.
9724 # Break only if it was the GNU/non-GNU ld that we prefer.
9725 if "$acl_cv_path_LD" -v 2>&1 < /dev/null | egrep '(GNU|with BFD)' > /dev/null; then
9726 test "$with_gnu_ld" != no && break
9727 else
9728 test "$with_gnu_ld" != yes && break
9731 done
9732 IFS="$ac_save_ifs"
9733 else
9734 acl_cv_path_LD="$LD" # Let the user override the test with a path.
9738 LD="$acl_cv_path_LD"
9739 if test -n "$LD"; then
9740 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
9741 $as_echo "$LD" >&6; }
9742 else
9743 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9744 $as_echo "no" >&6; }
9746 test -z "$LD" && as_fn_error "no acceptable ld found in \$PATH" "$LINENO" 5
9747 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
9748 $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
9749 if test "${acl_cv_prog_gnu_ld+set}" = set; then :
9750 $as_echo_n "(cached) " >&6
9751 else
9752 # I'd rather use --version here, but apparently some GNU ld's only accept -v.
9753 if $LD -v 2>&1 </dev/null | egrep '(GNU|with BFD)' 1>&5; then
9754 acl_cv_prog_gnu_ld=yes
9755 else
9756 acl_cv_prog_gnu_ld=no
9759 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $acl_cv_prog_gnu_ld" >&5
9760 $as_echo "$acl_cv_prog_gnu_ld" >&6; }
9761 with_gnu_ld=$acl_cv_prog_gnu_ld
9765 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shared library run path origin" >&5
9766 $as_echo_n "checking for shared library run path origin... " >&6; }
9767 if test "${acl_cv_rpath+set}" = set; then :
9768 $as_echo_n "(cached) " >&6
9769 else
9771 CC="$CC" GCC="$GCC" LDFLAGS="$LDFLAGS" LD="$LD" with_gnu_ld="$with_gnu_ld" \
9772 ${CONFIG_SHELL-/bin/sh} "$ac_aux_dir/config.rpath" "$host" > conftest.sh
9773 . ./conftest.sh
9774 rm -f ./conftest.sh
9775 acl_cv_rpath=done
9778 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $acl_cv_rpath" >&5
9779 $as_echo "$acl_cv_rpath" >&6; }
9780 wl="$acl_cv_wl"
9781 libext="$acl_cv_libext"
9782 shlibext="$acl_cv_shlibext"
9783 hardcode_libdir_flag_spec="$acl_cv_hardcode_libdir_flag_spec"
9784 hardcode_libdir_separator="$acl_cv_hardcode_libdir_separator"
9785 hardcode_direct="$acl_cv_hardcode_direct"
9786 hardcode_minus_L="$acl_cv_hardcode_minus_L"
9787 # Check whether --enable-rpath was given.
9788 if test "${enable_rpath+set}" = set; then :
9789 enableval=$enable_rpath; :
9790 else
9791 enable_rpath=yes
9801 use_additional=yes
9803 acl_save_prefix="$prefix"
9804 prefix="$acl_final_prefix"
9805 acl_save_exec_prefix="$exec_prefix"
9806 exec_prefix="$acl_final_exec_prefix"
9808 eval additional_includedir=\"$includedir\"
9809 eval additional_libdir=\"$libdir\"
9811 exec_prefix="$acl_save_exec_prefix"
9812 prefix="$acl_save_prefix"
9815 # Check whether --with-libiconv-prefix was given.
9816 if test "${with_libiconv_prefix+set}" = set; then :
9817 withval=$with_libiconv_prefix;
9818 if test "X$withval" = "Xno"; then
9819 use_additional=no
9820 else
9821 if test "X$withval" = "X"; then
9823 acl_save_prefix="$prefix"
9824 prefix="$acl_final_prefix"
9825 acl_save_exec_prefix="$exec_prefix"
9826 exec_prefix="$acl_final_exec_prefix"
9828 eval additional_includedir=\"$includedir\"
9829 eval additional_libdir=\"$libdir\"
9831 exec_prefix="$acl_save_exec_prefix"
9832 prefix="$acl_save_prefix"
9834 else
9835 additional_includedir="$withval/include"
9836 additional_libdir="$withval/lib"
9842 LIBICONV=
9843 LTLIBICONV=
9844 INCICONV=
9845 rpathdirs=
9846 ltrpathdirs=
9847 names_already_handled=
9848 names_next_round='iconv '
9849 while test -n "$names_next_round"; do
9850 names_this_round="$names_next_round"
9851 names_next_round=
9852 for name in $names_this_round; do
9853 already_handled=
9854 for n in $names_already_handled; do
9855 if test "$n" = "$name"; then
9856 already_handled=yes
9857 break
9859 done
9860 if test -z "$already_handled"; then
9861 names_already_handled="$names_already_handled $name"
9862 uppername=`echo "$name" | sed -e 'y|abcdefghijklmnopqrstuvwxyz./-|ABCDEFGHIJKLMNOPQRSTUVWXYZ___|'`
9863 eval value=\"\$HAVE_LIB$uppername\"
9864 if test -n "$value"; then
9865 if test "$value" = yes; then
9866 eval value=\"\$LIB$uppername\"
9867 test -z "$value" || LIBICONV="${LIBICONV}${LIBICONV:+ }$value"
9868 eval value=\"\$LTLIB$uppername\"
9869 test -z "$value" || LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }$value"
9870 else
9873 else
9874 found_dir=
9875 found_la=
9876 found_so=
9877 found_a=
9878 if test $use_additional = yes; then
9879 if test -n "$shlibext" && test -f "$additional_libdir/lib$name.$shlibext"; then
9880 found_dir="$additional_libdir"
9881 found_so="$additional_libdir/lib$name.$shlibext"
9882 if test -f "$additional_libdir/lib$name.la"; then
9883 found_la="$additional_libdir/lib$name.la"
9885 else
9886 if test -f "$additional_libdir/lib$name.$libext"; then
9887 found_dir="$additional_libdir"
9888 found_a="$additional_libdir/lib$name.$libext"
9889 if test -f "$additional_libdir/lib$name.la"; then
9890 found_la="$additional_libdir/lib$name.la"
9895 if test "X$found_dir" = "X"; then
9896 for x in $LDFLAGS $LTLIBICONV; do
9898 acl_save_prefix="$prefix"
9899 prefix="$acl_final_prefix"
9900 acl_save_exec_prefix="$exec_prefix"
9901 exec_prefix="$acl_final_exec_prefix"
9902 eval x=\"$x\"
9903 exec_prefix="$acl_save_exec_prefix"
9904 prefix="$acl_save_prefix"
9906 case "$x" in
9907 -L*)
9908 dir=`echo "X$x" | sed -e 's/^X-L//'`
9909 if test -n "$shlibext" && test -f "$dir/lib$name.$shlibext"; then
9910 found_dir="$dir"
9911 found_so="$dir/lib$name.$shlibext"
9912 if test -f "$dir/lib$name.la"; then
9913 found_la="$dir/lib$name.la"
9915 else
9916 if test -f "$dir/lib$name.$libext"; then
9917 found_dir="$dir"
9918 found_a="$dir/lib$name.$libext"
9919 if test -f "$dir/lib$name.la"; then
9920 found_la="$dir/lib$name.la"
9925 esac
9926 if test "X$found_dir" != "X"; then
9927 break
9929 done
9931 if test "X$found_dir" != "X"; then
9932 LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-L$found_dir -l$name"
9933 if test "X$found_so" != "X"; then
9934 if test "$enable_rpath" = no || test "X$found_dir" = "X/usr/lib"; then
9935 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
9936 else
9937 haveit=
9938 for x in $ltrpathdirs; do
9939 if test "X$x" = "X$found_dir"; then
9940 haveit=yes
9941 break
9943 done
9944 if test -z "$haveit"; then
9945 ltrpathdirs="$ltrpathdirs $found_dir"
9947 if test "$hardcode_direct" = yes; then
9948 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
9949 else
9950 if test -n "$hardcode_libdir_flag_spec" && test "$hardcode_minus_L" = no; then
9951 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
9952 haveit=
9953 for x in $rpathdirs; do
9954 if test "X$x" = "X$found_dir"; then
9955 haveit=yes
9956 break
9958 done
9959 if test -z "$haveit"; then
9960 rpathdirs="$rpathdirs $found_dir"
9962 else
9963 haveit=
9964 for x in $LDFLAGS $LIBICONV; do
9966 acl_save_prefix="$prefix"
9967 prefix="$acl_final_prefix"
9968 acl_save_exec_prefix="$exec_prefix"
9969 exec_prefix="$acl_final_exec_prefix"
9970 eval x=\"$x\"
9971 exec_prefix="$acl_save_exec_prefix"
9972 prefix="$acl_save_prefix"
9974 if test "X$x" = "X-L$found_dir"; then
9975 haveit=yes
9976 break
9978 done
9979 if test -z "$haveit"; then
9980 LIBICONV="${LIBICONV}${LIBICONV:+ }-L$found_dir"
9982 if test "$hardcode_minus_L" != no; then
9983 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
9984 else
9985 LIBICONV="${LIBICONV}${LIBICONV:+ }-l$name"
9990 else
9991 if test "X$found_a" != "X"; then
9992 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_a"
9993 else
9994 LIBICONV="${LIBICONV}${LIBICONV:+ }-L$found_dir -l$name"
9997 additional_includedir=
9998 case "$found_dir" in
9999 */lib | */lib/)
10000 basedir=`echo "X$found_dir" | sed -e 's,^X,,' -e 's,/lib/*$,,'`
10001 additional_includedir="$basedir/include"
10003 esac
10004 if test "X$additional_includedir" != "X"; then
10005 if test "X$additional_includedir" != "X/usr/include"; then
10006 haveit=
10007 if test "X$additional_includedir" = "X/usr/local/include"; then
10008 if test -n "$GCC"; then
10009 case $host_os in
10010 linux*) haveit=yes;;
10011 esac
10014 if test -z "$haveit"; then
10015 for x in $CPPFLAGS $INCICONV; do
10017 acl_save_prefix="$prefix"
10018 prefix="$acl_final_prefix"
10019 acl_save_exec_prefix="$exec_prefix"
10020 exec_prefix="$acl_final_exec_prefix"
10021 eval x=\"$x\"
10022 exec_prefix="$acl_save_exec_prefix"
10023 prefix="$acl_save_prefix"
10025 if test "X$x" = "X-I$additional_includedir"; then
10026 haveit=yes
10027 break
10029 done
10030 if test -z "$haveit"; then
10031 if test -d "$additional_includedir"; then
10032 INCICONV="${INCICONV}${INCICONV:+ }-I$additional_includedir"
10038 if test -n "$found_la"; then
10039 save_libdir="$libdir"
10040 case "$found_la" in
10041 */* | *\\*) . "$found_la" ;;
10042 *) . "./$found_la" ;;
10043 esac
10044 libdir="$save_libdir"
10045 for dep in $dependency_libs; do
10046 case "$dep" in
10047 -L*)
10048 additional_libdir=`echo "X$dep" | sed -e 's/^X-L//'`
10049 if test "X$additional_libdir" != "X/usr/lib"; then
10050 haveit=
10051 if test "X$additional_libdir" = "X/usr/local/lib"; then
10052 if test -n "$GCC"; then
10053 case $host_os in
10054 linux*) haveit=yes;;
10055 esac
10058 if test -z "$haveit"; then
10059 haveit=
10060 for x in $LDFLAGS $LIBICONV; do
10062 acl_save_prefix="$prefix"
10063 prefix="$acl_final_prefix"
10064 acl_save_exec_prefix="$exec_prefix"
10065 exec_prefix="$acl_final_exec_prefix"
10066 eval x=\"$x\"
10067 exec_prefix="$acl_save_exec_prefix"
10068 prefix="$acl_save_prefix"
10070 if test "X$x" = "X-L$additional_libdir"; then
10071 haveit=yes
10072 break
10074 done
10075 if test -z "$haveit"; then
10076 if test -d "$additional_libdir"; then
10077 LIBICONV="${LIBICONV}${LIBICONV:+ }-L$additional_libdir"
10080 haveit=
10081 for x in $LDFLAGS $LTLIBICONV; do
10083 acl_save_prefix="$prefix"
10084 prefix="$acl_final_prefix"
10085 acl_save_exec_prefix="$exec_prefix"
10086 exec_prefix="$acl_final_exec_prefix"
10087 eval x=\"$x\"
10088 exec_prefix="$acl_save_exec_prefix"
10089 prefix="$acl_save_prefix"
10091 if test "X$x" = "X-L$additional_libdir"; then
10092 haveit=yes
10093 break
10095 done
10096 if test -z "$haveit"; then
10097 if test -d "$additional_libdir"; then
10098 LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-L$additional_libdir"
10104 -R*)
10105 dir=`echo "X$dep" | sed -e 's/^X-R//'`
10106 if test "$enable_rpath" != no; then
10107 haveit=
10108 for x in $rpathdirs; do
10109 if test "X$x" = "X$dir"; then
10110 haveit=yes
10111 break
10113 done
10114 if test -z "$haveit"; then
10115 rpathdirs="$rpathdirs $dir"
10117 haveit=
10118 for x in $ltrpathdirs; do
10119 if test "X$x" = "X$dir"; then
10120 haveit=yes
10121 break
10123 done
10124 if test -z "$haveit"; then
10125 ltrpathdirs="$ltrpathdirs $dir"
10129 -l*)
10130 names_next_round="$names_next_round "`echo "X$dep" | sed -e 's/^X-l//'`
10132 *.la)
10133 names_next_round="$names_next_round "`echo "X$dep" | sed -e 's,^X.*/,,' -e 's,^lib,,' -e 's,\.la$,,'`
10136 LIBICONV="${LIBICONV}${LIBICONV:+ }$dep"
10137 LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }$dep"
10139 esac
10140 done
10142 else
10143 LIBICONV="${LIBICONV}${LIBICONV:+ }-l$name"
10144 LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-l$name"
10148 done
10149 done
10150 if test "X$rpathdirs" != "X"; then
10151 if test -n "$hardcode_libdir_separator"; then
10152 alldirs=
10153 for found_dir in $rpathdirs; do
10154 alldirs="${alldirs}${alldirs:+$hardcode_libdir_separator}$found_dir"
10155 done
10156 acl_save_libdir="$libdir"
10157 libdir="$alldirs"
10158 eval flag=\"$hardcode_libdir_flag_spec\"
10159 libdir="$acl_save_libdir"
10160 LIBICONV="${LIBICONV}${LIBICONV:+ }$flag"
10161 else
10162 for found_dir in $rpathdirs; do
10163 acl_save_libdir="$libdir"
10164 libdir="$found_dir"
10165 eval flag=\"$hardcode_libdir_flag_spec\"
10166 libdir="$acl_save_libdir"
10167 LIBICONV="${LIBICONV}${LIBICONV:+ }$flag"
10168 done
10171 if test "X$ltrpathdirs" != "X"; then
10172 for found_dir in $ltrpathdirs; do
10173 LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-R$found_dir"
10174 done
10183 am_save_CPPFLAGS="$CPPFLAGS"
10185 for element in $INCICONV; do
10186 haveit=
10187 for x in $CPPFLAGS; do
10189 acl_save_prefix="$prefix"
10190 prefix="$acl_final_prefix"
10191 acl_save_exec_prefix="$exec_prefix"
10192 exec_prefix="$acl_final_exec_prefix"
10193 eval x=\"$x\"
10194 exec_prefix="$acl_save_exec_prefix"
10195 prefix="$acl_save_prefix"
10197 if test "X$x" = "X$element"; then
10198 haveit=yes
10199 break
10201 done
10202 if test -z "$haveit"; then
10203 CPPFLAGS="${CPPFLAGS}${CPPFLAGS:+ }$element"
10205 done
10208 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for iconv" >&5
10209 $as_echo_n "checking for iconv... " >&6; }
10210 if test "${am_cv_func_iconv+set}" = set; then :
10211 $as_echo_n "(cached) " >&6
10212 else
10214 am_cv_func_iconv="no, consider installing GNU libiconv"
10215 am_cv_lib_iconv=no
10216 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10217 /* end confdefs.h. */
10218 #include <stdlib.h>
10219 #include <iconv.h>
10221 main ()
10223 iconv_t cd = iconv_open("","");
10224 iconv(cd,NULL,NULL,NULL,NULL);
10225 iconv_close(cd);
10227 return 0;
10229 _ACEOF
10230 if ac_fn_cxx_try_link "$LINENO"; then :
10231 am_cv_func_iconv=yes
10233 rm -f core conftest.err conftest.$ac_objext \
10234 conftest$ac_exeext conftest.$ac_ext
10235 if test "$am_cv_func_iconv" != yes; then
10236 am_save_LIBS="$LIBS"
10237 LIBS="$LIBS $LIBICONV"
10238 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10239 /* end confdefs.h. */
10240 #include <stdlib.h>
10241 #include <iconv.h>
10243 main ()
10245 iconv_t cd = iconv_open("","");
10246 iconv(cd,NULL,NULL,NULL,NULL);
10247 iconv_close(cd);
10249 return 0;
10251 _ACEOF
10252 if ac_fn_cxx_try_link "$LINENO"; then :
10253 am_cv_lib_iconv=yes
10254 am_cv_func_iconv=yes
10256 rm -f core conftest.err conftest.$ac_objext \
10257 conftest$ac_exeext conftest.$ac_ext
10258 LIBS="$am_save_LIBS"
10262 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_func_iconv" >&5
10263 $as_echo "$am_cv_func_iconv" >&6; }
10264 if test "$am_cv_func_iconv" = yes; then
10266 $as_echo "#define HAVE_ICONV 1" >>confdefs.h
10269 if test "$am_cv_lib_iconv" = yes; then
10270 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to link with libiconv" >&5
10271 $as_echo_n "checking how to link with libiconv... " >&6; }
10272 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIBICONV" >&5
10273 $as_echo "$LIBICONV" >&6; }
10274 else
10275 CPPFLAGS="$am_save_CPPFLAGS"
10276 LIBICONV=
10277 LTLIBICONV=
10282 if test "$am_cv_func_iconv" = yes; then
10283 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for iconv declaration" >&5
10284 $as_echo_n "checking for iconv declaration... " >&6; }
10285 if test "${am_cv_proto_iconv+set}" = set; then :
10286 $as_echo_n "(cached) " >&6
10287 else
10289 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10290 /* end confdefs.h. */
10292 #include <stdlib.h>
10293 #include <iconv.h>
10294 extern
10295 #ifdef __cplusplus
10297 #endif
10298 #if defined(__STDC__) || defined(__cplusplus)
10299 size_t iconv (iconv_t cd, char * *inbuf, size_t *inbytesleft, char * *outbuf, size_t *outbytesleft);
10300 #else
10301 size_t iconv();
10302 #endif
10305 main ()
10309 return 0;
10311 _ACEOF
10312 if ac_fn_cxx_try_compile "$LINENO"; then :
10313 am_cv_proto_iconv_arg1=""
10314 else
10315 am_cv_proto_iconv_arg1="const"
10317 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10318 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);"
10321 am_cv_proto_iconv=`echo "$am_cv_proto_iconv" | tr -s ' ' | sed -e 's/( /(/'`
10322 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${ac_t:-
10323 }$am_cv_proto_iconv" >&5
10324 $as_echo "${ac_t:-
10325 }$am_cv_proto_iconv" >&6; }
10327 cat >>confdefs.h <<_ACEOF
10328 #define ICONV_CONST $am_cv_proto_iconv_arg1
10329 _ACEOF
10333 ac_ext=c
10334 ac_cpp='$CPP $CPPFLAGS'
10335 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
10336 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
10337 ac_compiler_gnu=$ac_cv_c_compiler_gnu
10340 # Until we have in-tree GNU iconv:
10341 LIBICONV_DEP=
10345 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for LC_MESSAGES" >&5
10346 $as_echo_n "checking for LC_MESSAGES... " >&6; }
10347 if test "${am_cv_val_LC_MESSAGES+set}" = set; then :
10348 $as_echo_n "(cached) " >&6
10349 else
10350 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10351 /* end confdefs.h. */
10352 #include <locale.h>
10354 main ()
10356 return LC_MESSAGES
10358 return 0;
10360 _ACEOF
10361 if ac_fn_c_try_link "$LINENO"; then :
10362 am_cv_val_LC_MESSAGES=yes
10363 else
10364 am_cv_val_LC_MESSAGES=no
10366 rm -f core conftest.err conftest.$ac_objext \
10367 conftest$ac_exeext conftest.$ac_ext
10369 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_val_LC_MESSAGES" >&5
10370 $as_echo "$am_cv_val_LC_MESSAGES" >&6; }
10371 if test $am_cv_val_LC_MESSAGES = yes; then
10373 $as_echo "#define HAVE_LC_MESSAGES 1" >>confdefs.h
10379 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for nl_langinfo and CODESET" >&5
10380 $as_echo_n "checking for nl_langinfo and CODESET... " >&6; }
10381 if test "${am_cv_langinfo_codeset+set}" = set; then :
10382 $as_echo_n "(cached) " >&6
10383 else
10384 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10385 /* end confdefs.h. */
10386 #include <langinfo.h>
10388 main ()
10390 char* cs = nl_langinfo(CODESET);
10392 return 0;
10394 _ACEOF
10395 if ac_fn_c_try_link "$LINENO"; then :
10396 am_cv_langinfo_codeset=yes
10397 else
10398 am_cv_langinfo_codeset=no
10400 rm -f core conftest.err conftest.$ac_objext \
10401 conftest$ac_exeext conftest.$ac_ext
10404 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_langinfo_codeset" >&5
10405 $as_echo "$am_cv_langinfo_codeset" >&6; }
10406 if test $am_cv_langinfo_codeset = yes; then
10408 $as_echo "#define HAVE_LANGINFO_CODESET 1" >>confdefs.h
10413 # We will need to find libiberty.h and ansidecl.h
10414 saved_CFLAGS="$CFLAGS"
10415 CFLAGS="$CFLAGS -I${srcdir} -I${srcdir}/../include $GMPINC"
10416 saved_CXXFLAGS="$CXXFLAGS"
10417 CXXFLAGS="$CXXFLAGS -I${srcdir} -I${srcdir}/../include $GMPINC"
10418 for ac_func in getenv atol asprintf sbrk abort atof getcwd getwd \
10419 strsignal strstr stpcpy strverscmp \
10420 errno snprintf vsnprintf vasprintf malloc realloc calloc \
10421 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
10423 ac_tr_decl=`$as_echo "HAVE_DECL_$ac_func" | $as_tr_cpp`
10424 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $ac_func is declared" >&5
10425 $as_echo_n "checking whether $ac_func is declared... " >&6; }
10426 if { as_var=gcc_cv_have_decl_$ac_func; eval "test \"\${$as_var+set}\" = set"; }; then :
10427 $as_echo_n "(cached) " >&6
10428 else
10429 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10430 /* end confdefs.h. */
10431 #undef $ac_tr_decl
10432 #define $ac_tr_decl 1
10434 #include "ansidecl.h"
10435 #include "system.h"
10438 main ()
10440 #ifndef $ac_func
10441 char *(*pfn) = (char *(*)) $ac_func ;
10442 #endif
10444 return 0;
10446 _ACEOF
10447 if ac_fn_c_try_compile "$LINENO"; then :
10448 eval "gcc_cv_have_decl_$ac_func=yes"
10449 else
10450 eval "gcc_cv_have_decl_$ac_func=no"
10452 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10455 if eval "test \"`echo '$gcc_cv_have_decl_'$ac_func`\" = yes"; then
10456 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
10457 $as_echo "yes" >&6; } ; cat >>confdefs.h <<_ACEOF
10458 #define $ac_tr_decl 1
10459 _ACEOF
10461 else
10462 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10463 $as_echo "no" >&6; } ; cat >>confdefs.h <<_ACEOF
10464 #define $ac_tr_decl 0
10465 _ACEOF
10469 done
10472 for ac_func in getrlimit setrlimit getrusage
10474 ac_tr_decl=`$as_echo "HAVE_DECL_$ac_func" | $as_tr_cpp`
10475 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $ac_func is declared" >&5
10476 $as_echo_n "checking whether $ac_func is declared... " >&6; }
10477 if { as_var=gcc_cv_have_decl_$ac_func; eval "test \"\${$as_var+set}\" = set"; }; then :
10478 $as_echo_n "(cached) " >&6
10479 else
10480 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10481 /* end confdefs.h. */
10482 #undef $ac_tr_decl
10483 #define $ac_tr_decl 1
10485 #include "ansidecl.h"
10486 #include "system.h"
10487 #ifdef HAVE_SYS_RESOURCE_H
10488 #include <sys/resource.h>
10489 #endif
10493 main ()
10495 #ifndef $ac_func
10496 char *(*pfn) = (char *(*)) $ac_func ;
10497 #endif
10499 return 0;
10501 _ACEOF
10502 if ac_fn_c_try_compile "$LINENO"; then :
10503 eval "gcc_cv_have_decl_$ac_func=yes"
10504 else
10505 eval "gcc_cv_have_decl_$ac_func=no"
10507 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10510 if eval "test \"`echo '$gcc_cv_have_decl_'$ac_func`\" = yes"; then
10511 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
10512 $as_echo "yes" >&6; } ; cat >>confdefs.h <<_ACEOF
10513 #define $ac_tr_decl 1
10514 _ACEOF
10516 else
10517 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10518 $as_echo "no" >&6; } ; cat >>confdefs.h <<_ACEOF
10519 #define $ac_tr_decl 0
10520 _ACEOF
10524 done
10527 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10528 /* end confdefs.h. */
10530 #include "ansidecl.h"
10531 #include "system.h"
10532 #ifdef HAVE_SYS_RESOURCE_H
10533 #include <sys/resource.h>
10534 #endif
10537 main ()
10539 rlim_t l = 0;
10541 return 0;
10543 _ACEOF
10544 if ac_fn_c_try_compile "$LINENO"; then :
10546 else
10548 $as_echo "#define rlim_t long" >>confdefs.h
10551 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10553 # On AIX 5.2, <ldfcn.h> conflicts with <fcntl.h>, as both define incompatible
10554 # FREAD and FWRITE macros. Fortunately, for GCC's single usage of ldgetname
10555 # in collect2.c, <fcntl.h> isn't visible, but the configure test below needs
10556 # to undef these macros to get the correct value for HAVE_DECL_LDGETNAME.
10557 for ac_func in ldgetname
10559 ac_tr_decl=`$as_echo "HAVE_DECL_$ac_func" | $as_tr_cpp`
10560 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $ac_func is declared" >&5
10561 $as_echo_n "checking whether $ac_func is declared... " >&6; }
10562 if { as_var=gcc_cv_have_decl_$ac_func; eval "test \"\${$as_var+set}\" = set"; }; then :
10563 $as_echo_n "(cached) " >&6
10564 else
10565 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10566 /* end confdefs.h. */
10567 #undef $ac_tr_decl
10568 #define $ac_tr_decl 1
10570 #include "ansidecl.h"
10571 #include "system.h"
10572 #ifdef HAVE_LDFCN_H
10573 #undef FREAD
10574 #undef FWRITE
10575 #include <ldfcn.h>
10576 #endif
10580 main ()
10582 #ifndef $ac_func
10583 char *(*pfn) = (char *(*)) $ac_func ;
10584 #endif
10586 return 0;
10588 _ACEOF
10589 if ac_fn_c_try_compile "$LINENO"; then :
10590 eval "gcc_cv_have_decl_$ac_func=yes"
10591 else
10592 eval "gcc_cv_have_decl_$ac_func=no"
10594 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10597 if eval "test \"`echo '$gcc_cv_have_decl_'$ac_func`\" = yes"; then
10598 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
10599 $as_echo "yes" >&6; } ; cat >>confdefs.h <<_ACEOF
10600 #define $ac_tr_decl 1
10601 _ACEOF
10603 else
10604 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10605 $as_echo "no" >&6; } ; cat >>confdefs.h <<_ACEOF
10606 #define $ac_tr_decl 0
10607 _ACEOF
10611 done
10614 for ac_func in times
10616 ac_tr_decl=`$as_echo "HAVE_DECL_$ac_func" | $as_tr_cpp`
10617 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $ac_func is declared" >&5
10618 $as_echo_n "checking whether $ac_func is declared... " >&6; }
10619 if { as_var=gcc_cv_have_decl_$ac_func; eval "test \"\${$as_var+set}\" = set"; }; then :
10620 $as_echo_n "(cached) " >&6
10621 else
10622 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10623 /* end confdefs.h. */
10624 #undef $ac_tr_decl
10625 #define $ac_tr_decl 1
10627 #include "ansidecl.h"
10628 #include "system.h"
10629 #ifdef HAVE_SYS_TIMES_H
10630 #include <sys/times.h>
10631 #endif
10635 main ()
10637 #ifndef $ac_func
10638 char *(*pfn) = (char *(*)) $ac_func ;
10639 #endif
10641 return 0;
10643 _ACEOF
10644 if ac_fn_c_try_compile "$LINENO"; then :
10645 eval "gcc_cv_have_decl_$ac_func=yes"
10646 else
10647 eval "gcc_cv_have_decl_$ac_func=no"
10649 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10652 if eval "test \"`echo '$gcc_cv_have_decl_'$ac_func`\" = yes"; then
10653 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
10654 $as_echo "yes" >&6; } ; cat >>confdefs.h <<_ACEOF
10655 #define $ac_tr_decl 1
10656 _ACEOF
10658 else
10659 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10660 $as_echo "no" >&6; } ; cat >>confdefs.h <<_ACEOF
10661 #define $ac_tr_decl 0
10662 _ACEOF
10666 done
10669 for ac_func in sigaltstack
10671 ac_tr_decl=`$as_echo "HAVE_DECL_$ac_func" | $as_tr_cpp`
10672 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $ac_func is declared" >&5
10673 $as_echo_n "checking whether $ac_func is declared... " >&6; }
10674 if { as_var=gcc_cv_have_decl_$ac_func; eval "test \"\${$as_var+set}\" = set"; }; then :
10675 $as_echo_n "(cached) " >&6
10676 else
10677 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10678 /* end confdefs.h. */
10679 #undef $ac_tr_decl
10680 #define $ac_tr_decl 1
10682 #include "ansidecl.h"
10683 #include "system.h"
10684 #include <signal.h>
10688 main ()
10690 #ifndef $ac_func
10691 char *(*pfn) = (char *(*)) $ac_func ;
10692 #endif
10694 return 0;
10696 _ACEOF
10697 if ac_fn_c_try_compile "$LINENO"; then :
10698 eval "gcc_cv_have_decl_$ac_func=yes"
10699 else
10700 eval "gcc_cv_have_decl_$ac_func=no"
10702 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10705 if eval "test \"`echo '$gcc_cv_have_decl_'$ac_func`\" = yes"; then
10706 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
10707 $as_echo "yes" >&6; } ; cat >>confdefs.h <<_ACEOF
10708 #define $ac_tr_decl 1
10709 _ACEOF
10711 else
10712 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10713 $as_echo "no" >&6; } ; cat >>confdefs.h <<_ACEOF
10714 #define $ac_tr_decl 0
10715 _ACEOF
10719 done
10722 # g++ on Solaris 10+ defines _XOPEN_SOURCE=600, which hides the madvise()
10723 # prototype.
10724 ac_ext=cpp
10725 ac_cpp='$CXXCPP $CPPFLAGS'
10726 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
10727 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
10728 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
10730 for ac_func in madvise
10732 ac_tr_decl=`$as_echo "HAVE_DECL_$ac_func" | $as_tr_cpp`
10733 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $ac_func is declared" >&5
10734 $as_echo_n "checking whether $ac_func is declared... " >&6; }
10735 if { as_var=gcc_cv_have_decl_$ac_func; eval "test \"\${$as_var+set}\" = set"; }; then :
10736 $as_echo_n "(cached) " >&6
10737 else
10738 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10739 /* end confdefs.h. */
10740 #undef $ac_tr_decl
10741 #define $ac_tr_decl 1
10743 #include "ansidecl.h"
10744 #include "system.h"
10748 main ()
10750 #ifndef $ac_func
10751 char *(*pfn) = (char *(*)) $ac_func ;
10752 #endif
10754 return 0;
10756 _ACEOF
10757 if ac_fn_cxx_try_compile "$LINENO"; then :
10758 eval "gcc_cv_have_decl_$ac_func=yes"
10759 else
10760 eval "gcc_cv_have_decl_$ac_func=no"
10762 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10765 if eval "test \"`echo '$gcc_cv_have_decl_'$ac_func`\" = yes"; then
10766 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
10767 $as_echo "yes" >&6; } ; cat >>confdefs.h <<_ACEOF
10768 #define $ac_tr_decl 1
10769 _ACEOF
10771 else
10772 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10773 $as_echo "no" >&6; } ; cat >>confdefs.h <<_ACEOF
10774 #define $ac_tr_decl 0
10775 _ACEOF
10779 done
10781 ac_ext=c
10782 ac_cpp='$CPP $CPPFLAGS'
10783 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
10784 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
10785 ac_compiler_gnu=$ac_cv_c_compiler_gnu
10788 # More time-related stuff.
10789 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for struct tms" >&5
10790 $as_echo_n "checking for struct tms... " >&6; }
10791 if test "${ac_cv_struct_tms+set}" = set; then :
10792 $as_echo_n "(cached) " >&6
10793 else
10795 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10796 /* end confdefs.h. */
10798 #include "ansidecl.h"
10799 #include "system.h"
10800 #ifdef HAVE_SYS_TIMES_H
10801 #include <sys/times.h>
10802 #endif
10805 main ()
10807 struct tms tms;
10809 return 0;
10811 _ACEOF
10812 if ac_fn_c_try_compile "$LINENO"; then :
10813 ac_cv_struct_tms=yes
10814 else
10815 ac_cv_struct_tms=no
10817 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10819 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_struct_tms" >&5
10820 $as_echo "$ac_cv_struct_tms" >&6; }
10821 if test $ac_cv_struct_tms = yes; then
10823 $as_echo "#define HAVE_STRUCT_TMS 1" >>confdefs.h
10827 # use gcc_cv_* here because this doesn't match the behavior of AC_CHECK_TYPE.
10828 # revisit after autoconf 2.50.
10829 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for clock_t" >&5
10830 $as_echo_n "checking for clock_t... " >&6; }
10831 if test "${gcc_cv_type_clock_t+set}" = set; then :
10832 $as_echo_n "(cached) " >&6
10833 else
10835 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10836 /* end confdefs.h. */
10838 #include "ansidecl.h"
10839 #include "system.h"
10842 main ()
10844 clock_t x;
10846 return 0;
10848 _ACEOF
10849 if ac_fn_c_try_compile "$LINENO"; then :
10850 gcc_cv_type_clock_t=yes
10851 else
10852 gcc_cv_type_clock_t=no
10854 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10856 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_type_clock_t" >&5
10857 $as_echo "$gcc_cv_type_clock_t" >&6; }
10858 if test $gcc_cv_type_clock_t = yes; then
10860 $as_echo "#define HAVE_CLOCK_T 1" >>confdefs.h
10864 # Check if F_SETLKW is supported by fcntl.
10865 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for F_SETLKW" >&5
10866 $as_echo_n "checking for F_SETLKW... " >&6; }
10867 if test "${ac_cv_f_setlkw+set}" = set; then :
10868 $as_echo_n "(cached) " >&6
10869 else
10871 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10872 /* end confdefs.h. */
10874 #include <fcntl.h>
10876 main ()
10879 struct flock fl;
10880 fl.l_whence = 0;
10881 fl.l_start = 0;
10882 fl.l_len = 0;
10883 fl.l_pid = 0;
10884 return fcntl (1, F_SETLKW, &fl);
10886 return 0;
10888 _ACEOF
10889 if ac_fn_c_try_compile "$LINENO"; then :
10890 ac_cv_f_setlkw=yes
10891 else
10892 ac_cv_f_setlkw=no
10894 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10896 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_f_setlkw" >&5
10897 $as_echo "$ac_cv_f_setlkw" >&6; }
10898 if test $ac_cv_f_setlkw = yes; then
10900 $as_echo "#define HOST_HAS_F_SETLKW 1" >>confdefs.h
10904 # Restore CFLAGS, CXXFLAGS from before the gcc_AC_NEED_DECLARATIONS tests.
10905 CFLAGS="$saved_CFLAGS"
10906 CXXFLAGS="$saved_CXXFLAGS"
10908 # mkdir takes a single argument on some systems.
10909 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if mkdir takes one argument" >&5
10910 $as_echo_n "checking if mkdir takes one argument... " >&6; }
10911 if test "${gcc_cv_mkdir_takes_one_arg+set}" = set; then :
10912 $as_echo_n "(cached) " >&6
10913 else
10914 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10915 /* end confdefs.h. */
10917 #include <sys/types.h>
10918 #ifdef HAVE_SYS_STAT_H
10919 # include <sys/stat.h>
10920 #endif
10921 #ifdef HAVE_UNISTD_H
10922 # include <unistd.h>
10923 #endif
10924 #ifdef HAVE_DIRECT_H
10925 # include <direct.h>
10926 #endif
10928 main ()
10930 mkdir ("foo", 0);
10932 return 0;
10934 _ACEOF
10935 if ac_fn_c_try_compile "$LINENO"; then :
10936 gcc_cv_mkdir_takes_one_arg=no
10937 else
10938 gcc_cv_mkdir_takes_one_arg=yes
10940 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10942 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_mkdir_takes_one_arg" >&5
10943 $as_echo "$gcc_cv_mkdir_takes_one_arg" >&6; }
10944 if test $gcc_cv_mkdir_takes_one_arg = yes ; then
10946 $as_echo "#define MKDIR_TAKES_ONE_ARG 1" >>confdefs.h
10951 # File extensions
10952 manext='.1'
10953 objext='.o'
10957 # With Setjmp/Longjmp based exception handling.
10958 # Check whether --enable-sjlj-exceptions was given.
10959 if test "${enable_sjlj_exceptions+set}" = set; then :
10960 enableval=$enable_sjlj_exceptions; case $target in
10961 *-*-hpux10*)
10962 if test $enableval != yes; then
10963 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: dwarf2 exceptions not supported, sjlj exceptions forced" >&5
10964 $as_echo "$as_me: WARNING: dwarf2 exceptions not supported, sjlj exceptions forced" >&2;}
10965 enableval=yes
10968 esac
10969 force_sjlj_exceptions=yes
10970 else
10971 case $target in
10972 *-*-hpux10*)
10973 force_sjlj_exceptions=yes
10974 enableval=yes
10977 force_sjlj_exceptions=no
10979 esac
10982 if test $force_sjlj_exceptions = yes; then
10983 sjlj=`if test $enableval = yes; then echo 1; else echo 0; fi`
10985 cat >>confdefs.h <<_ACEOF
10986 #define CONFIG_SJLJ_EXCEPTIONS $sjlj
10987 _ACEOF
10991 # --------------------------------------------------------
10992 # Build, host, and target specific configuration fragments
10993 # --------------------------------------------------------
10995 # Collect build-machine-specific information.
10996 . ${srcdir}/config.build
10998 # Collect host-machine-specific information.
10999 . ${srcdir}/config.host
11001 target_gtfiles=
11003 # Collect target-machine-specific information.
11004 . ${srcdir}/config.gcc
11006 extra_objs="${host_extra_objs} ${extra_objs}"
11007 extra_gcc_objs="${host_extra_gcc_objs} ${extra_gcc_objs}"
11009 # Default the target-machine variables that were not explicitly set.
11010 if test x"$tm_file" = x
11011 then tm_file=$cpu_type/$cpu_type.h; fi
11013 if test x"$extra_headers" = x
11014 then extra_headers=; fi
11016 if test x$md_file = x
11017 then md_file=$cpu_type/$cpu_type.md; fi
11019 if test x$out_file = x
11020 then out_file=$cpu_type/$cpu_type.c; fi
11022 if test x"$tmake_file" = x
11023 then tmake_file=$cpu_type/t-$cpu_type
11026 # Support --enable-initfini-array.
11027 if test x$enable_initfini_array != xno; then
11028 tm_file="${tm_file} initfini-array.h"
11031 if test x"$dwarf2" = xyes
11032 then tm_file="$tm_file tm-dwarf2.h"
11035 # Say what files are being used for the output code and MD file.
11036 echo "Using \`$srcdir/config/$out_file' for machine-specific logic."
11037 echo "Using \`$srcdir/config/$md_file' as machine description file."
11039 # If any of the xm_file variables contain nonexistent files, warn
11040 # about them and drop them.
11043 for x in $build_xm_file; do
11044 if test -f $srcdir/config/$x
11045 then bx="$bx $x"
11046 else { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $srcdir/config/$x does not exist." >&5
11047 $as_echo "$as_me: WARNING: $srcdir/config/$x does not exist." >&2;}
11049 done
11050 build_xm_file="$bx"
11053 for x in $host_xm_file; do
11054 if test -f $srcdir/config/$x
11055 then hx="$hx $x"
11056 else { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $srcdir/config/$x does not exist." >&5
11057 $as_echo "$as_me: WARNING: $srcdir/config/$x does not exist." >&2;}
11059 done
11060 host_xm_file="$hx"
11063 for x in $xm_file; do
11064 if test -f $srcdir/config/$x
11065 then tx="$tx $x"
11066 else { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $srcdir/config/$x does not exist." >&5
11067 $as_echo "$as_me: WARNING: $srcdir/config/$x does not exist." >&2;}
11069 done
11070 xm_file="$tx"
11072 count=a
11073 for f in $tm_file; do
11074 count=${count}x
11075 done
11076 if test $count = ax; then
11077 echo "Using \`$srcdir/config/$tm_file' as target machine macro file."
11078 else
11079 echo "Using the following target machine macro files:"
11080 for f in $tm_file; do
11081 echo " $srcdir/config/$f"
11082 done
11085 if test x$need_64bit_hwint = xyes; then
11087 $as_echo "#define NEED_64BIT_HOST_WIDE_INT 1" >>confdefs.h
11091 if test x$use_long_long_for_widest_fast_int = xyes; then
11093 $as_echo "#define USE_LONG_LONG_FOR_WIDEST_FAST_INT 1" >>confdefs.h
11097 gnu_ld_bool=`if test x"$gnu_ld" = x"yes"; then echo 1; else echo 0; fi`
11099 cat >>confdefs.h <<_ACEOF
11100 #define HAVE_GNU_LD $gnu_ld_bool
11101 _ACEOF
11104 gnu_as_bool=`if test x"$gas" = x"yes"; then echo 1; else echo 0; fi`
11106 cat >>confdefs.h <<_ACEOF
11107 #define HAVE_GNU_AS $gnu_as_bool
11108 _ACEOF
11111 count=a
11112 for f in $host_xm_file; do
11113 count=${count}x
11114 done
11115 if test $count = a; then
11117 elif test $count = ax; then
11118 echo "Using \`$srcdir/config/$host_xm_file' as host machine macro file."
11119 else
11120 echo "Using the following host machine macro files:"
11121 for f in $host_xm_file; do
11122 echo " $srcdir/config/$f"
11123 done
11125 echo "Using ${out_host_hook_obj} for host machine hooks."
11127 if test "$host_xm_file" != "$build_xm_file"; then
11128 count=a
11129 for f in $build_xm_file; do
11130 count=${count}x
11131 done
11132 if test $count = a; then
11134 elif test $count = ax; then
11135 echo "Using \`$srcdir/config/$build_xm_file' as build machine macro file."
11136 else
11137 echo "Using the following build machine macro files:"
11138 for f in $build_xm_file; do
11139 echo " $srcdir/config/$f"
11140 done
11144 if test -n "$configured_native_system_header_dir"; then
11145 native_system_header_dir=$configured_native_system_header_dir
11147 NATIVE_SYSTEM_HEADER_DIR="$native_system_header_dir"
11150 case ${host} in
11151 powerpc*-*-darwin*)
11152 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether mcontext_t fields have underscores" >&5
11153 $as_echo_n "checking whether mcontext_t fields have underscores... " >&6; }
11154 if test "${gcc_cv_mcontext_underscores+set}" = set; then :
11155 $as_echo_n "(cached) " >&6
11156 else
11157 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11158 /* end confdefs.h. */
11160 #include <sys/cdefs.h>
11161 #include <sys/signal.h>
11162 #include <ucontext.h>
11163 int main() { mcontext_t m; if (m->ss.srr0) return 0; return 0; }
11165 _ACEOF
11166 if ac_fn_c_try_compile "$LINENO"; then :
11167 gcc_cv_mcontext_underscores=no
11168 else
11169 gcc_cv_mcontext_underscores=yes
11171 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11173 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_mcontext_underscores" >&5
11174 $as_echo "$gcc_cv_mcontext_underscores" >&6; }
11175 if test $gcc_cv_mcontext_underscores = yes; then
11177 $as_echo "#define HAS_MCONTEXT_T_UNDERSCORES /**/" >>confdefs.h
11181 esac
11183 # ---------
11184 # Threading
11185 # ---------
11187 # Check if a valid thread package
11188 case ${enable_threads} in
11189 "" | no)
11190 # No threads
11191 target_thread_file='single'
11193 yes)
11194 # default
11195 target_thread_file='single'
11197 aix | dce | lynx | mipssde | posix | rtems | \
11198 single | tpf | vxworks | win32)
11199 target_thread_file=${enable_threads}
11202 echo "${enable_threads} is an unknown thread package" 1>&2
11203 exit 1
11205 esac
11207 if test x${thread_file} = x; then
11208 # No thread file set by target-specific clauses in config.gcc,
11209 # so use file chosen by default logic above
11210 thread_file=${target_thread_file}
11213 # --------
11214 # UNSORTED
11215 # --------
11217 use_cxa_atexit=no
11218 if test x$enable___cxa_atexit = xyes || \
11219 test x$enable___cxa_atexit = x -a x$default_use_cxa_atexit = xyes; then
11220 if test x$host = x$target; then
11221 case $host in
11222 # mingw32 doesn't have __cxa_atexit but uses atexit registration
11223 # keyed to flag_use_cxa_atexit
11224 *-*-mingw32*)
11225 use_cxa_atexit=yes
11227 powerpc-ibm-aix*)
11228 use_cxa_atexit=yes
11231 ac_fn_c_check_func "$LINENO" "__cxa_atexit" "ac_cv_func___cxa_atexit"
11232 if test "x$ac_cv_func___cxa_atexit" = x""yes; then :
11233 use_cxa_atexit=yes
11234 else
11235 echo "__cxa_atexit can't be enabled on this target"
11239 esac
11240 else
11241 # We can't check for __cxa_atexit when building a cross, so assume
11242 # it is available
11243 use_cxa_atexit=yes
11245 if test x$use_cxa_atexit = xyes; then
11247 $as_echo "#define DEFAULT_USE_CXA_ATEXIT 2" >>confdefs.h
11252 # Look for a file containing extra machine modes.
11253 if test -n "$extra_modes" && test -f $srcdir/config/$extra_modes; then
11254 extra_modes_file='$(srcdir)'/config/${extra_modes}
11257 cat >>confdefs.h <<_ACEOF
11258 #define EXTRA_MODES_FILE "config/$extra_modes"
11259 _ACEOF
11263 # Convert extra_options into a form suitable for Makefile use.
11264 extra_opt_files=
11265 all_opt_files=
11266 for f in $extra_options; do
11267 extra_opt_files="$extra_opt_files \$(srcdir)/config/$f"
11268 all_opt_files="$all_opt_files $srcdir/config/$f"
11269 done
11272 # auto-host.h is the file containing items generated by autoconf and is
11273 # the first file included by config.h.
11274 # If host=build, it is correct to have bconfig include auto-host.h
11275 # as well. If host!=build, we are in error and need to do more
11276 # work to find out the build config parameters.
11277 if test x$host = x$build
11278 then
11279 build_auto=auto-host.h
11280 else
11281 # We create a subdir, then run autoconf in the subdir.
11282 # To prevent recursion we set host and build for the new
11283 # invocation of configure to the build for this invocation
11284 # of configure.
11285 tempdir=build.$$
11286 rm -rf $tempdir
11287 mkdir $tempdir
11288 cd $tempdir
11289 case ${srcdir} in
11290 /* | A-Za-z:\\/* ) realsrcdir=${srcdir};;
11291 *) realsrcdir=../${srcdir};;
11292 esac
11293 saved_CFLAGS="${CFLAGS}"
11294 CC="${CC_FOR_BUILD}" CFLAGS="${CFLAGS_FOR_BUILD}" \
11295 LDFLAGS="${LDFLAGS_FOR_BUILD}" \
11296 ${realsrcdir}/configure \
11297 --enable-languages=${enable_languages-all} \
11298 --target=$target_alias --host=$build_alias --build=$build_alias
11299 CFLAGS="${saved_CFLAGS}"
11301 # We just finished tests for the build machine, so rename
11302 # the file auto-build.h in the gcc directory.
11303 mv auto-host.h ../auto-build.h
11304 cd ..
11305 rm -rf $tempdir
11306 build_auto=auto-build.h
11310 tm_file="${tm_file} defaults.h"
11311 tm_p_file="${tm_p_file} tm-preds.h"
11312 host_xm_file="auto-host.h ansidecl.h ${host_xm_file}"
11313 build_xm_file="${build_auto} ansidecl.h ${build_xm_file}"
11314 # We don't want ansidecl.h in target files, write code there in ISO/GNU C.
11315 # put this back in temporarily.
11316 xm_file="auto-host.h ansidecl.h ${xm_file}"
11318 # --------
11319 # UNSORTED
11320 # --------
11322 # Compile in configure arguments.
11323 if test -f configargs.h ; then
11324 # Being re-configured.
11325 gcc_config_arguments=`grep configuration_arguments configargs.h | sed -e 's/.*"\([^"]*\)".*/\1/'`
11326 gcc_config_arguments="$gcc_config_arguments : (reconfigured) $TOPLEVEL_CONFIGURE_ARGUMENTS"
11327 else
11328 gcc_config_arguments="$TOPLEVEL_CONFIGURE_ARGUMENTS"
11331 # Double all backslashes and backslash all quotes to turn
11332 # gcc_config_arguments into a C string.
11333 sed -e 's/\\/\\\\/g; s/"/\\"/g' <<EOF >conftest.out
11334 $gcc_config_arguments
11336 gcc_config_arguments_str=`cat conftest.out`
11337 rm -f conftest.out
11339 cat > configargs.h <<EOF
11340 /* Generated automatically. */
11341 static const char configuration_arguments[] = "$gcc_config_arguments_str";
11342 static const char thread_model[] = "$thread_file";
11344 static const struct {
11345 const char *name, *value;
11346 } configure_default_options[] = $configure_default_options;
11349 gcc_BASEVER=`cat $srcdir/BASE-VER`
11350 gcc_DEVPHASE=`cat $srcdir/DEV-PHASE`
11351 gcc_DATESTAMP=`cat $srcdir/DATESTAMP`
11352 if test -f $srcdir/REVISION ; then
11353 gcc_REVISION=`cat $srcdir/REVISION`
11354 else
11355 gcc_REVISION=""
11357 cat > plugin-version.h <<EOF
11358 #include "configargs.h"
11360 #define GCCPLUGIN_VERSION_MAJOR `echo $gcc_BASEVER | sed -e 's/^\([0-9]*\).*$/\1/'`
11361 #define GCCPLUGIN_VERSION_MINOR `echo $gcc_BASEVER | sed -e 's/^[0-9]*\.\([0-9]*\).*$/\1/'`
11362 #define GCCPLUGIN_VERSION_PATCHLEVEL `echo $gcc_BASEVER | sed -e 's/^[0-9]*\.[0-9]*\.\([0-9]*\)$/\1/'`
11363 #define GCCPLUGIN_VERSION (GCCPLUGIN_VERSION_MAJOR*1000 + GCCPLUGIN_VERSION_MINOR)
11365 static char basever[] = "$gcc_BASEVER";
11366 static char datestamp[] = "$gcc_DATESTAMP";
11367 static char devphase[] = "$gcc_DEVPHASE";
11368 static char revision[] = "$gcc_REVISION";
11370 /* FIXME plugins: We should make the version information more precise.
11371 One way to do is to add a checksum. */
11373 static struct plugin_gcc_version gcc_version = {basever, datestamp,
11374 devphase, revision,
11375 configuration_arguments};
11378 # Internationalization
11379 # If we haven't got the data from the intl directory,
11380 # assume NLS is disabled.
11381 USE_NLS=no
11382 LIBINTL=
11383 LIBINTL_DEP=
11384 INCINTL=
11385 XGETTEXT=
11386 GMSGFMT=
11387 POSUB=
11389 if test -f ../intl/config.intl; then
11390 . ../intl/config.intl
11392 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether NLS is requested" >&5
11393 $as_echo_n "checking whether NLS is requested... " >&6; }
11394 if test x"$USE_NLS" != xyes; then
11395 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11396 $as_echo "no" >&6; }
11397 else
11398 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11399 $as_echo "yes" >&6; }
11401 $as_echo "#define ENABLE_NLS 1" >>confdefs.h
11404 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for catalogs to be installed" >&5
11405 $as_echo_n "checking for catalogs to be installed... " >&6; }
11406 # Look for .po and .gmo files in the source directory.
11407 CATALOGS=
11408 XLINGUAS=
11409 for cat in $srcdir/po/*.gmo $srcdir/po/*.po; do
11410 # If there aren't any .gmo files the shell will give us the
11411 # literal string "../path/to/srcdir/po/*.gmo" which has to be
11412 # weeded out.
11413 case "$cat" in *\**)
11414 continue;;
11415 esac
11416 # The quadruple backslash is collapsed to a double backslash
11417 # by the backticks, then collapsed again by the double quotes,
11418 # leaving us with one backslash in the sed expression (right
11419 # before the dot that mustn't act as a wildcard).
11420 cat=`echo $cat | sed -e "s!$srcdir/po/!!" -e "s!\\\\.po!.gmo!"`
11421 lang=`echo $cat | sed -e "s!\\\\.gmo!!"`
11422 # The user is allowed to set LINGUAS to a list of languages to
11423 # install catalogs for. If it's empty that means "all of them."
11424 if test "x$LINGUAS" = x; then
11425 CATALOGS="$CATALOGS $cat"
11426 XLINGUAS="$XLINGUAS $lang"
11427 else
11428 case "$LINGUAS" in *$lang*)
11429 CATALOGS="$CATALOGS $cat"
11430 XLINGUAS="$XLINGUAS $lang"
11432 esac
11434 done
11435 LINGUAS="$XLINGUAS"
11436 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LINGUAS" >&5
11437 $as_echo "$LINGUAS" >&6; }
11440 DATADIRNAME=share
11442 INSTOBJEXT=.mo
11444 GENCAT=gencat
11446 CATOBJEXT=.gmo
11450 # If LIBINTL contains LIBICONV, then clear LIBICONV so we don't get
11451 # -liconv on the link line twice.
11452 case "$LIBINTL" in *$LIBICONV*)
11453 LIBICONV= ;;
11454 esac
11456 # Check whether --enable-secureplt was given.
11457 if test "${enable_secureplt+set}" = set; then :
11458 enableval=$enable_secureplt;
11462 # Check whether --enable-leading-mingw64-underscores was given.
11463 if test "${enable_leading_mingw64_underscores+set}" = set; then :
11464 enableval=$enable_leading_mingw64_underscores;
11467 if test x"$enable_leading_mingw64_underscores" = xyes ; then :
11469 $as_echo "#define USE_MINGW64_LEADING_UNDERSCORES 1" >>confdefs.h
11473 # Check whether --enable-cld was given.
11474 if test "${enable_cld+set}" = set; then :
11475 enableval=$enable_cld;
11476 else
11477 enable_cld=no
11481 # Check whether --enable-frame-pointer was given.
11482 if test "${enable_frame_pointer+set}" = set; then :
11483 enableval=$enable_frame_pointer;
11484 else
11486 case $target_os in
11487 linux* | darwin[8912]*)
11488 # Enable -fomit-frame-pointer by default for Linux and Darwin with
11489 # DWARF2.
11490 enable_frame_pointer=no
11493 enable_frame_pointer=yes
11495 esac
11500 # Windows32 Registry support for specifying GCC installation paths.
11501 # Check whether --enable-win32-registry was given.
11502 if test "${enable_win32_registry+set}" = set; then :
11503 enableval=$enable_win32_registry;
11507 case $host_os in
11508 win32 | pe | cygwin* | mingw32* | uwin*)
11509 if test "x$enable_win32_registry" != xno; then
11510 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing RegOpenKeyExA" >&5
11511 $as_echo_n "checking for library containing RegOpenKeyExA... " >&6; }
11512 if test "${ac_cv_search_RegOpenKeyExA+set}" = set; then :
11513 $as_echo_n "(cached) " >&6
11514 else
11515 ac_func_search_save_LIBS=$LIBS
11516 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11517 /* end confdefs.h. */
11519 /* Override any GCC internal prototype to avoid an error.
11520 Use char because int might match the return type of a GCC
11521 builtin and then its argument prototype would still apply. */
11522 #ifdef __cplusplus
11523 extern "C"
11524 #endif
11525 char RegOpenKeyExA ();
11527 main ()
11529 return RegOpenKeyExA ();
11531 return 0;
11533 _ACEOF
11534 for ac_lib in '' advapi32; do
11535 if test -z "$ac_lib"; then
11536 ac_res="none required"
11537 else
11538 ac_res=-l$ac_lib
11539 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
11541 if ac_fn_c_try_link "$LINENO"; then :
11542 ac_cv_search_RegOpenKeyExA=$ac_res
11544 rm -f core conftest.err conftest.$ac_objext \
11545 conftest$ac_exeext
11546 if test "${ac_cv_search_RegOpenKeyExA+set}" = set; then :
11547 break
11549 done
11550 if test "${ac_cv_search_RegOpenKeyExA+set}" = set; then :
11552 else
11553 ac_cv_search_RegOpenKeyExA=no
11555 rm conftest.$ac_ext
11556 LIBS=$ac_func_search_save_LIBS
11558 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_RegOpenKeyExA" >&5
11559 $as_echo "$ac_cv_search_RegOpenKeyExA" >&6; }
11560 ac_res=$ac_cv_search_RegOpenKeyExA
11561 if test "$ac_res" != no; then :
11562 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
11564 else
11565 enable_win32_registry=no
11570 if test "x$enable_win32_registry" != xno; then
11572 $as_echo "#define ENABLE_WIN32_REGISTRY 1" >>confdefs.h
11575 if test "x$enable_win32_registry" != xyes \
11576 && test "x$enable_win32_registry" != x; then
11578 cat >>confdefs.h <<_ACEOF
11579 #define WIN32_REGISTRY_KEY "$enable_win32_registry"
11580 _ACEOF
11585 esac
11587 # Get an absolute path to the GCC top-level source directory
11588 holddir=`${PWDCMD-pwd}`
11589 cd $srcdir
11590 topdir=`${PWDCMD-pwd}`
11591 cd $holddir
11593 # Conditionalize the makefile for this host machine.
11594 xmake_file=
11595 for f in ${host_xmake_file}
11597 if test -f ${srcdir}/config/$f
11598 then
11599 xmake_file="${xmake_file} \$(srcdir)/config/$f"
11601 done
11603 # Conditionalize the makefile for this target machine.
11604 tmake_file_=
11605 for f in ${tmake_file}
11607 if test -f ${srcdir}/config/$f
11608 then
11609 tmake_file_="${tmake_file_} \$(srcdir)/config/$f"
11611 done
11612 tmake_file="${tmake_file_}"
11614 out_object_file=`basename $out_file .c`.o
11615 common_out_object_file=`basename $common_out_file .c`.o
11617 tm_file_list="options.h"
11618 tm_include_list="options.h insn-constants.h"
11619 for f in $tm_file; do
11620 case $f in
11621 ./* )
11622 f=`echo $f | sed 's/^..//'`
11623 tm_file_list="${tm_file_list} $f"
11624 tm_include_list="${tm_include_list} $f"
11626 defaults.h )
11627 tm_file_list="${tm_file_list} \$(srcdir)/$f"
11628 tm_include_list="${tm_include_list} $f"
11631 tm_file_list="${tm_file_list} \$(srcdir)/config/$f"
11632 tm_include_list="${tm_include_list} config/$f"
11634 esac
11635 done
11637 tm_p_file_list=
11638 tm_p_include_list=
11639 for f in $tm_p_file; do
11640 case $f in
11641 tm-preds.h )
11642 tm_p_file_list="${tm_p_file_list} $f"
11643 tm_p_include_list="${tm_p_include_list} $f"
11646 tm_p_file_list="${tm_p_file_list} \$(srcdir)/config/$f"
11647 tm_p_include_list="${tm_p_include_list} config/$f"
11648 esac
11649 done
11651 xm_file_list=
11652 xm_include_list=
11653 for f in $xm_file; do
11654 case $f in
11655 ansidecl.h )
11656 xm_file_list="${xm_file_list} \$(srcdir)/../include/$f"
11657 xm_include_list="${xm_include_list} $f"
11659 auto-host.h )
11660 xm_file_list="${xm_file_list} $f"
11661 xm_include_list="${xm_include_list} $f"
11664 xm_file_list="${xm_file_list} \$(srcdir)/config/$f"
11665 xm_include_list="${xm_include_list} config/$f"
11667 esac
11668 done
11670 host_xm_file_list=
11671 host_xm_include_list=
11672 for f in $host_xm_file; do
11673 case $f in
11674 ansidecl.h )
11675 host_xm_file_list="${host_xm_file_list} \$(srcdir)/../include/$f"
11676 host_xm_include_list="${host_xm_include_list} $f"
11678 auto-host.h )
11679 host_xm_file_list="${host_xm_file_list} $f"
11680 host_xm_include_list="${host_xm_include_list} $f"
11683 host_xm_file_list="${host_xm_file_list} \$(srcdir)/config/$f"
11684 host_xm_include_list="${host_xm_include_list} config/$f"
11686 esac
11687 done
11689 build_xm_file_list=
11690 for f in $build_xm_file; do
11691 case $f in
11692 ansidecl.h )
11693 build_xm_file_list="${build_xm_file_list} \$(srcdir)/../include/$f"
11694 build_xm_include_list="${build_xm_include_list} $f"
11696 auto-build.h | auto-host.h )
11697 build_xm_file_list="${build_xm_file_list} $f"
11698 build_xm_include_list="${build_xm_include_list} $f"
11701 build_xm_file_list="${build_xm_file_list} \$(srcdir)/config/$f"
11702 build_xm_include_list="${build_xm_include_list} config/$f"
11704 esac
11705 done
11707 # Define macro CROSS_DIRECTORY_STRUCTURE in compilation if this is a
11708 # cross-compiler which does not use the native headers and libraries.
11709 # Also use all.cross instead of all.internal and adjust SYSTEM_HEADER_DIR.
11710 CROSS=
11711 ALL=all.internal
11712 SYSTEM_HEADER_DIR='$(NATIVE_SYSTEM_HEADER_DIR)'
11714 if test "x$with_build_sysroot" != x; then
11715 build_system_header_dir=$with_build_sysroot'$${sysroot_headers_suffix}$(NATIVE_SYSTEM_HEADER_DIR)'
11716 else
11717 # This value is used, even on a native system, because
11718 # CROSS_SYSTEM_HEADER_DIR is just
11719 # $(TARGET_SYSTEM_ROOT)$(NATIVE_SYSTEM_HEADER_DIR).
11720 build_system_header_dir='$(CROSS_SYSTEM_HEADER_DIR)'
11723 if test x$host != x$target
11724 then
11725 CROSS="-DCROSS_DIRECTORY_STRUCTURE"
11726 ALL=all.cross
11727 SYSTEM_HEADER_DIR=$build_system_header_dir
11728 case "$host","$target" in
11729 # Darwin crosses can use the host system's libraries and headers,
11730 # because of the fat library support. Of course, it must be the
11731 # same version of Darwin on both sides. Allow the user to
11732 # just say --target=foo-darwin without a version number to mean
11733 # "the version on this system".
11734 *-*-darwin*,*-*-darwin*)
11735 hostos=`echo $host | sed 's/.*-darwin/darwin/'`
11736 targetos=`echo $target | sed 's/.*-darwin/darwin/'`
11737 if test $hostos = $targetos -o $targetos = darwin ; then
11738 CROSS=
11739 SYSTEM_HEADER_DIR='$(NATIVE_SYSTEM_HEADER_DIR)'
11740 with_headers=yes
11744 i?86-*-*,x86_64-*-* \
11745 | powerpc*-*-*,powerpc64*-*-*)
11746 CROSS="$CROSS -DNATIVE_CROSS" ;;
11747 esac
11749 case $target in
11750 *-*-mingw*)
11751 if test "x$with_headers" = x; then
11752 with_headers=yes
11757 esac
11758 elif test "x$TARGET_SYSTEM_ROOT" != x; then
11759 SYSTEM_HEADER_DIR=$build_system_header_dir
11762 # If this is a cross-compiler that does not
11763 # have its own set of headers then define
11764 # inhibit_libc
11766 # If this is using newlib, without having the headers available now,
11767 # then define inhibit_libc in LIBGCC2_CFLAGS.
11768 # This prevents libgcc2 from containing any code which requires libc
11769 # support.
11770 : ${inhibit_libc=false}
11771 if { { test x$host != x$target && test "x$with_sysroot" = x ; } ||
11772 test x$with_newlib = xyes ; } &&
11773 { test "x$with_headers" = x || test "x$with_headers" = xno ; } ; then
11774 inhibit_libc=true
11778 # When building gcc with a cross-compiler, we need to adjust things so
11779 # that the generator programs are still built with the native compiler.
11780 # Also, we cannot run fixincludes.
11782 # These are the normal (build=host) settings:
11783 CC_FOR_BUILD='$(CC)'
11784 CXX_FOR_BUILD='$(CXX)'
11785 BUILD_CFLAGS='$(ALL_CFLAGS)'
11786 BUILD_CXXFLAGS='$(ALL_CXXFLAGS)'
11787 BUILD_LDFLAGS='$(LDFLAGS)'
11788 STMP_FIXINC=stmp-fixinc
11790 # And these apply if build != host, or we are generating coverage data
11791 if test x$build != x$host || test "x$coverage_flags" != x
11792 then
11793 BUILD_CFLAGS='$(INTERNAL_CFLAGS) $(T_CFLAGS) $(CFLAGS_FOR_BUILD)'
11794 BUILD_LDFLAGS='$(LDFLAGS_FOR_BUILD)'
11797 # Expand extra_headers to include complete path.
11798 # This substitutes for lots of t-* files.
11799 extra_headers_list=
11800 # Prepend $(srcdir)/config/${cpu_type}/ to every entry in extra_headers.
11801 for file in ${extra_headers} ; do
11802 extra_headers_list="${extra_headers_list} \$(srcdir)/config/${cpu_type}/${file}"
11803 done
11805 # If use_gcc_tgmath is set, append ginclude/tgmath.h.
11806 if test x"$use_gcc_tgmath" = xyes
11807 then extra_headers_list="${extra_headers_list} \$(srcdir)/ginclude/tgmath.h"
11810 # Define collect2 in Makefile.
11811 case $host_can_use_collect2 in
11812 no) collect2= ;;
11813 *) collect2='collect2$(exeext)' ;;
11814 esac
11817 # Add a definition of USE_COLLECT2 if system wants one.
11818 case $use_collect2 in
11819 no) use_collect2= ;;
11820 "") ;;
11822 host_xm_defines="${host_xm_defines} USE_COLLECT2"
11823 xm_defines="${xm_defines} USE_COLLECT2"
11824 case $host_can_use_collect2 in
11826 as_fn_error "collect2 is required but cannot be built on this system" "$LINENO" 5
11828 esac
11830 esac
11833 cat >>confdefs.h <<_ACEOF
11834 #define LTOPLUGINSONAME "${host_lto_plugin_soname}"
11835 _ACEOF
11838 # ---------------------------
11839 # Assembler & linker features
11840 # ---------------------------
11842 # During stage 2, ld is actually gcc/collect-ld, which is a small script to
11843 # discern between when to use prev-ld/ld-new and when to use ld/ld-new.
11844 # However when ld-new is first executed from the build tree, libtool will
11845 # relink it as .libs/lt-ld-new, so that it can give it an RPATH that refers
11846 # to the build tree. While doing this we need to use the previous-stage
11847 # linker, or we have an infinite loop. The presence of a shell script as
11848 # ld/ld-new, and the fact that the script *uses ld itself*, is what confuses
11849 # the gcc/collect-ld script. So we need to know how libtool works, or
11850 # exec-tool will fail.
11853 case `pwd` in
11854 *\ * | *\ *)
11855 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&5
11856 $as_echo "$as_me: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&2;} ;;
11857 esac
11861 macro_version='2.2.7a'
11862 macro_revision='1.3134'
11876 ltmain="$ac_aux_dir/ltmain.sh"
11878 # Backslashify metacharacters that are still active within
11879 # double-quoted strings.
11880 sed_quote_subst='s/\(["`$\\]\)/\\\1/g'
11882 # Same as above, but do not quote variable references.
11883 double_quote_subst='s/\(["`\\]\)/\\\1/g'
11885 # Sed substitution to delay expansion of an escaped shell variable in a
11886 # double_quote_subst'ed string.
11887 delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
11889 # Sed substitution to delay expansion of an escaped single quote.
11890 delay_single_quote_subst='s/'\''/'\'\\\\\\\'\''/g'
11892 # Sed substitution to avoid accidental globbing in evaled expressions
11893 no_glob_subst='s/\*/\\\*/g'
11895 ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
11896 ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO
11897 ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO$ECHO
11899 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to print strings" >&5
11900 $as_echo_n "checking how to print strings... " >&6; }
11901 # Test print first, because it will be a builtin if present.
11902 if test "X`print -r -- -n 2>/dev/null`" = X-n && \
11903 test "X`print -r -- $ECHO 2>/dev/null`" = "X$ECHO"; then
11904 ECHO='print -r --'
11905 elif test "X`printf %s $ECHO 2>/dev/null`" = "X$ECHO"; then
11906 ECHO='printf %s\n'
11907 else
11908 # Use this function as a fallback that always works.
11909 func_fallback_echo ()
11911 eval 'cat <<_LTECHO_EOF
11913 _LTECHO_EOF'
11915 ECHO='func_fallback_echo'
11918 # func_echo_all arg...
11919 # Invoke $ECHO with all args, space-separated.
11920 func_echo_all ()
11922 $ECHO ""
11925 case "$ECHO" in
11926 printf*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: printf" >&5
11927 $as_echo "printf" >&6; } ;;
11928 print*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: print -r" >&5
11929 $as_echo "print -r" >&6; } ;;
11930 *) { $as_echo "$as_me:${as_lineno-$LINENO}: result: cat" >&5
11931 $as_echo "cat" >&6; } ;;
11932 esac
11947 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5
11948 $as_echo_n "checking for a sed that does not truncate output... " >&6; }
11949 if test "${ac_cv_path_SED+set}" = set; then :
11950 $as_echo_n "(cached) " >&6
11951 else
11952 ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
11953 for ac_i in 1 2 3 4 5 6 7; do
11954 ac_script="$ac_script$as_nl$ac_script"
11955 done
11956 echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed
11957 { ac_script=; unset ac_script;}
11958 if test -z "$SED"; then
11959 ac_path_SED_found=false
11960 # Loop through the user's path and test for each of PROGNAME-LIST
11961 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11962 for as_dir in $PATH
11964 IFS=$as_save_IFS
11965 test -z "$as_dir" && as_dir=.
11966 for ac_prog in sed gsed; do
11967 for ac_exec_ext in '' $ac_executable_extensions; do
11968 ac_path_SED="$as_dir/$ac_prog$ac_exec_ext"
11969 { test -f "$ac_path_SED" && $as_test_x "$ac_path_SED"; } || continue
11970 # Check for GNU ac_path_SED and select it if it is found.
11971 # Check for GNU $ac_path_SED
11972 case `"$ac_path_SED" --version 2>&1` in
11973 *GNU*)
11974 ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
11976 ac_count=0
11977 $as_echo_n 0123456789 >"conftest.in"
11978 while :
11980 cat "conftest.in" "conftest.in" >"conftest.tmp"
11981 mv "conftest.tmp" "conftest.in"
11982 cp "conftest.in" "conftest.nl"
11983 $as_echo '' >> "conftest.nl"
11984 "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break
11985 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
11986 as_fn_arith $ac_count + 1 && ac_count=$as_val
11987 if test $ac_count -gt ${ac_path_SED_max-0}; then
11988 # Best one so far, save it but keep looking for a better one
11989 ac_cv_path_SED="$ac_path_SED"
11990 ac_path_SED_max=$ac_count
11992 # 10*(2^10) chars as input seems more than enough
11993 test $ac_count -gt 10 && break
11994 done
11995 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
11996 esac
11998 $ac_path_SED_found && break 3
11999 done
12000 done
12001 done
12002 IFS=$as_save_IFS
12003 if test -z "$ac_cv_path_SED"; then
12004 as_fn_error "no acceptable sed could be found in \$PATH" "$LINENO" 5
12006 else
12007 ac_cv_path_SED=$SED
12011 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5
12012 $as_echo "$ac_cv_path_SED" >&6; }
12013 SED="$ac_cv_path_SED"
12014 rm -f conftest.sed
12016 test -z "$SED" && SED=sed
12017 Xsed="$SED -e 1s/^X//"
12029 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for fgrep" >&5
12030 $as_echo_n "checking for fgrep... " >&6; }
12031 if test "${ac_cv_path_FGREP+set}" = set; then :
12032 $as_echo_n "(cached) " >&6
12033 else
12034 if echo 'ab*c' | $GREP -F 'ab*c' >/dev/null 2>&1
12035 then ac_cv_path_FGREP="$GREP -F"
12036 else
12037 if test -z "$FGREP"; then
12038 ac_path_FGREP_found=false
12039 # Loop through the user's path and test for each of PROGNAME-LIST
12040 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12041 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
12043 IFS=$as_save_IFS
12044 test -z "$as_dir" && as_dir=.
12045 for ac_prog in fgrep; do
12046 for ac_exec_ext in '' $ac_executable_extensions; do
12047 ac_path_FGREP="$as_dir/$ac_prog$ac_exec_ext"
12048 { test -f "$ac_path_FGREP" && $as_test_x "$ac_path_FGREP"; } || continue
12049 # Check for GNU ac_path_FGREP and select it if it is found.
12050 # Check for GNU $ac_path_FGREP
12051 case `"$ac_path_FGREP" --version 2>&1` in
12052 *GNU*)
12053 ac_cv_path_FGREP="$ac_path_FGREP" ac_path_FGREP_found=:;;
12055 ac_count=0
12056 $as_echo_n 0123456789 >"conftest.in"
12057 while :
12059 cat "conftest.in" "conftest.in" >"conftest.tmp"
12060 mv "conftest.tmp" "conftest.in"
12061 cp "conftest.in" "conftest.nl"
12062 $as_echo 'FGREP' >> "conftest.nl"
12063 "$ac_path_FGREP" FGREP < "conftest.nl" >"conftest.out" 2>/dev/null || break
12064 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
12065 as_fn_arith $ac_count + 1 && ac_count=$as_val
12066 if test $ac_count -gt ${ac_path_FGREP_max-0}; then
12067 # Best one so far, save it but keep looking for a better one
12068 ac_cv_path_FGREP="$ac_path_FGREP"
12069 ac_path_FGREP_max=$ac_count
12071 # 10*(2^10) chars as input seems more than enough
12072 test $ac_count -gt 10 && break
12073 done
12074 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
12075 esac
12077 $ac_path_FGREP_found && break 3
12078 done
12079 done
12080 done
12081 IFS=$as_save_IFS
12082 if test -z "$ac_cv_path_FGREP"; then
12083 as_fn_error "no acceptable fgrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
12085 else
12086 ac_cv_path_FGREP=$FGREP
12091 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_FGREP" >&5
12092 $as_echo "$ac_cv_path_FGREP" >&6; }
12093 FGREP="$ac_cv_path_FGREP"
12096 test -z "$GREP" && GREP=grep
12116 # Check whether --with-gnu-ld was given.
12117 if test "${with_gnu_ld+set}" = set; then :
12118 withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
12119 else
12120 with_gnu_ld=no
12123 ac_prog=ld
12124 if test "$GCC" = yes; then
12125 # Check if gcc -print-prog-name=ld gives a path.
12126 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
12127 $as_echo_n "checking for ld used by $CC... " >&6; }
12128 case $host in
12129 *-*-mingw*)
12130 # gcc leaves a trailing carriage return which upsets mingw
12131 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
12133 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
12134 esac
12135 case $ac_prog in
12136 # Accept absolute paths.
12137 [\\/]* | ?:[\\/]*)
12138 re_direlt='/[^/][^/]*/\.\./'
12139 # Canonicalize the pathname of ld
12140 ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
12141 while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
12142 ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
12143 done
12144 test -z "$LD" && LD="$ac_prog"
12147 # If it fails, then pretend we aren't using GCC.
12148 ac_prog=ld
12151 # If it is relative, then search for the first ld in PATH.
12152 with_gnu_ld=unknown
12154 esac
12155 elif test "$with_gnu_ld" = yes; then
12156 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
12157 $as_echo_n "checking for GNU ld... " >&6; }
12158 else
12159 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
12160 $as_echo_n "checking for non-GNU ld... " >&6; }
12162 if test "${lt_cv_path_LD+set}" = set; then :
12163 $as_echo_n "(cached) " >&6
12164 else
12165 if test -z "$LD"; then
12166 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
12167 for ac_dir in $PATH; do
12168 IFS="$lt_save_ifs"
12169 test -z "$ac_dir" && ac_dir=.
12170 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
12171 lt_cv_path_LD="$ac_dir/$ac_prog"
12172 # Check to see if the program is GNU ld. I'd rather use --version,
12173 # but apparently some variants of GNU ld only accept -v.
12174 # Break only if it was the GNU/non-GNU ld that we prefer.
12175 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
12176 *GNU* | *'with BFD'*)
12177 test "$with_gnu_ld" != no && break
12180 test "$with_gnu_ld" != yes && break
12182 esac
12184 done
12185 IFS="$lt_save_ifs"
12186 else
12187 lt_cv_path_LD="$LD" # Let the user override the test with a path.
12191 LD="$lt_cv_path_LD"
12192 if test -n "$LD"; then
12193 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
12194 $as_echo "$LD" >&6; }
12195 else
12196 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12197 $as_echo "no" >&6; }
12199 test -z "$LD" && as_fn_error "no acceptable ld found in \$PATH" "$LINENO" 5
12200 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
12201 $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
12202 if test "${lt_cv_prog_gnu_ld+set}" = set; then :
12203 $as_echo_n "(cached) " >&6
12204 else
12205 # I'd rather use --version here, but apparently some GNU lds only accept -v.
12206 case `$LD -v 2>&1 </dev/null` in
12207 *GNU* | *'with BFD'*)
12208 lt_cv_prog_gnu_ld=yes
12211 lt_cv_prog_gnu_ld=no
12213 esac
12215 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
12216 $as_echo "$lt_cv_prog_gnu_ld" >&6; }
12217 with_gnu_ld=$lt_cv_prog_gnu_ld
12227 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for BSD- or MS-compatible name lister (nm)" >&5
12228 $as_echo_n "checking for BSD- or MS-compatible name lister (nm)... " >&6; }
12229 if test "${lt_cv_path_NM+set}" = set; then :
12230 $as_echo_n "(cached) " >&6
12231 else
12232 if test -n "$NM"; then
12233 # Let the user override the test.
12234 lt_cv_path_NM="$NM"
12235 else
12236 lt_nm_to_check="${ac_tool_prefix}nm"
12237 if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
12238 lt_nm_to_check="$lt_nm_to_check nm"
12240 for lt_tmp_nm in $lt_nm_to_check; do
12241 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
12242 for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
12243 IFS="$lt_save_ifs"
12244 test -z "$ac_dir" && ac_dir=.
12245 tmp_nm="$ac_dir/$lt_tmp_nm"
12246 if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
12247 # Check to see if the nm accepts a BSD-compat flag.
12248 # Adding the `sed 1q' prevents false positives on HP-UX, which says:
12249 # nm: unknown option "B" ignored
12250 # Tru64's nm complains that /dev/null is an invalid object file
12251 case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
12252 */dev/null* | *'Invalid file or object type'*)
12253 lt_cv_path_NM="$tmp_nm -B"
12254 break
12257 case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
12258 */dev/null*)
12259 lt_cv_path_NM="$tmp_nm -p"
12260 break
12263 lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
12264 continue # so that we can try to find one that supports BSD flags
12266 esac
12268 esac
12270 done
12271 IFS="$lt_save_ifs"
12272 done
12273 : ${lt_cv_path_NM=no}
12276 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_NM" >&5
12277 $as_echo "$lt_cv_path_NM" >&6; }
12278 if test "$lt_cv_path_NM" != "no"; then
12279 NM="$lt_cv_path_NM"
12280 else
12281 # Didn't find any BSD compatible name lister, look for dumpbin.
12282 if test -n "$DUMPBIN"; then :
12283 # Let the user override the test.
12284 else
12285 if test -n "$ac_tool_prefix"; then
12286 for ac_prog in dumpbin "link -dump"
12288 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
12289 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
12290 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12291 $as_echo_n "checking for $ac_word... " >&6; }
12292 if test "${ac_cv_prog_DUMPBIN+set}" = set; then :
12293 $as_echo_n "(cached) " >&6
12294 else
12295 if test -n "$DUMPBIN"; then
12296 ac_cv_prog_DUMPBIN="$DUMPBIN" # Let the user override the test.
12297 else
12298 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12299 for as_dir in $PATH
12301 IFS=$as_save_IFS
12302 test -z "$as_dir" && as_dir=.
12303 for ac_exec_ext in '' $ac_executable_extensions; do
12304 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12305 ac_cv_prog_DUMPBIN="$ac_tool_prefix$ac_prog"
12306 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12307 break 2
12309 done
12310 done
12311 IFS=$as_save_IFS
12315 DUMPBIN=$ac_cv_prog_DUMPBIN
12316 if test -n "$DUMPBIN"; then
12317 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DUMPBIN" >&5
12318 $as_echo "$DUMPBIN" >&6; }
12319 else
12320 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12321 $as_echo "no" >&6; }
12325 test -n "$DUMPBIN" && break
12326 done
12328 if test -z "$DUMPBIN"; then
12329 ac_ct_DUMPBIN=$DUMPBIN
12330 for ac_prog in dumpbin "link -dump"
12332 # Extract the first word of "$ac_prog", so it can be a program name with args.
12333 set dummy $ac_prog; ac_word=$2
12334 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12335 $as_echo_n "checking for $ac_word... " >&6; }
12336 if test "${ac_cv_prog_ac_ct_DUMPBIN+set}" = set; then :
12337 $as_echo_n "(cached) " >&6
12338 else
12339 if test -n "$ac_ct_DUMPBIN"; then
12340 ac_cv_prog_ac_ct_DUMPBIN="$ac_ct_DUMPBIN" # Let the user override the test.
12341 else
12342 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12343 for as_dir in $PATH
12345 IFS=$as_save_IFS
12346 test -z "$as_dir" && as_dir=.
12347 for ac_exec_ext in '' $ac_executable_extensions; do
12348 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12349 ac_cv_prog_ac_ct_DUMPBIN="$ac_prog"
12350 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12351 break 2
12353 done
12354 done
12355 IFS=$as_save_IFS
12359 ac_ct_DUMPBIN=$ac_cv_prog_ac_ct_DUMPBIN
12360 if test -n "$ac_ct_DUMPBIN"; then
12361 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DUMPBIN" >&5
12362 $as_echo "$ac_ct_DUMPBIN" >&6; }
12363 else
12364 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12365 $as_echo "no" >&6; }
12369 test -n "$ac_ct_DUMPBIN" && break
12370 done
12372 if test "x$ac_ct_DUMPBIN" = x; then
12373 DUMPBIN=":"
12374 else
12375 case $cross_compiling:$ac_tool_warned in
12376 yes:)
12377 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
12378 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
12379 ac_tool_warned=yes ;;
12380 esac
12381 DUMPBIN=$ac_ct_DUMPBIN
12385 case `$DUMPBIN -symbols /dev/null 2>&1 | sed '1q'` in
12386 *COFF*)
12387 DUMPBIN="$DUMPBIN -symbols"
12390 DUMPBIN=:
12392 esac
12395 if test "$DUMPBIN" != ":"; then
12396 NM="$DUMPBIN"
12399 test -z "$NM" && NM=nm
12406 { $as_echo "$as_me:${as_lineno-$LINENO}: checking the name lister ($NM) interface" >&5
12407 $as_echo_n "checking the name lister ($NM) interface... " >&6; }
12408 if test "${lt_cv_nm_interface+set}" = set; then :
12409 $as_echo_n "(cached) " >&6
12410 else
12411 lt_cv_nm_interface="BSD nm"
12412 echo "int some_variable = 0;" > conftest.$ac_ext
12413 (eval echo "\"\$as_me:$LINENO: $ac_compile\"" >&5)
12414 (eval "$ac_compile" 2>conftest.err)
12415 cat conftest.err >&5
12416 (eval echo "\"\$as_me:$LINENO: $NM \\\"conftest.$ac_objext\\\"\"" >&5)
12417 (eval "$NM \"conftest.$ac_objext\"" 2>conftest.err > conftest.out)
12418 cat conftest.err >&5
12419 (eval echo "\"\$as_me:$LINENO: output\"" >&5)
12420 cat conftest.out >&5
12421 if $GREP 'External.*some_variable' conftest.out > /dev/null; then
12422 lt_cv_nm_interface="MS dumpbin"
12424 rm -f conftest*
12426 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_nm_interface" >&5
12427 $as_echo "$lt_cv_nm_interface" >&6; }
12429 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5
12430 $as_echo_n "checking whether ln -s works... " >&6; }
12431 LN_S=$as_ln_s
12432 if test "$LN_S" = "ln -s"; then
12433 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12434 $as_echo "yes" >&6; }
12435 else
12436 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5
12437 $as_echo "no, using $LN_S" >&6; }
12440 # find the maximum length of command line arguments
12441 { $as_echo "$as_me:${as_lineno-$LINENO}: checking the maximum length of command line arguments" >&5
12442 $as_echo_n "checking the maximum length of command line arguments... " >&6; }
12443 if test "${lt_cv_sys_max_cmd_len+set}" = set; then :
12444 $as_echo_n "(cached) " >&6
12445 else
12447 teststring="ABCD"
12449 case $build_os in
12450 msdosdjgpp*)
12451 # On DJGPP, this test can blow up pretty badly due to problems in libc
12452 # (any single argument exceeding 2000 bytes causes a buffer overrun
12453 # during glob expansion). Even if it were fixed, the result of this
12454 # check would be larger than it should be.
12455 lt_cv_sys_max_cmd_len=12288; # 12K is about right
12458 gnu*)
12459 # Under GNU Hurd, this test is not required because there is
12460 # no limit to the length of command line arguments.
12461 # Libtool will interpret -1 as no limit whatsoever
12462 lt_cv_sys_max_cmd_len=-1;
12465 cygwin* | mingw* | cegcc*)
12466 # On Win9x/ME, this test blows up -- it succeeds, but takes
12467 # about 5 minutes as the teststring grows exponentially.
12468 # Worse, since 9x/ME are not pre-emptively multitasking,
12469 # you end up with a "frozen" computer, even though with patience
12470 # the test eventually succeeds (with a max line length of 256k).
12471 # Instead, let's just punt: use the minimum linelength reported by
12472 # all of the supported platforms: 8192 (on NT/2K/XP).
12473 lt_cv_sys_max_cmd_len=8192;
12476 mint*)
12477 # On MiNT this can take a long time and run out of memory.
12478 lt_cv_sys_max_cmd_len=8192;
12481 amigaos*)
12482 # On AmigaOS with pdksh, this test takes hours, literally.
12483 # So we just punt and use a minimum line length of 8192.
12484 lt_cv_sys_max_cmd_len=8192;
12487 netbsd* | freebsd* | openbsd* | darwin* | dragonfly*)
12488 # This has been around since 386BSD, at least. Likely further.
12489 if test -x /sbin/sysctl; then
12490 lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
12491 elif test -x /usr/sbin/sysctl; then
12492 lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
12493 else
12494 lt_cv_sys_max_cmd_len=65536 # usable default for all BSDs
12496 # And add a safety zone
12497 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
12498 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
12501 interix*)
12502 # We know the value 262144 and hardcode it with a safety zone (like BSD)
12503 lt_cv_sys_max_cmd_len=196608
12506 osf*)
12507 # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
12508 # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
12509 # nice to cause kernel panics so lets avoid the loop below.
12510 # First set a reasonable default.
12511 lt_cv_sys_max_cmd_len=16384
12513 if test -x /sbin/sysconfig; then
12514 case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
12515 *1*) lt_cv_sys_max_cmd_len=-1 ;;
12516 esac
12519 sco3.2v5*)
12520 lt_cv_sys_max_cmd_len=102400
12522 sysv5* | sco5v6* | sysv4.2uw2*)
12523 kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
12524 if test -n "$kargmax"; then
12525 lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[ ]//'`
12526 else
12527 lt_cv_sys_max_cmd_len=32768
12531 lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null`
12532 if test -n "$lt_cv_sys_max_cmd_len"; then
12533 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
12534 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
12535 else
12536 # Make teststring a little bigger before we do anything with it.
12537 # a 1K string should be a reasonable start.
12538 for i in 1 2 3 4 5 6 7 8 ; do
12539 teststring=$teststring$teststring
12540 done
12541 SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
12542 # If test is not a shell built-in, we'll probably end up computing a
12543 # maximum length that is only half of the actual maximum length, but
12544 # we can't tell.
12545 while { test "X"`func_fallback_echo "$teststring$teststring" 2>/dev/null` \
12546 = "X$teststring$teststring"; } >/dev/null 2>&1 &&
12547 test $i != 17 # 1/2 MB should be enough
12549 i=`expr $i + 1`
12550 teststring=$teststring$teststring
12551 done
12552 # Only check the string length outside the loop.
12553 lt_cv_sys_max_cmd_len=`expr "X$teststring" : ".*" 2>&1`
12554 teststring=
12555 # Add a significant safety factor because C++ compilers can tack on
12556 # massive amounts of additional arguments before passing them to the
12557 # linker. It appears as though 1/2 is a usable value.
12558 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
12561 esac
12565 if test -n $lt_cv_sys_max_cmd_len ; then
12566 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_max_cmd_len" >&5
12567 $as_echo "$lt_cv_sys_max_cmd_len" >&6; }
12568 else
12569 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none" >&5
12570 $as_echo "none" >&6; }
12572 max_cmd_len=$lt_cv_sys_max_cmd_len
12579 : ${CP="cp -f"}
12580 : ${MV="mv -f"}
12581 : ${RM="rm -f"}
12583 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands some XSI constructs" >&5
12584 $as_echo_n "checking whether the shell understands some XSI constructs... " >&6; }
12585 # Try some XSI features
12586 xsi_shell=no
12587 ( _lt_dummy="a/b/c"
12588 test "${_lt_dummy##*/},${_lt_dummy%/*},"${_lt_dummy%"$_lt_dummy"}, \
12589 = c,a/b,, \
12590 && eval 'test $(( 1 + 1 )) -eq 2 \
12591 && test "${#_lt_dummy}" -eq 5' ) >/dev/null 2>&1 \
12592 && xsi_shell=yes
12593 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xsi_shell" >&5
12594 $as_echo "$xsi_shell" >&6; }
12597 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands \"+=\"" >&5
12598 $as_echo_n "checking whether the shell understands \"+=\"... " >&6; }
12599 lt_shell_append=no
12600 ( foo=bar; set foo baz; eval "$1+=\$2" && test "$foo" = barbaz ) \
12601 >/dev/null 2>&1 \
12602 && lt_shell_append=yes
12603 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_shell_append" >&5
12604 $as_echo "$lt_shell_append" >&6; }
12607 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
12608 lt_unset=unset
12609 else
12610 lt_unset=false
12617 # test EBCDIC or ASCII
12618 case `echo X|tr X '\101'` in
12619 A) # ASCII based system
12620 # \n is not interpreted correctly by Solaris 8 /usr/ucb/tr
12621 lt_SP2NL='tr \040 \012'
12622 lt_NL2SP='tr \015\012 \040\040'
12624 *) # EBCDIC based system
12625 lt_SP2NL='tr \100 \n'
12626 lt_NL2SP='tr \r\n \100\100'
12628 esac
12638 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $LD option to reload object files" >&5
12639 $as_echo_n "checking for $LD option to reload object files... " >&6; }
12640 if test "${lt_cv_ld_reload_flag+set}" = set; then :
12641 $as_echo_n "(cached) " >&6
12642 else
12643 lt_cv_ld_reload_flag='-r'
12645 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_reload_flag" >&5
12646 $as_echo "$lt_cv_ld_reload_flag" >&6; }
12647 reload_flag=$lt_cv_ld_reload_flag
12648 case $reload_flag in
12649 "" | " "*) ;;
12650 *) reload_flag=" $reload_flag" ;;
12651 esac
12652 reload_cmds='$LD$reload_flag -o $output$reload_objs'
12653 case $host_os in
12654 darwin*)
12655 if test "$GCC" = yes; then
12656 reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r -o $output$reload_objs'
12657 else
12658 reload_cmds='$LD$reload_flag -o $output$reload_objs'
12661 esac
12671 if test -n "$ac_tool_prefix"; then
12672 # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args.
12673 set dummy ${ac_tool_prefix}objdump; ac_word=$2
12674 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12675 $as_echo_n "checking for $ac_word... " >&6; }
12676 if test "${ac_cv_prog_OBJDUMP+set}" = set; then :
12677 $as_echo_n "(cached) " >&6
12678 else
12679 if test -n "$OBJDUMP"; then
12680 ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
12681 else
12682 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12683 for as_dir in $PATH
12685 IFS=$as_save_IFS
12686 test -z "$as_dir" && as_dir=.
12687 for ac_exec_ext in '' $ac_executable_extensions; do
12688 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12689 ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump"
12690 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12691 break 2
12693 done
12694 done
12695 IFS=$as_save_IFS
12699 OBJDUMP=$ac_cv_prog_OBJDUMP
12700 if test -n "$OBJDUMP"; then
12701 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5
12702 $as_echo "$OBJDUMP" >&6; }
12703 else
12704 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12705 $as_echo "no" >&6; }
12710 if test -z "$ac_cv_prog_OBJDUMP"; then
12711 ac_ct_OBJDUMP=$OBJDUMP
12712 # Extract the first word of "objdump", so it can be a program name with args.
12713 set dummy objdump; ac_word=$2
12714 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12715 $as_echo_n "checking for $ac_word... " >&6; }
12716 if test "${ac_cv_prog_ac_ct_OBJDUMP+set}" = set; then :
12717 $as_echo_n "(cached) " >&6
12718 else
12719 if test -n "$ac_ct_OBJDUMP"; then
12720 ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test.
12721 else
12722 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12723 for as_dir in $PATH
12725 IFS=$as_save_IFS
12726 test -z "$as_dir" && as_dir=.
12727 for ac_exec_ext in '' $ac_executable_extensions; do
12728 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12729 ac_cv_prog_ac_ct_OBJDUMP="objdump"
12730 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12731 break 2
12733 done
12734 done
12735 IFS=$as_save_IFS
12739 ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP
12740 if test -n "$ac_ct_OBJDUMP"; then
12741 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5
12742 $as_echo "$ac_ct_OBJDUMP" >&6; }
12743 else
12744 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12745 $as_echo "no" >&6; }
12748 if test "x$ac_ct_OBJDUMP" = x; then
12749 OBJDUMP="false"
12750 else
12751 case $cross_compiling:$ac_tool_warned in
12752 yes:)
12753 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
12754 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
12755 ac_tool_warned=yes ;;
12756 esac
12757 OBJDUMP=$ac_ct_OBJDUMP
12759 else
12760 OBJDUMP="$ac_cv_prog_OBJDUMP"
12763 test -z "$OBJDUMP" && OBJDUMP=objdump
12773 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to recognize dependent libraries" >&5
12774 $as_echo_n "checking how to recognize dependent libraries... " >&6; }
12775 if test "${lt_cv_deplibs_check_method+set}" = set; then :
12776 $as_echo_n "(cached) " >&6
12777 else
12778 lt_cv_file_magic_cmd='$MAGIC_CMD'
12779 lt_cv_file_magic_test_file=
12780 lt_cv_deplibs_check_method='unknown'
12781 # Need to set the preceding variable on all platforms that support
12782 # interlibrary dependencies.
12783 # 'none' -- dependencies not supported.
12784 # `unknown' -- same as none, but documents that we really don't know.
12785 # 'pass_all' -- all dependencies passed with no checks.
12786 # 'test_compile' -- check by making test program.
12787 # 'file_magic [[regex]]' -- check by looking for files in library path
12788 # which responds to the $file_magic_cmd with a given extended regex.
12789 # If you have `file' or equivalent on your system and you're not sure
12790 # whether `pass_all' will *always* work, you probably want this one.
12792 case $host_os in
12793 aix[4-9]*)
12794 lt_cv_deplibs_check_method=pass_all
12797 beos*)
12798 lt_cv_deplibs_check_method=pass_all
12801 bsdi[45]*)
12802 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
12803 lt_cv_file_magic_cmd='/usr/bin/file -L'
12804 lt_cv_file_magic_test_file=/shlib/libc.so
12807 cygwin*)
12808 # func_win32_libid is a shell function defined in ltmain.sh
12809 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
12810 lt_cv_file_magic_cmd='func_win32_libid'
12813 mingw* | pw32*)
12814 # Base MSYS/MinGW do not provide the 'file' command needed by
12815 # func_win32_libid shell function, so use a weaker test based on 'objdump',
12816 # unless we find 'file', for example because we are cross-compiling.
12817 # func_win32_libid assumes BSD nm, so disallow it if using MS dumpbin.
12818 if ( test "$lt_cv_nm_interface" = "BSD nm" && file / ) >/dev/null 2>&1; then
12819 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
12820 lt_cv_file_magic_cmd='func_win32_libid'
12821 else
12822 lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?'
12823 lt_cv_file_magic_cmd='$OBJDUMP -f'
12827 cegcc*)
12828 # use the weaker test based on 'objdump'. See mingw*.
12829 lt_cv_deplibs_check_method='file_magic file format pe-arm-.*little(.*architecture: arm)?'
12830 lt_cv_file_magic_cmd='$OBJDUMP -f'
12833 darwin* | rhapsody*)
12834 lt_cv_deplibs_check_method=pass_all
12837 freebsd* | dragonfly*)
12838 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
12839 case $host_cpu in
12840 i*86 )
12841 # Not sure whether the presence of OpenBSD here was a mistake.
12842 # Let's accept both of them until this is cleared up.
12843 lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
12844 lt_cv_file_magic_cmd=/usr/bin/file
12845 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
12847 esac
12848 else
12849 lt_cv_deplibs_check_method=pass_all
12853 gnu*)
12854 lt_cv_deplibs_check_method=pass_all
12857 haiku*)
12858 lt_cv_deplibs_check_method=pass_all
12861 hpux10.20* | hpux11*)
12862 lt_cv_file_magic_cmd=/usr/bin/file
12863 case $host_cpu in
12864 ia64*)
12865 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
12866 lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
12868 hppa*64*)
12869 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]'
12870 lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
12873 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9]\.[0-9]) shared library'
12874 lt_cv_file_magic_test_file=/usr/lib/libc.sl
12876 esac
12879 interix[3-9]*)
12880 # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
12881 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
12884 irix5* | irix6* | nonstopux*)
12885 case $LD in
12886 *-32|*"-32 ") libmagic=32-bit;;
12887 *-n32|*"-n32 ") libmagic=N32;;
12888 *-64|*"-64 ") libmagic=64-bit;;
12889 *) libmagic=never-match;;
12890 esac
12891 lt_cv_deplibs_check_method=pass_all
12894 # This must be Linux ELF.
12895 linux* | k*bsd*-gnu | kopensolaris*-gnu)
12896 lt_cv_deplibs_check_method=pass_all
12899 netbsd*)
12900 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
12901 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
12902 else
12903 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
12907 newos6*)
12908 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
12909 lt_cv_file_magic_cmd=/usr/bin/file
12910 lt_cv_file_magic_test_file=/usr/lib/libnls.so
12913 *nto* | *qnx*)
12914 lt_cv_deplibs_check_method=pass_all
12917 openbsd*)
12918 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
12919 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
12920 else
12921 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
12925 osf3* | osf4* | osf5*)
12926 lt_cv_deplibs_check_method=pass_all
12929 rdos*)
12930 lt_cv_deplibs_check_method=pass_all
12933 solaris*)
12934 lt_cv_deplibs_check_method=pass_all
12937 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
12938 lt_cv_deplibs_check_method=pass_all
12941 sysv4 | sysv4.3*)
12942 case $host_vendor in
12943 motorola)
12944 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]'
12945 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
12947 ncr)
12948 lt_cv_deplibs_check_method=pass_all
12950 sequent)
12951 lt_cv_file_magic_cmd='/bin/file'
12952 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
12954 sni)
12955 lt_cv_file_magic_cmd='/bin/file'
12956 lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
12957 lt_cv_file_magic_test_file=/lib/libc.so
12959 siemens)
12960 lt_cv_deplibs_check_method=pass_all
12963 lt_cv_deplibs_check_method=pass_all
12965 esac
12968 tpf*)
12969 lt_cv_deplibs_check_method=pass_all
12971 esac
12974 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_deplibs_check_method" >&5
12975 $as_echo "$lt_cv_deplibs_check_method" >&6; }
12976 file_magic_cmd=$lt_cv_file_magic_cmd
12977 deplibs_check_method=$lt_cv_deplibs_check_method
12978 test -z "$deplibs_check_method" && deplibs_check_method=unknown
12991 if test -n "$ac_tool_prefix"; then
12992 # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
12993 set dummy ${ac_tool_prefix}ar; ac_word=$2
12994 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12995 $as_echo_n "checking for $ac_word... " >&6; }
12996 if test "${ac_cv_prog_AR+set}" = set; then :
12997 $as_echo_n "(cached) " >&6
12998 else
12999 if test -n "$AR"; then
13000 ac_cv_prog_AR="$AR" # Let the user override the test.
13001 else
13002 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13003 for as_dir in $PATH
13005 IFS=$as_save_IFS
13006 test -z "$as_dir" && as_dir=.
13007 for ac_exec_ext in '' $ac_executable_extensions; do
13008 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
13009 ac_cv_prog_AR="${ac_tool_prefix}ar"
13010 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13011 break 2
13013 done
13014 done
13015 IFS=$as_save_IFS
13019 AR=$ac_cv_prog_AR
13020 if test -n "$AR"; then
13021 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
13022 $as_echo "$AR" >&6; }
13023 else
13024 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13025 $as_echo "no" >&6; }
13030 if test -z "$ac_cv_prog_AR"; then
13031 ac_ct_AR=$AR
13032 # Extract the first word of "ar", so it can be a program name with args.
13033 set dummy ar; ac_word=$2
13034 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13035 $as_echo_n "checking for $ac_word... " >&6; }
13036 if test "${ac_cv_prog_ac_ct_AR+set}" = set; then :
13037 $as_echo_n "(cached) " >&6
13038 else
13039 if test -n "$ac_ct_AR"; then
13040 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
13041 else
13042 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13043 for as_dir in $PATH
13045 IFS=$as_save_IFS
13046 test -z "$as_dir" && as_dir=.
13047 for ac_exec_ext in '' $ac_executable_extensions; do
13048 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
13049 ac_cv_prog_ac_ct_AR="ar"
13050 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13051 break 2
13053 done
13054 done
13055 IFS=$as_save_IFS
13059 ac_ct_AR=$ac_cv_prog_ac_ct_AR
13060 if test -n "$ac_ct_AR"; then
13061 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5
13062 $as_echo "$ac_ct_AR" >&6; }
13063 else
13064 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13065 $as_echo "no" >&6; }
13068 if test "x$ac_ct_AR" = x; then
13069 AR="false"
13070 else
13071 case $cross_compiling:$ac_tool_warned in
13072 yes:)
13073 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
13074 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
13075 ac_tool_warned=yes ;;
13076 esac
13077 AR=$ac_ct_AR
13079 else
13080 AR="$ac_cv_prog_AR"
13083 test -z "$AR" && AR=ar
13084 test -z "$AR_FLAGS" && AR_FLAGS=cru
13096 if test -n "$ac_tool_prefix"; then
13097 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
13098 set dummy ${ac_tool_prefix}strip; ac_word=$2
13099 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13100 $as_echo_n "checking for $ac_word... " >&6; }
13101 if test "${ac_cv_prog_STRIP+set}" = set; then :
13102 $as_echo_n "(cached) " >&6
13103 else
13104 if test -n "$STRIP"; then
13105 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
13106 else
13107 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13108 for as_dir in $PATH
13110 IFS=$as_save_IFS
13111 test -z "$as_dir" && as_dir=.
13112 for ac_exec_ext in '' $ac_executable_extensions; do
13113 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
13114 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
13115 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13116 break 2
13118 done
13119 done
13120 IFS=$as_save_IFS
13124 STRIP=$ac_cv_prog_STRIP
13125 if test -n "$STRIP"; then
13126 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
13127 $as_echo "$STRIP" >&6; }
13128 else
13129 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13130 $as_echo "no" >&6; }
13135 if test -z "$ac_cv_prog_STRIP"; then
13136 ac_ct_STRIP=$STRIP
13137 # Extract the first word of "strip", so it can be a program name with args.
13138 set dummy strip; ac_word=$2
13139 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13140 $as_echo_n "checking for $ac_word... " >&6; }
13141 if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then :
13142 $as_echo_n "(cached) " >&6
13143 else
13144 if test -n "$ac_ct_STRIP"; then
13145 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
13146 else
13147 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13148 for as_dir in $PATH
13150 IFS=$as_save_IFS
13151 test -z "$as_dir" && as_dir=.
13152 for ac_exec_ext in '' $ac_executable_extensions; do
13153 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
13154 ac_cv_prog_ac_ct_STRIP="strip"
13155 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13156 break 2
13158 done
13159 done
13160 IFS=$as_save_IFS
13164 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
13165 if test -n "$ac_ct_STRIP"; then
13166 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
13167 $as_echo "$ac_ct_STRIP" >&6; }
13168 else
13169 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13170 $as_echo "no" >&6; }
13173 if test "x$ac_ct_STRIP" = x; then
13174 STRIP=":"
13175 else
13176 case $cross_compiling:$ac_tool_warned in
13177 yes:)
13178 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
13179 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
13180 ac_tool_warned=yes ;;
13181 esac
13182 STRIP=$ac_ct_STRIP
13184 else
13185 STRIP="$ac_cv_prog_STRIP"
13188 test -z "$STRIP" && STRIP=:
13195 if test -n "$ac_tool_prefix"; then
13196 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
13197 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
13198 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13199 $as_echo_n "checking for $ac_word... " >&6; }
13200 if test "${ac_cv_prog_RANLIB+set}" = set; then :
13201 $as_echo_n "(cached) " >&6
13202 else
13203 if test -n "$RANLIB"; then
13204 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
13205 else
13206 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13207 for as_dir in $PATH
13209 IFS=$as_save_IFS
13210 test -z "$as_dir" && as_dir=.
13211 for ac_exec_ext in '' $ac_executable_extensions; do
13212 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
13213 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
13214 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13215 break 2
13217 done
13218 done
13219 IFS=$as_save_IFS
13223 RANLIB=$ac_cv_prog_RANLIB
13224 if test -n "$RANLIB"; then
13225 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
13226 $as_echo "$RANLIB" >&6; }
13227 else
13228 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13229 $as_echo "no" >&6; }
13234 if test -z "$ac_cv_prog_RANLIB"; then
13235 ac_ct_RANLIB=$RANLIB
13236 # Extract the first word of "ranlib", so it can be a program name with args.
13237 set dummy ranlib; ac_word=$2
13238 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13239 $as_echo_n "checking for $ac_word... " >&6; }
13240 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then :
13241 $as_echo_n "(cached) " >&6
13242 else
13243 if test -n "$ac_ct_RANLIB"; then
13244 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
13245 else
13246 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13247 for as_dir in $PATH
13249 IFS=$as_save_IFS
13250 test -z "$as_dir" && as_dir=.
13251 for ac_exec_ext in '' $ac_executable_extensions; do
13252 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
13253 ac_cv_prog_ac_ct_RANLIB="ranlib"
13254 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13255 break 2
13257 done
13258 done
13259 IFS=$as_save_IFS
13263 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
13264 if test -n "$ac_ct_RANLIB"; then
13265 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
13266 $as_echo "$ac_ct_RANLIB" >&6; }
13267 else
13268 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13269 $as_echo "no" >&6; }
13272 if test "x$ac_ct_RANLIB" = x; then
13273 RANLIB=":"
13274 else
13275 case $cross_compiling:$ac_tool_warned in
13276 yes:)
13277 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
13278 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
13279 ac_tool_warned=yes ;;
13280 esac
13281 RANLIB=$ac_ct_RANLIB
13283 else
13284 RANLIB="$ac_cv_prog_RANLIB"
13287 test -z "$RANLIB" && RANLIB=:
13294 # Determine commands to create old-style static archives.
13295 old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs'
13296 old_postinstall_cmds='chmod 644 $oldlib'
13297 old_postuninstall_cmds=
13299 if test -n "$RANLIB"; then
13300 case $host_os in
13301 openbsd*)
13302 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$oldlib"
13305 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$oldlib"
13307 esac
13308 old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib"
13311 case $host_os in
13312 darwin*)
13313 lock_old_archive_extraction=yes ;;
13315 lock_old_archive_extraction=no ;;
13316 esac
13356 # If no C compiler was specified, use CC.
13357 LTCC=${LTCC-"$CC"}
13359 # If no C compiler flags were specified, use CFLAGS.
13360 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
13362 # Allow CC to be a program name with arguments.
13363 compiler=$CC
13366 # Check for command to grab the raw symbol name followed by C symbol from nm.
13367 { $as_echo "$as_me:${as_lineno-$LINENO}: checking command to parse $NM output from $compiler object" >&5
13368 $as_echo_n "checking command to parse $NM output from $compiler object... " >&6; }
13369 if test "${lt_cv_sys_global_symbol_pipe+set}" = set; then :
13370 $as_echo_n "(cached) " >&6
13371 else
13373 # These are sane defaults that work on at least a few old systems.
13374 # [They come from Ultrix. What could be older than Ultrix?!! ;)]
13376 # Character class describing NM global symbol codes.
13377 symcode='[BCDEGRST]'
13379 # Regexp to match symbols that can be accessed directly from C.
13380 sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
13382 # Define system-specific variables.
13383 case $host_os in
13384 aix*)
13385 symcode='[BCDT]'
13387 cygwin* | mingw* | pw32* | cegcc*)
13388 symcode='[ABCDGISTW]'
13390 hpux*)
13391 if test "$host_cpu" = ia64; then
13392 symcode='[ABCDEGRST]'
13395 irix* | nonstopux*)
13396 symcode='[BCDEGRST]'
13398 osf*)
13399 symcode='[BCDEGQRST]'
13401 solaris*)
13402 symcode='[BDRT]'
13404 sco3.2v5*)
13405 symcode='[DT]'
13407 sysv4.2uw2*)
13408 symcode='[DT]'
13410 sysv5* | sco5v6* | unixware* | OpenUNIX*)
13411 symcode='[ABDT]'
13413 sysv4)
13414 symcode='[DFNSTU]'
13416 esac
13418 # If we're using GNU nm, then use its standard symbol codes.
13419 case `$NM -V 2>&1` in
13420 *GNU* | *'with BFD'*)
13421 symcode='[ABCDGIRSTW]' ;;
13422 esac
13424 # Transform an extracted symbol line into a proper C declaration.
13425 # Some systems (esp. on ia64) link data and code symbols differently,
13426 # so use this general approach.
13427 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
13429 # Transform an extracted symbol line into symbol name and symbol address
13430 lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([^ ]*\) $/ {\\\"\1\\\", (void *) 0},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/ {\"\2\", (void *) \&\2},/p'"
13431 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'"
13433 # Handle CRLF in mingw tool chain
13434 opt_cr=
13435 case $build_os in
13436 mingw*)
13437 opt_cr=`$ECHO 'x\{0,1\}' | tr x '\015'` # option cr in regexp
13439 esac
13441 # Try without a prefix underscore, then with it.
13442 for ac_symprfx in "" "_"; do
13444 # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
13445 symxfrm="\\1 $ac_symprfx\\2 \\2"
13447 # Write the raw and C identifiers.
13448 if test "$lt_cv_nm_interface" = "MS dumpbin"; then
13449 # Fake it for dumpbin and say T for any non-static function
13450 # and D for any global variable.
13451 # Also find C++ and __fastcall symbols from MSVC++,
13452 # which start with @ or ?.
13453 lt_cv_sys_global_symbol_pipe="$AWK '"\
13454 " {last_section=section; section=\$ 3};"\
13455 " /Section length .*#relocs.*(pick any)/{hide[last_section]=1};"\
13456 " \$ 0!~/External *\|/{next};"\
13457 " / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};"\
13458 " {if(hide[section]) next};"\
13459 " {f=0}; \$ 0~/\(\).*\|/{f=1}; {printf f ? \"T \" : \"D \"};"\
13460 " {split(\$ 0, a, /\||\r/); split(a[2], s)};"\
13461 " s[1]~/^[@?]/{print s[1], s[1]; next};"\
13462 " s[1]~prfx {split(s[1],t,\"@\"); print t[1], substr(t[1],length(prfx))}"\
13463 " ' prfx=^$ac_symprfx"
13464 else
13465 lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
13468 # Check to see that the pipe works correctly.
13469 pipe_works=no
13471 rm -f conftest*
13472 cat > conftest.$ac_ext <<_LT_EOF
13473 #ifdef __cplusplus
13474 extern "C" {
13475 #endif
13476 char nm_test_var;
13477 void nm_test_func(void);
13478 void nm_test_func(void){}
13479 #ifdef __cplusplus
13481 #endif
13482 int main(){nm_test_var='a';nm_test_func();return(0);}
13483 _LT_EOF
13485 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
13486 (eval $ac_compile) 2>&5
13487 ac_status=$?
13488 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
13489 test $ac_status = 0; }; then
13490 # Now try to grab the symbols.
13491 nlist=conftest.nm
13492 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist\""; } >&5
13493 (eval $NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist) 2>&5
13494 ac_status=$?
13495 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
13496 test $ac_status = 0; } && test -s "$nlist"; then
13497 # Try sorting and uniquifying the output.
13498 if sort "$nlist" | uniq > "$nlist"T; then
13499 mv -f "$nlist"T "$nlist"
13500 else
13501 rm -f "$nlist"T
13504 # Make sure that we snagged all the symbols we need.
13505 if $GREP ' nm_test_var$' "$nlist" >/dev/null; then
13506 if $GREP ' nm_test_func$' "$nlist" >/dev/null; then
13507 cat <<_LT_EOF > conftest.$ac_ext
13508 #ifdef __cplusplus
13509 extern "C" {
13510 #endif
13512 _LT_EOF
13513 # Now generate the symbol file.
13514 eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | $GREP -v main >> conftest.$ac_ext'
13516 cat <<_LT_EOF >> conftest.$ac_ext
13518 /* The mapping between symbol names and symbols. */
13519 const struct {
13520 const char *name;
13521 void *address;
13523 lt__PROGRAM__LTX_preloaded_symbols[] =
13525 { "@PROGRAM@", (void *) 0 },
13526 _LT_EOF
13527 $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/ {\"\2\", (void *) \&\2},/" < "$nlist" | $GREP -v main >> conftest.$ac_ext
13528 cat <<\_LT_EOF >> conftest.$ac_ext
13529 {0, (void *) 0}
13532 /* This works around a problem in FreeBSD linker */
13533 #ifdef FREEBSD_WORKAROUND
13534 static const void *lt_preloaded_setup() {
13535 return lt__PROGRAM__LTX_preloaded_symbols;
13537 #endif
13539 #ifdef __cplusplus
13541 #endif
13542 _LT_EOF
13543 # Now try linking the two files.
13544 mv conftest.$ac_objext conftstm.$ac_objext
13545 lt_save_LIBS="$LIBS"
13546 lt_save_CFLAGS="$CFLAGS"
13547 LIBS="conftstm.$ac_objext"
13548 CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
13549 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
13550 (eval $ac_link) 2>&5
13551 ac_status=$?
13552 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
13553 test $ac_status = 0; } && test -s conftest${ac_exeext}; then
13554 pipe_works=yes
13556 LIBS="$lt_save_LIBS"
13557 CFLAGS="$lt_save_CFLAGS"
13558 else
13559 echo "cannot find nm_test_func in $nlist" >&5
13561 else
13562 echo "cannot find nm_test_var in $nlist" >&5
13564 else
13565 echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
13567 else
13568 echo "$progname: failed program was:" >&5
13569 cat conftest.$ac_ext >&5
13571 rm -rf conftest* conftst*
13573 # Do not use the global_symbol_pipe unless it works.
13574 if test "$pipe_works" = yes; then
13575 break
13576 else
13577 lt_cv_sys_global_symbol_pipe=
13579 done
13583 if test -z "$lt_cv_sys_global_symbol_pipe"; then
13584 lt_cv_sys_global_symbol_to_cdecl=
13586 if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
13587 { $as_echo "$as_me:${as_lineno-$LINENO}: result: failed" >&5
13588 $as_echo "failed" >&6; }
13589 else
13590 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5
13591 $as_echo "ok" >&6; }
13615 # Check whether --enable-libtool-lock was given.
13616 if test "${enable_libtool_lock+set}" = set; then :
13617 enableval=$enable_libtool_lock;
13620 test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
13622 # Some flags need to be propagated to the compiler or linker for good
13623 # libtool support.
13624 case $host in
13625 ia64-*-hpux*)
13626 # Find out which ABI we are using.
13627 echo 'int i;' > conftest.$ac_ext
13628 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
13629 (eval $ac_compile) 2>&5
13630 ac_status=$?
13631 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
13632 test $ac_status = 0; }; then
13633 case `/usr/bin/file conftest.$ac_objext` in
13634 *ELF-32*)
13635 HPUX_IA64_MODE="32"
13637 *ELF-64*)
13638 HPUX_IA64_MODE="64"
13640 esac
13642 rm -rf conftest*
13644 *-*-irix6*)
13645 # Find out which ABI we are using.
13646 echo '#line '$LINENO' "configure"' > conftest.$ac_ext
13647 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
13648 (eval $ac_compile) 2>&5
13649 ac_status=$?
13650 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
13651 test $ac_status = 0; }; then
13652 if test "$lt_cv_prog_gnu_ld" = yes; then
13653 case `/usr/bin/file conftest.$ac_objext` in
13654 *32-bit*)
13655 LD="${LD-ld} -melf32bsmip"
13657 *N32*)
13658 LD="${LD-ld} -melf32bmipn32"
13660 *64-bit*)
13661 LD="${LD-ld} -melf64bmip"
13663 esac
13664 else
13665 case `/usr/bin/file conftest.$ac_objext` in
13666 *32-bit*)
13667 LD="${LD-ld} -32"
13669 *N32*)
13670 LD="${LD-ld} -n32"
13672 *64-bit*)
13673 LD="${LD-ld} -64"
13675 esac
13678 rm -rf conftest*
13681 x86_64-*kfreebsd*-gnu|x86_64-*linux*|powerpc*-*linux*| \
13682 s390*-*linux*|s390*-*tpf*|sparc*-*linux*)
13683 # Find out which ABI we are using.
13684 echo 'int i;' > conftest.$ac_ext
13685 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
13686 (eval $ac_compile) 2>&5
13687 ac_status=$?
13688 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
13689 test $ac_status = 0; }; then
13690 case `/usr/bin/file conftest.o` in
13691 *32-bit*)
13692 case $host in
13693 x86_64-*kfreebsd*-gnu)
13694 LD="${LD-ld} -m elf_i386_fbsd"
13696 x86_64-*linux*)
13697 case `/usr/bin/file conftest.o` in
13698 *x86-64*)
13699 LD="${LD-ld} -m elf32_x86_64"
13702 LD="${LD-ld} -m elf_i386"
13704 esac
13706 powerpc64le-*linux*)
13707 LD="${LD-ld} -m elf32lppclinux"
13709 powerpc64-*linux*)
13710 LD="${LD-ld} -m elf32ppclinux"
13712 s390x-*linux*)
13713 LD="${LD-ld} -m elf_s390"
13715 sparc64-*linux*)
13716 LD="${LD-ld} -m elf32_sparc"
13718 esac
13720 *64-bit*)
13721 case $host in
13722 x86_64-*kfreebsd*-gnu)
13723 LD="${LD-ld} -m elf_x86_64_fbsd"
13725 x86_64-*linux*)
13726 LD="${LD-ld} -m elf_x86_64"
13728 powerpcle-*linux*)
13729 LD="${LD-ld} -m elf64lppc"
13731 powerpc-*linux*)
13732 LD="${LD-ld} -m elf64ppc"
13734 s390*-*linux*|s390*-*tpf*)
13735 LD="${LD-ld} -m elf64_s390"
13737 sparc*-*linux*)
13738 LD="${LD-ld} -m elf64_sparc"
13740 esac
13742 esac
13744 rm -rf conftest*
13747 *-*-sco3.2v5*)
13748 # On SCO OpenServer 5, we need -belf to get full-featured binaries.
13749 SAVE_CFLAGS="$CFLAGS"
13750 CFLAGS="$CFLAGS -belf"
13751 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler needs -belf" >&5
13752 $as_echo_n "checking whether the C compiler needs -belf... " >&6; }
13753 if test "${lt_cv_cc_needs_belf+set}" = set; then :
13754 $as_echo_n "(cached) " >&6
13755 else
13756 ac_ext=c
13757 ac_cpp='$CPP $CPPFLAGS'
13758 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
13759 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13760 ac_compiler_gnu=$ac_cv_c_compiler_gnu
13762 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13763 /* end confdefs.h. */
13766 main ()
13770 return 0;
13772 _ACEOF
13773 if ac_fn_c_try_link "$LINENO"; then :
13774 lt_cv_cc_needs_belf=yes
13775 else
13776 lt_cv_cc_needs_belf=no
13778 rm -f core conftest.err conftest.$ac_objext \
13779 conftest$ac_exeext conftest.$ac_ext
13780 ac_ext=c
13781 ac_cpp='$CPP $CPPFLAGS'
13782 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
13783 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13784 ac_compiler_gnu=$ac_cv_c_compiler_gnu
13787 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_cc_needs_belf" >&5
13788 $as_echo "$lt_cv_cc_needs_belf" >&6; }
13789 if test x"$lt_cv_cc_needs_belf" != x"yes"; then
13790 # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
13791 CFLAGS="$SAVE_CFLAGS"
13794 sparc*-*solaris*)
13795 # Find out which ABI we are using.
13796 echo 'int i;' > conftest.$ac_ext
13797 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
13798 (eval $ac_compile) 2>&5
13799 ac_status=$?
13800 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
13801 test $ac_status = 0; }; then
13802 case `/usr/bin/file conftest.o` in
13803 *64-bit*)
13804 case $lt_cv_prog_gnu_ld in
13805 yes*) LD="${LD-ld} -m elf64_sparc" ;;
13807 if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then
13808 LD="${LD-ld} -64"
13811 esac
13813 esac
13815 rm -rf conftest*
13817 esac
13819 need_locks="$enable_libtool_lock"
13822 case $host_os in
13823 rhapsody* | darwin*)
13824 if test -n "$ac_tool_prefix"; then
13825 # Extract the first word of "${ac_tool_prefix}dsymutil", so it can be a program name with args.
13826 set dummy ${ac_tool_prefix}dsymutil; ac_word=$2
13827 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13828 $as_echo_n "checking for $ac_word... " >&6; }
13829 if test "${ac_cv_prog_DSYMUTIL+set}" = set; then :
13830 $as_echo_n "(cached) " >&6
13831 else
13832 if test -n "$DSYMUTIL"; then
13833 ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test.
13834 else
13835 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13836 for as_dir in $PATH
13838 IFS=$as_save_IFS
13839 test -z "$as_dir" && as_dir=.
13840 for ac_exec_ext in '' $ac_executable_extensions; do
13841 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
13842 ac_cv_prog_DSYMUTIL="${ac_tool_prefix}dsymutil"
13843 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13844 break 2
13846 done
13847 done
13848 IFS=$as_save_IFS
13852 DSYMUTIL=$ac_cv_prog_DSYMUTIL
13853 if test -n "$DSYMUTIL"; then
13854 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DSYMUTIL" >&5
13855 $as_echo "$DSYMUTIL" >&6; }
13856 else
13857 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13858 $as_echo "no" >&6; }
13863 if test -z "$ac_cv_prog_DSYMUTIL"; then
13864 ac_ct_DSYMUTIL=$DSYMUTIL
13865 # Extract the first word of "dsymutil", so it can be a program name with args.
13866 set dummy dsymutil; ac_word=$2
13867 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13868 $as_echo_n "checking for $ac_word... " >&6; }
13869 if test "${ac_cv_prog_ac_ct_DSYMUTIL+set}" = set; then :
13870 $as_echo_n "(cached) " >&6
13871 else
13872 if test -n "$ac_ct_DSYMUTIL"; then
13873 ac_cv_prog_ac_ct_DSYMUTIL="$ac_ct_DSYMUTIL" # Let the user override the test.
13874 else
13875 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13876 for as_dir in $PATH
13878 IFS=$as_save_IFS
13879 test -z "$as_dir" && as_dir=.
13880 for ac_exec_ext in '' $ac_executable_extensions; do
13881 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
13882 ac_cv_prog_ac_ct_DSYMUTIL="dsymutil"
13883 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13884 break 2
13886 done
13887 done
13888 IFS=$as_save_IFS
13892 ac_ct_DSYMUTIL=$ac_cv_prog_ac_ct_DSYMUTIL
13893 if test -n "$ac_ct_DSYMUTIL"; then
13894 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DSYMUTIL" >&5
13895 $as_echo "$ac_ct_DSYMUTIL" >&6; }
13896 else
13897 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13898 $as_echo "no" >&6; }
13901 if test "x$ac_ct_DSYMUTIL" = x; then
13902 DSYMUTIL=":"
13903 else
13904 case $cross_compiling:$ac_tool_warned in
13905 yes:)
13906 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
13907 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
13908 ac_tool_warned=yes ;;
13909 esac
13910 DSYMUTIL=$ac_ct_DSYMUTIL
13912 else
13913 DSYMUTIL="$ac_cv_prog_DSYMUTIL"
13916 if test -n "$ac_tool_prefix"; then
13917 # Extract the first word of "${ac_tool_prefix}nmedit", so it can be a program name with args.
13918 set dummy ${ac_tool_prefix}nmedit; ac_word=$2
13919 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13920 $as_echo_n "checking for $ac_word... " >&6; }
13921 if test "${ac_cv_prog_NMEDIT+set}" = set; then :
13922 $as_echo_n "(cached) " >&6
13923 else
13924 if test -n "$NMEDIT"; then
13925 ac_cv_prog_NMEDIT="$NMEDIT" # Let the user override the test.
13926 else
13927 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13928 for as_dir in $PATH
13930 IFS=$as_save_IFS
13931 test -z "$as_dir" && as_dir=.
13932 for ac_exec_ext in '' $ac_executable_extensions; do
13933 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
13934 ac_cv_prog_NMEDIT="${ac_tool_prefix}nmedit"
13935 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13936 break 2
13938 done
13939 done
13940 IFS=$as_save_IFS
13944 NMEDIT=$ac_cv_prog_NMEDIT
13945 if test -n "$NMEDIT"; then
13946 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NMEDIT" >&5
13947 $as_echo "$NMEDIT" >&6; }
13948 else
13949 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13950 $as_echo "no" >&6; }
13955 if test -z "$ac_cv_prog_NMEDIT"; then
13956 ac_ct_NMEDIT=$NMEDIT
13957 # Extract the first word of "nmedit", so it can be a program name with args.
13958 set dummy nmedit; ac_word=$2
13959 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13960 $as_echo_n "checking for $ac_word... " >&6; }
13961 if test "${ac_cv_prog_ac_ct_NMEDIT+set}" = set; then :
13962 $as_echo_n "(cached) " >&6
13963 else
13964 if test -n "$ac_ct_NMEDIT"; then
13965 ac_cv_prog_ac_ct_NMEDIT="$ac_ct_NMEDIT" # Let the user override the test.
13966 else
13967 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13968 for as_dir in $PATH
13970 IFS=$as_save_IFS
13971 test -z "$as_dir" && as_dir=.
13972 for ac_exec_ext in '' $ac_executable_extensions; do
13973 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
13974 ac_cv_prog_ac_ct_NMEDIT="nmedit"
13975 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13976 break 2
13978 done
13979 done
13980 IFS=$as_save_IFS
13984 ac_ct_NMEDIT=$ac_cv_prog_ac_ct_NMEDIT
13985 if test -n "$ac_ct_NMEDIT"; then
13986 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_NMEDIT" >&5
13987 $as_echo "$ac_ct_NMEDIT" >&6; }
13988 else
13989 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13990 $as_echo "no" >&6; }
13993 if test "x$ac_ct_NMEDIT" = x; then
13994 NMEDIT=":"
13995 else
13996 case $cross_compiling:$ac_tool_warned in
13997 yes:)
13998 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
13999 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
14000 ac_tool_warned=yes ;;
14001 esac
14002 NMEDIT=$ac_ct_NMEDIT
14004 else
14005 NMEDIT="$ac_cv_prog_NMEDIT"
14008 if test -n "$ac_tool_prefix"; then
14009 # Extract the first word of "${ac_tool_prefix}lipo", so it can be a program name with args.
14010 set dummy ${ac_tool_prefix}lipo; ac_word=$2
14011 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
14012 $as_echo_n "checking for $ac_word... " >&6; }
14013 if test "${ac_cv_prog_LIPO+set}" = set; then :
14014 $as_echo_n "(cached) " >&6
14015 else
14016 if test -n "$LIPO"; then
14017 ac_cv_prog_LIPO="$LIPO" # Let the user override the test.
14018 else
14019 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14020 for as_dir in $PATH
14022 IFS=$as_save_IFS
14023 test -z "$as_dir" && as_dir=.
14024 for ac_exec_ext in '' $ac_executable_extensions; do
14025 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
14026 ac_cv_prog_LIPO="${ac_tool_prefix}lipo"
14027 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
14028 break 2
14030 done
14031 done
14032 IFS=$as_save_IFS
14036 LIPO=$ac_cv_prog_LIPO
14037 if test -n "$LIPO"; then
14038 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO" >&5
14039 $as_echo "$LIPO" >&6; }
14040 else
14041 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14042 $as_echo "no" >&6; }
14047 if test -z "$ac_cv_prog_LIPO"; then
14048 ac_ct_LIPO=$LIPO
14049 # Extract the first word of "lipo", so it can be a program name with args.
14050 set dummy lipo; ac_word=$2
14051 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
14052 $as_echo_n "checking for $ac_word... " >&6; }
14053 if test "${ac_cv_prog_ac_ct_LIPO+set}" = set; then :
14054 $as_echo_n "(cached) " >&6
14055 else
14056 if test -n "$ac_ct_LIPO"; then
14057 ac_cv_prog_ac_ct_LIPO="$ac_ct_LIPO" # Let the user override the test.
14058 else
14059 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14060 for as_dir in $PATH
14062 IFS=$as_save_IFS
14063 test -z "$as_dir" && as_dir=.
14064 for ac_exec_ext in '' $ac_executable_extensions; do
14065 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
14066 ac_cv_prog_ac_ct_LIPO="lipo"
14067 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
14068 break 2
14070 done
14071 done
14072 IFS=$as_save_IFS
14076 ac_ct_LIPO=$ac_cv_prog_ac_ct_LIPO
14077 if test -n "$ac_ct_LIPO"; then
14078 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_LIPO" >&5
14079 $as_echo "$ac_ct_LIPO" >&6; }
14080 else
14081 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14082 $as_echo "no" >&6; }
14085 if test "x$ac_ct_LIPO" = x; then
14086 LIPO=":"
14087 else
14088 case $cross_compiling:$ac_tool_warned in
14089 yes:)
14090 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
14091 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
14092 ac_tool_warned=yes ;;
14093 esac
14094 LIPO=$ac_ct_LIPO
14096 else
14097 LIPO="$ac_cv_prog_LIPO"
14100 if test -n "$ac_tool_prefix"; then
14101 # Extract the first word of "${ac_tool_prefix}otool", so it can be a program name with args.
14102 set dummy ${ac_tool_prefix}otool; ac_word=$2
14103 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
14104 $as_echo_n "checking for $ac_word... " >&6; }
14105 if test "${ac_cv_prog_OTOOL+set}" = set; then :
14106 $as_echo_n "(cached) " >&6
14107 else
14108 if test -n "$OTOOL"; then
14109 ac_cv_prog_OTOOL="$OTOOL" # Let the user override the test.
14110 else
14111 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14112 for as_dir in $PATH
14114 IFS=$as_save_IFS
14115 test -z "$as_dir" && as_dir=.
14116 for ac_exec_ext in '' $ac_executable_extensions; do
14117 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
14118 ac_cv_prog_OTOOL="${ac_tool_prefix}otool"
14119 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
14120 break 2
14122 done
14123 done
14124 IFS=$as_save_IFS
14128 OTOOL=$ac_cv_prog_OTOOL
14129 if test -n "$OTOOL"; then
14130 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL" >&5
14131 $as_echo "$OTOOL" >&6; }
14132 else
14133 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14134 $as_echo "no" >&6; }
14139 if test -z "$ac_cv_prog_OTOOL"; then
14140 ac_ct_OTOOL=$OTOOL
14141 # Extract the first word of "otool", so it can be a program name with args.
14142 set dummy otool; ac_word=$2
14143 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
14144 $as_echo_n "checking for $ac_word... " >&6; }
14145 if test "${ac_cv_prog_ac_ct_OTOOL+set}" = set; then :
14146 $as_echo_n "(cached) " >&6
14147 else
14148 if test -n "$ac_ct_OTOOL"; then
14149 ac_cv_prog_ac_ct_OTOOL="$ac_ct_OTOOL" # Let the user override the test.
14150 else
14151 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14152 for as_dir in $PATH
14154 IFS=$as_save_IFS
14155 test -z "$as_dir" && as_dir=.
14156 for ac_exec_ext in '' $ac_executable_extensions; do
14157 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
14158 ac_cv_prog_ac_ct_OTOOL="otool"
14159 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
14160 break 2
14162 done
14163 done
14164 IFS=$as_save_IFS
14168 ac_ct_OTOOL=$ac_cv_prog_ac_ct_OTOOL
14169 if test -n "$ac_ct_OTOOL"; then
14170 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL" >&5
14171 $as_echo "$ac_ct_OTOOL" >&6; }
14172 else
14173 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14174 $as_echo "no" >&6; }
14177 if test "x$ac_ct_OTOOL" = x; then
14178 OTOOL=":"
14179 else
14180 case $cross_compiling:$ac_tool_warned in
14181 yes:)
14182 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
14183 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
14184 ac_tool_warned=yes ;;
14185 esac
14186 OTOOL=$ac_ct_OTOOL
14188 else
14189 OTOOL="$ac_cv_prog_OTOOL"
14192 if test -n "$ac_tool_prefix"; then
14193 # Extract the first word of "${ac_tool_prefix}otool64", so it can be a program name with args.
14194 set dummy ${ac_tool_prefix}otool64; ac_word=$2
14195 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
14196 $as_echo_n "checking for $ac_word... " >&6; }
14197 if test "${ac_cv_prog_OTOOL64+set}" = set; then :
14198 $as_echo_n "(cached) " >&6
14199 else
14200 if test -n "$OTOOL64"; then
14201 ac_cv_prog_OTOOL64="$OTOOL64" # Let the user override the test.
14202 else
14203 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14204 for as_dir in $PATH
14206 IFS=$as_save_IFS
14207 test -z "$as_dir" && as_dir=.
14208 for ac_exec_ext in '' $ac_executable_extensions; do
14209 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
14210 ac_cv_prog_OTOOL64="${ac_tool_prefix}otool64"
14211 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
14212 break 2
14214 done
14215 done
14216 IFS=$as_save_IFS
14220 OTOOL64=$ac_cv_prog_OTOOL64
14221 if test -n "$OTOOL64"; then
14222 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL64" >&5
14223 $as_echo "$OTOOL64" >&6; }
14224 else
14225 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14226 $as_echo "no" >&6; }
14231 if test -z "$ac_cv_prog_OTOOL64"; then
14232 ac_ct_OTOOL64=$OTOOL64
14233 # Extract the first word of "otool64", so it can be a program name with args.
14234 set dummy otool64; ac_word=$2
14235 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
14236 $as_echo_n "checking for $ac_word... " >&6; }
14237 if test "${ac_cv_prog_ac_ct_OTOOL64+set}" = set; then :
14238 $as_echo_n "(cached) " >&6
14239 else
14240 if test -n "$ac_ct_OTOOL64"; then
14241 ac_cv_prog_ac_ct_OTOOL64="$ac_ct_OTOOL64" # Let the user override the test.
14242 else
14243 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14244 for as_dir in $PATH
14246 IFS=$as_save_IFS
14247 test -z "$as_dir" && as_dir=.
14248 for ac_exec_ext in '' $ac_executable_extensions; do
14249 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
14250 ac_cv_prog_ac_ct_OTOOL64="otool64"
14251 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
14252 break 2
14254 done
14255 done
14256 IFS=$as_save_IFS
14260 ac_ct_OTOOL64=$ac_cv_prog_ac_ct_OTOOL64
14261 if test -n "$ac_ct_OTOOL64"; then
14262 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL64" >&5
14263 $as_echo "$ac_ct_OTOOL64" >&6; }
14264 else
14265 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14266 $as_echo "no" >&6; }
14269 if test "x$ac_ct_OTOOL64" = x; then
14270 OTOOL64=":"
14271 else
14272 case $cross_compiling:$ac_tool_warned in
14273 yes:)
14274 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
14275 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
14276 ac_tool_warned=yes ;;
14277 esac
14278 OTOOL64=$ac_ct_OTOOL64
14280 else
14281 OTOOL64="$ac_cv_prog_OTOOL64"
14310 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -single_module linker flag" >&5
14311 $as_echo_n "checking for -single_module linker flag... " >&6; }
14312 if test "${lt_cv_apple_cc_single_mod+set}" = set; then :
14313 $as_echo_n "(cached) " >&6
14314 else
14315 lt_cv_apple_cc_single_mod=no
14316 if test -z "${LT_MULTI_MODULE}"; then
14317 # By default we will add the -single_module flag. You can override
14318 # by either setting the environment variable LT_MULTI_MODULE
14319 # non-empty at configure time, or by adding -multi_module to the
14320 # link flags.
14321 rm -rf libconftest.dylib*
14322 echo "int foo(void){return 1;}" > conftest.c
14323 echo "$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
14324 -dynamiclib -Wl,-single_module conftest.c" >&5
14325 $LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
14326 -dynamiclib -Wl,-single_module conftest.c 2>conftest.err
14327 _lt_result=$?
14328 if test -f libconftest.dylib && test ! -s conftest.err && test $_lt_result = 0; then
14329 lt_cv_apple_cc_single_mod=yes
14330 else
14331 cat conftest.err >&5
14333 rm -rf libconftest.dylib*
14334 rm -f conftest.*
14337 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_apple_cc_single_mod" >&5
14338 $as_echo "$lt_cv_apple_cc_single_mod" >&6; }
14339 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -exported_symbols_list linker flag" >&5
14340 $as_echo_n "checking for -exported_symbols_list linker flag... " >&6; }
14341 if test "${lt_cv_ld_exported_symbols_list+set}" = set; then :
14342 $as_echo_n "(cached) " >&6
14343 else
14344 lt_cv_ld_exported_symbols_list=no
14345 save_LDFLAGS=$LDFLAGS
14346 echo "_main" > conftest.sym
14347 LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym"
14348 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14349 /* end confdefs.h. */
14352 main ()
14356 return 0;
14358 _ACEOF
14359 if ac_fn_c_try_link "$LINENO"; then :
14360 lt_cv_ld_exported_symbols_list=yes
14361 else
14362 lt_cv_ld_exported_symbols_list=no
14364 rm -f core conftest.err conftest.$ac_objext \
14365 conftest$ac_exeext conftest.$ac_ext
14366 LDFLAGS="$save_LDFLAGS"
14369 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_exported_symbols_list" >&5
14370 $as_echo "$lt_cv_ld_exported_symbols_list" >&6; }
14371 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -force_load linker flag" >&5
14372 $as_echo_n "checking for -force_load linker flag... " >&6; }
14373 if test "${lt_cv_ld_force_load+set}" = set; then :
14374 $as_echo_n "(cached) " >&6
14375 else
14376 lt_cv_ld_force_load=no
14377 cat > conftest.c << _LT_EOF
14378 int forced_loaded() { return 2;}
14379 _LT_EOF
14380 echo "$LTCC $LTCFLAGS -c -o conftest.o conftest.c" >&5
14381 $LTCC $LTCFLAGS -c -o conftest.o conftest.c 2>&5
14382 echo "$AR cru libconftest.a conftest.o" >&5
14383 $AR cru libconftest.a conftest.o 2>&5
14384 cat > conftest.c << _LT_EOF
14385 int main() { return 0;}
14386 _LT_EOF
14387 echo "$LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a" >&5
14388 $LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a 2>conftest.err
14389 _lt_result=$?
14390 if test -f conftest && test ! -s conftest.err && test $_lt_result = 0 && $GREP forced_load conftest 2>&1 >/dev/null; then
14391 lt_cv_ld_force_load=yes
14392 else
14393 cat conftest.err >&5
14395 rm -f conftest.err libconftest.a conftest conftest.c
14396 rm -rf conftest.dSYM
14399 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_force_load" >&5
14400 $as_echo "$lt_cv_ld_force_load" >&6; }
14401 case $host_os in
14402 rhapsody* | darwin1.[012])
14403 _lt_dar_allow_undefined='${wl}-undefined ${wl}suppress' ;;
14404 darwin1.*)
14405 _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
14406 darwin*) # darwin 5.x on
14407 # if running on 10.5 or later, the deployment target defaults
14408 # to the OS version, if on x86, and 10.4, the deployment
14409 # target defaults to 10.4. Don't you love it?
14410 case ${MACOSX_DEPLOYMENT_TARGET-10.0},$host in
14411 10.0,*86*-darwin8*|10.0,*-darwin[91]*)
14412 _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
14413 10.[012]*)
14414 _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
14415 10.*)
14416 _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
14417 esac
14419 esac
14420 if test "$lt_cv_apple_cc_single_mod" = "yes"; then
14421 _lt_dar_single_mod='$single_module'
14423 if test "$lt_cv_ld_exported_symbols_list" = "yes"; then
14424 _lt_dar_export_syms=' ${wl}-exported_symbols_list,$output_objdir/${libname}-symbols.expsym'
14425 else
14426 _lt_dar_export_syms='~$NMEDIT -s $output_objdir/${libname}-symbols.expsym ${lib}'
14428 if test "$DSYMUTIL" != ":" && test "$lt_cv_ld_force_load" = "no"; then
14429 _lt_dsymutil='~$DSYMUTIL $lib || :'
14430 else
14431 _lt_dsymutil=
14434 esac
14436 for ac_header in dlfcn.h
14437 do :
14438 ac_fn_c_check_header_preproc "$LINENO" "dlfcn.h" "ac_cv_header_dlfcn_h"
14439 if test "x$ac_cv_header_dlfcn_h" = x""yes; then :
14440 cat >>confdefs.h <<_ACEOF
14441 #define HAVE_DLFCN_H 1
14442 _ACEOF
14445 done
14451 # Set options
14455 enable_dlopen=no
14458 enable_win32_dll=no
14461 # Check whether --enable-shared was given.
14462 if test "${enable_shared+set}" = set; then :
14463 enableval=$enable_shared; p=${PACKAGE-default}
14464 case $enableval in
14465 yes) enable_shared=yes ;;
14466 no) enable_shared=no ;;
14468 enable_shared=no
14469 # Look at the argument we got. We use all the common list separators.
14470 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
14471 for pkg in $enableval; do
14472 IFS="$lt_save_ifs"
14473 if test "X$pkg" = "X$p"; then
14474 enable_shared=yes
14476 done
14477 IFS="$lt_save_ifs"
14479 esac
14480 else
14481 enable_shared=yes
14492 # Check whether --enable-static was given.
14493 if test "${enable_static+set}" = set; then :
14494 enableval=$enable_static; p=${PACKAGE-default}
14495 case $enableval in
14496 yes) enable_static=yes ;;
14497 no) enable_static=no ;;
14499 enable_static=no
14500 # Look at the argument we got. We use all the common list separators.
14501 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
14502 for pkg in $enableval; do
14503 IFS="$lt_save_ifs"
14504 if test "X$pkg" = "X$p"; then
14505 enable_static=yes
14507 done
14508 IFS="$lt_save_ifs"
14510 esac
14511 else
14512 enable_static=yes
14524 # Check whether --with-pic was given.
14525 if test "${with_pic+set}" = set; then :
14526 withval=$with_pic; p=${PACKAGE-default}
14527 case "$withval" in
14528 yes|no) pic_mode="$withval" ;;
14530 pic_mode=default
14531 # Look at the argument we got. We use all the common list separators.
14532 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
14533 for pkg in $withval; do
14534 IFS="$lt_save_ifs"
14535 if test "X$pkg" = "X$p"; then
14536 pic_mode=yes
14538 done
14539 IFS="$lt_save_ifs"
14541 esac
14542 else
14543 pic_mode=default
14547 test -z "$pic_mode" && pic_mode=default
14555 # Check whether --enable-fast-install was given.
14556 if test "${enable_fast_install+set}" = set; then :
14557 enableval=$enable_fast_install; p=${PACKAGE-default}
14558 case $enableval in
14559 yes) enable_fast_install=yes ;;
14560 no) enable_fast_install=no ;;
14562 enable_fast_install=no
14563 # Look at the argument we got. We use all the common list separators.
14564 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
14565 for pkg in $enableval; do
14566 IFS="$lt_save_ifs"
14567 if test "X$pkg" = "X$p"; then
14568 enable_fast_install=yes
14570 done
14571 IFS="$lt_save_ifs"
14573 esac
14574 else
14575 enable_fast_install=yes
14588 # This can be used to rebuild libtool when needed
14589 LIBTOOL_DEPS="$ltmain"
14591 # Always use our own libtool.
14592 LIBTOOL='$(SHELL) $(top_builddir)/libtool'
14619 test -z "$LN_S" && LN_S="ln -s"
14634 if test -n "${ZSH_VERSION+set}" ; then
14635 setopt NO_GLOB_SUBST
14638 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for objdir" >&5
14639 $as_echo_n "checking for objdir... " >&6; }
14640 if test "${lt_cv_objdir+set}" = set; then :
14641 $as_echo_n "(cached) " >&6
14642 else
14643 rm -f .libs 2>/dev/null
14644 mkdir .libs 2>/dev/null
14645 if test -d .libs; then
14646 lt_cv_objdir=.libs
14647 else
14648 # MS-DOS does not allow filenames that begin with a dot.
14649 lt_cv_objdir=_libs
14651 rmdir .libs 2>/dev/null
14653 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_objdir" >&5
14654 $as_echo "$lt_cv_objdir" >&6; }
14655 objdir=$lt_cv_objdir
14661 cat >>confdefs.h <<_ACEOF
14662 #define LT_OBJDIR "$lt_cv_objdir/"
14663 _ACEOF
14668 case $host_os in
14669 aix3*)
14670 # AIX sometimes has problems with the GCC collect2 program. For some
14671 # reason, if we set the COLLECT_NAMES environment variable, the problems
14672 # vanish in a puff of smoke.
14673 if test "X${COLLECT_NAMES+set}" != Xset; then
14674 COLLECT_NAMES=
14675 export COLLECT_NAMES
14678 esac
14680 # Global variables:
14681 ofile=libtool
14682 can_build_shared=yes
14684 # All known linkers require a `.a' archive for static linking (except MSVC,
14685 # which needs '.lib').
14686 libext=a
14688 with_gnu_ld="$lt_cv_prog_gnu_ld"
14690 old_CC="$CC"
14691 old_CFLAGS="$CFLAGS"
14693 # Set sane defaults for various variables
14694 test -z "$CC" && CC=cc
14695 test -z "$LTCC" && LTCC=$CC
14696 test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
14697 test -z "$LD" && LD=ld
14698 test -z "$ac_objext" && ac_objext=o
14700 for cc_temp in $compiler""; do
14701 case $cc_temp in
14702 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
14703 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
14704 \-*) ;;
14705 *) break;;
14706 esac
14707 done
14708 cc_basename=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
14711 # Only perform the check for file, if the check method requires it
14712 test -z "$MAGIC_CMD" && MAGIC_CMD=file
14713 case $deplibs_check_method in
14714 file_magic*)
14715 if test "$file_magic_cmd" = '$MAGIC_CMD'; then
14716 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ac_tool_prefix}file" >&5
14717 $as_echo_n "checking for ${ac_tool_prefix}file... " >&6; }
14718 if test "${lt_cv_path_MAGIC_CMD+set}" = set; then :
14719 $as_echo_n "(cached) " >&6
14720 else
14721 case $MAGIC_CMD in
14722 [\\/*] | ?:[\\/]*)
14723 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
14726 lt_save_MAGIC_CMD="$MAGIC_CMD"
14727 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
14728 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
14729 for ac_dir in $ac_dummy; do
14730 IFS="$lt_save_ifs"
14731 test -z "$ac_dir" && ac_dir=.
14732 if test -f $ac_dir/${ac_tool_prefix}file; then
14733 lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
14734 if test -n "$file_magic_test_file"; then
14735 case $deplibs_check_method in
14736 "file_magic "*)
14737 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
14738 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
14739 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
14740 $EGREP "$file_magic_regex" > /dev/null; then
14742 else
14743 cat <<_LT_EOF 1>&2
14745 *** Warning: the command libtool uses to detect shared libraries,
14746 *** $file_magic_cmd, produces output that libtool cannot recognize.
14747 *** The result is that libtool may fail to recognize shared libraries
14748 *** as such. This will affect the creation of libtool libraries that
14749 *** depend on shared libraries, but programs linked with such libtool
14750 *** libraries will work regardless of this problem. Nevertheless, you
14751 *** may want to report the problem to your system manager and/or to
14752 *** bug-libtool@gnu.org
14754 _LT_EOF
14755 fi ;;
14756 esac
14758 break
14760 done
14761 IFS="$lt_save_ifs"
14762 MAGIC_CMD="$lt_save_MAGIC_CMD"
14764 esac
14767 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
14768 if test -n "$MAGIC_CMD"; then
14769 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
14770 $as_echo "$MAGIC_CMD" >&6; }
14771 else
14772 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14773 $as_echo "no" >&6; }
14780 if test -z "$lt_cv_path_MAGIC_CMD"; then
14781 if test -n "$ac_tool_prefix"; then
14782 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for file" >&5
14783 $as_echo_n "checking for file... " >&6; }
14784 if test "${lt_cv_path_MAGIC_CMD+set}" = set; then :
14785 $as_echo_n "(cached) " >&6
14786 else
14787 case $MAGIC_CMD in
14788 [\\/*] | ?:[\\/]*)
14789 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
14792 lt_save_MAGIC_CMD="$MAGIC_CMD"
14793 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
14794 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
14795 for ac_dir in $ac_dummy; do
14796 IFS="$lt_save_ifs"
14797 test -z "$ac_dir" && ac_dir=.
14798 if test -f $ac_dir/file; then
14799 lt_cv_path_MAGIC_CMD="$ac_dir/file"
14800 if test -n "$file_magic_test_file"; then
14801 case $deplibs_check_method in
14802 "file_magic "*)
14803 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
14804 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
14805 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
14806 $EGREP "$file_magic_regex" > /dev/null; then
14808 else
14809 cat <<_LT_EOF 1>&2
14811 *** Warning: the command libtool uses to detect shared libraries,
14812 *** $file_magic_cmd, produces output that libtool cannot recognize.
14813 *** The result is that libtool may fail to recognize shared libraries
14814 *** as such. This will affect the creation of libtool libraries that
14815 *** depend on shared libraries, but programs linked with such libtool
14816 *** libraries will work regardless of this problem. Nevertheless, you
14817 *** may want to report the problem to your system manager and/or to
14818 *** bug-libtool@gnu.org
14820 _LT_EOF
14821 fi ;;
14822 esac
14824 break
14826 done
14827 IFS="$lt_save_ifs"
14828 MAGIC_CMD="$lt_save_MAGIC_CMD"
14830 esac
14833 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
14834 if test -n "$MAGIC_CMD"; then
14835 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
14836 $as_echo "$MAGIC_CMD" >&6; }
14837 else
14838 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14839 $as_echo "no" >&6; }
14843 else
14844 MAGIC_CMD=:
14850 esac
14852 # Use C for the default configuration in the libtool script
14854 lt_save_CC="$CC"
14855 ac_ext=c
14856 ac_cpp='$CPP $CPPFLAGS'
14857 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
14858 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
14859 ac_compiler_gnu=$ac_cv_c_compiler_gnu
14862 # Source file extension for C test sources.
14863 ac_ext=c
14865 # Object file extension for compiled C test sources.
14866 objext=o
14867 objext=$objext
14869 # Code to be used in simple compile tests
14870 lt_simple_compile_test_code="int some_variable = 0;"
14872 # Code to be used in simple link tests
14873 lt_simple_link_test_code='int main(){return(0);}'
14881 # If no C compiler was specified, use CC.
14882 LTCC=${LTCC-"$CC"}
14884 # If no C compiler flags were specified, use CFLAGS.
14885 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
14887 # Allow CC to be a program name with arguments.
14888 compiler=$CC
14890 # Save the default compiler, since it gets overwritten when the other
14891 # tags are being tested, and _LT_TAGVAR(compiler, []) is a NOP.
14892 compiler_DEFAULT=$CC
14894 # save warnings/boilerplate of simple test code
14895 ac_outfile=conftest.$ac_objext
14896 echo "$lt_simple_compile_test_code" >conftest.$ac_ext
14897 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
14898 _lt_compiler_boilerplate=`cat conftest.err`
14899 $RM conftest*
14901 ac_outfile=conftest.$ac_objext
14902 echo "$lt_simple_link_test_code" >conftest.$ac_ext
14903 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
14904 _lt_linker_boilerplate=`cat conftest.err`
14905 $RM -r conftest*
14908 ## CAVEAT EMPTOR:
14909 ## There is no encapsulation within the following macros, do not change
14910 ## the running order or otherwise move them around unless you know exactly
14911 ## what you are doing...
14912 if test -n "$compiler"; then
14914 lt_prog_compiler_no_builtin_flag=
14916 if test "$GCC" = yes; then
14917 case $cc_basename in
14918 nvcc*)
14919 lt_prog_compiler_no_builtin_flag=' -Xcompiler -fno-builtin' ;;
14921 lt_prog_compiler_no_builtin_flag=' -fno-builtin' ;;
14922 esac
14924 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
14925 $as_echo_n "checking if $compiler supports -fno-rtti -fno-exceptions... " >&6; }
14926 if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then :
14927 $as_echo_n "(cached) " >&6
14928 else
14929 lt_cv_prog_compiler_rtti_exceptions=no
14930 ac_outfile=conftest.$ac_objext
14931 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
14932 lt_compiler_flag="-fno-rtti -fno-exceptions"
14933 # Insert the option either (1) after the last *FLAGS variable, or
14934 # (2) before a word containing "conftest.", or (3) at the end.
14935 # Note that $ac_compile itself does not contain backslashes and begins
14936 # with a dollar sign (not a hyphen), so the echo should work correctly.
14937 # The option is referenced via a variable to avoid confusing sed.
14938 lt_compile=`echo "$ac_compile" | $SED \
14939 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
14940 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
14941 -e 's:$: $lt_compiler_flag:'`
14942 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
14943 (eval "$lt_compile" 2>conftest.err)
14944 ac_status=$?
14945 cat conftest.err >&5
14946 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14947 if (exit $ac_status) && test -s "$ac_outfile"; then
14948 # The compiler can only warn and ignore the option if not recognized
14949 # So say no if there are warnings other than the usual output.
14950 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
14951 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
14952 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
14953 lt_cv_prog_compiler_rtti_exceptions=yes
14956 $RM conftest*
14959 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
14960 $as_echo "$lt_cv_prog_compiler_rtti_exceptions" >&6; }
14962 if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
14963 lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
14964 else
14975 lt_prog_compiler_wl=
14976 lt_prog_compiler_pic=
14977 lt_prog_compiler_static=
14979 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
14980 $as_echo_n "checking for $compiler option to produce PIC... " >&6; }
14982 if test "$GCC" = yes; then
14983 lt_prog_compiler_wl='-Wl,'
14984 lt_prog_compiler_static='-static'
14986 case $host_os in
14987 aix*)
14988 # All AIX code is PIC.
14989 if test "$host_cpu" = ia64; then
14990 # AIX 5 now supports IA64 processor
14991 lt_prog_compiler_static='-Bstatic'
14993 lt_prog_compiler_pic='-fPIC'
14996 amigaos*)
14997 case $host_cpu in
14998 powerpc)
14999 # see comment about AmigaOS4 .so support
15000 lt_prog_compiler_pic='-fPIC'
15002 m68k)
15003 # FIXME: we need at least 68020 code to build shared libraries, but
15004 # adding the `-m68020' flag to GCC prevents building anything better,
15005 # like `-m68040'.
15006 lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
15008 esac
15011 beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
15012 # PIC is the default for these OSes.
15015 mingw* | cygwin* | pw32* | os2* | cegcc*)
15016 # This hack is so that the source file can tell whether it is being
15017 # built for inclusion in a dll (and should export symbols for example).
15018 # Although the cygwin gcc ignores -fPIC, still need this for old-style
15019 # (--disable-auto-import) libraries
15020 lt_prog_compiler_pic='-DDLL_EXPORT'
15023 darwin* | rhapsody*)
15024 # PIC is the default on this platform
15025 # Common symbols not allowed in MH_DYLIB files
15026 lt_prog_compiler_pic='-fno-common'
15029 haiku*)
15030 # PIC is the default for Haiku.
15031 # The "-static" flag exists, but is broken.
15032 lt_prog_compiler_static=
15035 hpux*)
15036 # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
15037 # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag
15038 # sets the default TLS model and affects inlining.
15039 case $host_cpu in
15040 hppa*64*)
15041 # +Z the default
15044 lt_prog_compiler_pic='-fPIC'
15046 esac
15049 interix[3-9]*)
15050 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
15051 # Instead, we relocate shared libraries at runtime.
15054 msdosdjgpp*)
15055 # Just because we use GCC doesn't mean we suddenly get shared libraries
15056 # on systems that don't support them.
15057 lt_prog_compiler_can_build_shared=no
15058 enable_shared=no
15061 *nto* | *qnx*)
15062 # QNX uses GNU C++, but need to define -shared option too, otherwise
15063 # it will coredump.
15064 lt_prog_compiler_pic='-fPIC -shared'
15067 sysv4*MP*)
15068 if test -d /usr/nec; then
15069 lt_prog_compiler_pic=-Kconform_pic
15074 lt_prog_compiler_pic='-fPIC'
15076 esac
15078 case $cc_basename in
15079 nvcc*) # Cuda Compiler Driver 2.2
15080 lt_prog_compiler_wl='-Xlinker '
15081 lt_prog_compiler_pic='-Xcompiler -fPIC'
15083 esac
15084 else
15085 # PORTME Check for flag to pass linker flags through the system compiler.
15086 case $host_os in
15087 aix*)
15088 lt_prog_compiler_wl='-Wl,'
15089 if test "$host_cpu" = ia64; then
15090 # AIX 5 now supports IA64 processor
15091 lt_prog_compiler_static='-Bstatic'
15092 else
15093 lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
15097 mingw* | cygwin* | pw32* | os2* | cegcc*)
15098 # This hack is so that the source file can tell whether it is being
15099 # built for inclusion in a dll (and should export symbols for example).
15100 lt_prog_compiler_pic='-DDLL_EXPORT'
15103 hpux9* | hpux10* | hpux11*)
15104 lt_prog_compiler_wl='-Wl,'
15105 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
15106 # not for PA HP-UX.
15107 case $host_cpu in
15108 hppa*64*|ia64*)
15109 # +Z the default
15112 lt_prog_compiler_pic='+Z'
15114 esac
15115 # Is there a better lt_prog_compiler_static that works with the bundled CC?
15116 lt_prog_compiler_static='${wl}-a ${wl}archive'
15119 irix5* | irix6* | nonstopux*)
15120 lt_prog_compiler_wl='-Wl,'
15121 # PIC (with -KPIC) is the default.
15122 lt_prog_compiler_static='-non_shared'
15125 linux* | k*bsd*-gnu | kopensolaris*-gnu)
15126 case $cc_basename in
15127 # old Intel for x86_64 which still supported -KPIC.
15128 ecc*)
15129 lt_prog_compiler_wl='-Wl,'
15130 lt_prog_compiler_pic='-KPIC'
15131 lt_prog_compiler_static='-static'
15133 # icc used to be incompatible with GCC.
15134 # ICC 10 doesn't accept -KPIC any more.
15135 icc* | ifort*)
15136 lt_prog_compiler_wl='-Wl,'
15137 lt_prog_compiler_pic='-fPIC'
15138 lt_prog_compiler_static='-static'
15140 # Lahey Fortran 8.1.
15141 lf95*)
15142 lt_prog_compiler_wl='-Wl,'
15143 lt_prog_compiler_pic='--shared'
15144 lt_prog_compiler_static='--static'
15146 pgcc* | pgf77* | pgf90* | pgf95* | pgfortran*)
15147 # Portland Group compilers (*not* the Pentium gcc compiler,
15148 # which looks to be a dead project)
15149 lt_prog_compiler_wl='-Wl,'
15150 lt_prog_compiler_pic='-fpic'
15151 lt_prog_compiler_static='-Bstatic'
15153 ccc*)
15154 lt_prog_compiler_wl='-Wl,'
15155 # All Alpha code is PIC.
15156 lt_prog_compiler_static='-non_shared'
15158 xl* | bgxl* | bgf* | mpixl*)
15159 # IBM XL C 8.0/Fortran 10.1, 11.1 on PPC and BlueGene
15160 lt_prog_compiler_wl='-Wl,'
15161 lt_prog_compiler_pic='-qpic'
15162 lt_prog_compiler_static='-qstaticlink'
15165 case `$CC -V 2>&1 | sed 5q` in
15166 *Sun\ F* | *Sun*Fortran*)
15167 # Sun Fortran 8.3 passes all unrecognized flags to the linker
15168 lt_prog_compiler_pic='-KPIC'
15169 lt_prog_compiler_static='-Bstatic'
15170 lt_prog_compiler_wl=''
15172 *Sun\ C*)
15173 # Sun C 5.9
15174 lt_prog_compiler_pic='-KPIC'
15175 lt_prog_compiler_static='-Bstatic'
15176 lt_prog_compiler_wl='-Wl,'
15178 esac
15180 esac
15183 newsos6)
15184 lt_prog_compiler_pic='-KPIC'
15185 lt_prog_compiler_static='-Bstatic'
15188 *nto* | *qnx*)
15189 # QNX uses GNU C++, but need to define -shared option too, otherwise
15190 # it will coredump.
15191 lt_prog_compiler_pic='-fPIC -shared'
15194 osf3* | osf4* | osf5*)
15195 lt_prog_compiler_wl='-Wl,'
15196 # All OSF/1 code is PIC.
15197 lt_prog_compiler_static='-non_shared'
15200 rdos*)
15201 lt_prog_compiler_static='-non_shared'
15204 solaris*)
15205 lt_prog_compiler_pic='-KPIC'
15206 lt_prog_compiler_static='-Bstatic'
15207 case $cc_basename in
15208 f77* | f90* | f95*)
15209 lt_prog_compiler_wl='-Qoption ld ';;
15211 lt_prog_compiler_wl='-Wl,';;
15212 esac
15215 sunos4*)
15216 lt_prog_compiler_wl='-Qoption ld '
15217 lt_prog_compiler_pic='-PIC'
15218 lt_prog_compiler_static='-Bstatic'
15221 sysv4 | sysv4.2uw2* | sysv4.3*)
15222 lt_prog_compiler_wl='-Wl,'
15223 lt_prog_compiler_pic='-KPIC'
15224 lt_prog_compiler_static='-Bstatic'
15227 sysv4*MP*)
15228 if test -d /usr/nec ;then
15229 lt_prog_compiler_pic='-Kconform_pic'
15230 lt_prog_compiler_static='-Bstatic'
15234 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
15235 lt_prog_compiler_wl='-Wl,'
15236 lt_prog_compiler_pic='-KPIC'
15237 lt_prog_compiler_static='-Bstatic'
15240 unicos*)
15241 lt_prog_compiler_wl='-Wl,'
15242 lt_prog_compiler_can_build_shared=no
15245 uts4*)
15246 lt_prog_compiler_pic='-pic'
15247 lt_prog_compiler_static='-Bstatic'
15251 lt_prog_compiler_can_build_shared=no
15253 esac
15256 case $host_os in
15257 # For platforms which do not support PIC, -DPIC is meaningless:
15258 *djgpp*)
15259 lt_prog_compiler_pic=
15262 lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
15264 esac
15265 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_prog_compiler_pic" >&5
15266 $as_echo "$lt_prog_compiler_pic" >&6; }
15274 # Check to make sure the PIC flag actually works.
15276 if test -n "$lt_prog_compiler_pic"; then
15277 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
15278 $as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic works... " >&6; }
15279 if test "${lt_cv_prog_compiler_pic_works+set}" = set; then :
15280 $as_echo_n "(cached) " >&6
15281 else
15282 lt_cv_prog_compiler_pic_works=no
15283 ac_outfile=conftest.$ac_objext
15284 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
15285 lt_compiler_flag="$lt_prog_compiler_pic -DPIC"
15286 # Insert the option either (1) after the last *FLAGS variable, or
15287 # (2) before a word containing "conftest.", or (3) at the end.
15288 # Note that $ac_compile itself does not contain backslashes and begins
15289 # with a dollar sign (not a hyphen), so the echo should work correctly.
15290 # The option is referenced via a variable to avoid confusing sed.
15291 lt_compile=`echo "$ac_compile" | $SED \
15292 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
15293 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
15294 -e 's:$: $lt_compiler_flag:'`
15295 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
15296 (eval "$lt_compile" 2>conftest.err)
15297 ac_status=$?
15298 cat conftest.err >&5
15299 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15300 if (exit $ac_status) && test -s "$ac_outfile"; then
15301 # The compiler can only warn and ignore the option if not recognized
15302 # So say no if there are warnings other than the usual output.
15303 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
15304 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
15305 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
15306 lt_cv_prog_compiler_pic_works=yes
15309 $RM conftest*
15312 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works" >&5
15313 $as_echo "$lt_cv_prog_compiler_pic_works" >&6; }
15315 if test x"$lt_cv_prog_compiler_pic_works" = xyes; then
15316 case $lt_prog_compiler_pic in
15317 "" | " "*) ;;
15318 *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
15319 esac
15320 else
15321 lt_prog_compiler_pic=
15322 lt_prog_compiler_can_build_shared=no
15333 # Check to make sure the static flag actually works.
15335 wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
15336 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
15337 $as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
15338 if test "${lt_cv_prog_compiler_static_works+set}" = set; then :
15339 $as_echo_n "(cached) " >&6
15340 else
15341 lt_cv_prog_compiler_static_works=no
15342 save_LDFLAGS="$LDFLAGS"
15343 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
15344 echo "$lt_simple_link_test_code" > conftest.$ac_ext
15345 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
15346 # The linker can only warn and ignore the option if not recognized
15347 # So say no if there are warnings
15348 if test -s conftest.err; then
15349 # Append any errors to the config.log.
15350 cat conftest.err 1>&5
15351 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
15352 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
15353 if diff conftest.exp conftest.er2 >/dev/null; then
15354 lt_cv_prog_compiler_static_works=yes
15356 else
15357 lt_cv_prog_compiler_static_works=yes
15360 $RM -r conftest*
15361 LDFLAGS="$save_LDFLAGS"
15364 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works" >&5
15365 $as_echo "$lt_cv_prog_compiler_static_works" >&6; }
15367 if test x"$lt_cv_prog_compiler_static_works" = xyes; then
15369 else
15370 lt_prog_compiler_static=
15379 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
15380 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
15381 if test "${lt_cv_prog_compiler_c_o+set}" = set; then :
15382 $as_echo_n "(cached) " >&6
15383 else
15384 lt_cv_prog_compiler_c_o=no
15385 $RM -r conftest 2>/dev/null
15386 mkdir conftest
15387 cd conftest
15388 mkdir out
15389 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
15391 lt_compiler_flag="-o out/conftest2.$ac_objext"
15392 # Insert the option either (1) after the last *FLAGS variable, or
15393 # (2) before a word containing "conftest.", or (3) at the end.
15394 # Note that $ac_compile itself does not contain backslashes and begins
15395 # with a dollar sign (not a hyphen), so the echo should work correctly.
15396 lt_compile=`echo "$ac_compile" | $SED \
15397 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
15398 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
15399 -e 's:$: $lt_compiler_flag:'`
15400 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
15401 (eval "$lt_compile" 2>out/conftest.err)
15402 ac_status=$?
15403 cat out/conftest.err >&5
15404 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15405 if (exit $ac_status) && test -s out/conftest2.$ac_objext
15406 then
15407 # The compiler can only warn and ignore the option if not recognized
15408 # So say no if there are warnings
15409 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
15410 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
15411 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
15412 lt_cv_prog_compiler_c_o=yes
15415 chmod u+w . 2>&5
15416 $RM conftest*
15417 # SGI C++ compiler will create directory out/ii_files/ for
15418 # template instantiation
15419 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
15420 $RM out/* && rmdir out
15421 cd ..
15422 $RM -r conftest
15423 $RM conftest*
15426 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
15427 $as_echo "$lt_cv_prog_compiler_c_o" >&6; }
15434 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
15435 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
15436 if test "${lt_cv_prog_compiler_c_o+set}" = set; then :
15437 $as_echo_n "(cached) " >&6
15438 else
15439 lt_cv_prog_compiler_c_o=no
15440 $RM -r conftest 2>/dev/null
15441 mkdir conftest
15442 cd conftest
15443 mkdir out
15444 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
15446 lt_compiler_flag="-o out/conftest2.$ac_objext"
15447 # Insert the option either (1) after the last *FLAGS variable, or
15448 # (2) before a word containing "conftest.", or (3) at the end.
15449 # Note that $ac_compile itself does not contain backslashes and begins
15450 # with a dollar sign (not a hyphen), so the echo should work correctly.
15451 lt_compile=`echo "$ac_compile" | $SED \
15452 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
15453 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
15454 -e 's:$: $lt_compiler_flag:'`
15455 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
15456 (eval "$lt_compile" 2>out/conftest.err)
15457 ac_status=$?
15458 cat out/conftest.err >&5
15459 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15460 if (exit $ac_status) && test -s out/conftest2.$ac_objext
15461 then
15462 # The compiler can only warn and ignore the option if not recognized
15463 # So say no if there are warnings
15464 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
15465 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
15466 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
15467 lt_cv_prog_compiler_c_o=yes
15470 chmod u+w . 2>&5
15471 $RM conftest*
15472 # SGI C++ compiler will create directory out/ii_files/ for
15473 # template instantiation
15474 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
15475 $RM out/* && rmdir out
15476 cd ..
15477 $RM -r conftest
15478 $RM conftest*
15481 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
15482 $as_echo "$lt_cv_prog_compiler_c_o" >&6; }
15487 hard_links="nottested"
15488 if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then
15489 # do not overwrite the value of need_locks provided by the user
15490 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
15491 $as_echo_n "checking if we can lock with hard links... " >&6; }
15492 hard_links=yes
15493 $RM conftest*
15494 ln conftest.a conftest.b 2>/dev/null && hard_links=no
15495 touch conftest.a
15496 ln conftest.a conftest.b 2>&5 || hard_links=no
15497 ln conftest.a conftest.b 2>/dev/null && hard_links=no
15498 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
15499 $as_echo "$hard_links" >&6; }
15500 if test "$hard_links" = no; then
15501 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
15502 $as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
15503 need_locks=warn
15505 else
15506 need_locks=no
15514 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
15515 $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
15517 runpath_var=
15518 allow_undefined_flag=
15519 always_export_symbols=no
15520 archive_cmds=
15521 archive_expsym_cmds=
15522 compiler_needs_object=no
15523 enable_shared_with_static_runtimes=no
15524 export_dynamic_flag_spec=
15525 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
15526 hardcode_automatic=no
15527 hardcode_direct=no
15528 hardcode_direct_absolute=no
15529 hardcode_libdir_flag_spec=
15530 hardcode_libdir_flag_spec_ld=
15531 hardcode_libdir_separator=
15532 hardcode_minus_L=no
15533 hardcode_shlibpath_var=unsupported
15534 inherit_rpath=no
15535 link_all_deplibs=unknown
15536 module_cmds=
15537 module_expsym_cmds=
15538 old_archive_from_new_cmds=
15539 old_archive_from_expsyms_cmds=
15540 thread_safe_flag_spec=
15541 whole_archive_flag_spec=
15542 # include_expsyms should be a list of space-separated symbols to be *always*
15543 # included in the symbol list
15544 include_expsyms=
15545 # exclude_expsyms can be an extended regexp of symbols to exclude
15546 # it will be wrapped by ` (' and `)$', so one must not match beginning or
15547 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
15548 # as well as any symbol that contains `d'.
15549 exclude_expsyms='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
15550 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
15551 # platforms (ab)use it in PIC code, but their linkers get confused if
15552 # the symbol is explicitly referenced. Since portable code cannot
15553 # rely on this symbol name, it's probably fine to never include it in
15554 # preloaded symbol tables.
15555 # Exclude shared library initialization/finalization symbols.
15556 extract_expsyms_cmds=
15558 case $host_os in
15559 cygwin* | mingw* | pw32* | cegcc*)
15560 # FIXME: the MSVC++ port hasn't been tested in a loooong time
15561 # When not using gcc, we currently assume that we are using
15562 # Microsoft Visual C++.
15563 if test "$GCC" != yes; then
15564 with_gnu_ld=no
15567 interix*)
15568 # we just hope/assume this is gcc and not c89 (= MSVC++)
15569 with_gnu_ld=yes
15571 openbsd*)
15572 with_gnu_ld=no
15574 esac
15576 ld_shlibs=yes
15578 # On some targets, GNU ld is compatible enough with the native linker
15579 # that we're better off using the native interface for both.
15580 lt_use_gnu_ld_interface=no
15581 if test "$with_gnu_ld" = yes; then
15582 case $host_os in
15583 aix*)
15584 # The AIX port of GNU ld has always aspired to compatibility
15585 # with the native linker. However, as the warning in the GNU ld
15586 # block says, versions before 2.19.5* couldn't really create working
15587 # shared libraries, regardless of the interface used.
15588 case `$LD -v 2>&1` in
15589 *\ \(GNU\ Binutils\)\ 2.19.5*) ;;
15590 *\ \(GNU\ Binutils\)\ 2.[2-9]*) ;;
15591 *\ \(GNU\ Binutils\)\ [3-9]*) ;;
15593 lt_use_gnu_ld_interface=yes
15595 esac
15598 lt_use_gnu_ld_interface=yes
15600 esac
15603 if test "$lt_use_gnu_ld_interface" = yes; then
15604 # If archive_cmds runs LD, not CC, wlarc should be empty
15605 wlarc='${wl}'
15607 # Set some defaults for GNU ld with shared library support. These
15608 # are reset later if shared libraries are not supported. Putting them
15609 # here allows them to be overridden if necessary.
15610 runpath_var=LD_RUN_PATH
15611 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
15612 export_dynamic_flag_spec='${wl}--export-dynamic'
15613 # ancient GNU ld didn't support --whole-archive et. al.
15614 if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then
15615 whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
15616 else
15617 whole_archive_flag_spec=
15619 supports_anon_versioning=no
15620 case `$LD -v 2>&1` in
15621 *GNU\ gold*) supports_anon_versioning=yes ;;
15622 *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
15623 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
15624 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
15625 *\ 2.11.*) ;; # other 2.11 versions
15626 *) supports_anon_versioning=yes ;;
15627 esac
15629 # See if GNU ld supports shared libraries.
15630 case $host_os in
15631 aix[3-9]*)
15632 # On AIX/PPC, the GNU linker is very broken
15633 if test "$host_cpu" != ia64; then
15634 ld_shlibs=no
15635 cat <<_LT_EOF 1>&2
15637 *** Warning: the GNU linker, at least up to release 2.19, is reported
15638 *** to be unable to reliably create shared libraries on AIX.
15639 *** Therefore, libtool is disabling shared libraries support. If you
15640 *** really care for shared libraries, you may want to install binutils
15641 *** 2.20 or above, or modify your PATH so that a non-GNU linker is found.
15642 *** You will then need to restart the configuration process.
15644 _LT_EOF
15648 amigaos*)
15649 case $host_cpu in
15650 powerpc)
15651 # see comment about AmigaOS4 .so support
15652 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
15653 archive_expsym_cmds=''
15655 m68k)
15656 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)'
15657 hardcode_libdir_flag_spec='-L$libdir'
15658 hardcode_minus_L=yes
15660 esac
15663 beos*)
15664 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
15665 allow_undefined_flag=unsupported
15666 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
15667 # support --undefined. This deserves some investigation. FIXME
15668 archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
15669 else
15670 ld_shlibs=no
15674 cygwin* | mingw* | pw32* | cegcc*)
15675 # _LT_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
15676 # as there is no search path for DLLs.
15677 hardcode_libdir_flag_spec='-L$libdir'
15678 export_dynamic_flag_spec='${wl}--export-all-symbols'
15679 allow_undefined_flag=unsupported
15680 always_export_symbols=no
15681 enable_shared_with_static_runtimes=yes
15682 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
15684 if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
15685 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
15686 # If the export-symbols file already is a .def file (1st line
15687 # is EXPORTS), use it as is; otherwise, prepend...
15688 archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
15689 cp $export_symbols $output_objdir/$soname.def;
15690 else
15691 echo EXPORTS > $output_objdir/$soname.def;
15692 cat $export_symbols >> $output_objdir/$soname.def;
15694 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
15695 else
15696 ld_shlibs=no
15700 haiku*)
15701 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
15702 link_all_deplibs=yes
15705 interix[3-9]*)
15706 hardcode_direct=no
15707 hardcode_shlibpath_var=no
15708 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
15709 export_dynamic_flag_spec='${wl}-E'
15710 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
15711 # Instead, shared libraries are loaded at an image base (0x10000000 by
15712 # default) and relocated if they conflict, which is a slow very memory
15713 # consuming and fragmenting process. To avoid this, we pick a random,
15714 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
15715 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
15716 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
15717 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'
15720 gnu* | linux* | tpf* | k*bsd*-gnu | kopensolaris*-gnu)
15721 tmp_diet=no
15722 if test "$host_os" = linux-dietlibc; then
15723 case $cc_basename in
15724 diet\ *) tmp_diet=yes;; # linux-dietlibc with static linking (!diet-dyn)
15725 esac
15727 if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \
15728 && test "$tmp_diet" = no
15729 then
15730 tmp_addflag=
15731 tmp_sharedflag='-shared'
15732 case $cc_basename,$host_cpu in
15733 pgcc*) # Portland Group C compiler
15734 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'
15735 tmp_addflag=' $pic_flag'
15737 pgf77* | pgf90* | pgf95* | pgfortran*)
15738 # Portland Group f77 and f90 compilers
15739 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'
15740 tmp_addflag=' $pic_flag -Mnomain' ;;
15741 ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64
15742 tmp_addflag=' -i_dynamic' ;;
15743 efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64
15744 tmp_addflag=' -i_dynamic -nofor_main' ;;
15745 ifc* | ifort*) # Intel Fortran compiler
15746 tmp_addflag=' -nofor_main' ;;
15747 lf95*) # Lahey Fortran 8.1
15748 whole_archive_flag_spec=
15749 tmp_sharedflag='--shared' ;;
15750 xl[cC]* | bgxl[cC]* | mpixl[cC]*) # IBM XL C 8.0 on PPC (deal with xlf below)
15751 tmp_sharedflag='-qmkshrobj'
15752 tmp_addflag= ;;
15753 nvcc*) # Cuda Compiler Driver 2.2
15754 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'
15755 compiler_needs_object=yes
15757 esac
15758 case `$CC -V 2>&1 | sed 5q` in
15759 *Sun\ C*) # Sun C 5.9
15760 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'
15761 compiler_needs_object=yes
15762 tmp_sharedflag='-G' ;;
15763 *Sun\ F*) # Sun Fortran 8.3
15764 tmp_sharedflag='-G' ;;
15765 esac
15766 archive_cmds='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
15768 if test "x$supports_anon_versioning" = xyes; then
15769 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
15770 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
15771 echo "local: *; };" >> $output_objdir/$libname.ver~
15772 $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
15775 case $cc_basename in
15776 xlf* | bgf* | bgxlf* | mpixlf*)
15777 # IBM XL Fortran 10.1 on PPC cannot create shared libs itself
15778 whole_archive_flag_spec='--whole-archive$convenience --no-whole-archive'
15779 hardcode_libdir_flag_spec=
15780 hardcode_libdir_flag_spec_ld='-rpath $libdir'
15781 archive_cmds='$LD -shared $libobjs $deplibs $compiler_flags -soname $soname -o $lib'
15782 if test "x$supports_anon_versioning" = xyes; then
15783 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
15784 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
15785 echo "local: *; };" >> $output_objdir/$libname.ver~
15786 $LD -shared $libobjs $deplibs $compiler_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib'
15789 esac
15790 else
15791 ld_shlibs=no
15795 netbsd*)
15796 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
15797 archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
15798 wlarc=
15799 else
15800 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
15801 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
15805 solaris*)
15806 if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then
15807 ld_shlibs=no
15808 cat <<_LT_EOF 1>&2
15810 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
15811 *** create shared libraries on Solaris systems. Therefore, libtool
15812 *** is disabling shared libraries support. We urge you to upgrade GNU
15813 *** binutils to release 2.9.1 or newer. Another option is to modify
15814 *** your PATH or compiler configuration so that the native linker is
15815 *** used, and then restart.
15817 _LT_EOF
15818 elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
15819 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
15820 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
15821 else
15822 ld_shlibs=no
15826 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
15827 case `$LD -v 2>&1` in
15828 *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
15829 ld_shlibs=no
15830 cat <<_LT_EOF 1>&2
15832 *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
15833 *** reliably create shared libraries on SCO systems. Therefore, libtool
15834 *** is disabling shared libraries support. We urge you to upgrade GNU
15835 *** binutils to release 2.16.91.0.3 or newer. Another option is to modify
15836 *** your PATH or compiler configuration so that the native linker is
15837 *** used, and then restart.
15839 _LT_EOF
15842 # For security reasons, it is highly recommended that you always
15843 # use absolute paths for naming shared libraries, and exclude the
15844 # DT_RUNPATH tag from executables and libraries. But doing so
15845 # requires that you compile everything twice, which is a pain.
15846 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
15847 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
15848 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
15849 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
15850 else
15851 ld_shlibs=no
15854 esac
15857 sunos4*)
15858 archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
15859 wlarc=
15860 hardcode_direct=yes
15861 hardcode_shlibpath_var=no
15865 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
15866 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
15867 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
15868 else
15869 ld_shlibs=no
15872 esac
15874 if test "$ld_shlibs" = no; then
15875 runpath_var=
15876 hardcode_libdir_flag_spec=
15877 export_dynamic_flag_spec=
15878 whole_archive_flag_spec=
15880 else
15881 # PORTME fill in a description of your system's linker (not GNU ld)
15882 case $host_os in
15883 aix3*)
15884 allow_undefined_flag=unsupported
15885 always_export_symbols=yes
15886 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'
15887 # Note: this linker hardcodes the directories in LIBPATH if there
15888 # are no directories specified by -L.
15889 hardcode_minus_L=yes
15890 if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
15891 # Neither direct hardcoding nor static linking is supported with a
15892 # broken collect2.
15893 hardcode_direct=unsupported
15897 aix[4-9]*)
15898 if test "$host_cpu" = ia64; then
15899 # On IA64, the linker does run time linking by default, so we don't
15900 # have to do anything special.
15901 aix_use_runtimelinking=no
15902 exp_sym_flag='-Bexport'
15903 no_entry_flag=""
15904 else
15905 # If we're using GNU nm, then we don't want the "-C" option.
15906 # -C means demangle to AIX nm, but means don't demangle with GNU nm
15907 # Also, AIX nm treats weak defined symbols like other global
15908 # defined symbols, whereas GNU nm marks them as "W".
15909 if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
15910 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'
15911 else
15912 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'
15914 aix_use_runtimelinking=no
15916 # Test if we are trying to use run time linking or normal
15917 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
15918 # need to do runtime linking.
15919 case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
15920 for ld_flag in $LDFLAGS; do
15921 if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
15922 aix_use_runtimelinking=yes
15923 break
15925 done
15927 esac
15929 exp_sym_flag='-bexport'
15930 no_entry_flag='-bnoentry'
15933 # When large executables or shared objects are built, AIX ld can
15934 # have problems creating the table of contents. If linking a library
15935 # or program results in "error TOC overflow" add -mminimal-toc to
15936 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
15937 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
15939 archive_cmds=''
15940 hardcode_direct=yes
15941 hardcode_direct_absolute=yes
15942 hardcode_libdir_separator=':'
15943 link_all_deplibs=yes
15944 file_list_spec='${wl}-f,'
15946 if test "$GCC" = yes; then
15947 case $host_os in aix4.[012]|aix4.[012].*)
15948 # We only want to do this on AIX 4.2 and lower, the check
15949 # below for broken collect2 doesn't work under 4.3+
15950 collect2name=`${CC} -print-prog-name=collect2`
15951 if test -f "$collect2name" &&
15952 strings "$collect2name" | $GREP resolve_lib_name >/dev/null
15953 then
15954 # We have reworked collect2
15956 else
15957 # We have old collect2
15958 hardcode_direct=unsupported
15959 # It fails to find uninstalled libraries when the uninstalled
15960 # path is not listed in the libpath. Setting hardcode_minus_L
15961 # to unsupported forces relinking
15962 hardcode_minus_L=yes
15963 hardcode_libdir_flag_spec='-L$libdir'
15964 hardcode_libdir_separator=
15967 esac
15968 shared_flag='-shared'
15969 if test "$aix_use_runtimelinking" = yes; then
15970 shared_flag="$shared_flag "'${wl}-G'
15972 else
15973 # not using gcc
15974 if test "$host_cpu" = ia64; then
15975 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
15976 # chokes on -Wl,-G. The following line is correct:
15977 shared_flag='-G'
15978 else
15979 if test "$aix_use_runtimelinking" = yes; then
15980 shared_flag='${wl}-G'
15981 else
15982 shared_flag='${wl}-bM:SRE'
15987 export_dynamic_flag_spec='${wl}-bexpall'
15988 # It seems that -bexpall does not export symbols beginning with
15989 # underscore (_), so it is better to generate a list of symbols to export.
15990 always_export_symbols=yes
15991 if test "$aix_use_runtimelinking" = yes; then
15992 # Warning - without using the other runtime loading flags (-brtl),
15993 # -berok will link without error, but may produce a broken library.
15994 allow_undefined_flag='-berok'
15995 # Determine the default libpath from the value encoded in an
15996 # empty executable.
15997 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15998 /* end confdefs.h. */
16001 main ()
16005 return 0;
16007 _ACEOF
16008 if ac_fn_c_try_link "$LINENO"; then :
16010 lt_aix_libpath_sed='
16011 /Import File Strings/,/^$/ {
16012 /^0/ {
16013 s/^0 *\(.*\)$/\1/
16017 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
16018 # Check for a 64-bit object if we didn't find anything.
16019 if test -z "$aix_libpath"; then
16020 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
16023 rm -f core conftest.err conftest.$ac_objext \
16024 conftest$ac_exeext conftest.$ac_ext
16025 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
16027 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
16028 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"
16029 else
16030 if test "$host_cpu" = ia64; then
16031 hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
16032 allow_undefined_flag="-z nodefs"
16033 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"
16034 else
16035 # Determine the default libpath from the value encoded in an
16036 # empty executable.
16037 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16038 /* end confdefs.h. */
16041 main ()
16045 return 0;
16047 _ACEOF
16048 if ac_fn_c_try_link "$LINENO"; then :
16050 lt_aix_libpath_sed='
16051 /Import File Strings/,/^$/ {
16052 /^0/ {
16053 s/^0 *\(.*\)$/\1/
16057 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
16058 # Check for a 64-bit object if we didn't find anything.
16059 if test -z "$aix_libpath"; then
16060 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
16063 rm -f core conftest.err conftest.$ac_objext \
16064 conftest$ac_exeext conftest.$ac_ext
16065 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
16067 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
16068 # Warning - without using the other run time loading flags,
16069 # -berok will link without error, but may produce a broken library.
16070 no_undefined_flag=' ${wl}-bernotok'
16071 allow_undefined_flag=' ${wl}-berok'
16072 if test "$with_gnu_ld" = yes; then
16073 # We only use this code for GNU lds that support --whole-archive.
16074 whole_archive_flag_spec='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
16075 else
16076 # Exported symbols can be pulled into shared objects from archives
16077 whole_archive_flag_spec='$convenience'
16079 archive_cmds_need_lc=yes
16080 # This is similar to how AIX traditionally builds its shared libraries.
16081 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'
16086 amigaos*)
16087 case $host_cpu in
16088 powerpc)
16089 # see comment about AmigaOS4 .so support
16090 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
16091 archive_expsym_cmds=''
16093 m68k)
16094 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)'
16095 hardcode_libdir_flag_spec='-L$libdir'
16096 hardcode_minus_L=yes
16098 esac
16101 bsdi[45]*)
16102 export_dynamic_flag_spec=-rdynamic
16105 cygwin* | mingw* | pw32* | cegcc*)
16106 # When not using gcc, we currently assume that we are using
16107 # Microsoft Visual C++.
16108 # hardcode_libdir_flag_spec is actually meaningless, as there is
16109 # no search path for DLLs.
16110 hardcode_libdir_flag_spec=' '
16111 allow_undefined_flag=unsupported
16112 # Tell ltmain to make .lib files, not .a files.
16113 libext=lib
16114 # Tell ltmain to make .dll files, not .so files.
16115 shrext_cmds=".dll"
16116 # FIXME: Setting linknames here is a bad hack.
16117 archive_cmds='$CC -o $lib $libobjs $compiler_flags `func_echo_all "$deplibs" | $SED '\''s/ -lc$//'\''` -link -dll~linknames='
16118 # The linker will automatically build a .lib file if we build a DLL.
16119 old_archive_from_new_cmds='true'
16120 # FIXME: Should let the user specify the lib program.
16121 old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs'
16122 fix_srcfile_path='`cygpath -w "$srcfile"`'
16123 enable_shared_with_static_runtimes=yes
16126 darwin* | rhapsody*)
16129 archive_cmds_need_lc=no
16130 hardcode_direct=no
16131 hardcode_automatic=yes
16132 hardcode_shlibpath_var=unsupported
16133 if test "$lt_cv_ld_force_load" = "yes"; then
16134 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\"`'
16135 else
16136 whole_archive_flag_spec=''
16138 link_all_deplibs=yes
16139 allow_undefined_flag="$_lt_dar_allow_undefined"
16140 case $cc_basename in
16141 ifort*) _lt_dar_can_shared=yes ;;
16142 *) _lt_dar_can_shared=$GCC ;;
16143 esac
16144 if test "$_lt_dar_can_shared" = "yes"; then
16145 output_verbose_link_cmd=func_echo_all
16146 archive_cmds="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod${_lt_dsymutil}"
16147 module_cmds="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
16148 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}"
16149 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}"
16151 else
16152 ld_shlibs=no
16157 dgux*)
16158 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
16159 hardcode_libdir_flag_spec='-L$libdir'
16160 hardcode_shlibpath_var=no
16163 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
16164 # support. Future versions do this automatically, but an explicit c++rt0.o
16165 # does not break anything, and helps significantly (at the cost of a little
16166 # extra space).
16167 freebsd2.2*)
16168 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
16169 hardcode_libdir_flag_spec='-R$libdir'
16170 hardcode_direct=yes
16171 hardcode_shlibpath_var=no
16174 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
16175 freebsd2.*)
16176 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
16177 hardcode_direct=yes
16178 hardcode_minus_L=yes
16179 hardcode_shlibpath_var=no
16182 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
16183 freebsd* | dragonfly*)
16184 archive_cmds='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
16185 hardcode_libdir_flag_spec='-R$libdir'
16186 hardcode_direct=yes
16187 hardcode_shlibpath_var=no
16190 hpux9*)
16191 if test "$GCC" = yes; then
16192 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'
16193 else
16194 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'
16196 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
16197 hardcode_libdir_separator=:
16198 hardcode_direct=yes
16200 # hardcode_minus_L: Not really in the search PATH,
16201 # but as the default location of the library.
16202 hardcode_minus_L=yes
16203 export_dynamic_flag_spec='${wl}-E'
16206 hpux10*)
16207 if test "$GCC" = yes && test "$with_gnu_ld" = no; then
16208 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
16209 else
16210 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
16212 if test "$with_gnu_ld" = no; then
16213 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
16214 hardcode_libdir_flag_spec_ld='+b $libdir'
16215 hardcode_libdir_separator=:
16216 hardcode_direct=yes
16217 hardcode_direct_absolute=yes
16218 export_dynamic_flag_spec='${wl}-E'
16219 # hardcode_minus_L: Not really in the search PATH,
16220 # but as the default location of the library.
16221 hardcode_minus_L=yes
16225 hpux11*)
16226 if test "$GCC" = yes && test "$with_gnu_ld" = no; then
16227 case $host_cpu in
16228 hppa*64*)
16229 archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
16231 ia64*)
16232 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
16235 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
16237 esac
16238 else
16239 case $host_cpu in
16240 hppa*64*)
16241 archive_cmds='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
16243 ia64*)
16244 archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
16248 # Older versions of the 11.00 compiler do not understand -b yet
16249 # (HP92453-01 A.11.01.20 doesn't, HP92453-01 B.11.X.35175-35176.GP does)
16250 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC understands -b" >&5
16251 $as_echo_n "checking if $CC understands -b... " >&6; }
16252 if test "${lt_cv_prog_compiler__b+set}" = set; then :
16253 $as_echo_n "(cached) " >&6
16254 else
16255 lt_cv_prog_compiler__b=no
16256 save_LDFLAGS="$LDFLAGS"
16257 LDFLAGS="$LDFLAGS -b"
16258 echo "$lt_simple_link_test_code" > conftest.$ac_ext
16259 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
16260 # The linker can only warn and ignore the option if not recognized
16261 # So say no if there are warnings
16262 if test -s conftest.err; then
16263 # Append any errors to the config.log.
16264 cat conftest.err 1>&5
16265 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
16266 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
16267 if diff conftest.exp conftest.er2 >/dev/null; then
16268 lt_cv_prog_compiler__b=yes
16270 else
16271 lt_cv_prog_compiler__b=yes
16274 $RM -r conftest*
16275 LDFLAGS="$save_LDFLAGS"
16278 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler__b" >&5
16279 $as_echo "$lt_cv_prog_compiler__b" >&6; }
16281 if test x"$lt_cv_prog_compiler__b" = xyes; then
16282 archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
16283 else
16284 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
16288 esac
16290 if test "$with_gnu_ld" = no; then
16291 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
16292 hardcode_libdir_separator=:
16294 case $host_cpu in
16295 hppa*64*|ia64*)
16296 hardcode_direct=no
16297 hardcode_shlibpath_var=no
16300 hardcode_direct=yes
16301 hardcode_direct_absolute=yes
16302 export_dynamic_flag_spec='${wl}-E'
16304 # hardcode_minus_L: Not really in the search PATH,
16305 # but as the default location of the library.
16306 hardcode_minus_L=yes
16308 esac
16312 irix5* | irix6* | nonstopux*)
16313 if test "$GCC" = yes; then
16314 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'
16315 # Try to use the -exported_symbol ld option, if it does not
16316 # work, assume that -exports_file does not work either and
16317 # implicitly export all symbols.
16318 save_LDFLAGS="$LDFLAGS"
16319 LDFLAGS="$LDFLAGS -shared ${wl}-exported_symbol ${wl}foo ${wl}-update_registry ${wl}/dev/null"
16320 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16321 /* end confdefs.h. */
16322 int foo(void) {}
16323 _ACEOF
16324 if ac_fn_c_try_link "$LINENO"; then :
16325 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'
16328 rm -f core conftest.err conftest.$ac_objext \
16329 conftest$ac_exeext conftest.$ac_ext
16330 LDFLAGS="$save_LDFLAGS"
16331 else
16332 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'
16333 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'
16335 archive_cmds_need_lc='no'
16336 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
16337 hardcode_libdir_separator=:
16338 inherit_rpath=yes
16339 link_all_deplibs=yes
16342 netbsd*)
16343 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
16344 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
16345 else
16346 archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
16348 hardcode_libdir_flag_spec='-R$libdir'
16349 hardcode_direct=yes
16350 hardcode_shlibpath_var=no
16353 newsos6)
16354 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
16355 hardcode_direct=yes
16356 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
16357 hardcode_libdir_separator=:
16358 hardcode_shlibpath_var=no
16361 *nto* | *qnx*)
16364 openbsd*)
16365 if test -f /usr/libexec/ld.so; then
16366 hardcode_direct=yes
16367 hardcode_shlibpath_var=no
16368 hardcode_direct_absolute=yes
16369 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
16370 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
16371 archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
16372 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
16373 export_dynamic_flag_spec='${wl}-E'
16374 else
16375 case $host_os in
16376 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
16377 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
16378 hardcode_libdir_flag_spec='-R$libdir'
16381 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
16382 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
16384 esac
16386 else
16387 ld_shlibs=no
16391 os2*)
16392 hardcode_libdir_flag_spec='-L$libdir'
16393 hardcode_minus_L=yes
16394 allow_undefined_flag=unsupported
16395 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'
16396 old_archive_from_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
16399 osf3*)
16400 if test "$GCC" = yes; then
16401 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
16402 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'
16403 else
16404 allow_undefined_flag=' -expect_unresolved \*'
16405 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'
16407 archive_cmds_need_lc='no'
16408 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
16409 hardcode_libdir_separator=:
16412 osf4* | osf5*) # as osf3* with the addition of -msym flag
16413 if test "$GCC" = yes; then
16414 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
16415 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'
16416 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
16417 else
16418 allow_undefined_flag=' -expect_unresolved \*'
16419 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'
16420 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~
16421 $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'
16423 # Both c and cxx compiler support -rpath directly
16424 hardcode_libdir_flag_spec='-rpath $libdir'
16426 archive_cmds_need_lc='no'
16427 hardcode_libdir_separator=:
16430 solaris*)
16431 no_undefined_flag=' -z defs'
16432 if test "$GCC" = yes; then
16433 wlarc='${wl}'
16434 archive_cmds='$CC -shared ${wl}-z ${wl}text ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
16435 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
16436 $CC -shared ${wl}-z ${wl}text ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
16437 else
16438 case `$CC -V 2>&1` in
16439 *"Compilers 5.0"*)
16440 wlarc=''
16441 archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
16442 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
16443 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp'
16446 wlarc='${wl}'
16447 archive_cmds='$CC -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $compiler_flags'
16448 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
16449 $CC -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
16451 esac
16453 hardcode_libdir_flag_spec='-R$libdir'
16454 hardcode_shlibpath_var=no
16455 case $host_os in
16456 solaris2.[0-5] | solaris2.[0-5].*) ;;
16458 # The compiler driver will combine and reorder linker options,
16459 # but understands `-z linker_flag'. GCC discards it without `$wl',
16460 # but is careful enough not to reorder.
16461 # Supported since Solaris 2.6 (maybe 2.5.1?)
16462 if test "$GCC" = yes; then
16463 whole_archive_flag_spec='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
16464 else
16465 whole_archive_flag_spec='-z allextract$convenience -z defaultextract'
16468 esac
16469 link_all_deplibs=yes
16472 sunos4*)
16473 if test "x$host_vendor" = xsequent; then
16474 # Use $CC to link under sequent, because it throws in some extra .o
16475 # files that make .init and .fini sections work.
16476 archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
16477 else
16478 archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
16480 hardcode_libdir_flag_spec='-L$libdir'
16481 hardcode_direct=yes
16482 hardcode_minus_L=yes
16483 hardcode_shlibpath_var=no
16486 sysv4)
16487 case $host_vendor in
16488 sni)
16489 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
16490 hardcode_direct=yes # is this really true???
16492 siemens)
16493 ## LD is ld it makes a PLAMLIB
16494 ## CC just makes a GrossModule.
16495 archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
16496 reload_cmds='$CC -r -o $output$reload_objs'
16497 hardcode_direct=no
16499 motorola)
16500 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
16501 hardcode_direct=no #Motorola manual says yes, but my tests say they lie
16503 esac
16504 runpath_var='LD_RUN_PATH'
16505 hardcode_shlibpath_var=no
16508 sysv4.3*)
16509 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
16510 hardcode_shlibpath_var=no
16511 export_dynamic_flag_spec='-Bexport'
16514 sysv4*MP*)
16515 if test -d /usr/nec; then
16516 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
16517 hardcode_shlibpath_var=no
16518 runpath_var=LD_RUN_PATH
16519 hardcode_runpath_var=yes
16520 ld_shlibs=yes
16524 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
16525 no_undefined_flag='${wl}-z,text'
16526 archive_cmds_need_lc=no
16527 hardcode_shlibpath_var=no
16528 runpath_var='LD_RUN_PATH'
16530 if test "$GCC" = yes; then
16531 archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
16532 archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
16533 else
16534 archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
16535 archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
16539 sysv5* | sco3.2v5* | sco5v6*)
16540 # Note: We can NOT use -z defs as we might desire, because we do not
16541 # link with -lc, and that would cause any symbols used from libc to
16542 # always be unresolved, which means just about no library would
16543 # ever link correctly. If we're not using GNU ld we use -z text
16544 # though, which does catch some bad symbols but isn't as heavy-handed
16545 # as -z defs.
16546 no_undefined_flag='${wl}-z,text'
16547 allow_undefined_flag='${wl}-z,nodefs'
16548 archive_cmds_need_lc=no
16549 hardcode_shlibpath_var=no
16550 hardcode_libdir_flag_spec='${wl}-R,$libdir'
16551 hardcode_libdir_separator=':'
16552 link_all_deplibs=yes
16553 export_dynamic_flag_spec='${wl}-Bexport'
16554 runpath_var='LD_RUN_PATH'
16556 if test "$GCC" = yes; then
16557 archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
16558 archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
16559 else
16560 archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
16561 archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
16565 uts4*)
16566 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
16567 hardcode_libdir_flag_spec='-L$libdir'
16568 hardcode_shlibpath_var=no
16572 ld_shlibs=no
16574 esac
16576 if test x$host_vendor = xsni; then
16577 case $host in
16578 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
16579 export_dynamic_flag_spec='${wl}-Blargedynsym'
16581 esac
16585 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs" >&5
16586 $as_echo "$ld_shlibs" >&6; }
16587 test "$ld_shlibs" = no && can_build_shared=no
16589 with_gnu_ld=$with_gnu_ld
16606 # Do we need to explicitly link libc?
16608 case "x$archive_cmds_need_lc" in
16609 x|xyes)
16610 # Assume -lc should be added
16611 archive_cmds_need_lc=yes
16613 if test "$enable_shared" = yes && test "$GCC" = yes; then
16614 case $archive_cmds in
16615 *'~'*)
16616 # FIXME: we may have to deal with multi-command sequences.
16618 '$CC '*)
16619 # Test whether the compiler implicitly links with -lc since on some
16620 # systems, -lgcc has to come before -lc. If gcc already passes -lc
16621 # to ld, don't add -lc before -lgcc.
16622 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
16623 $as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
16624 if test "${lt_cv_archive_cmds_need_lc+set}" = set; then :
16625 $as_echo_n "(cached) " >&6
16626 else
16627 $RM conftest*
16628 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
16630 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
16631 (eval $ac_compile) 2>&5
16632 ac_status=$?
16633 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
16634 test $ac_status = 0; } 2>conftest.err; then
16635 soname=conftest
16636 lib=conftest
16637 libobjs=conftest.$ac_objext
16638 deplibs=
16639 wl=$lt_prog_compiler_wl
16640 pic_flag=$lt_prog_compiler_pic
16641 compiler_flags=-v
16642 linker_flags=-v
16643 verstring=
16644 output_objdir=.
16645 libname=conftest
16646 lt_save_allow_undefined_flag=$allow_undefined_flag
16647 allow_undefined_flag=
16648 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5
16649 (eval $archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
16650 ac_status=$?
16651 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
16652 test $ac_status = 0; }
16653 then
16654 lt_cv_archive_cmds_need_lc=no
16655 else
16656 lt_cv_archive_cmds_need_lc=yes
16658 allow_undefined_flag=$lt_save_allow_undefined_flag
16659 else
16660 cat conftest.err 1>&5
16662 $RM conftest*
16665 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc" >&5
16666 $as_echo "$lt_cv_archive_cmds_need_lc" >&6; }
16667 archive_cmds_need_lc=$lt_cv_archive_cmds_need_lc
16669 esac
16672 esac
16830 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
16831 $as_echo_n "checking dynamic linker characteristics... " >&6; }
16833 if test "$GCC" = yes; then
16834 case $host_os in
16835 darwin*) lt_awk_arg="/^libraries:/,/LR/" ;;
16836 *) lt_awk_arg="/^libraries:/" ;;
16837 esac
16838 case $host_os in
16839 mingw* | cegcc*) lt_sed_strip_eq="s,=\([A-Za-z]:\),\1,g" ;;
16840 *) lt_sed_strip_eq="s,=/,/,g" ;;
16841 esac
16842 lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e $lt_sed_strip_eq`
16843 case $lt_search_path_spec in
16844 *\;*)
16845 # if the path contains ";" then we assume it to be the separator
16846 # otherwise default to the standard path separator (i.e. ":") - it is
16847 # assumed that no part of a normal pathname contains ";" but that should
16848 # okay in the real world where ";" in dirpaths is itself problematic.
16849 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED 's/;/ /g'`
16852 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED "s/$PATH_SEPARATOR/ /g"`
16854 esac
16855 # Ok, now we have the path, separated by spaces, we can step through it
16856 # and add multilib dir if necessary.
16857 lt_tmp_lt_search_path_spec=
16858 lt_multi_os_dir=`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null`
16859 for lt_sys_path in $lt_search_path_spec; do
16860 if test -d "$lt_sys_path/$lt_multi_os_dir"; then
16861 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path/$lt_multi_os_dir"
16862 else
16863 test -d "$lt_sys_path" && \
16864 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path"
16866 done
16867 lt_search_path_spec=`$ECHO "$lt_tmp_lt_search_path_spec" | awk '
16868 BEGIN {RS=" "; FS="/|\n";} {
16869 lt_foo="";
16870 lt_count=0;
16871 for (lt_i = NF; lt_i > 0; lt_i--) {
16872 if ($lt_i != "" && $lt_i != ".") {
16873 if ($lt_i == "..") {
16874 lt_count++;
16875 } else {
16876 if (lt_count == 0) {
16877 lt_foo="/" $lt_i lt_foo;
16878 } else {
16879 lt_count--;
16884 if (lt_foo != "") { lt_freq[lt_foo]++; }
16885 if (lt_freq[lt_foo] == 1) { print lt_foo; }
16887 # AWK program above erroneously prepends '/' to C:/dos/paths
16888 # for these hosts.
16889 case $host_os in
16890 mingw* | cegcc*) lt_search_path_spec=`$ECHO "$lt_search_path_spec" |\
16891 $SED 's,/\([A-Za-z]:\),\1,g'` ;;
16892 esac
16893 sys_lib_search_path_spec=`$ECHO "$lt_search_path_spec" | $lt_NL2SP`
16894 else
16895 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
16897 library_names_spec=
16898 libname_spec='lib$name'
16899 soname_spec=
16900 shrext_cmds=".so"
16901 postinstall_cmds=
16902 postuninstall_cmds=
16903 finish_cmds=
16904 finish_eval=
16905 shlibpath_var=
16906 shlibpath_overrides_runpath=unknown
16907 version_type=none
16908 dynamic_linker="$host_os ld.so"
16909 sys_lib_dlsearch_path_spec="/lib /usr/lib"
16910 need_lib_prefix=unknown
16911 hardcode_into_libs=no
16913 # when you set need_version to no, make sure it does not cause -set_version
16914 # flags to be left without arguments
16915 need_version=unknown
16917 case $host_os in
16918 aix3*)
16919 version_type=linux
16920 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
16921 shlibpath_var=LIBPATH
16923 # AIX 3 has no versioning support, so we append a major version to the name.
16924 soname_spec='${libname}${release}${shared_ext}$major'
16927 aix[4-9]*)
16928 version_type=linux
16929 need_lib_prefix=no
16930 need_version=no
16931 hardcode_into_libs=yes
16932 if test "$host_cpu" = ia64; then
16933 # AIX 5 supports IA64
16934 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
16935 shlibpath_var=LD_LIBRARY_PATH
16936 else
16937 # With GCC up to 2.95.x, collect2 would create an import file
16938 # for dependence libraries. The import file would start with
16939 # the line `#! .'. This would cause the generated library to
16940 # depend on `.', always an invalid library. This was fixed in
16941 # development snapshots of GCC prior to 3.0.
16942 case $host_os in
16943 aix4 | aix4.[01] | aix4.[01].*)
16944 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
16945 echo ' yes '
16946 echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then
16948 else
16949 can_build_shared=no
16952 esac
16953 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
16954 # soname into executable. Probably we can add versioning support to
16955 # collect2, so additional links can be useful in future.
16956 if test "$aix_use_runtimelinking" = yes; then
16957 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
16958 # instead of lib<name>.a to let people know that these are not
16959 # typical AIX shared libraries.
16960 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16961 else
16962 # We preserve .a as extension for shared libraries through AIX4.2
16963 # and later when we are not doing run time linking.
16964 library_names_spec='${libname}${release}.a $libname.a'
16965 soname_spec='${libname}${release}${shared_ext}$major'
16967 shlibpath_var=LIBPATH
16971 amigaos*)
16972 case $host_cpu in
16973 powerpc)
16974 # Since July 2007 AmigaOS4 officially supports .so libraries.
16975 # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
16976 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16978 m68k)
16979 library_names_spec='$libname.ixlibrary $libname.a'
16980 # Create ${libname}_ixlibrary.a entries in /sys/libs.
16981 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'
16983 esac
16986 beos*)
16987 library_names_spec='${libname}${shared_ext}'
16988 dynamic_linker="$host_os ld.so"
16989 shlibpath_var=LIBRARY_PATH
16992 bsdi[45]*)
16993 version_type=linux
16994 need_version=no
16995 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16996 soname_spec='${libname}${release}${shared_ext}$major'
16997 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
16998 shlibpath_var=LD_LIBRARY_PATH
16999 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
17000 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
17001 # the default ld.so.conf also contains /usr/contrib/lib and
17002 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
17003 # libtool to hard-code these into programs
17006 cygwin* | mingw* | pw32* | cegcc*)
17007 version_type=windows
17008 shrext_cmds=".dll"
17009 need_version=no
17010 need_lib_prefix=no
17012 case $GCC,$host_os in
17013 yes,cygwin* | yes,mingw* | yes,pw32* | yes,cegcc*)
17014 library_names_spec='$libname.dll.a'
17015 # DLL is installed to $(libdir)/../bin by postinstall_cmds
17016 postinstall_cmds='base_file=`basename \${file}`~
17017 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
17018 dldir=$destdir/`dirname \$dlpath`~
17019 test -d \$dldir || mkdir -p \$dldir~
17020 $install_prog $dir/$dlname \$dldir/$dlname~
17021 chmod a+x \$dldir/$dlname~
17022 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
17023 eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
17025 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
17026 dlpath=$dir/\$dldll~
17027 $RM \$dlpath'
17028 shlibpath_overrides_runpath=yes
17030 case $host_os in
17031 cygwin*)
17032 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
17033 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
17035 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/lib/w32api"
17037 mingw* | cegcc*)
17038 # MinGW DLLs use traditional 'lib' prefix
17039 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
17041 pw32*)
17042 # pw32 DLLs use 'pw' prefix rather than 'lib'
17043 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
17045 esac
17049 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
17051 esac
17052 dynamic_linker='Win32 ld.exe'
17053 # FIXME: first we should search . and the directory the executable is in
17054 shlibpath_var=PATH
17057 darwin* | rhapsody*)
17058 dynamic_linker="$host_os dyld"
17059 version_type=darwin
17060 need_lib_prefix=no
17061 need_version=no
17062 library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext'
17063 soname_spec='${libname}${release}${major}$shared_ext'
17064 shlibpath_overrides_runpath=yes
17065 shlibpath_var=DYLD_LIBRARY_PATH
17066 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
17068 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib"
17069 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
17072 dgux*)
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
17081 freebsd* | dragonfly*)
17082 # DragonFly does not have aout. When/if they implement a new
17083 # versioning mechanism, adjust this.
17084 if test -x /usr/bin/objformat; then
17085 objformat=`/usr/bin/objformat`
17086 else
17087 case $host_os in
17088 freebsd[23].*) objformat=aout ;;
17089 *) objformat=elf ;;
17090 esac
17092 version_type=freebsd-$objformat
17093 case $version_type in
17094 freebsd-elf*)
17095 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
17096 need_version=no
17097 need_lib_prefix=no
17099 freebsd-*)
17100 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
17101 need_version=yes
17103 esac
17104 shlibpath_var=LD_LIBRARY_PATH
17105 case $host_os in
17106 freebsd2.*)
17107 shlibpath_overrides_runpath=yes
17109 freebsd3.[01]* | freebsdelf3.[01]*)
17110 shlibpath_overrides_runpath=yes
17111 hardcode_into_libs=yes
17113 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
17114 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
17115 shlibpath_overrides_runpath=no
17116 hardcode_into_libs=yes
17118 *) # from 4.6 on, and DragonFly
17119 shlibpath_overrides_runpath=yes
17120 hardcode_into_libs=yes
17122 esac
17125 gnu*)
17126 version_type=linux
17127 need_lib_prefix=no
17128 need_version=no
17129 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
17130 soname_spec='${libname}${release}${shared_ext}$major'
17131 shlibpath_var=LD_LIBRARY_PATH
17132 hardcode_into_libs=yes
17135 haiku*)
17136 version_type=linux
17137 need_lib_prefix=no
17138 need_version=no
17139 dynamic_linker="$host_os runtime_loader"
17140 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
17141 soname_spec='${libname}${release}${shared_ext}$major'
17142 shlibpath_var=LIBRARY_PATH
17143 shlibpath_overrides_runpath=yes
17144 sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/beos/system/lib'
17145 hardcode_into_libs=yes
17148 hpux9* | hpux10* | hpux11*)
17149 # Give a soname corresponding to the major version so that dld.sl refuses to
17150 # link against other versions.
17151 version_type=sunos
17152 need_lib_prefix=no
17153 need_version=no
17154 case $host_cpu in
17155 ia64*)
17156 shrext_cmds='.so'
17157 hardcode_into_libs=yes
17158 dynamic_linker="$host_os dld.so"
17159 shlibpath_var=LD_LIBRARY_PATH
17160 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
17161 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17162 soname_spec='${libname}${release}${shared_ext}$major'
17163 if test "X$HPUX_IA64_MODE" = X32; then
17164 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
17165 else
17166 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
17168 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
17170 hppa*64*)
17171 shrext_cmds='.sl'
17172 hardcode_into_libs=yes
17173 dynamic_linker="$host_os dld.sl"
17174 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
17175 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
17176 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17177 soname_spec='${libname}${release}${shared_ext}$major'
17178 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
17179 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
17182 shrext_cmds='.sl'
17183 dynamic_linker="$host_os dld.sl"
17184 shlibpath_var=SHLIB_PATH
17185 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
17186 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17187 soname_spec='${libname}${release}${shared_ext}$major'
17189 esac
17190 # HP-UX runs *really* slowly unless shared libraries are mode 555, ...
17191 postinstall_cmds='chmod 555 $lib'
17192 # or fails outright, so override atomically:
17193 install_override_mode=555
17196 interix[3-9]*)
17197 version_type=linux
17198 need_lib_prefix=no
17199 need_version=no
17200 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
17201 soname_spec='${libname}${release}${shared_ext}$major'
17202 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
17203 shlibpath_var=LD_LIBRARY_PATH
17204 shlibpath_overrides_runpath=no
17205 hardcode_into_libs=yes
17208 irix5* | irix6* | nonstopux*)
17209 case $host_os in
17210 nonstopux*) version_type=nonstopux ;;
17212 if test "$lt_cv_prog_gnu_ld" = yes; then
17213 version_type=linux
17214 else
17215 version_type=irix
17216 fi ;;
17217 esac
17218 need_lib_prefix=no
17219 need_version=no
17220 soname_spec='${libname}${release}${shared_ext}$major'
17221 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
17222 case $host_os in
17223 irix5* | nonstopux*)
17224 libsuff= shlibsuff=
17227 case $LD in # libtool.m4 will add one of these switches to LD
17228 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
17229 libsuff= shlibsuff= libmagic=32-bit;;
17230 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
17231 libsuff=32 shlibsuff=N32 libmagic=N32;;
17232 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
17233 libsuff=64 shlibsuff=64 libmagic=64-bit;;
17234 *) libsuff= shlibsuff= libmagic=never-match;;
17235 esac
17237 esac
17238 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
17239 shlibpath_overrides_runpath=no
17240 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
17241 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
17242 hardcode_into_libs=yes
17245 # No shared lib support for Linux oldld, aout, or coff.
17246 linux*oldld* | linux*aout* | linux*coff*)
17247 dynamic_linker=no
17250 # This must be Linux ELF.
17251 linux* | k*bsd*-gnu | kopensolaris*-gnu)
17252 version_type=linux
17253 need_lib_prefix=no
17254 need_version=no
17255 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17256 soname_spec='${libname}${release}${shared_ext}$major'
17257 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
17258 shlibpath_var=LD_LIBRARY_PATH
17259 shlibpath_overrides_runpath=no
17261 # Some binutils ld are patched to set DT_RUNPATH
17262 if test "${lt_cv_shlibpath_overrides_runpath+set}" = set; then :
17263 $as_echo_n "(cached) " >&6
17264 else
17265 lt_cv_shlibpath_overrides_runpath=no
17266 save_LDFLAGS=$LDFLAGS
17267 save_libdir=$libdir
17268 eval "libdir=/foo; wl=\"$lt_prog_compiler_wl\"; \
17269 LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec\""
17270 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17271 /* end confdefs.h. */
17274 main ()
17278 return 0;
17280 _ACEOF
17281 if ac_fn_c_try_link "$LINENO"; then :
17282 if ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then :
17283 lt_cv_shlibpath_overrides_runpath=yes
17286 rm -f core conftest.err conftest.$ac_objext \
17287 conftest$ac_exeext conftest.$ac_ext
17288 LDFLAGS=$save_LDFLAGS
17289 libdir=$save_libdir
17293 shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath
17295 # This implies no fast_install, which is unacceptable.
17296 # Some rework will be needed to allow for fast_install
17297 # before this can be enabled.
17298 hardcode_into_libs=yes
17300 # Append ld.so.conf contents to the search path
17301 if test -f /etc/ld.so.conf; then
17302 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' ' '`
17303 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
17306 # We used to test for /lib/ld.so.1 and disable shared libraries on
17307 # powerpc, because MkLinux only supported shared libraries with the
17308 # GNU dynamic linker. Since this was broken with cross compilers,
17309 # most powerpc-linux boxes support dynamic linking these days and
17310 # people can always --disable-shared, the test was removed, and we
17311 # assume the GNU/Linux dynamic linker is in use.
17312 dynamic_linker='GNU/Linux ld.so'
17315 netbsd*)
17316 version_type=sunos
17317 need_lib_prefix=no
17318 need_version=no
17319 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
17320 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
17321 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
17322 dynamic_linker='NetBSD (a.out) ld.so'
17323 else
17324 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
17325 soname_spec='${libname}${release}${shared_ext}$major'
17326 dynamic_linker='NetBSD ld.elf_so'
17328 shlibpath_var=LD_LIBRARY_PATH
17329 shlibpath_overrides_runpath=yes
17330 hardcode_into_libs=yes
17333 newsos6)
17334 version_type=linux
17335 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17336 shlibpath_var=LD_LIBRARY_PATH
17337 shlibpath_overrides_runpath=yes
17340 *nto* | *qnx*)
17341 version_type=qnx
17342 need_lib_prefix=no
17343 need_version=no
17344 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17345 soname_spec='${libname}${release}${shared_ext}$major'
17346 shlibpath_var=LD_LIBRARY_PATH
17347 shlibpath_overrides_runpath=no
17348 hardcode_into_libs=yes
17349 dynamic_linker='ldqnx.so'
17352 openbsd*)
17353 version_type=sunos
17354 sys_lib_dlsearch_path_spec="/usr/lib"
17355 need_lib_prefix=no
17356 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
17357 case $host_os in
17358 openbsd3.3 | openbsd3.3.*) need_version=yes ;;
17359 *) need_version=no ;;
17360 esac
17361 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
17362 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
17363 shlibpath_var=LD_LIBRARY_PATH
17364 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
17365 case $host_os in
17366 openbsd2.[89] | openbsd2.[89].*)
17367 shlibpath_overrides_runpath=no
17370 shlibpath_overrides_runpath=yes
17372 esac
17373 else
17374 shlibpath_overrides_runpath=yes
17378 os2*)
17379 libname_spec='$name'
17380 shrext_cmds=".dll"
17381 need_lib_prefix=no
17382 library_names_spec='$libname${shared_ext} $libname.a'
17383 dynamic_linker='OS/2 ld.exe'
17384 shlibpath_var=LIBPATH
17387 osf3* | osf4* | osf5*)
17388 version_type=osf
17389 need_lib_prefix=no
17390 need_version=no
17391 soname_spec='${libname}${release}${shared_ext}$major'
17392 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17393 shlibpath_var=LD_LIBRARY_PATH
17394 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
17395 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
17398 rdos*)
17399 dynamic_linker=no
17402 solaris*)
17403 version_type=linux
17404 need_lib_prefix=no
17405 need_version=no
17406 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17407 soname_spec='${libname}${release}${shared_ext}$major'
17408 shlibpath_var=LD_LIBRARY_PATH
17409 shlibpath_overrides_runpath=yes
17410 hardcode_into_libs=yes
17411 # ldd complains unless libraries are executable
17412 postinstall_cmds='chmod +x $lib'
17415 sunos4*)
17416 version_type=sunos
17417 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
17418 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
17419 shlibpath_var=LD_LIBRARY_PATH
17420 shlibpath_overrides_runpath=yes
17421 if test "$with_gnu_ld" = yes; then
17422 need_lib_prefix=no
17424 need_version=yes
17427 sysv4 | sysv4.3*)
17428 version_type=linux
17429 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17430 soname_spec='${libname}${release}${shared_ext}$major'
17431 shlibpath_var=LD_LIBRARY_PATH
17432 case $host_vendor in
17433 sni)
17434 shlibpath_overrides_runpath=no
17435 need_lib_prefix=no
17436 runpath_var=LD_RUN_PATH
17438 siemens)
17439 need_lib_prefix=no
17441 motorola)
17442 need_lib_prefix=no
17443 need_version=no
17444 shlibpath_overrides_runpath=no
17445 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
17447 esac
17450 sysv4*MP*)
17451 if test -d /usr/nec ;then
17452 version_type=linux
17453 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
17454 soname_spec='$libname${shared_ext}.$major'
17455 shlibpath_var=LD_LIBRARY_PATH
17459 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
17460 version_type=freebsd-elf
17461 need_lib_prefix=no
17462 need_version=no
17463 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
17464 soname_spec='${libname}${release}${shared_ext}$major'
17465 shlibpath_var=LD_LIBRARY_PATH
17466 shlibpath_overrides_runpath=yes
17467 hardcode_into_libs=yes
17468 if test "$with_gnu_ld" = yes; then
17469 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
17470 else
17471 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
17472 case $host_os in
17473 sco3.2v5*)
17474 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
17476 esac
17478 sys_lib_dlsearch_path_spec='/usr/lib'
17481 tpf*)
17482 # TPF is a cross-target only. Preferred cross-host = GNU/Linux.
17483 version_type=linux
17484 need_lib_prefix=no
17485 need_version=no
17486 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17487 shlibpath_var=LD_LIBRARY_PATH
17488 shlibpath_overrides_runpath=no
17489 hardcode_into_libs=yes
17492 uts4*)
17493 version_type=linux
17494 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17495 soname_spec='${libname}${release}${shared_ext}$major'
17496 shlibpath_var=LD_LIBRARY_PATH
17500 dynamic_linker=no
17502 esac
17503 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
17504 $as_echo "$dynamic_linker" >&6; }
17505 test "$dynamic_linker" = no && can_build_shared=no
17507 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
17508 if test "$GCC" = yes; then
17509 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
17512 if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
17513 sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
17515 if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
17516 sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
17610 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
17611 $as_echo_n "checking how to hardcode library paths into programs... " >&6; }
17612 hardcode_action=
17613 if test -n "$hardcode_libdir_flag_spec" ||
17614 test -n "$runpath_var" ||
17615 test "X$hardcode_automatic" = "Xyes" ; then
17617 # We can hardcode non-existent directories.
17618 if test "$hardcode_direct" != no &&
17619 # If the only mechanism to avoid hardcoding is shlibpath_var, we
17620 # have to relink, otherwise we might link with an installed library
17621 # when we should be linking with a yet-to-be-installed one
17622 ## test "$_LT_TAGVAR(hardcode_shlibpath_var, )" != no &&
17623 test "$hardcode_minus_L" != no; then
17624 # Linking always hardcodes the temporary library directory.
17625 hardcode_action=relink
17626 else
17627 # We can link without hardcoding, and we can hardcode nonexisting dirs.
17628 hardcode_action=immediate
17630 else
17631 # We cannot hardcode anything, or else we can only hardcode existing
17632 # directories.
17633 hardcode_action=unsupported
17635 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action" >&5
17636 $as_echo "$hardcode_action" >&6; }
17638 if test "$hardcode_action" = relink ||
17639 test "$inherit_rpath" = yes; then
17640 # Fast installation is not supported
17641 enable_fast_install=no
17642 elif test "$shlibpath_overrides_runpath" = yes ||
17643 test "$enable_shared" = no; then
17644 # Fast installation is not necessary
17645 enable_fast_install=needless
17653 if test "x$enable_dlopen" != xyes; then
17654 enable_dlopen=unknown
17655 enable_dlopen_self=unknown
17656 enable_dlopen_self_static=unknown
17657 else
17658 lt_cv_dlopen=no
17659 lt_cv_dlopen_libs=
17661 case $host_os in
17662 beos*)
17663 lt_cv_dlopen="load_add_on"
17664 lt_cv_dlopen_libs=
17665 lt_cv_dlopen_self=yes
17668 mingw* | pw32* | cegcc*)
17669 lt_cv_dlopen="LoadLibrary"
17670 lt_cv_dlopen_libs=
17673 cygwin*)
17674 lt_cv_dlopen="dlopen"
17675 lt_cv_dlopen_libs=
17678 darwin*)
17679 # if libdl is installed we need to link against it
17680 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
17681 $as_echo_n "checking for dlopen in -ldl... " >&6; }
17682 if test "${ac_cv_lib_dl_dlopen+set}" = set; then :
17683 $as_echo_n "(cached) " >&6
17684 else
17685 ac_check_lib_save_LIBS=$LIBS
17686 LIBS="-ldl $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 dlopen ();
17698 main ()
17700 return dlopen ();
17702 return 0;
17704 _ACEOF
17705 if ac_fn_c_try_link "$LINENO"; then :
17706 ac_cv_lib_dl_dlopen=yes
17707 else
17708 ac_cv_lib_dl_dlopen=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_dl_dlopen" >&5
17715 $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
17716 if test "x$ac_cv_lib_dl_dlopen" = x""yes; then :
17717 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
17718 else
17720 lt_cv_dlopen="dyld"
17721 lt_cv_dlopen_libs=
17722 lt_cv_dlopen_self=yes
17729 ac_fn_c_check_func "$LINENO" "shl_load" "ac_cv_func_shl_load"
17730 if test "x$ac_cv_func_shl_load" = x""yes; then :
17731 lt_cv_dlopen="shl_load"
17732 else
17733 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shl_load in -ldld" >&5
17734 $as_echo_n "checking for shl_load in -ldld... " >&6; }
17735 if test "${ac_cv_lib_dld_shl_load+set}" = set; then :
17736 $as_echo_n "(cached) " >&6
17737 else
17738 ac_check_lib_save_LIBS=$LIBS
17739 LIBS="-ldld $LIBS"
17740 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17741 /* end confdefs.h. */
17743 /* Override any GCC internal prototype to avoid an error.
17744 Use char because int might match the return type of a GCC
17745 builtin and then its argument prototype would still apply. */
17746 #ifdef __cplusplus
17747 extern "C"
17748 #endif
17749 char shl_load ();
17751 main ()
17753 return shl_load ();
17755 return 0;
17757 _ACEOF
17758 if ac_fn_c_try_link "$LINENO"; then :
17759 ac_cv_lib_dld_shl_load=yes
17760 else
17761 ac_cv_lib_dld_shl_load=no
17763 rm -f core conftest.err conftest.$ac_objext \
17764 conftest$ac_exeext conftest.$ac_ext
17765 LIBS=$ac_check_lib_save_LIBS
17767 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_shl_load" >&5
17768 $as_echo "$ac_cv_lib_dld_shl_load" >&6; }
17769 if test "x$ac_cv_lib_dld_shl_load" = x""yes; then :
17770 lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-ldld"
17771 else
17772 ac_fn_c_check_func "$LINENO" "dlopen" "ac_cv_func_dlopen"
17773 if test "x$ac_cv_func_dlopen" = x""yes; then :
17774 lt_cv_dlopen="dlopen"
17775 else
17776 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
17777 $as_echo_n "checking for dlopen in -ldl... " >&6; }
17778 if test "${ac_cv_lib_dl_dlopen+set}" = set; then :
17779 $as_echo_n "(cached) " >&6
17780 else
17781 ac_check_lib_save_LIBS=$LIBS
17782 LIBS="-ldl $LIBS"
17783 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17784 /* end confdefs.h. */
17786 /* Override any GCC internal prototype to avoid an error.
17787 Use char because int might match the return type of a GCC
17788 builtin and then its argument prototype would still apply. */
17789 #ifdef __cplusplus
17790 extern "C"
17791 #endif
17792 char dlopen ();
17794 main ()
17796 return dlopen ();
17798 return 0;
17800 _ACEOF
17801 if ac_fn_c_try_link "$LINENO"; then :
17802 ac_cv_lib_dl_dlopen=yes
17803 else
17804 ac_cv_lib_dl_dlopen=no
17806 rm -f core conftest.err conftest.$ac_objext \
17807 conftest$ac_exeext conftest.$ac_ext
17808 LIBS=$ac_check_lib_save_LIBS
17810 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
17811 $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
17812 if test "x$ac_cv_lib_dl_dlopen" = x""yes; then :
17813 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
17814 else
17815 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -lsvld" >&5
17816 $as_echo_n "checking for dlopen in -lsvld... " >&6; }
17817 if test "${ac_cv_lib_svld_dlopen+set}" = set; then :
17818 $as_echo_n "(cached) " >&6
17819 else
17820 ac_check_lib_save_LIBS=$LIBS
17821 LIBS="-lsvld $LIBS"
17822 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17823 /* end confdefs.h. */
17825 /* Override any GCC internal prototype to avoid an error.
17826 Use char because int might match the return type of a GCC
17827 builtin and then its argument prototype would still apply. */
17828 #ifdef __cplusplus
17829 extern "C"
17830 #endif
17831 char dlopen ();
17833 main ()
17835 return dlopen ();
17837 return 0;
17839 _ACEOF
17840 if ac_fn_c_try_link "$LINENO"; then :
17841 ac_cv_lib_svld_dlopen=yes
17842 else
17843 ac_cv_lib_svld_dlopen=no
17845 rm -f core conftest.err conftest.$ac_objext \
17846 conftest$ac_exeext conftest.$ac_ext
17847 LIBS=$ac_check_lib_save_LIBS
17849 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_svld_dlopen" >&5
17850 $as_echo "$ac_cv_lib_svld_dlopen" >&6; }
17851 if test "x$ac_cv_lib_svld_dlopen" = x""yes; then :
17852 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
17853 else
17854 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dld_link in -ldld" >&5
17855 $as_echo_n "checking for dld_link in -ldld... " >&6; }
17856 if test "${ac_cv_lib_dld_dld_link+set}" = set; then :
17857 $as_echo_n "(cached) " >&6
17858 else
17859 ac_check_lib_save_LIBS=$LIBS
17860 LIBS="-ldld $LIBS"
17861 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17862 /* end confdefs.h. */
17864 /* Override any GCC internal prototype to avoid an error.
17865 Use char because int might match the return type of a GCC
17866 builtin and then its argument prototype would still apply. */
17867 #ifdef __cplusplus
17868 extern "C"
17869 #endif
17870 char dld_link ();
17872 main ()
17874 return dld_link ();
17876 return 0;
17878 _ACEOF
17879 if ac_fn_c_try_link "$LINENO"; then :
17880 ac_cv_lib_dld_dld_link=yes
17881 else
17882 ac_cv_lib_dld_dld_link=no
17884 rm -f core conftest.err conftest.$ac_objext \
17885 conftest$ac_exeext conftest.$ac_ext
17886 LIBS=$ac_check_lib_save_LIBS
17888 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_dld_link" >&5
17889 $as_echo "$ac_cv_lib_dld_dld_link" >&6; }
17890 if test "x$ac_cv_lib_dld_dld_link" = x""yes; then :
17891 lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-ldld"
17910 esac
17912 if test "x$lt_cv_dlopen" != xno; then
17913 enable_dlopen=yes
17914 else
17915 enable_dlopen=no
17918 case $lt_cv_dlopen in
17919 dlopen)
17920 save_CPPFLAGS="$CPPFLAGS"
17921 test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
17923 save_LDFLAGS="$LDFLAGS"
17924 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
17926 save_LIBS="$LIBS"
17927 LIBS="$lt_cv_dlopen_libs $LIBS"
17929 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a program can dlopen itself" >&5
17930 $as_echo_n "checking whether a program can dlopen itself... " >&6; }
17931 if test "${lt_cv_dlopen_self+set}" = set; then :
17932 $as_echo_n "(cached) " >&6
17933 else
17934 if test "$cross_compiling" = yes; then :
17935 lt_cv_dlopen_self=cross
17936 else
17937 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
17938 lt_status=$lt_dlunknown
17939 cat > conftest.$ac_ext <<_LT_EOF
17940 #line 17937 "configure"
17941 #include "confdefs.h"
17943 #if HAVE_DLFCN_H
17944 #include <dlfcn.h>
17945 #endif
17947 #include <stdio.h>
17949 #ifdef RTLD_GLOBAL
17950 # define LT_DLGLOBAL RTLD_GLOBAL
17951 #else
17952 # ifdef DL_GLOBAL
17953 # define LT_DLGLOBAL DL_GLOBAL
17954 # else
17955 # define LT_DLGLOBAL 0
17956 # endif
17957 #endif
17959 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
17960 find out it does not work in some platform. */
17961 #ifndef LT_DLLAZY_OR_NOW
17962 # ifdef RTLD_LAZY
17963 # define LT_DLLAZY_OR_NOW RTLD_LAZY
17964 # else
17965 # ifdef DL_LAZY
17966 # define LT_DLLAZY_OR_NOW DL_LAZY
17967 # else
17968 # ifdef RTLD_NOW
17969 # define LT_DLLAZY_OR_NOW RTLD_NOW
17970 # else
17971 # ifdef DL_NOW
17972 # define LT_DLLAZY_OR_NOW DL_NOW
17973 # else
17974 # define LT_DLLAZY_OR_NOW 0
17975 # endif
17976 # endif
17977 # endif
17978 # endif
17979 #endif
17981 /* When -fvisbility=hidden is used, assume the code has been annotated
17982 correspondingly for the symbols needed. */
17983 #if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
17984 void fnord () __attribute__((visibility("default")));
17985 #endif
17987 void fnord () { int i=42; }
17988 int main ()
17990 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
17991 int status = $lt_dlunknown;
17993 if (self)
17995 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
17996 else
17998 if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
17999 else puts (dlerror ());
18001 /* dlclose (self); */
18003 else
18004 puts (dlerror ());
18006 return status;
18008 _LT_EOF
18009 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
18010 (eval $ac_link) 2>&5
18011 ac_status=$?
18012 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
18013 test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
18014 (./conftest; exit; ) >&5 2>/dev/null
18015 lt_status=$?
18016 case x$lt_status in
18017 x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
18018 x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
18019 x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;;
18020 esac
18021 else :
18022 # compilation failed
18023 lt_cv_dlopen_self=no
18026 rm -fr conftest*
18030 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self" >&5
18031 $as_echo "$lt_cv_dlopen_self" >&6; }
18033 if test "x$lt_cv_dlopen_self" = xyes; then
18034 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
18035 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a statically linked program can dlopen itself" >&5
18036 $as_echo_n "checking whether a statically linked program can dlopen itself... " >&6; }
18037 if test "${lt_cv_dlopen_self_static+set}" = set; then :
18038 $as_echo_n "(cached) " >&6
18039 else
18040 if test "$cross_compiling" = yes; then :
18041 lt_cv_dlopen_self_static=cross
18042 else
18043 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
18044 lt_status=$lt_dlunknown
18045 cat > conftest.$ac_ext <<_LT_EOF
18046 #line 18043 "configure"
18047 #include "confdefs.h"
18049 #if HAVE_DLFCN_H
18050 #include <dlfcn.h>
18051 #endif
18053 #include <stdio.h>
18055 #ifdef RTLD_GLOBAL
18056 # define LT_DLGLOBAL RTLD_GLOBAL
18057 #else
18058 # ifdef DL_GLOBAL
18059 # define LT_DLGLOBAL DL_GLOBAL
18060 # else
18061 # define LT_DLGLOBAL 0
18062 # endif
18063 #endif
18065 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
18066 find out it does not work in some platform. */
18067 #ifndef LT_DLLAZY_OR_NOW
18068 # ifdef RTLD_LAZY
18069 # define LT_DLLAZY_OR_NOW RTLD_LAZY
18070 # else
18071 # ifdef DL_LAZY
18072 # define LT_DLLAZY_OR_NOW DL_LAZY
18073 # else
18074 # ifdef RTLD_NOW
18075 # define LT_DLLAZY_OR_NOW RTLD_NOW
18076 # else
18077 # ifdef DL_NOW
18078 # define LT_DLLAZY_OR_NOW DL_NOW
18079 # else
18080 # define LT_DLLAZY_OR_NOW 0
18081 # endif
18082 # endif
18083 # endif
18084 # endif
18085 #endif
18087 /* When -fvisbility=hidden is used, assume the code has been annotated
18088 correspondingly for the symbols needed. */
18089 #if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
18090 void fnord () __attribute__((visibility("default")));
18091 #endif
18093 void fnord () { int i=42; }
18094 int main ()
18096 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
18097 int status = $lt_dlunknown;
18099 if (self)
18101 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
18102 else
18104 if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
18105 else puts (dlerror ());
18107 /* dlclose (self); */
18109 else
18110 puts (dlerror ());
18112 return status;
18114 _LT_EOF
18115 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
18116 (eval $ac_link) 2>&5
18117 ac_status=$?
18118 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
18119 test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
18120 (./conftest; exit; ) >&5 2>/dev/null
18121 lt_status=$?
18122 case x$lt_status in
18123 x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
18124 x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
18125 x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;;
18126 esac
18127 else :
18128 # compilation failed
18129 lt_cv_dlopen_self_static=no
18132 rm -fr conftest*
18136 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self_static" >&5
18137 $as_echo "$lt_cv_dlopen_self_static" >&6; }
18140 CPPFLAGS="$save_CPPFLAGS"
18141 LDFLAGS="$save_LDFLAGS"
18142 LIBS="$save_LIBS"
18144 esac
18146 case $lt_cv_dlopen_self in
18147 yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
18148 *) enable_dlopen_self=unknown ;;
18149 esac
18151 case $lt_cv_dlopen_self_static in
18152 yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
18153 *) enable_dlopen_self_static=unknown ;;
18154 esac
18173 striplib=
18174 old_striplib=
18175 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stripping libraries is possible" >&5
18176 $as_echo_n "checking whether stripping libraries is possible... " >&6; }
18177 if test -n "$STRIP" && $STRIP -V 2>&1 | $GREP "GNU strip" >/dev/null; then
18178 test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
18179 test -z "$striplib" && striplib="$STRIP --strip-unneeded"
18180 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
18181 $as_echo "yes" >&6; }
18182 else
18183 # FIXME - insert some real tests, host_os isn't really good enough
18184 case $host_os in
18185 darwin*)
18186 if test -n "$STRIP" ; then
18187 striplib="$STRIP -x"
18188 old_striplib="$STRIP -S"
18189 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
18190 $as_echo "yes" >&6; }
18191 else
18192 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
18193 $as_echo "no" >&6; }
18197 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
18198 $as_echo "no" >&6; }
18200 esac
18214 # Report which library types will actually be built
18215 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if libtool supports shared libraries" >&5
18216 $as_echo_n "checking if libtool supports shared libraries... " >&6; }
18217 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $can_build_shared" >&5
18218 $as_echo "$can_build_shared" >&6; }
18220 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build shared libraries" >&5
18221 $as_echo_n "checking whether to build shared libraries... " >&6; }
18222 test "$can_build_shared" = "no" && enable_shared=no
18224 # On AIX, shared libraries and static libraries use the same namespace, and
18225 # are all built from PIC.
18226 case $host_os in
18227 aix3*)
18228 test "$enable_shared" = yes && enable_static=no
18229 if test -n "$RANLIB"; then
18230 archive_cmds="$archive_cmds~\$RANLIB \$lib"
18231 postinstall_cmds='$RANLIB $lib'
18235 aix[4-9]*)
18236 if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
18237 test "$enable_shared" = yes && enable_static=no
18240 esac
18241 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_shared" >&5
18242 $as_echo "$enable_shared" >&6; }
18244 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build static libraries" >&5
18245 $as_echo_n "checking whether to build static libraries... " >&6; }
18246 # Make sure either enable_shared or enable_static is yes.
18247 test "$enable_shared" = yes || enable_static=yes
18248 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_static" >&5
18249 $as_echo "$enable_static" >&6; }
18255 ac_ext=c
18256 ac_cpp='$CPP $CPPFLAGS'
18257 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18258 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18259 ac_compiler_gnu=$ac_cv_c_compiler_gnu
18261 CC="$lt_save_CC"
18263 if test -n "$CXX" && ( test "X$CXX" != "Xno" &&
18264 ( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) ||
18265 (test "X$CXX" != "Xg++"))) ; then
18266 ac_ext=cpp
18267 ac_cpp='$CXXCPP $CPPFLAGS'
18268 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18269 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18270 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
18271 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C++ preprocessor" >&5
18272 $as_echo_n "checking how to run the C++ preprocessor... " >&6; }
18273 if test -z "$CXXCPP"; then
18274 if test "${ac_cv_prog_CXXCPP+set}" = set; then :
18275 $as_echo_n "(cached) " >&6
18276 else
18277 # Double quotes because CXXCPP needs to be expanded
18278 for CXXCPP in "$CXX -E" "/lib/cpp"
18280 ac_preproc_ok=false
18281 for ac_cxx_preproc_warn_flag in '' yes
18283 # Use a header file that comes with gcc, so configuring glibc
18284 # with a fresh cross-compiler works.
18285 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
18286 # <limits.h> exists even on freestanding compilers.
18287 # On the NeXT, cc -E runs the code through the compiler's parser,
18288 # not just through cpp. "Syntax error" is here to catch this case.
18289 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18290 /* end confdefs.h. */
18291 #ifdef __STDC__
18292 # include <limits.h>
18293 #else
18294 # include <assert.h>
18295 #endif
18296 Syntax error
18297 _ACEOF
18298 if ac_fn_cxx_try_cpp "$LINENO"; then :
18300 else
18301 # Broken: fails on valid input.
18302 continue
18304 rm -f conftest.err conftest.$ac_ext
18306 # OK, works on sane cases. Now check whether nonexistent headers
18307 # can be detected and how.
18308 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18309 /* end confdefs.h. */
18310 #include <ac_nonexistent.h>
18311 _ACEOF
18312 if ac_fn_cxx_try_cpp "$LINENO"; then :
18313 # Broken: success on invalid input.
18314 continue
18315 else
18316 # Passes both tests.
18317 ac_preproc_ok=:
18318 break
18320 rm -f conftest.err conftest.$ac_ext
18322 done
18323 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
18324 rm -f conftest.err conftest.$ac_ext
18325 if $ac_preproc_ok; then :
18326 break
18329 done
18330 ac_cv_prog_CXXCPP=$CXXCPP
18333 CXXCPP=$ac_cv_prog_CXXCPP
18334 else
18335 ac_cv_prog_CXXCPP=$CXXCPP
18337 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXXCPP" >&5
18338 $as_echo "$CXXCPP" >&6; }
18339 ac_preproc_ok=false
18340 for ac_cxx_preproc_warn_flag in '' yes
18342 # Use a header file that comes with gcc, so configuring glibc
18343 # with a fresh cross-compiler works.
18344 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
18345 # <limits.h> exists even on freestanding compilers.
18346 # On the NeXT, cc -E runs the code through the compiler's parser,
18347 # not just through cpp. "Syntax error" is here to catch this case.
18348 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18349 /* end confdefs.h. */
18350 #ifdef __STDC__
18351 # include <limits.h>
18352 #else
18353 # include <assert.h>
18354 #endif
18355 Syntax error
18356 _ACEOF
18357 if ac_fn_cxx_try_cpp "$LINENO"; then :
18359 else
18360 # Broken: fails on valid input.
18361 continue
18363 rm -f conftest.err conftest.$ac_ext
18365 # OK, works on sane cases. Now check whether nonexistent headers
18366 # can be detected and how.
18367 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18368 /* end confdefs.h. */
18369 #include <ac_nonexistent.h>
18370 _ACEOF
18371 if ac_fn_cxx_try_cpp "$LINENO"; then :
18372 # Broken: success on invalid input.
18373 continue
18374 else
18375 # Passes both tests.
18376 ac_preproc_ok=:
18377 break
18379 rm -f conftest.err conftest.$ac_ext
18381 done
18382 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
18383 rm -f conftest.err conftest.$ac_ext
18384 if $ac_preproc_ok; then :
18386 else
18387 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
18388 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
18389 as_fn_error "C++ preprocessor \"$CXXCPP\" fails sanity check
18390 See \`config.log' for more details." "$LINENO" 5; }
18393 ac_ext=c
18394 ac_cpp='$CPP $CPPFLAGS'
18395 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18396 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18397 ac_compiler_gnu=$ac_cv_c_compiler_gnu
18399 else
18400 _lt_caught_CXX_error=yes
18403 ac_ext=cpp
18404 ac_cpp='$CXXCPP $CPPFLAGS'
18405 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18406 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18407 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
18409 archive_cmds_need_lc_CXX=no
18410 allow_undefined_flag_CXX=
18411 always_export_symbols_CXX=no
18412 archive_expsym_cmds_CXX=
18413 compiler_needs_object_CXX=no
18414 export_dynamic_flag_spec_CXX=
18415 hardcode_direct_CXX=no
18416 hardcode_direct_absolute_CXX=no
18417 hardcode_libdir_flag_spec_CXX=
18418 hardcode_libdir_flag_spec_ld_CXX=
18419 hardcode_libdir_separator_CXX=
18420 hardcode_minus_L_CXX=no
18421 hardcode_shlibpath_var_CXX=unsupported
18422 hardcode_automatic_CXX=no
18423 inherit_rpath_CXX=no
18424 module_cmds_CXX=
18425 module_expsym_cmds_CXX=
18426 link_all_deplibs_CXX=unknown
18427 old_archive_cmds_CXX=$old_archive_cmds
18428 reload_flag_CXX=$reload_flag
18429 reload_cmds_CXX=$reload_cmds
18430 no_undefined_flag_CXX=
18431 whole_archive_flag_spec_CXX=
18432 enable_shared_with_static_runtimes_CXX=no
18434 # Source file extension for C++ test sources.
18435 ac_ext=cpp
18437 # Object file extension for compiled C++ test sources.
18438 objext=o
18439 objext_CXX=$objext
18441 # No sense in running all these tests if we already determined that
18442 # the CXX compiler isn't working. Some variables (like enable_shared)
18443 # are currently assumed to apply to all compilers on this platform,
18444 # and will be corrupted by setting them based on a non-working compiler.
18445 if test "$_lt_caught_CXX_error" != yes; then
18446 # Code to be used in simple compile tests
18447 lt_simple_compile_test_code="int some_variable = 0;"
18449 # Code to be used in simple link tests
18450 lt_simple_link_test_code='int main(int, char *[]) { return(0); }'
18452 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
18459 # If no C compiler was specified, use CC.
18460 LTCC=${LTCC-"$CC"}
18462 # If no C compiler flags were specified, use CFLAGS.
18463 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
18465 # Allow CC to be a program name with arguments.
18466 compiler=$CC
18469 # save warnings/boilerplate of simple test code
18470 ac_outfile=conftest.$ac_objext
18471 echo "$lt_simple_compile_test_code" >conftest.$ac_ext
18472 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
18473 _lt_compiler_boilerplate=`cat conftest.err`
18474 $RM conftest*
18476 ac_outfile=conftest.$ac_objext
18477 echo "$lt_simple_link_test_code" >conftest.$ac_ext
18478 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
18479 _lt_linker_boilerplate=`cat conftest.err`
18480 $RM -r conftest*
18483 # Allow CC to be a program name with arguments.
18484 lt_save_CC=$CC
18485 lt_save_LD=$LD
18486 lt_save_GCC=$GCC
18487 GCC=$GXX
18488 lt_save_with_gnu_ld=$with_gnu_ld
18489 lt_save_path_LD=$lt_cv_path_LD
18490 if test -n "${lt_cv_prog_gnu_ldcxx+set}"; then
18491 lt_cv_prog_gnu_ld=$lt_cv_prog_gnu_ldcxx
18492 else
18493 $as_unset lt_cv_prog_gnu_ld
18495 if test -n "${lt_cv_path_LDCXX+set}"; then
18496 lt_cv_path_LD=$lt_cv_path_LDCXX
18497 else
18498 $as_unset lt_cv_path_LD
18500 test -z "${LDCXX+set}" || LD=$LDCXX
18501 CC=${CXX-"c++"}
18502 compiler=$CC
18503 compiler_CXX=$CC
18504 for cc_temp in $compiler""; do
18505 case $cc_temp in
18506 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
18507 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
18508 \-*) ;;
18509 *) break;;
18510 esac
18511 done
18512 cc_basename=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
18515 if test -n "$compiler"; then
18516 # We don't want -fno-exception when compiling C++ code, so set the
18517 # no_builtin_flag separately
18518 if test "$GXX" = yes; then
18519 lt_prog_compiler_no_builtin_flag_CXX=' -fno-builtin'
18520 else
18521 lt_prog_compiler_no_builtin_flag_CXX=
18524 if test "$GXX" = yes; then
18525 # Set up default GNU C++ configuration
18529 # Check whether --with-gnu-ld was given.
18530 if test "${with_gnu_ld+set}" = set; then :
18531 withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
18532 else
18533 with_gnu_ld=no
18536 ac_prog=ld
18537 if test "$GCC" = yes; then
18538 # Check if gcc -print-prog-name=ld gives a path.
18539 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
18540 $as_echo_n "checking for ld used by $CC... " >&6; }
18541 case $host in
18542 *-*-mingw*)
18543 # gcc leaves a trailing carriage return which upsets mingw
18544 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
18546 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
18547 esac
18548 case $ac_prog in
18549 # Accept absolute paths.
18550 [\\/]* | ?:[\\/]*)
18551 re_direlt='/[^/][^/]*/\.\./'
18552 # Canonicalize the pathname of ld
18553 ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
18554 while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
18555 ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
18556 done
18557 test -z "$LD" && LD="$ac_prog"
18560 # If it fails, then pretend we aren't using GCC.
18561 ac_prog=ld
18564 # If it is relative, then search for the first ld in PATH.
18565 with_gnu_ld=unknown
18567 esac
18568 elif test "$with_gnu_ld" = yes; then
18569 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
18570 $as_echo_n "checking for GNU ld... " >&6; }
18571 else
18572 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
18573 $as_echo_n "checking for non-GNU ld... " >&6; }
18575 if test "${lt_cv_path_LD+set}" = set; then :
18576 $as_echo_n "(cached) " >&6
18577 else
18578 if test -z "$LD"; then
18579 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
18580 for ac_dir in $PATH; do
18581 IFS="$lt_save_ifs"
18582 test -z "$ac_dir" && ac_dir=.
18583 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
18584 lt_cv_path_LD="$ac_dir/$ac_prog"
18585 # Check to see if the program is GNU ld. I'd rather use --version,
18586 # but apparently some variants of GNU ld only accept -v.
18587 # Break only if it was the GNU/non-GNU ld that we prefer.
18588 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
18589 *GNU* | *'with BFD'*)
18590 test "$with_gnu_ld" != no && break
18593 test "$with_gnu_ld" != yes && break
18595 esac
18597 done
18598 IFS="$lt_save_ifs"
18599 else
18600 lt_cv_path_LD="$LD" # Let the user override the test with a path.
18604 LD="$lt_cv_path_LD"
18605 if test -n "$LD"; then
18606 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
18607 $as_echo "$LD" >&6; }
18608 else
18609 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
18610 $as_echo "no" >&6; }
18612 test -z "$LD" && as_fn_error "no acceptable ld found in \$PATH" "$LINENO" 5
18613 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
18614 $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
18615 if test "${lt_cv_prog_gnu_ld+set}" = set; then :
18616 $as_echo_n "(cached) " >&6
18617 else
18618 # I'd rather use --version here, but apparently some GNU lds only accept -v.
18619 case `$LD -v 2>&1 </dev/null` in
18620 *GNU* | *'with BFD'*)
18621 lt_cv_prog_gnu_ld=yes
18624 lt_cv_prog_gnu_ld=no
18626 esac
18628 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
18629 $as_echo "$lt_cv_prog_gnu_ld" >&6; }
18630 with_gnu_ld=$lt_cv_prog_gnu_ld
18638 # Check if GNU C++ uses GNU ld as the underlying linker, since the
18639 # archiving commands below assume that GNU ld is being used.
18640 if test "$with_gnu_ld" = yes; then
18641 archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
18642 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'
18644 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
18645 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
18647 # If archive_cmds runs LD, not CC, wlarc should be empty
18648 # XXX I think wlarc can be eliminated in ltcf-cxx, but I need to
18649 # investigate it a little bit more. (MM)
18650 wlarc='${wl}'
18652 # ancient GNU ld didn't support --whole-archive et. al.
18653 if eval "`$CC -print-prog-name=ld` --help 2>&1" |
18654 $GREP 'no-whole-archive' > /dev/null; then
18655 whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
18656 else
18657 whole_archive_flag_spec_CXX=
18659 else
18660 with_gnu_ld=no
18661 wlarc=
18663 # A generic and very simple default shared library creation
18664 # command for GNU C++ for the case where it uses the native
18665 # linker, instead of GNU ld. If possible, this setting should
18666 # overridden to take advantage of the native linker features on
18667 # the platform it is being used on.
18668 archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
18671 # Commands to make compiler produce verbose output that lists
18672 # what "hidden" libraries, object files and flags are used when
18673 # linking a shared library.
18674 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
18676 else
18677 GXX=no
18678 with_gnu_ld=no
18679 wlarc=
18682 # PORTME: fill in a description of your system's C++ link characteristics
18683 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
18684 $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
18685 ld_shlibs_CXX=yes
18686 case $host_os in
18687 aix3*)
18688 # FIXME: insert proper C++ library support
18689 ld_shlibs_CXX=no
18691 aix[4-9]*)
18692 if test "$host_cpu" = ia64; then
18693 # On IA64, the linker does run time linking by default, so we don't
18694 # have to do anything special.
18695 aix_use_runtimelinking=no
18696 exp_sym_flag='-Bexport'
18697 no_entry_flag=""
18698 else
18699 aix_use_runtimelinking=no
18701 # Test if we are trying to use run time linking or normal
18702 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
18703 # need to do runtime linking.
18704 case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
18705 for ld_flag in $LDFLAGS; do
18706 case $ld_flag in
18707 *-brtl*)
18708 aix_use_runtimelinking=yes
18709 break
18711 esac
18712 done
18714 esac
18716 exp_sym_flag='-bexport'
18717 no_entry_flag='-bnoentry'
18720 # When large executables or shared objects are built, AIX ld can
18721 # have problems creating the table of contents. If linking a library
18722 # or program results in "error TOC overflow" add -mminimal-toc to
18723 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
18724 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
18726 archive_cmds_CXX=''
18727 hardcode_direct_CXX=yes
18728 hardcode_direct_absolute_CXX=yes
18729 hardcode_libdir_separator_CXX=':'
18730 link_all_deplibs_CXX=yes
18731 file_list_spec_CXX='${wl}-f,'
18733 if test "$GXX" = yes; then
18734 case $host_os in aix4.[012]|aix4.[012].*)
18735 # We only want to do this on AIX 4.2 and lower, the check
18736 # below for broken collect2 doesn't work under 4.3+
18737 collect2name=`${CC} -print-prog-name=collect2`
18738 if test -f "$collect2name" &&
18739 strings "$collect2name" | $GREP resolve_lib_name >/dev/null
18740 then
18741 # We have reworked collect2
18743 else
18744 # We have old collect2
18745 hardcode_direct_CXX=unsupported
18746 # It fails to find uninstalled libraries when the uninstalled
18747 # path is not listed in the libpath. Setting hardcode_minus_L
18748 # to unsupported forces relinking
18749 hardcode_minus_L_CXX=yes
18750 hardcode_libdir_flag_spec_CXX='-L$libdir'
18751 hardcode_libdir_separator_CXX=
18753 esac
18754 shared_flag='-shared'
18755 if test "$aix_use_runtimelinking" = yes; then
18756 shared_flag="$shared_flag "'${wl}-G'
18758 else
18759 # not using gcc
18760 if test "$host_cpu" = ia64; then
18761 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
18762 # chokes on -Wl,-G. The following line is correct:
18763 shared_flag='-G'
18764 else
18765 if test "$aix_use_runtimelinking" = yes; then
18766 shared_flag='${wl}-G'
18767 else
18768 shared_flag='${wl}-bM:SRE'
18773 export_dynamic_flag_spec_CXX='${wl}-bexpall'
18774 # It seems that -bexpall does not export symbols beginning with
18775 # underscore (_), so it is better to generate a list of symbols to
18776 # export.
18777 always_export_symbols_CXX=yes
18778 if test "$aix_use_runtimelinking" = yes; then
18779 # Warning - without using the other runtime loading flags (-brtl),
18780 # -berok will link without error, but may produce a broken library.
18781 allow_undefined_flag_CXX='-berok'
18782 # Determine the default libpath from the value encoded in an empty
18783 # executable.
18784 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18785 /* end confdefs.h. */
18788 main ()
18792 return 0;
18794 _ACEOF
18795 if ac_fn_cxx_try_link "$LINENO"; then :
18797 lt_aix_libpath_sed='
18798 /Import File Strings/,/^$/ {
18799 /^0/ {
18800 s/^0 *\(.*\)$/\1/
18804 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
18805 # Check for a 64-bit object if we didn't find anything.
18806 if test -z "$aix_libpath"; then
18807 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
18810 rm -f core conftest.err conftest.$ac_objext \
18811 conftest$ac_exeext conftest.$ac_ext
18812 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
18814 hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
18816 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"
18817 else
18818 if test "$host_cpu" = ia64; then
18819 hardcode_libdir_flag_spec_CXX='${wl}-R $libdir:/usr/lib:/lib'
18820 allow_undefined_flag_CXX="-z nodefs"
18821 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"
18822 else
18823 # Determine the default libpath from the value encoded in an
18824 # empty executable.
18825 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18826 /* end confdefs.h. */
18829 main ()
18833 return 0;
18835 _ACEOF
18836 if ac_fn_cxx_try_link "$LINENO"; then :
18838 lt_aix_libpath_sed='
18839 /Import File Strings/,/^$/ {
18840 /^0/ {
18841 s/^0 *\(.*\)$/\1/
18845 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
18846 # Check for a 64-bit object if we didn't find anything.
18847 if test -z "$aix_libpath"; then
18848 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
18851 rm -f core conftest.err conftest.$ac_objext \
18852 conftest$ac_exeext conftest.$ac_ext
18853 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
18855 hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
18856 # Warning - without using the other run time loading flags,
18857 # -berok will link without error, but may produce a broken library.
18858 no_undefined_flag_CXX=' ${wl}-bernotok'
18859 allow_undefined_flag_CXX=' ${wl}-berok'
18860 if test "$with_gnu_ld" = yes; then
18861 # We only use this code for GNU lds that support --whole-archive.
18862 whole_archive_flag_spec_CXX='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
18863 else
18864 # Exported symbols can be pulled into shared objects from archives
18865 whole_archive_flag_spec_CXX='$convenience'
18867 archive_cmds_need_lc_CXX=yes
18868 # This is similar to how AIX traditionally builds its shared
18869 # libraries.
18870 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'
18875 beos*)
18876 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
18877 allow_undefined_flag_CXX=unsupported
18878 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
18879 # support --undefined. This deserves some investigation. FIXME
18880 archive_cmds_CXX='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
18881 else
18882 ld_shlibs_CXX=no
18886 chorus*)
18887 case $cc_basename in
18889 # FIXME: insert proper C++ library support
18890 ld_shlibs_CXX=no
18892 esac
18895 cygwin* | mingw* | pw32* | cegcc*)
18896 # _LT_TAGVAR(hardcode_libdir_flag_spec, CXX) is actually meaningless,
18897 # as there is no search path for DLLs.
18898 hardcode_libdir_flag_spec_CXX='-L$libdir'
18899 export_dynamic_flag_spec_CXX='${wl}--export-all-symbols'
18900 allow_undefined_flag_CXX=unsupported
18901 always_export_symbols_CXX=no
18902 enable_shared_with_static_runtimes_CXX=yes
18904 if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
18905 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'
18906 # If the export-symbols file already is a .def file (1st line
18907 # is EXPORTS), use it as is; otherwise, prepend...
18908 archive_expsym_cmds_CXX='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
18909 cp $export_symbols $output_objdir/$soname.def;
18910 else
18911 echo EXPORTS > $output_objdir/$soname.def;
18912 cat $export_symbols >> $output_objdir/$soname.def;
18914 $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'
18915 else
18916 ld_shlibs_CXX=no
18919 darwin* | rhapsody*)
18922 archive_cmds_need_lc_CXX=no
18923 hardcode_direct_CXX=no
18924 hardcode_automatic_CXX=yes
18925 hardcode_shlibpath_var_CXX=unsupported
18926 if test "$lt_cv_ld_force_load" = "yes"; then
18927 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\"`'
18928 else
18929 whole_archive_flag_spec_CXX=''
18931 link_all_deplibs_CXX=yes
18932 allow_undefined_flag_CXX="$_lt_dar_allow_undefined"
18933 case $cc_basename in
18934 ifort*) _lt_dar_can_shared=yes ;;
18935 *) _lt_dar_can_shared=$GCC ;;
18936 esac
18937 if test "$_lt_dar_can_shared" = "yes"; then
18938 output_verbose_link_cmd=func_echo_all
18939 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}"
18940 module_cmds_CXX="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
18941 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}"
18942 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}"
18943 if test "$lt_cv_apple_cc_single_mod" != "yes"; then
18944 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}"
18945 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}"
18948 else
18949 ld_shlibs_CXX=no
18954 dgux*)
18955 case $cc_basename in
18956 ec++*)
18957 # FIXME: insert proper C++ library support
18958 ld_shlibs_CXX=no
18960 ghcx*)
18961 # Green Hills C++ Compiler
18962 # FIXME: insert proper C++ library support
18963 ld_shlibs_CXX=no
18966 # FIXME: insert proper C++ library support
18967 ld_shlibs_CXX=no
18969 esac
18972 freebsd2.*)
18973 # C++ shared libraries reported to be fairly broken before
18974 # switch to ELF
18975 ld_shlibs_CXX=no
18978 freebsd-elf*)
18979 archive_cmds_need_lc_CXX=no
18982 freebsd* | dragonfly*)
18983 # FreeBSD 3 and later use GNU C++ and GNU ld with standard ELF
18984 # conventions
18985 ld_shlibs_CXX=yes
18988 gnu*)
18991 haiku*)
18992 archive_cmds_CXX='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
18993 link_all_deplibs_CXX=yes
18996 hpux9*)
18997 hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
18998 hardcode_libdir_separator_CXX=:
18999 export_dynamic_flag_spec_CXX='${wl}-E'
19000 hardcode_direct_CXX=yes
19001 hardcode_minus_L_CXX=yes # Not in the search PATH,
19002 # but as the default
19003 # location of the library.
19005 case $cc_basename in
19006 CC*)
19007 # FIXME: insert proper C++ library support
19008 ld_shlibs_CXX=no
19010 aCC*)
19011 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'
19012 # Commands to make compiler produce verbose output that lists
19013 # what "hidden" libraries, object files and flags are used when
19014 # linking a shared library.
19016 # There doesn't appear to be a way to prevent this compiler from
19017 # explicitly linking system object files so we need to strip them
19018 # from the output so that they don't get included in the library
19019 # dependencies.
19020 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"'
19023 if test "$GXX" = yes; then
19024 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'
19025 else
19026 # FIXME: insert proper C++ library support
19027 ld_shlibs_CXX=no
19030 esac
19033 hpux10*|hpux11*)
19034 if test $with_gnu_ld = no; then
19035 hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
19036 hardcode_libdir_separator_CXX=:
19038 case $host_cpu in
19039 hppa*64*|ia64*)
19042 export_dynamic_flag_spec_CXX='${wl}-E'
19044 esac
19046 case $host_cpu in
19047 hppa*64*|ia64*)
19048 hardcode_direct_CXX=no
19049 hardcode_shlibpath_var_CXX=no
19052 hardcode_direct_CXX=yes
19053 hardcode_direct_absolute_CXX=yes
19054 hardcode_minus_L_CXX=yes # Not in the search PATH,
19055 # but as the default
19056 # location of the library.
19058 esac
19060 case $cc_basename in
19061 CC*)
19062 # FIXME: insert proper C++ library support
19063 ld_shlibs_CXX=no
19065 aCC*)
19066 case $host_cpu in
19067 hppa*64*)
19068 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
19070 ia64*)
19071 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
19074 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
19076 esac
19077 # Commands to make compiler produce verbose output that lists
19078 # what "hidden" libraries, object files and flags are used when
19079 # linking a shared library.
19081 # There doesn't appear to be a way to prevent this compiler from
19082 # explicitly linking system object files so we need to strip them
19083 # from the output so that they don't get included in the library
19084 # dependencies.
19085 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"'
19088 if test "$GXX" = yes; then
19089 if test $with_gnu_ld = no; then
19090 case $host_cpu in
19091 hppa*64*)
19092 archive_cmds_CXX='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
19094 ia64*)
19095 archive_cmds_CXX='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
19098 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'
19100 esac
19102 else
19103 # FIXME: insert proper C++ library support
19104 ld_shlibs_CXX=no
19107 esac
19110 interix[3-9]*)
19111 hardcode_direct_CXX=no
19112 hardcode_shlibpath_var_CXX=no
19113 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
19114 export_dynamic_flag_spec_CXX='${wl}-E'
19115 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
19116 # Instead, shared libraries are loaded at an image base (0x10000000 by
19117 # default) and relocated if they conflict, which is a slow very memory
19118 # consuming and fragmenting process. To avoid this, we pick a random,
19119 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
19120 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
19121 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'
19122 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'
19124 irix5* | irix6*)
19125 case $cc_basename in
19126 CC*)
19127 # SGI C++
19128 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'
19130 # Archives containing C++ object files must be created using
19131 # "CC -ar", where "CC" is the IRIX C++ compiler. This is
19132 # necessary to make sure instantiated templates are included
19133 # in the archive.
19134 old_archive_cmds_CXX='$CC -ar -WR,-u -o $oldlib $oldobjs'
19137 if test "$GXX" = yes; then
19138 if test "$with_gnu_ld" = no; then
19139 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'
19140 else
19141 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'
19144 link_all_deplibs_CXX=yes
19146 esac
19147 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
19148 hardcode_libdir_separator_CXX=:
19149 inherit_rpath_CXX=yes
19152 linux* | k*bsd*-gnu | kopensolaris*-gnu)
19153 case $cc_basename in
19154 KCC*)
19155 # Kuck and Associates, Inc. (KAI) C++ Compiler
19157 # KCC will only create a shared library if the output file
19158 # ends with ".so" (or ".sl" for HP-UX), so rename the library
19159 # to its proper name (with version) after linking.
19160 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'
19161 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'
19162 # Commands to make compiler produce verbose output that lists
19163 # what "hidden" libraries, object files and flags are used when
19164 # linking a shared library.
19166 # There doesn't appear to be a way to prevent this compiler from
19167 # explicitly linking system object files so we need to strip them
19168 # from the output so that they don't get included in the library
19169 # dependencies.
19170 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"'
19172 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
19173 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
19175 # Archives containing C++ object files must be created using
19176 # "CC -Bstatic", where "CC" is the KAI C++ compiler.
19177 old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs'
19179 icpc* | ecpc* )
19180 # Intel C++
19181 with_gnu_ld=yes
19182 # version 8.0 and above of icpc choke on multiply defined symbols
19183 # if we add $predep_objects and $postdep_objects, however 7.1 and
19184 # earlier do not add the objects themselves.
19185 case `$CC -V 2>&1` in
19186 *"Version 7."*)
19187 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
19188 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'
19190 *) # Version 8.0 or newer
19191 tmp_idyn=
19192 case $host_cpu in
19193 ia64*) tmp_idyn=' -i_dynamic';;
19194 esac
19195 archive_cmds_CXX='$CC -shared'"$tmp_idyn"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
19196 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'
19198 esac
19199 archive_cmds_need_lc_CXX=no
19200 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
19201 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
19202 whole_archive_flag_spec_CXX='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
19204 pgCC* | pgcpp*)
19205 # Portland Group C++ compiler
19206 case `$CC -V` in
19207 *pgCC\ [1-5].* | *pgcpp\ [1-5].*)
19208 prelink_cmds_CXX='tpldir=Template.dir~
19209 rm -rf $tpldir~
19210 $CC --prelink_objects --instantiation_dir $tpldir $objs $libobjs $compile_deplibs~
19211 compile_command="$compile_command `find $tpldir -name \*.o | $NL2SP`"'
19212 old_archive_cmds_CXX='tpldir=Template.dir~
19213 rm -rf $tpldir~
19214 $CC --prelink_objects --instantiation_dir $tpldir $oldobjs$old_deplibs~
19215 $AR $AR_FLAGS $oldlib$oldobjs$old_deplibs `find $tpldir -name \*.o | $NL2SP`~
19216 $RANLIB $oldlib'
19217 archive_cmds_CXX='tpldir=Template.dir~
19218 rm -rf $tpldir~
19219 $CC --prelink_objects --instantiation_dir $tpldir $predep_objects $libobjs $deplibs $convenience $postdep_objects~
19220 $CC -shared $pic_flag $predep_objects $libobjs $deplibs `find $tpldir -name \*.o | $NL2SP` $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname -o $lib'
19221 archive_expsym_cmds_CXX='tpldir=Template.dir~
19222 rm -rf $tpldir~
19223 $CC --prelink_objects --instantiation_dir $tpldir $predep_objects $libobjs $deplibs $convenience $postdep_objects~
19224 $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'
19226 *) # Version 6 and above use weak symbols
19227 archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname -o $lib'
19228 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'
19230 esac
19232 hardcode_libdir_flag_spec_CXX='${wl}--rpath ${wl}$libdir'
19233 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
19234 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'
19236 cxx*)
19237 # Compaq C++
19238 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
19239 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'
19241 runpath_var=LD_RUN_PATH
19242 hardcode_libdir_flag_spec_CXX='-rpath $libdir'
19243 hardcode_libdir_separator_CXX=:
19245 # Commands to make compiler produce verbose output that lists
19246 # what "hidden" libraries, object files and flags are used when
19247 # linking a shared library.
19249 # There doesn't appear to be a way to prevent this compiler from
19250 # explicitly linking system object files so we need to strip them
19251 # from the output so that they don't get included in the library
19252 # dependencies.
19253 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'
19255 xl* | mpixl* | bgxl*)
19256 # IBM XL 8.0 on PPC, with GNU ld
19257 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
19258 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
19259 archive_cmds_CXX='$CC -qmkshrobj $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
19260 if test "x$supports_anon_versioning" = xyes; then
19261 archive_expsym_cmds_CXX='echo "{ global:" > $output_objdir/$libname.ver~
19262 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
19263 echo "local: *; };" >> $output_objdir/$libname.ver~
19264 $CC -qmkshrobj $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
19268 case `$CC -V 2>&1 | sed 5q` in
19269 *Sun\ C*)
19270 # Sun C++ 5.9
19271 no_undefined_flag_CXX=' -zdefs'
19272 archive_cmds_CXX='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
19273 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'
19274 hardcode_libdir_flag_spec_CXX='-R$libdir'
19275 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'
19276 compiler_needs_object_CXX=yes
19278 # Not sure whether something based on
19279 # $CC $CFLAGS -v conftest.$objext -o libconftest$shared_ext 2>&1
19280 # would be better.
19281 output_verbose_link_cmd='func_echo_all'
19283 # Archives containing C++ object files must be created using
19284 # "CC -xar", where "CC" is the Sun C++ compiler. This is
19285 # necessary to make sure instantiated templates are included
19286 # in the archive.
19287 old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs'
19289 esac
19291 esac
19294 lynxos*)
19295 # FIXME: insert proper C++ library support
19296 ld_shlibs_CXX=no
19299 m88k*)
19300 # FIXME: insert proper C++ library support
19301 ld_shlibs_CXX=no
19304 mvs*)
19305 case $cc_basename in
19306 cxx*)
19307 # FIXME: insert proper C++ library support
19308 ld_shlibs_CXX=no
19311 # FIXME: insert proper C++ library support
19312 ld_shlibs_CXX=no
19314 esac
19317 netbsd*)
19318 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
19319 archive_cmds_CXX='$LD -Bshareable -o $lib $predep_objects $libobjs $deplibs $postdep_objects $linker_flags'
19320 wlarc=
19321 hardcode_libdir_flag_spec_CXX='-R$libdir'
19322 hardcode_direct_CXX=yes
19323 hardcode_shlibpath_var_CXX=no
19325 # Workaround some broken pre-1.5 toolchains
19326 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP conftest.$objext | $SED -e "s:-lgcc -lc -lgcc::"'
19329 *nto* | *qnx*)
19330 ld_shlibs_CXX=yes
19333 openbsd2*)
19334 # C++ shared libraries are fairly broken
19335 ld_shlibs_CXX=no
19338 openbsd*)
19339 if test -f /usr/libexec/ld.so; then
19340 hardcode_direct_CXX=yes
19341 hardcode_shlibpath_var_CXX=no
19342 hardcode_direct_absolute_CXX=yes
19343 archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
19344 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
19345 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
19346 archive_expsym_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-retain-symbols-file,$export_symbols -o $lib'
19347 export_dynamic_flag_spec_CXX='${wl}-E'
19348 whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
19350 output_verbose_link_cmd=func_echo_all
19351 else
19352 ld_shlibs_CXX=no
19356 osf3* | osf4* | osf5*)
19357 case $cc_basename in
19358 KCC*)
19359 # Kuck and Associates, Inc. (KAI) C++ Compiler
19361 # KCC will only create a shared library if the output file
19362 # ends with ".so" (or ".sl" for HP-UX), so rename the library
19363 # to its proper name (with version) after linking.
19364 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'
19366 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
19367 hardcode_libdir_separator_CXX=:
19369 # Archives containing C++ object files must be created using
19370 # the KAI C++ compiler.
19371 case $host in
19372 osf3*) old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs' ;;
19373 *) old_archive_cmds_CXX='$CC -o $oldlib $oldobjs' ;;
19374 esac
19376 RCC*)
19377 # Rational C++ 2.4.1
19378 # FIXME: insert proper C++ library support
19379 ld_shlibs_CXX=no
19381 cxx*)
19382 case $host in
19383 osf3*)
19384 allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
19385 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'
19386 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
19389 allow_undefined_flag_CXX=' -expect_unresolved \*'
19390 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'
19391 archive_expsym_cmds_CXX='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done~
19392 echo "-hidden">> $lib.exp~
19393 $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~
19394 $RM $lib.exp'
19395 hardcode_libdir_flag_spec_CXX='-rpath $libdir'
19397 esac
19399 hardcode_libdir_separator_CXX=:
19401 # Commands to make compiler produce verbose output that lists
19402 # what "hidden" libraries, object files and flags are used when
19403 # linking a shared library.
19405 # There doesn't appear to be a way to prevent this compiler from
19406 # explicitly linking system object files so we need to strip them
19407 # from the output so that they don't get included in the library
19408 # dependencies.
19409 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"'
19412 if test "$GXX" = yes && test "$with_gnu_ld" = no; then
19413 allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
19414 case $host in
19415 osf3*)
19416 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'
19419 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'
19421 esac
19423 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
19424 hardcode_libdir_separator_CXX=:
19426 # Commands to make compiler produce verbose output that lists
19427 # what "hidden" libraries, object files and flags are used when
19428 # linking a shared library.
19429 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
19431 else
19432 # FIXME: insert proper C++ library support
19433 ld_shlibs_CXX=no
19436 esac
19439 psos*)
19440 # FIXME: insert proper C++ library support
19441 ld_shlibs_CXX=no
19444 sunos4*)
19445 case $cc_basename in
19446 CC*)
19447 # Sun C++ 4.x
19448 # FIXME: insert proper C++ library support
19449 ld_shlibs_CXX=no
19451 lcc*)
19452 # Lucid
19453 # FIXME: insert proper C++ library support
19454 ld_shlibs_CXX=no
19457 # FIXME: insert proper C++ library support
19458 ld_shlibs_CXX=no
19460 esac
19463 solaris*)
19464 case $cc_basename in
19465 CC*)
19466 # Sun C++ 4.2, 5.x and Centerline C++
19467 archive_cmds_need_lc_CXX=yes
19468 no_undefined_flag_CXX=' -zdefs'
19469 archive_cmds_CXX='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
19470 archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
19471 $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'
19473 hardcode_libdir_flag_spec_CXX='-R$libdir'
19474 hardcode_shlibpath_var_CXX=no
19475 case $host_os in
19476 solaris2.[0-5] | solaris2.[0-5].*) ;;
19478 # The compiler driver will combine and reorder linker options,
19479 # but understands `-z linker_flag'.
19480 # Supported since Solaris 2.6 (maybe 2.5.1?)
19481 whole_archive_flag_spec_CXX='-z allextract$convenience -z defaultextract'
19483 esac
19484 link_all_deplibs_CXX=yes
19486 output_verbose_link_cmd='func_echo_all'
19488 # Archives containing C++ object files must be created using
19489 # "CC -xar", where "CC" is the Sun C++ compiler. This is
19490 # necessary to make sure instantiated templates are included
19491 # in the archive.
19492 old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs'
19494 gcx*)
19495 # Green Hills C++ Compiler
19496 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
19498 # The C++ compiler must be used to create the archive.
19499 old_archive_cmds_CXX='$CC $LDFLAGS -archive -o $oldlib $oldobjs'
19502 # GNU C++ compiler with Solaris linker
19503 if test "$GXX" = yes && test "$with_gnu_ld" = no; then
19504 no_undefined_flag_CXX=' ${wl}-z ${wl}defs'
19505 if $CC --version | $GREP -v '^2\.7' > /dev/null; then
19506 archive_cmds_CXX='$CC -shared -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
19507 archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
19508 $CC -shared -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$RM $lib.exp'
19510 # Commands to make compiler produce verbose output that lists
19511 # what "hidden" libraries, object files and flags are used when
19512 # linking a shared library.
19513 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
19514 else
19515 # g++ 2.7 appears to require `-G' NOT `-shared' on this
19516 # platform.
19517 archive_cmds_CXX='$CC -G -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
19518 archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
19519 $CC -G -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$RM $lib.exp'
19521 # Commands to make compiler produce verbose output that lists
19522 # what "hidden" libraries, object files and flags are used when
19523 # linking a shared library.
19524 output_verbose_link_cmd='$CC -G $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
19527 hardcode_libdir_flag_spec_CXX='${wl}-R $wl$libdir'
19528 case $host_os in
19529 solaris2.[0-5] | solaris2.[0-5].*) ;;
19531 whole_archive_flag_spec_CXX='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
19533 esac
19536 esac
19539 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
19540 no_undefined_flag_CXX='${wl}-z,text'
19541 archive_cmds_need_lc_CXX=no
19542 hardcode_shlibpath_var_CXX=no
19543 runpath_var='LD_RUN_PATH'
19545 case $cc_basename in
19546 CC*)
19547 archive_cmds_CXX='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
19548 archive_expsym_cmds_CXX='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
19551 archive_cmds_CXX='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
19552 archive_expsym_cmds_CXX='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
19554 esac
19557 sysv5* | sco3.2v5* | sco5v6*)
19558 # Note: We can NOT use -z defs as we might desire, because we do not
19559 # link with -lc, and that would cause any symbols used from libc to
19560 # always be unresolved, which means just about no library would
19561 # ever link correctly. If we're not using GNU ld we use -z text
19562 # though, which does catch some bad symbols but isn't as heavy-handed
19563 # as -z defs.
19564 no_undefined_flag_CXX='${wl}-z,text'
19565 allow_undefined_flag_CXX='${wl}-z,nodefs'
19566 archive_cmds_need_lc_CXX=no
19567 hardcode_shlibpath_var_CXX=no
19568 hardcode_libdir_flag_spec_CXX='${wl}-R,$libdir'
19569 hardcode_libdir_separator_CXX=':'
19570 link_all_deplibs_CXX=yes
19571 export_dynamic_flag_spec_CXX='${wl}-Bexport'
19572 runpath_var='LD_RUN_PATH'
19574 case $cc_basename in
19575 CC*)
19576 archive_cmds_CXX='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
19577 archive_expsym_cmds_CXX='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
19578 old_archive_cmds_CXX='$CC -Tprelink_objects $oldobjs~
19579 '"$old_archive_cmds_CXX"
19580 reload_cmds_CXX='$CC -Tprelink_objects $reload_objs~
19581 '"$reload_cmds_CXX"
19584 archive_cmds_CXX='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
19585 archive_expsym_cmds_CXX='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
19587 esac
19590 tandem*)
19591 case $cc_basename in
19592 NCC*)
19593 # NonStop-UX NCC 3.20
19594 # FIXME: insert proper C++ library support
19595 ld_shlibs_CXX=no
19598 # FIXME: insert proper C++ library support
19599 ld_shlibs_CXX=no
19601 esac
19604 vxworks*)
19605 # FIXME: insert proper C++ library support
19606 ld_shlibs_CXX=no
19610 # FIXME: insert proper C++ library support
19611 ld_shlibs_CXX=no
19613 esac
19615 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs_CXX" >&5
19616 $as_echo "$ld_shlibs_CXX" >&6; }
19617 test "$ld_shlibs_CXX" = no && can_build_shared=no
19619 GCC_CXX="$GXX"
19620 LD_CXX="$LD"
19622 ## CAVEAT EMPTOR:
19623 ## There is no encapsulation within the following macros, do not change
19624 ## the running order or otherwise move them around unless you know exactly
19625 ## what you are doing...
19626 # Dependencies to place before and after the object being linked:
19627 predep_objects_CXX=
19628 postdep_objects_CXX=
19629 predeps_CXX=
19630 postdeps_CXX=
19631 compiler_lib_search_path_CXX=
19633 cat > conftest.$ac_ext <<_LT_EOF
19634 class Foo
19636 public:
19637 Foo (void) { a = 0; }
19638 private:
19639 int a;
19641 _LT_EOF
19643 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
19644 (eval $ac_compile) 2>&5
19645 ac_status=$?
19646 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
19647 test $ac_status = 0; }; then
19648 # Parse the compiler output and extract the necessary
19649 # objects, libraries and library flags.
19651 # Sentinel used to keep track of whether or not we are before
19652 # the conftest object file.
19653 pre_test_object_deps_done=no
19655 for p in `eval "$output_verbose_link_cmd"`; do
19656 case $p in
19658 -L* | -R* | -l*)
19659 # Some compilers place space between "-{L,R}" and the path.
19660 # Remove the space.
19661 if test $p = "-L" ||
19662 test $p = "-R"; then
19663 prev=$p
19664 continue
19665 else
19666 prev=
19669 if test "$pre_test_object_deps_done" = no; then
19670 case $p in
19671 -L* | -R*)
19672 # Internal compiler library paths should come after those
19673 # provided the user. The postdeps already come after the
19674 # user supplied libs so there is no need to process them.
19675 if test -z "$compiler_lib_search_path_CXX"; then
19676 compiler_lib_search_path_CXX="${prev}${p}"
19677 else
19678 compiler_lib_search_path_CXX="${compiler_lib_search_path_CXX} ${prev}${p}"
19681 # The "-l" case would never come before the object being
19682 # linked, so don't bother handling this case.
19683 esac
19684 else
19685 if test -z "$postdeps_CXX"; then
19686 postdeps_CXX="${prev}${p}"
19687 else
19688 postdeps_CXX="${postdeps_CXX} ${prev}${p}"
19693 *.$objext)
19694 # This assumes that the test object file only shows up
19695 # once in the compiler output.
19696 if test "$p" = "conftest.$objext"; then
19697 pre_test_object_deps_done=yes
19698 continue
19701 if test "$pre_test_object_deps_done" = no; then
19702 if test -z "$predep_objects_CXX"; then
19703 predep_objects_CXX="$p"
19704 else
19705 predep_objects_CXX="$predep_objects_CXX $p"
19707 else
19708 if test -z "$postdep_objects_CXX"; then
19709 postdep_objects_CXX="$p"
19710 else
19711 postdep_objects_CXX="$postdep_objects_CXX $p"
19716 *) ;; # Ignore the rest.
19718 esac
19719 done
19721 # Clean up.
19722 rm -f a.out a.exe
19723 else
19724 echo "libtool.m4: error: problem compiling CXX test program"
19727 $RM -f confest.$objext
19729 # PORTME: override above test on systems where it is broken
19730 case $host_os in
19731 interix[3-9]*)
19732 # Interix 3.5 installs completely hosed .la files for C++, so rather than
19733 # hack all around it, let's just trust "g++" to DTRT.
19734 predep_objects_CXX=
19735 postdep_objects_CXX=
19736 postdeps_CXX=
19739 linux*)
19740 case `$CC -V 2>&1 | sed 5q` in
19741 *Sun\ C*)
19742 # Sun C++ 5.9
19744 # The more standards-conforming stlport4 library is
19745 # incompatible with the Cstd library. Avoid specifying
19746 # it if it's in CXXFLAGS. Ignore libCrun as
19747 # -library=stlport4 depends on it.
19748 case " $CXX $CXXFLAGS " in
19749 *" -library=stlport4 "*)
19750 solaris_use_stlport4=yes
19752 esac
19754 if test "$solaris_use_stlport4" != yes; then
19755 postdeps_CXX='-library=Cstd -library=Crun'
19758 esac
19761 solaris*)
19762 case $cc_basename in
19763 CC*)
19764 # The more standards-conforming stlport4 library is
19765 # incompatible with the Cstd library. Avoid specifying
19766 # it if it's in CXXFLAGS. Ignore libCrun as
19767 # -library=stlport4 depends on it.
19768 case " $CXX $CXXFLAGS " in
19769 *" -library=stlport4 "*)
19770 solaris_use_stlport4=yes
19772 esac
19774 # Adding this requires a known-good setup of shared libraries for
19775 # Sun compiler versions before 5.6, else PIC objects from an old
19776 # archive will be linked into the output, leading to subtle bugs.
19777 if test "$solaris_use_stlport4" != yes; then
19778 postdeps_CXX='-library=Cstd -library=Crun'
19781 esac
19783 esac
19786 case " $postdeps_CXX " in
19787 *" -lc "*) archive_cmds_need_lc_CXX=no ;;
19788 esac
19789 compiler_lib_search_dirs_CXX=
19790 if test -n "${compiler_lib_search_path_CXX}"; then
19791 compiler_lib_search_dirs_CXX=`echo " ${compiler_lib_search_path_CXX}" | ${SED} -e 's! -L! !g' -e 's!^ !!'`
19824 lt_prog_compiler_wl_CXX=
19825 lt_prog_compiler_pic_CXX=
19826 lt_prog_compiler_static_CXX=
19828 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
19829 $as_echo_n "checking for $compiler option to produce PIC... " >&6; }
19831 # C++ specific cases for pic, static, wl, etc.
19832 if test "$GXX" = yes; then
19833 lt_prog_compiler_wl_CXX='-Wl,'
19834 lt_prog_compiler_static_CXX='-static'
19836 case $host_os in
19837 aix*)
19838 # All AIX code is PIC.
19839 if test "$host_cpu" = ia64; then
19840 # AIX 5 now supports IA64 processor
19841 lt_prog_compiler_static_CXX='-Bstatic'
19843 lt_prog_compiler_pic_CXX='-fPIC'
19846 amigaos*)
19847 case $host_cpu in
19848 powerpc)
19849 # see comment about AmigaOS4 .so support
19850 lt_prog_compiler_pic_CXX='-fPIC'
19852 m68k)
19853 # FIXME: we need at least 68020 code to build shared libraries, but
19854 # adding the `-m68020' flag to GCC prevents building anything better,
19855 # like `-m68040'.
19856 lt_prog_compiler_pic_CXX='-m68020 -resident32 -malways-restore-a4'
19858 esac
19861 beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
19862 # PIC is the default for these OSes.
19864 mingw* | cygwin* | os2* | pw32* | cegcc*)
19865 # This hack is so that the source file can tell whether it is being
19866 # built for inclusion in a dll (and should export symbols for example).
19867 # Although the cygwin gcc ignores -fPIC, still need this for old-style
19868 # (--disable-auto-import) libraries
19869 lt_prog_compiler_pic_CXX='-DDLL_EXPORT'
19871 darwin* | rhapsody*)
19872 # PIC is the default on this platform
19873 # Common symbols not allowed in MH_DYLIB files
19874 lt_prog_compiler_pic_CXX='-fno-common'
19876 *djgpp*)
19877 # DJGPP does not support shared libraries at all
19878 lt_prog_compiler_pic_CXX=
19880 haiku*)
19881 # PIC is the default for Haiku.
19882 # The "-static" flag exists, but is broken.
19883 lt_prog_compiler_static_CXX=
19885 interix[3-9]*)
19886 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
19887 # Instead, we relocate shared libraries at runtime.
19889 sysv4*MP*)
19890 if test -d /usr/nec; then
19891 lt_prog_compiler_pic_CXX=-Kconform_pic
19894 hpux*)
19895 # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
19896 # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag
19897 # sets the default TLS model and affects inlining.
19898 case $host_cpu in
19899 hppa*64*)
19902 lt_prog_compiler_pic_CXX='-fPIC'
19904 esac
19906 *qnx* | *nto*)
19907 # QNX uses GNU C++, but need to define -shared option too, otherwise
19908 # it will coredump.
19909 lt_prog_compiler_pic_CXX='-fPIC -shared'
19912 lt_prog_compiler_pic_CXX='-fPIC'
19914 esac
19915 else
19916 case $host_os in
19917 aix[4-9]*)
19918 # All AIX code is PIC.
19919 if test "$host_cpu" = ia64; then
19920 # AIX 5 now supports IA64 processor
19921 lt_prog_compiler_static_CXX='-Bstatic'
19922 else
19923 lt_prog_compiler_static_CXX='-bnso -bI:/lib/syscalls.exp'
19926 chorus*)
19927 case $cc_basename in
19928 cxch68*)
19929 # Green Hills C++ Compiler
19930 # _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"
19932 esac
19934 dgux*)
19935 case $cc_basename in
19936 ec++*)
19937 lt_prog_compiler_pic_CXX='-KPIC'
19939 ghcx*)
19940 # Green Hills C++ Compiler
19941 lt_prog_compiler_pic_CXX='-pic'
19945 esac
19947 freebsd* | dragonfly*)
19948 # FreeBSD uses GNU C++
19950 hpux9* | hpux10* | hpux11*)
19951 case $cc_basename in
19952 CC*)
19953 lt_prog_compiler_wl_CXX='-Wl,'
19954 lt_prog_compiler_static_CXX='${wl}-a ${wl}archive'
19955 if test "$host_cpu" != ia64; then
19956 lt_prog_compiler_pic_CXX='+Z'
19959 aCC*)
19960 lt_prog_compiler_wl_CXX='-Wl,'
19961 lt_prog_compiler_static_CXX='${wl}-a ${wl}archive'
19962 case $host_cpu in
19963 hppa*64*|ia64*)
19964 # +Z the default
19967 lt_prog_compiler_pic_CXX='+Z'
19969 esac
19973 esac
19975 interix*)
19976 # This is c89, which is MS Visual C++ (no shared libs)
19977 # Anyone wants to do a port?
19979 irix5* | irix6* | nonstopux*)
19980 case $cc_basename in
19981 CC*)
19982 lt_prog_compiler_wl_CXX='-Wl,'
19983 lt_prog_compiler_static_CXX='-non_shared'
19984 # CC pic flag -KPIC is the default.
19988 esac
19990 linux* | k*bsd*-gnu | kopensolaris*-gnu)
19991 case $cc_basename in
19992 KCC*)
19993 # KAI C++ Compiler
19994 lt_prog_compiler_wl_CXX='--backend -Wl,'
19995 lt_prog_compiler_pic_CXX='-fPIC'
19997 ecpc* )
19998 # old Intel C++ for x86_64 which still supported -KPIC.
19999 lt_prog_compiler_wl_CXX='-Wl,'
20000 lt_prog_compiler_pic_CXX='-KPIC'
20001 lt_prog_compiler_static_CXX='-static'
20003 icpc* )
20004 # Intel C++, used to be incompatible with GCC.
20005 # ICC 10 doesn't accept -KPIC any more.
20006 lt_prog_compiler_wl_CXX='-Wl,'
20007 lt_prog_compiler_pic_CXX='-fPIC'
20008 lt_prog_compiler_static_CXX='-static'
20010 pgCC* | pgcpp*)
20011 # Portland Group C++ compiler
20012 lt_prog_compiler_wl_CXX='-Wl,'
20013 lt_prog_compiler_pic_CXX='-fpic'
20014 lt_prog_compiler_static_CXX='-Bstatic'
20016 cxx*)
20017 # Compaq C++
20018 # Make sure the PIC flag is empty. It appears that all Alpha
20019 # Linux and Compaq Tru64 Unix objects are PIC.
20020 lt_prog_compiler_pic_CXX=
20021 lt_prog_compiler_static_CXX='-non_shared'
20023 xlc* | xlC* | bgxl[cC]* | mpixl[cC]*)
20024 # IBM XL 8.0, 9.0 on PPC and BlueGene
20025 lt_prog_compiler_wl_CXX='-Wl,'
20026 lt_prog_compiler_pic_CXX='-qpic'
20027 lt_prog_compiler_static_CXX='-qstaticlink'
20030 case `$CC -V 2>&1 | sed 5q` in
20031 *Sun\ C*)
20032 # Sun C++ 5.9
20033 lt_prog_compiler_pic_CXX='-KPIC'
20034 lt_prog_compiler_static_CXX='-Bstatic'
20035 lt_prog_compiler_wl_CXX='-Qoption ld '
20037 esac
20039 esac
20041 lynxos*)
20043 m88k*)
20045 mvs*)
20046 case $cc_basename in
20047 cxx*)
20048 lt_prog_compiler_pic_CXX='-W c,exportall'
20052 esac
20054 netbsd*)
20056 *qnx* | *nto*)
20057 # QNX uses GNU C++, but need to define -shared option too, otherwise
20058 # it will coredump.
20059 lt_prog_compiler_pic_CXX='-fPIC -shared'
20061 osf3* | osf4* | osf5*)
20062 case $cc_basename in
20063 KCC*)
20064 lt_prog_compiler_wl_CXX='--backend -Wl,'
20066 RCC*)
20067 # Rational C++ 2.4.1
20068 lt_prog_compiler_pic_CXX='-pic'
20070 cxx*)
20071 # Digital/Compaq C++
20072 lt_prog_compiler_wl_CXX='-Wl,'
20073 # Make sure the PIC flag is empty. It appears that all Alpha
20074 # Linux and Compaq Tru64 Unix objects are PIC.
20075 lt_prog_compiler_pic_CXX=
20076 lt_prog_compiler_static_CXX='-non_shared'
20080 esac
20082 psos*)
20084 solaris*)
20085 case $cc_basename in
20086 CC*)
20087 # Sun C++ 4.2, 5.x and Centerline C++
20088 lt_prog_compiler_pic_CXX='-KPIC'
20089 lt_prog_compiler_static_CXX='-Bstatic'
20090 lt_prog_compiler_wl_CXX='-Qoption ld '
20092 gcx*)
20093 # Green Hills C++ Compiler
20094 lt_prog_compiler_pic_CXX='-PIC'
20098 esac
20100 sunos4*)
20101 case $cc_basename in
20102 CC*)
20103 # Sun C++ 4.x
20104 lt_prog_compiler_pic_CXX='-pic'
20105 lt_prog_compiler_static_CXX='-Bstatic'
20107 lcc*)
20108 # Lucid
20109 lt_prog_compiler_pic_CXX='-pic'
20113 esac
20115 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
20116 case $cc_basename in
20117 CC*)
20118 lt_prog_compiler_wl_CXX='-Wl,'
20119 lt_prog_compiler_pic_CXX='-KPIC'
20120 lt_prog_compiler_static_CXX='-Bstatic'
20122 esac
20124 tandem*)
20125 case $cc_basename in
20126 NCC*)
20127 # NonStop-UX NCC 3.20
20128 lt_prog_compiler_pic_CXX='-KPIC'
20132 esac
20134 vxworks*)
20137 lt_prog_compiler_can_build_shared_CXX=no
20139 esac
20142 case $host_os in
20143 # For platforms which do not support PIC, -DPIC is meaningless:
20144 *djgpp*)
20145 lt_prog_compiler_pic_CXX=
20148 lt_prog_compiler_pic_CXX="$lt_prog_compiler_pic_CXX -DPIC"
20150 esac
20151 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_prog_compiler_pic_CXX" >&5
20152 $as_echo "$lt_prog_compiler_pic_CXX" >&6; }
20157 # Check to make sure the PIC flag actually works.
20159 if test -n "$lt_prog_compiler_pic_CXX"; then
20160 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works" >&5
20161 $as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works... " >&6; }
20162 if test "${lt_cv_prog_compiler_pic_works_CXX+set}" = set; then :
20163 $as_echo_n "(cached) " >&6
20164 else
20165 lt_cv_prog_compiler_pic_works_CXX=no
20166 ac_outfile=conftest.$ac_objext
20167 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
20168 lt_compiler_flag="$lt_prog_compiler_pic_CXX -DPIC"
20169 # Insert the option either (1) after the last *FLAGS variable, or
20170 # (2) before a word containing "conftest.", or (3) at the end.
20171 # Note that $ac_compile itself does not contain backslashes and begins
20172 # with a dollar sign (not a hyphen), so the echo should work correctly.
20173 # The option is referenced via a variable to avoid confusing sed.
20174 lt_compile=`echo "$ac_compile" | $SED \
20175 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
20176 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
20177 -e 's:$: $lt_compiler_flag:'`
20178 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
20179 (eval "$lt_compile" 2>conftest.err)
20180 ac_status=$?
20181 cat conftest.err >&5
20182 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20183 if (exit $ac_status) && test -s "$ac_outfile"; then
20184 # The compiler can only warn and ignore the option if not recognized
20185 # So say no if there are warnings other than the usual output.
20186 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
20187 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
20188 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
20189 lt_cv_prog_compiler_pic_works_CXX=yes
20192 $RM conftest*
20195 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works_CXX" >&5
20196 $as_echo "$lt_cv_prog_compiler_pic_works_CXX" >&6; }
20198 if test x"$lt_cv_prog_compiler_pic_works_CXX" = xyes; then
20199 case $lt_prog_compiler_pic_CXX in
20200 "" | " "*) ;;
20201 *) lt_prog_compiler_pic_CXX=" $lt_prog_compiler_pic_CXX" ;;
20202 esac
20203 else
20204 lt_prog_compiler_pic_CXX=
20205 lt_prog_compiler_can_build_shared_CXX=no
20213 # Check to make sure the static flag actually works.
20215 wl=$lt_prog_compiler_wl_CXX eval lt_tmp_static_flag=\"$lt_prog_compiler_static_CXX\"
20216 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
20217 $as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
20218 if test "${lt_cv_prog_compiler_static_works_CXX+set}" = set; then :
20219 $as_echo_n "(cached) " >&6
20220 else
20221 lt_cv_prog_compiler_static_works_CXX=no
20222 save_LDFLAGS="$LDFLAGS"
20223 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
20224 echo "$lt_simple_link_test_code" > conftest.$ac_ext
20225 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
20226 # The linker can only warn and ignore the option if not recognized
20227 # So say no if there are warnings
20228 if test -s conftest.err; then
20229 # Append any errors to the config.log.
20230 cat conftest.err 1>&5
20231 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
20232 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
20233 if diff conftest.exp conftest.er2 >/dev/null; then
20234 lt_cv_prog_compiler_static_works_CXX=yes
20236 else
20237 lt_cv_prog_compiler_static_works_CXX=yes
20240 $RM -r conftest*
20241 LDFLAGS="$save_LDFLAGS"
20244 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works_CXX" >&5
20245 $as_echo "$lt_cv_prog_compiler_static_works_CXX" >&6; }
20247 if test x"$lt_cv_prog_compiler_static_works_CXX" = xyes; then
20249 else
20250 lt_prog_compiler_static_CXX=
20256 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
20257 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
20258 if test "${lt_cv_prog_compiler_c_o_CXX+set}" = set; then :
20259 $as_echo_n "(cached) " >&6
20260 else
20261 lt_cv_prog_compiler_c_o_CXX=no
20262 $RM -r conftest 2>/dev/null
20263 mkdir conftest
20264 cd conftest
20265 mkdir out
20266 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
20268 lt_compiler_flag="-o out/conftest2.$ac_objext"
20269 # Insert the option either (1) after the last *FLAGS variable, or
20270 # (2) before a word containing "conftest.", or (3) at the end.
20271 # Note that $ac_compile itself does not contain backslashes and begins
20272 # with a dollar sign (not a hyphen), so the echo should work correctly.
20273 lt_compile=`echo "$ac_compile" | $SED \
20274 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
20275 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
20276 -e 's:$: $lt_compiler_flag:'`
20277 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
20278 (eval "$lt_compile" 2>out/conftest.err)
20279 ac_status=$?
20280 cat out/conftest.err >&5
20281 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20282 if (exit $ac_status) && test -s out/conftest2.$ac_objext
20283 then
20284 # The compiler can only warn and ignore the option if not recognized
20285 # So say no if there are warnings
20286 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
20287 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
20288 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
20289 lt_cv_prog_compiler_c_o_CXX=yes
20292 chmod u+w . 2>&5
20293 $RM conftest*
20294 # SGI C++ compiler will create directory out/ii_files/ for
20295 # template instantiation
20296 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
20297 $RM out/* && rmdir out
20298 cd ..
20299 $RM -r conftest
20300 $RM conftest*
20303 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o_CXX" >&5
20304 $as_echo "$lt_cv_prog_compiler_c_o_CXX" >&6; }
20308 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
20309 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
20310 if test "${lt_cv_prog_compiler_c_o_CXX+set}" = set; then :
20311 $as_echo_n "(cached) " >&6
20312 else
20313 lt_cv_prog_compiler_c_o_CXX=no
20314 $RM -r conftest 2>/dev/null
20315 mkdir conftest
20316 cd conftest
20317 mkdir out
20318 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
20320 lt_compiler_flag="-o out/conftest2.$ac_objext"
20321 # Insert the option either (1) after the last *FLAGS variable, or
20322 # (2) before a word containing "conftest.", or (3) at the end.
20323 # Note that $ac_compile itself does not contain backslashes and begins
20324 # with a dollar sign (not a hyphen), so the echo should work correctly.
20325 lt_compile=`echo "$ac_compile" | $SED \
20326 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
20327 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
20328 -e 's:$: $lt_compiler_flag:'`
20329 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
20330 (eval "$lt_compile" 2>out/conftest.err)
20331 ac_status=$?
20332 cat out/conftest.err >&5
20333 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20334 if (exit $ac_status) && test -s out/conftest2.$ac_objext
20335 then
20336 # The compiler can only warn and ignore the option if not recognized
20337 # So say no if there are warnings
20338 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
20339 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
20340 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
20341 lt_cv_prog_compiler_c_o_CXX=yes
20344 chmod u+w . 2>&5
20345 $RM conftest*
20346 # SGI C++ compiler will create directory out/ii_files/ for
20347 # template instantiation
20348 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
20349 $RM out/* && rmdir out
20350 cd ..
20351 $RM -r conftest
20352 $RM conftest*
20355 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o_CXX" >&5
20356 $as_echo "$lt_cv_prog_compiler_c_o_CXX" >&6; }
20361 hard_links="nottested"
20362 if test "$lt_cv_prog_compiler_c_o_CXX" = no && test "$need_locks" != no; then
20363 # do not overwrite the value of need_locks provided by the user
20364 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
20365 $as_echo_n "checking if we can lock with hard links... " >&6; }
20366 hard_links=yes
20367 $RM conftest*
20368 ln conftest.a conftest.b 2>/dev/null && hard_links=no
20369 touch conftest.a
20370 ln conftest.a conftest.b 2>&5 || hard_links=no
20371 ln conftest.a conftest.b 2>/dev/null && hard_links=no
20372 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
20373 $as_echo "$hard_links" >&6; }
20374 if test "$hard_links" = no; then
20375 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
20376 $as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
20377 need_locks=warn
20379 else
20380 need_locks=no
20385 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
20386 $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
20388 export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
20389 case $host_os in
20390 aix[4-9]*)
20391 # If we're using GNU nm, then we don't want the "-C" option.
20392 # -C means demangle to AIX nm, but means don't demangle with GNU nm
20393 # Also, AIX nm treats weak defined symbols like other global defined
20394 # symbols, whereas GNU nm marks them as "W".
20395 if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
20396 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'
20397 else
20398 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'
20401 pw32*)
20402 export_symbols_cmds_CXX="$ltdll_cmds"
20404 cygwin* | mingw* | cegcc*)
20405 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'
20408 export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
20410 esac
20411 exclude_expsyms_CXX='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
20413 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs_CXX" >&5
20414 $as_echo "$ld_shlibs_CXX" >&6; }
20415 test "$ld_shlibs_CXX" = no && can_build_shared=no
20417 with_gnu_ld_CXX=$with_gnu_ld
20425 # Do we need to explicitly link libc?
20427 case "x$archive_cmds_need_lc_CXX" in
20428 x|xyes)
20429 # Assume -lc should be added
20430 archive_cmds_need_lc_CXX=yes
20432 if test "$enable_shared" = yes && test "$GCC" = yes; then
20433 case $archive_cmds_CXX in
20434 *'~'*)
20435 # FIXME: we may have to deal with multi-command sequences.
20437 '$CC '*)
20438 # Test whether the compiler implicitly links with -lc since on some
20439 # systems, -lgcc has to come before -lc. If gcc already passes -lc
20440 # to ld, don't add -lc before -lgcc.
20441 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
20442 $as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
20443 if test "${lt_cv_archive_cmds_need_lc_CXX+set}" = set; then :
20444 $as_echo_n "(cached) " >&6
20445 else
20446 $RM conftest*
20447 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
20449 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
20450 (eval $ac_compile) 2>&5
20451 ac_status=$?
20452 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
20453 test $ac_status = 0; } 2>conftest.err; then
20454 soname=conftest
20455 lib=conftest
20456 libobjs=conftest.$ac_objext
20457 deplibs=
20458 wl=$lt_prog_compiler_wl_CXX
20459 pic_flag=$lt_prog_compiler_pic_CXX
20460 compiler_flags=-v
20461 linker_flags=-v
20462 verstring=
20463 output_objdir=.
20464 libname=conftest
20465 lt_save_allow_undefined_flag=$allow_undefined_flag_CXX
20466 allow_undefined_flag_CXX=
20467 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds_CXX 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5
20468 (eval $archive_cmds_CXX 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
20469 ac_status=$?
20470 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
20471 test $ac_status = 0; }
20472 then
20473 lt_cv_archive_cmds_need_lc_CXX=no
20474 else
20475 lt_cv_archive_cmds_need_lc_CXX=yes
20477 allow_undefined_flag_CXX=$lt_save_allow_undefined_flag
20478 else
20479 cat conftest.err 1>&5
20481 $RM conftest*
20484 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc_CXX" >&5
20485 $as_echo "$lt_cv_archive_cmds_need_lc_CXX" >&6; }
20486 archive_cmds_need_lc_CXX=$lt_cv_archive_cmds_need_lc_CXX
20488 esac
20491 esac
20556 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
20557 $as_echo_n "checking dynamic linker characteristics... " >&6; }
20559 library_names_spec=
20560 libname_spec='lib$name'
20561 soname_spec=
20562 shrext_cmds=".so"
20563 postinstall_cmds=
20564 postuninstall_cmds=
20565 finish_cmds=
20566 finish_eval=
20567 shlibpath_var=
20568 shlibpath_overrides_runpath=unknown
20569 version_type=none
20570 dynamic_linker="$host_os ld.so"
20571 sys_lib_dlsearch_path_spec="/lib /usr/lib"
20572 need_lib_prefix=unknown
20573 hardcode_into_libs=no
20575 # when you set need_version to no, make sure it does not cause -set_version
20576 # flags to be left without arguments
20577 need_version=unknown
20579 case $host_os in
20580 aix3*)
20581 version_type=linux
20582 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
20583 shlibpath_var=LIBPATH
20585 # AIX 3 has no versioning support, so we append a major version to the name.
20586 soname_spec='${libname}${release}${shared_ext}$major'
20589 aix[4-9]*)
20590 version_type=linux
20591 need_lib_prefix=no
20592 need_version=no
20593 hardcode_into_libs=yes
20594 if test "$host_cpu" = ia64; then
20595 # AIX 5 supports IA64
20596 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
20597 shlibpath_var=LD_LIBRARY_PATH
20598 else
20599 # With GCC up to 2.95.x, collect2 would create an import file
20600 # for dependence libraries. The import file would start with
20601 # the line `#! .'. This would cause the generated library to
20602 # depend on `.', always an invalid library. This was fixed in
20603 # development snapshots of GCC prior to 3.0.
20604 case $host_os in
20605 aix4 | aix4.[01] | aix4.[01].*)
20606 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
20607 echo ' yes '
20608 echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then
20610 else
20611 can_build_shared=no
20614 esac
20615 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
20616 # soname into executable. Probably we can add versioning support to
20617 # collect2, so additional links can be useful in future.
20618 if test "$aix_use_runtimelinking" = yes; then
20619 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
20620 # instead of lib<name>.a to let people know that these are not
20621 # typical AIX shared libraries.
20622 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20623 else
20624 # We preserve .a as extension for shared libraries through AIX4.2
20625 # and later when we are not doing run time linking.
20626 library_names_spec='${libname}${release}.a $libname.a'
20627 soname_spec='${libname}${release}${shared_ext}$major'
20629 shlibpath_var=LIBPATH
20633 amigaos*)
20634 case $host_cpu in
20635 powerpc)
20636 # Since July 2007 AmigaOS4 officially supports .so libraries.
20637 # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
20638 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20640 m68k)
20641 library_names_spec='$libname.ixlibrary $libname.a'
20642 # Create ${libname}_ixlibrary.a entries in /sys/libs.
20643 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'
20645 esac
20648 beos*)
20649 library_names_spec='${libname}${shared_ext}'
20650 dynamic_linker="$host_os ld.so"
20651 shlibpath_var=LIBRARY_PATH
20654 bsdi[45]*)
20655 version_type=linux
20656 need_version=no
20657 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20658 soname_spec='${libname}${release}${shared_ext}$major'
20659 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
20660 shlibpath_var=LD_LIBRARY_PATH
20661 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
20662 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
20663 # the default ld.so.conf also contains /usr/contrib/lib and
20664 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
20665 # libtool to hard-code these into programs
20668 cygwin* | mingw* | pw32* | cegcc*)
20669 version_type=windows
20670 shrext_cmds=".dll"
20671 need_version=no
20672 need_lib_prefix=no
20674 case $GCC,$host_os in
20675 yes,cygwin* | yes,mingw* | yes,pw32* | yes,cegcc*)
20676 library_names_spec='$libname.dll.a'
20677 # DLL is installed to $(libdir)/../bin by postinstall_cmds
20678 postinstall_cmds='base_file=`basename \${file}`~
20679 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
20680 dldir=$destdir/`dirname \$dlpath`~
20681 test -d \$dldir || mkdir -p \$dldir~
20682 $install_prog $dir/$dlname \$dldir/$dlname~
20683 chmod a+x \$dldir/$dlname~
20684 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
20685 eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
20687 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
20688 dlpath=$dir/\$dldll~
20689 $RM \$dlpath'
20690 shlibpath_overrides_runpath=yes
20692 case $host_os in
20693 cygwin*)
20694 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
20695 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
20698 mingw* | cegcc*)
20699 # MinGW DLLs use traditional 'lib' prefix
20700 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
20702 pw32*)
20703 # pw32 DLLs use 'pw' prefix rather than 'lib'
20704 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
20706 esac
20710 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
20712 esac
20713 dynamic_linker='Win32 ld.exe'
20714 # FIXME: first we should search . and the directory the executable is in
20715 shlibpath_var=PATH
20718 darwin* | rhapsody*)
20719 dynamic_linker="$host_os dyld"
20720 version_type=darwin
20721 need_lib_prefix=no
20722 need_version=no
20723 library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext'
20724 soname_spec='${libname}${release}${major}$shared_ext'
20725 shlibpath_overrides_runpath=yes
20726 shlibpath_var=DYLD_LIBRARY_PATH
20727 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
20729 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
20732 dgux*)
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
20741 freebsd* | dragonfly*)
20742 # DragonFly does not have aout. When/if they implement a new
20743 # versioning mechanism, adjust this.
20744 if test -x /usr/bin/objformat; then
20745 objformat=`/usr/bin/objformat`
20746 else
20747 case $host_os in
20748 freebsd[23].*) objformat=aout ;;
20749 *) objformat=elf ;;
20750 esac
20752 version_type=freebsd-$objformat
20753 case $version_type in
20754 freebsd-elf*)
20755 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
20756 need_version=no
20757 need_lib_prefix=no
20759 freebsd-*)
20760 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
20761 need_version=yes
20763 esac
20764 shlibpath_var=LD_LIBRARY_PATH
20765 case $host_os in
20766 freebsd2.*)
20767 shlibpath_overrides_runpath=yes
20769 freebsd3.[01]* | freebsdelf3.[01]*)
20770 shlibpath_overrides_runpath=yes
20771 hardcode_into_libs=yes
20773 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
20774 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
20775 shlibpath_overrides_runpath=no
20776 hardcode_into_libs=yes
20778 *) # from 4.6 on, and DragonFly
20779 shlibpath_overrides_runpath=yes
20780 hardcode_into_libs=yes
20782 esac
20785 gnu*)
20786 version_type=linux
20787 need_lib_prefix=no
20788 need_version=no
20789 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
20790 soname_spec='${libname}${release}${shared_ext}$major'
20791 shlibpath_var=LD_LIBRARY_PATH
20792 hardcode_into_libs=yes
20795 haiku*)
20796 version_type=linux
20797 need_lib_prefix=no
20798 need_version=no
20799 dynamic_linker="$host_os runtime_loader"
20800 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
20801 soname_spec='${libname}${release}${shared_ext}$major'
20802 shlibpath_var=LIBRARY_PATH
20803 shlibpath_overrides_runpath=yes
20804 sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/beos/system/lib'
20805 hardcode_into_libs=yes
20808 hpux9* | hpux10* | hpux11*)
20809 # Give a soname corresponding to the major version so that dld.sl refuses to
20810 # link against other versions.
20811 version_type=sunos
20812 need_lib_prefix=no
20813 need_version=no
20814 case $host_cpu in
20815 ia64*)
20816 shrext_cmds='.so'
20817 hardcode_into_libs=yes
20818 dynamic_linker="$host_os dld.so"
20819 shlibpath_var=LD_LIBRARY_PATH
20820 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
20821 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20822 soname_spec='${libname}${release}${shared_ext}$major'
20823 if test "X$HPUX_IA64_MODE" = X32; then
20824 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
20825 else
20826 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
20828 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
20830 hppa*64*)
20831 shrext_cmds='.sl'
20832 hardcode_into_libs=yes
20833 dynamic_linker="$host_os dld.sl"
20834 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
20835 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
20836 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20837 soname_spec='${libname}${release}${shared_ext}$major'
20838 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
20839 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
20842 shrext_cmds='.sl'
20843 dynamic_linker="$host_os dld.sl"
20844 shlibpath_var=SHLIB_PATH
20845 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
20846 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20847 soname_spec='${libname}${release}${shared_ext}$major'
20849 esac
20850 # HP-UX runs *really* slowly unless shared libraries are mode 555, ...
20851 postinstall_cmds='chmod 555 $lib'
20852 # or fails outright, so override atomically:
20853 install_override_mode=555
20856 interix[3-9]*)
20857 version_type=linux
20858 need_lib_prefix=no
20859 need_version=no
20860 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
20861 soname_spec='${libname}${release}${shared_ext}$major'
20862 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
20863 shlibpath_var=LD_LIBRARY_PATH
20864 shlibpath_overrides_runpath=no
20865 hardcode_into_libs=yes
20868 irix5* | irix6* | nonstopux*)
20869 case $host_os in
20870 nonstopux*) version_type=nonstopux ;;
20872 if test "$lt_cv_prog_gnu_ld" = yes; then
20873 version_type=linux
20874 else
20875 version_type=irix
20876 fi ;;
20877 esac
20878 need_lib_prefix=no
20879 need_version=no
20880 soname_spec='${libname}${release}${shared_ext}$major'
20881 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
20882 case $host_os in
20883 irix5* | nonstopux*)
20884 libsuff= shlibsuff=
20887 case $LD in # libtool.m4 will add one of these switches to LD
20888 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
20889 libsuff= shlibsuff= libmagic=32-bit;;
20890 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
20891 libsuff=32 shlibsuff=N32 libmagic=N32;;
20892 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
20893 libsuff=64 shlibsuff=64 libmagic=64-bit;;
20894 *) libsuff= shlibsuff= libmagic=never-match;;
20895 esac
20897 esac
20898 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
20899 shlibpath_overrides_runpath=no
20900 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
20901 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
20902 hardcode_into_libs=yes
20905 # No shared lib support for Linux oldld, aout, or coff.
20906 linux*oldld* | linux*aout* | linux*coff*)
20907 dynamic_linker=no
20910 # This must be Linux ELF.
20911 linux* | k*bsd*-gnu | kopensolaris*-gnu)
20912 version_type=linux
20913 need_lib_prefix=no
20914 need_version=no
20915 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20916 soname_spec='${libname}${release}${shared_ext}$major'
20917 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
20918 shlibpath_var=LD_LIBRARY_PATH
20919 shlibpath_overrides_runpath=no
20921 # Some binutils ld are patched to set DT_RUNPATH
20922 if test "${lt_cv_shlibpath_overrides_runpath+set}" = set; then :
20923 $as_echo_n "(cached) " >&6
20924 else
20925 lt_cv_shlibpath_overrides_runpath=no
20926 save_LDFLAGS=$LDFLAGS
20927 save_libdir=$libdir
20928 eval "libdir=/foo; wl=\"$lt_prog_compiler_wl_CXX\"; \
20929 LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec_CXX\""
20930 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20931 /* end confdefs.h. */
20934 main ()
20938 return 0;
20940 _ACEOF
20941 if ac_fn_cxx_try_link "$LINENO"; then :
20942 if ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then :
20943 lt_cv_shlibpath_overrides_runpath=yes
20946 rm -f core conftest.err conftest.$ac_objext \
20947 conftest$ac_exeext conftest.$ac_ext
20948 LDFLAGS=$save_LDFLAGS
20949 libdir=$save_libdir
20953 shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath
20955 # This implies no fast_install, which is unacceptable.
20956 # Some rework will be needed to allow for fast_install
20957 # before this can be enabled.
20958 hardcode_into_libs=yes
20960 # Append ld.so.conf contents to the search path
20961 if test -f /etc/ld.so.conf; then
20962 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' ' '`
20963 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
20966 # We used to test for /lib/ld.so.1 and disable shared libraries on
20967 # powerpc, because MkLinux only supported shared libraries with the
20968 # GNU dynamic linker. Since this was broken with cross compilers,
20969 # most powerpc-linux boxes support dynamic linking these days and
20970 # people can always --disable-shared, the test was removed, and we
20971 # assume the GNU/Linux dynamic linker is in use.
20972 dynamic_linker='GNU/Linux ld.so'
20975 netbsd*)
20976 version_type=sunos
20977 need_lib_prefix=no
20978 need_version=no
20979 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
20980 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
20981 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
20982 dynamic_linker='NetBSD (a.out) ld.so'
20983 else
20984 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
20985 soname_spec='${libname}${release}${shared_ext}$major'
20986 dynamic_linker='NetBSD ld.elf_so'
20988 shlibpath_var=LD_LIBRARY_PATH
20989 shlibpath_overrides_runpath=yes
20990 hardcode_into_libs=yes
20993 newsos6)
20994 version_type=linux
20995 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20996 shlibpath_var=LD_LIBRARY_PATH
20997 shlibpath_overrides_runpath=yes
21000 *nto* | *qnx*)
21001 version_type=qnx
21002 need_lib_prefix=no
21003 need_version=no
21004 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
21005 soname_spec='${libname}${release}${shared_ext}$major'
21006 shlibpath_var=LD_LIBRARY_PATH
21007 shlibpath_overrides_runpath=no
21008 hardcode_into_libs=yes
21009 dynamic_linker='ldqnx.so'
21012 openbsd*)
21013 version_type=sunos
21014 sys_lib_dlsearch_path_spec="/usr/lib"
21015 need_lib_prefix=no
21016 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
21017 case $host_os in
21018 openbsd3.3 | openbsd3.3.*) need_version=yes ;;
21019 *) need_version=no ;;
21020 esac
21021 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
21022 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
21023 shlibpath_var=LD_LIBRARY_PATH
21024 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
21025 case $host_os in
21026 openbsd2.[89] | openbsd2.[89].*)
21027 shlibpath_overrides_runpath=no
21030 shlibpath_overrides_runpath=yes
21032 esac
21033 else
21034 shlibpath_overrides_runpath=yes
21038 os2*)
21039 libname_spec='$name'
21040 shrext_cmds=".dll"
21041 need_lib_prefix=no
21042 library_names_spec='$libname${shared_ext} $libname.a'
21043 dynamic_linker='OS/2 ld.exe'
21044 shlibpath_var=LIBPATH
21047 osf3* | osf4* | osf5*)
21048 version_type=osf
21049 need_lib_prefix=no
21050 need_version=no
21051 soname_spec='${libname}${release}${shared_ext}$major'
21052 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
21053 shlibpath_var=LD_LIBRARY_PATH
21054 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
21055 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
21058 rdos*)
21059 dynamic_linker=no
21062 solaris*)
21063 version_type=linux
21064 need_lib_prefix=no
21065 need_version=no
21066 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
21067 soname_spec='${libname}${release}${shared_ext}$major'
21068 shlibpath_var=LD_LIBRARY_PATH
21069 shlibpath_overrides_runpath=yes
21070 hardcode_into_libs=yes
21071 # ldd complains unless libraries are executable
21072 postinstall_cmds='chmod +x $lib'
21075 sunos4*)
21076 version_type=sunos
21077 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
21078 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
21079 shlibpath_var=LD_LIBRARY_PATH
21080 shlibpath_overrides_runpath=yes
21081 if test "$with_gnu_ld" = yes; then
21082 need_lib_prefix=no
21084 need_version=yes
21087 sysv4 | sysv4.3*)
21088 version_type=linux
21089 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
21090 soname_spec='${libname}${release}${shared_ext}$major'
21091 shlibpath_var=LD_LIBRARY_PATH
21092 case $host_vendor in
21093 sni)
21094 shlibpath_overrides_runpath=no
21095 need_lib_prefix=no
21096 runpath_var=LD_RUN_PATH
21098 siemens)
21099 need_lib_prefix=no
21101 motorola)
21102 need_lib_prefix=no
21103 need_version=no
21104 shlibpath_overrides_runpath=no
21105 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
21107 esac
21110 sysv4*MP*)
21111 if test -d /usr/nec ;then
21112 version_type=linux
21113 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
21114 soname_spec='$libname${shared_ext}.$major'
21115 shlibpath_var=LD_LIBRARY_PATH
21119 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
21120 version_type=freebsd-elf
21121 need_lib_prefix=no
21122 need_version=no
21123 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
21124 soname_spec='${libname}${release}${shared_ext}$major'
21125 shlibpath_var=LD_LIBRARY_PATH
21126 shlibpath_overrides_runpath=yes
21127 hardcode_into_libs=yes
21128 if test "$with_gnu_ld" = yes; then
21129 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
21130 else
21131 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
21132 case $host_os in
21133 sco3.2v5*)
21134 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
21136 esac
21138 sys_lib_dlsearch_path_spec='/usr/lib'
21141 tpf*)
21142 # TPF is a cross-target only. Preferred cross-host = GNU/Linux.
21143 version_type=linux
21144 need_lib_prefix=no
21145 need_version=no
21146 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
21147 shlibpath_var=LD_LIBRARY_PATH
21148 shlibpath_overrides_runpath=no
21149 hardcode_into_libs=yes
21152 uts4*)
21153 version_type=linux
21154 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
21155 soname_spec='${libname}${release}${shared_ext}$major'
21156 shlibpath_var=LD_LIBRARY_PATH
21160 dynamic_linker=no
21162 esac
21163 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
21164 $as_echo "$dynamic_linker" >&6; }
21165 test "$dynamic_linker" = no && can_build_shared=no
21167 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
21168 if test "$GCC" = yes; then
21169 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
21172 if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
21173 sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
21175 if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
21176 sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
21216 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
21217 $as_echo_n "checking how to hardcode library paths into programs... " >&6; }
21218 hardcode_action_CXX=
21219 if test -n "$hardcode_libdir_flag_spec_CXX" ||
21220 test -n "$runpath_var_CXX" ||
21221 test "X$hardcode_automatic_CXX" = "Xyes" ; then
21223 # We can hardcode non-existent directories.
21224 if test "$hardcode_direct_CXX" != no &&
21225 # If the only mechanism to avoid hardcoding is shlibpath_var, we
21226 # have to relink, otherwise we might link with an installed library
21227 # when we should be linking with a yet-to-be-installed one
21228 ## test "$_LT_TAGVAR(hardcode_shlibpath_var, CXX)" != no &&
21229 test "$hardcode_minus_L_CXX" != no; then
21230 # Linking always hardcodes the temporary library directory.
21231 hardcode_action_CXX=relink
21232 else
21233 # We can link without hardcoding, and we can hardcode nonexisting dirs.
21234 hardcode_action_CXX=immediate
21236 else
21237 # We cannot hardcode anything, or else we can only hardcode existing
21238 # directories.
21239 hardcode_action_CXX=unsupported
21241 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action_CXX" >&5
21242 $as_echo "$hardcode_action_CXX" >&6; }
21244 if test "$hardcode_action_CXX" = relink ||
21245 test "$inherit_rpath_CXX" = yes; then
21246 # Fast installation is not supported
21247 enable_fast_install=no
21248 elif test "$shlibpath_overrides_runpath" = yes ||
21249 test "$enable_shared" = no; then
21250 # Fast installation is not necessary
21251 enable_fast_install=needless
21260 fi # test -n "$compiler"
21262 CC=$lt_save_CC
21263 LDCXX=$LD
21264 LD=$lt_save_LD
21265 GCC=$lt_save_GCC
21266 with_gnu_ld=$lt_save_with_gnu_ld
21267 lt_cv_path_LDCXX=$lt_cv_path_LD
21268 lt_cv_path_LD=$lt_save_path_LD
21269 lt_cv_prog_gnu_ldcxx=$lt_cv_prog_gnu_ld
21270 lt_cv_prog_gnu_ld=$lt_save_with_gnu_ld
21271 fi # test "$_lt_caught_CXX_error" != yes
21273 ac_ext=c
21274 ac_cpp='$CPP $CPPFLAGS'
21275 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
21276 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
21277 ac_compiler_gnu=$ac_cv_c_compiler_gnu
21294 # Only expand once:
21300 # Identify the assembler which will work hand-in-glove with the newly
21301 # built GCC, so that we can examine its features. This is the assembler
21302 # which will be driven by the driver program.
21304 # If build != host, and we aren't building gas in-tree, we identify a
21305 # build->target assembler and hope that it will have the same features
21306 # as the host->target assembler we'll be using.
21307 gcc_cv_gas_major_version=
21308 gcc_cv_gas_minor_version=
21309 gcc_cv_as_gas_srcdir=`echo $srcdir | sed -e 's,/gcc$,,'`/gas
21311 if test "${gcc_cv_as+set}" = set; then :
21313 else
21315 if test -x "$DEFAULT_ASSEMBLER"; then
21316 gcc_cv_as="$DEFAULT_ASSEMBLER"
21317 elif test -f $gcc_cv_as_gas_srcdir/configure.in \
21318 && test -f ../gas/Makefile \
21319 && test x$build = x$host; then
21320 gcc_cv_as=../gas/as-new$build_exeext
21321 elif test -x as$build_exeext; then
21322 # Build using assembler in the current directory.
21323 gcc_cv_as=./as$build_exeext
21324 elif ( set dummy $AS_FOR_TARGET; test -x $2 ); then
21325 gcc_cv_as="$AS_FOR_TARGET"
21326 else
21327 # Extract the first word of "$AS_FOR_TARGET", so it can be a program name with args.
21328 set dummy $AS_FOR_TARGET; ac_word=$2
21329 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
21330 $as_echo_n "checking for $ac_word... " >&6; }
21331 if test "${ac_cv_path_gcc_cv_as+set}" = set; then :
21332 $as_echo_n "(cached) " >&6
21333 else
21334 case $gcc_cv_as in
21335 [\\/]* | ?:[\\/]*)
21336 ac_cv_path_gcc_cv_as="$gcc_cv_as" # Let the user override the test with a path.
21339 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
21340 for as_dir in $PATH
21342 IFS=$as_save_IFS
21343 test -z "$as_dir" && as_dir=.
21344 for ac_exec_ext in '' $ac_executable_extensions; do
21345 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
21346 ac_cv_path_gcc_cv_as="$as_dir/$ac_word$ac_exec_ext"
21347 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
21348 break 2
21350 done
21351 done
21352 IFS=$as_save_IFS
21355 esac
21357 gcc_cv_as=$ac_cv_path_gcc_cv_as
21358 if test -n "$gcc_cv_as"; then
21359 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as" >&5
21360 $as_echo "$gcc_cv_as" >&6; }
21361 else
21362 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
21363 $as_echo "no" >&6; }
21370 ORIGINAL_AS_FOR_TARGET=$gcc_cv_as
21372 case "$ORIGINAL_AS_FOR_TARGET" in
21373 ./as | ./as$build_exeext) ;;
21374 *) ac_config_files="$ac_config_files as:exec-tool.in"
21376 esac
21378 { $as_echo "$as_me:${as_lineno-$LINENO}: checking what assembler to use" >&5
21379 $as_echo_n "checking what assembler to use... " >&6; }
21380 if test "$gcc_cv_as" = ../gas/as-new$build_exeext; then
21381 # Single tree build which includes gas. We want to prefer it
21382 # over whatever linker top-level may have detected, since
21383 # we'll use what we're building after installation anyway.
21384 { $as_echo "$as_me:${as_lineno-$LINENO}: result: newly built gas" >&5
21385 $as_echo "newly built gas" >&6; }
21386 in_tree_gas=yes
21387 gcc_cv_as_bfd_srcdir=`echo $srcdir | sed -e 's,/gcc$,,'`/bfd
21388 for f in $gcc_cv_as_bfd_srcdir/configure \
21389 $gcc_cv_as_gas_srcdir/configure \
21390 $gcc_cv_as_gas_srcdir/configure.in \
21391 $gcc_cv_as_gas_srcdir/Makefile.in ; do
21392 gcc_cv_gas_version=`sed -n -e 's/^[ ]*VERSION=[^0-9A-Za-z_]*\([0-9]*\.[0-9]*.*\)/VERSION=\1/p' < $f`
21393 if test x$gcc_cv_gas_version != x; then
21394 break
21396 done
21397 case $gcc_cv_gas_version in
21398 VERSION=[0-9]*) ;;
21399 *) as_fn_error "cannot find version of in-tree assembler" "$LINENO" 5;;
21400 esac
21401 gcc_cv_gas_major_version=`expr "$gcc_cv_gas_version" : "VERSION=\([0-9]*\)"`
21402 gcc_cv_gas_minor_version=`expr "$gcc_cv_gas_version" : "VERSION=[0-9]*\.\([0-9]*\)"`
21403 gcc_cv_gas_patch_version=`expr "$gcc_cv_gas_version" : "VERSION=[0-9]*\.[0-9]*\.\([0-9]*\)"`
21404 case $gcc_cv_gas_patch_version in
21405 "") gcc_cv_gas_patch_version="0" ;;
21406 esac
21407 gcc_cv_gas_vers=`expr \( \( $gcc_cv_gas_major_version \* 1000 \) \
21408 + $gcc_cv_gas_minor_version \) \* 1000 \
21409 + $gcc_cv_gas_patch_version`
21411 in_tree_gas_is_elf=no
21412 if grep 'obj_format = elf' ../gas/Makefile > /dev/null \
21413 || (grep 'obj_format = multi' ../gas/Makefile \
21414 && grep 'extra_objects =.* obj-elf' ../gas/Makefile) > /dev/null
21415 then
21416 in_tree_gas_is_elf=yes
21418 else
21419 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as" >&5
21420 $as_echo "$gcc_cv_as" >&6; }
21421 in_tree_gas=no
21424 # Identify the linker which will work hand-in-glove with the newly
21425 # built GCC, so that we can examine its features. This is the linker
21426 # which will be driven by the driver program.
21428 # If build != host, and we aren't building gas in-tree, we identify a
21429 # build->target linker and hope that it will have the same features
21430 # as the host->target linker we'll be using.
21431 gcc_cv_gld_major_version=
21432 gcc_cv_gld_minor_version=
21433 gcc_cv_ld_gld_srcdir=`echo $srcdir | sed -e 's,/gcc$,,'`/ld
21434 gcc_cv_ld_bfd_srcdir=`echo $srcdir | sed -e 's,/gcc$,,'`/bfd
21436 if test "${gcc_cv_ld+set}" = set; then :
21438 else
21440 if test -x "$DEFAULT_LINKER"; then
21441 gcc_cv_ld="$DEFAULT_LINKER"
21442 elif test -f $gcc_cv_ld_gld_srcdir/configure.in \
21443 && test -f ../ld/Makefile \
21444 && test x$build = x$host; then
21445 gcc_cv_ld=../ld/ld-new$build_exeext
21446 elif test -x collect-ld$build_exeext; then
21447 # Build using linker in the current directory.
21448 gcc_cv_ld=./collect-ld$build_exeext
21449 elif ( set dummy $LD_FOR_TARGET; test -x $2 ); then
21450 gcc_cv_ld="$LD_FOR_TARGET"
21451 else
21452 # Extract the first word of "$LD_FOR_TARGET", so it can be a program name with args.
21453 set dummy $LD_FOR_TARGET; ac_word=$2
21454 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
21455 $as_echo_n "checking for $ac_word... " >&6; }
21456 if test "${ac_cv_path_gcc_cv_ld+set}" = set; then :
21457 $as_echo_n "(cached) " >&6
21458 else
21459 case $gcc_cv_ld in
21460 [\\/]* | ?:[\\/]*)
21461 ac_cv_path_gcc_cv_ld="$gcc_cv_ld" # Let the user override the test with a path.
21464 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
21465 for as_dir in $PATH
21467 IFS=$as_save_IFS
21468 test -z "$as_dir" && as_dir=.
21469 for ac_exec_ext in '' $ac_executable_extensions; do
21470 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
21471 ac_cv_path_gcc_cv_ld="$as_dir/$ac_word$ac_exec_ext"
21472 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
21473 break 2
21475 done
21476 done
21477 IFS=$as_save_IFS
21480 esac
21482 gcc_cv_ld=$ac_cv_path_gcc_cv_ld
21483 if test -n "$gcc_cv_ld"; then
21484 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld" >&5
21485 $as_echo "$gcc_cv_ld" >&6; }
21486 else
21487 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
21488 $as_echo "no" >&6; }
21495 ORIGINAL_PLUGIN_LD_FOR_TARGET=$gcc_cv_ld
21496 PLUGIN_LD_SUFFIX=`basename $gcc_cv_ld | sed -e "s,$target_alias-,,"`
21497 # if the PLUGIN_LD is set ld-new, just have it as ld
21498 # as that is the installed named.
21499 if test x$PLUGIN_LD_SUFFIX = xld-new \
21500 || test x$PLUGIN_LD_SUFFIX = xcollect-ld ; then
21501 PLUGIN_LD_SUFFIX=ld
21504 # Check whether --with-plugin-ld was given.
21505 if test "${with_plugin_ld+set}" = set; then :
21506 withval=$with_plugin_ld; if test x"$withval" != x; then
21507 ORIGINAL_PLUGIN_LD_FOR_TARGET="$withval"
21508 PLUGIN_LD_SUFFIX=`echo $withval | sed -e "s,$target_alias-,,"`
21514 cat >>confdefs.h <<_ACEOF
21515 #define PLUGIN_LD_SUFFIX "$PLUGIN_LD_SUFFIX"
21516 _ACEOF
21519 # Check to see if we are using gold instead of ld
21520 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using gold" >&5
21521 $as_echo_n "checking whether we are using gold... " >&6; }
21522 ld_is_gold=no
21523 if test x$gcc_cv_ld != x; then
21524 if $gcc_cv_ld --version 2>/dev/null | sed 1q \
21525 | grep "GNU gold" > /dev/null; then
21526 ld_is_gold=yes
21529 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_is_gold" >&5
21530 $as_echo "$ld_is_gold" >&6; }
21532 ORIGINAL_LD_FOR_TARGET=$gcc_cv_ld
21534 case "$ORIGINAL_LD_FOR_TARGET" in
21535 ./collect-ld | ./collect-ld$build_exeext) ;;
21536 *) ac_config_files="$ac_config_files collect-ld:exec-tool.in"
21538 esac
21540 { $as_echo "$as_me:${as_lineno-$LINENO}: checking what linker to use" >&5
21541 $as_echo_n "checking what linker to use... " >&6; }
21542 if test "$gcc_cv_ld" = ../ld/ld-new$build_exeext \
21543 || test "$gcc_cv_ld" = ../gold/ld-new$build_exeext; then
21544 # Single tree build which includes ld. We want to prefer it
21545 # over whatever linker top-level may have detected, since
21546 # we'll use what we're building after installation anyway.
21547 { $as_echo "$as_me:${as_lineno-$LINENO}: result: newly built ld" >&5
21548 $as_echo "newly built ld" >&6; }
21549 in_tree_ld=yes
21550 in_tree_ld_is_elf=no
21551 if (grep 'EMUL = .*elf' ../ld/Makefile \
21552 || grep 'EMUL = .*linux' ../ld/Makefile \
21553 || grep 'EMUL = .*lynx' ../ld/Makefile) > /dev/null; then
21554 in_tree_ld_is_elf=yes
21555 elif test "$ld_is_gold" = yes; then
21556 in_tree_ld_is_elf=yes
21558 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
21560 gcc_cv_gld_version=`sed -n -e 's/^[ ]*VERSION=[^0-9A-Za-z_]*\([0-9]*\.[0-9]*.*\)/VERSION=\1/p' < $f`
21561 if test x$gcc_cv_gld_version != x; then
21562 break
21564 done
21565 case $gcc_cv_gld_version in
21566 VERSION=[0-9]*) ;;
21567 *) as_fn_error "cannot find version of in-tree linker" "$LINENO" 5 ;;
21568 esac
21569 gcc_cv_gld_major_version=`expr "$gcc_cv_gld_version" : "VERSION=\([0-9]*\)"`
21570 gcc_cv_gld_minor_version=`expr "$gcc_cv_gld_version" : "VERSION=[0-9]*\.\([0-9]*\)"`
21571 else
21572 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld" >&5
21573 $as_echo "$gcc_cv_ld" >&6; }
21574 in_tree_ld=no
21577 # Figure out what nm we will be using.
21578 gcc_cv_binutils_srcdir=`echo $srcdir | sed -e 's,/gcc$,,'`/binutils
21579 if test "${gcc_cv_nm+set}" = set; then :
21581 else
21583 if test -f $gcc_cv_binutils_srcdir/configure.in \
21584 && test -f ../binutils/Makefile \
21585 && test x$build = x$host; then
21586 gcc_cv_nm=../binutils/nm-new$build_exeext
21587 elif test -x nm$build_exeext; then
21588 gcc_cv_nm=./nm$build_exeext
21589 elif ( set dummy $NM_FOR_TARGET; test -x $2 ); then
21590 gcc_cv_nm="$NM_FOR_TARGET"
21591 else
21592 # Extract the first word of "$NM_FOR_TARGET", so it can be a program name with args.
21593 set dummy $NM_FOR_TARGET; ac_word=$2
21594 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
21595 $as_echo_n "checking for $ac_word... " >&6; }
21596 if test "${ac_cv_path_gcc_cv_nm+set}" = set; then :
21597 $as_echo_n "(cached) " >&6
21598 else
21599 case $gcc_cv_nm in
21600 [\\/]* | ?:[\\/]*)
21601 ac_cv_path_gcc_cv_nm="$gcc_cv_nm" # Let the user override the test with a path.
21604 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
21605 for as_dir in $PATH
21607 IFS=$as_save_IFS
21608 test -z "$as_dir" && as_dir=.
21609 for ac_exec_ext in '' $ac_executable_extensions; do
21610 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
21611 ac_cv_path_gcc_cv_nm="$as_dir/$ac_word$ac_exec_ext"
21612 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
21613 break 2
21615 done
21616 done
21617 IFS=$as_save_IFS
21620 esac
21622 gcc_cv_nm=$ac_cv_path_gcc_cv_nm
21623 if test -n "$gcc_cv_nm"; then
21624 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_nm" >&5
21625 $as_echo "$gcc_cv_nm" >&6; }
21626 else
21627 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
21628 $as_echo "no" >&6; }
21635 { $as_echo "$as_me:${as_lineno-$LINENO}: checking what nm to use" >&5
21636 $as_echo_n "checking what nm to use... " >&6; }
21637 if test "$gcc_cv_nm" = ../binutils/nm-new$build_exeext; then
21638 # Single tree build which includes binutils.
21639 { $as_echo "$as_me:${as_lineno-$LINENO}: result: newly built nm" >&5
21640 $as_echo "newly built nm" >&6; }
21641 in_tree_nm=yes
21642 else
21643 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_nm" >&5
21644 $as_echo "$gcc_cv_nm" >&6; }
21645 in_tree_nm=no
21648 ORIGINAL_NM_FOR_TARGET=$gcc_cv_nm
21650 case "$ORIGINAL_NM_FOR_TARGET" in
21651 ./nm | ./nm$build_exeext) ;;
21652 *) ac_config_files="$ac_config_files nm:exec-tool.in"
21654 esac
21657 # Figure out what objdump we will be using.
21658 if test "${gcc_cv_objdump+set}" = set; then :
21660 else
21662 if test -f $gcc_cv_binutils_srcdir/configure.in \
21663 && test -f ../binutils/Makefile \
21664 && test x$build = x$host; then
21665 # Single tree build which includes binutils.
21666 gcc_cv_objdump=../binutils/objdump$build_exeext
21667 elif test -x objdump$build_exeext; then
21668 gcc_cv_objdump=./objdump$build_exeext
21669 elif ( set dummy $OBJDUMP_FOR_TARGET; test -x $2 ); then
21670 gcc_cv_objdump="$OBJDUMP_FOR_TARGET"
21671 else
21672 # Extract the first word of "$OBJDUMP_FOR_TARGET", so it can be a program name with args.
21673 set dummy $OBJDUMP_FOR_TARGET; ac_word=$2
21674 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
21675 $as_echo_n "checking for $ac_word... " >&6; }
21676 if test "${ac_cv_path_gcc_cv_objdump+set}" = set; then :
21677 $as_echo_n "(cached) " >&6
21678 else
21679 case $gcc_cv_objdump in
21680 [\\/]* | ?:[\\/]*)
21681 ac_cv_path_gcc_cv_objdump="$gcc_cv_objdump" # Let the user override the test with a path.
21684 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
21685 for as_dir in $PATH
21687 IFS=$as_save_IFS
21688 test -z "$as_dir" && as_dir=.
21689 for ac_exec_ext in '' $ac_executable_extensions; do
21690 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
21691 ac_cv_path_gcc_cv_objdump="$as_dir/$ac_word$ac_exec_ext"
21692 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
21693 break 2
21695 done
21696 done
21697 IFS=$as_save_IFS
21700 esac
21702 gcc_cv_objdump=$ac_cv_path_gcc_cv_objdump
21703 if test -n "$gcc_cv_objdump"; then
21704 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_objdump" >&5
21705 $as_echo "$gcc_cv_objdump" >&6; }
21706 else
21707 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
21708 $as_echo "no" >&6; }
21715 { $as_echo "$as_me:${as_lineno-$LINENO}: checking what objdump to use" >&5
21716 $as_echo_n "checking what objdump to use... " >&6; }
21717 if test "$gcc_cv_objdump" = ../binutils/objdump$build_exeext; then
21718 # Single tree build which includes binutils.
21719 { $as_echo "$as_me:${as_lineno-$LINENO}: result: newly built objdump" >&5
21720 $as_echo "newly built objdump" >&6; }
21721 elif test x$gcc_cv_objdump = x; then
21722 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
21723 $as_echo "not found" >&6; }
21724 else
21725 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_objdump" >&5
21726 $as_echo "$gcc_cv_objdump" >&6; }
21729 # Figure out what readelf we will be using.
21730 if test "${gcc_cv_readelf+set}" = set; then :
21732 else
21734 if test -f $gcc_cv_binutils_srcdir/configure.in \
21735 && test -f ../binutils/Makefile \
21736 && test x$build = x$host; then
21737 # Single tree build which includes binutils.
21738 gcc_cv_readelf=../binutils/readelf$build_exeext
21739 elif test -x readelf$build_exeext; then
21740 gcc_cv_readelf=./readelf$build_exeext
21741 else
21742 # Extract the first word of "readelf", so it can be a program name with args.
21743 set dummy readelf; ac_word=$2
21744 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
21745 $as_echo_n "checking for $ac_word... " >&6; }
21746 if test "${ac_cv_path_gcc_cv_readelf+set}" = set; then :
21747 $as_echo_n "(cached) " >&6
21748 else
21749 case $gcc_cv_readelf in
21750 [\\/]* | ?:[\\/]*)
21751 ac_cv_path_gcc_cv_readelf="$gcc_cv_readelf" # Let the user override the test with a path.
21754 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
21755 for as_dir in $PATH
21757 IFS=$as_save_IFS
21758 test -z "$as_dir" && as_dir=.
21759 for ac_exec_ext in '' $ac_executable_extensions; do
21760 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
21761 ac_cv_path_gcc_cv_readelf="$as_dir/$ac_word$ac_exec_ext"
21762 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
21763 break 2
21765 done
21766 done
21767 IFS=$as_save_IFS
21770 esac
21772 gcc_cv_readelf=$ac_cv_path_gcc_cv_readelf
21773 if test -n "$gcc_cv_readelf"; then
21774 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_readelf" >&5
21775 $as_echo "$gcc_cv_readelf" >&6; }
21776 else
21777 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
21778 $as_echo "no" >&6; }
21785 { $as_echo "$as_me:${as_lineno-$LINENO}: checking what readelf to use" >&5
21786 $as_echo_n "checking what readelf to use... " >&6; }
21787 if test "$gcc_cv_readelf" = ../binutils/readelf$build_exeext; then
21788 # Single tree build which includes binutils.
21789 { $as_echo "$as_me:${as_lineno-$LINENO}: result: newly built readelf" >&5
21790 $as_echo "newly built readelf" >&6; }
21791 elif test x$gcc_cv_readelf = x; then
21792 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
21793 $as_echo "not found" >&6; }
21794 else
21795 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_readelf" >&5
21796 $as_echo "$gcc_cv_readelf" >&6; }
21799 # Figure out what assembler alignment features are present.
21800 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler flags" >&5
21801 $as_echo_n "checking assembler flags... " >&6; }
21802 if test "${gcc_cv_as_flags+set}" = set; then :
21803 $as_echo_n "(cached) " >&6
21804 else
21805 case "$target" in
21806 i[34567]86-*-linux*)
21807 gcc_cv_as_flags="--32"
21809 powerpc*-*-darwin*)
21810 gcc_cv_as_flags="-arch ppc"
21813 gcc_cv_as_flags=" "
21815 esac
21817 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_flags" >&5
21818 $as_echo "$gcc_cv_as_flags" >&6; }
21820 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .balign and .p2align" >&5
21821 $as_echo_n "checking assembler for .balign and .p2align... " >&6; }
21822 if test "${gcc_cv_as_balign_and_p2align+set}" = set; then :
21823 $as_echo_n "(cached) " >&6
21824 else
21825 gcc_cv_as_balign_and_p2align=no
21826 if test $in_tree_gas = yes; then
21827 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 6 \) \* 1000 + 0`
21828 then gcc_cv_as_balign_and_p2align=yes
21830 elif test x$gcc_cv_as != x; then
21831 $as_echo '.balign 4
21832 .p2align 2' > conftest.s
21833 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
21834 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
21835 (eval $ac_try) 2>&5
21836 ac_status=$?
21837 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
21838 test $ac_status = 0; }; }
21839 then
21840 gcc_cv_as_balign_and_p2align=yes
21841 else
21842 echo "configure: failed program was" >&5
21843 cat conftest.s >&5
21845 rm -f conftest.o conftest.s
21848 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_balign_and_p2align" >&5
21849 $as_echo "$gcc_cv_as_balign_and_p2align" >&6; }
21850 if test $gcc_cv_as_balign_and_p2align = yes; then
21852 $as_echo "#define HAVE_GAS_BALIGN_AND_P2ALIGN 1" >>confdefs.h
21856 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .p2align with maximum skip" >&5
21857 $as_echo_n "checking assembler for .p2align with maximum skip... " >&6; }
21858 if test "${gcc_cv_as_max_skip_p2align+set}" = set; then :
21859 $as_echo_n "(cached) " >&6
21860 else
21861 gcc_cv_as_max_skip_p2align=no
21862 if test $in_tree_gas = yes; then
21863 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 8 \) \* 1000 + 0`
21864 then gcc_cv_as_max_skip_p2align=yes
21866 elif test x$gcc_cv_as != x; then
21867 $as_echo '.p2align 4,,7' > conftest.s
21868 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
21869 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
21870 (eval $ac_try) 2>&5
21871 ac_status=$?
21872 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
21873 test $ac_status = 0; }; }
21874 then
21875 gcc_cv_as_max_skip_p2align=yes
21876 else
21877 echo "configure: failed program was" >&5
21878 cat conftest.s >&5
21880 rm -f conftest.o conftest.s
21883 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_max_skip_p2align" >&5
21884 $as_echo "$gcc_cv_as_max_skip_p2align" >&6; }
21885 if test $gcc_cv_as_max_skip_p2align = yes; then
21887 $as_echo "#define HAVE_GAS_MAX_SKIP_P2ALIGN 1" >>confdefs.h
21891 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .literal16" >&5
21892 $as_echo_n "checking assembler for .literal16... " >&6; }
21893 if test "${gcc_cv_as_literal16+set}" = set; then :
21894 $as_echo_n "(cached) " >&6
21895 else
21896 gcc_cv_as_literal16=no
21897 if test $in_tree_gas = yes; then
21898 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 8 \) \* 1000 + 0`
21899 then gcc_cv_as_literal16=yes
21901 elif test x$gcc_cv_as != x; then
21902 $as_echo '.literal16' > conftest.s
21903 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
21904 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
21905 (eval $ac_try) 2>&5
21906 ac_status=$?
21907 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
21908 test $ac_status = 0; }; }
21909 then
21910 gcc_cv_as_literal16=yes
21911 else
21912 echo "configure: failed program was" >&5
21913 cat conftest.s >&5
21915 rm -f conftest.o conftest.s
21918 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_literal16" >&5
21919 $as_echo "$gcc_cv_as_literal16" >&6; }
21920 if test $gcc_cv_as_literal16 = yes; then
21922 $as_echo "#define HAVE_GAS_LITERAL16 1" >>confdefs.h
21926 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for working .subsection -1" >&5
21927 $as_echo_n "checking assembler for working .subsection -1... " >&6; }
21928 if test "${gcc_cv_as_subsection_m1+set}" = set; then :
21929 $as_echo_n "(cached) " >&6
21930 else
21931 gcc_cv_as_subsection_m1=no
21932 if test $in_tree_gas = yes; then
21933 if test $in_tree_gas_is_elf = yes \
21934 && test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 9 \) \* 1000 + 0`
21935 then gcc_cv_as_subsection_m1=yes
21937 elif test x$gcc_cv_as != x; then
21938 $as_echo 'conftest_label1: .word 0
21939 .subsection -1
21940 conftest_label2: .word 0
21941 .previous' > conftest.s
21942 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
21943 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
21944 (eval $ac_try) 2>&5
21945 ac_status=$?
21946 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
21947 test $ac_status = 0; }; }
21948 then
21949 if test x$gcc_cv_nm != x; then
21950 $gcc_cv_nm conftest.o | grep conftest_label1 > conftest.nm1
21951 $gcc_cv_nm conftest.o | grep conftest_label2 | sed -e 's/label2/label1/' > conftest.nm2
21952 if cmp conftest.nm1 conftest.nm2 > /dev/null 2>&1
21953 then :
21954 else gcc_cv_as_subsection_m1=yes
21956 rm -f conftest.nm1 conftest.nm2
21958 else
21959 echo "configure: failed program was" >&5
21960 cat conftest.s >&5
21962 rm -f conftest.o conftest.s
21965 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_subsection_m1" >&5
21966 $as_echo "$gcc_cv_as_subsection_m1" >&6; }
21967 if test $gcc_cv_as_subsection_m1 = yes; then
21969 $as_echo "#define HAVE_GAS_SUBSECTION_ORDERING 1" >>confdefs.h
21973 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .weak" >&5
21974 $as_echo_n "checking assembler for .weak... " >&6; }
21975 if test "${gcc_cv_as_weak+set}" = set; then :
21976 $as_echo_n "(cached) " >&6
21977 else
21978 gcc_cv_as_weak=no
21979 if test $in_tree_gas = yes; then
21980 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 2 \) \* 1000 + 0`
21981 then gcc_cv_as_weak=yes
21983 elif test x$gcc_cv_as != x; then
21984 $as_echo ' .weak foobar' > conftest.s
21985 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
21986 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
21987 (eval $ac_try) 2>&5
21988 ac_status=$?
21989 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
21990 test $ac_status = 0; }; }
21991 then
21992 gcc_cv_as_weak=yes
21993 else
21994 echo "configure: failed program was" >&5
21995 cat conftest.s >&5
21997 rm -f conftest.o conftest.s
22000 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_weak" >&5
22001 $as_echo "$gcc_cv_as_weak" >&6; }
22002 if test $gcc_cv_as_weak = yes; then
22004 $as_echo "#define HAVE_GAS_WEAK 1" >>confdefs.h
22008 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .weakref" >&5
22009 $as_echo_n "checking assembler for .weakref... " >&6; }
22010 if test "${gcc_cv_as_weakref+set}" = set; then :
22011 $as_echo_n "(cached) " >&6
22012 else
22013 gcc_cv_as_weakref=no
22014 if test $in_tree_gas = yes; then
22015 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 17 \) \* 1000 + 0`
22016 then gcc_cv_as_weakref=yes
22018 elif test x$gcc_cv_as != x; then
22019 $as_echo ' .weakref foobar, barfnot' > conftest.s
22020 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
22021 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
22022 (eval $ac_try) 2>&5
22023 ac_status=$?
22024 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
22025 test $ac_status = 0; }; }
22026 then
22027 gcc_cv_as_weakref=yes
22028 else
22029 echo "configure: failed program was" >&5
22030 cat conftest.s >&5
22032 rm -f conftest.o conftest.s
22035 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_weakref" >&5
22036 $as_echo "$gcc_cv_as_weakref" >&6; }
22037 if test $gcc_cv_as_weakref = yes; then
22039 $as_echo "#define HAVE_GAS_WEAKREF 1" >>confdefs.h
22043 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .nsubspa comdat" >&5
22044 $as_echo_n "checking assembler for .nsubspa comdat... " >&6; }
22045 if test "${gcc_cv_as_nsubspa_comdat+set}" = set; then :
22046 $as_echo_n "(cached) " >&6
22047 else
22048 gcc_cv_as_nsubspa_comdat=no
22049 if test $in_tree_gas = yes; then
22050 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 15 \) \* 1000 + 91`
22051 then gcc_cv_as_nsubspa_comdat=yes
22053 elif test x$gcc_cv_as != x; then
22054 $as_echo ' .SPACE $TEXT$
22055 .NSUBSPA $CODE$,COMDAT' > conftest.s
22056 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
22057 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
22058 (eval $ac_try) 2>&5
22059 ac_status=$?
22060 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
22061 test $ac_status = 0; }; }
22062 then
22063 gcc_cv_as_nsubspa_comdat=yes
22064 else
22065 echo "configure: failed program was" >&5
22066 cat conftest.s >&5
22068 rm -f conftest.o conftest.s
22071 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_nsubspa_comdat" >&5
22072 $as_echo "$gcc_cv_as_nsubspa_comdat" >&6; }
22073 if test $gcc_cv_as_nsubspa_comdat = yes; then
22075 $as_echo "#define HAVE_GAS_NSUBSPA_COMDAT 1" >>confdefs.h
22079 # .hidden needs to be supported in both the assembler and the linker,
22080 # because GNU LD versions before 2.12.1 have buggy support for STV_HIDDEN.
22081 # This is irritatingly difficult to feature test for; we have to check the
22082 # date string after the version number. If we've got an in-tree
22083 # ld, we don't know its patchlevel version, so we set the baseline at 2.13
22084 # to be safe.
22085 # The gcc_GAS_CHECK_FEATURE call just sets a cache variable.
22086 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .hidden" >&5
22087 $as_echo_n "checking assembler for .hidden... " >&6; }
22088 if test "${gcc_cv_as_hidden+set}" = set; then :
22089 $as_echo_n "(cached) " >&6
22090 else
22091 gcc_cv_as_hidden=no
22092 if test $in_tree_gas = yes; then
22093 if test $in_tree_gas_is_elf = yes \
22094 && test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 13 \) \* 1000 + 0`
22095 then gcc_cv_as_hidden=yes
22097 elif test x$gcc_cv_as != x; then
22098 $as_echo ' .hidden foobar
22099 foobar:' > conftest.s
22100 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
22101 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
22102 (eval $ac_try) 2>&5
22103 ac_status=$?
22104 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
22105 test $ac_status = 0; }; }
22106 then
22108 # Solaris 9/x86 as incorrectly emits an alias for a hidden symbol with
22109 # STV_HIDDEN, so disable .hidden support if so.
22110 case "${target}" in
22111 i?86-*-solaris2* | x86_64-*-solaris2.1[0-9]*)
22112 if test x$gcc_cv_as != x && test x$gcc_cv_objdump != x; then
22113 cat > conftest.s <<EOF
22114 .globl hidden
22115 .hidden hidden
22116 hidden:
22117 .globl default
22118 .set default,hidden
22120 if $gcc_cv_as -o conftest.o conftest.s > /dev/null 2>&1 \
22121 && $gcc_cv_objdump -t conftest.o 2>/dev/null | \
22122 grep '\.hidden default' > /dev/null; then
22123 gcc_cv_as_hidden=no
22124 else
22125 gcc_cv_as_hidden=yes
22127 else
22128 # Assume bug is present if objdump is missing.
22129 gcc_cv_as_hidden=no
22133 gcc_cv_as_hidden=yes
22135 esac
22136 else
22137 echo "configure: failed program was" >&5
22138 cat conftest.s >&5
22140 rm -f conftest.o conftest.s
22143 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_hidden" >&5
22144 $as_echo "$gcc_cv_as_hidden" >&6; }
22146 case "${target}" in
22147 *-*-darwin*)
22148 # Darwin as has some visibility support, though with a different syntax.
22149 gcc_cv_as_hidden=yes
22151 esac
22153 # gnu_indirect_function type is an extension proposed at
22154 # http://groups.google/com/group/generic-abi/files. It allows dynamic runtime
22155 # selection of function implementation
22156 # Check whether --enable-gnu-indirect-function was given.
22157 if test "${enable_gnu_indirect_function+set}" = set; then :
22158 enableval=$enable_gnu_indirect_function; case $enable_gnu_indirect_function in
22159 yes | no) ;;
22160 *) as_fn_error "'$enable_gnu_indirect_function' is an invalid value for --enable-gnu-indirect-function.
22161 Valid choices are 'yes' and 'no'." "$LINENO" 5 ;;
22162 esac
22163 else
22164 enable_gnu_indirect_function="$default_gnu_indirect_function"
22168 gif=`if test x$enable_gnu_indirect_function = xyes; then echo 1; else echo 0; fi`
22170 cat >>confdefs.h <<_ACEOF
22171 #define HAVE_GNU_INDIRECT_FUNCTION $gif
22172 _ACEOF
22176 if test $in_tree_ld != yes ; then
22177 ld_ver=`$gcc_cv_ld --version 2>/dev/null | sed 1q`
22178 if echo "$ld_ver" | grep GNU > /dev/null; then
22179 if test x"$ld_is_gold" = xyes; then
22180 # GNU gold --version looks like this:
22182 # GNU gold (GNU Binutils 2.21.51.20110225) 1.11
22184 # We extract the binutils version which is more familiar and specific
22185 # than the gold version.
22186 ld_vers=`echo $ld_ver | sed -n \
22187 -e 's,^[^)]*[ ]\([0-9][0-9]*\.[0-9][0-9]*[^)]*\)) .*$,\1,p'`
22188 else
22189 # GNU ld --version looks like this:
22191 # GNU ld (GNU Binutils) 2.21.51.20110225
22192 ld_vers=`echo $ld_ver | sed -n \
22193 -e 's,^.*[ ]\([0-9][0-9]*\.[0-9][0-9]*.*\)$,\1,p'`
22195 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'`
22196 ld_vers_major=`expr "$ld_vers" : '\([0-9]*\)'`
22197 ld_vers_minor=`expr "$ld_vers" : '[0-9]*\.\([0-9]*\)'`
22198 ld_vers_patch=`expr "$ld_vers" : '[0-9]*\.[0-9]*\.\([0-9]*\)'`
22199 else
22200 case "${target}" in
22201 *-*-solaris2*)
22202 # See acinclude.m4 (gcc_SUN_LD_VERSION) for the version number
22203 # format.
22205 # Don't reuse gcc_gv_sun_ld_vers_* in case a linker other than
22206 # /usr/ccs/bin/ld has been configured.
22207 ld_ver=`$gcc_cv_ld -V 2>&1`
22208 if echo "$ld_ver" | grep 'Solaris Link Editors' > /dev/null; then
22209 ld_vers=`echo $ld_ver | sed -n \
22210 -e 's,^.*: 5\.[0-9][0-9]*-\([0-9]\.[0-9][0-9]*\).*$,\1,p'`
22211 ld_vers_major=`expr "$ld_vers" : '\([0-9]*\)'`
22212 ld_vers_minor=`expr "$ld_vers" : '[0-9]*\.\([0-9]*\)'`
22215 esac
22219 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker for .hidden support" >&5
22220 $as_echo_n "checking linker for .hidden support... " >&6; }
22221 if test "${gcc_cv_ld_hidden+set}" = set; then :
22222 $as_echo_n "(cached) " >&6
22223 else
22224 if test $in_tree_ld = yes ; then
22225 gcc_cv_ld_hidden=no
22226 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 \
22227 && test $in_tree_ld_is_elf = yes; then
22228 gcc_cv_ld_hidden=yes
22230 else
22231 gcc_cv_ld_hidden=yes
22232 if test x"$ld_is_gold" = xyes; then
22234 elif echo "$ld_ver" | grep GNU > /dev/null; then
22235 case "${target}" in
22236 mmix-knuth-mmixware)
22237 # The linker emits by default mmo, not ELF, so "no" is appropriate.
22238 gcc_cv_ld_hidden=no
22240 esac
22241 if test 0"$ld_date" -lt 20020404; then
22242 if test -n "$ld_date"; then
22243 # If there was date string, but was earlier than 2002-04-04, fail
22244 gcc_cv_ld_hidden=no
22245 elif test -z "$ld_vers"; then
22246 # If there was no date string nor ld version number, something is wrong
22247 gcc_cv_ld_hidden=no
22248 else
22249 test -z "$ld_vers_patch" && ld_vers_patch=0
22250 if test "$ld_vers_major" -lt 2; then
22251 gcc_cv_ld_hidden=no
22252 elif test "$ld_vers_major" -eq 2 -a "$ld_vers_minor" -lt 12; then
22253 gcc_cv_ld_hidden="no"
22254 elif test "$ld_vers_major" -eq 2 -a "$ld_vers_minor" -eq 12 -a "$ld_vers_patch" -eq 0; then
22255 gcc_cv_ld_hidden=no
22259 else
22260 case "${target}" in
22261 *-*-darwin*)
22262 # Darwin ld has some visibility support.
22263 gcc_cv_ld_hidden=yes
22265 hppa64*-*-hpux* | ia64*-*-hpux*)
22266 gcc_cv_ld_hidden=yes
22268 *-*-solaris2.9* | *-*-solaris2.1[0-9]*)
22269 # Support for .hidden in Sun ld appeared in Solaris 9 FCS, but
22270 # .symbolic was only added in Solaris 9 12/02.
22271 gcc_cv_ld_hidden=yes
22274 gcc_cv_ld_hidden=no
22276 esac
22280 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_hidden" >&5
22281 $as_echo "$gcc_cv_ld_hidden" >&6; }
22282 libgcc_visibility=no
22285 if test $gcc_cv_as_hidden = yes && test $gcc_cv_ld_hidden = yes; then
22286 libgcc_visibility=yes
22288 $as_echo "#define HAVE_GAS_HIDDEN 1" >>confdefs.h
22292 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker read-only and read-write section mixing" >&5
22293 $as_echo_n "checking linker read-only and read-write section mixing... " >&6; }
22294 gcc_cv_ld_ro_rw_mix=unknown
22295 if test $in_tree_ld = yes ; then
22296 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 \
22297 && test $in_tree_ld_is_elf = yes; then
22298 gcc_cv_ld_ro_rw_mix=read-write
22300 elif test x$gcc_cv_as != x -a x$gcc_cv_ld != x -a x$gcc_cv_objdump != x ; then
22301 echo '.section myfoosect, "a"' > conftest1.s
22302 echo '.section myfoosect, "aw"' > conftest2.s
22303 echo '.byte 1' >> conftest2.s
22304 echo '.section myfoosect, "a"' > conftest3.s
22305 echo '.byte 0' >> conftest3.s
22306 if $gcc_cv_as -o conftest1.o conftest1.s > /dev/null 2>&1 \
22307 && $gcc_cv_as -o conftest2.o conftest2.s > /dev/null 2>&1 \
22308 && $gcc_cv_as -o conftest3.o conftest3.s > /dev/null 2>&1 \
22309 && $gcc_cv_ld -shared -o conftest1.so conftest1.o \
22310 conftest2.o conftest3.o > /dev/null 2>&1; then
22311 gcc_cv_ld_ro_rw_mix=`$gcc_cv_objdump -h conftest1.so \
22312 | sed -e '/myfoosect/!d' -e N`
22313 if echo "$gcc_cv_ld_ro_rw_mix" | grep CONTENTS > /dev/null; then
22314 if echo "$gcc_cv_ld_ro_rw_mix" | grep READONLY > /dev/null; then
22315 gcc_cv_ld_ro_rw_mix=read-only
22316 else
22317 gcc_cv_ld_ro_rw_mix=read-write
22321 rm -f conftest.* conftest[123].*
22323 if test x$gcc_cv_ld_ro_rw_mix = xread-write; then
22325 $as_echo "#define HAVE_LD_RO_RW_SECTION_MIXING 1" >>confdefs.h
22328 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_ro_rw_mix" >&5
22329 $as_echo "$gcc_cv_ld_ro_rw_mix" >&6; }
22331 if test "x${build}" = "x${target}" && test "x${build}" = "x${host}"; then
22332 case "${target}" in
22333 *-*-solaris2*)
22335 # Solaris 2 ld -V output looks like this for a regular version:
22337 # ld: Software Generation Utilities - Solaris Link Editors: 5.11-1.1699
22339 # but test versions add stuff at the end:
22341 # ld: Software Generation Utilities - Solaris Link Editors: 5.11-1.1701:onnv-ab196087-6931056-03/25/10
22343 gcc_cv_sun_ld_ver=`/usr/ccs/bin/ld -V 2>&1`
22344 if echo "$gcc_cv_sun_ld_ver" | grep 'Solaris Link Editors' > /dev/null; then
22345 gcc_cv_sun_ld_vers=`echo $gcc_cv_sun_ld_ver | sed -n \
22346 -e 's,^.*: 5\.[0-9][0-9]*-\([0-9]\.[0-9][0-9]*\).*$,\1,p'`
22347 gcc_cv_sun_ld_vers_major=`expr "$gcc_cv_sun_ld_vers" : '\([0-9]*\)'`
22348 gcc_cv_sun_ld_vers_minor=`expr "$gcc_cv_sun_ld_vers" : '[0-9]*\.\([0-9]*\)'`
22351 esac
22354 # Check whether --enable-initfini-array was given.
22355 if test "${enable_initfini_array+set}" = set; then :
22356 enableval=$enable_initfini_array;
22357 else
22359 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for .preinit_array/.init_array/.fini_array support" >&5
22360 $as_echo_n "checking for .preinit_array/.init_array/.fini_array support... " >&6; }
22361 if test "${gcc_cv_initfini_array+set}" = set; then :
22362 $as_echo_n "(cached) " >&6
22363 else
22364 if test "x${build}" = "x${target}" && test "x${build}" = "x${host}"; then
22365 case "${target}" in
22366 ia64-*)
22367 if test "$cross_compiling" = yes; then :
22368 gcc_cv_initfini_array=no
22369 else
22370 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22371 /* end confdefs.h. */
22373 #ifndef __ELF__
22374 #error Not an ELF OS
22375 #endif
22376 /* We turn on .preinit_array/.init_array/.fini_array support for ia64
22377 if it can be used. */
22378 static int x = -1;
22379 int main (void) { return x; }
22380 int foo (void) { x = 0; }
22381 int (*fp) (void) __attribute__ ((section (".init_array"))) = foo;
22383 _ACEOF
22384 if ac_fn_c_try_run "$LINENO"; then :
22385 gcc_cv_initfini_array=yes
22386 else
22387 gcc_cv_initfini_array=no
22389 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
22390 conftest.$ac_objext conftest.beam conftest.$ac_ext
22394 gcc_cv_initfini_array=no
22395 if test $in_tree_ld = yes ; then
22396 if test "$gcc_cv_gld_major_version" -eq 2 \
22397 -a "$gcc_cv_gld_minor_version" -ge 22 \
22398 -o "$gcc_cv_gld_major_version" -gt 2 \
22399 && test $in_tree_ld_is_elf = yes; then
22400 gcc_cv_initfini_array=yes
22402 elif test x$gcc_cv_as != x -a x$gcc_cv_ld != x -a x$gcc_cv_objdump != x ; then
22403 cat > conftest.s <<\EOF
22404 .section .dtors,"a",%progbits
22405 .balign 4
22406 .byte 'A', 'A', 'A', 'A'
22407 .section .ctors,"a",%progbits
22408 .balign 4
22409 .byte 'B', 'B', 'B', 'B'
22410 .section .fini_array.65530,"a",%progbits
22411 .balign 4
22412 .byte 'C', 'C', 'C', 'C'
22413 .section .init_array.65530,"a",%progbits
22414 .balign 4
22415 .byte 'D', 'D', 'D', 'D'
22416 .section .dtors.64528,"a",%progbits
22417 .balign 4
22418 .byte 'E', 'E', 'E', 'E'
22419 .section .ctors.64528,"a",%progbits
22420 .balign 4
22421 .byte 'F', 'F', 'F', 'F'
22422 .section .fini_array.01005,"a",%progbits
22423 .balign 4
22424 .byte 'G', 'G', 'G', 'G'
22425 .section .init_array.01005,"a",%progbits
22426 .balign 4
22427 .byte 'H', 'H', 'H', 'H'
22428 .text
22429 .globl _start
22430 _start:
22432 if $gcc_cv_as -o conftest.o conftest.s > /dev/null 2>&1 \
22433 && $gcc_cv_ld -o conftest conftest.o > /dev/null 2>&1 \
22434 && $gcc_cv_objdump -s -j .init_array conftest \
22435 | grep HHHHFFFFDDDDBBBB > /dev/null 2>&1 \
22436 && $gcc_cv_objdump -s -j .fini_array conftest \
22437 | grep GGGGEEEECCCCAAAA > /dev/null 2>&1; then
22438 gcc_cv_initfini_array=yes
22440 rm -f conftest conftest.*
22442 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22443 /* end confdefs.h. */
22445 #ifndef __ELF__
22446 # error Not an ELF OS
22447 #endif
22448 #include <stdlib.h>
22449 #if defined __GLIBC_PREREQ
22450 # if __GLIBC_PREREQ (2, 4)
22451 # else
22452 # error GLIBC 2.4 required
22453 # endif
22454 #else
22455 # if defined __sun__ && defined __svr4__
22456 /* Solaris ld.so.1 supports .init_array/.fini_array since Solaris 8. */
22457 # else
22458 # error The C library not known to support .init_array/.fini_array
22459 # endif
22460 #endif
22462 _ACEOF
22463 if ac_fn_c_try_cpp "$LINENO"; then :
22465 else
22466 gcc_cv_initfini_array=no
22468 rm -f conftest.err conftest.$ac_ext;;
22469 esac
22470 else
22471 { $as_echo "$as_me:${as_lineno-$LINENO}: checking cross compile... guessing" >&5
22472 $as_echo_n "checking cross compile... guessing... " >&6; }
22473 gcc_cv_initfini_array=no
22476 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_initfini_array" >&5
22477 $as_echo "$gcc_cv_initfini_array" >&6; }
22478 enable_initfini_array=$gcc_cv_initfini_array
22482 if test $enable_initfini_array = yes; then
22484 $as_echo "#define HAVE_INITFINI_ARRAY_SUPPORT 1" >>confdefs.h
22488 # Check if we have .[us]leb128, and support symbol arithmetic with it.
22489 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .sleb128 and .uleb128" >&5
22490 $as_echo_n "checking assembler for .sleb128 and .uleb128... " >&6; }
22491 if test "${gcc_cv_as_leb128+set}" = set; then :
22492 $as_echo_n "(cached) " >&6
22493 else
22494 gcc_cv_as_leb128=no
22495 if test $in_tree_gas = yes; then
22496 if test $in_tree_gas_is_elf = yes \
22497 && test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 11 \) \* 1000 + 0`
22498 then gcc_cv_as_leb128=yes
22500 elif test x$gcc_cv_as != x; then
22501 $as_echo ' .data
22502 .uleb128 L2 - L1
22504 .uleb128 1280
22505 .sleb128 -1010
22506 L2:' > conftest.s
22507 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
22508 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
22509 (eval $ac_try) 2>&5
22510 ac_status=$?
22511 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
22512 test $ac_status = 0; }; }
22513 then
22514 # GAS versions before 2.11 do not support uleb128,
22515 # despite appearing to.
22516 # ??? There exists an elf-specific test that will crash
22517 # the assembler. Perhaps it's better to figure out whether
22518 # arbitrary sections are supported and try the test.
22519 as_ver=`$gcc_cv_as --version 2>/dev/null | sed 1q`
22520 if echo "$as_ver" | grep GNU > /dev/null; then
22521 as_vers=`echo $as_ver | sed -n \
22522 -e 's,^.*[ ]\([0-9][0-9]*\.[0-9][0-9]*.*\)$,\1,p'`
22523 as_major=`expr "$as_vers" : '\([0-9]*\)'`
22524 as_minor=`expr "$as_vers" : '[0-9]*\.\([0-9]*\)'`
22525 if test $as_major -eq 2 && test $as_minor -lt 11
22526 then :
22527 else gcc_cv_as_leb128=yes
22530 else
22531 echo "configure: failed program was" >&5
22532 cat conftest.s >&5
22534 rm -f conftest.o conftest.s
22537 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_leb128" >&5
22538 $as_echo "$gcc_cv_as_leb128" >&6; }
22539 if test $gcc_cv_as_leb128 = yes; then
22541 $as_echo "#define HAVE_AS_LEB128 1" >>confdefs.h
22545 # Check if we have assembler support for unwind directives.
22546 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for cfi directives" >&5
22547 $as_echo_n "checking assembler for cfi directives... " >&6; }
22548 if test "${gcc_cv_as_cfi_directive+set}" = set; then :
22549 $as_echo_n "(cached) " >&6
22550 else
22551 gcc_cv_as_cfi_directive=no
22552 if test x$gcc_cv_as != x; then
22553 $as_echo ' .text
22554 .cfi_startproc
22555 .cfi_offset 0, 0
22556 .cfi_same_value 1
22557 .cfi_def_cfa 1, 2
22558 .cfi_escape 1, 2, 3, 4, 5
22559 .cfi_endproc' > conftest.s
22560 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
22561 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
22562 (eval $ac_try) 2>&5
22563 ac_status=$?
22564 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
22565 test $ac_status = 0; }; }
22566 then
22567 case "$target" in
22568 *-*-solaris*)
22569 # If the linker used on Solaris (like Sun ld) isn't capable of merging
22570 # read-only and read-write sections, we need to make sure that the
22571 # assembler used emits read-write .eh_frame sections.
22572 if test "x$gcc_cv_ld_ro_rw_mix" != xread-write; then
22573 if test "x$gcc_cv_objdump" != x; then
22574 if $gcc_cv_objdump -h conftest.o 2>/dev/null | \
22575 sed -e /.eh_frame/!d -e N | grep READONLY > /dev/null; then
22576 gcc_cv_as_cfi_directive=no
22577 else
22578 case "$target" in
22579 i?86-*-solaris2.1[0-9]* | x86_64-*-solaris2.1[0-9]*)
22580 # On Solaris/x86, make sure that GCC and gas agree on using
22581 # read-only .eh_frame sections for 64-bit.
22582 if $gcc_cv_as --64 -o conftest.o conftest.s > /dev/null 2>&1 && \
22583 $gcc_cv_objdump -h conftest.o 2>/dev/null | \
22584 sed -e /.eh_frame/!d -e N | \
22585 grep READONLY > /dev/null; then
22586 gcc_cv_as_cfi_directive=yes
22587 else
22588 gcc_cv_as_cfi_directive=no
22592 gcc_cv_as_cfi_directive=yes
22594 esac
22596 else
22597 # no objdump, err on the side of caution
22598 gcc_cv_as_cfi_directive=no
22600 else
22601 gcc_cv_as_cfi_directive=yes
22604 *-*-*)
22605 gcc_cv_as_cfi_directive=yes
22607 esac
22608 else
22609 echo "configure: failed program was" >&5
22610 cat conftest.s >&5
22612 rm -f conftest.o conftest.s
22615 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_cfi_directive" >&5
22616 $as_echo "$gcc_cv_as_cfi_directive" >&6; }
22618 if test $gcc_cv_as_cfi_directive = yes && test x$gcc_cv_objdump != x; then
22619 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for working cfi advance" >&5
22620 $as_echo_n "checking assembler for working cfi advance... " >&6; }
22621 if test "${gcc_cv_as_cfi_advance_working+set}" = set; then :
22622 $as_echo_n "(cached) " >&6
22623 else
22624 gcc_cv_as_cfi_advance_working=no
22625 if test x$gcc_cv_as != x; then
22626 $as_echo ' .text
22627 .cfi_startproc
22628 .cfi_adjust_cfa_offset 64
22629 .skip 75040, 0
22630 .cfi_adjust_cfa_offset 128
22631 .cfi_endproc' > conftest.s
22632 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
22633 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
22634 (eval $ac_try) 2>&5
22635 ac_status=$?
22636 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
22637 test $ac_status = 0; }; }
22638 then
22640 if $gcc_cv_objdump -Wf conftest.o 2>/dev/null \
22641 | grep 'DW_CFA_advance_loc[24]:[ ][ ]*75040[ ]' >/dev/null; then
22642 gcc_cv_as_cfi_advance_working=yes
22645 else
22646 echo "configure: failed program was" >&5
22647 cat conftest.s >&5
22649 rm -f conftest.o conftest.s
22652 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_cfi_advance_working" >&5
22653 $as_echo "$gcc_cv_as_cfi_advance_working" >&6; }
22655 else
22656 # no objdump, err on the side of caution
22657 gcc_cv_as_cfi_advance_working=no
22661 cat >>confdefs.h <<_ACEOF
22662 #define HAVE_GAS_CFI_DIRECTIVE `if test $gcc_cv_as_cfi_directive = yes \
22663 && test $gcc_cv_as_cfi_advance_working = yes; then echo 1; else echo 0; fi`
22664 _ACEOF
22668 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for cfi personality directive" >&5
22669 $as_echo_n "checking assembler for cfi personality directive... " >&6; }
22670 if test "${gcc_cv_as_cfi_personality_directive+set}" = set; then :
22671 $as_echo_n "(cached) " >&6
22672 else
22673 gcc_cv_as_cfi_personality_directive=no
22674 if test x$gcc_cv_as != x; then
22675 $as_echo ' .text
22676 .cfi_startproc
22677 .cfi_personality 0, symbol
22678 .cfi_endproc' > conftest.s
22679 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
22680 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
22681 (eval $ac_try) 2>&5
22682 ac_status=$?
22683 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
22684 test $ac_status = 0; }; }
22685 then
22686 gcc_cv_as_cfi_personality_directive=yes
22687 else
22688 echo "configure: failed program was" >&5
22689 cat conftest.s >&5
22691 rm -f conftest.o conftest.s
22694 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_cfi_personality_directive" >&5
22695 $as_echo "$gcc_cv_as_cfi_personality_directive" >&6; }
22698 cat >>confdefs.h <<_ACEOF
22699 #define HAVE_GAS_CFI_PERSONALITY_DIRECTIVE `if test $gcc_cv_as_cfi_personality_directive = yes;
22700 then echo 1; else echo 0; fi`
22701 _ACEOF
22704 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for cfi sections directive" >&5
22705 $as_echo_n "checking assembler for cfi sections directive... " >&6; }
22706 if test "${gcc_cv_as_cfi_sections_directive+set}" = set; then :
22707 $as_echo_n "(cached) " >&6
22708 else
22709 gcc_cv_as_cfi_sections_directive=no
22710 if test x$gcc_cv_as != x; then
22711 $as_echo ' .text
22712 .cfi_sections .debug_frame, .eh_frame
22713 .cfi_startproc
22714 .cfi_endproc' > conftest.s
22715 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
22716 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
22717 (eval $ac_try) 2>&5
22718 ac_status=$?
22719 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
22720 test $ac_status = 0; }; }
22721 then
22722 case $target_os in
22723 win32 | pe | cygwin* | mingw32* | uwin*)
22724 # Need to check that we generated the correct relocation for the
22725 # .debug_frame section. This was fixed for binutils 2.21.
22726 gcc_cv_as_cfi_sections_directive=no
22727 if test "x$gcc_cv_objdump" != x; then
22728 if $gcc_cv_objdump -j .debug_frame -r conftest.o 2>/dev/null | \
22729 grep secrel > /dev/null; then
22730 gcc_cv_as_cfi_sections_directive=yes
22735 gcc_cv_as_cfi_sections_directive=yes
22737 esac
22738 else
22739 echo "configure: failed program was" >&5
22740 cat conftest.s >&5
22742 rm -f conftest.o conftest.s
22745 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_cfi_sections_directive" >&5
22746 $as_echo "$gcc_cv_as_cfi_sections_directive" >&6; }
22750 cat >>confdefs.h <<_ACEOF
22751 #define HAVE_GAS_CFI_SECTIONS_DIRECTIVE `if test $gcc_cv_as_cfi_sections_directive = yes;
22752 then echo 1; else echo 0; fi`
22753 _ACEOF
22756 # GAS versions up to and including 2.11.0 may mis-optimize
22757 # .eh_frame data.
22758 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for eh_frame optimization" >&5
22759 $as_echo_n "checking assembler for eh_frame optimization... " >&6; }
22760 if test "${gcc_cv_as_eh_frame+set}" = set; then :
22761 $as_echo_n "(cached) " >&6
22762 else
22763 gcc_cv_as_eh_frame=no
22764 if test $in_tree_gas = yes; then
22765 if test $in_tree_gas_is_elf = yes \
22766 && test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 12 \) \* 1000 + 0`
22767 then gcc_cv_as_eh_frame=yes
22769 elif test x$gcc_cv_as != x; then
22770 $as_echo ' .text
22771 .LFB1:
22772 .4byte 0
22773 .L1:
22774 .4byte 0
22775 .LFE1:
22776 .section .eh_frame,"aw",@progbits
22777 __FRAME_BEGIN__:
22778 .4byte .LECIE1-.LSCIE1
22779 .LSCIE1:
22780 .4byte 0x0
22781 .byte 0x1
22782 .ascii "z\0"
22783 .byte 0x1
22784 .byte 0x78
22785 .byte 0x1a
22786 .byte 0x0
22787 .byte 0x4
22788 .4byte 1
22789 .p2align 1
22790 .LECIE1:
22791 .LSFDE1:
22792 .4byte .LEFDE1-.LASFDE1
22793 .LASFDE1:
22794 .4byte .LASFDE1-__FRAME_BEGIN__
22795 .4byte .LFB1
22796 .4byte .LFE1-.LFB1
22797 .byte 0x4
22798 .4byte .LFE1-.LFB1
22799 .byte 0x4
22800 .4byte .L1-.LFB1
22801 .LEFDE1:' > conftest.s
22802 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
22803 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
22804 (eval $ac_try) 2>&5
22805 ac_status=$?
22806 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
22807 test $ac_status = 0; }; }
22808 then
22809 cat > conftest.lit <<EOF
22810 0000 10000000 00000000 017a0001 781a0004 .........z..x...
22811 0010 01000000 12000000 18000000 00000000 ................
22812 0020 08000000 04080000 0044 .........D
22814 cat > conftest.big <<EOF
22815 0000 00000010 00000000 017a0001 781a0004 .........z..x...
22816 0010 00000001 00000012 00000018 00000000 ................
22817 0020 00000008 04000000 0844 .........D
22819 # If the assembler didn't choke, and we can objdump,
22820 # and we got the correct data, then succeed.
22821 # The text in the here-document typically retains its unix-style line
22822 # endings, while the output of objdump will use host line endings.
22823 # Therefore, use diff -b for the comparisons.
22824 if test x$gcc_cv_objdump != x \
22825 && $gcc_cv_objdump -s -j .eh_frame conftest.o 2>/dev/null \
22826 | tail -3 > conftest.got \
22827 && { diff -b conftest.lit conftest.got > /dev/null 2>&1 \
22828 || diff -b conftest.big conftest.got > /dev/null 2>&1; }
22829 then
22830 gcc_cv_as_eh_frame=yes
22831 elif { ac_try='$gcc_cv_as -o conftest.o --traditional-format /dev/null'
22832 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
22833 (eval $ac_try) 2>&5
22834 ac_status=$?
22835 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
22836 test $ac_status = 0; }; }; then
22837 gcc_cv_as_eh_frame=buggy
22838 else
22839 # Uh oh, what do we do now?
22840 gcc_cv_as_eh_frame=no
22842 else
22843 echo "configure: failed program was" >&5
22844 cat conftest.s >&5
22846 rm -f conftest.o conftest.s
22849 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_eh_frame" >&5
22850 $as_echo "$gcc_cv_as_eh_frame" >&6; }
22853 if test $gcc_cv_as_eh_frame = buggy; then
22855 $as_echo "#define USE_AS_TRADITIONAL_FORMAT 1" >>confdefs.h
22859 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for section merging support" >&5
22860 $as_echo_n "checking assembler for section merging support... " >&6; }
22861 if test "${gcc_cv_as_shf_merge+set}" = set; then :
22862 $as_echo_n "(cached) " >&6
22863 else
22864 gcc_cv_as_shf_merge=no
22865 if test $in_tree_gas = yes; then
22866 if test $in_tree_gas_is_elf = yes \
22867 && test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 12 \) \* 1000 + 0`
22868 then gcc_cv_as_shf_merge=yes
22870 elif test x$gcc_cv_as != x; then
22871 $as_echo '.section .rodata.str, "aMS", @progbits, 1' > conftest.s
22872 if { ac_try='$gcc_cv_as $gcc_cv_as_flags --fatal-warnings -o conftest.o conftest.s >&5'
22873 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
22874 (eval $ac_try) 2>&5
22875 ac_status=$?
22876 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
22877 test $ac_status = 0; }; }
22878 then
22879 gcc_cv_as_shf_merge=yes
22880 else
22881 echo "configure: failed program was" >&5
22882 cat conftest.s >&5
22884 rm -f conftest.o conftest.s
22887 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_shf_merge" >&5
22888 $as_echo "$gcc_cv_as_shf_merge" >&6; }
22890 if test $gcc_cv_as_shf_merge = no; then
22891 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for section merging support" >&5
22892 $as_echo_n "checking assembler for section merging support... " >&6; }
22893 if test "${gcc_cv_as_shf_merge+set}" = set; then :
22894 $as_echo_n "(cached) " >&6
22895 else
22896 gcc_cv_as_shf_merge=no
22897 if test $in_tree_gas = yes; then
22898 if test $in_tree_gas_is_elf = yes \
22899 && test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 12 \) \* 1000 + 0`
22900 then gcc_cv_as_shf_merge=yes
22902 elif test x$gcc_cv_as != x; then
22903 $as_echo '.section .rodata.str, "aMS", %progbits, 1' > conftest.s
22904 if { ac_try='$gcc_cv_as $gcc_cv_as_flags --fatal-warnings -o conftest.o conftest.s >&5'
22905 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
22906 (eval $ac_try) 2>&5
22907 ac_status=$?
22908 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
22909 test $ac_status = 0; }; }
22910 then
22911 gcc_cv_as_shf_merge=yes
22912 else
22913 echo "configure: failed program was" >&5
22914 cat conftest.s >&5
22916 rm -f conftest.o conftest.s
22919 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_shf_merge" >&5
22920 $as_echo "$gcc_cv_as_shf_merge" >&6; }
22924 cat >>confdefs.h <<_ACEOF
22925 #define HAVE_GAS_SHF_MERGE `if test $gcc_cv_as_shf_merge = yes; then echo 1; else echo 0; fi`
22926 _ACEOF
22929 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for COMDAT group support (GNU as)" >&5
22930 $as_echo_n "checking assembler for COMDAT group support (GNU as)... " >&6; }
22931 if test "${gcc_cv_as_comdat_group+set}" = set; then :
22932 $as_echo_n "(cached) " >&6
22933 else
22934 gcc_cv_as_comdat_group=no
22935 if test $in_tree_gas = yes; then
22936 if test $in_tree_gas_is_elf = yes \
22937 && test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 16 \) \* 1000 + 0`
22938 then gcc_cv_as_comdat_group=yes
22940 elif test x$gcc_cv_as != x; then
22941 $as_echo '.section .text,"axG",@progbits,.foo,comdat' > conftest.s
22942 if { ac_try='$gcc_cv_as $gcc_cv_as_flags --fatal-warnings -o conftest.o conftest.s >&5'
22943 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
22944 (eval $ac_try) 2>&5
22945 ac_status=$?
22946 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
22947 test $ac_status = 0; }; }
22948 then
22949 gcc_cv_as_comdat_group=yes
22950 else
22951 echo "configure: failed program was" >&5
22952 cat conftest.s >&5
22954 rm -f conftest.o conftest.s
22957 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_comdat_group" >&5
22958 $as_echo "$gcc_cv_as_comdat_group" >&6; }
22960 if test $gcc_cv_as_comdat_group = yes; then
22961 gcc_cv_as_comdat_group_percent=no
22962 gcc_cv_as_comdat_group_group=no
22963 else
22964 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for COMDAT group support (GNU as, %type)" >&5
22965 $as_echo_n "checking assembler for COMDAT group support (GNU as, %type)... " >&6; }
22966 if test "${gcc_cv_as_comdat_group_percent+set}" = set; then :
22967 $as_echo_n "(cached) " >&6
22968 else
22969 gcc_cv_as_comdat_group_percent=no
22970 if test $in_tree_gas = yes; then
22971 if test $in_tree_gas_is_elf = yes \
22972 && test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 16 \) \* 1000 + 0`
22973 then gcc_cv_as_comdat_group_percent=yes
22975 elif test x$gcc_cv_as != x; then
22976 $as_echo '.section .text,"axG",%progbits,.foo,comdat' > conftest.s
22977 if { ac_try='$gcc_cv_as $gcc_cv_as_flags --fatal-warnings -o conftest.o conftest.s >&5'
22978 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
22979 (eval $ac_try) 2>&5
22980 ac_status=$?
22981 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
22982 test $ac_status = 0; }; }
22983 then
22984 gcc_cv_as_comdat_group_percent=yes
22985 else
22986 echo "configure: failed program was" >&5
22987 cat conftest.s >&5
22989 rm -f conftest.o conftest.s
22992 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_comdat_group_percent" >&5
22993 $as_echo "$gcc_cv_as_comdat_group_percent" >&6; }
22995 if test $gcc_cv_as_comdat_group_percent = yes; then
22996 gcc_cv_as_comdat_group_group=no
22997 else
22998 if test -z "${gcc_cv_as_comdat_group_group+set}"; then
22999 gcc_cv_as_comdat_group_group=no
23001 case "${target}" in
23002 # Sun as uses a completely different syntax.
23003 *-*-solaris2*)
23004 case "${target}" in
23005 sparc*-*-solaris2*)
23006 conftest_s='
23007 .group foo,".text%foo",#comdat
23008 .section ".text%foo", #alloc,#execinstr,#progbits
23009 .globl foo
23010 foo:
23013 i?86-*-solaris2* | x86_64-*-solaris2.1[0-9]*)
23014 conftest_s='
23015 .group foo,.text%foo,#comdat
23016 .section .text%foo, "ax", @progbits
23017 .globl foo
23018 foo:
23021 esac
23022 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for COMDAT group support (Sun as, .group)" >&5
23023 $as_echo_n "checking assembler for COMDAT group support (Sun as, .group)... " >&6; }
23024 if test "${gcc_cv_as_comdat_group_group+set}" = set; then :
23025 $as_echo_n "(cached) " >&6
23026 else
23027 gcc_cv_as_comdat_group_group=no
23028 if test x$gcc_cv_as != x; then
23029 $as_echo "$conftest_s" > conftest.s
23030 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
23031 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
23032 (eval $ac_try) 2>&5
23033 ac_status=$?
23034 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
23035 test $ac_status = 0; }; }
23036 then
23037 gcc_cv_as_comdat_group_group=yes
23038 else
23039 echo "configure: failed program was" >&5
23040 cat conftest.s >&5
23042 rm -f conftest.o conftest.s
23045 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_comdat_group_group" >&5
23046 $as_echo "$gcc_cv_as_comdat_group_group" >&6; }
23049 esac
23052 if test x"$ld_is_gold" = xyes; then
23053 comdat_group=yes
23054 elif test $in_tree_ld = yes ; then
23055 comdat_group=no
23056 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 \
23057 && test $in_tree_ld_is_elf = yes; then
23058 comdat_group=yes
23060 elif echo "$ld_ver" | grep GNU > /dev/null; then
23061 comdat_group=yes
23062 if test 0"$ld_date" -lt 20050308; then
23063 if test -n "$ld_date"; then
23064 # If there was date string, but was earlier than 2005-03-08, fail
23065 comdat_group=no
23066 elif test "$ld_vers_major" -lt 2; then
23067 comdat_group=no
23068 elif test "$ld_vers_major" -eq 2 -a "$ld_vers_minor" -lt 16; then
23069 comdat_group=no
23072 else
23073 case "${target}" in
23074 *-*-solaris2.1[1-9]*)
23075 comdat_group=no
23076 # Sun ld has COMDAT group support since Solaris 9, but it doesn't
23077 # interoperate with GNU as until Solaris 11 build 130, i.e. ld
23078 # version 1.688.
23080 # If using Sun as for COMDAT group as emitted by GCC, one needs at
23081 # least ld version 1.2267.
23082 if test "$ld_vers_major" -gt 1; then
23083 comdat_group=yes
23084 elif test "x$gas_flag" = xyes && test "$ld_vers_minor" -ge 1688; then
23085 comdat_group=yes
23086 elif test "$ld_vers_minor" -ge 2267; then
23087 comdat_group=yes
23091 # Assume linkers other than GNU ld don't support COMDAT group.
23092 comdat_group=no
23094 esac
23096 # Allow overriding the automatic COMDAT group tests above.
23097 # Check whether --enable-comdat was given.
23098 if test "${enable_comdat+set}" = set; then :
23099 enableval=$enable_comdat; comdat_group="$enable_comdat"
23102 if test $comdat_group = no; then
23103 gcc_cv_as_comdat_group=no
23104 gcc_cv_as_comdat_group_percent=no
23105 gcc_cv_as_comdat_group_group=no
23108 cat >>confdefs.h <<_ACEOF
23109 #define HAVE_COMDAT_GROUP `if test $gcc_cv_as_comdat_group = yes \
23110 || test $gcc_cv_as_comdat_group_percent = yes \
23111 || test $gcc_cv_as_comdat_group_group = yes; then echo 1; else echo 0; fi`
23112 _ACEOF
23115 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for line table discriminator support" >&5
23116 $as_echo_n "checking assembler for line table discriminator support... " >&6; }
23117 if test "${gcc_cv_as_discriminator+set}" = set; then :
23118 $as_echo_n "(cached) " >&6
23119 else
23120 gcc_cv_as_discriminator=no
23121 if test $in_tree_gas = yes; then
23122 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 19 \) \* 1000 + 51`
23123 then gcc_cv_as_discriminator=yes
23125 elif test x$gcc_cv_as != x; then
23126 $as_echo ' .text
23127 .file 1 "conf.c"
23128 .loc 1 1 0 discriminator 1' > conftest.s
23129 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
23130 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
23131 (eval $ac_try) 2>&5
23132 ac_status=$?
23133 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
23134 test $ac_status = 0; }; }
23135 then
23136 gcc_cv_as_discriminator=yes
23137 else
23138 echo "configure: failed program was" >&5
23139 cat conftest.s >&5
23141 rm -f conftest.o conftest.s
23144 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_discriminator" >&5
23145 $as_echo "$gcc_cv_as_discriminator" >&6; }
23146 if test $gcc_cv_as_discriminator = yes; then
23148 $as_echo "#define HAVE_GAS_DISCRIMINATOR 1" >>confdefs.h
23152 # Thread-local storage - the check is heavily parameterized.
23153 conftest_s=
23154 tls_first_major=
23155 tls_first_minor=
23156 tls_as_opt=
23157 case "$target" in
23158 alpha*-*-*)
23159 conftest_s='
23160 .section ".tdata","awT",@progbits
23161 foo: .long 25
23162 .text
23163 ldq $27,__tls_get_addr($29) !literal!1
23164 lda $16,foo($29) !tlsgd!1
23165 jsr $26,($27),__tls_get_addr !lituse_tlsgd!1
23166 ldq $27,__tls_get_addr($29) !literal!2
23167 lda $16,foo($29) !tlsldm!2
23168 jsr $26,($27),__tls_get_addr !lituse_tlsldm!2
23169 ldq $1,foo($29) !gotdtprel
23170 ldah $2,foo($29) !dtprelhi
23171 lda $3,foo($2) !dtprello
23172 lda $4,foo($29) !dtprel
23173 ldq $1,foo($29) !gottprel
23174 ldah $2,foo($29) !tprelhi
23175 lda $3,foo($2) !tprello
23176 lda $4,foo($29) !tprel'
23177 tls_first_major=2
23178 tls_first_minor=13
23179 tls_as_opt=--fatal-warnings
23181 cris-*-*|crisv32-*-*)
23182 conftest_s='
23183 .section ".tdata","awT",@progbits
23184 x: .long 25
23185 .text
23186 move.d x:IE,$r10
23187 nop'
23188 tls_first_major=2
23189 tls_first_minor=20
23190 tls_as_opt=--fatal-warnings
23192 frv*-*-*)
23193 conftest_s='
23194 .section ".tdata","awT",@progbits
23195 x: .long 25
23196 .text
23197 call #gettlsoff(x)'
23198 tls_first_major=2
23199 tls_first_minor=14
23201 hppa*-*-linux*)
23202 conftest_s='
23203 t1: .reg %r20
23204 t2: .reg %r21
23205 gp: .reg %r19
23206 .section ".tdata","awT",@progbits
23207 foo: .long 25
23208 .text
23209 .align 4
23210 addil LT%foo-$tls_gdidx$,gp
23211 ldo RT%foo-$tls_gdidx$(%r1),%arg0
23212 b __tls_get_addr
23214 addil LT%foo-$tls_ldidx$,gp
23215 b __tls_get_addr
23216 ldo RT%foo-$tls_ldidx$(%r1),%arg0
23217 addil LR%foo-$tls_dtpoff$,%ret0
23218 ldo RR%foo-$tls_dtpoff$(%r1),%t1
23219 mfctl %cr27,%t1
23220 addil LT%foo-$tls_ieoff$,gp
23221 ldw RT%foo-$tls_ieoff$(%r1),%t2
23222 add %t1,%t2,%t3
23223 mfctl %cr27,%t1
23224 addil LR%foo-$tls_leoff$,%t1
23225 ldo RR%foo-$tls_leoff$(%r1),%t2'
23226 tls_first_major=2
23227 tls_first_minor=15
23228 tls_as_opt=--fatal-warnings
23230 arm*-*-*)
23231 conftest_s='
23232 .section ".tdata","awT",%progbits
23233 foo: .long 25
23234 .text
23235 .word foo(gottpoff)
23236 .word foo(tpoff)
23237 .word foo(tlsgd)
23238 .word foo(tlsldm)
23239 .word foo(tlsldo)'
23240 tls_first_major=2
23241 tls_first_minor=17
23243 i[34567]86-*-* | x86_64-*-solaris2.1[0-9]*)
23244 case "$target" in
23245 i[34567]86-*-solaris2.*)
23246 on_solaris=yes
23247 tga_func=___tls_get_addr
23249 x86_64-*-solaris2.1[0-9]*)
23250 on_solaris=yes
23251 tga_func=__tls_get_addr
23254 on_solaris=no
23256 esac
23257 if test x$on_solaris = xyes && test x$gas_flag = xno; then
23258 conftest_s='
23259 .section .tdata,"awt",@progbits'
23260 tls_first_major=0
23261 tls_first_minor=0
23263 $as_echo "#define TLS_SECTION_ASM_FLAG 't'" >>confdefs.h
23265 else
23266 conftest_s='
23267 .section ".tdata","awT",@progbits'
23268 tls_first_major=2
23269 tls_first_minor=14
23270 tls_as_opt="--fatal-warnings"
23272 conftest_s="$conftest_s
23273 foo: .long 25
23274 .text
23275 movl %gs:0, %eax
23276 leal foo@tlsgd(,%ebx,1), %eax
23277 leal foo@tlsldm(%ebx), %eax
23278 leal foo@dtpoff(%eax), %edx
23279 movl foo@gottpoff(%ebx), %eax
23280 subl foo@gottpoff(%ebx), %eax
23281 addl foo@gotntpoff(%ebx), %eax
23282 movl foo@indntpoff, %eax
23283 movl \$foo@tpoff, %eax
23284 subl \$foo@tpoff, %eax
23285 leal foo@ntpoff(%ecx), %eax"
23287 x86_64-*-*)
23288 conftest_s='
23289 .section ".tdata","awT",@progbits
23290 foo: .long 25
23291 .text
23292 movq %fs:0, %rax
23293 leaq foo@TLSGD(%rip), %rdi
23294 leaq foo@TLSLD(%rip), %rdi
23295 leaq foo@DTPOFF(%rax), %rdx
23296 movq foo@GOTTPOFF(%rip), %rax
23297 movq $foo@TPOFF, %rax'
23298 tls_first_major=2
23299 tls_first_minor=14
23300 tls_as_opt=--fatal-warnings
23302 ia64-*-*)
23303 conftest_s='
23304 .section ".tdata","awT",@progbits
23305 foo: data8 25
23306 .text
23307 addl r16 = @ltoff(@dtpmod(foo#)), gp
23308 addl r17 = @ltoff(@dtprel(foo#)), gp
23309 addl r18 = @ltoff(@tprel(foo#)), gp
23310 addl r19 = @dtprel(foo#), gp
23311 adds r21 = @dtprel(foo#), r13
23312 movl r23 = @dtprel(foo#)
23313 addl r20 = @tprel(foo#), gp
23314 adds r22 = @tprel(foo#), r13
23315 movl r24 = @tprel(foo#)'
23316 tls_first_major=2
23317 tls_first_minor=13
23318 tls_as_opt=--fatal-warnings
23320 microblaze*-*-*)
23321 conftest_s='
23322 .section .tdata,"awT",@progbits
23324 .word 2
23325 .text
23326 addik r5,r20,x@TLSGD
23327 addik r5,r20,x@TLSLDM'
23328 tls_first_major=2
23329 tls_first_minor=20
23330 tls_as_opt='--fatal-warnings'
23332 mips*-*-*)
23333 conftest_s='
23334 .section .tdata,"awT",@progbits
23336 .word 2
23337 .text
23338 addiu $4, $28, %tlsgd(x)
23339 addiu $4, $28, %tlsldm(x)
23340 lui $4, %dtprel_hi(x)
23341 addiu $4, $4, %dtprel_lo(x)
23342 lw $4, %gottprel(x)($28)
23343 lui $4, %tprel_hi(x)
23344 addiu $4, $4, %tprel_lo(x)'
23345 tls_first_major=2
23346 tls_first_minor=16
23347 tls_as_opt='-32 --fatal-warnings'
23349 m68k-*-*)
23350 conftest_s='
23351 .section .tdata,"awT",@progbits
23353 .word 2
23354 .text
23355 foo:
23356 move.l x@TLSGD(%a5),%a0
23357 move.l x@TLSLDM(%a5),%a0
23358 move.l x@TLSLDO(%a5),%a0
23359 move.l x@TLSIE(%a5),%a0
23360 move.l x@TLSLE(%a5),%a0'
23361 tls_first_major=2
23362 tls_first_minor=19
23363 tls_as_opt='--fatal-warnings'
23365 aarch64*-*-*)
23366 conftest_s='
23367 .section ".tdata","awT",%progbits
23368 foo: .long 25
23369 .text
23370 adrp x0, :tlsgd:x
23371 add x0, x0, #:tlsgd_lo12:x
23372 bl __tls_get_addr
23373 nop'
23374 tls_first_major=2
23375 tls_first_minor=20
23376 tls_as_opt='--fatal-warnings'
23378 powerpc-ibm-aix*)
23379 conftest_s='
23380 .extern __get_tpointer
23381 .toc
23382 LC..1:
23383 .tc a[TC],a[TL]@le
23384 .csect .text[PR]
23385 .tlstest:
23386 lwz 9,LC..1(2)
23387 bla __get_tpointer
23388 lwzx 3,9,3
23389 .globl a
23390 .csect a[TL],4
23392 .space 4'
23393 tls_first_major=0
23394 tls_first_minor=0
23396 powerpc64*-*-*)
23397 conftest_s='
23398 .section ".tdata","awT",@progbits
23399 .align 3
23400 ld0: .space 8
23401 ld1: .space 8
23402 x1: .space 8
23403 x2: .space 8
23404 x3: .space 8
23405 .text
23406 addi 3,2,ld0@got@tlsgd
23407 bl .__tls_get_addr
23409 addi 3,2,ld1@toc
23410 bl .__tls_get_addr
23412 addi 3,2,x1@got@tlsld
23413 bl .__tls_get_addr
23415 addi 9,3,x1@dtprel
23416 bl .__tls_get_addr
23418 addis 9,3,x2@dtprel@ha
23419 addi 9,9,x2@dtprel@l
23420 bl .__tls_get_addr
23422 ld 9,x3@got@dtprel(2)
23423 add 9,9,3
23424 bl .__tls_get_addr
23425 nop'
23426 tls_first_major=2
23427 tls_first_minor=14
23428 tls_as_opt="-a64 --fatal-warnings"
23430 powerpc*-*-*)
23431 conftest_s='
23432 .section ".tdata","awT",@progbits
23433 .align 2
23434 ld0: .space 4
23435 ld1: .space 4
23436 x1: .space 4
23437 x2: .space 4
23438 x3: .space 4
23439 .text
23440 addi 3,31,ld0@got@tlsgd
23441 bl __tls_get_addr
23442 addi 3,31,x1@got@tlsld
23443 bl __tls_get_addr
23444 addi 9,3,x1@dtprel
23445 addis 9,3,x2@dtprel@ha
23446 addi 9,9,x2@dtprel@l
23447 lwz 9,x3@got@tprel(31)
23448 add 9,9,x@tls
23449 addi 9,2,x1@tprel
23450 addis 9,2,x2@tprel@ha
23451 addi 9,9,x2@tprel@l'
23452 tls_first_major=2
23453 tls_first_minor=14
23454 tls_as_opt="-a32 --fatal-warnings"
23456 s390-*-*)
23457 conftest_s='
23458 .section ".tdata","awT",@progbits
23459 foo: .long 25
23460 .text
23461 .long foo@TLSGD
23462 .long foo@TLSLDM
23463 .long foo@DTPOFF
23464 .long foo@NTPOFF
23465 .long foo@GOTNTPOFF
23466 .long foo@INDNTPOFF
23467 l %r1,foo@GOTNTPOFF(%r12)
23468 l %r1,0(%r1):tls_load:foo
23469 bas %r14,0(%r1,%r13):tls_gdcall:foo
23470 bas %r14,0(%r1,%r13):tls_ldcall:foo'
23471 tls_first_major=2
23472 tls_first_minor=14
23473 tls_as_opt="-m31 --fatal-warnings"
23475 s390x-*-*)
23476 conftest_s='
23477 .section ".tdata","awT",@progbits
23478 foo: .long 25
23479 .text
23480 .quad foo@TLSGD
23481 .quad foo@TLSLDM
23482 .quad foo@DTPOFF
23483 .quad foo@NTPOFF
23484 .quad foo@GOTNTPOFF
23485 lg %r1,foo@GOTNTPOFF(%r12)
23486 larl %r1,foo@INDNTPOFF
23487 brasl %r14,__tls_get_offset@PLT:tls_gdcall:foo
23488 brasl %r14,__tls_get_offset@PLT:tls_ldcall:foo'
23489 tls_first_major=2
23490 tls_first_minor=14
23491 tls_as_opt="-m64 -Aesame --fatal-warnings"
23493 sh-*-* | sh[34]-*-*)
23494 conftest_s='
23495 .section ".tdata","awT",@progbits
23496 foo: .long 25
23497 .text
23498 .long foo@TLSGD
23499 .long foo@TLSLDM
23500 .long foo@DTPOFF
23501 .long foo@GOTTPOFF
23502 .long foo@TPOFF'
23503 tls_first_major=2
23504 tls_first_minor=13
23505 tls_as_opt=--fatal-warnings
23507 sparc*-*-*)
23508 case "$target" in
23509 sparc*-sun-solaris2.*)
23510 on_solaris=yes
23511 tga_func=__tls_get_addr
23514 on_solaris=no
23516 esac
23517 if test x$on_solaris = xyes && test x$gas_flag = xno; then
23518 conftest_s='
23519 .section ".tdata",#alloc,#write,#tls'
23520 tls_first_major=0
23521 tls_first_minor=0
23522 else
23523 conftest_s='
23524 .section ".tdata","awT",@progbits'
23525 tls_first_major=2
23526 tls_first_minor=14
23527 tls_as_opt="-32 --fatal-warnings"
23529 conftest_s="$conftest_s
23530 foo: .long 25
23531 .text
23532 sethi %tgd_hi22(foo), %o0
23533 add %o0, %tgd_lo10(foo), %o1
23534 add %l7, %o1, %o0, %tgd_add(foo)
23535 call __tls_get_addr, %tgd_call(foo)
23536 sethi %tldm_hi22(foo), %l1
23537 add %l1, %tldm_lo10(foo), %l2
23538 add %l7, %l2, %o0, %tldm_add(foo)
23539 call __tls_get_addr, %tldm_call(foo)
23540 sethi %tldo_hix22(foo), %l3
23541 xor %l3, %tldo_lox10(foo), %l4
23542 add %o0, %l4, %l5, %tldo_add(foo)
23543 sethi %tie_hi22(foo), %o3
23544 add %o3, %tie_lo10(foo), %o3
23545 ld [%l7 + %o3], %o2, %tie_ld(foo)
23546 add %g7, %o2, %o4, %tie_add(foo)
23547 sethi %tle_hix22(foo), %l1
23548 xor %l1, %tle_lox10(foo), %o5
23549 ld [%g7 + %o5], %o1"
23551 tilepro*-*-*)
23552 conftest_s='
23553 .section ".tdata","awT",@progbits
23554 foo: .long 25
23555 .text
23556 addli r0, zero, tls_gd(foo)
23557 auli r0, zero, tls_gd_ha16(foo)
23558 addli r0, r0, tls_gd_lo16(foo)
23559 jal __tls_get_addr
23560 addli r0, zero, tls_ie(foo)
23561 auli r0, r0, tls_ie_ha16(foo)
23562 addli r0, r0, tls_ie_lo16(foo)'
23563 tls_first_major=2
23564 tls_first_minor=22
23565 tls_as_opt="--fatal-warnings"
23567 tilegx*-*-*)
23568 conftest_s='
23569 .section ".tdata","awT",@progbits
23570 foo: .long 25
23571 .text
23572 shl16insli r0, zero, hw0_last_tls_gd(foo)
23573 shl16insli r0, zero, hw1_last_tls_gd(foo)
23574 shl16insli r0, r0, hw0_tls_gd(foo)
23575 jal __tls_get_addr
23576 shl16insli r0, zero, hw1_last_tls_ie(foo)
23577 shl16insli r0, r0, hw0_tls_ie(foo)'
23578 tls_first_major=2
23579 tls_first_minor=22
23580 tls_as_opt="--fatal-warnings"
23582 xtensa*-*-*)
23583 conftest_s='
23584 .section ".tdata","awT",@progbits
23585 foo: .long 25
23586 .text
23587 movi a8, foo@TLSFUNC
23588 movi a10, foo@TLSARG
23589 callx8.tls a8, foo@TLSCALL'
23590 tls_first_major=2
23591 tls_first_minor=19
23593 esac
23594 set_have_as_tls=no
23595 if test "x$enable_tls" = xno ; then
23596 : # TLS explicitly disabled.
23597 elif test "x$enable_tls" = xyes ; then
23598 set_have_as_tls=yes # TLS explicitly enabled.
23599 elif test -z "$tls_first_major"; then
23600 : # If we don't have a check, assume no support.
23601 else
23602 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for thread-local storage support" >&5
23603 $as_echo_n "checking assembler for thread-local storage support... " >&6; }
23604 if test "${gcc_cv_as_tls+set}" = set; then :
23605 $as_echo_n "(cached) " >&6
23606 else
23607 gcc_cv_as_tls=no
23608 if test $in_tree_gas = yes; then
23609 if test $gcc_cv_gas_vers -ge `expr \( \( $tls_first_major \* 1000 \) + $tls_first_minor \) \* 1000 + 0`
23610 then gcc_cv_as_tls=yes
23612 elif test x$gcc_cv_as != x; then
23613 $as_echo "$conftest_s" > conftest.s
23614 if { ac_try='$gcc_cv_as $gcc_cv_as_flags $tls_as_opt -o conftest.o conftest.s >&5'
23615 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
23616 (eval $ac_try) 2>&5
23617 ac_status=$?
23618 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
23619 test $ac_status = 0; }; }
23620 then
23621 gcc_cv_as_tls=yes
23622 else
23623 echo "configure: failed program was" >&5
23624 cat conftest.s >&5
23626 rm -f conftest.o conftest.s
23629 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_tls" >&5
23630 $as_echo "$gcc_cv_as_tls" >&6; }
23631 if test $gcc_cv_as_tls = yes; then
23632 set_have_as_tls=yes
23635 case "$target" in
23636 # TLS was introduced in the Solaris 9 FCS release. Support for GNU-style
23637 # TLS on x86 was only introduced in Solaris 9 4/04, replacing the earlier
23638 # Sun style that Sun ld and GCC don't support any longer.
23639 *-*-solaris2.*)
23640 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker and ld.so.1 TLS support" >&5
23641 $as_echo_n "checking linker and ld.so.1 TLS support... " >&6; }
23642 ld_tls_support=no
23643 # Check ld and ld.so.1 TLS support.
23644 if echo "$ld_ver" | grep GNU > /dev/null; then
23645 # Assume all interesting versions of GNU ld have TLS support.
23646 # FIXME: still need ld.so.1 support, i.e. ld version checks below.
23647 ld_tls_support=yes
23648 else
23649 case "$target" in
23650 # Solaris 9/x86 ld has GNU style TLS support since version 1.374.
23651 i?86-*-solaris2.9)
23652 min_tls_ld_vers_minor=374
23654 # Solaris 9/SPARC and Solaris 10+ ld have TLS support since FCS.
23655 sparc*-*-solaris2.9 | *-*-solaris2.1[0-9]*)
23656 min_tls_ld_vers_minor=343
23658 esac
23659 if test "$ld_vers_major" -gt 1 || \
23660 test "$ld_vers_minor" -ge "$min_tls_ld_vers_minor"; then
23661 ld_tls_support=yes
23662 else
23663 set_have_as_tls=no
23666 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_tls_support" >&5
23667 $as_echo "$ld_tls_support" >&6; }
23669 save_LIBS="$LIBS"
23670 save_LDFLAGS="$LDFLAGS"
23671 LIBS=
23672 LDFLAGS=
23674 { $as_echo "$as_me:${as_lineno-$LINENO}: checking library containing $tga_func" >&5
23675 $as_echo_n "checking library containing $tga_func... " >&6; }
23676 # Before Solaris 10, __tls_get_addr (SPARC/x64) resp. ___tls_get_addr
23677 # (32-bit x86) only lived in libthread, so check for that. Keep
23678 # set_have_as_tls if found, disable if not.
23679 as_ac_Search=`$as_echo "ac_cv_search_$tga_func" | $as_tr_sh`
23680 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing $tga_func" >&5
23681 $as_echo_n "checking for library containing $tga_func... " >&6; }
23682 if { as_var=$as_ac_Search; eval "test \"\${$as_var+set}\" = set"; }; then :
23683 $as_echo_n "(cached) " >&6
23684 else
23685 ac_func_search_save_LIBS=$LIBS
23686 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23687 /* end confdefs.h. */
23689 /* Override any GCC internal prototype to avoid an error.
23690 Use char because int might match the return type of a GCC
23691 builtin and then its argument prototype would still apply. */
23692 #ifdef __cplusplus
23693 extern "C"
23694 #endif
23695 char $tga_func ();
23697 main ()
23699 return $tga_func ();
23701 return 0;
23703 _ACEOF
23704 for ac_lib in '' thread; do
23705 if test -z "$ac_lib"; then
23706 ac_res="none required"
23707 else
23708 ac_res=-l$ac_lib
23709 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
23711 if ac_fn_c_try_link "$LINENO"; then :
23712 eval "$as_ac_Search=\$ac_res"
23714 rm -f core conftest.err conftest.$ac_objext \
23715 conftest$ac_exeext
23716 if { as_var=$as_ac_Search; eval "test \"\${$as_var+set}\" = set"; }; then :
23717 break
23719 done
23720 if { as_var=$as_ac_Search; eval "test \"\${$as_var+set}\" = set"; }; then :
23722 else
23723 eval "$as_ac_Search=no"
23725 rm conftest.$ac_ext
23726 LIBS=$ac_func_search_save_LIBS
23728 eval ac_res=\$$as_ac_Search
23729 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
23730 $as_echo "$ac_res" >&6; }
23731 eval ac_res=\$$as_ac_Search
23732 if test "$ac_res" != no; then :
23733 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
23735 else
23736 set_have_as_tls=no
23739 # Clear LIBS if we cannot support TLS.
23740 if test $set_have_as_tls = no; then
23741 LIBS=
23743 # Always define LIB_TLS_SPEC, even without TLS support.
23745 cat >>confdefs.h <<_ACEOF
23746 #define LIB_TLS_SPEC "$LIBS"
23747 _ACEOF
23749 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIBS" >&5
23750 $as_echo "$LIBS" >&6; }
23752 LIBS="$save_LIBS"
23753 LDFLAGS="$save_LDFLAGS"
23755 esac
23756 if test $set_have_as_tls = yes ; then
23758 $as_echo "#define HAVE_AS_TLS 1" >>confdefs.h
23762 # Target-specific assembler checks.
23764 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker -Bstatic/-Bdynamic option" >&5
23765 $as_echo_n "checking linker -Bstatic/-Bdynamic option... " >&6; }
23766 gcc_cv_ld_static_dynamic=no
23767 gcc_cv_ld_static_option='-Bstatic'
23768 gcc_cv_ld_dynamic_option='-Bdynamic'
23769 if test $in_tree_ld = yes ; then
23770 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
23771 gcc_cv_ld_static_dynamic=yes
23773 elif test x$gcc_cv_ld != x; then
23774 # Check if linker supports -Bstatic/-Bdynamic option
23775 if $gcc_cv_ld --help 2>/dev/null | grep -- -Bstatic > /dev/null \
23776 && $gcc_cv_ld --help 2>/dev/null | grep -- -Bdynamic > /dev/null; then
23777 gcc_cv_ld_static_dynamic=yes
23778 else
23779 case "$target" in
23780 # AIX ld uses -b flags
23781 *-*-aix4.[23]* | *-*-aix[5-9]*)
23782 gcc_cv_ld_static_dynamic=yes
23783 gcc_cv_ld_static_option="-bstatic"
23784 gcc_cv_ld_dynamic_option="-bdynamic"
23786 # HP-UX ld uses -a flags to select between shared and archive.
23787 *-*-hpux*)
23788 if test x"$gnu_ld" = xno; then
23789 gcc_cv_ld_static_dynamic=yes
23790 gcc_cv_ld_static_option="-aarchive_shared"
23791 gcc_cv_ld_dynamic_option="-adefault"
23794 # Solaris 2 ld always supports -Bstatic/-Bdynamic.
23795 *-*-solaris2*)
23796 gcc_cv_ld_static_dynamic=yes
23798 esac
23801 if test x"$gcc_cv_ld_static_dynamic" = xyes; then
23803 $as_echo "#define HAVE_LD_STATIC_DYNAMIC 1" >>confdefs.h
23806 cat >>confdefs.h <<_ACEOF
23807 #define LD_STATIC_OPTION "$gcc_cv_ld_static_option"
23808 _ACEOF
23811 cat >>confdefs.h <<_ACEOF
23812 #define LD_DYNAMIC_OPTION "$gcc_cv_ld_dynamic_option"
23813 _ACEOF
23816 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_static_dynamic" >&5
23817 $as_echo "$gcc_cv_ld_static_dynamic" >&6; }
23819 if test x"$demangler_in_ld" = xyes; then
23820 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker --demangle support" >&5
23821 $as_echo_n "checking linker --demangle support... " >&6; }
23822 gcc_cv_ld_demangle=no
23823 if test $in_tree_ld = yes; then
23824 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 \
23825 gcc_cv_ld_demangle=yes
23827 elif test x$gcc_cv_ld != x -a x"$gnu_ld" = xyes; then
23828 # Check if the GNU linker supports --demangle option
23829 if $gcc_cv_ld --help 2>/dev/null | grep no-demangle > /dev/null; then
23830 gcc_cv_ld_demangle=yes
23833 if test x"$gcc_cv_ld_demangle" = xyes; then
23835 $as_echo "#define HAVE_LD_DEMANGLE 1" >>confdefs.h
23838 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_demangle" >&5
23839 $as_echo "$gcc_cv_ld_demangle" >&6; }
23842 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker plugin support" >&5
23843 $as_echo_n "checking linker plugin support... " >&6; }
23844 gcc_cv_lto_plugin=0
23845 if test -f liblto_plugin.la; then
23846 save_ld_ver="$ld_ver"
23847 save_ld_vers_major="$ld_vers_major"
23848 save_ld_vers_minor="$ld_vers_minor"
23849 save_ld_is_gold="$ld_is_gold"
23851 ld_is_gold=no
23853 if test $in_tree_ld = yes -a x"$ORIGINAL_PLUGIN_LD_FOR_TARGET" = x"$gcc_cv_ld"; then
23854 ld_ver="GNU ld"
23855 # FIXME: ld_is_gold?
23856 ld_vers_major="$gcc_cv_gld_major_version"
23857 ld_vers_minor="$gcc_cv_gld_minor_version"
23858 else
23859 # Determine plugin linker version.
23860 # FIXME: Partial duplicate from above, generalize.
23861 ld_ver=`$ORIGINAL_PLUGIN_LD_FOR_TARGET --version 2>/dev/null | sed 1q`
23862 if echo "$ld_ver" | grep GNU > /dev/null; then
23863 if echo "$ld_ver" | grep "GNU gold" > /dev/null; then
23864 ld_is_gold=yes
23865 ld_vers=`echo $ld_ver | sed -n \
23866 -e 's,^[^)]*[ ]\([0-9][0-9]*\.[0-9][0-9]*[^)]*\)) .*$,\1,p'`
23867 else
23868 ld_vers=`echo $ld_ver | sed -n \
23869 -e 's,^.*[ ]\([0-9][0-9]*\.[0-9][0-9]*.*\)$,\1,p'`
23871 ld_vers_major=`expr "$ld_vers" : '\([0-9]*\)'`
23872 ld_vers_minor=`expr "$ld_vers" : '[0-9]*\.\([0-9]*\)'`
23876 # Determine plugin support.
23877 if echo "$ld_ver" | grep GNU > /dev/null; then
23878 # Require GNU ld or gold 2.21+ for plugin support by default.
23879 if test "$ld_vers_major" -eq 2 -a "$ld_vers_minor" -ge 21; then
23880 gcc_cv_lto_plugin=2
23881 # Allow -fuse-linker-plugin to enable plugin support in GNU gold 2.20.
23882 elif test "$ld_is_gold" = yes -a "$ld_vers_major" -eq 2 -a "$ld_vers_minor" -eq 20; then
23883 gcc_cv_lto_plugin=1
23887 ld_ver="$save_ld_ver"
23888 ld_vers_major="$save_ld_vers_major"
23889 ld_vers_minor="$save_ld_vers_minor"
23890 ld_is_gold="$save_ld_is_gold"
23893 cat >>confdefs.h <<_ACEOF
23894 #define HAVE_LTO_PLUGIN $gcc_cv_lto_plugin
23895 _ACEOF
23897 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_lto_plugin" >&5
23898 $as_echo "$gcc_cv_lto_plugin" >&6; }
23900 case "$target" in
23901 # All TARGET_ABI_OSF targets.
23902 alpha*-*-linux* | alpha*-*-*bsd*)
23903 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for explicit relocation support" >&5
23904 $as_echo_n "checking assembler for explicit relocation support... " >&6; }
23905 if test "${gcc_cv_as_alpha_explicit_relocs+set}" = set; then :
23906 $as_echo_n "(cached) " >&6
23907 else
23908 gcc_cv_as_alpha_explicit_relocs=no
23909 if test $in_tree_gas = yes; then
23910 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 12 \) \* 1000 + 0`
23911 then gcc_cv_as_alpha_explicit_relocs=yes
23913 elif test x$gcc_cv_as != x; then
23914 $as_echo ' .set nomacro
23915 .text
23916 extbl $3, $2, $3 !lituse_bytoff!1
23917 ldq $2, a($29) !literal!1
23918 ldq $4, b($29) !literal!2
23919 ldq_u $3, 0($2) !lituse_base!1
23920 ldq $27, f($29) !literal!5
23921 jsr $26, ($27), f !lituse_jsr!5
23922 ldah $29, 0($26) !gpdisp!3
23923 lda $0, c($29) !gprel
23924 ldah $1, d($29) !gprelhigh
23925 lda $1, d($1) !gprellow
23926 lda $29, 0($29) !gpdisp!3' > conftest.s
23927 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
23928 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
23929 (eval $ac_try) 2>&5
23930 ac_status=$?
23931 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
23932 test $ac_status = 0; }; }
23933 then
23934 gcc_cv_as_alpha_explicit_relocs=yes
23935 else
23936 echo "configure: failed program was" >&5
23937 cat conftest.s >&5
23939 rm -f conftest.o conftest.s
23942 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_alpha_explicit_relocs" >&5
23943 $as_echo "$gcc_cv_as_alpha_explicit_relocs" >&6; }
23944 if test $gcc_cv_as_alpha_explicit_relocs = yes; then
23946 $as_echo "#define HAVE_AS_EXPLICIT_RELOCS 1" >>confdefs.h
23949 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for jsrdirect relocation support" >&5
23950 $as_echo_n "checking assembler for jsrdirect relocation support... " >&6; }
23951 if test "${gcc_cv_as_alpha_jsrdirect_relocs+set}" = set; then :
23952 $as_echo_n "(cached) " >&6
23953 else
23954 gcc_cv_as_alpha_jsrdirect_relocs=no
23955 if test $in_tree_gas = yes; then
23956 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 16 \) \* 1000 + 90`
23957 then gcc_cv_as_alpha_jsrdirect_relocs=yes
23959 elif test x$gcc_cv_as != x; then
23960 $as_echo ' .set nomacro
23961 .text
23962 ldq $27, a($29) !literal!1
23963 jsr $26, ($27), a !lituse_jsrdirect!1' > conftest.s
23964 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
23965 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
23966 (eval $ac_try) 2>&5
23967 ac_status=$?
23968 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
23969 test $ac_status = 0; }; }
23970 then
23971 gcc_cv_as_alpha_jsrdirect_relocs=yes
23972 else
23973 echo "configure: failed program was" >&5
23974 cat conftest.s >&5
23976 rm -f conftest.o conftest.s
23979 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_alpha_jsrdirect_relocs" >&5
23980 $as_echo "$gcc_cv_as_alpha_jsrdirect_relocs" >&6; }
23981 if test $gcc_cv_as_alpha_jsrdirect_relocs = yes; then
23983 $as_echo "#define HAVE_AS_JSRDIRECT_RELOCS 1" >>confdefs.h
23988 cris-*-*)
23989 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for -no-mul-bug-abort option" >&5
23990 $as_echo_n "checking assembler for -no-mul-bug-abort option... " >&6; }
23991 if test "${gcc_cv_as_cris_no_mul_bug+set}" = set; then :
23992 $as_echo_n "(cached) " >&6
23993 else
23994 gcc_cv_as_cris_no_mul_bug=no
23995 if test $in_tree_gas = yes; then
23996 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 15 \) \* 1000 + 91`
23997 then gcc_cv_as_cris_no_mul_bug=yes
23999 elif test x$gcc_cv_as != x; then
24000 $as_echo '.text' > conftest.s
24001 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -no-mul-bug-abort -o conftest.o conftest.s >&5'
24002 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
24003 (eval $ac_try) 2>&5
24004 ac_status=$?
24005 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24006 test $ac_status = 0; }; }
24007 then
24008 gcc_cv_as_cris_no_mul_bug=yes
24009 else
24010 echo "configure: failed program was" >&5
24011 cat conftest.s >&5
24013 rm -f conftest.o conftest.s
24016 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_cris_no_mul_bug" >&5
24017 $as_echo "$gcc_cv_as_cris_no_mul_bug" >&6; }
24018 if test $gcc_cv_as_cris_no_mul_bug = yes; then
24020 $as_echo "#define HAVE_AS_NO_MUL_BUG_ABORT_OPTION 1" >>confdefs.h
24025 sparc*-*-*)
24026 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .register" >&5
24027 $as_echo_n "checking assembler for .register... " >&6; }
24028 if test "${gcc_cv_as_sparc_register_op+set}" = set; then :
24029 $as_echo_n "(cached) " >&6
24030 else
24031 gcc_cv_as_sparc_register_op=no
24032 if test x$gcc_cv_as != x; then
24033 $as_echo '.register %g2, #scratch' > conftest.s
24034 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
24035 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
24036 (eval $ac_try) 2>&5
24037 ac_status=$?
24038 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24039 test $ac_status = 0; }; }
24040 then
24041 gcc_cv_as_sparc_register_op=yes
24042 else
24043 echo "configure: failed program was" >&5
24044 cat conftest.s >&5
24046 rm -f conftest.o conftest.s
24049 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_sparc_register_op" >&5
24050 $as_echo "$gcc_cv_as_sparc_register_op" >&6; }
24051 if test $gcc_cv_as_sparc_register_op = yes; then
24053 $as_echo "#define HAVE_AS_REGISTER_PSEUDO_OP 1" >>confdefs.h
24057 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for #nobits" >&5
24058 $as_echo_n "checking assembler for #nobits... " >&6; }
24059 if test "${gcc_cv_as_sparc_nobits+set}" = set; then :
24060 $as_echo_n "(cached) " >&6
24061 else
24062 gcc_cv_as_sparc_nobits=no
24063 if test x$gcc_cv_as != x; then
24064 $as_echo '.section "nobits",#alloc,#write,#nobits
24065 .section "progbits",#alloc,#write,#progbits' > conftest.s
24066 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
24067 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
24068 (eval $ac_try) 2>&5
24069 ac_status=$?
24070 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24071 test $ac_status = 0; }; }
24072 then
24073 gcc_cv_as_sparc_nobits=yes
24074 else
24075 echo "configure: failed program was" >&5
24076 cat conftest.s >&5
24078 rm -f conftest.o conftest.s
24081 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_sparc_nobits" >&5
24082 $as_echo "$gcc_cv_as_sparc_nobits" >&6; }
24085 cat >>confdefs.h <<_ACEOF
24086 #define HAVE_AS_SPARC_NOBITS `if test $gcc_cv_as_sparc_nobits = yes; then echo 1; else echo 0; fi`
24087 _ACEOF
24090 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for -relax option" >&5
24091 $as_echo_n "checking assembler for -relax option... " >&6; }
24092 if test "${gcc_cv_as_sparc_relax+set}" = set; then :
24093 $as_echo_n "(cached) " >&6
24094 else
24095 gcc_cv_as_sparc_relax=no
24096 if test x$gcc_cv_as != x; then
24097 $as_echo '.text' > conftest.s
24098 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -relax -o conftest.o conftest.s >&5'
24099 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
24100 (eval $ac_try) 2>&5
24101 ac_status=$?
24102 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24103 test $ac_status = 0; }; }
24104 then
24105 gcc_cv_as_sparc_relax=yes
24106 else
24107 echo "configure: failed program was" >&5
24108 cat conftest.s >&5
24110 rm -f conftest.o conftest.s
24113 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_sparc_relax" >&5
24114 $as_echo "$gcc_cv_as_sparc_relax" >&6; }
24115 if test $gcc_cv_as_sparc_relax = yes; then
24117 $as_echo "#define HAVE_AS_RELAX_OPTION 1" >>confdefs.h
24121 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for GOTDATA_OP relocs" >&5
24122 $as_echo_n "checking assembler for GOTDATA_OP relocs... " >&6; }
24123 if test "${gcc_cv_as_sparc_gotdata_op+set}" = set; then :
24124 $as_echo_n "(cached) " >&6
24125 else
24126 gcc_cv_as_sparc_gotdata_op=no
24127 if test x$gcc_cv_as != x; then
24128 $as_echo '.text
24129 .align 4
24130 foo:
24132 bar:
24133 sethi %gdop_hix22(foo), %g1
24134 xor %g1, %gdop_lox10(foo), %g1
24135 ld [%l7 + %g1], %g2, %gdop(foo)' > conftest.s
24136 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -K PIC -o conftest.o conftest.s >&5'
24137 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
24138 (eval $ac_try) 2>&5
24139 ac_status=$?
24140 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24141 test $ac_status = 0; }; }
24142 then
24143 if test x$gcc_cv_ld != x \
24144 && $gcc_cv_ld -o conftest conftest.o -G > /dev/null 2>&1; then
24145 if test x$gcc_cv_objdump != x; then
24146 if $gcc_cv_objdump -s -j .text conftest 2> /dev/null \
24147 | grep ' 03000004 82186004 c405c001'> /dev/null 2>&1; then
24148 gcc_cv_as_sparc_gotdata_op=no
24149 else
24150 gcc_cv_as_sparc_gotdata_op=yes
24154 rm -f conftest
24155 else
24156 echo "configure: failed program was" >&5
24157 cat conftest.s >&5
24159 rm -f conftest.o conftest.s
24162 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_sparc_gotdata_op" >&5
24163 $as_echo "$gcc_cv_as_sparc_gotdata_op" >&6; }
24164 if test $gcc_cv_as_sparc_gotdata_op = yes; then
24166 $as_echo "#define HAVE_AS_SPARC_GOTDATA_OP 1" >>confdefs.h
24170 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for unaligned pcrel relocs" >&5
24171 $as_echo_n "checking assembler for unaligned pcrel relocs... " >&6; }
24172 if test "${gcc_cv_as_sparc_ua_pcrel+set}" = set; then :
24173 $as_echo_n "(cached) " >&6
24174 else
24175 gcc_cv_as_sparc_ua_pcrel=no
24176 if test x$gcc_cv_as != x; then
24177 $as_echo '.text
24178 foo:
24180 .data
24181 .align 4
24182 .byte 0
24183 .uaword %r_disp32(foo)' > conftest.s
24184 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -K PIC -o conftest.o conftest.s >&5'
24185 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
24186 (eval $ac_try) 2>&5
24187 ac_status=$?
24188 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24189 test $ac_status = 0; }; }
24190 then
24191 if test x$gcc_cv_ld != x \
24192 && $gcc_cv_ld -o conftest conftest.o -G > /dev/null 2>&1; then
24193 gcc_cv_as_sparc_ua_pcrel=yes
24195 rm -f conftest
24196 else
24197 echo "configure: failed program was" >&5
24198 cat conftest.s >&5
24200 rm -f conftest.o conftest.s
24203 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_sparc_ua_pcrel" >&5
24204 $as_echo "$gcc_cv_as_sparc_ua_pcrel" >&6; }
24205 if test $gcc_cv_as_sparc_ua_pcrel = yes; then
24207 $as_echo "#define HAVE_AS_SPARC_UA_PCREL 1" >>confdefs.h
24210 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for unaligned pcrel relocs against hidden symbols" >&5
24211 $as_echo_n "checking assembler for unaligned pcrel relocs against hidden symbols... " >&6; }
24212 if test "${gcc_cv_as_sparc_ua_pcrel_hidden+set}" = set; then :
24213 $as_echo_n "(cached) " >&6
24214 else
24215 gcc_cv_as_sparc_ua_pcrel_hidden=no
24216 if test x$gcc_cv_as != x; then
24217 $as_echo '.data
24218 .align 4
24219 .byte 0x31
24220 .uaword %r_disp32(foo)
24221 .byte 0x32, 0x33, 0x34
24222 .global foo
24223 .hidden foo
24224 foo:
24225 .skip 4' > conftest.s
24226 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -K PIC -o conftest.o conftest.s >&5'
24227 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
24228 (eval $ac_try) 2>&5
24229 ac_status=$?
24230 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24231 test $ac_status = 0; }; }
24232 then
24233 if test x$gcc_cv_ld != x && test x$gcc_cv_objdump != x \
24234 && $gcc_cv_ld -o conftest conftest.o -G > /dev/null 2>&1 \
24235 && $gcc_cv_objdump -s -j .data conftest 2> /dev/null \
24236 | grep ' 31000000 07323334' > /dev/null 2>&1; then
24237 if $gcc_cv_objdump -R conftest 2> /dev/null \
24238 | grep 'DISP32' > /dev/null 2>&1; then
24240 else
24241 gcc_cv_as_sparc_ua_pcrel_hidden=yes
24244 rm -f conftest
24245 else
24246 echo "configure: failed program was" >&5
24247 cat conftest.s >&5
24249 rm -f conftest.o conftest.s
24252 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_sparc_ua_pcrel_hidden" >&5
24253 $as_echo "$gcc_cv_as_sparc_ua_pcrel_hidden" >&6; }
24254 if test $gcc_cv_as_sparc_ua_pcrel_hidden = yes; then
24256 $as_echo "#define HAVE_AS_SPARC_UA_PCREL_HIDDEN 1" >>confdefs.h
24260 fi # unaligned pcrel relocs
24262 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for offsetable %lo()" >&5
24263 $as_echo_n "checking assembler for offsetable %lo()... " >&6; }
24264 if test "${gcc_cv_as_sparc_offsetable_lo10+set}" = set; then :
24265 $as_echo_n "(cached) " >&6
24266 else
24267 gcc_cv_as_sparc_offsetable_lo10=no
24268 if test x$gcc_cv_as != x; then
24269 $as_echo '.text
24270 or %g1, %lo(ab) + 12, %g1
24271 or %g1, %lo(ab + 12), %g1' > conftest.s
24272 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -xarch=v9 -o conftest.o conftest.s >&5'
24273 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
24274 (eval $ac_try) 2>&5
24275 ac_status=$?
24276 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24277 test $ac_status = 0; }; }
24278 then
24279 if test x$gcc_cv_objdump != x \
24280 && $gcc_cv_objdump -s -j .text conftest.o 2> /dev/null \
24281 | grep ' 82106000 82106000' > /dev/null 2>&1; then
24282 gcc_cv_as_sparc_offsetable_lo10=yes
24284 else
24285 echo "configure: failed program was" >&5
24286 cat conftest.s >&5
24288 rm -f conftest.o conftest.s
24291 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_sparc_offsetable_lo10" >&5
24292 $as_echo "$gcc_cv_as_sparc_offsetable_lo10" >&6; }
24293 if test $gcc_cv_as_sparc_offsetable_lo10 = yes; then
24295 $as_echo "#define HAVE_AS_OFFSETABLE_LO10 1" >>confdefs.h
24299 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for FMAF, HPC, and VIS 3.0 instructions" >&5
24300 $as_echo_n "checking assembler for FMAF, HPC, and VIS 3.0 instructions... " >&6; }
24301 if test "${gcc_cv_as_sparc_fmaf+set}" = set; then :
24302 $as_echo_n "(cached) " >&6
24303 else
24304 gcc_cv_as_sparc_fmaf=no
24305 if test x$gcc_cv_as != x; then
24306 $as_echo '.text
24307 .register %g2, #scratch
24308 .register %g3, #scratch
24309 .align 4
24310 fmaddd %f0, %f2, %f4, %f6
24311 addxccc %g1, %g2, %g3
24312 fsrl32 %f2, %f4, %f8
24313 fnaddd %f10, %f12, %f14' > conftest.s
24314 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -xarch=v9d -o conftest.o conftest.s >&5'
24315 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
24316 (eval $ac_try) 2>&5
24317 ac_status=$?
24318 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24319 test $ac_status = 0; }; }
24320 then
24321 gcc_cv_as_sparc_fmaf=yes
24322 else
24323 echo "configure: failed program was" >&5
24324 cat conftest.s >&5
24326 rm -f conftest.o conftest.s
24329 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_sparc_fmaf" >&5
24330 $as_echo "$gcc_cv_as_sparc_fmaf" >&6; }
24331 if test $gcc_cv_as_sparc_fmaf = yes; then
24333 $as_echo "#define HAVE_AS_FMAF_HPC_VIS3 1" >>confdefs.h
24337 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for SPARC4 instructions" >&5
24338 $as_echo_n "checking assembler for SPARC4 instructions... " >&6; }
24339 if test "${gcc_cv_as_sparc_sparc4+set}" = set; then :
24340 $as_echo_n "(cached) " >&6
24341 else
24342 gcc_cv_as_sparc_sparc4=no
24343 if test x$gcc_cv_as != x; then
24344 $as_echo '.text
24345 .register %g2, #scratch
24346 .register %g3, #scratch
24347 .align 4
24348 cxbe %g2, %g3, 1f
24349 1: cwbneg %g2, %g3, 1f
24350 1: sha1
24352 aes_kexpand0 %f4, %f6, %f8
24353 des_round %f38, %f40, %f42, %f44
24354 camellia_f %f54, %f56, %f58, %f60
24355 kasumi_fi_xor %f46, %f48, %f50, %f52' > conftest.s
24356 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -xarch=sparc4 -o conftest.o conftest.s >&5'
24357 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
24358 (eval $ac_try) 2>&5
24359 ac_status=$?
24360 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24361 test $ac_status = 0; }; }
24362 then
24363 gcc_cv_as_sparc_sparc4=yes
24364 else
24365 echo "configure: failed program was" >&5
24366 cat conftest.s >&5
24368 rm -f conftest.o conftest.s
24371 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_sparc_sparc4" >&5
24372 $as_echo "$gcc_cv_as_sparc_sparc4" >&6; }
24373 if test $gcc_cv_as_sparc_sparc4 = yes; then
24375 $as_echo "#define HAVE_AS_SPARC4 1" >>confdefs.h
24379 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for LEON instructions" >&5
24380 $as_echo_n "checking assembler for LEON instructions... " >&6; }
24381 if test "${gcc_cv_as_sparc_leon+set}" = set; then :
24382 $as_echo_n "(cached) " >&6
24383 else
24384 gcc_cv_as_sparc_leon=no
24385 if test x$gcc_cv_as != x; then
24386 $as_echo '.text
24387 .register %g2, #scratch
24388 .register %g3, #scratch
24389 .align 4
24390 smac %g2, %g3, %g1
24391 umac %g2, %g3, %g1
24392 cas [%g2], %g3, %g1' > conftest.s
24393 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -Aleon -o conftest.o conftest.s >&5'
24394 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
24395 (eval $ac_try) 2>&5
24396 ac_status=$?
24397 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24398 test $ac_status = 0; }; }
24399 then
24400 gcc_cv_as_sparc_leon=yes
24401 else
24402 echo "configure: failed program was" >&5
24403 cat conftest.s >&5
24405 rm -f conftest.o conftest.s
24408 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_sparc_leon" >&5
24409 $as_echo "$gcc_cv_as_sparc_leon" >&6; }
24410 if test $gcc_cv_as_sparc_leon = yes; then
24412 $as_echo "#define HAVE_AS_LEON 1" >>confdefs.h
24417 i[34567]86-*-* | x86_64-*-*)
24418 case $target_os in
24419 cygwin*)
24420 # Full C++ conformance when using a shared libstdc++-v3 requires some
24421 # support from the Cygwin DLL, which in more recent versions exports
24422 # wrappers to aid in interposing and redirecting operators new, delete,
24423 # etc., as per n2800 #17.6.4.6 [replacement.functions]. Check if we
24424 # are configuring for a version of Cygwin that exports the wrappers.
24425 if test x$host = x$target && test x$host_cpu = xi686; then
24426 ac_fn_c_check_func "$LINENO" "__wrap__Znaj" "ac_cv_func___wrap__Znaj"
24427 if test "x$ac_cv_func___wrap__Znaj" = x""yes; then :
24428 gcc_ac_cygwin_dll_wrappers=yes
24429 else
24430 gcc_ac_cygwin_dll_wrappers=no
24433 else
24434 # Can't check presence of libc functions during cross-compile, so
24435 # we just have to assume we're building for an up-to-date target.
24436 gcc_ac_cygwin_dll_wrappers=yes
24439 cat >>confdefs.h <<_ACEOF
24440 #define USE_CYGWIN_LIBSTDCXX_WRAPPERS `if test $gcc_ac_cygwin_dll_wrappers = yes; then echo 1; else echo 0; fi`
24441 _ACEOF
24443 esac
24444 case $target_os in
24445 cygwin* | pe | mingw32* | interix*)
24446 # Recent binutils allows the three-operand form of ".comm" on PE. This
24447 # definition is used unconditionally to initialise the default state of
24448 # the target option variable that governs usage of the feature.
24449 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .comm with alignment" >&5
24450 $as_echo_n "checking assembler for .comm with alignment... " >&6; }
24451 if test "${gcc_cv_as_comm_has_align+set}" = set; then :
24452 $as_echo_n "(cached) " >&6
24453 else
24454 gcc_cv_as_comm_has_align=no
24455 if test $in_tree_gas = yes; then
24456 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 19 \) \* 1000 + 52`
24457 then gcc_cv_as_comm_has_align=yes
24459 elif test x$gcc_cv_as != x; then
24460 $as_echo '.comm foo,1,32' > conftest.s
24461 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
24462 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
24463 (eval $ac_try) 2>&5
24464 ac_status=$?
24465 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24466 test $ac_status = 0; }; }
24467 then
24468 gcc_cv_as_comm_has_align=yes
24469 else
24470 echo "configure: failed program was" >&5
24471 cat conftest.s >&5
24473 rm -f conftest.o conftest.s
24476 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_comm_has_align" >&5
24477 $as_echo "$gcc_cv_as_comm_has_align" >&6; }
24480 cat >>confdefs.h <<_ACEOF
24481 #define HAVE_GAS_ALIGNED_COMM `if test $gcc_cv_as_comm_has_align = yes; then echo 1; else echo 0; fi`
24482 _ACEOF
24484 # Used for DWARF 2 in PE
24485 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .secrel32 relocs" >&5
24486 $as_echo_n "checking assembler for .secrel32 relocs... " >&6; }
24487 if test "${gcc_cv_as_ix86_pe_secrel32+set}" = set; then :
24488 $as_echo_n "(cached) " >&6
24489 else
24490 gcc_cv_as_ix86_pe_secrel32=no
24491 if test $in_tree_gas = yes; then
24492 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 15 \) \* 1000 + 91`
24493 then gcc_cv_as_ix86_pe_secrel32=yes
24495 elif test x$gcc_cv_as != x; then
24496 $as_echo '.text
24497 foo: nop
24498 .data
24499 .secrel32 foo' > conftest.s
24500 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
24501 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
24502 (eval $ac_try) 2>&5
24503 ac_status=$?
24504 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24505 test $ac_status = 0; }; }
24506 then
24507 if test x$gcc_cv_ld != x \
24508 && $gcc_cv_ld -o conftest conftest.o > /dev/null 2>&1; then
24509 gcc_cv_as_ix86_pe_secrel32=yes
24511 rm -f conftest
24512 else
24513 echo "configure: failed program was" >&5
24514 cat conftest.s >&5
24516 rm -f conftest.o conftest.s
24519 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_ix86_pe_secrel32" >&5
24520 $as_echo "$gcc_cv_as_ix86_pe_secrel32" >&6; }
24521 if test $gcc_cv_as_ix86_pe_secrel32 = yes; then
24523 $as_echo "#define HAVE_GAS_PE_SECREL32_RELOC 1" >>confdefs.h
24526 # Test if the assembler supports the extended form of the .section
24527 # directive that specifies section alignment. LTO support uses this,
24528 # but normally only after installation, so we warn but don't fail the
24529 # configure if LTO is enabled but the assembler does not support it.
24530 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .section with alignment" >&5
24531 $as_echo_n "checking assembler for .section with alignment... " >&6; }
24532 if test "${gcc_cv_as_section_has_align+set}" = set; then :
24533 $as_echo_n "(cached) " >&6
24534 else
24535 gcc_cv_as_section_has_align=no
24536 if test $in_tree_gas = yes; then
24537 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 20 \) \* 1000 + 1`
24538 then gcc_cv_as_section_has_align=yes
24540 elif test x$gcc_cv_as != x; then
24541 $as_echo '.section lto_test,"dr0"' > conftest.s
24542 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -fatal-warnings -o conftest.o conftest.s >&5'
24543 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
24544 (eval $ac_try) 2>&5
24545 ac_status=$?
24546 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24547 test $ac_status = 0; }; }
24548 then
24549 gcc_cv_as_section_has_align=yes
24550 else
24551 echo "configure: failed program was" >&5
24552 cat conftest.s >&5
24554 rm -f conftest.o conftest.s
24557 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_section_has_align" >&5
24558 $as_echo "$gcc_cv_as_section_has_align" >&6; }
24560 if test x$gcc_cv_as_section_has_align != xyes; then
24561 case ",$enable_languages," in
24562 *,lto,*)
24563 { $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
24564 $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;}
24566 esac
24568 # Test if the assembler supports the section flag 'e' for specifying
24569 # an excluded section.
24570 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .section with e" >&5
24571 $as_echo_n "checking assembler for .section with e... " >&6; }
24572 if test "${gcc_cv_as_section_has_e+set}" = set; then :
24573 $as_echo_n "(cached) " >&6
24574 else
24575 gcc_cv_as_section_has_e=no
24576 if test $in_tree_gas = yes; then
24577 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 22 \) \* 1000 + 51`
24578 then gcc_cv_as_section_has_e=yes
24580 elif test x$gcc_cv_as != x; then
24581 $as_echo '.section foo1,"e"
24582 .byte 0,0,0,0' > conftest.s
24583 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
24584 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
24585 (eval $ac_try) 2>&5
24586 ac_status=$?
24587 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24588 test $ac_status = 0; }; }
24589 then
24590 gcc_cv_as_section_has_e=yes
24591 else
24592 echo "configure: failed program was" >&5
24593 cat conftest.s >&5
24595 rm -f conftest.o conftest.s
24598 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_section_has_e" >&5
24599 $as_echo "$gcc_cv_as_section_has_e" >&6; }
24602 cat >>confdefs.h <<_ACEOF
24603 #define HAVE_GAS_SECTION_EXCLUDE `if test $gcc_cv_as_section_has_e = yes; then echo 1; else echo 0; fi`
24604 _ACEOF
24607 esac
24609 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for filds and fists mnemonics" >&5
24610 $as_echo_n "checking assembler for filds and fists mnemonics... " >&6; }
24611 if test "${gcc_cv_as_ix86_filds+set}" = set; then :
24612 $as_echo_n "(cached) " >&6
24613 else
24614 gcc_cv_as_ix86_filds=no
24615 if test x$gcc_cv_as != x; then
24616 $as_echo 'filds mem; fists mem' > 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_filds=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_filds" >&5
24633 $as_echo "$gcc_cv_as_ix86_filds" >&6; }
24634 if test $gcc_cv_as_ix86_filds = yes; then
24636 $as_echo "#define HAVE_AS_IX86_FILDS 1" >>confdefs.h
24640 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for fildq and fistpq mnemonics" >&5
24641 $as_echo_n "checking assembler for fildq and fistpq mnemonics... " >&6; }
24642 if test "${gcc_cv_as_ix86_fildq+set}" = set; then :
24643 $as_echo_n "(cached) " >&6
24644 else
24645 gcc_cv_as_ix86_fildq=no
24646 if test x$gcc_cv_as != x; then
24647 $as_echo 'fildq mem; fistpq mem' > 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_fildq=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_fildq" >&5
24664 $as_echo "$gcc_cv_as_ix86_fildq" >&6; }
24665 if test $gcc_cv_as_ix86_fildq = yes; then
24667 $as_echo "#define HAVE_AS_IX86_FILDQ 1" >>confdefs.h
24671 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for cmov syntax" >&5
24672 $as_echo_n "checking assembler for cmov syntax... " >&6; }
24673 if test "${gcc_cv_as_ix86_cmov_sun_syntax+set}" = set; then :
24674 $as_echo_n "(cached) " >&6
24675 else
24676 gcc_cv_as_ix86_cmov_sun_syntax=no
24677 if test x$gcc_cv_as != x; then
24678 $as_echo 'cmovl.l %edx, %eax' > conftest.s
24679 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
24680 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
24681 (eval $ac_try) 2>&5
24682 ac_status=$?
24683 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24684 test $ac_status = 0; }; }
24685 then
24686 gcc_cv_as_ix86_cmov_sun_syntax=yes
24687 else
24688 echo "configure: failed program was" >&5
24689 cat conftest.s >&5
24691 rm -f conftest.o conftest.s
24694 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_ix86_cmov_sun_syntax" >&5
24695 $as_echo "$gcc_cv_as_ix86_cmov_sun_syntax" >&6; }
24696 if test $gcc_cv_as_ix86_cmov_sun_syntax = yes; then
24698 $as_echo "#define HAVE_AS_IX86_CMOV_SUN_SYNTAX 1" >>confdefs.h
24702 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for ffreep mnemonic" >&5
24703 $as_echo_n "checking assembler for ffreep mnemonic... " >&6; }
24704 if test "${gcc_cv_as_ix86_ffreep+set}" = set; then :
24705 $as_echo_n "(cached) " >&6
24706 else
24707 gcc_cv_as_ix86_ffreep=no
24708 if test x$gcc_cv_as != x; then
24709 $as_echo 'ffreep %st(1)' > conftest.s
24710 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
24711 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
24712 (eval $ac_try) 2>&5
24713 ac_status=$?
24714 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24715 test $ac_status = 0; }; }
24716 then
24717 gcc_cv_as_ix86_ffreep=yes
24718 else
24719 echo "configure: failed program was" >&5
24720 cat conftest.s >&5
24722 rm -f conftest.o conftest.s
24725 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_ix86_ffreep" >&5
24726 $as_echo "$gcc_cv_as_ix86_ffreep" >&6; }
24727 if test $gcc_cv_as_ix86_ffreep = yes; then
24729 $as_echo "#define HAVE_AS_IX86_FFREEP 1" >>confdefs.h
24733 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .quad directive" >&5
24734 $as_echo_n "checking assembler for .quad directive... " >&6; }
24735 if test "${gcc_cv_as_ix86_quad+set}" = set; then :
24736 $as_echo_n "(cached) " >&6
24737 else
24738 gcc_cv_as_ix86_quad=no
24739 if test x$gcc_cv_as != x; then
24740 $as_echo '.quad 0' > conftest.s
24741 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
24742 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
24743 (eval $ac_try) 2>&5
24744 ac_status=$?
24745 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24746 test $ac_status = 0; }; }
24747 then
24748 gcc_cv_as_ix86_quad=yes
24749 else
24750 echo "configure: failed program was" >&5
24751 cat conftest.s >&5
24753 rm -f conftest.o conftest.s
24756 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_ix86_quad" >&5
24757 $as_echo "$gcc_cv_as_ix86_quad" >&6; }
24758 if test $gcc_cv_as_ix86_quad = yes; then
24760 $as_echo "#define HAVE_AS_IX86_QUAD 1" >>confdefs.h
24764 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for sahf mnemonic" >&5
24765 $as_echo_n "checking assembler for sahf mnemonic... " >&6; }
24766 if test "${gcc_cv_as_ix86_sahf+set}" = set; then :
24767 $as_echo_n "(cached) " >&6
24768 else
24769 gcc_cv_as_ix86_sahf=no
24770 if test x$gcc_cv_as != x; then
24771 $as_echo '.code64
24772 sahf' > conftest.s
24773 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
24774 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
24775 (eval $ac_try) 2>&5
24776 ac_status=$?
24777 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24778 test $ac_status = 0; }; }
24779 then
24780 gcc_cv_as_ix86_sahf=yes
24781 else
24782 echo "configure: failed program was" >&5
24783 cat conftest.s >&5
24785 rm -f conftest.o conftest.s
24788 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_ix86_sahf" >&5
24789 $as_echo "$gcc_cv_as_ix86_sahf" >&6; }
24790 if test $gcc_cv_as_ix86_sahf = yes; then
24792 $as_echo "#define HAVE_AS_IX86_SAHF 1" >>confdefs.h
24796 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for interunit movq mnemonic" >&5
24797 $as_echo_n "checking assembler for interunit movq mnemonic... " >&6; }
24798 if test "${gcc_cv_as_ix86_interunit_movq+set}" = set; then :
24799 $as_echo_n "(cached) " >&6
24800 else
24801 gcc_cv_as_ix86_interunit_movq=no
24802 if test x$gcc_cv_as != x; then
24803 $as_echo '.code64
24804 movq %mm0, %rax
24805 movq %rax, %xmm0' > conftest.s
24806 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
24807 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
24808 (eval $ac_try) 2>&5
24809 ac_status=$?
24810 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24811 test $ac_status = 0; }; }
24812 then
24813 gcc_cv_as_ix86_interunit_movq=yes
24814 else
24815 echo "configure: failed program was" >&5
24816 cat conftest.s >&5
24818 rm -f conftest.o conftest.s
24821 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_ix86_interunit_movq" >&5
24822 $as_echo "$gcc_cv_as_ix86_interunit_movq" >&6; }
24823 if test $gcc_cv_as_ix86_interunit_movq = yes; then
24825 $as_echo "#define HAVE_AS_IX86_INTERUNIT_MOVQ 1" >>confdefs.h
24829 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for hle prefixes" >&5
24830 $as_echo_n "checking assembler for hle prefixes... " >&6; }
24831 if test "${gcc_cv_as_ix86_hle+set}" = set; then :
24832 $as_echo_n "(cached) " >&6
24833 else
24834 gcc_cv_as_ix86_hle=no
24835 if test x$gcc_cv_as != x; then
24836 $as_echo 'lock xacquire cmpxchg %esi, (%ecx)' > conftest.s
24837 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
24838 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
24839 (eval $ac_try) 2>&5
24840 ac_status=$?
24841 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24842 test $ac_status = 0; }; }
24843 then
24844 gcc_cv_as_ix86_hle=yes
24845 else
24846 echo "configure: failed program was" >&5
24847 cat conftest.s >&5
24849 rm -f conftest.o conftest.s
24852 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_ix86_hle" >&5
24853 $as_echo "$gcc_cv_as_ix86_hle" >&6; }
24854 if test $gcc_cv_as_ix86_hle = yes; then
24856 $as_echo "#define HAVE_AS_IX86_HLE 1" >>confdefs.h
24860 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for swap suffix" >&5
24861 $as_echo_n "checking assembler for swap suffix... " >&6; }
24862 if test "${gcc_cv_as_ix86_swap+set}" = set; then :
24863 $as_echo_n "(cached) " >&6
24864 else
24865 gcc_cv_as_ix86_swap=no
24866 if test x$gcc_cv_as != x; then
24867 $as_echo 'movl.s %esp, %ebp' > conftest.s
24868 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
24869 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
24870 (eval $ac_try) 2>&5
24871 ac_status=$?
24872 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24873 test $ac_status = 0; }; }
24874 then
24875 gcc_cv_as_ix86_swap=yes
24876 else
24877 echo "configure: failed program was" >&5
24878 cat conftest.s >&5
24880 rm -f conftest.o conftest.s
24883 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_ix86_swap" >&5
24884 $as_echo "$gcc_cv_as_ix86_swap" >&6; }
24885 if test $gcc_cv_as_ix86_swap = yes; then
24887 $as_echo "#define HAVE_AS_IX86_SWAP 1" >>confdefs.h
24891 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for different section symbol subtraction" >&5
24892 $as_echo_n "checking assembler for different section symbol subtraction... " >&6; }
24893 if test "${gcc_cv_as_ix86_diff_sect_delta+set}" = set; then :
24894 $as_echo_n "(cached) " >&6
24895 else
24896 gcc_cv_as_ix86_diff_sect_delta=no
24897 if test x$gcc_cv_as != x; then
24898 $as_echo '.section .rodata
24899 .L1:
24900 .long .L2-.L1
24901 .long .L3-.L1
24902 .text
24903 .L3: nop
24904 .L2: nop' > conftest.s
24905 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
24906 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
24907 (eval $ac_try) 2>&5
24908 ac_status=$?
24909 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24910 test $ac_status = 0; }; }
24911 then
24912 gcc_cv_as_ix86_diff_sect_delta=yes
24913 else
24914 echo "configure: failed program was" >&5
24915 cat conftest.s >&5
24917 rm -f conftest.o conftest.s
24920 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_ix86_diff_sect_delta" >&5
24921 $as_echo "$gcc_cv_as_ix86_diff_sect_delta" >&6; }
24922 if test $gcc_cv_as_ix86_diff_sect_delta = yes; then
24924 $as_echo "#define HAVE_AS_IX86_DIFF_SECT_DELTA 1" >>confdefs.h
24928 # These two are used unconditionally by i386.[ch]; it is to be defined
24929 # to 1 if the feature is present, 0 otherwise.
24930 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for GOTOFF in data" >&5
24931 $as_echo_n "checking assembler for GOTOFF in data... " >&6; }
24932 if test "${gcc_cv_as_ix86_gotoff_in_data+set}" = set; then :
24933 $as_echo_n "(cached) " >&6
24934 else
24935 gcc_cv_as_ix86_gotoff_in_data=no
24936 if test $in_tree_gas = yes; then
24937 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 11 \) \* 1000 + 0`
24938 then gcc_cv_as_ix86_gotoff_in_data=yes
24940 elif test x$gcc_cv_as != x; then
24941 $as_echo ' .text
24942 .L0:
24944 .data
24945 .long .L0@GOTOFF' > conftest.s
24946 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
24947 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
24948 (eval $ac_try) 2>&5
24949 ac_status=$?
24950 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24951 test $ac_status = 0; }; }
24952 then
24953 gcc_cv_as_ix86_gotoff_in_data=yes
24954 else
24955 echo "configure: failed program was" >&5
24956 cat conftest.s >&5
24958 rm -f conftest.o conftest.s
24961 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_ix86_gotoff_in_data" >&5
24962 $as_echo "$gcc_cv_as_ix86_gotoff_in_data" >&6; }
24965 cat >>confdefs.h <<_ACEOF
24966 #define HAVE_AS_GOTOFF_IN_DATA `if test $gcc_cv_as_ix86_gotoff_in_data = yes; then echo 1; else echo 0; fi`
24967 _ACEOF
24970 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for rep and lock prefix" >&5
24971 $as_echo_n "checking assembler for rep and lock prefix... " >&6; }
24972 if test "${gcc_cv_as_ix86_rep_lock_prefix+set}" = set; then :
24973 $as_echo_n "(cached) " >&6
24974 else
24975 gcc_cv_as_ix86_rep_lock_prefix=no
24976 if test x$gcc_cv_as != x; then
24977 $as_echo 'rep movsl
24978 rep ret
24979 rep nop
24980 rep bsf %ecx, %eax
24981 rep bsr %ecx, %eax
24982 lock addl %edi, (%eax,%esi)
24983 lock orl $0, (%esp)' > conftest.s
24984 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
24985 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
24986 (eval $ac_try) 2>&5
24987 ac_status=$?
24988 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24989 test $ac_status = 0; }; }
24990 then
24991 gcc_cv_as_ix86_rep_lock_prefix=yes
24992 else
24993 echo "configure: failed program was" >&5
24994 cat conftest.s >&5
24996 rm -f conftest.o conftest.s
24999 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_ix86_rep_lock_prefix" >&5
25000 $as_echo "$gcc_cv_as_ix86_rep_lock_prefix" >&6; }
25001 if test $gcc_cv_as_ix86_rep_lock_prefix = yes; then
25003 $as_echo "#define HAVE_AS_IX86_REP_LOCK_PREFIX 1" >>confdefs.h
25007 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for R_386_TLS_GD_PLT reloc" >&5
25008 $as_echo_n "checking assembler for R_386_TLS_GD_PLT reloc... " >&6; }
25009 if test "${gcc_cv_as_ix86_tlsgdplt+set}" = set; then :
25010 $as_echo_n "(cached) " >&6
25011 else
25012 gcc_cv_as_ix86_tlsgdplt=no
25013 if test x$gcc_cv_as != x; then
25014 $as_echo 'call tls_gd@tlsgdplt' > conftest.s
25015 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
25016 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
25017 (eval $ac_try) 2>&5
25018 ac_status=$?
25019 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25020 test $ac_status = 0; }; }
25021 then
25022 if test x$gcc_cv_ld != x \
25023 && $gcc_cv_ld -o conftest conftest.o -G > /dev/null 2>&1; then
25024 gcc_cv_as_ix86_tlsgdplt=yes
25026 rm -f conftest
25027 else
25028 echo "configure: failed program was" >&5
25029 cat conftest.s >&5
25031 rm -f conftest.o conftest.s
25034 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_ix86_tlsgdplt" >&5
25035 $as_echo "$gcc_cv_as_ix86_tlsgdplt" >&6; }
25036 if test $gcc_cv_as_ix86_tlsgdplt = yes; then
25038 $as_echo "#define HAVE_AS_IX86_TLSGDPLT 1" >>confdefs.h
25042 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for R_386_TLS_LDM_PLT reloc" >&5
25043 $as_echo_n "checking assembler for R_386_TLS_LDM_PLT reloc... " >&6; }
25044 if test "${gcc_cv_as_ix86_tlsldmplt+set}" = set; then :
25045 $as_echo_n "(cached) " >&6
25046 else
25047 gcc_cv_as_ix86_tlsldmplt=no
25048 if test x$gcc_cv_as != x; then
25049 $as_echo 'tls_ld:
25050 call tls_ld@tlsldmplt' > 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 if test x$gcc_cv_ld != x \
25059 && $gcc_cv_ld -o conftest conftest.o -G > /dev/null 2>&1; then
25060 gcc_cv_as_ix86_tlsldmplt=yes
25062 rm -f conftest
25063 else
25064 echo "configure: failed program was" >&5
25065 cat conftest.s >&5
25067 rm -f conftest.o conftest.s
25070 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_ix86_tlsldmplt" >&5
25071 $as_echo "$gcc_cv_as_ix86_tlsldmplt" >&6; }
25072 if test $gcc_cv_as_ix86_tlsldmplt = yes; then
25074 $as_echo "#define HAVE_AS_IX86_TLSLDMPLT 1" >>confdefs.h
25080 ia64*-*-*)
25081 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for ltoffx and ldxmov relocs" >&5
25082 $as_echo_n "checking assembler for ltoffx and ldxmov relocs... " >&6; }
25083 if test "${gcc_cv_as_ia64_ltoffx_ldxmov_relocs+set}" = set; then :
25084 $as_echo_n "(cached) " >&6
25085 else
25086 gcc_cv_as_ia64_ltoffx_ldxmov_relocs=no
25087 if test $in_tree_gas = yes; then
25088 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 14 \) \* 1000 + 0`
25089 then gcc_cv_as_ia64_ltoffx_ldxmov_relocs=yes
25091 elif test x$gcc_cv_as != x; then
25092 $as_echo ' .text
25093 addl r15 = @ltoffx(x#), gp
25095 ld8.mov r16 = [r15], x#' > conftest.s
25096 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
25097 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
25098 (eval $ac_try) 2>&5
25099 ac_status=$?
25100 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25101 test $ac_status = 0; }; }
25102 then
25103 gcc_cv_as_ia64_ltoffx_ldxmov_relocs=yes
25104 else
25105 echo "configure: failed program was" >&5
25106 cat conftest.s >&5
25108 rm -f conftest.o conftest.s
25111 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_ia64_ltoffx_ldxmov_relocs" >&5
25112 $as_echo "$gcc_cv_as_ia64_ltoffx_ldxmov_relocs" >&6; }
25113 if test $gcc_cv_as_ia64_ltoffx_ldxmov_relocs = yes; then
25115 $as_echo "#define HAVE_AS_LTOFFX_LDXMOV_RELOCS 1" >>confdefs.h
25121 powerpc*-*-*)
25122 case $target in
25123 *-*-aix*) conftest_s=' .machine "pwr5"
25124 .csect .text[PR]
25125 mfcr 3,128';;
25126 *-*-darwin*)
25127 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .machine directive support" >&5
25128 $as_echo_n "checking assembler for .machine directive support... " >&6; }
25129 if test "${gcc_cv_as_machine_directive+set}" = set; then :
25130 $as_echo_n "(cached) " >&6
25131 else
25132 gcc_cv_as_machine_directive=no
25133 if test x$gcc_cv_as != x; then
25134 $as_echo ' .machine ppc7400' > conftest.s
25135 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
25136 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
25137 (eval $ac_try) 2>&5
25138 ac_status=$?
25139 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25140 test $ac_status = 0; }; }
25141 then
25142 gcc_cv_as_machine_directive=yes
25143 else
25144 echo "configure: failed program was" >&5
25145 cat conftest.s >&5
25147 rm -f conftest.o conftest.s
25150 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_machine_directive" >&5
25151 $as_echo "$gcc_cv_as_machine_directive" >&6; }
25153 if test x$gcc_cv_as_machine_directive != xyes; then
25154 echo "*** This target requires an assembler supporting \".machine\"" >&2
25155 echo you can get it from: ftp://gcc.gnu.org/pub/gcc/infrastructure/cctools-528.5.dmg >&2
25156 test x$build = x$target && exit 1
25158 conftest_s=' .text
25159 mfcr r3,128';;
25160 *) conftest_s=' .machine power4
25161 .text
25162 mfcr 3,128';;
25163 esac
25165 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for mfcr field support" >&5
25166 $as_echo_n "checking assembler for mfcr field support... " >&6; }
25167 if test "${gcc_cv_as_powerpc_mfcrf+set}" = set; then :
25168 $as_echo_n "(cached) " >&6
25169 else
25170 gcc_cv_as_powerpc_mfcrf=no
25171 if test $in_tree_gas = yes; then
25172 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 14 \) \* 1000 + 0`
25173 then gcc_cv_as_powerpc_mfcrf=yes
25175 elif test x$gcc_cv_as != x; then
25176 $as_echo "$conftest_s" > conftest.s
25177 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
25178 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
25179 (eval $ac_try) 2>&5
25180 ac_status=$?
25181 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25182 test $ac_status = 0; }; }
25183 then
25184 gcc_cv_as_powerpc_mfcrf=yes
25185 else
25186 echo "configure: failed program was" >&5
25187 cat conftest.s >&5
25189 rm -f conftest.o conftest.s
25192 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_powerpc_mfcrf" >&5
25193 $as_echo "$gcc_cv_as_powerpc_mfcrf" >&6; }
25194 if test $gcc_cv_as_powerpc_mfcrf = yes; then
25196 $as_echo "#define HAVE_AS_MFCRF 1" >>confdefs.h
25200 case $target in
25201 *-*-aix*) conftest_s=' .machine "pwr5"
25202 .csect .text[PR]
25203 popcntb 3,3';;
25204 *) conftest_s=' .machine power5
25205 .text
25206 popcntb 3,3';;
25207 esac
25209 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for popcntb support" >&5
25210 $as_echo_n "checking assembler for popcntb support... " >&6; }
25211 if test "${gcc_cv_as_powerpc_popcntb+set}" = set; then :
25212 $as_echo_n "(cached) " >&6
25213 else
25214 gcc_cv_as_powerpc_popcntb=no
25215 if test $in_tree_gas = yes; then
25216 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 17 \) \* 1000 + 0`
25217 then gcc_cv_as_powerpc_popcntb=yes
25219 elif test x$gcc_cv_as != x; then
25220 $as_echo "$conftest_s" > conftest.s
25221 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
25222 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
25223 (eval $ac_try) 2>&5
25224 ac_status=$?
25225 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25226 test $ac_status = 0; }; }
25227 then
25228 gcc_cv_as_powerpc_popcntb=yes
25229 else
25230 echo "configure: failed program was" >&5
25231 cat conftest.s >&5
25233 rm -f conftest.o conftest.s
25236 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_powerpc_popcntb" >&5
25237 $as_echo "$gcc_cv_as_powerpc_popcntb" >&6; }
25238 if test $gcc_cv_as_powerpc_popcntb = yes; then
25240 $as_echo "#define HAVE_AS_POPCNTB 1" >>confdefs.h
25244 case $target in
25245 *-*-aix*) conftest_s=' .machine "pwr5x"
25246 .csect .text[PR]
25247 frin 1,1';;
25248 *) conftest_s=' .machine power5
25249 .text
25250 frin 1,1';;
25251 esac
25253 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for fp round support" >&5
25254 $as_echo_n "checking assembler for fp round support... " >&6; }
25255 if test "${gcc_cv_as_powerpc_fprnd+set}" = set; then :
25256 $as_echo_n "(cached) " >&6
25257 else
25258 gcc_cv_as_powerpc_fprnd=no
25259 if test $in_tree_gas = yes; then
25260 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 17 \) \* 1000 + 0`
25261 then gcc_cv_as_powerpc_fprnd=yes
25263 elif test x$gcc_cv_as != x; then
25264 $as_echo "$conftest_s" > conftest.s
25265 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
25266 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
25267 (eval $ac_try) 2>&5
25268 ac_status=$?
25269 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25270 test $ac_status = 0; }; }
25271 then
25272 gcc_cv_as_powerpc_fprnd=yes
25273 else
25274 echo "configure: failed program was" >&5
25275 cat conftest.s >&5
25277 rm -f conftest.o conftest.s
25280 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_powerpc_fprnd" >&5
25281 $as_echo "$gcc_cv_as_powerpc_fprnd" >&6; }
25282 if test $gcc_cv_as_powerpc_fprnd = yes; then
25284 $as_echo "#define HAVE_AS_FPRND 1" >>confdefs.h
25288 case $target in
25289 *-*-aix*) conftest_s=' .machine "pwr6"
25290 .csect .text[PR]
25291 mffgpr 1,3';;
25292 *) conftest_s=' .machine power6
25293 .text
25294 mffgpr 1,3';;
25295 esac
25297 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for move fp gpr support" >&5
25298 $as_echo_n "checking assembler for move fp gpr support... " >&6; }
25299 if test "${gcc_cv_as_powerpc_mfpgpr+set}" = set; then :
25300 $as_echo_n "(cached) " >&6
25301 else
25302 gcc_cv_as_powerpc_mfpgpr=no
25303 if test $in_tree_gas = yes; then
25304 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 19 \) \* 1000 + 2`
25305 then gcc_cv_as_powerpc_mfpgpr=yes
25307 elif test x$gcc_cv_as != x; then
25308 $as_echo "$conftest_s" > conftest.s
25309 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
25310 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
25311 (eval $ac_try) 2>&5
25312 ac_status=$?
25313 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25314 test $ac_status = 0; }; }
25315 then
25316 gcc_cv_as_powerpc_mfpgpr=yes
25317 else
25318 echo "configure: failed program was" >&5
25319 cat conftest.s >&5
25321 rm -f conftest.o conftest.s
25324 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_powerpc_mfpgpr" >&5
25325 $as_echo "$gcc_cv_as_powerpc_mfpgpr" >&6; }
25326 if test $gcc_cv_as_powerpc_mfpgpr = yes; then
25328 $as_echo "#define HAVE_AS_MFPGPR 1" >>confdefs.h
25332 case $target in
25333 *-*-aix*) conftest_s=' .csect .text[PR]
25334 LCF..0:
25335 addis 11,30,_GLOBAL_OFFSET_TABLE_-LCF..0@ha';;
25336 *-*-darwin*)
25337 conftest_s=' .text
25338 LCF0:
25339 addis r11,r30,_GLOBAL_OFFSET_TABLE_-LCF0@ha';;
25340 *) conftest_s=' .text
25341 .LCF0:
25342 addis 11,30,_GLOBAL_OFFSET_TABLE_-.LCF0@ha';;
25343 esac
25345 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for rel16 relocs" >&5
25346 $as_echo_n "checking assembler for rel16 relocs... " >&6; }
25347 if test "${gcc_cv_as_powerpc_rel16+set}" = set; then :
25348 $as_echo_n "(cached) " >&6
25349 else
25350 gcc_cv_as_powerpc_rel16=no
25351 if test $in_tree_gas = yes; then
25352 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 17 \) \* 1000 + 0`
25353 then gcc_cv_as_powerpc_rel16=yes
25355 elif test x$gcc_cv_as != x; then
25356 $as_echo "$conftest_s" > conftest.s
25357 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -a32 -o conftest.o conftest.s >&5'
25358 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
25359 (eval $ac_try) 2>&5
25360 ac_status=$?
25361 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25362 test $ac_status = 0; }; }
25363 then
25364 gcc_cv_as_powerpc_rel16=yes
25365 else
25366 echo "configure: failed program was" >&5
25367 cat conftest.s >&5
25369 rm -f conftest.o conftest.s
25372 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_powerpc_rel16" >&5
25373 $as_echo "$gcc_cv_as_powerpc_rel16" >&6; }
25374 if test $gcc_cv_as_powerpc_rel16 = yes; then
25376 $as_echo "#define HAVE_AS_REL16 1" >>confdefs.h
25380 case $target in
25381 *-*-aix*) conftest_s=' .machine "pwr6"
25382 .csect .text[PR]
25383 cmpb 3,4,5';;
25384 *) conftest_s=' .machine power6
25385 .text
25386 cmpb 3,4,5';;
25387 esac
25389 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for compare bytes support" >&5
25390 $as_echo_n "checking assembler for compare bytes support... " >&6; }
25391 if test "${gcc_cv_as_powerpc_cmpb+set}" = set; then :
25392 $as_echo_n "(cached) " >&6
25393 else
25394 gcc_cv_as_powerpc_cmpb=no
25395 if test $in_tree_gas = yes; then
25396 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 19 \) \* 1000 + 2`
25397 then gcc_cv_as_powerpc_cmpb=yes
25399 elif test x$gcc_cv_as != x; then
25400 $as_echo "$conftest_s" > conftest.s
25401 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -a32 -o conftest.o conftest.s >&5'
25402 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
25403 (eval $ac_try) 2>&5
25404 ac_status=$?
25405 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25406 test $ac_status = 0; }; }
25407 then
25408 gcc_cv_as_powerpc_cmpb=yes
25409 else
25410 echo "configure: failed program was" >&5
25411 cat conftest.s >&5
25413 rm -f conftest.o conftest.s
25416 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_powerpc_cmpb" >&5
25417 $as_echo "$gcc_cv_as_powerpc_cmpb" >&6; }
25418 if test $gcc_cv_as_powerpc_cmpb = yes; then
25420 $as_echo "#define HAVE_AS_CMPB 1" >>confdefs.h
25424 case $target in
25425 *-*-aix*) conftest_s=' .machine "pwr6"
25426 .csect .text[PR]
25427 dadd 1,2,3';;
25428 *) conftest_s=' .machine power6
25429 .text
25430 dadd 1,2,3';;
25431 esac
25433 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for decimal float support" >&5
25434 $as_echo_n "checking assembler for decimal float support... " >&6; }
25435 if test "${gcc_cv_as_powerpc_dfp+set}" = set; then :
25436 $as_echo_n "(cached) " >&6
25437 else
25438 gcc_cv_as_powerpc_dfp=no
25439 if test $in_tree_gas = yes; then
25440 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 19 \) \* 1000 + 2`
25441 then gcc_cv_as_powerpc_dfp=yes
25443 elif test x$gcc_cv_as != x; then
25444 $as_echo "$conftest_s" > conftest.s
25445 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -a32 -o conftest.o conftest.s >&5'
25446 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
25447 (eval $ac_try) 2>&5
25448 ac_status=$?
25449 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25450 test $ac_status = 0; }; }
25451 then
25452 gcc_cv_as_powerpc_dfp=yes
25453 else
25454 echo "configure: failed program was" >&5
25455 cat conftest.s >&5
25457 rm -f conftest.o conftest.s
25460 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_powerpc_dfp" >&5
25461 $as_echo "$gcc_cv_as_powerpc_dfp" >&6; }
25462 if test $gcc_cv_as_powerpc_dfp = yes; then
25464 $as_echo "#define HAVE_AS_DFP 1" >>confdefs.h
25468 case $target in
25469 *-*-aix*) conftest_s=' .machine "pwr7"
25470 .csect .text[PR]
25471 lxvd2x 1,2,3';;
25472 *) conftest_s=' .machine power7
25473 .text
25474 lxvd2x 1,2,3';;
25475 esac
25477 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for vector-scalar support" >&5
25478 $as_echo_n "checking assembler for vector-scalar support... " >&6; }
25479 if test "${gcc_cv_as_powerpc_vsx+set}" = set; then :
25480 $as_echo_n "(cached) " >&6
25481 else
25482 gcc_cv_as_powerpc_vsx=no
25483 if test $in_tree_gas = yes; then
25484 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 19 \) \* 1000 + 2`
25485 then gcc_cv_as_powerpc_vsx=yes
25487 elif test x$gcc_cv_as != x; then
25488 $as_echo "$conftest_s" > conftest.s
25489 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -a32 -o conftest.o conftest.s >&5'
25490 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
25491 (eval $ac_try) 2>&5
25492 ac_status=$?
25493 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25494 test $ac_status = 0; }; }
25495 then
25496 gcc_cv_as_powerpc_vsx=yes
25497 else
25498 echo "configure: failed program was" >&5
25499 cat conftest.s >&5
25501 rm -f conftest.o conftest.s
25504 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_powerpc_vsx" >&5
25505 $as_echo "$gcc_cv_as_powerpc_vsx" >&6; }
25506 if test $gcc_cv_as_powerpc_vsx = yes; then
25508 $as_echo "#define HAVE_AS_VSX 1" >>confdefs.h
25512 case $target in
25513 *-*-aix*) conftest_s=' .machine "pwr7"
25514 .csect .text[PR]
25515 popcntd 3,3';;
25516 *) conftest_s=' .machine power7
25517 .text
25518 popcntd 3,3';;
25519 esac
25521 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for popcntd support" >&5
25522 $as_echo_n "checking assembler for popcntd support... " >&6; }
25523 if test "${gcc_cv_as_powerpc_popcntd+set}" = set; then :
25524 $as_echo_n "(cached) " >&6
25525 else
25526 gcc_cv_as_powerpc_popcntd=no
25527 if test $in_tree_gas = yes; then
25528 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 19 \) \* 1000 + 2`
25529 then gcc_cv_as_powerpc_popcntd=yes
25531 elif test x$gcc_cv_as != x; then
25532 $as_echo "$conftest_s" > conftest.s
25533 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -a32 -o conftest.o conftest.s >&5'
25534 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
25535 (eval $ac_try) 2>&5
25536 ac_status=$?
25537 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25538 test $ac_status = 0; }; }
25539 then
25540 gcc_cv_as_powerpc_popcntd=yes
25541 else
25542 echo "configure: failed program was" >&5
25543 cat conftest.s >&5
25545 rm -f conftest.o conftest.s
25548 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_powerpc_popcntd" >&5
25549 $as_echo "$gcc_cv_as_powerpc_popcntd" >&6; }
25550 if test $gcc_cv_as_powerpc_popcntd = yes; then
25552 $as_echo "#define HAVE_AS_POPCNTD 1" >>confdefs.h
25556 case $target in
25557 *-*-aix*) conftest_s=' .machine "pwr8"
25558 .csect .text[PR]';;
25559 *) conftest_s=' .machine power8
25560 .text';;
25561 esac
25563 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for power8 support" >&5
25564 $as_echo_n "checking assembler for power8 support... " >&6; }
25565 if test "${gcc_cv_as_powerpc_power8+set}" = set; then :
25566 $as_echo_n "(cached) " >&6
25567 else
25568 gcc_cv_as_powerpc_power8=no
25569 if test $in_tree_gas = yes; then
25570 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 19 \) \* 1000 + 2`
25571 then gcc_cv_as_powerpc_power8=yes
25573 elif test x$gcc_cv_as != x; then
25574 $as_echo "$conftest_s" > conftest.s
25575 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -a32 -o conftest.o conftest.s >&5'
25576 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
25577 (eval $ac_try) 2>&5
25578 ac_status=$?
25579 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25580 test $ac_status = 0; }; }
25581 then
25582 gcc_cv_as_powerpc_power8=yes
25583 else
25584 echo "configure: failed program was" >&5
25585 cat conftest.s >&5
25587 rm -f conftest.o conftest.s
25590 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_powerpc_power8" >&5
25591 $as_echo "$gcc_cv_as_powerpc_power8" >&6; }
25592 if test $gcc_cv_as_powerpc_power8 = yes; then
25594 $as_echo "#define HAVE_AS_POWER8 1" >>confdefs.h
25598 case $target in
25599 *-*-aix*) conftest_s=' .csect .text[PR]
25600 lwsync';;
25601 *) conftest_s=' .text
25602 lwsync';;
25603 esac
25605 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for lwsync support" >&5
25606 $as_echo_n "checking assembler for lwsync support... " >&6; }
25607 if test "${gcc_cv_as_powerpc_lwsync+set}" = set; then :
25608 $as_echo_n "(cached) " >&6
25609 else
25610 gcc_cv_as_powerpc_lwsync=no
25611 if test $in_tree_gas = yes; then
25612 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 19 \) \* 1000 + 2`
25613 then gcc_cv_as_powerpc_lwsync=yes
25615 elif test x$gcc_cv_as != x; then
25616 $as_echo "$conftest_s" > conftest.s
25617 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -a32 -o conftest.o conftest.s >&5'
25618 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
25619 (eval $ac_try) 2>&5
25620 ac_status=$?
25621 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25622 test $ac_status = 0; }; }
25623 then
25624 gcc_cv_as_powerpc_lwsync=yes
25625 else
25626 echo "configure: failed program was" >&5
25627 cat conftest.s >&5
25629 rm -f conftest.o conftest.s
25632 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_powerpc_lwsync" >&5
25633 $as_echo "$gcc_cv_as_powerpc_lwsync" >&6; }
25634 if test $gcc_cv_as_powerpc_lwsync = yes; then
25636 $as_echo "#define HAVE_AS_LWSYNC 1" >>confdefs.h
25640 case $target in
25641 *-*-aix*) conftest_s=' .machine "476"
25642 .csect .text[PR]
25643 dci 0';;
25644 *) conftest_s=' .machine "476"
25645 .text
25646 dci 0';;
25647 esac
25649 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for data cache invalidate support" >&5
25650 $as_echo_n "checking assembler for data cache invalidate support... " >&6; }
25651 if test "${gcc_cv_as_powerpc_dci+set}" = set; then :
25652 $as_echo_n "(cached) " >&6
25653 else
25654 gcc_cv_as_powerpc_dci=no
25655 if test $in_tree_gas = yes; then
25656 if test $gcc_cv_gas_vers -ge `expr \( \( 9 \* 1000 \) + 99 \) \* 1000 + 0`
25657 then gcc_cv_as_powerpc_dci=yes
25659 elif test x$gcc_cv_as != x; then
25660 $as_echo "$conftest_s" > conftest.s
25661 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -a32 -o conftest.o conftest.s >&5'
25662 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
25663 (eval $ac_try) 2>&5
25664 ac_status=$?
25665 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25666 test $ac_status = 0; }; }
25667 then
25668 gcc_cv_as_powerpc_dci=yes
25669 else
25670 echo "configure: failed program was" >&5
25671 cat conftest.s >&5
25673 rm -f conftest.o conftest.s
25676 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_powerpc_dci" >&5
25677 $as_echo "$gcc_cv_as_powerpc_dci" >&6; }
25678 if test $gcc_cv_as_powerpc_dci = yes; then
25680 $as_echo "#define HAVE_AS_DCI 1" >>confdefs.h
25684 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .gnu_attribute support" >&5
25685 $as_echo_n "checking assembler for .gnu_attribute support... " >&6; }
25686 if test "${gcc_cv_as_powerpc_gnu_attribute+set}" = set; then :
25687 $as_echo_n "(cached) " >&6
25688 else
25689 gcc_cv_as_powerpc_gnu_attribute=no
25690 if test $in_tree_gas = yes; then
25691 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 18 \) \* 1000 + 0`
25692 then gcc_cv_as_powerpc_gnu_attribute=yes
25694 elif test x$gcc_cv_as != x; then
25695 $as_echo '.gnu_attribute 4,1' > conftest.s
25696 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
25697 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
25698 (eval $ac_try) 2>&5
25699 ac_status=$?
25700 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25701 test $ac_status = 0; }; }
25702 then
25703 gcc_cv_as_powerpc_gnu_attribute=yes
25704 else
25705 echo "configure: failed program was" >&5
25706 cat conftest.s >&5
25708 rm -f conftest.o conftest.s
25711 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_powerpc_gnu_attribute" >&5
25712 $as_echo "$gcc_cv_as_powerpc_gnu_attribute" >&6; }
25713 if test $gcc_cv_as_powerpc_gnu_attribute = yes; then
25715 $as_echo "#define HAVE_AS_GNU_ATTRIBUTE 1" >>confdefs.h
25719 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for tls marker support" >&5
25720 $as_echo_n "checking assembler for tls marker support... " >&6; }
25721 if test "${gcc_cv_as_powerpc_tls_markers+set}" = set; then :
25722 $as_echo_n "(cached) " >&6
25723 else
25724 gcc_cv_as_powerpc_tls_markers=no
25725 if test $in_tree_gas = yes; then
25726 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 20 \) \* 1000 + 0`
25727 then gcc_cv_as_powerpc_tls_markers=yes
25729 elif test x$gcc_cv_as != x; then
25730 $as_echo ' bl __tls_get_addr(x@tlsgd)' > conftest.s
25731 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
25732 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
25733 (eval $ac_try) 2>&5
25734 ac_status=$?
25735 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25736 test $ac_status = 0; }; }
25737 then
25738 gcc_cv_as_powerpc_tls_markers=yes
25739 else
25740 echo "configure: failed program was" >&5
25741 cat conftest.s >&5
25743 rm -f conftest.o conftest.s
25746 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_powerpc_tls_markers" >&5
25747 $as_echo "$gcc_cv_as_powerpc_tls_markers" >&6; }
25748 if test $gcc_cv_as_powerpc_tls_markers = yes; then
25750 $as_echo "#define HAVE_AS_TLS_MARKERS 1" >>confdefs.h
25754 case $target in
25755 *-*-aix*)
25756 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .ref support" >&5
25757 $as_echo_n "checking assembler for .ref support... " >&6; }
25758 if test "${gcc_cv_as_aix_ref+set}" = set; then :
25759 $as_echo_n "(cached) " >&6
25760 else
25761 gcc_cv_as_aix_ref=no
25762 if test $in_tree_gas = yes; then
25763 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 21 \) \* 1000 + 0`
25764 then gcc_cv_as_aix_ref=yes
25766 elif test x$gcc_cv_as != x; then
25767 $as_echo ' .csect stuff[rw]
25768 stuff:
25769 .long 1
25770 .extern sym
25771 .ref sym
25772 ' > conftest.s
25773 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
25774 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
25775 (eval $ac_try) 2>&5
25776 ac_status=$?
25777 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25778 test $ac_status = 0; }; }
25779 then
25780 gcc_cv_as_aix_ref=yes
25781 else
25782 echo "configure: failed program was" >&5
25783 cat conftest.s >&5
25785 rm -f conftest.o conftest.s
25788 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_aix_ref" >&5
25789 $as_echo "$gcc_cv_as_aix_ref" >&6; }
25790 if test $gcc_cv_as_aix_ref = yes; then
25792 $as_echo "#define HAVE_AS_REF 1" >>confdefs.h
25796 esac
25799 mips*-*-*)
25800 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for explicit relocation support" >&5
25801 $as_echo_n "checking assembler for explicit relocation support... " >&6; }
25802 if test "${gcc_cv_as_mips_explicit_relocs+set}" = set; then :
25803 $as_echo_n "(cached) " >&6
25804 else
25805 gcc_cv_as_mips_explicit_relocs=no
25806 if test $in_tree_gas = yes; then
25807 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 14 \) \* 1000 + 0`
25808 then gcc_cv_as_mips_explicit_relocs=yes
25810 elif test x$gcc_cv_as != x; then
25811 $as_echo ' lw $4,%gp_rel(foo)($4)' > conftest.s
25812 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
25813 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
25814 (eval $ac_try) 2>&5
25815 ac_status=$?
25816 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25817 test $ac_status = 0; }; }
25818 then
25819 gcc_cv_as_mips_explicit_relocs=yes
25820 else
25821 echo "configure: failed program was" >&5
25822 cat conftest.s >&5
25824 rm -f conftest.o conftest.s
25827 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_mips_explicit_relocs" >&5
25828 $as_echo "$gcc_cv_as_mips_explicit_relocs" >&6; }
25829 if test $gcc_cv_as_mips_explicit_relocs = yes; then
25830 if test x$target_cpu_default = x
25831 then target_cpu_default=MASK_EXPLICIT_RELOCS
25832 else target_cpu_default="($target_cpu_default)|MASK_EXPLICIT_RELOCS"
25835 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for -mno-shared support" >&5
25836 $as_echo_n "checking assembler for -mno-shared support... " >&6; }
25837 if test "${gcc_cv_as_mips_no_shared+set}" = set; then :
25838 $as_echo_n "(cached) " >&6
25839 else
25840 gcc_cv_as_mips_no_shared=no
25841 if test $in_tree_gas = yes; then
25842 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 16 \) \* 1000 + 0`
25843 then gcc_cv_as_mips_no_shared=yes
25845 elif test x$gcc_cv_as != x; then
25846 $as_echo 'nop' > conftest.s
25847 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -mno-shared -o conftest.o conftest.s >&5'
25848 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
25849 (eval $ac_try) 2>&5
25850 ac_status=$?
25851 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25852 test $ac_status = 0; }; }
25853 then
25854 gcc_cv_as_mips_no_shared=yes
25855 else
25856 echo "configure: failed program was" >&5
25857 cat conftest.s >&5
25859 rm -f conftest.o conftest.s
25862 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_mips_no_shared" >&5
25863 $as_echo "$gcc_cv_as_mips_no_shared" >&6; }
25864 if test $gcc_cv_as_mips_no_shared = yes; then
25866 $as_echo "#define HAVE_AS_NO_SHARED 1" >>confdefs.h
25870 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .gnu_attribute support" >&5
25871 $as_echo_n "checking assembler for .gnu_attribute support... " >&6; }
25872 if test "${gcc_cv_as_mips_gnu_attribute+set}" = set; then :
25873 $as_echo_n "(cached) " >&6
25874 else
25875 gcc_cv_as_mips_gnu_attribute=no
25876 if test $in_tree_gas = yes; then
25877 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 18 \) \* 1000 + 0`
25878 then gcc_cv_as_mips_gnu_attribute=yes
25880 elif test x$gcc_cv_as != x; then
25881 $as_echo '.gnu_attribute 4,1' > conftest.s
25882 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
25883 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
25884 (eval $ac_try) 2>&5
25885 ac_status=$?
25886 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25887 test $ac_status = 0; }; }
25888 then
25889 gcc_cv_as_mips_gnu_attribute=yes
25890 else
25891 echo "configure: failed program was" >&5
25892 cat conftest.s >&5
25894 rm -f conftest.o conftest.s
25897 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_mips_gnu_attribute" >&5
25898 $as_echo "$gcc_cv_as_mips_gnu_attribute" >&6; }
25899 if test $gcc_cv_as_mips_gnu_attribute = yes; then
25901 $as_echo "#define HAVE_AS_GNU_ATTRIBUTE 1" >>confdefs.h
25905 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .micromips support" >&5
25906 $as_echo_n "checking assembler for .micromips support... " >&6; }
25907 if test "${gcc_cv_as_micromips_support+set}" = set; then :
25908 $as_echo_n "(cached) " >&6
25909 else
25910 gcc_cv_as_micromips_support=no
25911 if test x$gcc_cv_as != x; then
25912 $as_echo '.set micromips' > conftest.s
25913 if { ac_try='$gcc_cv_as $gcc_cv_as_flags --fatal-warnings -o conftest.o conftest.s >&5'
25914 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
25915 (eval $ac_try) 2>&5
25916 ac_status=$?
25917 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25918 test $ac_status = 0; }; }
25919 then
25920 gcc_cv_as_micromips_support=yes
25921 else
25922 echo "configure: failed program was" >&5
25923 cat conftest.s >&5
25925 rm -f conftest.o conftest.s
25928 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_micromips_support" >&5
25929 $as_echo "$gcc_cv_as_micromips_support" >&6; }
25930 if test $gcc_cv_as_micromips_support = yes; then
25932 $as_echo "#define HAVE_GAS_MICROMIPS 1" >>confdefs.h
25936 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .dtprelword support" >&5
25937 $as_echo_n "checking assembler for .dtprelword support... " >&6; }
25938 if test "${gcc_cv_as_mips_dtprelword+set}" = set; then :
25939 $as_echo_n "(cached) " >&6
25940 else
25941 gcc_cv_as_mips_dtprelword=no
25942 if test $in_tree_gas = yes; then
25943 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 18 \) \* 1000 + 0`
25944 then gcc_cv_as_mips_dtprelword=yes
25946 elif test x$gcc_cv_as != x; then
25947 $as_echo '.section .tdata,"awT",@progbits
25949 .word 2
25950 .text
25951 .dtprelword x+0x8000' > conftest.s
25952 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
25953 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
25954 (eval $ac_try) 2>&5
25955 ac_status=$?
25956 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25957 test $ac_status = 0; }; }
25958 then
25959 gcc_cv_as_mips_dtprelword=yes
25960 else
25961 echo "configure: failed program was" >&5
25962 cat conftest.s >&5
25964 rm -f conftest.o conftest.s
25967 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_mips_dtprelword" >&5
25968 $as_echo "$gcc_cv_as_mips_dtprelword" >&6; }
25969 if test $gcc_cv_as_mips_dtprelword = yes; then
25971 $as_echo "#define HAVE_AS_DTPRELWORD 1" >>confdefs.h
25975 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for DSPR1 mult with four accumulators support" >&5
25976 $as_echo_n "checking assembler for DSPR1 mult with four accumulators support... " >&6; }
25977 if test "${gcc_cv_as_mips_dspr1_mult+set}" = set; then :
25978 $as_echo_n "(cached) " >&6
25979 else
25980 gcc_cv_as_mips_dspr1_mult=no
25981 if test x$gcc_cv_as != x; then
25982 $as_echo ' .set mips32r2
25983 .set nodspr2
25984 .set dsp
25985 madd $ac3,$4,$5
25986 maddu $ac3,$4,$5
25987 msub $ac3,$4,$5
25988 msubu $ac3,$4,$5
25989 mult $ac3,$4,$5
25990 multu $ac3,$4,$5' > conftest.s
25991 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
25992 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
25993 (eval $ac_try) 2>&5
25994 ac_status=$?
25995 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25996 test $ac_status = 0; }; }
25997 then
25998 gcc_cv_as_mips_dspr1_mult=yes
25999 else
26000 echo "configure: failed program was" >&5
26001 cat conftest.s >&5
26003 rm -f conftest.o conftest.s
26006 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_mips_dspr1_mult" >&5
26007 $as_echo "$gcc_cv_as_mips_dspr1_mult" >&6; }
26008 if test $gcc_cv_as_mips_dspr1_mult = yes; then
26010 $as_echo "#define HAVE_AS_DSPR1_MULT 1" >>confdefs.h
26014 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler and linker for explicit JALR relocation" >&5
26015 $as_echo_n "checking assembler and linker for explicit JALR relocation... " >&6; }
26016 gcc_cv_as_ld_jalr_reloc=no
26017 if test $gcc_cv_as_mips_explicit_relocs = yes; then
26018 if test $in_tree_ld = yes ; then
26019 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 \
26020 && test $in_tree_ld_is_elf = yes; then
26021 gcc_cv_as_ld_jalr_reloc=yes
26023 elif test x$gcc_cv_as != x -a x$gcc_cv_ld != x -a x$gcc_cv_objdump != x; then
26024 echo ' .ent x' > conftest.s
26025 echo 'x: ld $2,%got_disp(y)($3)' >> conftest.s
26026 echo ' ld $25,%call16(y)($28)' >> conftest.s
26027 echo ' .reloc 1f,R_MIPS_JALR,y' >> conftest.s
26028 echo '1: jalr $25' >> conftest.s
26029 echo ' .reloc 1f,R_MIPS_JALR,x' >> conftest.s
26030 echo '1: jalr $25' >> conftest.s
26031 echo ' .end x' >> conftest.s
26032 if $gcc_cv_as -o conftest.o conftest.s >/dev/null 2>&5 \
26033 && $gcc_cv_ld -shared -o conftest.so conftest.o >/dev/null 2>&5; then
26034 if $gcc_cv_objdump -d conftest.so | grep jalr >/dev/null 2>&1 \
26035 && $gcc_cv_objdump -d conftest.so | grep "bal.*<x>" >/dev/null 2>&1; then
26036 gcc_cv_as_ld_jalr_reloc=yes
26039 rm -f conftest.*
26042 if test $gcc_cv_as_ld_jalr_reloc = yes; then
26043 if test x$target_cpu_default = x; then
26044 target_cpu_default=MASK_RELAX_PIC_CALLS
26045 else
26046 target_cpu_default="($target_cpu_default)|MASK_RELAX_PIC_CALLS"
26049 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_ld_jalr_reloc" >&5
26050 $as_echo "$gcc_cv_as_ld_jalr_reloc" >&6; }
26052 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker for .eh_frame personality relaxation" >&5
26053 $as_echo_n "checking linker for .eh_frame personality relaxation... " >&6; }
26054 if test "${gcc_cv_ld_mips_personality_relaxation+set}" = set; then :
26055 $as_echo_n "(cached) " >&6
26056 else
26057 gcc_cv_ld_mips_personality_relaxation=no
26058 if test $in_tree_ld = yes ; then
26059 if test "$gcc_cv_gld_major_version" -eq 2 \
26060 -a "$gcc_cv_gld_minor_version" -ge 21 \
26061 -o "$gcc_cv_gld_major_version" -gt 2; then
26062 gcc_cv_ld_mips_personality_relaxation=yes
26064 elif test x$gcc_cv_as != x \
26065 -a x$gcc_cv_ld != x \
26066 -a x$gcc_cv_readelf != x ; then
26067 cat > conftest.s <<EOF
26068 .cfi_startproc
26069 .cfi_personality 0x80,indirect_ptr
26070 .ent test
26071 test:
26073 .end test
26074 .cfi_endproc
26076 .section .data,"aw",@progbits
26077 indirect_ptr:
26078 .dc.a personality
26080 if $gcc_cv_as -KPIC -o conftest.o conftest.s > /dev/null 2>&1 \
26081 && $gcc_cv_ld -o conftest conftest.o -shared > /dev/null 2>&1; then
26082 if $gcc_cv_readelf -d conftest 2>&1 \
26083 | grep TEXTREL > /dev/null 2>&1; then
26085 elif $gcc_cv_readelf --relocs conftest 2>&1 \
26086 | grep 'R_MIPS_REL32 *$' > /dev/null 2>&1; then
26088 else
26089 gcc_cv_ld_mips_personality_relaxation=yes
26093 rm -f conftest.s conftest.o conftest
26095 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_mips_personality_relaxation" >&5
26096 $as_echo "$gcc_cv_ld_mips_personality_relaxation" >&6; }
26097 if test x$gcc_cv_ld_mips_personality_relaxation = xyes; then
26099 $as_echo "#define HAVE_LD_PERSONALITY_RELAXATION 1" >>confdefs.h
26103 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for -mnan= support" >&5
26104 $as_echo_n "checking assembler for -mnan= support... " >&6; }
26105 if test "${gcc_cv_as_mips_nan+set}" = set; then :
26106 $as_echo_n "(cached) " >&6
26107 else
26108 gcc_cv_as_mips_nan=no
26109 if test x$gcc_cv_as != x; then
26110 $as_echo '' > conftest.s
26111 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -mnan=2008 -o conftest.o conftest.s >&5'
26112 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
26113 (eval $ac_try) 2>&5
26114 ac_status=$?
26115 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
26116 test $ac_status = 0; }; }
26117 then
26118 gcc_cv_as_mips_nan=yes
26119 else
26120 echo "configure: failed program was" >&5
26121 cat conftest.s >&5
26123 rm -f conftest.o conftest.s
26126 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_mips_nan" >&5
26127 $as_echo "$gcc_cv_as_mips_nan" >&6; }
26128 if test $gcc_cv_as_mips_nan = yes; then
26130 $as_echo "#define HAVE_AS_NAN 1" >>confdefs.h
26133 if test x$gcc_cv_as_mips_nan = xno \
26134 && test x$with_nan != x; then
26135 as_fn_error "Requesting --with-nan= requires assembler support for -mnan=" "$LINENO" 5
26138 esac
26140 # Mips and HP-UX need the GNU assembler.
26141 # Linux on IA64 might be able to use the Intel assembler.
26143 case "$target" in
26144 mips*-*-* | *-*-hpux* )
26145 if test x$gas_flag = xyes \
26146 || test x"$host" != x"$build" \
26147 || test ! -x "$gcc_cv_as" \
26148 || "$gcc_cv_as" -v < /dev/null 2>&1 | grep GNU > /dev/null; then
26150 else
26151 echo "*** This configuration requires the GNU assembler" >&2
26152 exit 1
26155 esac
26157 # ??? Not all targets support dwarf2 debug_line, even within a version
26158 # of gas. Moreover, we need to emit a valid instruction to trigger any
26159 # info to the output file. So, as supported targets are added to gas 2.11,
26160 # add some instruction here to (also) show we expect this might work.
26161 # ??? Once 2.11 is released, probably need to add first known working
26162 # version to the per-target configury.
26163 case "$cpu_type" in
26164 aarch64 | alpha | arm | avr | bfin | cris | i386 | m32c | m68k | microblaze \
26165 | mips | pa | rs6000 | score | sparc | spu | tilegx | tilepro | xstormy16 \
26166 | xtensa)
26167 insn="nop"
26169 ia64 | s390)
26170 insn="nop 0"
26172 mmix)
26173 insn="swym 0"
26175 esac
26176 if test x"$insn" != x; then
26177 conftest_s="\
26178 .file 1 \"conftest.s\"
26179 .loc 1 3 0
26180 $insn"
26181 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for dwarf2 debug_line support" >&5
26182 $as_echo_n "checking assembler for dwarf2 debug_line support... " >&6; }
26183 if test "${gcc_cv_as_dwarf2_debug_line+set}" = set; then :
26184 $as_echo_n "(cached) " >&6
26185 else
26186 gcc_cv_as_dwarf2_debug_line=no
26187 if test $in_tree_gas = yes; then
26188 if test $in_tree_gas_is_elf = yes \
26189 && test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 11 \) \* 1000 + 0`
26190 then gcc_cv_as_dwarf2_debug_line=yes
26192 elif test x$gcc_cv_as != x; then
26193 $as_echo "$conftest_s" > conftest.s
26194 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
26195 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
26196 (eval $ac_try) 2>&5
26197 ac_status=$?
26198 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
26199 test $ac_status = 0; }; }
26200 then
26201 if test x$gcc_cv_objdump != x \
26202 && $gcc_cv_objdump -h conftest.o 2> /dev/null \
26203 | grep debug_line > /dev/null 2>&1; then
26204 gcc_cv_as_dwarf2_debug_line=yes
26206 else
26207 echo "configure: failed program was" >&5
26208 cat conftest.s >&5
26210 rm -f conftest.o conftest.s
26213 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_dwarf2_debug_line" >&5
26214 $as_echo "$gcc_cv_as_dwarf2_debug_line" >&6; }
26217 # The .debug_line file table must be in the exact order that
26218 # we specified the files, since these indices are also used
26219 # by DW_AT_decl_file. Approximate this test by testing if
26220 # the assembler bitches if the same index is assigned twice.
26221 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for buggy dwarf2 .file directive" >&5
26222 $as_echo_n "checking assembler for buggy dwarf2 .file directive... " >&6; }
26223 if test "${gcc_cv_as_dwarf2_file_buggy+set}" = set; then :
26224 $as_echo_n "(cached) " >&6
26225 else
26226 gcc_cv_as_dwarf2_file_buggy=no
26227 if test x$gcc_cv_as != x; then
26228 $as_echo ' .file 1 "foo.s"
26229 .file 1 "bar.s"' > conftest.s
26230 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
26231 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
26232 (eval $ac_try) 2>&5
26233 ac_status=$?
26234 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
26235 test $ac_status = 0; }; }
26236 then
26237 gcc_cv_as_dwarf2_file_buggy=yes
26238 else
26239 echo "configure: failed program was" >&5
26240 cat conftest.s >&5
26242 rm -f conftest.o conftest.s
26245 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_dwarf2_file_buggy" >&5
26246 $as_echo "$gcc_cv_as_dwarf2_file_buggy" >&6; }
26249 if test $gcc_cv_as_dwarf2_debug_line = yes \
26250 && test $gcc_cv_as_dwarf2_file_buggy = no; then
26252 $as_echo "#define HAVE_AS_DWARF2_DEBUG_LINE 1" >>confdefs.h
26256 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for --gdwarf2 option" >&5
26257 $as_echo_n "checking assembler for --gdwarf2 option... " >&6; }
26258 if test "${gcc_cv_as_gdwarf2_flag+set}" = set; then :
26259 $as_echo_n "(cached) " >&6
26260 else
26261 gcc_cv_as_gdwarf2_flag=no
26262 if test $in_tree_gas = yes; then
26263 if test $in_tree_gas_is_elf = yes \
26264 && test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 11 \) \* 1000 + 0`
26265 then gcc_cv_as_gdwarf2_flag=yes
26267 elif test x$gcc_cv_as != x; then
26268 $as_echo "$insn" > conftest.s
26269 if { ac_try='$gcc_cv_as $gcc_cv_as_flags --gdwarf2 -o conftest.o conftest.s >&5'
26270 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
26271 (eval $ac_try) 2>&5
26272 ac_status=$?
26273 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
26274 test $ac_status = 0; }; }
26275 then
26276 gcc_cv_as_gdwarf2_flag=yes
26277 else
26278 echo "configure: failed program was" >&5
26279 cat conftest.s >&5
26281 rm -f conftest.o conftest.s
26284 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_gdwarf2_flag" >&5
26285 $as_echo "$gcc_cv_as_gdwarf2_flag" >&6; }
26286 if test $gcc_cv_as_gdwarf2_flag = yes; then
26288 $as_echo "#define HAVE_AS_GDWARF2_DEBUG_FLAG 1" >>confdefs.h
26292 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for --gstabs option" >&5
26293 $as_echo_n "checking assembler for --gstabs option... " >&6; }
26294 if test "${gcc_cv_as_gstabs_flag+set}" = set; then :
26295 $as_echo_n "(cached) " >&6
26296 else
26297 gcc_cv_as_gstabs_flag=no
26298 if test $in_tree_gas = yes; then
26299 if test $in_tree_gas_is_elf = yes \
26300 && test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 11 \) \* 1000 + 0`
26301 then gcc_cv_as_gstabs_flag=yes
26303 elif test x$gcc_cv_as != x; then
26304 $as_echo "$insn" > conftest.s
26305 if { ac_try='$gcc_cv_as $gcc_cv_as_flags --gstabs -o conftest.o conftest.s >&5'
26306 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
26307 (eval $ac_try) 2>&5
26308 ac_status=$?
26309 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
26310 test $ac_status = 0; }; }
26311 then
26312 # The native Solaris 9/Intel assembler doesn't understand --gstabs
26313 # and warns about it, but still exits successfully. So check for
26314 # this.
26315 if { ac_try='$gcc_cv_as --gstabs -o conftest.o conftest.s 2>&1 | grep -i warning > /dev/null'
26316 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
26317 (eval $ac_try) 2>&5
26318 ac_status=$?
26319 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
26320 test $ac_status = 0; }; }
26321 then :
26322 else gcc_cv_as_gstabs_flag=yes
26324 else
26325 echo "configure: failed program was" >&5
26326 cat conftest.s >&5
26328 rm -f conftest.o conftest.s
26331 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_gstabs_flag" >&5
26332 $as_echo "$gcc_cv_as_gstabs_flag" >&6; }
26333 if test $gcc_cv_as_gstabs_flag = yes; then
26335 $as_echo "#define HAVE_AS_GSTABS_DEBUG_FLAG 1" >>confdefs.h
26339 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for --debug-prefix-map option" >&5
26340 $as_echo_n "checking assembler for --debug-prefix-map option... " >&6; }
26341 if test "${gcc_cv_as_debug_prefix_map_flag+set}" = set; then :
26342 $as_echo_n "(cached) " >&6
26343 else
26344 gcc_cv_as_debug_prefix_map_flag=no
26345 if test $in_tree_gas = yes; then
26346 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 18 \) \* 1000 + 0`
26347 then gcc_cv_as_debug_prefix_map_flag=yes
26349 elif test x$gcc_cv_as != x; then
26350 $as_echo "$insn" > conftest.s
26351 if { ac_try='$gcc_cv_as $gcc_cv_as_flags --debug-prefix-map /a=/b -o conftest.o conftest.s >&5'
26352 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
26353 (eval $ac_try) 2>&5
26354 ac_status=$?
26355 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
26356 test $ac_status = 0; }; }
26357 then
26358 gcc_cv_as_debug_prefix_map_flag=yes
26359 else
26360 echo "configure: failed program was" >&5
26361 cat conftest.s >&5
26363 rm -f conftest.o conftest.s
26366 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_debug_prefix_map_flag" >&5
26367 $as_echo "$gcc_cv_as_debug_prefix_map_flag" >&6; }
26368 if test $gcc_cv_as_debug_prefix_map_flag = yes; then
26370 $as_echo "#define HAVE_AS_DEBUG_PREFIX_MAP 1" >>confdefs.h
26375 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .lcomm with alignment" >&5
26376 $as_echo_n "checking assembler for .lcomm with alignment... " >&6; }
26377 if test "${gcc_cv_as_lcomm_with_alignment+set}" = set; then :
26378 $as_echo_n "(cached) " >&6
26379 else
26380 gcc_cv_as_lcomm_with_alignment=no
26381 if test x$gcc_cv_as != x; then
26382 $as_echo '.lcomm bar,4,16' > conftest.s
26383 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
26384 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
26385 (eval $ac_try) 2>&5
26386 ac_status=$?
26387 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
26388 test $ac_status = 0; }; }
26389 then
26390 gcc_cv_as_lcomm_with_alignment=yes
26391 else
26392 echo "configure: failed program was" >&5
26393 cat conftest.s >&5
26395 rm -f conftest.o conftest.s
26398 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_lcomm_with_alignment" >&5
26399 $as_echo "$gcc_cv_as_lcomm_with_alignment" >&6; }
26400 if test $gcc_cv_as_lcomm_with_alignment = yes; then
26402 $as_echo "#define HAVE_GAS_LCOMM_WITH_ALIGNMENT 1" >>confdefs.h
26406 # Check whether --enable-gnu-unique-object was given.
26407 if test "${enable_gnu_unique_object+set}" = set; then :
26408 enableval=$enable_gnu_unique_object; case $enable_gnu_unique_object in
26409 yes | no) ;;
26410 *) as_fn_error "'$enable_gnu_unique_object' is an invalid value for --enable-gnu-unique-object.
26411 Valid choices are 'yes' and 'no'." "$LINENO" 5 ;;
26412 esac
26413 else
26414 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for gnu_unique_object" >&5
26415 $as_echo_n "checking assembler for gnu_unique_object... " >&6; }
26416 if test "${gcc_cv_as_gnu_unique_object+set}" = set; then :
26417 $as_echo_n "(cached) " >&6
26418 else
26419 gcc_cv_as_gnu_unique_object=no
26420 if test $in_tree_gas = yes; then
26421 if test $in_tree_gas_is_elf = yes \
26422 && test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 19 \) \* 1000 + 52`
26423 then gcc_cv_as_gnu_unique_object=yes
26425 elif test x$gcc_cv_as != x; then
26426 $as_echo '.type foo, '$target_type_format_char'gnu_unique_object' > conftest.s
26427 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
26428 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
26429 (eval $ac_try) 2>&5
26430 ac_status=$?
26431 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
26432 test $ac_status = 0; }; }
26433 then
26434 gcc_cv_as_gnu_unique_object=yes
26435 else
26436 echo "configure: failed program was" >&5
26437 cat conftest.s >&5
26439 rm -f conftest.o conftest.s
26442 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_gnu_unique_object" >&5
26443 $as_echo "$gcc_cv_as_gnu_unique_object" >&6; }
26444 if test $gcc_cv_as_gnu_unique_object = yes; then
26445 # We need to unquote above to to use the definition from config.gcc.
26446 # Also check for ld.so support, i.e. glibc 2.11 or higher.
26447 if test x$host = x$build -a x$host = x$target &&
26448 ldd --version 2>/dev/null &&
26449 glibcver=`ldd --version 2>/dev/null | sed 's/.* //;q'`; then
26450 glibcmajor=`expr "$glibcver" : "\([0-9]*\)"`
26451 glibcminor=`expr "$glibcver" : "[2-9]*\.\([0-9]*\)"`
26452 glibcnum=`expr $glibcmajor \* 1000 + $glibcminor`
26453 if test "$glibcnum" -ge 2011 ; then
26454 enable_gnu_unique_object=yes
26460 if test x$enable_gnu_unique_object = xyes; then
26462 $as_echo "#define HAVE_GAS_GNU_UNIQUE_OBJECT 1" >>confdefs.h
26466 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for tolerance to line number 0" >&5
26467 $as_echo_n "checking assembler for tolerance to line number 0... " >&6; }
26468 if test "${gcc_cv_as_line_zero+set}" = set; then :
26469 $as_echo_n "(cached) " >&6
26470 else
26471 gcc_cv_as_line_zero=no
26472 if test $in_tree_gas = yes; then
26473 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 16 \) \* 1000 + 91`
26474 then gcc_cv_as_line_zero=yes
26476 elif test "x$gcc_cv_as" != x; then
26477 { echo '# 1 "test.s" 1'; echo '# 0 "" 2'; } > conftest.s
26478 if { ac_try='$gcc_cv_as -o conftest.o conftest.s >&5 2>conftest.out'
26479 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
26480 (eval $ac_try) 2>&5
26481 ac_status=$?
26482 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
26483 test $ac_status = 0; }; } &&
26484 test "x`cat conftest.out`" = x
26485 then
26486 gcc_cv_as_line_zero=yes
26487 else
26488 echo "configure: failed program was" >&5
26489 cat conftest.s >&5
26490 echo "configure: error output was" >&5
26491 cat conftest.out >&5
26493 rm -f conftest.o conftest.s conftest.out
26496 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_line_zero" >&5
26497 $as_echo "$gcc_cv_as_line_zero" >&6; }
26498 if test "x$gcc_cv_as_line_zero" = xyes; then
26500 $as_echo "#define HAVE_AS_LINE_ZERO 1" >>confdefs.h
26504 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker PT_GNU_EH_FRAME support" >&5
26505 $as_echo_n "checking linker PT_GNU_EH_FRAME support... " >&6; }
26506 gcc_cv_ld_eh_frame_hdr=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 12 -o "$gcc_cv_gld_major_version" -gt 2 \
26509 && test $in_tree_ld_is_elf = yes; then
26510 gcc_cv_ld_eh_frame_hdr=yes
26512 elif test x$gcc_cv_ld != x; then
26513 if echo "$ld_ver" | grep GNU > /dev/null; then
26514 # Check if linker supports --eh-frame-hdr option
26515 if $gcc_cv_ld --help 2>/dev/null | grep eh-frame-hdr > /dev/null; then
26516 gcc_cv_ld_eh_frame_hdr=yes
26518 else
26519 case "$target" in
26520 *-*-solaris2*)
26521 # Sun ld has various bugs in .eh_frame_hdr support before version 1.2251.
26522 if test "$ld_vers_major" -gt 1 || test "$ld_vers_minor" -ge 2251; then
26523 gcc_cv_ld_eh_frame_hdr=yes
26526 esac
26530 if test x"$gcc_cv_ld_eh_frame_hdr" = xyes; then
26532 $as_echo "#define HAVE_LD_EH_FRAME_HDR 1" >>confdefs.h
26535 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_eh_frame_hdr" >&5
26536 $as_echo "$gcc_cv_ld_eh_frame_hdr" >&6; }
26538 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker CIEv3 in .eh_frame support" >&5
26539 $as_echo_n "checking linker CIEv3 in .eh_frame support... " >&6; }
26540 gcc_cv_ld_eh_frame_ciev3=no
26541 if test $in_tree_ld = yes ; then
26542 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 \
26543 && test $in_tree_ld_is_elf = yes; then
26544 gcc_cv_ld_eh_frame_ciev3=yes
26546 elif test x$gcc_cv_ld != x; then
26547 if echo "$ld_ver" | grep GNU > /dev/null; then
26548 gcc_cv_ld_eh_frame_ciev3=yes
26549 if test 0"$ld_date" -lt 20040513; then
26550 if test -n "$ld_date"; then
26551 # If there was date string, but was earlier than 2004-05-13, fail
26552 gcc_cv_ld_eh_frame_ciev3=no
26553 elif test "$ld_vers_major" -lt 2; then
26554 gcc_cv_ld_eh_frame_ciev3=no
26555 elif test "$ld_vers_major" -eq 2 -a "$ld_vers_minor" -lt 16; then
26556 gcc_cv_ld_eh_frame_ciev3=no
26559 else
26560 case "$target" in
26561 *-*-solaris2*)
26562 # Sun ld added support for CIE v3 in .eh_frame in Solaris 11.1.
26563 if test "$ld_vers_major" -gt 1 || test "$ld_vers_minor" -ge 2324; then
26564 gcc_cv_ld_eh_frame_ciev3=yes
26567 esac
26571 cat >>confdefs.h <<_ACEOF
26572 #define HAVE_LD_EH_FRAME_CIEV3 `if test x"$gcc_cv_ld_eh_frame_ciev3" = xyes; then echo 1; else echo 0; fi`
26573 _ACEOF
26575 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_eh_frame_ciev3" >&5
26576 $as_echo "$gcc_cv_ld_eh_frame_ciev3" >&6; }
26578 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker position independent executable support" >&5
26579 $as_echo_n "checking linker position independent executable support... " >&6; }
26580 gcc_cv_ld_pie=no
26581 if test $in_tree_ld = yes ; then
26582 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 \
26583 && test $in_tree_ld_is_elf = yes; then
26584 gcc_cv_ld_pie=yes
26586 elif test x$gcc_cv_ld != x; then
26587 # Check if linker supports -pie option
26588 if $gcc_cv_ld --help 2>/dev/null | grep -- -pie > /dev/null; then
26589 gcc_cv_ld_pie=yes
26592 if test x"$gcc_cv_ld_pie" = xyes; then
26594 $as_echo "#define HAVE_LD_PIE 1" >>confdefs.h
26597 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_pie" >&5
26598 $as_echo "$gcc_cv_ld_pie" >&6; }
26600 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker EH-compatible garbage collection of sections" >&5
26601 $as_echo_n "checking linker EH-compatible garbage collection of sections... " >&6; }
26602 gcc_cv_ld_eh_gc_sections=no
26603 if test $in_tree_ld = yes ; then
26604 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 \
26605 && test $in_tree_ld_is_elf = yes; then
26606 gcc_cv_ld_eh_gc_sections=yes
26608 elif test x$gcc_cv_as != x -a x$gcc_cv_ld != x -a x$gcc_cv_objdump != x ; then
26609 cat > conftest.s <<EOF
26610 .section .text
26611 .globl _start
26612 .type _start, @function
26613 _start:
26614 .long foo
26615 .size _start, .-_start
26616 .section .text.foo,"ax",@progbits
26617 .type foo, @function
26618 foo:
26619 .long 0
26620 .size foo, .-foo
26621 .section .gcc_except_table.foo,"a",@progbits
26622 .L0:
26623 .long 0
26624 .section .eh_frame,"a",@progbits
26625 .long .L0
26627 if $gcc_cv_as -o conftest.o conftest.s > /dev/null 2>&1; then
26628 if $gcc_cv_ld -o conftest conftest.o --entry=_start --gc-sections 2>&1 \
26629 | grep "gc-sections option ignored" > /dev/null; then
26630 gcc_cv_ld_eh_gc_sections=no
26631 elif $gcc_cv_objdump -h conftest 2> /dev/null \
26632 | grep gcc_except_table > /dev/null; then
26633 gcc_cv_ld_eh_gc_sections=yes
26634 # If no COMDAT groups, the compiler will emit .gnu.linkonce.t. sections.
26635 if test x$gcc_cv_as_comdat_group != xyes; then
26636 gcc_cv_ld_eh_gc_sections=no
26637 cat > conftest.s <<EOF
26638 .section .text
26639 .globl _start
26640 .type _start, @function
26641 _start:
26642 .long foo
26643 .size _start, .-_start
26644 .section .gnu.linkonce.t.foo,"ax",@progbits
26645 .type foo, @function
26646 foo:
26647 .long 0
26648 .size foo, .-foo
26649 .section .gcc_except_table.foo,"a",@progbits
26650 .L0:
26651 .long 0
26652 .section .eh_frame,"a",@progbits
26653 .long .L0
26655 if $gcc_cv_as -o conftest.o conftest.s > /dev/null 2>&1; then
26656 if $gcc_cv_ld -o conftest conftest.o --entry=_start --gc-sections 2>&1 \
26657 | grep "gc-sections option ignored" > /dev/null; then
26658 gcc_cv_ld_eh_gc_sections=no
26659 elif $gcc_cv_objdump -h conftest 2> /dev/null \
26660 | grep gcc_except_table > /dev/null; then
26661 gcc_cv_ld_eh_gc_sections=yes
26667 rm -f conftest.s conftest.o conftest
26669 case "$target" in
26670 hppa*-*-linux*)
26671 # ??? This apparently exposes a binutils bug with PC-relative relocations.
26672 gcc_cv_ld_eh_gc_sections=no
26674 esac
26675 if test x$gcc_cv_ld_eh_gc_sections = xyes; then
26677 $as_echo "#define HAVE_LD_EH_GC_SECTIONS 1" >>confdefs.h
26680 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_eh_gc_sections" >&5
26681 $as_echo "$gcc_cv_ld_eh_gc_sections" >&6; }
26683 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker EH garbage collection of sections bug" >&5
26684 $as_echo_n "checking linker EH garbage collection of sections bug... " >&6; }
26685 gcc_cv_ld_eh_gc_sections_bug=no
26686 if test $in_tree_ld = yes ; then
26687 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 \
26688 && test $in_tree_ld_is_elf = yes; then
26689 gcc_cv_ld_eh_gc_sections_bug=yes
26691 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
26692 gcc_cv_ld_eh_gc_sections_bug=yes
26693 cat > conftest.s <<EOF
26694 .section .text
26695 .globl _start
26696 .type _start, @function
26697 _start:
26698 .long foo
26699 .size _start, .-_start
26700 .section .text.startup.foo,"ax",@progbits
26701 .type foo, @function
26702 foo:
26703 .long 0
26704 .size foo, .-foo
26705 .section .gcc_except_table.foo,"a",@progbits
26706 .L0:
26707 .long 0
26708 .section .eh_frame,"a",@progbits
26709 .long .L0
26711 if $gcc_cv_as -o conftest.o conftest.s > /dev/null 2>&1; then
26712 if $gcc_cv_ld -o conftest conftest.o --entry=_start --gc-sections 2>&1 \
26713 | grep "gc-sections option ignored" > /dev/null; then
26715 elif $gcc_cv_objdump -h conftest 2> /dev/null \
26716 | grep gcc_except_table > /dev/null; then
26717 gcc_cv_ld_eh_gc_sections_bug=no
26720 rm -f conftest.s conftest.o conftest
26722 if test x$gcc_cv_ld_eh_gc_sections_bug = xyes; then
26724 $as_echo "#define HAVE_LD_EH_GC_SECTIONS_BUG 1" >>confdefs.h
26727 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_eh_gc_sections_bug" >&5
26728 $as_echo "$gcc_cv_ld_eh_gc_sections_bug" >&6; }
26730 # --------
26731 # UNSORTED
26732 # --------
26734 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker --as-needed support" >&5
26735 $as_echo_n "checking linker --as-needed support... " >&6; }
26736 if test "${gcc_cv_ld_as_needed+set}" = set; then :
26737 $as_echo_n "(cached) " >&6
26738 else
26739 gcc_cv_ld_as_needed=no
26740 gcc_cv_ld_as_needed_option='--as-needed'
26741 gcc_cv_ld_no_as_needed_option='--no-as-needed'
26742 if test $in_tree_ld = yes ; then
26743 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 \
26744 && test $in_tree_ld_is_elf = yes; then
26745 gcc_cv_ld_as_needed=yes
26747 elif test x$gcc_cv_ld != x; then
26748 # Check if linker supports --as-needed and --no-as-needed options
26749 if $gcc_cv_ld --help 2>/dev/null | grep as-needed > /dev/null; then
26750 gcc_cv_ld_as_needed=yes
26751 else
26752 case "$target" in
26753 # Solaris 2 ld always supports -z ignore/-z record.
26754 *-*-solaris2*)
26755 gcc_cv_ld_as_needed=yes
26756 gcc_cv_ld_as_needed_option="-z ignore"
26757 gcc_cv_ld_no_as_needed_option="-z record"
26759 esac
26762 # --as-needed/-z ignore can only be used if libgcc_s.so.1 uses
26763 # dl_iterate_phdr, i.e. since Solaris 11.
26764 case "$target" in
26765 *-*-solaris2.1[1-9]*)
26766 case "$target" in
26767 i?86-*-* | x86_64-*-*)
26768 if echo "$ld_ver" | grep GNU > /dev/null; then
26769 # Doesn't work with gld on Solaris/x86 due to PR ld/12320.
26770 gcc_cv_ld_as_needed=no
26773 esac
26775 *-*-solaris2*)
26776 gcc_cv_ld_as_needed=no
26778 esac
26781 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_as_needed" >&5
26782 $as_echo "$gcc_cv_ld_as_needed" >&6; }
26783 if test x"$gcc_cv_ld_as_needed" = xyes; then
26785 $as_echo "#define HAVE_LD_AS_NEEDED 1" >>confdefs.h
26788 cat >>confdefs.h <<_ACEOF
26789 #define LD_AS_NEEDED_OPTION "$gcc_cv_ld_as_needed_option"
26790 _ACEOF
26793 cat >>confdefs.h <<_ACEOF
26794 #define LD_NO_AS_NEEDED_OPTION "$gcc_cv_ld_no_as_needed_option"
26795 _ACEOF
26799 case "$target:$tm_file" in
26800 powerpc64-*-freebsd* | powerpc64*-*-linux* | powerpc*-*-linux*rs6000/biarch64.h*)
26801 case "$target" in
26802 *le-*-linux*)
26803 emul_name="-melf64lppc"
26805 *-*-linux*)
26806 emul_name="-melf64ppc"
26808 *-*-freebsd*)
26809 emul_name="-melf64ppc_fbsd"
26811 esac
26812 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker support for omitting dot symbols" >&5
26813 $as_echo_n "checking linker support for omitting dot symbols... " >&6; }
26814 if test "${gcc_cv_ld_no_dot_syms+set}" = set; then :
26815 $as_echo_n "(cached) " >&6
26816 else
26817 gcc_cv_ld_no_dot_syms=no
26818 if test x"$ld_is_gold" = xyes; then
26819 gcc_cv_ld_no_dot_syms=yes
26820 elif test $in_tree_ld = yes ; then
26821 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
26822 gcc_cv_ld_no_dot_syms=yes
26824 elif test x$gcc_cv_as != x -a x$gcc_cv_ld != x ; then
26825 cat > conftest1.s <<EOF
26826 .text
26827 bl .foo
26829 cat > conftest2.s <<EOF
26830 .section ".opd","aw"
26831 .align 3
26832 .globl foo
26833 .type foo,@function
26834 foo:
26835 .quad .LEfoo,.TOC.@tocbase,0
26836 .text
26837 .LEfoo:
26839 .size foo,.-.LEfoo
26841 if $gcc_cv_as -a64 -o conftest1.o conftest1.s > /dev/null 2>&1 \
26842 && $gcc_cv_as -a64 -o conftest2.o conftest2.s > /dev/null 2>&1 \
26843 && $gcc_cv_ld $emul_name -o conftest conftest1.o conftest2.o > /dev/null 2>&1; then
26844 gcc_cv_ld_no_dot_syms=yes
26846 rm -f conftest conftest1.o conftest2.o conftest1.s conftest2.s
26850 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_no_dot_syms" >&5
26851 $as_echo "$gcc_cv_ld_no_dot_syms" >&6; }
26852 if test x"$gcc_cv_ld_no_dot_syms" = xyes; then
26854 $as_echo "#define HAVE_LD_NO_DOT_SYMS 1" >>confdefs.h
26858 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker large toc support" >&5
26859 $as_echo_n "checking linker large toc support... " >&6; }
26860 if test "${gcc_cv_ld_large_toc+set}" = set; then :
26861 $as_echo_n "(cached) " >&6
26862 else
26863 gcc_cv_ld_large_toc=no
26864 if test x"$ld_is_gold" = xyes; then
26865 gcc_cv_ld_large_toc=yes
26866 elif test $in_tree_ld = yes ; then
26867 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
26868 gcc_cv_ld_large_toc=yes
26870 elif test x$gcc_cv_as != x -a x$gcc_cv_ld != x ; then
26871 cat > conftest.s <<EOF
26872 .section ".tbss","awT",@nobits
26873 .align 3
26874 ie0: .space 8
26875 .global _start
26876 .text
26877 _start:
26878 addis 9,13,ie0@got@tprel@ha
26879 ld 9,ie0@got@tprel@l(9)
26881 if $gcc_cv_as -a64 -o conftest.o conftest.s > /dev/null 2>&1 \
26882 && $gcc_cv_ld $emul_name --no-toc-sort -o conftest conftest.o > /dev/null 2>&1; then
26883 gcc_cv_ld_large_toc=yes
26885 rm -f conftest conftest.o conftest.s
26889 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_large_toc" >&5
26890 $as_echo "$gcc_cv_ld_large_toc" >&6; }
26891 if test x"$gcc_cv_ld_large_toc" = xyes; then
26893 $as_echo "#define HAVE_LD_LARGE_TOC 1" >>confdefs.h
26897 esac
26899 case "$target" in
26900 *-*-aix*)
26901 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker large toc support" >&5
26902 $as_echo_n "checking linker large toc support... " >&6; }
26903 if test "${gcc_cv_ld_large_toc+set}" = set; then :
26904 $as_echo_n "(cached) " >&6
26905 else
26906 gcc_cv_ld_large_toc=no
26907 if test x$gcc_cv_as != x ; then
26908 cat > conftest.s <<EOF
26909 .toc
26910 LC..1:
26911 .tc a[TC],a[RW]
26912 .extern a[RW]
26913 .csect .text[PR]
26914 .largetoctest:
26915 addis 9,LC..1@u(2)
26916 ld 3,LC..1@l(9)
26918 if $gcc_cv_as -a64 -o conftest.o conftest.s > /dev/null 2>&1; then
26919 gcc_cv_ld_large_toc=yes
26921 rm -f conftest conftest.o conftest.s
26925 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_large_toc" >&5
26926 $as_echo "$gcc_cv_ld_large_toc" >&6; }
26927 if test x"$gcc_cv_ld_large_toc" = xyes; then
26929 $as_echo "#define HAVE_LD_LARGE_TOC 1" >>confdefs.h
26933 esac
26935 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker --build-id support" >&5
26936 $as_echo_n "checking linker --build-id support... " >&6; }
26937 if test "${gcc_cv_ld_buildid+set}" = set; then :
26938 $as_echo_n "(cached) " >&6
26939 else
26940 gcc_cv_ld_buildid=no
26941 if test $in_tree_ld = yes ; then
26942 if test "$gcc_cv_gld_major_version" -eq 2 -a \
26943 "$gcc_cv_gld_minor_version" -ge 18 -o \
26944 "$gcc_cv_gld_major_version" -gt 2 \
26945 && test $in_tree_ld_is_elf = yes; then
26946 gcc_cv_ld_buildid=yes
26948 elif test x$gcc_cv_ld != x; then
26949 if $gcc_cv_ld --help 2>/dev/null | grep build-id > /dev/null; then
26950 gcc_cv_ld_buildid=yes
26954 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_buildid" >&5
26955 $as_echo "$gcc_cv_ld_buildid" >&6; }
26956 if test x"$gcc_cv_ld_buildid" = xyes; then
26958 $as_echo "#define HAVE_LD_BUILDID 1" >>confdefs.h
26962 # Check whether --enable-linker-build-id was given.
26963 if test "${enable_linker_build_id+set}" = set; then :
26964 enableval=$enable_linker_build_id;
26965 else
26966 enable_linker_build_id=no
26970 if test x"$enable_linker_build_id" = xyes; then
26971 if test x"$gcc_cv_ld_buildid" = xyes; then
26973 $as_echo "#define ENABLE_LD_BUILDID 1" >>confdefs.h
26975 else
26976 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: --build-id is not supported by your linker; --enable-linker-build-id ignored" >&5
26977 $as_echo "$as_me: WARNING: --build-id is not supported by your linker; --enable-linker-build-id ignored" >&2;}
26981 # In binutils 2.21, GNU ld gained support for new emulations fully
26982 # supporting the Solaris 2 ABI. Detect their presence in the linker used.
26983 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker *_sol2 emulation support" >&5
26984 $as_echo_n "checking linker *_sol2 emulation support... " >&6; }
26985 if test "${gcc_cv_ld_sol2_emulation+set}" = set; then :
26986 $as_echo_n "(cached) " >&6
26987 else
26988 gcc_cv_ld_sol2_emulation=no
26989 if test $in_tree_ld = yes ; then
26990 if test "$gcc_cv_gld_major_version" -eq 2 -a \
26991 "$gcc_cv_gld_minor_version" -ge 21 -o \
26992 "$gcc_cv_gld_major_version" -gt 2 \
26993 && test $in_tree_ld_is_elf = yes; then
26994 gcc_cv_ld_sol2_emulation=yes
26996 elif test x$gcc_cv_ld != x; then
26997 if $gcc_cv_ld -V 2>/dev/null | sed -e '1,/Supported emulations/d;q' | \
26998 grep _sol2 > /dev/null; then
26999 gcc_cv_ld_sol2_emulation=yes
27003 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_sol2_emulation" >&5
27004 $as_echo "$gcc_cv_ld_sol2_emulation" >&6; }
27005 if test x"$gcc_cv_ld_sol2_emulation" = xyes; then
27007 $as_echo "#define HAVE_LD_SOL2_EMULATION 1" >>confdefs.h
27011 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker --sysroot support" >&5
27012 $as_echo_n "checking linker --sysroot support... " >&6; }
27013 if test "${gcc_cv_ld_sysroot+set}" = set; then :
27014 $as_echo_n "(cached) " >&6
27015 else
27016 gcc_cv_ld_sysroot=no
27017 if test $in_tree_ld = yes ; then
27018 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
27019 gcc_cv_ld_sysroot=yes
27021 elif test x$gcc_cv_ld != x; then
27022 if $gcc_cv_ld --help 2>/dev/null | grep sysroot > /dev/null; then
27023 gcc_cv_ld_sysroot=yes
27027 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_sysroot" >&5
27028 $as_echo "$gcc_cv_ld_sysroot" >&6; }
27029 if test x"$gcc_cv_ld_sysroot" = xyes; then
27031 $as_echo "#define HAVE_LD_SYSROOT 1" >>confdefs.h
27035 if test x$with_sysroot = x && test x$host = x$target \
27036 && test "$prefix" != "/usr" && test "x$prefix" != "x$local_prefix" \
27037 && test "$prefix" != "NONE"; then
27039 cat >>confdefs.h <<_ACEOF
27040 #define PREFIX_INCLUDE_DIR "$prefix/include"
27041 _ACEOF
27045 if test x$host != x$target || test "x$TARGET_SYSTEM_ROOT" != x; then
27046 if test "x$with_headers" != x; then
27047 target_header_dir=$with_headers
27048 elif test "x$with_sysroot" = x; then
27049 target_header_dir="${test_exec_prefix}/${target_noncanonical}/sys-include"
27050 elif test "x$with_build_sysroot" != "x"; then
27051 target_header_dir="${with_build_sysroot}${native_system_header_dir}"
27052 elif test "x$with_sysroot" = xyes; then
27053 target_header_dir="${test_exec_prefix}/${target_noncanonical}/sys-root${native_system_header_dir}"
27054 else
27055 target_header_dir="${with_sysroot}${native_system_header_dir}"
27057 else
27058 target_header_dir=${native_system_header_dir}
27061 # Test for stack protector support in target C library.
27062 { $as_echo "$as_me:${as_lineno-$LINENO}: checking __stack_chk_fail in target C library" >&5
27063 $as_echo_n "checking __stack_chk_fail in target C library... " >&6; }
27064 if test "${gcc_cv_libc_provides_ssp+set}" = set; then :
27065 $as_echo_n "(cached) " >&6
27066 else
27067 gcc_cv_libc_provides_ssp=no
27068 case "$target" in
27069 *-*-linux* | *-*-kfreebsd*-gnu | *-*-knetbsd*-gnu)
27070 # glibc 2.4 and later provides __stack_chk_fail and
27071 # either __stack_chk_guard, or TLS access to stack guard canary.
27072 if test -f $target_header_dir/features.h \
27073 && $EGREP '^[ ]*#[ ]*define[ ]+__GNU_LIBRARY__[ ]+([1-9][0-9]|[6-9])' \
27074 $target_header_dir/features.h > /dev/null; then
27075 if $EGREP '^[ ]*#[ ]*define[ ]+__GLIBC__[ ]+([1-9][0-9]|[3-9])' \
27076 $target_header_dir/features.h > /dev/null; then
27077 gcc_cv_libc_provides_ssp=yes
27078 elif $EGREP '^[ ]*#[ ]*define[ ]+__GLIBC__[ ]+2' \
27079 $target_header_dir/features.h > /dev/null \
27080 && $EGREP '^[ ]*#[ ]*define[ ]+__GLIBC_MINOR__[ ]+([1-9][0-9]|[4-9])' \
27081 $target_header_dir/features.h > /dev/null; then
27082 gcc_cv_libc_provides_ssp=yes
27083 elif $EGREP '^[ ]*#[ ]*define[ ]+__UCLIBC__[ ]+1' \
27084 $target_header_dir/features.h > /dev/null && \
27085 test -f $target_header_dir/bits/uClibc_config.h && \
27086 $EGREP '^[ ]*#[ ]*define[ ]+__UCLIBC_HAS_SSP__[ ]+1' \
27087 $target_header_dir/bits/uClibc_config.h > /dev/null; then
27088 gcc_cv_libc_provides_ssp=yes
27090 # all versions of Bionic support stack protector
27091 elif test -f $target_header_dir/sys/cdefs.h \
27092 && $EGREP '^[ ]*#[ ]*define[ ]+__BIONIC__[ ]+1' \
27093 $target_header_dir/sys/cdefs.h > /dev/null; then
27094 gcc_cv_libc_provides_ssp=yes
27097 *-*-gnu*)
27098 # Avoid complicated tests (see
27099 # <http://gcc.gnu.org/ml/gcc/2008-10/msg00130.html>) and for now
27100 # simply assert that glibc does provide this, which is true for all
27101 # realistically usable GNU/Hurd configurations.
27102 gcc_cv_libc_provides_ssp=yes;;
27103 *-*-darwin* | *-*-freebsd*)
27104 ac_fn_c_check_func "$LINENO" "__stack_chk_fail" "ac_cv_func___stack_chk_fail"
27105 if test "x$ac_cv_func___stack_chk_fail" = x""yes; then :
27106 gcc_cv_libc_provides_ssp=yes
27107 else
27108 echo "no __stack_chk_fail on this target"
27112 *) gcc_cv_libc_provides_ssp=no ;;
27113 esac
27115 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_libc_provides_ssp" >&5
27116 $as_echo "$gcc_cv_libc_provides_ssp" >&6; }
27118 if test x$gcc_cv_libc_provides_ssp = xyes; then
27120 $as_echo "#define TARGET_LIBC_PROVIDES_SSP 1" >>confdefs.h
27124 # Test for <sys/sdt.h> on the target.
27126 { $as_echo "$as_me:${as_lineno-$LINENO}: checking sys/sdt.h in the target C library" >&5
27127 $as_echo_n "checking sys/sdt.h in the target C library... " >&6; }
27128 have_sys_sdt_h=no
27129 if test -f $target_header_dir/sys/sdt.h; then
27130 have_sys_sdt_h=yes
27132 $as_echo "#define HAVE_SYS_SDT_H 1" >>confdefs.h
27135 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_sys_sdt_h" >&5
27136 $as_echo "$have_sys_sdt_h" >&6; }
27138 # Check if TFmode long double should be used by default or not.
27139 # Some glibc targets used DFmode long double, but with glibc 2.4
27140 # and later they can use TFmode.
27141 case "$target" in
27142 powerpc*-*-linux* | \
27143 sparc*-*-linux* | \
27144 s390*-*-linux* | \
27145 alpha*-*-linux*)
27147 # Check whether --with-long-double-128 was given.
27148 if test "${with_long_double_128+set}" = set; then :
27149 withval=$with_long_double_128; gcc_cv_target_ldbl128="$with_long_double_128"
27150 else
27151 gcc_cv_target_ldbl128=no
27152 grep '^[ ]*#[ ]*define[ ][ ]*__LONG_DOUBLE_MATH_OPTIONAL' \
27153 $target_header_dir/bits/wordsize.h > /dev/null 2>&1 \
27154 && gcc_cv_target_ldbl128=yes
27159 esac
27160 if test x$gcc_cv_target_ldbl128 = xyes; then
27162 $as_echo "#define TARGET_DEFAULT_LONG_DOUBLE_128 1" >>confdefs.h
27166 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dl_iterate_phdr in target C library" >&5
27167 $as_echo_n "checking dl_iterate_phdr in target C library... " >&6; }
27168 gcc_cv_target_dl_iterate_phdr=unknown
27169 case "$target" in
27170 # Restrict to Solaris 11+. While most of the Solaris 11 linker changes
27171 # were backported to Solaris 10 Update 10, dl_iterate_phdr only lives in
27172 # libdl there, both complicating its use and breaking compatibility
27173 # between Solaris 10 updates.
27174 *-*-solaris2.1[1-9]*)
27175 # <link.h> needs both a dl_iterate_phdr declaration and support for
27176 # compilation with largefile support.
27177 if grep dl_iterate_phdr $target_header_dir/link.h > /dev/null 2>&1 \
27178 && grep 'large file capable' $target_header_dir/link.h > /dev/null 2>&1; then
27179 gcc_cv_target_dl_iterate_phdr=yes
27180 else
27181 gcc_cv_target_dl_iterate_phdr=no
27184 esac
27186 if test x$gcc_cv_target_dl_iterate_phdr = xyes; then
27188 $as_echo "#define TARGET_DL_ITERATE_PHDR 1" >>confdefs.h
27191 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_target_dl_iterate_phdr" >&5
27192 $as_echo "$gcc_cv_target_dl_iterate_phdr" >&6; }
27194 # We no longer support different GC mechanisms. Emit an error if
27195 # the user configures with --with-gc.
27197 # Check whether --with-gc was given.
27198 if test "${with_gc+set}" = set; then :
27199 withval=$with_gc; as_fn_error "Configure option --with-gc is only supported up to GCC 4.7.x" "$LINENO" 5
27203 # Libraries to use on the host. This will normally be set by the top
27204 # level Makefile. Here we simply capture the value for our Makefile.
27205 if test -z "${HOST_LIBS+set}"; then
27206 HOST_LIBS=
27210 # Use the system's zlib library.
27211 zlibdir=-L../zlib
27212 zlibinc="-I\$(srcdir)/../zlib"
27214 # Check whether --with-system-zlib was given.
27215 if test "${with_system_zlib+set}" = set; then :
27216 withval=$with_system_zlib; zlibdir=
27217 zlibinc=
27225 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable maintainer-specific portions of Makefiles" >&5
27226 $as_echo_n "checking whether to enable maintainer-specific portions of Makefiles... " >&6; }
27227 # Check whether --enable-maintainer-mode was given.
27228 if test "${enable_maintainer_mode+set}" = set; then :
27229 enableval=$enable_maintainer_mode; maintainer_mode=$enableval
27230 else
27231 maintainer_mode=no
27235 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $maintainer_mode" >&5
27236 $as_echo "$maintainer_mode" >&6; }
27238 if test "$maintainer_mode" = "yes"; then
27239 MAINT=''
27240 else
27241 MAINT='#'
27245 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to avoid linking multiple front-ends at once" >&5
27246 $as_echo_n "checking whether to avoid linking multiple front-ends at once... " >&6; }
27247 # Check whether --enable-link-mutex was given.
27248 if test "${enable_link_mutex+set}" = set; then :
27249 enableval=$enable_link_mutex; do_link_mutex=$enableval
27250 else
27251 do_link_mutex=no
27254 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $do_link_mutex" >&5
27255 $as_echo "$do_link_mutex" >&6; }
27257 if test "$do_link_mutex" = "yes"; then
27258 DO_LINK_MUTEX=true
27259 else
27260 DO_LINK_MUTEX=false
27264 # --------------
27265 # Language hooks
27266 # --------------
27268 # Make empty files to contain the specs and options for each language.
27269 # Then add #include lines to for a compiler that has specs and/or options.
27271 subdirs=
27272 lang_opt_files=
27273 lang_specs_files=
27274 lang_tree_files=
27275 # These (without "all_") are set in each config-lang.in.
27276 # `language' must be a single word so is spelled singularly.
27277 all_languages=
27278 all_compilers=
27279 all_outputs='Makefile'
27280 # List of language makefile fragments.
27281 all_lang_makefrags=
27282 # Additional files for gengtype
27283 all_gtfiles="$target_gtfiles"
27285 # These are the languages that are set in --enable-languages,
27286 # and are available in the GCC tree.
27287 all_selected_languages=
27289 # Add the language fragments.
27290 # Languages are added via two mechanisms. Some information must be
27291 # recorded in makefile variables, these are defined in config-lang.in.
27292 # We accumulate them and plug them into the main Makefile.
27293 # The other mechanism is a set of hooks for each of the main targets
27294 # like `clean', `install', etc.
27296 language_hooks="Make-hooks"
27298 for lang in ${srcdir}/*/config-lang.in
27300 test "$lang" = "${srcdir}/*/config-lang.in" && continue
27302 lang_alias=`sed -n -e 's,^language=['"'"'"'"]\(.*\)["'"'"'"'].*$,\1,p' -e 's,^language=\([^ ]*\).*$,\1,p' $lang`
27303 if test "x$lang_alias" = x
27304 then
27305 echo "$lang doesn't set \$language." 1>&2
27306 exit 1
27308 subdir="`echo $lang | sed -e 's,^.*/\([^/]*\)/config-lang.in$,\1,'`"
27309 subdirs="$subdirs $subdir"
27311 # $gcc_subdir is where the gcc integration files are to be found
27312 # for a language, both for internal compiler purposes (compiler
27313 # sources implementing front-end to GCC tree converters), and for
27314 # build infrastructure purposes (Make-lang.in, etc.)
27316 # This will be <subdir> (relative to $srcdir) if a line like
27317 # gcc_subdir="<subdir>" or gcc_subdir=<subdir>
27318 # is found in <langdir>/config-lang.in, and will remain <langdir>
27319 # otherwise.
27321 # Except for the language alias (fetched above), the regular
27322 # "config-lang.in" contents are always retrieved from $gcc_subdir,
27323 # so a <langdir>/config-lang.in setting gcc_subdir typically sets
27324 # only this and the language alias.
27326 gcc_subdir=`sed -n -e 's,^gcc_subdir=['"'"'"'"]\(.*\)["'"'"'"'].*$,\1,p' -e 's,^gcc_subdir=\([^ ]*\).*$,\1,p' $lang`
27327 if [ "$gcc_subdir" = "" ]; then
27328 gcc_subdir="$subdir"
27331 case ",$enable_languages," in
27332 *,$lang_alias,*)
27333 all_selected_languages="$all_selected_languages $lang_alias"
27334 if test -f $srcdir/$gcc_subdir/lang-specs.h; then
27335 lang_specs_files="$lang_specs_files $srcdir/$gcc_subdir/lang-specs.h"
27338 esac
27340 language=
27341 boot_language=
27342 compilers=
27343 outputs=
27344 gtfiles=
27345 subdir_requires=
27346 . ${srcdir}/$gcc_subdir/config-lang.in
27347 if test "x$language" = x
27348 then
27349 echo "${srcdir}/$gcc_subdir/config-lang.in doesn't set \$language." 1>&2
27350 exit 1
27353 ok=:
27354 case ",$enable_languages," in
27355 *,$lang_alias,*) ;;
27357 for i in $subdir_requires; do
27358 test -f "${srcdir}/$i/config-lang.in" && continue
27359 ok=false
27360 break
27361 done
27363 esac
27364 $ok || continue
27366 all_lang_makefrags="$all_lang_makefrags \$(srcdir)/$gcc_subdir/Make-lang.in"
27367 if test -f $srcdir/$gcc_subdir/lang.opt; then
27368 lang_opt_files="$lang_opt_files $srcdir/$gcc_subdir/lang.opt"
27369 all_opt_files="$all_opt_files $srcdir/$gcc_subdir/lang.opt"
27371 if test -f $srcdir/$gcc_subdir/$subdir-tree.def; then
27372 lang_tree_files="$lang_tree_files $srcdir/$gcc_subdir/$subdir-tree.def"
27374 all_languages="$all_languages $language"
27375 all_compilers="$all_compilers $compilers"
27376 all_outputs="$all_outputs $outputs"
27377 all_gtfiles="$all_gtfiles [$subdir] $gtfiles"
27378 case ",$enable_languages," in
27379 *,lto,*)
27381 $as_echo "#define ENABLE_LTO 1" >>confdefs.h
27383 enable_lto=yes
27386 *) ;;
27387 esac
27388 done
27390 check_languages=
27391 for language in $all_selected_languages
27393 check_languages="$check_languages check-$language"
27394 done
27396 # We link each language in with a set of hooks, reached indirectly via
27397 # lang.${target}. Only do so for selected languages.
27399 rm -f Make-hooks
27400 touch Make-hooks
27401 target_list="all.cross start.encap rest.encap tags \
27402 install-common install-man install-info install-pdf install-html dvi \
27403 pdf html uninstall info man srcextra srcman srcinfo \
27404 mostlyclean clean distclean maintainer-clean install-plugin"
27406 for t in $target_list
27409 for lang in $all_selected_languages
27411 x="$x $lang.$t"
27412 done
27413 echo "lang.$t: $x" >> Make-hooks
27414 done
27416 # --------
27417 # Option include files
27418 # --------
27420 ${AWK} -f $srcdir/opt-include.awk $all_opt_files > option-includes.mk
27421 option_includes="option-includes.mk"
27424 # --------
27425 # UNSORTED
27426 # --------
27428 # Create .gdbinit.
27430 echo "dir ." > .gdbinit
27431 echo "dir ${srcdir}" >> .gdbinit
27432 if test x$gdb_needs_out_file_path = xyes
27433 then
27434 echo "dir ${srcdir}/config/"`dirname ${out_file}` >> .gdbinit
27436 if test "x$subdirs" != x; then
27437 for s in $subdirs
27439 echo "dir ${srcdir}/$s" >> .gdbinit
27440 done
27442 echo "source ${srcdir}/gdbinit.in" >> .gdbinit
27443 echo "python import sys; sys.path.append('${srcdir}'); import gdbhooks" >> .gdbinit
27445 gcc_tooldir='$(libsubdir)/$(libsubdir_to_prefix)$(target_noncanonical)'
27449 # Find a directory in which to install a shared libgcc.
27451 # Check whether --enable-version-specific-runtime-libs was given.
27452 if test "${enable_version_specific_runtime_libs+set}" = set; then :
27453 enableval=$enable_version_specific_runtime_libs;
27457 # Set default prefix canonicalization.
27459 # Check whether --enable-canonical-prefixes was given.
27460 if test "${enable_canonical_prefixes+set}" = set; then :
27461 enableval=$enable_canonical_prefixes;
27462 else
27463 enable_canonical_prefixes=yes
27466 if test x"$enable_canonical_prefixes" = xyes; then
27468 $as_echo "#define ENABLE_CANONICAL_PREFIXES 1" >>confdefs.h
27472 # Substitute configuration variables
27535 # Echo link setup.
27536 if test x${build} = x${host} ; then
27537 if test x${host} = x${target} ; then
27538 echo "Links are now set up to build a native compiler for ${target}." 1>&2
27539 else
27540 echo "Links are now set up to build a cross-compiler" 1>&2
27541 echo " from ${host} to ${target}." 1>&2
27543 else
27544 if test x${host} = x${target} ; then
27545 echo "Links are now set up to build (on ${build}) a native compiler" 1>&2
27546 echo " for ${target}." 1>&2
27547 else
27548 echo "Links are now set up to build (on ${build}) a cross-compiler" 1>&2
27549 echo " from ${host} to ${target}." 1>&2
27561 if test "x${CLOOGLIBS}" != "x" ; then
27563 $as_echo "#define HAVE_cloog 1" >>confdefs.h
27567 # Check for plugin support
27568 # Check whether --enable-plugin was given.
27569 if test "${enable_plugin+set}" = set; then :
27570 enableval=$enable_plugin; enable_plugin=$enableval
27571 else
27572 enable_plugin=yes; default_plugin=yes
27576 pluginlibs=
27578 case "${host}" in
27579 *-*-darwin*)
27580 if test x$build = x$host; then
27581 export_sym_check="nm${exeext} -g"
27582 elif test x$host = x$target; then
27583 export_sym_check="$gcc_cv_nm -g"
27584 else
27585 export_sym_check=
27589 if test x$build = x$host; then
27590 export_sym_check="objdump${exeext} -T"
27591 elif test x$host = x$target; then
27592 export_sym_check="$gcc_cv_objdump -T"
27593 else
27594 export_sym_check=
27597 esac
27599 if test x"$enable_plugin" = x"yes"; then
27601 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for exported symbols" >&5
27602 $as_echo_n "checking for exported symbols... " >&6; }
27603 if test "x$export_sym_check" != x; then
27604 echo "int main() {return 0;} int foobar() {return 0;}" > conftest.c
27605 ${CC} ${CFLAGS} ${LDFLAGS} conftest.c -o conftest > /dev/null 2>&1
27606 if $export_sym_check conftest | grep foobar > /dev/null; then
27607 : # No need to use a flag
27608 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
27609 $as_echo "yes" >&6; }
27610 else
27611 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
27612 $as_echo "yes" >&6; }
27613 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -rdynamic" >&5
27614 $as_echo_n "checking for -rdynamic... " >&6; }
27615 ${CC} ${CFLAGS} ${LDFLAGS} -rdynamic conftest.c -o conftest > /dev/null 2>&1
27616 if $export_sym_check conftest | grep foobar > /dev/null; then
27617 plugin_rdynamic=yes
27618 pluginlibs="-rdynamic"
27619 else
27620 plugin_rdynamic=no
27621 enable_plugin=no
27623 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $plugin_rdynamic" >&5
27624 $as_echo "$plugin_rdynamic" >&6; }
27626 else
27627 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unable to check" >&5
27628 $as_echo "unable to check" >&6; }
27631 # Check -ldl
27632 saved_LIBS="$LIBS"
27633 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing dlopen" >&5
27634 $as_echo_n "checking for library containing dlopen... " >&6; }
27635 if test "${ac_cv_search_dlopen+set}" = set; then :
27636 $as_echo_n "(cached) " >&6
27637 else
27638 ac_func_search_save_LIBS=$LIBS
27639 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
27640 /* end confdefs.h. */
27642 /* Override any GCC internal prototype to avoid an error.
27643 Use char because int might match the return type of a GCC
27644 builtin and then its argument prototype would still apply. */
27645 #ifdef __cplusplus
27646 extern "C"
27647 #endif
27648 char dlopen ();
27650 main ()
27652 return dlopen ();
27654 return 0;
27656 _ACEOF
27657 for ac_lib in '' dl; do
27658 if test -z "$ac_lib"; then
27659 ac_res="none required"
27660 else
27661 ac_res=-l$ac_lib
27662 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
27664 if ac_fn_c_try_link "$LINENO"; then :
27665 ac_cv_search_dlopen=$ac_res
27667 rm -f core conftest.err conftest.$ac_objext \
27668 conftest$ac_exeext
27669 if test "${ac_cv_search_dlopen+set}" = set; then :
27670 break
27672 done
27673 if test "${ac_cv_search_dlopen+set}" = set; then :
27675 else
27676 ac_cv_search_dlopen=no
27678 rm conftest.$ac_ext
27679 LIBS=$ac_func_search_save_LIBS
27681 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_dlopen" >&5
27682 $as_echo "$ac_cv_search_dlopen" >&6; }
27683 ac_res=$ac_cv_search_dlopen
27684 if test "$ac_res" != no; then :
27685 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
27689 if test x"$ac_cv_search_dlopen" = x"-ldl"; then
27690 pluginlibs="$pluginlibs -ldl"
27692 LIBS="$saved_LIBS"
27694 # Check that we can build shared objects with -fPIC -shared
27695 saved_LDFLAGS="$LDFLAGS"
27696 saved_CFLAGS="$CFLAGS"
27697 case "${host}" in
27698 *-*-darwin*)
27699 CFLAGS=`echo $CFLAGS | sed s/-mdynamic-no-pic//g`
27700 CFLAGS="$CFLAGS -fPIC"
27701 LDFLAGS="$LDFLAGS -shared -undefined dynamic_lookup"
27704 CFLAGS="$CFLAGS -fPIC"
27705 LDFLAGS="$LDFLAGS -fPIC -shared"
27707 esac
27708 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -fPIC -shared" >&5
27709 $as_echo_n "checking for -fPIC -shared... " >&6; }
27710 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
27711 /* end confdefs.h. */
27712 extern int X;
27714 main ()
27716 return X == 0;
27718 return 0;
27720 _ACEOF
27721 if ac_fn_c_try_link "$LINENO"; then :
27722 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
27723 $as_echo "yes" >&6; }; have_pic_shared=yes
27724 else
27725 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
27726 $as_echo "no" >&6; }; have_pic_shared=no
27728 rm -f core conftest.err conftest.$ac_objext \
27729 conftest$ac_exeext conftest.$ac_ext
27730 if test x"$have_pic_shared" != x"yes" -o x"$ac_cv_search_dlopen" = x"no"; then
27731 pluginlibs=
27732 enable_plugin=no
27734 LDFLAGS="$saved_LDFLAGS"
27735 CFLAGS="$saved_CFLAGS"
27737 # If plugin support had been requested but not available, fail.
27738 if test x"$enable_plugin" = x"no" ; then
27739 if test x"$default_plugin" != x"yes"; then
27740 as_fn_error "
27741 Building GCC with plugin support requires a host that supports
27742 -fPIC, -shared, -ldl and -rdynamic." "$LINENO" 5
27749 if test x"$enable_plugin" = x"yes"; then
27751 $as_echo "#define ENABLE_PLUGIN 1" >>confdefs.h
27756 # Check whether --enable-libquadmath-support was given.
27757 if test "${enable_libquadmath_support+set}" = set; then :
27758 enableval=$enable_libquadmath_support; ENABLE_LIBQUADMATH_SUPPORT=$enableval
27759 else
27760 ENABLE_LIBQUADMATH_SUPPORT=yes
27763 if test "${ENABLE_LIBQUADMATH_SUPPORT}" != "no" ; then
27765 $as_echo "#define ENABLE_LIBQUADMATH_SUPPORT 1" >>confdefs.h
27770 warn_frame_larger_than_extra_text=
27772 # Check whether --with-warn-frame-larger-than-extra-text was given.
27773 if test "${with_warn_frame_larger_than_extra_text+set}" = set; then :
27774 withval=$with_warn_frame_larger_than_extra_text; case "${withval}" in
27775 yes) as_fn_error "bad value ${withval} given for frame size warning text" "$LINENO" 5 ;;
27776 no) ;;
27777 *) warn_frame_larger_than_extra_text="$withval" ;;
27778 esac
27782 cat >>confdefs.h <<_ACEOF
27783 #define WARN_FRAME_LARGER_THAN_EXTRA_TEXT "$warn_frame_larger_than_extra_text"
27784 _ACEOF
27788 # Specify what hash style to use by default.
27790 # Check whether --with-linker-hash-style was given.
27791 if test "${with_linker_hash_style+set}" = set; then :
27792 withval=$with_linker_hash_style; case x"$withval" in
27793 xsysv)
27794 LINKER_HASH_STYLE=sysv
27796 xgnu)
27797 LINKER_HASH_STYLE=gnu
27799 xboth)
27800 LINKER_HASH_STYLE=both
27803 as_fn_error "$withval is an invalid option to --with-linker-hash-style" "$LINENO" 5
27805 esac
27806 else
27807 LINKER_HASH_STYLE=''
27810 if test x"${LINKER_HASH_STYLE}" != x; then
27812 cat >>confdefs.h <<_ACEOF
27813 #define LINKER_HASH_STYLE "$LINKER_HASH_STYLE"
27814 _ACEOF
27818 # Configure the subdirectories
27819 # AC_CONFIG_SUBDIRS($subdirs)
27821 # Create the Makefile
27822 # and configure language subdirectories
27823 ac_config_files="$ac_config_files $all_outputs"
27826 ac_config_commands="$ac_config_commands default"
27828 cat >confcache <<\_ACEOF
27829 # This file is a shell script that caches the results of configure
27830 # tests run on this system so they can be shared between configure
27831 # scripts and configure runs, see configure's option --config-cache.
27832 # It is not useful on other systems. If it contains results you don't
27833 # want to keep, you may remove or edit it.
27835 # config.status only pays attention to the cache file if you give it
27836 # the --recheck option to rerun configure.
27838 # `ac_cv_env_foo' variables (set or unset) will be overridden when
27839 # loading this file, other *unset* `ac_cv_foo' will be assigned the
27840 # following values.
27842 _ACEOF
27844 # The following way of writing the cache mishandles newlines in values,
27845 # but we know of no workaround that is simple, portable, and efficient.
27846 # So, we kill variables containing newlines.
27847 # Ultrix sh set writes to stderr and can't be redirected directly,
27848 # and sets the high bit in the cache file unless we assign to the vars.
27850 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
27851 eval ac_val=\$$ac_var
27852 case $ac_val in #(
27853 *${as_nl}*)
27854 case $ac_var in #(
27855 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
27856 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
27857 esac
27858 case $ac_var in #(
27859 _ | IFS | as_nl) ;; #(
27860 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
27861 *) { eval $ac_var=; unset $ac_var;} ;;
27862 esac ;;
27863 esac
27864 done
27866 (set) 2>&1 |
27867 case $as_nl`(ac_space=' '; set) 2>&1` in #(
27868 *${as_nl}ac_space=\ *)
27869 # `set' does not quote correctly, so add quotes: double-quote
27870 # substitution turns \\\\ into \\, and sed turns \\ into \.
27871 sed -n \
27872 "s/'/'\\\\''/g;
27873 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
27874 ;; #(
27876 # `set' quotes correctly as required by POSIX, so do not add quotes.
27877 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
27879 esac |
27880 sort
27882 sed '
27883 /^ac_cv_env_/b end
27884 t clear
27885 :clear
27886 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
27887 t end
27888 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
27889 :end' >>confcache
27890 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
27891 if test -w "$cache_file"; then
27892 test "x$cache_file" != "x/dev/null" &&
27893 { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
27894 $as_echo "$as_me: updating cache $cache_file" >&6;}
27895 cat confcache >$cache_file
27896 else
27897 { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
27898 $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
27901 rm -f confcache
27903 test "x$prefix" = xNONE && prefix=$ac_default_prefix
27904 # Let make expand exec_prefix.
27905 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
27907 DEFS=-DHAVE_CONFIG_H
27909 ac_libobjs=
27910 ac_ltlibobjs=
27911 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
27912 # 1. Remove the extension, and $U if already installed.
27913 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
27914 ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
27915 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
27916 # will be set to the directory where LIBOBJS objects are built.
27917 as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
27918 as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
27919 done
27920 LIBOBJS=$ac_libobjs
27922 LTLIBOBJS=$ac_ltlibobjs
27927 : ${CONFIG_STATUS=./config.status}
27928 ac_write_fail=0
27929 ac_clean_files_save=$ac_clean_files
27930 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
27931 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
27932 $as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
27933 as_write_fail=0
27934 cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
27935 #! $SHELL
27936 # Generated by $as_me.
27937 # Run this file to recreate the current configuration.
27938 # Compiler output produced by configure, useful for debugging
27939 # configure, is in config.log if it exists.
27941 debug=false
27942 ac_cs_recheck=false
27943 ac_cs_silent=false
27945 SHELL=\${CONFIG_SHELL-$SHELL}
27946 export SHELL
27947 _ASEOF
27948 cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
27949 ## -------------------- ##
27950 ## M4sh Initialization. ##
27951 ## -------------------- ##
27953 # Be more Bourne compatible
27954 DUALCASE=1; export DUALCASE # for MKS sh
27955 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
27956 emulate sh
27957 NULLCMD=:
27958 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
27959 # is contrary to our usage. Disable this feature.
27960 alias -g '${1+"$@"}'='"$@"'
27961 setopt NO_GLOB_SUBST
27962 else
27963 case `(set -o) 2>/dev/null` in #(
27964 *posix*) :
27965 set -o posix ;; #(
27966 *) :
27968 esac
27972 as_nl='
27974 export as_nl
27975 # Printing a long string crashes Solaris 7 /usr/bin/printf.
27976 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
27977 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
27978 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
27979 # Prefer a ksh shell builtin over an external printf program on Solaris,
27980 # but without wasting forks for bash or zsh.
27981 if test -z "$BASH_VERSION$ZSH_VERSION" \
27982 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
27983 as_echo='print -r --'
27984 as_echo_n='print -rn --'
27985 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
27986 as_echo='printf %s\n'
27987 as_echo_n='printf %s'
27988 else
27989 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
27990 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
27991 as_echo_n='/usr/ucb/echo -n'
27992 else
27993 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
27994 as_echo_n_body='eval
27995 arg=$1;
27996 case $arg in #(
27997 *"$as_nl"*)
27998 expr "X$arg" : "X\\(.*\\)$as_nl";
27999 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
28000 esac;
28001 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
28003 export as_echo_n_body
28004 as_echo_n='sh -c $as_echo_n_body as_echo'
28006 export as_echo_body
28007 as_echo='sh -c $as_echo_body as_echo'
28010 # The user is always right.
28011 if test "${PATH_SEPARATOR+set}" != set; then
28012 PATH_SEPARATOR=:
28013 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
28014 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
28015 PATH_SEPARATOR=';'
28020 # IFS
28021 # We need space, tab and new line, in precisely that order. Quoting is
28022 # there to prevent editors from complaining about space-tab.
28023 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
28024 # splitting by setting IFS to empty value.)
28025 IFS=" "" $as_nl"
28027 # Find who we are. Look in the path if we contain no directory separator.
28028 case $0 in #((
28029 *[\\/]* ) as_myself=$0 ;;
28030 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
28031 for as_dir in $PATH
28033 IFS=$as_save_IFS
28034 test -z "$as_dir" && as_dir=.
28035 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
28036 done
28037 IFS=$as_save_IFS
28040 esac
28041 # We did not find ourselves, most probably we were run as `sh COMMAND'
28042 # in which case we are not to be found in the path.
28043 if test "x$as_myself" = x; then
28044 as_myself=$0
28046 if test ! -f "$as_myself"; then
28047 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
28048 exit 1
28051 # Unset variables that we do not need and which cause bugs (e.g. in
28052 # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
28053 # suppresses any "Segmentation fault" message there. '((' could
28054 # trigger a bug in pdksh 5.2.14.
28055 for as_var in BASH_ENV ENV MAIL MAILPATH
28056 do eval test x\${$as_var+set} = xset \
28057 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
28058 done
28059 PS1='$ '
28060 PS2='> '
28061 PS4='+ '
28063 # NLS nuisances.
28064 LC_ALL=C
28065 export LC_ALL
28066 LANGUAGE=C
28067 export LANGUAGE
28069 # CDPATH.
28070 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
28073 # as_fn_error ERROR [LINENO LOG_FD]
28074 # ---------------------------------
28075 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
28076 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
28077 # script with status $?, using 1 if that was 0.
28078 as_fn_error ()
28080 as_status=$?; test $as_status -eq 0 && as_status=1
28081 if test "$3"; then
28082 as_lineno=${as_lineno-"$2"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
28083 $as_echo "$as_me:${as_lineno-$LINENO}: error: $1" >&$3
28085 $as_echo "$as_me: error: $1" >&2
28086 as_fn_exit $as_status
28087 } # as_fn_error
28090 # as_fn_set_status STATUS
28091 # -----------------------
28092 # Set $? to STATUS, without forking.
28093 as_fn_set_status ()
28095 return $1
28096 } # as_fn_set_status
28098 # as_fn_exit STATUS
28099 # -----------------
28100 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
28101 as_fn_exit ()
28103 set +e
28104 as_fn_set_status $1
28105 exit $1
28106 } # as_fn_exit
28108 # as_fn_unset VAR
28109 # ---------------
28110 # Portably unset VAR.
28111 as_fn_unset ()
28113 { eval $1=; unset $1;}
28115 as_unset=as_fn_unset
28116 # as_fn_append VAR VALUE
28117 # ----------------------
28118 # Append the text in VALUE to the end of the definition contained in VAR. Take
28119 # advantage of any shell optimizations that allow amortized linear growth over
28120 # repeated appends, instead of the typical quadratic growth present in naive
28121 # implementations.
28122 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
28123 eval 'as_fn_append ()
28125 eval $1+=\$2
28127 else
28128 as_fn_append ()
28130 eval $1=\$$1\$2
28132 fi # as_fn_append
28134 # as_fn_arith ARG...
28135 # ------------------
28136 # Perform arithmetic evaluation on the ARGs, and store the result in the
28137 # global $as_val. Take advantage of shells that can avoid forks. The arguments
28138 # must be portable across $(()) and expr.
28139 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
28140 eval 'as_fn_arith ()
28142 as_val=$(( $* ))
28144 else
28145 as_fn_arith ()
28147 as_val=`expr "$@" || test $? -eq 1`
28149 fi # as_fn_arith
28152 if expr a : '\(a\)' >/dev/null 2>&1 &&
28153 test "X`expr 00001 : '.*\(...\)'`" = X001; then
28154 as_expr=expr
28155 else
28156 as_expr=false
28159 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
28160 as_basename=basename
28161 else
28162 as_basename=false
28165 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
28166 as_dirname=dirname
28167 else
28168 as_dirname=false
28171 as_me=`$as_basename -- "$0" ||
28172 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
28173 X"$0" : 'X\(//\)$' \| \
28174 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
28175 $as_echo X/"$0" |
28176 sed '/^.*\/\([^/][^/]*\)\/*$/{
28177 s//\1/
28180 /^X\/\(\/\/\)$/{
28181 s//\1/
28184 /^X\/\(\/\).*/{
28185 s//\1/
28188 s/.*/./; q'`
28190 # Avoid depending upon Character Ranges.
28191 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
28192 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
28193 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
28194 as_cr_digits='0123456789'
28195 as_cr_alnum=$as_cr_Letters$as_cr_digits
28197 ECHO_C= ECHO_N= ECHO_T=
28198 case `echo -n x` in #(((((
28199 -n*)
28200 case `echo 'xy\c'` in
28201 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
28202 xy) ECHO_C='\c';;
28203 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
28204 ECHO_T=' ';;
28205 esac;;
28207 ECHO_N='-n';;
28208 esac
28210 rm -f conf$$ conf$$.exe conf$$.file
28211 if test -d conf$$.dir; then
28212 rm -f conf$$.dir/conf$$.file
28213 else
28214 rm -f conf$$.dir
28215 mkdir conf$$.dir 2>/dev/null
28217 if (echo >conf$$.file) 2>/dev/null; then
28218 if ln -s conf$$.file conf$$ 2>/dev/null; then
28219 as_ln_s='ln -s'
28220 # ... but there are two gotchas:
28221 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
28222 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
28223 # In both cases, we have to default to `cp -p'.
28224 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
28225 as_ln_s='cp -p'
28226 elif ln conf$$.file conf$$ 2>/dev/null; then
28227 as_ln_s=ln
28228 else
28229 as_ln_s='cp -p'
28231 else
28232 as_ln_s='cp -p'
28234 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
28235 rmdir conf$$.dir 2>/dev/null
28238 # as_fn_mkdir_p
28239 # -------------
28240 # Create "$as_dir" as a directory, including parents if necessary.
28241 as_fn_mkdir_p ()
28244 case $as_dir in #(
28245 -*) as_dir=./$as_dir;;
28246 esac
28247 test -d "$as_dir" || eval $as_mkdir_p || {
28248 as_dirs=
28249 while :; do
28250 case $as_dir in #(
28251 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
28252 *) as_qdir=$as_dir;;
28253 esac
28254 as_dirs="'$as_qdir' $as_dirs"
28255 as_dir=`$as_dirname -- "$as_dir" ||
28256 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
28257 X"$as_dir" : 'X\(//\)[^/]' \| \
28258 X"$as_dir" : 'X\(//\)$' \| \
28259 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
28260 $as_echo X"$as_dir" |
28261 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
28262 s//\1/
28265 /^X\(\/\/\)[^/].*/{
28266 s//\1/
28269 /^X\(\/\/\)$/{
28270 s//\1/
28273 /^X\(\/\).*/{
28274 s//\1/
28277 s/.*/./; q'`
28278 test -d "$as_dir" && break
28279 done
28280 test -z "$as_dirs" || eval "mkdir $as_dirs"
28281 } || test -d "$as_dir" || as_fn_error "cannot create directory $as_dir"
28284 } # as_fn_mkdir_p
28285 if mkdir -p . 2>/dev/null; then
28286 as_mkdir_p='mkdir -p "$as_dir"'
28287 else
28288 test -d ./-p && rmdir ./-p
28289 as_mkdir_p=false
28292 if test -x / >/dev/null 2>&1; then
28293 as_test_x='test -x'
28294 else
28295 if ls -dL / >/dev/null 2>&1; then
28296 as_ls_L_option=L
28297 else
28298 as_ls_L_option=
28300 as_test_x='
28301 eval sh -c '\''
28302 if test -d "$1"; then
28303 test -d "$1/.";
28304 else
28305 case $1 in #(
28306 -*)set "./$1";;
28307 esac;
28308 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in #((
28309 ???[sx]*):;;*)false;;esac;fi
28310 '\'' sh
28313 as_executable_p=$as_test_x
28315 # Sed expression to map a string onto a valid CPP name.
28316 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
28318 # Sed expression to map a string onto a valid variable name.
28319 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
28322 exec 6>&1
28323 ## ----------------------------------- ##
28324 ## Main body of $CONFIG_STATUS script. ##
28325 ## ----------------------------------- ##
28326 _ASEOF
28327 test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
28329 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
28330 # Save the log message, to keep $0 and so on meaningful, and to
28331 # report actual input values of CONFIG_FILES etc. instead of their
28332 # values after options handling.
28333 ac_log="
28334 This file was extended by $as_me, which was
28335 generated by GNU Autoconf 2.64. Invocation command line was
28337 CONFIG_FILES = $CONFIG_FILES
28338 CONFIG_HEADERS = $CONFIG_HEADERS
28339 CONFIG_LINKS = $CONFIG_LINKS
28340 CONFIG_COMMANDS = $CONFIG_COMMANDS
28341 $ $0 $@
28343 on `(hostname || uname -n) 2>/dev/null | sed 1q`
28346 _ACEOF
28348 case $ac_config_files in *"
28349 "*) set x $ac_config_files; shift; ac_config_files=$*;;
28350 esac
28352 case $ac_config_headers in *"
28353 "*) set x $ac_config_headers; shift; ac_config_headers=$*;;
28354 esac
28357 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
28358 # Files that config.status was made for.
28359 config_files="$ac_config_files"
28360 config_headers="$ac_config_headers"
28361 config_commands="$ac_config_commands"
28363 _ACEOF
28365 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
28366 ac_cs_usage="\
28367 \`$as_me' instantiates files and other configuration actions
28368 from templates according to the current configuration. Unless the files
28369 and actions are specified as TAGs, all are instantiated by default.
28371 Usage: $0 [OPTION]... [TAG]...
28373 -h, --help print this help, then exit
28374 -V, --version print version number and configuration settings, then exit
28375 -q, --quiet, --silent
28376 do not print progress messages
28377 -d, --debug don't remove temporary files
28378 --recheck update $as_me by reconfiguring in the same conditions
28379 --file=FILE[:TEMPLATE]
28380 instantiate the configuration file FILE
28381 --header=FILE[:TEMPLATE]
28382 instantiate the configuration header FILE
28384 Configuration files:
28385 $config_files
28387 Configuration headers:
28388 $config_headers
28390 Configuration commands:
28391 $config_commands
28393 Report bugs to the package provider."
28395 _ACEOF
28396 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
28397 ac_cs_version="\\
28398 config.status
28399 configured by $0, generated by GNU Autoconf 2.64,
28400 with options \\"`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`\\"
28402 Copyright (C) 2009 Free Software Foundation, Inc.
28403 This config.status script is free software; the Free Software Foundation
28404 gives unlimited permission to copy, distribute and modify it."
28406 ac_pwd='$ac_pwd'
28407 srcdir='$srcdir'
28408 AWK='$AWK'
28409 test -n "\$AWK" || AWK=awk
28410 _ACEOF
28412 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
28413 # The default lists apply if the user does not specify any file.
28414 ac_need_defaults=:
28415 while test $# != 0
28417 case $1 in
28418 --*=*)
28419 ac_option=`expr "X$1" : 'X\([^=]*\)='`
28420 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
28421 ac_shift=:
28424 ac_option=$1
28425 ac_optarg=$2
28426 ac_shift=shift
28428 esac
28430 case $ac_option in
28431 # Handling of the options.
28432 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
28433 ac_cs_recheck=: ;;
28434 --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
28435 $as_echo "$ac_cs_version"; exit ;;
28436 --debug | --debu | --deb | --de | --d | -d )
28437 debug=: ;;
28438 --file | --fil | --fi | --f )
28439 $ac_shift
28440 case $ac_optarg in
28441 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
28442 esac
28443 as_fn_append CONFIG_FILES " '$ac_optarg'"
28444 ac_need_defaults=false;;
28445 --header | --heade | --head | --hea )
28446 $ac_shift
28447 case $ac_optarg in
28448 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
28449 esac
28450 as_fn_append CONFIG_HEADERS " '$ac_optarg'"
28451 ac_need_defaults=false;;
28452 --he | --h)
28453 # Conflict between --help and --header
28454 as_fn_error "ambiguous option: \`$1'
28455 Try \`$0 --help' for more information.";;
28456 --help | --hel | -h )
28457 $as_echo "$ac_cs_usage"; exit ;;
28458 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
28459 | -silent | --silent | --silen | --sile | --sil | --si | --s)
28460 ac_cs_silent=: ;;
28462 # This is an error.
28463 -*) as_fn_error "unrecognized option: \`$1'
28464 Try \`$0 --help' for more information." ;;
28466 *) as_fn_append ac_config_targets " $1"
28467 ac_need_defaults=false ;;
28469 esac
28470 shift
28471 done
28473 ac_configure_extra_args=
28475 if $ac_cs_silent; then
28476 exec 6>/dev/null
28477 ac_configure_extra_args="$ac_configure_extra_args --silent"
28480 _ACEOF
28481 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
28482 if \$ac_cs_recheck; then
28483 set X '$SHELL' '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
28484 shift
28485 \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
28486 CONFIG_SHELL='$SHELL'
28487 export CONFIG_SHELL
28488 exec "\$@"
28491 _ACEOF
28492 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
28493 exec 5>>config.log
28495 echo
28496 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
28497 ## Running $as_me. ##
28498 _ASBOX
28499 $as_echo "$ac_log"
28500 } >&5
28502 _ACEOF
28503 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
28505 # INIT-COMMANDS
28507 ac_aux_dir=$ac_aux_dir DEPDIR=$DEPDIR
28508 subdirs="$subdirs" ac_aux_dir=$ac_aux_dir DEPDIR=$DEPDIR
28509 subdirs='$subdirs'
28511 _ACEOF
28513 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
28515 # Handling of arguments.
28516 for ac_config_target in $ac_config_targets
28518 case $ac_config_target in
28519 "auto-host.h") CONFIG_HEADERS="$CONFIG_HEADERS auto-host.h:config.in" ;;
28520 "depdir") CONFIG_COMMANDS="$CONFIG_COMMANDS depdir" ;;
28521 "gccdepdir") CONFIG_COMMANDS="$CONFIG_COMMANDS gccdepdir" ;;
28522 "as") CONFIG_FILES="$CONFIG_FILES as:exec-tool.in" ;;
28523 "collect-ld") CONFIG_FILES="$CONFIG_FILES collect-ld:exec-tool.in" ;;
28524 "nm") CONFIG_FILES="$CONFIG_FILES nm:exec-tool.in" ;;
28525 "$all_outputs") CONFIG_FILES="$CONFIG_FILES $all_outputs" ;;
28526 "default") CONFIG_COMMANDS="$CONFIG_COMMANDS default" ;;
28528 *) as_fn_error "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
28529 esac
28530 done
28533 # If the user did not use the arguments to specify the items to instantiate,
28534 # then the envvar interface is used. Set only those that are not.
28535 # We use the long form for the default assignment because of an extremely
28536 # bizarre bug on SunOS 4.1.3.
28537 if $ac_need_defaults; then
28538 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
28539 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
28540 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
28543 # Have a temporary directory for convenience. Make it in the build tree
28544 # simply because there is no reason against having it here, and in addition,
28545 # creating and moving files from /tmp can sometimes cause problems.
28546 # Hook for its removal unless debugging.
28547 # Note that there is a small window in which the directory will not be cleaned:
28548 # after its creation but before its name has been assigned to `$tmp'.
28549 $debug ||
28551 tmp=
28552 trap 'exit_status=$?
28553 { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status
28555 trap 'as_fn_exit 1' 1 2 13 15
28557 # Create a (secure) tmp directory for tmp files.
28560 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
28561 test -n "$tmp" && test -d "$tmp"
28562 } ||
28564 tmp=./conf$$-$RANDOM
28565 (umask 077 && mkdir "$tmp")
28566 } || as_fn_error "cannot create a temporary directory in ." "$LINENO" 5
28568 # Set up the scripts for CONFIG_FILES section.
28569 # No need to generate them if there are no CONFIG_FILES.
28570 # This happens for instance with `./config.status config.h'.
28571 if test -n "$CONFIG_FILES"; then
28573 if $AWK 'BEGIN { getline <"/dev/null" }' </dev/null 2>/dev/null; then
28574 ac_cs_awk_getline=:
28575 ac_cs_awk_pipe_init=
28576 ac_cs_awk_read_file='
28577 while ((getline aline < (F[key])) > 0)
28578 print(aline)
28579 close(F[key])'
28580 ac_cs_awk_pipe_fini=
28581 else
28582 ac_cs_awk_getline=false
28583 ac_cs_awk_pipe_init="print \"cat <<'|#_!!_#|' &&\""
28584 ac_cs_awk_read_file='
28585 print "|#_!!_#|"
28586 print "cat " F[key] " &&"
28587 '$ac_cs_awk_pipe_init
28588 # The final `:' finishes the AND list.
28589 ac_cs_awk_pipe_fini='END { print "|#_!!_#|"; print ":" }'
28591 ac_cr=`echo X | tr X '\015'`
28592 # On cygwin, bash can eat \r inside `` if the user requested igncr.
28593 # But we know of no other shell where ac_cr would be empty at this
28594 # point, so we can use a bashism as a fallback.
28595 if test "x$ac_cr" = x; then
28596 eval ac_cr=\$\'\\r\'
28598 ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
28599 if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
28600 ac_cs_awk_cr='\r'
28601 else
28602 ac_cs_awk_cr=$ac_cr
28605 echo 'BEGIN {' >"$tmp/subs1.awk" &&
28606 _ACEOF
28608 # Create commands to substitute file output variables.
28610 echo "cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1" &&
28611 echo 'cat >>"\$tmp/subs1.awk" <<\\_ACAWK &&' &&
28612 echo "$ac_subst_files" | sed 's/.*/F["&"]="$&"/' &&
28613 echo "_ACAWK" &&
28614 echo "_ACEOF"
28615 } >conf$$files.sh &&
28616 . ./conf$$files.sh ||
28617 as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5
28618 rm -f conf$$files.sh
28621 echo "cat >conf$$subs.awk <<_ACEOF" &&
28622 echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
28623 echo "_ACEOF"
28624 } >conf$$subs.sh ||
28625 as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5
28626 ac_delim_num=`echo "$ac_subst_vars" | grep -c '$'`
28627 ac_delim='%!_!# '
28628 for ac_last_try in false false false false false :; do
28629 . ./conf$$subs.sh ||
28630 as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5
28632 ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
28633 if test $ac_delim_n = $ac_delim_num; then
28634 break
28635 elif $ac_last_try; then
28636 as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5
28637 else
28638 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
28640 done
28641 rm -f conf$$subs.sh
28643 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
28644 cat >>"\$tmp/subs1.awk" <<\\_ACAWK &&
28645 _ACEOF
28646 sed -n '
28648 s/^/S["/; s/!.*/"]=/
28651 s/^[^!]*!//
28652 :repl
28653 t repl
28654 s/'"$ac_delim"'$//
28655 t delim
28658 s/\(.\{148\}\).*/\1/
28659 t more1
28660 s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
28663 b repl
28664 :more1
28665 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
28668 s/.\{148\}//
28669 t nl
28670 :delim
28672 s/\(.\{148\}\).*/\1/
28673 t more2
28674 s/["\\]/\\&/g; s/^/"/; s/$/"/
28677 :more2
28678 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
28681 s/.\{148\}//
28682 t delim
28683 ' <conf$$subs.awk | sed '
28684 /^[^""]/{
28686 s/\n//
28688 ' >>$CONFIG_STATUS || ac_write_fail=1
28689 rm -f conf$$subs.awk
28690 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
28691 _ACAWK
28692 cat >>"\$tmp/subs1.awk" <<_ACAWK &&
28693 for (key in S) S_is_set[key] = 1
28694 FS = "\a"
28695 \$ac_cs_awk_pipe_init
28698 line = $ 0
28699 nfields = split(line, field, "@")
28700 substed = 0
28701 len = length(field[1])
28702 for (i = 2; i < nfields; i++) {
28703 key = field[i]
28704 keylen = length(key)
28705 if (S_is_set[key]) {
28706 value = S[key]
28707 line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
28708 len += length(value) + length(field[++i])
28709 substed = 1
28710 } else
28711 len += 1 + keylen
28713 if (nfields == 3 && !substed) {
28714 key = field[2]
28715 if (F[key] != "" && line ~ /^[ ]*@.*@[ ]*$/) {
28716 \$ac_cs_awk_read_file
28717 next
28720 print line
28722 \$ac_cs_awk_pipe_fini
28723 _ACAWK
28724 _ACEOF
28725 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
28726 if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
28727 sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
28728 else
28730 fi < "$tmp/subs1.awk" > "$tmp/subs.awk" \
28731 || as_fn_error "could not setup config files machinery" "$LINENO" 5
28732 _ACEOF
28734 # VPATH may cause trouble with some makes, so we remove $(srcdir),
28735 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
28736 # trailing colons and then remove the whole line if VPATH becomes empty
28737 # (actually we leave an empty line to preserve line numbers).
28738 if test "x$srcdir" = x.; then
28739 ac_vpsub='/^[ ]*VPATH[ ]*=/{
28740 s/:*\$(srcdir):*/:/
28741 s/:*\${srcdir}:*/:/
28742 s/:*@srcdir@:*/:/
28743 s/^\([^=]*=[ ]*\):*/\1/
28744 s/:*$//
28745 s/^[^=]*=[ ]*$//
28749 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
28750 fi # test -n "$CONFIG_FILES"
28752 # Set up the scripts for CONFIG_HEADERS section.
28753 # No need to generate them if there are no CONFIG_HEADERS.
28754 # This happens for instance with `./config.status Makefile'.
28755 if test -n "$CONFIG_HEADERS"; then
28756 cat >"$tmp/defines.awk" <<\_ACAWK ||
28757 BEGIN {
28758 _ACEOF
28760 # Transform confdefs.h into an awk script `defines.awk', embedded as
28761 # here-document in config.status, that substitutes the proper values into
28762 # config.h.in to produce config.h.
28764 # Create a delimiter string that does not exist in confdefs.h, to ease
28765 # handling of long lines.
28766 ac_delim='%!_!# '
28767 for ac_last_try in false false :; do
28768 ac_t=`sed -n "/$ac_delim/p" confdefs.h`
28769 if test -z "$ac_t"; then
28770 break
28771 elif $ac_last_try; then
28772 as_fn_error "could not make $CONFIG_HEADERS" "$LINENO" 5
28773 else
28774 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
28776 done
28778 # For the awk script, D is an array of macro values keyed by name,
28779 # likewise P contains macro parameters if any. Preserve backslash
28780 # newline sequences.
28782 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
28783 sed -n '
28784 s/.\{148\}/&'"$ac_delim"'/g
28785 t rset
28786 :rset
28787 s/^[ ]*#[ ]*define[ ][ ]*/ /
28788 t def
28790 :def
28791 s/\\$//
28792 t bsnl
28793 s/["\\]/\\&/g
28794 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
28795 D["\1"]=" \3"/p
28796 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2"/p
28798 :bsnl
28799 s/["\\]/\\&/g
28800 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
28801 D["\1"]=" \3\\\\\\n"\\/p
28802 t cont
28803 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
28804 t cont
28806 :cont
28808 s/.\{148\}/&'"$ac_delim"'/g
28809 t clear
28810 :clear
28811 s/\\$//
28812 t bsnlc
28813 s/["\\]/\\&/g; s/^/"/; s/$/"/p
28815 :bsnlc
28816 s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
28817 b cont
28818 ' <confdefs.h | sed '
28819 s/'"$ac_delim"'/"\\\
28820 "/g' >>$CONFIG_STATUS || ac_write_fail=1
28822 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
28823 for (key in D) D_is_set[key] = 1
28824 FS = "\a"
28826 /^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
28827 line = \$ 0
28828 split(line, arg, " ")
28829 if (arg[1] == "#") {
28830 defundef = arg[2]
28831 mac1 = arg[3]
28832 } else {
28833 defundef = substr(arg[1], 2)
28834 mac1 = arg[2]
28836 split(mac1, mac2, "(") #)
28837 macro = mac2[1]
28838 prefix = substr(line, 1, index(line, defundef) - 1)
28839 if (D_is_set[macro]) {
28840 # Preserve the white space surrounding the "#".
28841 print prefix "define", macro P[macro] D[macro]
28842 next
28843 } else {
28844 # Replace #undef with comments. This is necessary, for example,
28845 # in the case of _POSIX_SOURCE, which is predefined and required
28846 # on some systems where configure will not decide to define it.
28847 if (defundef == "undef") {
28848 print "/*", prefix defundef, macro, "*/"
28849 next
28853 { print }
28854 _ACAWK
28855 _ACEOF
28856 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
28857 as_fn_error "could not setup config headers machinery" "$LINENO" 5
28858 fi # test -n "$CONFIG_HEADERS"
28861 eval set X " :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS"
28862 shift
28863 for ac_tag
28865 case $ac_tag in
28866 :[FHLC]) ac_mode=$ac_tag; continue;;
28867 esac
28868 case $ac_mode$ac_tag in
28869 :[FHL]*:*);;
28870 :L* | :C*:*) as_fn_error "invalid tag \`$ac_tag'" "$LINENO" 5;;
28871 :[FH]-) ac_tag=-:-;;
28872 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
28873 esac
28874 ac_save_IFS=$IFS
28875 IFS=:
28876 set x $ac_tag
28877 IFS=$ac_save_IFS
28878 shift
28879 ac_file=$1
28880 shift
28882 case $ac_mode in
28883 :L) ac_source=$1;;
28884 :[FH])
28885 ac_file_inputs=
28886 for ac_f
28888 case $ac_f in
28889 -) ac_f="$tmp/stdin";;
28890 *) # Look for the file first in the build tree, then in the source tree
28891 # (if the path is not absolute). The absolute path cannot be DOS-style,
28892 # because $ac_f cannot contain `:'.
28893 test -f "$ac_f" ||
28894 case $ac_f in
28895 [\\/$]*) false;;
28896 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
28897 esac ||
28898 as_fn_error "cannot find input file: \`$ac_f'" "$LINENO" 5;;
28899 esac
28900 case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
28901 as_fn_append ac_file_inputs " '$ac_f'"
28902 done
28904 # Let's still pretend it is `configure' which instantiates (i.e., don't
28905 # use $as_me), people would be surprised to read:
28906 # /* config.h. Generated by config.status. */
28907 configure_input='Generated from '`
28908 $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
28909 `' by configure.'
28910 if test x"$ac_file" != x-; then
28911 configure_input="$ac_file. $configure_input"
28912 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
28913 $as_echo "$as_me: creating $ac_file" >&6;}
28915 # Neutralize special characters interpreted by sed in replacement strings.
28916 case $configure_input in #(
28917 *\&* | *\|* | *\\* )
28918 ac_sed_conf_input=`$as_echo "$configure_input" |
28919 sed 's/[\\\\&|]/\\\\&/g'`;; #(
28920 *) ac_sed_conf_input=$configure_input;;
28921 esac
28923 case $ac_tag in
28924 *:-:* | *:-) cat >"$tmp/stdin" \
28925 || as_fn_error "could not create $ac_file" "$LINENO" 5 ;;
28926 esac
28928 esac
28930 ac_dir=`$as_dirname -- "$ac_file" ||
28931 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
28932 X"$ac_file" : 'X\(//\)[^/]' \| \
28933 X"$ac_file" : 'X\(//\)$' \| \
28934 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
28935 $as_echo X"$ac_file" |
28936 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
28937 s//\1/
28940 /^X\(\/\/\)[^/].*/{
28941 s//\1/
28944 /^X\(\/\/\)$/{
28945 s//\1/
28948 /^X\(\/\).*/{
28949 s//\1/
28952 s/.*/./; q'`
28953 as_dir="$ac_dir"; as_fn_mkdir_p
28954 ac_builddir=.
28956 case "$ac_dir" in
28957 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
28959 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
28960 # A ".." for each directory in $ac_dir_suffix.
28961 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
28962 case $ac_top_builddir_sub in
28963 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
28964 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
28965 esac ;;
28966 esac
28967 ac_abs_top_builddir=$ac_pwd
28968 ac_abs_builddir=$ac_pwd$ac_dir_suffix
28969 # for backward compatibility:
28970 ac_top_builddir=$ac_top_build_prefix
28972 case $srcdir in
28973 .) # We are building in place.
28974 ac_srcdir=.
28975 ac_top_srcdir=$ac_top_builddir_sub
28976 ac_abs_top_srcdir=$ac_pwd ;;
28977 [\\/]* | ?:[\\/]* ) # Absolute name.
28978 ac_srcdir=$srcdir$ac_dir_suffix;
28979 ac_top_srcdir=$srcdir
28980 ac_abs_top_srcdir=$srcdir ;;
28981 *) # Relative name.
28982 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
28983 ac_top_srcdir=$ac_top_build_prefix$srcdir
28984 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
28985 esac
28986 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
28989 case $ac_mode in
28992 # CONFIG_FILE
28995 _ACEOF
28997 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
28998 # If the template does not know about datarootdir, expand it.
28999 # FIXME: This hack should be removed a few years after 2.60.
29000 ac_datarootdir_hack=; ac_datarootdir_seen=
29001 ac_sed_dataroot='
29002 /datarootdir/ {
29006 /@datadir@/p
29007 /@docdir@/p
29008 /@infodir@/p
29009 /@localedir@/p
29010 /@mandir@/p'
29011 case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
29012 *datarootdir*) ac_datarootdir_seen=yes;;
29013 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
29014 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
29015 $as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
29016 _ACEOF
29017 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
29018 ac_datarootdir_hack='
29019 s&@datadir@&$datadir&g
29020 s&@docdir@&$docdir&g
29021 s&@infodir@&$infodir&g
29022 s&@localedir@&$localedir&g
29023 s&@mandir@&$mandir&g
29024 s&\\\${datarootdir}&$datarootdir&g' ;;
29025 esac
29026 _ACEOF
29028 # Neutralize VPATH when `$srcdir' = `.'.
29029 # Shell code in configure.ac might set extrasub.
29030 # FIXME: do we really want to maintain this feature?
29031 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
29032 ac_sed_extra="$ac_vpsub
29033 $extrasub
29034 _ACEOF
29035 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
29037 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
29038 s|@configure_input@|$ac_sed_conf_input|;t t
29039 s&@top_builddir@&$ac_top_builddir_sub&;t t
29040 s&@top_build_prefix@&$ac_top_build_prefix&;t t
29041 s&@srcdir@&$ac_srcdir&;t t
29042 s&@abs_srcdir@&$ac_abs_srcdir&;t t
29043 s&@top_srcdir@&$ac_top_srcdir&;t t
29044 s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
29045 s&@builddir@&$ac_builddir&;t t
29046 s&@abs_builddir@&$ac_abs_builddir&;t t
29047 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
29048 $ac_datarootdir_hack
29050 eval sed \"\$ac_sed_extra\" "$ac_file_inputs" |
29051 if $ac_cs_awk_getline; then
29052 $AWK -f "$tmp/subs.awk"
29053 else
29054 $AWK -f "$tmp/subs.awk" | $SHELL
29055 fi >$tmp/out \
29056 || as_fn_error "could not create $ac_file" "$LINENO" 5
29058 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
29059 { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out"`; test -n "$ac_out"; } &&
29060 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' "$tmp/out"`; test -z "$ac_out"; } &&
29061 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
29062 which seems to be undefined. Please make sure it is defined." >&5
29063 $as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
29064 which seems to be undefined. Please make sure it is defined." >&2;}
29066 rm -f "$tmp/stdin"
29067 case $ac_file in
29068 -) cat "$tmp/out" && rm -f "$tmp/out";;
29069 *) rm -f "$ac_file" && mv "$tmp/out" "$ac_file";;
29070 esac \
29071 || as_fn_error "could not create $ac_file" "$LINENO" 5
29075 # CONFIG_HEADER
29077 if test x"$ac_file" != x-; then
29079 $as_echo "/* $configure_input */" \
29080 && eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs"
29081 } >"$tmp/config.h" \
29082 || as_fn_error "could not create $ac_file" "$LINENO" 5
29083 if diff "$ac_file" "$tmp/config.h" >/dev/null 2>&1; then
29084 { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
29085 $as_echo "$as_me: $ac_file is unchanged" >&6;}
29086 else
29087 rm -f "$ac_file"
29088 mv "$tmp/config.h" "$ac_file" \
29089 || as_fn_error "could not create $ac_file" "$LINENO" 5
29091 else
29092 $as_echo "/* $configure_input */" \
29093 && eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs" \
29094 || as_fn_error "could not create -" "$LINENO" 5
29098 :C) { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
29099 $as_echo "$as_me: executing $ac_file commands" >&6;}
29101 esac
29104 case $ac_file$ac_mode in
29105 "depdir":C) $SHELL $ac_aux_dir/mkinstalldirs $DEPDIR ;;
29106 "gccdepdir":C)
29107 ${CONFIG_SHELL-/bin/sh} $ac_aux_dir/mkinstalldirs build/$DEPDIR
29108 for lang in $subdirs c-family common
29110 ${CONFIG_SHELL-/bin/sh} $ac_aux_dir/mkinstalldirs $lang/$DEPDIR
29111 done ;;
29112 "as":F) chmod +x as ;;
29113 "collect-ld":F) chmod +x collect-ld ;;
29114 "nm":F) chmod +x nm ;;
29115 "default":C)
29116 case ${CONFIG_HEADERS} in
29117 *auto-host.h:config.in*)
29118 echo > cstamp-h ;;
29119 esac
29120 # Make sure all the subdirs exist.
29121 for d in $subdirs doc build common c-family
29123 test -d $d || mkdir $d
29124 done
29127 esac
29128 done # for ac_tag
29131 as_fn_exit 0
29132 _ACEOF
29133 ac_clean_files=$ac_clean_files_save
29135 test $ac_write_fail = 0 ||
29136 as_fn_error "write failure creating $CONFIG_STATUS" "$LINENO" 5
29139 # configure is writing to config.log, and then calls config.status.
29140 # config.status does its own redirection, appending to config.log.
29141 # Unfortunately, on DOS this fails, as config.log is still kept open
29142 # by configure, so config.status won't be able to write to it; its
29143 # output is simply discarded. So we exec the FD to /dev/null,
29144 # effectively closing config.log, so it can be properly (re)opened and
29145 # appended to by config.status. When coming back to configure, we
29146 # need to make the FD available again.
29147 if test "$no_create" != yes; then
29148 ac_cs_success=:
29149 ac_config_status_args=
29150 test "$silent" = yes &&
29151 ac_config_status_args="$ac_config_status_args --quiet"
29152 exec 5>/dev/null
29153 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
29154 exec 5>>config.log
29155 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
29156 # would make configure fail if this is the last instruction.
29157 $ac_cs_success || as_fn_exit $?
29159 if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
29160 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
29161 $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}